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 |
|---|---|---|---|---|---|
Opened 6 years ago
Closed 6 years ago
#20554 closed enhancement (fixed)
Python 3 preparation: Remove implicit tuple parameter unpacking (2)
Description (last modified by )
This was supposed to be fixed in #15993 but a lot of new instances came up...
This syntax is deprecated, see PEP 3113:
def add_constraints(self, cons, (args, opts)): ...
Similarly for
lambda (i,j): ..... In many cases, we can actually replace the
lambda function either with a list comprehension (if
lambda is used for the
map() function for example) or with an ordinary Python function.
Change History (7)
comment:1 Changed 6 years ago by
comment:2 Changed 6 years ago by
comment:3 Changed 6 years ago by
comment:4 Changed 6 years ago by
comment:5 Changed 6 years ago by
comment:6 Changed 6 years ago by
comment:7 Changed 6 years ago by
Note: See TracTickets for help on using tickets.
New commits: | https://trac.sagemath.org/ticket/20554 | CC-MAIN-2022-40 | refinedweb | 152 | 50.91 |
1 /* AuthSelfTest2 *3 * Created on Feb 17, 20044 *5 * Copyright (C) 2004.selftest;24 25 import java.io.File ;26 import java.util.Arrays ;27 import java.util.List ;28 29 30 /**31 * Test authentications, both basic/digest auth and html form logins.32 *33 * @author stack34 * @version $Id: AuthSelfTest.java,v 1.6.28.1 2007/01/13 01:31:26 stack-sf Exp $35 */36 public class AuthSelfTest37 extends SelfTestCase38 {39 private static final File BASIC = new File ("basic");40 private static final File FORM = new File ("form");41 private static final File GET = new File (FORM, "get");42 private static final File POST = new File (FORM, "post");43 44 /**45 * Files to find as a list.46 */47 private static final List <File > FILES_TO_FIND =48 Arrays.asList(new File [] {49 BASIC,50 new File (BASIC, "basic-loggedin.html"),51 FORM,52 new File (POST, "success.jsp"),53 new File (POST, "post-loggedin.html"),54 new File (GET, "success.jsp"),55 new File (GET, "get-loggedin.html")56 });57 58 59 /**60 * Test the max-link-hops setting is being respected.61 */62 public void testAuth() {63 testFilesInArc(FILES_TO_FIND);64 }65 }66 67
Java API By Example, From Geeks To Geeks. | Our Blog | Conditions of Use | About Us_ | | http://kickjava.com/src/org/archive/crawler/selftest/AuthSelfTest.java.htm | CC-MAIN-2018-26 | refinedweb | 210 | 69.58 |
Thanks for you answer. I also found out that Neutron has an API extension to allow administrators and tenants to create "routers" that connect to L2 networks. Known as the "neutron-l3-agent", it uses the Linux IP stack and iptables to perform L3 forwarding and NAT. In order to support multiple routers with potentially overlapping IP addresses, neutron-l3-agent defaults to using Linux network namespaces to provide isolated forwarding contexts. Like the DHCP namespaces that exist for every network defined in Neutron, each router will have its own namespace with a name based on its UUID.
OpenStack is a trademark of OpenStack Foundation. This site is powered by Askbot. (GPLv3 or later; source). Content on this site is licensed under a CC-BY 3.0 license. | https://ask.openstack.org/en/answers/97494/revisions/ | CC-MAIN-2020-10 | refinedweb | 128 | 57.67 |
Working; and code modularization.
Introduction
My name is Yusei Nishiyama. My talk is about building for iOS at scale. I work for a company named Cookpad. It is the largest recipe sharing service in the world with the aim of making everyday cooking fun. We cover 67 countries and 21 languages, and we have about 100 million users all around the world. There are 10 iOS developers. Four in the U.K., four in Japan, one in Lebanon and one in Colombia.
Working on an app that supports users all over the world in a distributed chain involves many challenges. I will talk about working with a large team and working with a large code base. The first part of the talk covers Fastlane, Danger and code metrics. The second part covers build time reduction and code modularization.
Working with Large Teams
If you work in a team, you may have issues that you never have when you work alone. For example, someone broke the build, and the rest of the team does not know how to fix it properly. Or perhaps someone’s vacation may prevent the team from making a new release because only one person has the distribution certificate.
Generally, you can deal with those common issues with continuous integration (CI) and automation. None of those tasks should be developer dependent.
Continuous integration should consist of several subsystems. This is an overview of our CI system:
The diagram starts from the point where a developer pushes their change to GitHub. GitHub triggers a Jenkins job through a webhook. Then Jenkins executes a Fastlane script.
Fastlane is a suite of tools that make it much simpler to automate mobile developers’ daily chores. You can define your custom workflow in a text file called a Fastfile. We have seven Fastfiles which have 28 “lanes”. Fastlane is now very popular among mobile developers and you might have been familiar with some common use cases like running tests or uploading your app.
A practical example is syncing dSYMs. If you enable bitcode, your compiled bitcode and generated dSYMs are uploaded to the server, then you will need to download the generated dSYMs from the upload server, and then upload them to a crash reporting service such as Crashlytics so that crash reports can be symbolicated. This script automates the process:
version = get_version_number build_number = get_build_number # Download dSYM files from iTC into a temporary directory download_dsyms(version: version, build_number: build_number) # Upload them to Crashlytics upload_symbols_to_crashlytics # Delete the temporary dSYM files clean_build_artifacts
Get more development news like this
Our server also automatically builds up and distributes the app to testers for every push to github. But there are some changes that you may not want to distribute to testers - for instance, documentation updates because it simply wastes CI resources; we distribute a better version only when a pull request is labeled as “beta distribution”.
Getting labels from github is also very easy with Fastlane. Fastlane has a
github_api action with which you can call a github API, like this:
desc "Check if pr is marked as beta distribution" private_lane :beta_distribution do labels.any? { |label| label == 'beta distribution' } end desc "Get labels of pull request" private_lane :labels do pr_number = ENV['PR_NUMBER'] repo = ENV['GITHUB_PULL_REQUEST_REPO'] result = github_api( http_method: 'GET', path: "/repos/#{repo}/issues/#{pr_number}/labels" ) result[:json].map { |label| label['name'] } end
Those lanes in the example fetch labels from a specific pull request and check if they contain a beta distribution label.
At Cookpad, each push triggers a beta distribution to internal testers. Members of a company should be some of your best users, and their feedback is really valuable.
Unfortunately, because pushes can happen automatically, and a lot of developing features are occurring in different branches, if we developers don’t communicate with testers well, they stop giving us feedback because they can’t know what we want them to test.
One solution is to convey to testers the purpose of the build through the icon. This Fastlane script appends a badge on the icon. This makes communication with developer and tester much easier:
if is_release? next elsif is_rc? title = 'RC' number = get_version_number elsif is_beta? title = 'Beta' number = sh('git rev-parse --short=7 HEAD').strip elsif is_pr? title = 'PR' number = ENV.fetch('PR_NUMBER') end badge(shield: “#{title}-#{number}-blue", dark: true, no_badge: true)
Testers can now easily identify which one is from latest candidate branch:
Code Review with Danger
Before talking about Danger, let me ask a question. Have you ever posted a nitpicky comment such as “please remove your parentheses surrounding the condition”? Something like this should be done by a machine automatically. This is where Danger comes in.
Danger runs in your CI process. It automates common code review tasks with the philosophy of leaving developers to think about harder problems. All you need to do is to define the rules that every pull request should meet in a text file called a Dangerfile. Here’s an example:
github.dismiss_out_of_range_messages({ error: false, warning: true, message: true, markdown: true }) xcode_summary.inline_mode = true xcode_summary.ignored_files = ['Pods/**'] xcode_summary.ignored_results { |result| result.message.start_with? 'ld' } log = File.join('logs', 'test.json') xcode_summary.report log if File.exist?(log) swiftlint.binary_path = './Pods/SwiftLint/swiftlint' swiftlint.lint_files inline_mode: true
One important to note is that you can execute Linter through your Dangerfile. Danger can comment on your pull request on behalf of you, and warn about rule violations. This way, you no longer need to spend your time on minor styling mistakes, like saying “please remove TODO before merging the branch” or “this line exceeds the character limit”.
Collecting Code Metrics
Our system is unique when it comes to code metrics. We collect our code metrics in a database which is called InfluxDB. InfluxDB is a data storage which specializes in time series data. It has a built-in HTTP API and a lot of client libraries in many languages. It’s very easy to integrate InfluxDB into your build system. It’s written in GO, so it’s really fast and responsive.
We have a Fastlane script which collects code coverage and posts the data to InfluxDB. Those data is read and visualized through Grafana. Grafana is a metrics dashboard and editor that supports InfluxDB. Here is an actual change in our test coverage, as visualized in Grafana:
If your metrics are visualized and accessible, everyone can be aware of both the good and the bad things that are happening on your team. That’s why visualization is really important.
We also utilize InfluxDB and Grafana to measure other metrics such as the number of issues and number of pull requests. We can use that data to see how productive our team is, and how stable our app is.
This helps because we can set a clear goal. We can say we have number x and we should target number y.
Working with a Large Code Base
Here is an example of an issue when working with a large code base. Suppose you need to improve your app’s registration screen to reduce the abandonment rate. Here’s what might happen:
- Implement a redesign.
- Hit the run button to check whether it’s working as you intend.
- You find a bug in the layout. You fix that and then run it again.
- Unfortunately, you find another bug which only occurs on a specific version of iOS. You fix that bug, and then you push the change to github.
- Your CI server starts building your branch and launches tests against it.
- The CI fails due to a failing test.
- You fix it, run the test locally, then push the change to github.
- Then you need to wait for CI again.
When your codebase is large, and the size of your team is big, the above example can present a serious issue in regards to building.
Reduce Build Time
There are techniques to measure and improve Swift build time. I will show you how to improve the Swift build time and gain productivity in two parts: measurement and improvement.
Measuring the Build Time
If you want to improve something, you should start from understanding the problem. The first thing you could do is enable the
ShowBuildOperationDuration flag. It displays the build time in Xcode, so that you can always be aware of this.
However, it’s not enough. The build process can be broken down into multiple processes such as dependency management and compilation of each source file, and you may run Linter and Formatter in a run-script phase. You need to know how long each process takes to identify the exact bottleneck.
Fastlane does a great job here: it generates a record as an XML file with which you can get a good insight into how long each process takes. As it’s just a JUnit style XML file, Jenkins can render it as test results. In the Jenkins console, you can check which lane was executed, how long each took, and whether they were successful or not:
You can further break down the compile phase into the compilation of each function. An easy way to find a function which takes a long time to compile is to enable
frontend-warn-long-function-bodies flag. If you turn the flag on, Xcode warns you of functions that have long compile times. For example, I set the threshold to 100 milliseconds, and Xcode complained because a function took 15 seconds to compile.
You can also let the compiler print out how long each function takes to compile by using the
frontend-debug-time-function-bodies flag. You can play with the data just by copying and pasting it in your terminal, but that is not tooling friendly. The extension of the log file is
.xcactivitylog - it is just a gzip file, so you can unzip it and read it in plain text.
With the build log, one of my colleagues developed a Danger plugin which comments directly on a function that takes too long to compile:
(in Dangerfile) xcprofiler.thresholds = { warn: 50, fail: 500 } xcprofiler.report 'ProductName'
It gives us a chance to consider if there’s any other way to write this function in a compiler-friendly way.
Improving Build Time
In this section, I will show you how the build time was improved with real data from a real application. This application has 40,000 lines of Swift code, so it’s a medium-sized app. CocoaPods is used as a dependency management tool; it has 38 direct dependencies to pod library and ends up installing 60 libraries.
Whole Module Optimization
To start, it took 48 minutes to test and archive on CI. The easiest but the most effective technique to fix this is to start with Whole Module Optimization. With it, the Swift compiler compiles all files in the module at the same time.
The intended benefit of Whole Module Optimization is to let the compiler optimize code more aggressively. There’s a hack with which you can tell a compiler to compile the whole module at once, but without any optimization. You can try this by setting optimization level “Whole Module Optimization” and specifying optimization level “none” in the “other” Swift flag:
You can find more discussions about build time reduction using this technique. Whole Module Optimization without any optimization may sound weird, but it makes the build time really fast in most cases. With that setting, now CI takes less than 20 minutes to test and archive.
Playgrounds for Prototyping
The build time improved, but it could be better. You really do not need to build the entire app every time with Playgrounds. Playgrounds is more than an Apple environment because it can render views, and we can use Playgrounds as a powerful prototyping tool.
So Playgrounds seems to be a solution, but it’s not 100% true because it’s rare that your code doesn’t rely on any existing code. Ideally, you should have a separate module for each purpose so that you can play with them in Playground easily. In this example, I have my own UI framework which is imported from both Playground and my application project, and we can access a custom color scheme through Playground:
import UIKit @testable import YourUIKit let color = UIColor.myGreen ---- class ViewController: UITableViewController { let myView = MyView() override func viewDidLoad() { super.viewDidLoad() view.backgroundColor = .myColor view.addSubview(myView) } }
Code Modularization and Microservice Architecture
Code modularization is the idea of having separate modules for each purpose. In 2014, James Lewis proposed the microservice architecture. This is an approach to develop a single application as a suite of small services. It does not completely correspond here, as the idea relates to web applications, but we can get similar benefits from it.
If you apply the idea to apps, you will get this kind of architecture:
You have a core framework consisting of a design framework, a networking framework, and a persistence layer, and you can build each feature on top of those core libraries.
The benefit of code modularization is more than just keeping your project cleaner. As the default access level of Swift is internal, everything you put into your framework is private from other frameworks by default. It gives you more opportunities to consider which methods and properties should be public and which should be private.
Another benefit is that you can get a faster incremental build time. A change you make to a module doesn’t trigger a re-build of other modules. So it could improve your incremental build time dramatically.
Another thing you could get from code modularization is autonomous teams. As organizations expand, it’s hard to synchronize teams with each other. It can take months to get a stable version because it’s really hard to make sure that a change to a feature doesn’t break any other features. When there are clear boundaries between modules, people can focus only on the individual modules that they are working on without being concerned about what others are doing.
To make your app modular, put all of your developing frameworks into a single repository. The main benefit of this approach is that you don’t need to change your workflow. You can work with your frameworks as you did for a single monolithic application. The downside may be that those frameworks are not ready to be open-sourced.
You can also manage your frameworks in different repositories. One obvious downside of the approach is that it makes your workflow more complex. Imagine developing a new feature which requires changes to your main application and changes to your framework, say the networking layer. Then you may need to submit two different requests. One is to your main application, and one is to the API framework. This obviously makes your workflow more complex.
Dependency Management
Next is to consider dependency management. I will compare four possible approaches: CocoaPods, git-submodule, Carthage and gitsubtree.
CocoaPods has been a de facto standard among iOS developers and is still one of the best dependency management tools. The only thing you need to do is to define dependencies in a Podfile, and CocoaPod manages everything else. To put it another way, there are a lot of things happening under the hood, which makes things harder when you face a problem.
Strictly speaking, git-submodule is not a dependency management tool. It just checks out dependent repositories for you, and everything else is up to you. However, additional complexity is introduced in your workflow because every time you make a change to your framework, you need to update the reference in the parent repository to point to the new commit.
Carthage is a middle ground approach between CocoaPods and git-submodule. You define dependencies in a Cartfile, and Carthage downloads them for you, but how to link them is up to you. Carthage also pre-builds libraries, so Xcode doesn’t need to compile and index them, which saves a lot of time. One thing you must be careful with is ABI (application binary interface ) stability. At Swift, ABI stability is not yet available; all your previous frameworks must be built with the same version of the Swift compiler.
Git subtree is less popular than the other three. It clones the sub-project, and merges it into the parent project, so you can make changes both to the parent project and the sub-project in the same place. When you push those changes, git subtree goes through the commit, picking the changes that should go to each sub-project. With the magic of git subtree, you can do your work as if you are in a single repository even though it is actually backed by multiple repositories. The pros and the cons are mostly the same as with git-submodule, but one significant advantage is that you don’t need to change your workflow. A downside is that you need to use the slightly tricky merging strategies of git subtree, or you can wind up with a serious conflict or dirty git history. There’s a medium post that explains how a team modularized their code using git subtree. I highly recommend that you read it!.
If your app is a huge, monolithic application, then code modularization is not a simple task. Once you decide to do this, you should start from a single repository, because at the beginning of the process your frameworks are probably not very stable. Then, after a while, when you get to the point where your framework is not changed very often, you can consider separating them into multiple repositories, and use previous versions of them.
A common pitfall with code modularization is dynamic framework loading time. You can check how long dynamic library loading takes by enabling the
DYLD_PRINT_STATISTICS flag. If an app takes very long to open, the system queues you up. Some people work around this problem by merging all the frameworks into a single, dynamic framework, and link that into an application, but this is not a very simple solution.
Dynamic library loading time was the only concern in moving this idea forward, and it seems that even Apple does not encourage it. So I was undecided about this approach for a while. However, my concerns have recently vanished, because Xcode 9 started supporting Swift static library targets.
Conclusion
- Automating your daily workflows with Fastlane, CI, and Danger saves you time for code review.
- Visualize everything you want to improve.
- Revising project settings may improve build time.
- Code modularization improves build index time and helps you to maintain a well-structured team and code base.
About the content
This talk was delivered live in October 2017 at Mobilization. The video was transcribed by Realm and is published here with the permission of the conference organizers and speakers. | https://academy.realm.io/posts/yusei-nishiyama-mobilization-2017-building-ios-apps-at-scale/ | CC-MAIN-2021-39 | refinedweb | 3,140 | 63.8 |
Neutron-Lib Conventions¶
Summary¶
- Standard modules - current cycle + 2 deprecation policy
- Legacy modules - current cycle + 1 deprecation policy
- Private modules - no deprecation warnings of any kind
Interface Contract¶
The neutron-lib repo exists to provide code with a long-term stable interface for subprojects. If we do need to deprecate something, a debtcollector warning will be added, the neutron-lib core team will make every effort to update any neutron stadium project for you, and you will get at least the current release plus two cycles before it disappears.
In keeping with how hard it is to remove things, the change velocity of this library will be slower than neutron. There are two notable cases where code should go into standard neutron instead of this lib (or your repo):
- It is something common, but changes a lot. An example is something like the neutron Port object. Everyone uses it, but it changes frequently. You don’t want to wait for a library release to tweak some neutron feature, and we are not going to force releases quickly because you tried to put it here. Those items will need to be addressed in some other manner (in the case of the Port object, it’ll be via an auto-magic container object that mimics it.)
- It is something common, but you need it now. Put it in the repo that needs it, get your stuff working. Then consider making it available in the lib, and eventually remove it from your repo when the lib is publishing it. An example would be a new neutron constant. The process would be, put it in neutron along with your change, submit it to the lib, when that constant is eventually available, remove it from neutron and use the lib version.
Private Interfaces¶
Private interfaces are PRIVATE. They will disappear, be renamed, and absolutely no regard will be given to anyone that is using them. They are for internal library use only.
DO NOT USE THEM. THEY WILL CHANGE.
Private interfaces in this library will always have a leading underscore, on the module or function name.
Legacy Modules¶
This library has a special namespace called neutron_lib.legacy.
Anything in this directory will likely get a new interface in the top-level library sometime in the near future, and then a debtcollector deprecation notice. Expect to get current cycle plus one release of maintenance at that point, and then they will be removed.
Why this intermediary step? Because neutron has some serious dependency issues with its subprojects that need breaking, we do not want to rush some of the refactors to our interfaces that need to happen, we have limited resources, but we still need to make addressing those dependency issues a high priority.
The legacy module is for those existing modules in neutron that are in wide use by subprojects, but which are not super interfaces. The legacy submodule is for routines that will still be maintained with a long-term backwards compatibility interface contract, but which are not considered “library worthy” by the neutron core team.
This can easily be abused as a kitchen sink to just move stuff and make fast progress. Please do not do this, and do not expect this kind of thing to be favorably reviewed. Good candidates for this area are things that we want to refactor, but are lower priority, AND they have been around for a long time with no changes (i.e. an existing history of stability). | https://docs.openstack.org/neutron-lib/ocata/conventions.html | CC-MAIN-2022-33 | refinedweb | 581 | 60.65 |
I spent my first years in at Canonical working in the Ubuntu One project, particularly in what we always called "filesync": the pure file synchronization server (which was propietary at that time), the client, and the protocol (both always open source).
Then, the company didn't push the project anymore, I started to work on other areas, and eventually the project was cancelled. When they cancelled it, they made the promise of opensourcing the server, which will allow to anyone put the full stack to work and have their own personal filesync cloud.
Time passed by, and at some point I got instructions to put daily time on that opensourcing work. I've been working the whole day on this for several weeks, and even more weeks part time, massaging all the code and dependencies for the project to be public. Then the project was released.
Was the project easily usable for anyone to start syncing files? Not really, my goals when working in the project to make it available for everybody were:
- use only dependencies and libraries from a standard Ubuntu Precise environment and from freely available code from Launchpad
- "make test" to pass ok, which means that further development can be easily started
- "make start-oauth" to start and work ok, which means that the server actually works and sync files
However, there's a lot to do for the service to be really used in a production environment where we can put our files and trust it, including but not limited to:
- keep cleaning the project, lot of quirks and small weirdness to fix
- make it to store files not in AWS but in the local filesystem
- (after last item because some internal working reasons involving resumable upload that won't explain here) make it work in Trusty, or even in any modern (Ubuntu or not Ubuntu) environment
- make it work nicely in a production environment (currently, for example, everytime it starts it uses a fresh database!)
- simplify it: the server will not longer be used to hold a million users so features like use PostgreSQL in several shards are not worth it anymore
- and several etceteras
Note that part of this work already started!! Naty Bidart and myself are working actively in some of those points.
Where? Well, with Natalia we already had the Magicicada Project, which was a GUI to interact with the client. So we forked the rest of the projects and naturally put them under that namespace.
So, the whole solution stack currently is:
- Magicicada Server: the one that "lives in the cloud" and holds the files so all your clients can access them.
- Magicicada Client: the application that runs in background in each of your computers, uploading/downloading new/changed files from/to the server.
- Magicicada Protocol: a project with common code between client and server, particularly all the protocol implementation that allows them to talk each other.
- Magicicada GUI: a small graphical utility that lets you interact and supervise what the client is doing in your computer.
Read more
All further work will be done in those projects. If you want to participate please suscribe to the mailing list or say hi in the IRC channel (#magicicada in Freenode). Also, you can file issues for any bug you find or new features/changes you want (be sure to choose the right project: server, client, protocol or gui).
If you're a bzr impaired developer, we have mirrors in GitHub (currently, only for the server, others will be added in the following weeks, ping us if you want any of these to happen sooner).
In any case, you may want to follow the Magicicada twitter account, where will be posting all kind of progress notifications.
| http://voices.canonical.com/user/116/ | CC-MAIN-2015-40 | refinedweb | 623 | 58.76 |
On Sun, Sep 22, 2002 at 04:42:32PM +0100, Josef Karthauser wrote: > Has anyone here got the time to help me out? I want to fix the uvisor > code so that it works properly, but am getting caught up trying to fix > the coldsync port. It compiles on -stable, but has been broken on > -current for a while. Something changed in the fd_set area and it's not > compiled for a long time. I'd really appreciate it is someone with a > knowledge of select foo could help me work out what's wrong. Did we > tighten something up in -current, or have we deprecated something?
Advertising
Mark Trettin <[EMAIL PROTECTED]> sent me a patch (attached for reference). Thanks Mark, Joe -- "As far as the laws of mathematics refer to reality, they are not certain; and as far as they are certain, they do not refer to reality." - Albert Einstein, 1921
--- config.h.in.orig Sun Sep 22 13:41:09 2002 +++ config.h.in Sun Sep 22 13:42:40 2002 @@ -316,19 +316,6 @@ */ #endif /* HAVE_O_BINARY */ -#ifndef _POSIX_C_SOURCE -# define _POSIX_C_SOURCE 2 -#endif /* _POSIX_C_SOURCE */ - -#ifndef __EXTENSIONS__ -# define __EXTENSIONS__ 1 -#endif - -#ifndef _XOPEN_SOURCE_EXTENDED - /* Provides declaration for lstat() under DU, and strdup() under Linux */ -# define _XOPEN_SOURCE_EXTENDED -#endif /* _XOPEN_SOURCE_EXTENDED */ - #if __GNUC__ /* The following should fix gcc complaining about missing
msg43207/pgp00000.pgp
Description: PGP signature | https://www.mail-archive.com/freebsd-current@freebsd.org/msg43207.html | CC-MAIN-2018-13 | refinedweb | 224 | 62.48 |
This tutorial begins where Tutorial 2 left off. We’re continuing the Web-poll application and will focus on creating the public interface – “views.”
Overview
A view is a “type” of Web page in your Django application that generally serves a specific function and has a specific template. For example, in a blog:
- Question “index” page – displays the latest few questions.
- Question “detail” page – displays a question text, with no results but with a form to vote.
- Question “results” page – displays results for a particular question.
- Vote action – handles voting for a particular choice in a particular question.
In Django, web pages and other content are delivered by views. Each view is represented by a simple Python function (or method, in the case of class-based views). Django will choose a view by examining the URL that’s requested (to be precise, the part of the URL after the domain name).
Now in your time on the web you may have come across such beauties as “ME2/Sites/dirmod.
Writing more views
Now let’s add a few more views to polls/views.py. These views are slightly different, because they take an argument:
polls)
Wire these new views into the polls.urls module by adding the following path() calls:
polls/urls.py
from django.urls import pathfrom . import viewsurlpatterns = [# ex: /polls/path('', views.index, name='index'),# ex: /polls/5/path('<int:question_id>/', views.detail, name='detail'),# ex: /polls/5/results/path('<int:question_id>/results/', views.results, name='results'),# ex: /polls/5/vote/path('<int:question_id>/vote/', views.vote, name='vote'),]
Take a look in your browser, at “/polls/34/”. It’ll run the detail() method and display whatever ID you provide in the URL. Try “/polls/34/results/” and “/polls/34/vote/” too – these will display the placeholder results and voting pages.
When somebody requests a page from your.
There’s no need to add URL cruft such as .html – unless you want to, in which case you can do something like this:
path('polls/latest.html', views.index),
But, don’t do that. It’s silly.
Write views that actually do something 2. Here’s one stab at a new index() view, which displays the latest 5 poll questions in the system, separated by commas, according to publication date:
polls/views.py
from django.http import HttpResponsefrom .models import Questiondef index(request):latest_question_list = Question.objects.order_by('-pub_date')[:5]output = ', '.join([q.question_text for q in latest_question_list])return HttpResponse(output)# Leave the rest of the views (detail, results, vote) unchanged
There’s a problem here, though: the page’s design is hard-coded in the view. If you want to change the way the page looks, you’ll have to edit this Python code. So let’s use Django’s template system to separate the design from Python by creating a template that the view can use.
First, create a directory called templates in your polls directory. Django will look for templates in there.
Your project’s TEMPLATES setting describes how Django will load and render templates. The default settings file configures a DjangoTemplates backend whose APP_DIRS option is set to True. By convention DjangoTemplates looks for a “templates” subdirectory in each of the INSTALLED_APPS.
Within the templates directory you have just created, create another directory called polls, and within that create a file calledindex.html. In other words, your template should be at polls/templates/polls/index.html. Because of how the app_directories template loader works as described above, you can refer to this template within Django simply as polls/index.html.
Template namespacing: Now we might be able to get away with putting our templates directly in polls/templates (rather than creating another polls subdirectory), but it would actually be a bad idea.:
polls/templates/polls/index.html
{% if latest_question_list %}<ul>{% for question in latest_question_list %}<li><a href="/polls/{{ question.id }}/">{{ question.question_text }}</a></li>{% endfor %}</ul>{% else %}<p>No polls are available.</p>{% endif %}
Now let’s update our index view in polls/views.py to use the template:
polls/views.py
from django.http import HttpResponsefrom django.template import loaderfrom .models import Questiondef index(request):latest_question_list = Question.objects.order_by('-pub_date')[:5]template = loader.get_template('polls/index.html')context = {'latest_question_list': latest_question_list,}return HttpResponse(template.render(context, request))
That code loads the template called polls/index.html and passes it a context. The context is a dictionary mapping template variable names to Python objects.
Load the page by pointing your browser at “/polls/”, and you should see a bulleted-list containing the “What’s up” question from Tutorial 2. The link points to the question’s detail page.
A shortcut: render()
It’s a very common idiom to load a template, fill a context and return an HttpResponse object with the result of the rendered template. Django provides a shortcut. Here’s the full index()view, rewritten:
polls/views.py
from django.shortcuts import renderfrom .models import Questiondef index(request):latest_question_list = Question.objects.order_by('-pub_date')[:5]context = {'latest_question_list': latest_question_list}return render(request, 'polls/index.html', context)
Note that once we’ve done this in all these views, we no longer need to import loader and HttpResponse (you’ll want to keep HttpResponse if you still have the stub methods for detail, results, and vote).
The render() function takes the request object as its first argument, a template name as its second argument and a dictionary as its optional third argument. It returns an HttpResponse object of the given template rendered with the given context.
Raising a 404 error
Now, let’s tackle the question detail view – the page that displays the question text for a given poll. Here’s the view:
polls/views.py
from django.http import Http404from django.shortcuts import renderfrom .models import Question# ...def detail(request, question_id):try:question = Question.objects.get(pk=question_id)except Question.DoesNotExist:raise Http404("Question does not exist")return render(request, 'polls/detail.html', {'question': question})
The new concept here: The view raises the Http404 exception if a question with the requested ID doesn’t exist.
We’ll discuss what you could put in that polls/detail.html template a bit later, but if you’d like to quickly get the above example working, a file containing just:
polls/templates/polls/detail.html
{{ question }}
will get you started for now.
A shortcut: get_object_or_404()
It’s a very common idiom to use get()and raise Http404 if the object doesn’t exist. Django provides a shortcut. Here’s the detail()view, rewritten:
polls/views.py
from django.shortcuts import get_object_or_404, renderfrom .models import Question# ...def detail(request, question_id):question = get_object_or_404(Question, pk=question_id)return render(request, 'polls/detail.html', {'question': question})
The get_object_or_404() function takes a Django model as its first argument and an arbitrary number of keyword arguments, which it passes to the get()function of the model’s manager. It raises Http404if the object doesn’t exist.
Philosophy: Why do we use a helper function get_object_or_404() instead of automatically catching the ObjectDoesNotExistexceptions at a higher level, or having the model API raise Http404 instead of ObjectDoesNotExist?
Because that would couple the model layer to the view layer. One of the foremost design goals of Django is to maintain loose coupling. Some controlled coupling is introduced in the django.shortcuts module.
There’s also a get_list_or_404()function, which works just as get_object_or_404()– except using filter()instead of get(). It raises Http404 if the list is empty.
Use the template system
Back to the detail()view for our poll application. Given the context variable question, here’s what the polls/detail.html template might look like:
polls/templates/polls/detail.html
<h1>{{ question.question_text }}</h1><ul>{% for choice in question.choice_set.all %}<li>{{ choice.choice_text }}</li>{% endfor %}</ul>
The template system uses dot-lookup syntax to access variable attributes. In the example of {{ question.question_text }}, first Django does a dictionary lookup on the object question. Failing that, it tries an attribute lookup – which works, in this case. If attribute lookup had failed, it would’ve tried a list-index lookup.
Method-calling happens in the {% for %} loop: question.choice_set.all is interpreted as the Python code question.choice_set.all(), which returns an iterable of Choice objects and is suitable for use in the {% for %} tag
See the template guide for more about templates.
Removing hardcoded URLs in templates
Remember, when we wrote the link to a question in the polls/index.html template, the link was partially hardcoded like this:
<li><a href="/polls/{{ question.id }}/">{{ question.question_text }}</a></li>
The problem with this hardcoded, tightly-coupled approach is that it becomes challenging to change URLs on projects with a lot of templates. However, since you defined the name argument in thepath() functions in the polls.urls module, you can remove a reliance on specific URL paths defined in your url configurations by using the {% url %} template tag:
<li><a href="{% url 'detail' question.id %}">{{ question.question_text }}</a></li>
The way this works is by looking up the URL definition as specified in the polls.urls module. You can see exactly where the URL name of ‘detail’ is defined below:
...# the 'name' value as called by the {% url %} template tagpath('>/', views.detail, name='detail'),...
Namespacing URL names
The tutorial project has just one app, polls. In real Django projects, there might be five, ten, twenty apps or more. How does Django differentiate the URL names between them? For example, the polls app has a detail view, and so might an app on the same project that is for a blog. How does one make it so that Django knows which app view to create for a url when using the {% url %} template tag?
The answer is to add namespaces to your URLconf. In the polls/urls.py file, go ahead and add an app_name to set the application namespace:
polls/urls.py
from django.urls import pathfrom . import viewsapp_name = 'polls'urlpatterns = [path('', views.index, name='index'),path('<int:question_id>/', views.detail, name='detail'),path('<int:question_id>/results/', views.results, name='results'),path('<int:question_id>/vote/', views.vote, name='vote'),]
Now change your polls/index.html template from:
polls/templates/polls/index.html
<li><a href="{% url 'detail' question.id %}">{{ question.question_text }}</a></li>
to point at the namespaced detail view:
polls/templates/polls/index.html
<li><a href="{% url 'polls:detail' question.id %}">{{ question.question_text }}</a></li>
When you’re comfortable with writing views, read part 4 of this tutorial to learn about simple form processing and generic views. | https://www.commonlounge.com/discussion/9aed346bd2434fad85fc62577e9525ac/all/30e322b617e448d5a2e80ec84e65d637 | CC-MAIN-2021-49 | refinedweb | 1,749 | 60.51 |
![endif]-->
This page presents a library to use a SMARTWAV intelligent embedded audio processor from Vizic Technologies: the easiest way to add High Quality Stereo Sound to any project:
SMARTWAV explained
#include <SMARTWAV.h> //Create our object
in your main sketch and create the object:
SMARTWAV sWav; //Create the object
//main #include <SMARTWAV.h> //include the SMARTWAV library! SMARTWAV sWav; //create our object called sWAV (smartWAV) void setup() { //initial setup //Those two functions must always be called for SMARTWAV support sWav.init(); //configure the serial and pinout of arduino board for SMARTWAV support sWav.reset(); //perform an initial reset } void loop() { //main loop char playList[50]; //array that stores all the microSD card audio files char folders[50]; //array that stores all the microSD card folders/Dirs char songName[10]; //array that stores the audio file name while(1){ //loop forever sWav.playTracks(); //Play any audio track stored on the microSD card root path delay(2000); /let it play some seconds sWav.pausePlay(); //Pause track delay(2000); //let it play some seconds sWav.pausePlay(); //resume track delay(2000); //let it play some seconds sWav.rewindTrack(); //rewind track delay(2000); //let it play some seconds sWav.nextTrack(); //jump to next track delay(2000); //let it play some seconds sWav.stopTrack(); //stop playing track sWav.playTrackName("lovers"); //play track named "Lovers" stored on the microSD card wait(20000); //let it play some seconds sWav.getFileName(name); //get current playing song name sWav.stopTrack(); //stop track sWav.getFolderList(folders); //get folder list on microSD card sWav.getFileList(playList); //get audio files/song list on microSD card sWav.setFolder("Rock"); //enter "Rock" folder sWav.playTracks(); //Play any audio track stored on the microSD card 0:/Rock/ path sWav.playSpeed(TWOX); //set play speed to 2X sWav.continuousPlay(ENABLE); //enable continuous play } }
SMARTWAV as Audio Player - (Stand-Alone Mode)
More soon will be uploaded...
All the Source Code of those videos, and many other examples could be downloaded from HERE. | http://playground.arduino.cc/SmartWAV/SmartWAV | CC-MAIN-2014-41 | refinedweb | 325 | 66.74 |
Introduction to Bidirectional Search
Bidirectional search is a graph search where unlike Breadth First search and Depth First Search, the search begins simultaneously from Source vertex and Goal vertex and ends when the two searches meet somewhere in between in the graph. This is thus especially used for getting results in a fraction of the time taken by both DFS and FS searches. The search from the initial node is forward search while that from the goal node is backwards. It is also based on heuristic search meaning finding the shortest path to goal optimally.
Bidirectional Search Algorithm
Heuristic refers to the concept of finding the shortest path from the current node in the graph to the goal node. The search always takes the shortest path to the goal node. This principle is used in a bidirectional heuristic search. The only difference being the two simultaneous searches from the initial point and from goal vertex. The main idea behind bidirectional searches is to reduce the time taken for search drastically.
This happens when both searches happen simultaneously from the initial node depth or breadth-first and backwards from goal nodes intersecting somewhere in between of the graph. Now the path traverses through the initial node through the intersecting point to goal vertex is the shortest path found because of this search. This is the shortest path and found in a fraction of time taken by other search algorithms.
This can be simplified by the following example.
Step 1: Say, A is the initial node and O is the goal node, and H is the intersection node.
Step 2: We will start searching simultaneously from start to goal node and backward from goal to start node.
Step 3: Whenever the forward search and backward search intersect at one node, then the searching stops.
Thus, it is possible when both the Start node and goal node are known and unique, separate from each other. Also, the branching factor is the same for both traversals in the graph. Also, other points to be noted are that bidirectional searches are complete if a breadth-first search is used for both traversals, i.e. for both paths from start node till intersection and from goal node till intersection.
Time and Space complexity of the bidirectional search is represented by O(b^{d/2})
Two main types of bidirectional searches are as follows:
- Front to back or BFEA
- Front to Front or BFFA
1. Front to back or BFEA
In bidirectional Front, to Front Search, two heuristic functions are needed. First is the estimated distance from a node to goal state using forwards search and second, node to start state using reverse action. Here, h is calculated in the algorithm, and it is the heuristic value of the distance between the node n to the root of the opposite search tree s or t. This is the most widely used bidirectional search algorithm of the three types.
2. Front to Front or BFFA
Here the distance of all nodes is calculated, and h is calculated as the minimum of all heuristic distances from the current node to nodes on opposing fronts.
Code:
#include <bits/stdc++.h>
using namespace std;
class Bi_Graph
{
list<int> *j;
int v;
public:
Bi_Graph(int v);
int intersect(bool *a_marked, bool *b_marked);
void edge(int x, int y);
void route(int *a_head, int *b_head, int a, int b, int intersectPoint);
void bfs(list<int> *q, bool *marked, int *head);
int bi_search(int a, int b);
};
void Bi_Graph::bfs(list<int> *q, bool *marked,int *head)
{
int c = q->front();
q->pop_front();
list<int>::iterator i;
for (i=j[c].begin();i != j[c].end();i++) {
if (!marked[*i]) {
head[*i] = c;
marked[*i] = true;
q->push_back(*i);
}
}
};
void Bi_Graph::edge(int x, int y)
{
this->j[x].push_back(y);
this->j[y].push_back(x);
};
int Bi_Graph::intersect(bool *a_marked, bool *b_marked)
{
int intersectPoint = -1;
for(int i=0;i<v;i++)
{
if(a_marked[i] && b_marked[i])
return i;
}
return -1;
};
Bi_Graph::Bi_Graph(int v)
{
this->v = v;
j = new list<int>[v];
};
void Bi_Graph::route(int *a_head, int *b_head, int a, int b, int intersectPoint)
{
vector<int> pt;
pt.push_back(intersectPoint);
int i = intersectPoint;
while (i != a)
{
pt.push_back(a_head[i]);
i = a_head[i];
}
reverse(pt.begin(), pt.end());
i = intersectPoint;
while(i != b) {
pt.push_back(b_head[i]);
i = b_head[i];
}
vector<int>::iterator iterator;
cout<<"Output is ";
for(iterator = pt.begin();iterator != pt.end();iterator++)
cout<<*iterator<<" ";
};
int Bi_Graph::bi_search(int a, int b) {
bool a_marked[v], b_marked[v];
int a_head[v], b_head[v];
list<int> a_q, b_q;
int intersectPoint = -1;
for(int i=0; i<v; i++) {
a_marked[i] = false;
b_marked[i] = false;
}
a_q.push_back(a);
a_marked[a] = true;
a_head[a]=-1;
b_q.push_back(b);
b_marked[b] = true;
b_head[b] = -1;
while (!a_q.empty() && !b_q.empty()) {
bfs(&a_q, a_marked, a_head);
bfs(&b_q, b_marked, b_head);
intersectPoint = intersect(a_marked, b_marked);
if(intersectPoint != -1) {
route(a_head, b_head, a, b, intersectPoint);
exit(0);
}
}
return -1;
}
int main()
{
int total=11,a=0,b=7;
Bi_Graph bg(total);
bg.edge(0, 2);
bg.edge(1, 2);
bg.edge(2, 4);
bg.edge(3, 4);
bg.edge(4, 5);
bg.edge(5, 6);
bg.edge(6, 7);
bg.edge(6, 8);
bg.edge(8, 9);
bg.edge(8, 10);
if (bg.bi_search(a, b) == -1)
cout << "No path ";
return 0;
}
Output:
Advantages and Disadvantages of Bidirectional Search
Given below are the advantages and disadvantages:
Advantages
Below are the advantages:
- One of the main advantages of bidirectional searches is the speed at which we get the desired results.
- It drastically reduces the time taken by the search by having simultaneous searches.
- It also saves resources for users as it requires less memory capacity to store all the searches.
Disadvantages
Below are the disadvantages:
- The fundamental issue with bidirectional search is that the user should be aware of the goal state to use bidirectional search and thereby to decrease its use cases drastically.
- The implementation is another challenge as additional code and instructions are needed to implement this algorithm, and also care has to be taken as each node and step to implement such searches.
- The algorithm must be robust enough to understand the intersection when the search should come to an end or else there’s a possibility of an infinite loop.
- It is also not possible to search backwards through all states.
Conclusion
Although it has several drawbacks, a bidirectional search is the most efficient and fastest way to get to desired search results when the goal state is known before the search begins and therefore one of the most widely used and researches search algorithms available. Anyone looking to make a career in ‘Search’ of the Database management system should have a working knowledge of all search algorithms, and bidirectional is the most unique and sought-after algorithms.
Recommended Articles
This is a guide to Bidirectional Search. Here we discuss the introduction to bidirectional Search along with algorithm, advantages and disadvantages. You may also have a look at the following articles to learn more – | https://www.educba.com/bidirectional-search/ | CC-MAIN-2022-40 | refinedweb | 1,179 | 54.32 |
#include <nng/nng.h> typedef enum { NNG_PIPE_EV_ADD_PRE, NNG_PIPE_EV_ADD_POST, NNG_PIPE_EV_REM_POST, } nng_pipe_ev; typedef void (*nng_pipe_cb)(nng_pipe, nng_pipe_ev, void *); int nng_pipe_notify(nng_socket s, nng_pipe_ev ev, nng_pipe_cb cb, void *arg);
nng_pipe_notify(3)
NAME
nng_pipe_notify - register pipe notification callback
SYNOPSIS
DESCRIPTION
The
nng_pipe_notify() function registers the callback function cb
to be called whenever a pipe the pipe event specified by
ev occurs on the socket s.
The callback cb will be passed arg as its final argument.
A different callback may be supplied for each event. Each event may have at most one callback registered. Registering a callback implicitly unregisters any previously registered.
The following pipe events are supported:
NNG_PIPE_EV_ADD_PRE
This event occurs after a connection and negotiation has completed, but before the pipe is added to the socket. If the pipe is closed (using
nng_pipe_close()) at this point, the socket will never see the pipe, and no further events will occur for the given pipe.
NNG_PIPE_EV_ADD_POST
This event occurs after the pipe is fully added to the socket. Prior to this time, it is not possible to communicate over the pipe with the socket.
NNG_PIPE_EV_REM_POST
This event occurs after the pipe has been removed from the socket. The underlying transport may be closed at this point, and it is not possible communicate using this pipe.
RETURN VALUES
This function returns 0 on success, and non-zero otherwise. | https://nng.nanomsg.org/man/tip/nng_pipe_notify.3.html | CC-MAIN-2021-04 | refinedweb | 223 | 53.1 |
Hi,:
- A customer has seen some critical data go missing.
- That data was replicated via the File Replication Service (FRS) or the Distributed File System Replication (DFSR) Service.
- Before they restore the data with their backup copy, they want to have root cause on who deleted what and where it started. We can’t do this after restoring data because our whole audit trail will of course be destroyed within the respective JET databases..
- For this example we have three servers called 2003SRV13, 2003SRV16, and 2003SRV17.
- We have a folder called c:\frstestlink\importantfolder13 that has been deleted.
- It contained a file called c:\frstestlink\importantfolder13\importantfile13.doc which was deleted (naturally). Our folder could contain thousands of files but we just need to know one. That’s easy, someone is screaming at you that it’s missing. 🙂
Install on any server that participated in the FRS content set where data was deleted.
Open a CMD prompt and navigate to the FRSDIAG directory. This will default
computer = talk to the NtFrs service on this machine.
ntfrsutl ds [computer]
= list the service’s view of the DS
computer = talk to the NtFrs service on this machine.
ntfrsutl sets [computer]
= list the active replica sets
computer = talk to the NtFrs service on this machine.
ntfrsutl version [computer]
= list the api and service versions
computer =
NTFRSUTL IDTABLE > idtable.txt
(Note: the output from NTFRSUTL IDTABLE is not the same as collecting IDTABLE information with FRSDIAG’s GUI console).
We then start FRSDIAG and click the ‘Browse’ button. Drop down the Replica Set and select the one that contained deleted data. Click ‘Add All’ to add the members. Then click ok.
Click ‘Tools’ then select ‘Build GUID2Name for Target Server(s)‘.
This will create us a text file that lists out GUID and its associated SERVER NAME, like so:
======================================================
Replica Set GUID : 6f83352f-f404-4eda-a714ae1691e3e9d8
Replica
e8219dee-532a-4dff-83f09f036e331daa {6F617C11-2997-4134-952B-5B3572D4AF70} 2003srv17
e
FileID : 00130000 00003e45
ParentGuid : 2d7a8327-7308-4464-a63e367e39c27690 << Folder it was in
ParentFileID : 000d0000 00003e37
VersionNumber : 00000001
EventTime : Wed Aug 22, 2007 11:57:26 << when deleted
OriginatorGuid : 30409f5d-8493-41ad-a98ab03fc1b795e5 << where deleted
OriginatorVSN : 01c7e4c3 ea6dd496
CurrentFileUsn : 00000000 001be408
FileCreateTime :
FileWriteTime :
FileSize : 00000000 000000a0
FileObjID : 3647d318-502f-11dc-a1070003ff6813c5
FileName : importantfile13.doc << here’s our file
FileIsDir : 00000000
FileAttributes : 00000020 Flags [ARCHIVE ]
Flags : 00000001 Flags [DELETED ] << Proof of deletion
ReplEnabled : 00000001
TombStoneGC : Sun Oct 21, 2007 11:57:26
OutLogSeqNum : 00000000 00000000
Spare1Ull : 00000000 00000001
MD5CheckSum : MD5: a41eea20 979f04e9 dff7592a e8dc3e8b
RetryCount : 0
FirstTryTime :
We then look in the OUTLOG.TXT to confirm the folder matches up using ParentGuid above:
Table Type: Outbound Log Table for FRSTEST|FRSTESTLINK (1)
SequenceNumber : 0000008d
Flags :md
FileAttributes : 00000010 Flags [DIRECTORY ]
FileVersionNumber : 00000001
PartnerAckSeqNumber : 00000000
FileSize : 00000000 00000000
FileOffset : 00000000 00000000
FrsVsn : 01c7e44b df699803
FileUsn : 00000000 001bd690
JrnlUsn : 00000000 001bd690
JrnlFirstUsn : 00000000 001bd690
OriginalReplica : 1 [???]
NewReplica : 1 [???]
ChangeOrderGuid : cf3bc76b-b3e1-4e72-ae8962371bb48501
OriginatorGuid : e8feaedc-6bce-41f4-94c39cade3932da8
FileGuid : 2d7a8327-7308-4464-a63e367e39c27690 << there’s our GUID
OldParentGuid : 53605485-4dd4-4b9a-bc5a022760515559
NewParentGuid : 53605485-4dd4-4b9a-bc5a022760515559
CxtionGuid : 92f5d906-cd45-4639-973021461e454c8b
Spare1Ull :
MD5CheckSum : MD5: b68d5ccf 21f8b5dd e7eb48f1 f45b01d9
RetryCount : 0
FirstTryTime : Wed Aug 22, 2007 11:55:21
EventTime : Wed Aug 22, 2007 11:55:18
FileNameLength : 34
FileName : ImportantFolder13 << definitely our folder that was deleted
C
FileID : 000d0000 00003e37
ParentGuid : 53605485-4dd4-4b9a-bc5a022760515559
ParentFileID : 00030000 000039bc
VersionNumber : 00000002
EventTime : Wed Aug 22, 2007 11:57:23 << there’s the delete time
OriginatorGuid : 30409f5d-8493-41ad-a98ab03fc1b795e5 << here’s the source of the delete
OriginatorVSN : 01c7e4c3 ea6dd495
CurrentFileUsn : 00000000 001beba8
FileCreateTime :
FileWriteTime :
FileSize : 00000000 00000000
FileObjID : 2d7a8327-7308-4464-a63e367e39c27690
FileName : Dc9
FileIsDir : 00000001
FileAttributes : 00000010 Flags [DIRECTORY ]
Flags : 00000001 Flags [DELETED ] << confirmed that it’s been deleted
ReplEnabled : 00000001
TombStoneGC : Sun Oct 21, 2007 11:57:23
OutLogSeqNum : 00000000 00000000
Spare1Ull : 00000000 00000000
MD5CheckSum : MD5: b68d5ccf 21f8b5dd e7eb48f1 f45b01d9
RetryCount : 0
First? 🙂:
- We have our three servers 2003SRV13, 2003SRV16, and 2003SRV17.
- All are in a Replication Group called ImportantData.
- They have a Replicated Folder called… wait for it… ReplicatedFolder.
- That folder contains various files and folders, including a folder called ImportantSubFolder. It contains some files, including one called critical.doc. Naturally, someone has deleted critical.doc… let’s figure out where and
87=‘critical.doc’ and replicatedfolderguid=’8722EF11-6466-4472-888F-11B8A57B68A4′):
Object Type : DfsrVolumeInfo
Computer : 2003SRV16.fabrikam.com << The Server where the delete occurred
Volume Guid : 346CA491-54BA-11DB-91ED-806E6F6E6963
Volume Path : C:
Volume SN : 1826913329
DB Guid : BAA4E6D9-BF1A-4C83-ADF4-FDFD481AE2FC’:
C:\>wmic /namespace:\\root\microsoftdfs path DfsrReplicatedFolderInfo get ReplicatedFolderGuid,ReplicatedFolderName,ReplicationGroupName > rfinfo.txt‘ and replicatedfolderguid=‘87 ‘critical.doc%‘” get * /format:textvaluelist
ConflictFileCount=1
ConflictPath=\\.\C:\replicatedfolder\importantsubfolder\critical.doc
ConflictSizeInBytes=881211
ConflictTime=20070823233010.000000-000
ConflictType=5
FileAttributes=32
FileName=critical.doc-{97DA0CC3-DBB4-437F-BB6F-BE8A970FE318}-v27
GVsn={97DA0CC3-DBB4-437F-BB6F-BE8A970FE318}-v27
MemberGuid=2C50672F-32A2-4D7D-AF44-88E1812F6E08
ReplicatedFolderGuid=8722EF11-6466-4472-888F-11B8A57B68A4
ReplicationGroupGuid=6143BD54-C9CC-42E1-A1FA-03BB34BF87F2
Uid=
A very technical but very informative article on finding out who deleted a file or folder in a FRS or DFS-R environment. Three things I took away from this article #1: Audit information is very important for tracking this kind of activity. It is po
Hi, Ned again. Today I’d like to talk about troubleshooting DFS Replication (i.e. the DFSR service
Hello,
Very good stuff! 🙂
I had an issue where the Policies and Scripts folders are morphed as this:
Policies.
Policies_NTFRS_XXXXXX.
Scripts.
Scripts_NTFRS_XXXXX.
These morphed folders appeared at the same time an administrator that did an authoritative restore of an OU.
We wantsto have proofs. Is there a wayto know the "Where, When" those morphed folders appeared, and if possible who did it.
Is there a Tag, in the idtable or elsewhere, that corresponds to a restoration of those morphed folders ?
Thx for your input.
Yann
Hi,
The steps are pretty much identical as above except that you don’t care about the FLAGS being set to deleted. There’s nothing marking them as morphed bu the name, and you have that piece.
An auth restore of an OU would not be able to cause this issue though – it would have no effect on FRS. But if someone was using GPMC incorrectly (KB929266) or if they set a D4 burflag as part of their steps without setting D2 downstream (Kb315457) it would be very possible that the issue happened at roughly the same time.
Hello,
Thx for your input. I saw endded the Policies and Scripts morphed folders in the idtable. They refer to a DC.
It seems that if you ticked in the "When restoring replicated data sets, mark the restored data as the primary data for all replicat sets" on the Advanced Retore Options dialog box of the ntbackup Restore tab, this can generate also name-morph conflicts with one set of directory trees having the normal name and the other set having the morphed folders.
Cheers,
Yann
Hi Ned,
Do you know what flag 6 is when looking at these logs? Is there a table or something I could look at?
Can you post that entry for me? I was reviewing source code to see, but FLAGS is used a lot to mean a lot of things.
Hi Ned. We are seeing this flag also when querying DfsrIdRecordInfo. Can’t seem to find any info on these flags other than what is in the table above. Very strange to see a 6 !
FileName Flags GVsn UpdateTime
110939.1 4 {7AF1E7E2-C4D6-4B16-BB54-A0D666D7B90D}-v519043 20100125035850.078084-000
110939.1 4 {7AF1E7E2-C4D6-4B16-BB54-A0D666D7B90D}-v519047 20100125040417.654113-000
110939.1 4 {7AF1E7E2-C4D6-4B16-BB54-A0D666D7B90D}-v581927 20100125093641.123998-000
110939.1 6 {7AF1E7E2-C4D6-4B16-BB54-A0D666D7B90D}-v605062 20100125124701.901408-000
110939.1 5 {7AF1E7E2-C4D6-4B16-BB54-A0D666D7B90D}-v606675 20100128005546.546834-000
Hi,
A 6 would be name conflict on a previously advertised file. I haven’t really investigated that flag scenario though, but I expect there would be debug logs data showing that file had won a conflict at some point.
– Ned
These are the top Microsoft Support solutions for the most common issues experienced when using Windows
These are the top Microsoft Support solutions for the most common issues experienced when using Windows
This is a collection of the top Microsoft Support solutions for the most common issues experienced when | https://blogs.technet.microsoft.com/askds/2007/09/04/wheres-my-file-root-cause-analysis-of-frs-and-dfsr-data-deletion/ | CC-MAIN-2018-09 | refinedweb | 1,394 | 55.03 |
Right now I'm working on a GUI project, where I'm trying to take photos, found from the URLs I find from inside the source code of a website, and load them into my JavaFx GUI.
For example, I wish for Java to load the website, and collect all of the "cover photos"/thumbnails that you see as you scroll down the page (no matter the size of the image), and then load them into the GUI view (into an HBox full as a bunch of ImageViews for example).
More in-depth as well, eventually I would like to get it to the point, that the user could click on the image/imageview, and (again for example) it would show show the trailer for the selected movie. (My thinking, is that the trailer link would be found from website, if you clicked through and went to the next page, found the link, went to youtube, and removed all of the content except for the video player necessarily).
In the web-browser that I use, I have access see the page's HTML elements/design, and look through all of the source coding. After just a few twirls, I can easily find the direct URL to the thumbnail/image I'm looking for, and I've found that in javaFX I can load an image into my GUI as a URL, like so:
Image img = new Image("");
ImageView imgView = new ImageView(img);
public HBox listView(){
HBox temp = new HBox();
// Load the website
// Load the source code into a large string.
for (int i=0; i>=<numberOfPhotosPreCalculatedSomeHow>;i++){
Image img = new Image( /*Manipulated string algorithm to find the next image URL*/);
ImageView imgView = new ImageView(img);
ImageView.setOnAction(e -> { /* load the trailer */ }; } // (Lambda)
temp.getChildren().add(ImageView);
}
return temp;
}
Found the answer! There's built-in java methods that can allow me to scan in information from a website, and then decipher it as needed.
In my case, here's the code I used:
import java.io.IOException; import java.net.URL; import java.util.Scanner; public class WebReader { // Class variable to hold our found URLs :) ArrayList<String> listyArray; /** * @author alexnavarro */ public static void main(String[] args) throws IOException { // Gather page & URL data, and read it String address = ""; URL pageLocation = new URL(address); Scanner in = new Scanner(pageLocation.openStream()); // Initialize an ArrayList to store all of our collected URLs listyArray = new ArrayList<String>(); // Decipher the code line by line while(in.hasNext()){ String line = in.next(); if (line.contains("href=\"http://")){ int from = line.indexOf("\""); int to = line.lastIndexOf("\""); System.out.println(line.subString(from + 1, to); listyArray.add(line.subString(from + 1, to); } } // Next, we implement into JavaFx launch(args); } @Override public void start(Stage primaryStage){ primaryStage.setTitle("My loaded photos"); // Create a place to put our content HBox content = new HBox(); ScrollPane scrollPane = new ScrollPane(content); scrollPane.setFitToHeight(true); for (int i = 0; i <= listyArray.size() - 1; i++) { Image img = new Image(listyArray.get(i)); ImageView imgView = new ImageView(img); content.getChildren().add(imgView); } // Launch and sail away!! :) Scene s = new Scene(scrollPane, 800, 600); primaryStage.setScene(s); primaryStage.show(); } }
So this was the solution that I was able to find-- I can't believe it took me so long to find a solution, but I hope this helps anybody who is on the same boat that I am. :) | https://codedump.io/share/JIlj1eaaea3U/1/taking-photos-from-a-website-and-loading-them-in-javafx | CC-MAIN-2017-51 | refinedweb | 560 | 62.27 |
Let’s say you want to make a script that creates a PDF of a web page. pdfkit makes that pretty easy. Simply import pdfkit and then call pdfkit.from_url, passing along the source location as your first parameter and the resultant file as your second, as follows, using’s_New_in_This_Release.html as our source and just calling the pdf we create Release_Notes.pdf:
import pdfkit pdfkit.from_url(''s_New_in_This_Release.html', 'Release_Notes.pdf')
Your source location could also be from a standard html file (e.g. if you’re running from your site location) and for those you’d use pdfkit.from_file instead of pdfkit.from_url. If you don’t have pdfkit installed, you might need to pip it first:
pip install pdfkit
One last note, you can also change a few options you can pass pdfkit for job processing: page-size, margin-top, margin-left, margin-right, and margin-bottom:
import pdfkit myoptions = { 'page-size': 'A4', 'margin-top': '1in', 'margin-left': '1in', 'margin-right': '1in', 'margin-bottom': '1in', } pdfkit.from_url(''s_New_in_This_Release.html', 'Release_Notes.pdf',options=myoptions)
When I’ve used options, things always seem to take a long time and a lot more resources to run, so I don’t any more. But that’s just me… | http://krypted.com/tag/pdfkit/ | CC-MAIN-2019-22 | refinedweb | 206 | 65.42 |
Survey period: 22 Oct 2012 to 29 Oct 2012
Windows 8 is officially released this week. Will you move on up?
Vasudevan Deepak Kumar wrote:Rather using a console OS from Microsoft, shouldn't we consider our 19th century
Unix; which would be more reliably robust, secure and stable right?
public class Naerling : Lazy<Person>{
public void DoWork(){ throw new NotImplementedException(); }
}
butchzn wrote:I'm prediciting a bright future for MS OS 8+.
Tim Corey wrote:There will be a lot of people who stay on Windows 7, and I think that is ok.
For a lot of business cases, it continues to be the best platform for the job.
However, I think we should be glad Windows 8 is coming out. This release will
drive innovation. Apps will be built to support it and slowly an ecosystem will
(hopefully) emerge. This will eventually be great for businesses but for now it
will be a big win for the consumer.
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/script/Surveys/View.aspx?srvid=1364&msg=4407318 | CC-MAIN-2014-52 | refinedweb | 189 | 72.16 |
Chris Kunicki OfficeZealot.com
June 2004
Applies to:
Microsoft Visual Basic for Applications
Microsoft Visual Basic .NET 2003
Microsoft Visual Studio Tools for the Microsoft Office System
Microsoft Office 2003 Editions
Microsoft Office Word
Microsoft Office Excel
Summary: Read a case study of a migration from VBA to Visual Studio Tools for Office that highlights the migration process, best practices, and useful resources, and provides sample code to illustrate the concepts that are presented. (20 printed pages)
Download odc_VSTVBAtoVSTO_SAMPLE.msi.
Introduction Migration Case Study Migrating the VBA Solution Conclusion Resources
For years, developers have used Microsoft Visual Basic for Applications (VBA) to build Microsoft Office solutions. VBA has proven to be a reliable and capable development environment for individuals and in corporate teams. In recent times, many developers have noticed that demands placed on their solutions have exceeded the abilities of VBA and so we are beginning to see the transition from VBA to the professional development environment of the Microsoft .NET Framework, Microsoft Visual Studio 2005, Microsoft Visual Studio Tools for the Microsoft Office System, and Microsoft Office 2003.
How are organizations benefiting from these new technologies? First, the .NET Framework provides an extensive class library of scalable, reliable, and secure components that can be used for developing Web applications, Web services, Windows applications, and component libraries. Second, developers know that millions of people use Microsoft Office daily and that it is an ideal environment to reach users with enterprise solutions. Add Visual Studio Tools for Office to the mix, and you have the tools to successfully build an enterprise-ready .NET solution with a Microsoft Office Word or a Microsoft Office Excel document-based solution.
Once an organization has made the strategic decision to standardize on the .NET Framework and Microsoft Office 2003, questions are often raised about the effort to migrate existing VBA solutions to Visual Studio Tools for Office. For example, is it possible to migrate a VBA solution to Visual Studio Tools for Office? How much effort will it require? What issues are encountered during migration? What techniques exist to minimize migration effort?
This article addresses these questions and explores the process and techniques needed to migrate an existing Microsoft Office Word VBA solution to a Visual Studio Tools for Office solution. This article also provides guidance on best practices and includes pointers to useful migration-related developer resources.
Please note that although this article presents a Microsoft Office Word-based example, many of the ideas and techniques presented in this article also hold true for issues faced when migrating an Microsoft Office Excel VBA solution.
To discuss migration, it is helpful to have a sample project as a basis for this discussion. For that reason, I will profile the fictitious company Trey Research. Trey Research is a wholesale supplier and distributor of products normally sold in retail pharmacies. Their legal department has over 50 Microsoft Word 2002 and Microsoft Excel 2002 templates that they use regularly for corporate communications and contract agreements with vendors, suppliers, and retailers.
VBA automation is used to simplify the document creation and maintenance of Trey Research templates. These template solutions often collect information from a user, connect to a database, and provide reusable content based on document context.
This article discusses the migration of a template that reflects a common set of functions used by most of the legal department's templates. It is an ideal candidate for understanding the migration challenges for other templates. The template is the Supply and Service Agreement.
The VBA version of the Supply and Service Agreement works in Microsoft Office XP and Microsoft Office 2003.
To simplify the terminology in this paper, I use the term "VBA solution" for the original template being migrated and "Visual Studio Tools for Office solution" for the new version of the migrated template.
The Supply and Service Agreement helps the legal department in creating contracts for new retailers who want to sell Trey Research products. To follow along in using this template, download the sample code accompanying this article and extract the sample files to your local hard drive. Open the SupplyContractVBA.dot template in the VBA Solution directory included in the sample files. When the SupplyContractVBA.dot template opens, the form shown in Figure 1 is presented.
Figure 1. Form as completed by the user
This form simplifies collecting reseller and agreement information. The reseller's address and contact information is retrieved from the legal department's reseller tracking database using ADO for data access. When the user completes the form, the information in the form is pushed into document bookmarks and document variables. Bookmarks are a common way to tag data displayed in a Word document. Document variables, on the other hand, are not visible to the user and are ideal for storing information in a document that should only be changed by the business logic code of the solution. Figure 2 shows Page 1 of the new document with the customer information inserted into the document.
Figure 2. New document
Now the document is ready for normal editing. The template user modifies the legal text of this document. The editing task is simplified with the aid of a custom toolbar (see Figure 3) that is a part of the template. By using the toolbar, you can:
Figure 3. Custom toolbar
The boilerplate text contains frequently used contract text that can be easily inserted into the document. The boilerplate text is stored in individual Word documents stored on a network share. When the user selects contract text from the toolbar drop-down list and clicks the Insert button, the document fragment stored on the network share is inserted into the current cursor location of the active document.
When the user has completed editing the agreement, the Finalize button of the toolbar is clicked. The Finalize step marks the document as complete and records the location and document tracking number in the reseller tracking database. The custom toolbar is now removed and the document is protected so that it cannot be edited.
Now that you understand the business model of Trey Research and the Supply and Service Agreement template, let's move on to migrating the solution. First, it's important to have the goal for this migration clearly in mind. There are two approaches you can take:
In this approach, you focus on minimizing the work to get the VBA solution working in Visual Studio Tools for Office. The goal of the minimal effort approach is to focus on the language differences of VBA and Visual Basic .NET with the intent of not changing any code unless absolutely necessary.
Another approach is to rearchitect the solution to take advantage of new features of Office 2003 and the .NET Framework. This requires more planning, testing, and writing of new code. This approach, rearchitecting presents an opportunity to rethink a solution and add extra business value through new functionality and better integration with other enterprise systems, as well as improve code maintainability.
The following table summarizes the advantages and disadvantages of each approach.
Table 1. Migration Approach Comparison
Uses existing work from VBA solution
Reduced testing requirements of business logic
Net result: minimum effort and cost to get solution running quickly
Does not use .NET Framework (for example, ADO.NET and other class libraries, object oriented programming)
Dependent on old external libraries (for example, ADO, File System objects, Win32 API calls)
Allows tight integration with enterprise servers
Improves maintainability using .NET design best practices over VBA techniques
Requires increased testing for new code and business logic
Requires more effort and cost
Looking back at the business scenario, you find that Trey Research has decided to move all their VBA solutions to Visual Studio Tools for Office to gain the benefits of the .NET Framework. In the future, Trey Research plans to rearchitect the entire solution to take advantage of the new abilities of the .NET Framework and the release of Visual Studio Tools for Office 2005. A future article will discuss the rearchitecture of this template. For now, let's get the original VBA solution working within the .NET Framework.
Trey Research has chosen the minimal effort approach. You are tasked to migrate the VBA solution and to only do the work absolutely necessary to get the template working within the .NET Framework.
Before migrating the code, it is important to have an idea of the structure of the existing VBA solution and all its dependencies. Start by inventorying the components that make up a VBA solution. The following table summarizes the components of the VBA solution and its dependencies. If you want to follow along in the sample code, open the SupplyContractVBA.dot file in Word and open the Visual Basic Editor.
Table 2. VBA Solution Structure
File System Object
After inventorying the components of the VBA solution, consider the following questions:
After evaluating the answers to these questions, it becomes clear in which order the components should be migrated. You will also have a clear idea about the effort involved and which components will need the most attention.
Now that you have your migration goals clearly in mind and have assessed the scope of the work, you can begin the physical migration process. For the rest of this section, you will look at the steps I took to migrate the VBA solution to a Visual Studio Tools for Office solution. To follow along as I migrate the original VBA solution, in Word, open the SupplyContractVSTO.dot template in the VSTO Solution directory included in the sample files. Also open the Visual Studio solution file SupplyContract.sln in the VSTO Solution\SupplyContract directory.
First, the original template document must be prepared for migration. I made a copy of the SupplyContractVBA.dot and named it SupplyContractVSTO.dot. As it is likely you will have the original template and new template open in Word during the migration process, having a unique name for the Visual Studio Tools for Office solution helps avoid confusion about which document is being edited.
After copying the old template, I stripped out the old VBA solution code from SupplyContractVSTO.dot. This involved opening the new SupplyContractVSTO.dot document in Word and then, using the Visual Basic Editor, deleting all the modules, forms, and classes embedded in the document. The end result is a Word template with no embedded VBA.
Next, I created a Visual Studio Tools for Office project for my solution using the Microsoft Office Project Wizard found in Visual Studio. The Microsoft Office Project Wizard supports three solution types: Excel Workbook, Word Document, and Word Template. I selected Word Template, as it simplifies the process of creating an environment designed for Word templates.
Note It is important to specify the Word Template project type when migrating a template, as it contains the proper events in ThisDocument.cs. If a Word Document project type is selected, it does not include the ThisDocument_New event handler that you need to detect when a new instance of the template is created.
The Microsoft Office Project Wizard can produce source code in the Visual Basic and C# languages. Because VBA and Visual Basic are similar in syntax and lessen code changes, I selected the Visual Basic .NET version of the wizard.
The wizard asks if you want to create a blank template or use an existing template. For this solution, I selected Use existing document and specified the SupplyContractVSTO.dot file (see Figure 4).
Figure 4. The Microsoft Office Project Wizard
After clicking the Finish button in the wizard, it creates a new Visual Studio project that contains:
It also creates a ThisDocument.cs class file that mimics the ThisDocument class in a VBA project.
Now that I have a new project to work with, I want to configure the project with various global settings. First, because the VBA solution relies on ADO version 2.5 for data access, I need to add a reference to this library.
To add the ADO 2.5 Library in Visual Studio .NET
The Add Reference dialog box appears.
A new reference named ADODB is listed under the References node in the Solution Explorer.
Next, there are a number of frequently used libraries referenced in the project. Usually you use the Imports statement with the referenced libraries' namespace at the top of each code file to specify which class libraries are used. This project's source files use several common references and require the Imports statement to be used in each source file. To save time, Visual Basic .NET allows you to define project-level Imports used by every source file in the project.
To Add Project Level Imports in Visual Studio .NET
The project's Property Pages dialog box appears.
Figure 5. The Property Pages dialog box
This little technique is amazingly helpful for future migration steps when I bring in each VBA component. It saves me from having to figure out which namespaces the VBA component is dependent on as well as from having to defining the Imports statement at the top of the new code modules.
The Visual Studio Tools for Office solution contains a module named ThisDocument.vb. ThisDocument.vb corresponds to the VBA ThisDocument module. In VBA, ThisDocument allows you to capture the following events:
This event fires when a new document is created based on the template.
This event fires when an existing document based on the template is opened.
This event fires when the document based on the template is being closed.
The ThisDocument.vb module in the Visual Studio Tools for Office solution plays a similar role and causes ThisDocument_New and ThisDocument_Open to correspond with the VBA Document_New, and Document_Open events.
The code from the VBA ThisDocument class is copied into ThisDocument.vb. A few other changes are also made to ThisDocument.vb. For example, the toggleActiveXControls variable is changed from False to True, signaling that the solution has ActiveX controls in the document. Also, a new function is added called HookGlobalObjects. HookGlobalObjects is used to set up several global objects needed by the solution. These global objects are discussed in the next section.
Note When you migrate a template-based solution, it is a good idea to create a new document based on the template and to save it to disk for testing during the migration process. Because the ThisDocument_Open event only fires when an existing document is opened, it's convenient to have an existing document available for testing the ThisDocument_Open event.
When developing in the Word VBA environment, you are provided access to several global objects without having to declare them for use. For example:
For convenience, VBA developers often use these global objects. However, these global objects are not available directly in Visual Studio Tools for Office solutions unless they are declared. Any VBA code in your solution dependent on these global objects fails to compile until the global objects are explicitly declared in the Visual Studio Tools for Office solution. For this Visual Studio Tools for Office solution, I created a module in Visual Studio .NET called basDocumentGlobals.vb. In the following code, I define the global objects needed by the solution.
Public CurrentDocument As Document
Public WithEvents optMail As Microsoft.Vbe.Interop.Forms.OptionButton
Public WithEvents optEmail As Microsoft.Vbe.Interop.Forms.OptionButton
Public WithEvents optFax As Microsoft.Vbe.Interop.Forms.OptionButton
Public WithEvents optCustomerPickup As _
Microsoft.Vbe.Interop.Forms.OptionButton
The global objects in basDocumentGlobals.vb need to be set when a document is opened; this is done from the events in the ThisDocument.vb module using the ThisDocument_New and the ThisDocument_Open events. The HookGlobalObjects method of the ThisDocument module sets the Global objects:
Private Sub HookGlobalObjects()
CurrentDocument = ThisDocument
optMail = FindControl("optMail")
optFax = FindControl("optFax")
optEmail = FindControl("optEmail")
optCustomerPickup = FindControl("optCustomerPickup")
End Sub
In basDocumentGlobals.vb, I declare a variable called CurrentDocument that holds a pointer to the document to substitute where the original VBA code referred to the ActiveDocument object. I could have made a variable called ActiveDocument instead of CurrentDocument and all the code dependent on ActiveDocument would not need to be changed. I decided that it would be good to have a new name for the object, to avoid confusion with the ActiveDocument object provided in the Word object model. With CurrentDocument defined, it is simple to use the Visual Studio Find and Replace feature to replace all instances of "ActiveDocument" with "CurrentDocument".
I also created global objects for each ActiveX control used in the document in basDocumentGlobals.vb. These ActiveX controls are declared with the WithEvents keyword so you can capture the click events of these controls. This is different from VBA, where controls are automatically hooked to their events for you. Because the ActiveX controls need WithEvents to capture the events, I moved the original code behind the ActiveX controls from the VBA ThisDocument module into my new Visual Studio Tools for Office basDocumentGlobals.vb module.
Setting a reference to ActiveX controls embedded into a document can be tricky. The Visual Studio Tools for Office solution created by the Microsoft Office Project Wizard includes a utility function called FindControl(), which, when given a control name as a parameter, does all the work of binding a variable to the ActiveX control.
Now basDocumentGlobals.vb centralizes all the global object logic into one module, and these global objects become available to all modules in the project.
Next, migrate the shared components used in the template. The two shared components are basUtils and clsDAL. Let's first look at basUtils.
To migrate a component, you first have to create a new module in the Visual Studio Tools for Office solution and then copy and paste the original VBA code into the new module. This task is required for each component in your solution.
Add a New Item from Visual Studio .NET
The Add New Item dialog box appears with a module item selected.
A new module is added to the solution.
Now that you have a new module, open the basUtils module in the VBA project and select all the code. Then copy the code from basUtils and paste it into the new module that was created in Visual Studio.
As you start copying and pasting code from VBA to the Visual Studio Tools for Office solution, it is nice to discover that the VBA code and the Visual Basic .NET code are fairly compatible. For the most part, the pasted VBA code often requires little, if any, change. This is not to say that migrating code is as simple as copy and paste. It's not. But if you are aware of a number of the subtle differences between VBA and Visual Basic .NET, the copied code is easy to fix.
Where you can run into migration challenges is where the VBA code calls out to external libraries. For example, the VBA basUtils module makes WIN 32 API call to GetUserName. GetUserName is not a VBA function, it is a function call provided by Microsoft Windows to get the name of the user currently logged into the computer. The syntax for making WIN 32 API calls is different in Visual Basic .NET. For example, in VBA you declare the WIN 32 API call using the following code:
Declare Function GetUserName& Lib "advapi32.dll" Alias "GetUserNameA" _
(ByVal lpBuffer As String, nSize As Long)
In Visual Basic .NET, the API call is declared using the DLLImport function attribute:
<DllImport("advapi32.dll")> _
Public Function GetUserName(ByVal lpBuffer As StringBuilder, _
ByRef nSize As Integer) As Integer
End Function
For more information on converting WIN 32 API calls, see the Visual Basic Language Reference subject Walkthrough: Calling Windows APIs in the Microsoft MSDN Library.
One of the great things about the .NET Framework is that it provides a lot more Windows functionality for free than VBA did. For example in this case you could have used System.Environment.UserName instead of calling the WIN 32 API. However, there may still be cases where you need to call external libraries in .NET, and doing the exercise of trying it here is a great way to see how to do it.
Our VBA solution includes a class module called clsDAL. The shared component clsDAL manages access to the remote reseller database used by Trey Research. Just as you did with basUtils, you need to create a new class module in your Visual Studio Tools for Office solution and name it clsDAL. Then copy and paste the VBA code from clsDAL to the new clsDAL module in the Visual Studio Tools for Office solution.
One thing I like about copying VBA code and pasting it into the Visual Basic .NET Editor, is that Visual Basic .NET is smart enough to update some of my VBA code to the new syntax of Visual Basic .NET. For example, the VBA solution uses the Set keyword often when creating objects. Consider the following VBA code:
Set mConn = New ADODB.Connection
The Visual Basic .NET editor automatically updates the code to:
mConn = New ADODB.Connection
This added convenience saves time during migration and cleans up some of the code to use the new Visual Basic .NET syntax.
To retrieve and insert data into the reseller database, clsDAL uses ADO 2.5. The good news is that all the ADO code works without any change (earlier, you set a reference to the ADO 2.5 COM library).
What do have to be changed are the VBA methods Class_Initialize and Class_Terminate. Class_Initalize is first called when a VBA class is created and is now replaced with the New() method in Visual Basic .NET. Class_Terminate is called when the VBA class is shutting down and is now Finalize() in Visual Basic .NET. All I had to do was copy the code from Class_Initialize to New() and the code from Class_Terminate to Finalize().
Note You may have noticed that I like to use the same VBA component names in my migrated Visual Studio Tools for Office solution. For example the old data access layer class was named clsDAL and the new Visual Studio Tools for Office class module is also named clsDAL. Even though the VBA code uses the old-style Hungarian notation for object and variable names, a convention not encouraged when writing .NET code, I prefer to keep the object and variable names the same. It helps reduce confusion as I switch back and forth between the old VBA and new Visual Studio Tools for Office code. Again, the goal is to minimize effort and not rearchitect the solution.
The most challenging aspect of migrating the VBA solution to Visual Studio Tools for Office is the VBA UserForm (shown in Figure 1). The VBA UserForm engine is not compatible with .NET Windows Forms and so the form has to be manually rebuilt in Visual Studio .NET using the WinForm designer. Recreating a form is a time-consuming process, as each control and its settings have to be duplicated.
On the up side, because you had to convert the form manually, it gave you an opportunity to take advantage of the great controls that are included in the .NET Framework. For example, the .NET Framework includes a DateTimePicker control. This control provides a drop-down calendar so the user can easily browse a calendar for a date. The DateTimePicker also provides date and time validation, eliminating the date validation code of the old VBA solution. Not only did this save some time, but it reduced the amount of code you have to maintain. I was able to get rid of three VBA functions in the UserForm: FormatAsDate, txtAgreementDate_AfterUpdate, and txtPrepDate_AfterUpdate.
The VBA form has a method called UserForm_Initialize that is called when the form is first opened. UserForm_Initialize is not supported in the .NET Windows Form, therefore the UserForm_Initialize code has to be copied into the frmMain_Load event of the new Windows Form.
The form has a combo box control that is used for selecting a customer. The list of customers in the combo box is initialized in the UserForm_Initialize method. In VBA, the combo box control makes this easy to do through data binding an ADO Recordset to the control. The following code shows how this is done:
Dim rsCustomers As Recordset
Set rsCustomers = mData.GetActiveCustomerList
cboSelectClient.Column = rsCustomers.GetRows
Unfortunately, the Windows Form controls do not support binding to ADO Recordsets. At first I thought I'd have to write new code to walk through the Recordset and write the records to the combo box. Then I discovered that it is possible to convert a Recordset to an ADO.NET DataSet object and the DataSet can be bound to the Windows Form combo box control.
Dim rsCustomers As Recordset
rsCustomers = mData.GetActiveCustomerList
Dim da As New System.Data.OleDb.OleDbDataAdapter
Dim ds As New DataSet
da.Fill(ds, rsCustomers, "ActiveClients")
cboSelectClient.DataSource = ds.Tables("ActiveClients")
cboSelectClient.DisplayMember = "CompanyName"
cboSelectClient.ValueMember = "ClientID"
The code creates the ADO Recordset and stores it in rsCustomers. Then you create a DataSet object and push the rsCustomers Recordset into the DataSet with the DataAdapter.Fill method. From there, you can bind the DataSet to the Windows Form combo box. This technique requires a few more lines of code than the original VBA, but the approach still requires less code than manually walking each record in the ADO Recordset and populating the combo box. For more information on converting ADO Recordsets to ADO.NET DataSets, see the resource section at the end of this article.
Another difference between VBA UserForms and Visual Studio Tools for Office WinForms is in the properties and methods supported by the Windows Form controls. For example, if a user has not selected a customer when they try to complete the form in the VBA form, it does not close and opens the Select Customer combo box with the following code:
cboSelectClient.SetFocus
cboSelectClient.DropDown
The .NET combo box does not support these methods and had to be converted:
cboSelectClient.Focus()
cboSelectClient.DroppedDown = True
As you can see, the code is fairly similar, but the old VBA code won't compile and has to be changed. This was not an issue though, as the .NET controls in all cases were able to match the functionality of VBA controls, and in most cases the .NET controls were more powerful. In just a few minutes of using the Visual Studio editor's IntelliSense I was able to locate the .NET combo box methods and properties I needed. After the UserForm was converted to a Windows Form, it looks almost identical to the original. Figure 6 shows the converted Windows Form with the DateTimePicker control in action.
Figure 6. Converted Windows Form showing the DateTimePicker control
To wrap up the work on the form, there is a supporting module named basFormData that needs to be migrated. basFormData takes the information gathered in the form and populates it into the document bookmarks and variables. I created a new module named basFormData.vb and copied and pasted the original VBA code into the new module.
I then compiled the Visual Studio Tools for Office solution, and there were no errors. I even ran the project and it looked like everything was working. However, this module was a good reminder that it is important to thoroughly test migrated code, even if it compiles without an error. It wasn't immediately visible, but while testing the migrated solution, I spotted a subtle error in the code: the VBA Solution used the VBA Format() function to format the date fields inserted into the document.
Format(<<Date Value Here>>, "mmmm dd, yyyy")
I discovered that the Visual Basic .NET version of the format function required using uppercase MMMM for the month formatting to display correctly, as shown in the next line of code:
Format(<<Date Value Here>>, "MMMM dd, yyyy")
After making this small change, the Visual Basic .NET format function worked as expected. Again, this is a good reminder to verify the results of the migrated code even if it compiles.
The final component to migrate is the basToolbar module. The basToolbar contains the code that creates the template's CommandBar (see Figure 3). Once again, I created a new module and named it basToolbar.vb. I then copied and pasted the original code from the VBA solution into my new module.
I was able to reuse almost all of the code from the VBA solution, although a few changes were needed. First, I had to add the following module level CommandBarButton variables to basToolbar.vb:
Private WithEvents cbFormEdit As CommandBarButton
Private WithEvents cbInsertButton As CommandBarButton
Private WithEvents cbFinalizeButton As CommandBarButton
The CommandBarButton objects are declared using the WithEvents keyword so the button events can be captured. This is a key difference in how VBA and the .NET Framework handle CommandBars. In VBA, when creating a CommandBar, you specify the public function that is to be called when the user clicks the button through the OnAction property. For example, the VBA solution contains the following code:
Set cbFormEdit = cbar.Controls.Add(msoControlButton)
With cbFormEdit
.BeginGroup = True
.Tag = "WizardEdit"
.OnAction = "RunWizardAgain"
.FaceId = 1099
.Caption = "Edit Info"
.TooltipText = "Edit the contract information"
.Style = msoButtonIconAndCaptionBelow
End With
I changed this code to:
cbFormEdit = cbar.Controls.Add(MsoControlType.msoControlButton)
With cbFormEdit
.BeginGroup = True
.Tag = "WizardEdit"
.FaceId = 1099
.Caption = "Edit Info"
.TooltipText = "Edit the contract information"
.Style = MsoButtonStyle.msoButtonIconAndCaptionBelow
End With
There are two key differences. First, the VBA code creates a CommandBarButton and assigns it to the variable cbFormEdit. Notice that the VBA code has the OnAction property set to "RunWizardAgain". When a user clicks this cbFormEdit button, Word searches the underlying VBA for a public function named RunWizardAgain. In the Visual Studio Tools for Office solution, you use the .NET approach to capturing control events using WithEvents and specifying which function handles the click event of the button using the Handles keyword. I removed the OnAction property assignment from the migrated code and changed the original VBA function RunFromWizard() to:
"
".
Private Sub cbFormEdit_Click(ByVal Ctrl As CommandBarButton,_
ByRef CancelDefault As Boolean) Handles cbFormEdit.Click
When the user clicks the Edit Info button on the toolbar, .NET calls this function. I had to make the same changes to the other two buttons used in this solution's CommandBar.
The second difference in the CommandBarButton code is in how I set the style property to msoButtonIconAndCaptionBelow. The enumeration msoButtonIconAndCaptionBelow is built into the Office CommandBar type library that defines the way a button should appear. This enumeration is also available in the Visual Studio Tools for Office solution; however the full namespace path to the enumeration must be included. With this button, the full namespace path is MsoButtonStyle.msoButtonIconAndCaptionBelow.
Most of the modules migrated up to this point have included enumeration to referenced type libraries and often require that the full namespace path be used. In your own migration effort, keep in mind that if a property or method set with an enumeration fails to compile, it is likely that you do not have its namespace path fully qualified. If you don't know the full namespace path of an enumeration that won't compile, open the Visual Studio Object Browser and search on the name of the failing enumeration. The Object Browser returns all constant names and their full namespace path that match your search.
During the migration, I encountered several common issues. Just about every component that was copied and pasted into a new module required attention to these issues. Here are some to keep an eye out for.
All the components in the VBA solutions used Option Explicit. When Option Explicit appears in a module, you must explicitly declare all variables using the Dim, Private, Public, ReDim, or Static statements. If you attempt to use an undeclared variable name, an error occurs at compile time. If the Option Explicit statement is not used, all undeclared variables are of Variant type unless the default type is otherwise specified
By default, Visual Basic .NET is configured to use Option Explicit at a project level. Therefore the Option Explicit statement is not needed in the migrated code.
VBA objects and controls support the notion of a default property. If you try to get or set the value of an object or control without specifying the property you are trying to access, VBA assumes you are trying to access the default property. Visual Basic .NET, on the other hand, requires that each property you access be explicitly defined. For example, in the VBA solution, the value in the text box on the form (see Figure 1) was set using the following line of code:
Form.txtAgreementDate = "4/4/2004"
This line of code won't compile in Visual Basic .NET and has to be changed to explicitly state that the Value property should be accessed:
Form.txtAgreementDate.Value = "4/4/2004"
As a developer, I prefer the Visual Basic .NET approach. The Visual Basic .NET convention makes the code self-documenting in that it is clear about what I was changing in the object. Even so, VBA makes it easy to use the default property and you are likely to find a number of VBA objects and controls that must be changed to specify the property being accessed.
Error handling was one area I expected problems, as the VBA solution uses the old Visual Basic error handling syntax. This includes On Error Goto LABEL, On Error Goto 0 and Error Resume Next. To my surprise, the Visual Basic .NET language supports this old style of error handling and compiled just fine.
One thing I discovered during this migration is that you cannot mix the old On Error Goto Visual Basic syntax with the new Visual Basic .NET Try/Catch Error handling syntax in the same function. Your code will not compile if you try to combine these two forms of error handling. If you find that you need to modify the error handling in a routine, it is probably worth the effort to migrate the code to the Try/Catch handling syntax.
In the migration of this solution, the SendKeys command was the only VBA function not supported by Visual Basic .NET. SendKeys sends one or more keystrokes to the active window as if typed at the keyboard.
The VBA solution opens the drop-down list of Contract Text in the solutions CommandBar. Unfortunately the combo box control does not provide a method to open the list. The VBA solution mimics this functionality by selecting the control and then using SendKeys to press the DOWN ARROW key, which opens the list box:
cbCombo.SetFocus
SendKeys "{Down}"
I discovered that some of the old functions available in Word are still exposed through the WordBasic object. WordBasic returns an Automation object (Word.Basic) that includes methods for all the WordBasic statements and functions available in Word version 6.0 and Word for Windows 95. Is this a great solution? No. But it works and allows me to reach my goal of minimizing the effort required to get the solution working. I resolved this problem with the following line of code:
CurrentDocument.Application.WordBasic.SendKeys("{Down}")
The solution is now complete. All that remains is compiling the final project and running the solution through quality assurance. As the goal was to minimize the migration effort, the way the migrated solution is used by the user has not changed. The user continues to use the solution in the same way they did with the original VBA version.
Migrating a VBA solution to Visual Studio Tools for Office can be simplified with good planning, an understanding of the original VBA solution, and a familiarity with the language differences between VBA and Visual Basic .NET.
Happy programming!
Before migrating a VBA solution, it is a good idea to familiarize yourself with the following reference material:
About the Author, with the goal of helping developers take control of the world's most powerful software. Find out more about Chris and Office at or e-mail him at chris@officezealot.com. | http://msdn.microsoft.com/en-us/library/aa192482(office.11).aspx | crawl-002 | refinedweb | 6,007 | 54.93 |
Re: Shrink Wrap my EULA ?
From: Mike Brannigan [MSFT] (mikebran_at_online.microsoft.com)
Date: 02/11/05
- ]
Date: Fri, 11 Feb 2005 08:20:55 -0000
Your right to decline the EULA also occurs during install - that is why we
present it to your then.
You may refuse to accept it and the install will be cancelled.
-- Regards, Mike -- Mike Brannigan [Microsoft] This posting is provided "AS IS" with no warranties, and confers no rights Please note I cannot respond to e-mailed questions, please use these newsgroups "Vanguard" <use_ReplyTo@domain.invalid> wrote in message news:woGdnfuHh_GsuZHfRVn-tw@comcast.com... > "Woody" <Woody@ByteMe.com> wrote in message > news:O03w7B%23DFHA.1600@TK2MSFTNGP10.phx.gbl... >> no , this MS certified reseller , did not . since when have you ever seen >> any do so ? >> >> and since when should I have to purchase a product , get it home , >> install >> it then find out there are limitations to how I can use it ? >> >> it says NOWHERE on the outside that I am limited in my use of it >> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! >> >> >> wanna see ? >> >> > > > The seller doesn't need to know all what they buyer know or what they > don't know. They have to assume that you know what you are buying. If > you go to the tire dealer and say you need Brand X with certain dimensions > then that is the tire they sell regardless that you really didn't know > that particular tire would not fit on your car. It's not up to them to > educate you on the product that YOU chose to purchase from them. They > sell. It's not their job to educate, too. > > You have the right to refuse the EULA. Since the EULA is not physically > presented beforehand (by letting you read it on the side of the box or on > a separate *** included with the product then contract law still permits > you as a party to the contract to refuse the terms of such. For contracts > that are presented only after opening the package, like the EULA is inside > the shrink-wrapped package and not visible in its entirety through the > transparent shrink-wrap, or when only presented as an installed file or > during the installation, you still have the legal right to refuse the > contract and demand remuneration. I brought this up to our legal > department regarding the EULA being inside the sealed package and > invisible to the user before they opened the package, yet the EULA stated > that opening the package was confirmation of acceptance of the contract. > Our product is far higher priced than Microsoft's consumer-grade software > offerings and we didn't want such expensive returns or consternation by > our customers regarding what they were buying, so packaging was changed so > the EULA was visible through the shrink-wrap and all of it was contained > on one side of the paper thus nothing of it was hidden. > > I have returned products to their manufacturers, one of which was > Microsoft, due to my refusal of their terms in their contract (i.e., EULA) > and received back my monies (less the sales tax since that is not their > responsibility nor does any part of it return to them). > > I have never purchased a pre-built computer so I'm not sure what, if > anything, the jobber that builds the box needs to provide the customer > that buys the box regarding disclosure of any software that was > pre-installed. Again, it is not their job to educate their customers but > sell the customer what they asked for that the seller provides. If you > wanted an OEM version that included all the license documentation, the > cardboard wallet, and other materials in the OEM package then you need to > buy a *retail* version of the OEM package and not the jobber's bulk > version that doesn't include all the fluff. If instead you had actually > bought a separate retail copy of the OEM version of Windows, you should've > gotten the paper copy of the EULA along with the sticker (usually on the > shrink-wrap) for the product key. Just saying you got an OEM version > really doesn't say what you got. > > You mentioned getting a shrink-wrapped "booklet". Then that should have > included the paper *** for a hardcopy of the EULA. That's what comes in > every retail OEM version that I get. However, you make it sound like only > the OEM version restricts you to installing it on only 1 computer. That is > a requirement for ALL versions of Windows. The OEM version adds the > restriction that the license for an OEM version of Windows *must* stay > with the computer on which it is first installed; i.e., the OEM version is > permanently tied to the hardware which qualified its purchase. If you > read the EULA carefully, it need not be the entire computer which is the > qualifying hardware. An IDE or SATA cable is sufficient as qualifying > hardware to obtain the OEM version, so just move THAT hardware to whatever > computer on which you want to run THAT license of Windows. But you can > only run the 1 license that you got on 1 computer and that is true of all > versions of Windows, OEM or not. > > You're just pissed that you cannot legally buy one copy of Windows and use > it on every home computer that you own. You've always had to buy N > licenses for N computers. Being OEM has nothing to do with that. You > could buy a retail FULL (non-OEM) version of Windows and you *still* only > get to install it on one computer. Since you claim the paper copy of the > EULA was not in the booklet containing the OEM materials and since you > disagree with the EULA presented during installation or readable from the > install CD, call Microsoft to arrange a return. However, since you choose > to skip the EULA and install the software anyway, you agreed to the EULA. > You skipping it is no different than you not reading the loan contract and > just blindly signing your name. The law doesn't care about your choice to > remain ignorant and it comes back to "You signed the contract voluntarily > so it is irrelevant that YOU *chose* not to read it." The retailer that > sold you the software doesn't have to accept the return (and probably > won't except for defective installation media which qualifies it as > defective merchandise) because the EULA is a contract between you and > Microsoft, not between you and the retailer. > > "and since when should I have to purchase a product , get it home , > install it then find out there are limitations to how I can use it ?". > Never bought any software before? It's been that way for ages. By the > way, it is rare that you "then find out" after an install. Any software > that enforces a contract must legally present it to you beforehand (which > may be in hardcopy form or displayed at a point during the installation > where the user can then choose to abort the install without any changes > made to their system). Again, just because YOU elected to not bother > reading the EULA during the installation is not Microsoft's fault for your > laziness. Yeah, it is a pain to read those contracts. > > So, have you yet bothered to read the terms in the contract you made with > your credit card company? Do you actually read ALL of the contract when > you signup for automobile or home insurance? Self-elected ignorance may > be bliss but it doesn't absolve you of your legal obligations. If you > have read the EULA beforehand or at the start of the installation and > disagreed with it (so you never installed it) then you can return it > because you, as a party that must agree to the contract, can legally > reject the terms of that contract. You probably don't even have to prove > that the software is no longer on your computer but you will lose the > legal right to use the software if you reject its terms and return it. > Call Microsoft, tell them that you reject the terms of their EULA, ask for > return procedures, and go get something else, like Linux (and read its > user agreements). > > -- > ____________________________________________________________ > Post your replies to the newsgroup. Share with others. > E-mail reply: Remove "NIXTHIS" and add "#VS811" to Subject. > ____________________________________________________________ > >
- ] | http://www.tech-archive.net/Archive/WinXP/microsoft.public.windowsxp.general/2005-02/14274.html | crawl-002 | refinedweb | 1,400 | 66.78 |
Hi, I am trying to get precompiled headers to work with DMC and tried the
following:
test.h contents:
#ifndef _TEST_H__
#define _TEST_H__
#include <stddef.h>
#include <string>
#include <stdio.h>
typedef wchar_t WideChar;
typedef std::basic_string<WideChar> String;
#endif //_TEST_H__
then on the commandline (using Cygwin if that matters)
sc -Ar -Ae -HF./test.sym ./test.h
I get the following errors:
extern "C++" {
^
e:\dm\bin\..\include\../include/new.h(28) : Error: '=', ';' or ',' expected
}
^
e:\dm\bin\..\include\../include/new.h(45) : Error: identifier or '( declarator )
' expected
Error e:\dm\bin\..\include\../include/exception 14: Use C++ compiler for except
ion
--- errorlevel 1
I am using dmc:
"Digital Mars Compiler Version 8.38n"
with the STL that's provided on the website (STL 4.5.3)
I looked around the website a bit, but didn't find anything obvious to help out
- did I miss something or have I stumbled onto a bug?
Thanks !
Jim Crafton
In article <c8mmvp$2fl4$1 digitaldaemon.com>, ddiego users.sourceforge.net
says...
Hi, I am trying to get precompiled headers to work with DMC and tried the
following:
Oops - I guess I may have posted this too soon, on reading a little closer I
notice that the docs say:
"A header intended for precompilation should, therefore, contain only
declarations and no definitions."
So I am assuming that makes stuff like template class declarations/definitions
out of the question? Is there any kind of work around for this, say for STL,
etc?
Thanks again!
Jim Crafton
Hi, I am trying to get precompiled headers to work with DMC and tried the
following:
Compile with -cpp to tell the compiler that test.h is a C++ file, not a C
file. | http://www.digitalmars.com/archives/cplusplus/3971.html | CC-MAIN-2013-20 | refinedweb | 287 | 56.66 |
Hi Ian I think I have this thing lying around as well: On 27 Jun 2007, at 02:26, Ian Lynagh wrote: > dropPrefix :: Eq a => [a] -> [a] -> Maybe [a] > dropPrefix [] ys = Just ys > dropPrefix (x:xs) (y:ys) > | x == y = dropPrefix xs ys > dropPrefix _ _ = Nothing But while I was grepping for it, I found I had written something slightly different. Recalling that Monoid w makes Applicative ((,) w), I have leftFactor :: Eq x => [x] -> [x] -> ([x], ([x], [x])) leftFactor (x : xs) (y : ys) | x == y = ([x], ()) *> leftFactor xs ys leftFactor xs ys = pure (xs, ys) Properties: if leftFactor xs ys = (zs, (xs', ys')) then zs is the longest list such that xs == zs ++ xs' ys == zs ++ ys' You get dropPrefix cheaply dropPrefix :: Eq a => [a] -> [a] -> Maybe [a] dropPrefix xs ys | (_, ([], zs)) <- leftFactor xs ys = Just zs | otherwise = Nothing but I also use it to do "common ancestor" calculations on hierarchical namespaces. Indeed, I have in the past used this thing on paths/contexts to determine whether two subterms of a given term were nested or not. A more frivolous usage is this variation on an ancient program: gcdList :: Eq x => [x] -> [x] -> Maybe [x] gcdList xs ys = case leftFactor xs ys of (_, ([], [])) -> Just xs (_, ([], zs)) -> gcdList xs zs (_, (zs, [])) -> gcdList zs ys _ -> Nothing gcdList xs ys calculates the largest zs such that xs == [1..m] >> zs and ys == [1..n] >> zs if any such exists. I was wondering what solutions there might be to xs ++ ys == ys ++ xs when out it popped! But I digress. It could well be that dropPrefix is much the more common, and hence that extra fuss required to get it from leftFactor isn't worth it, but I thought I'd punt out the possibility. As for whether these things should return in Maybe, or some arbitrary MonadPlus m, well, that seems like one instance of a wider question. We surely need a consistent policy here: do we target the specific *minimal* notion of computation supporting whatever it is (in this case, failure), or attempt to abstract an *arbitrary* such. If the latter, one should, of course, ask if Monad is too specific... Now I come to think about it, I quite like the minimal approach. It keeps the individual operations as simple as possible, and it pulls out the Maybe -> whatever homomorphism as a largest left factor. Or something. All the best Conor | http://www.haskell.org/pipermail/libraries/2007-June/007667.html | CC-MAIN-2013-48 | refinedweb | 406 | 61.5 |
6.2. Structures
Arrays allow for a named collection of identical objects. This is suitable for a number of tasks, but isn't really very flexible. Most real data objects are complicated things with an inherent structure that does not fit well on to array style storage. Let's use a concrete example.
Imagine that the job is something to do with a typesetting package. In this system, the individual characters have not only their character values but also some additional attributes like font and point size. The font doesn't affect the character as such, but only the way that it is displayed: this is the normal font, this is in italics and this is in bold font. Point size is similar. It describes the size of the characters when they are printed. For example, the point size of this text increases now. It goes back again now. If our characters have three independent attributes, how can they be represented in a single object?
With C it's easy. First work out how to represent the individual
attributes in the basic types. Let's assume that we can still store the
character itself in a char, that the font can be encoded into
a
short (1 for regular, 2 italic, 3 bold etc.) and that the
point size will also fit a short. These are all quite reasonable
assumptions. Most systems only support a few tens of fonts even if they are
very sophisticated, and point sizes are normally in the range 6 to the small
hundreds. Below 6 is almost invisible, above 50 is bigger than the biggest
newspaper banner headlines. So we have a char and two shorts that are to be
treated as a single entity. Here's how to declare it in C.
struct wp_char{ char wp_cval; short wp_font; short wp_psize; };
That effectively declares a new type of object which can be used in your
program. The whole thing is introduced by the
struct keyword,
which is followed by an optional identifier known as the
tag,
wp_char in this case. The tag only serves the purpose of giving
a name to this type of structure and allows us to refer to the type later
on. After a declaration like the one just seen, the tag can be used like
this:
struct wp_char x, y;
That defines two variables called
x and
y just
as it would have done if the definition had been
int x, y;
but of course in the first example the variables are of type
struct
wp_char, and in the second their type is
int. The tag is
a name for the new type that we have introduced.
It's worth remembering that structure tags can safely be used as ordinary
identifiers as well. They only mean something special when they are preceded
by the keyword
struct. It is quite common to see a structured
object being defined with the same name as its structure tag.
struct wp_char wp_char;
That defines a variable called
wp_char of type
struct
wp_char. This is described by saying that structure tags have their
own ‘name space’ and cannot collide with other names. We'll
investigate tags some more in the discussion of ‘incomplete
types’.
Variables can also be defined immediately following a structure declaration.
struct wp_char{ char wp_cval; short wp_font; short wp_psize; }v1; struct wp_char v2;
We now have two variables,
v1 and
v2. If all the
necessary objects are defined at the end of the structure declaration, the
way that
v1 was, then the tag becomes unneccessary (except if
it is needed later for use with
sizeof and in casts) and is
often not present.
The two variables are structured objects, each containing three separate
members called
wp_cval,
wp_font and
wp_psize. To access the individual members of the structures,
the ‘dot’ operator is used:
v1.wp_cval = 'x'; v1.wp_font = 1; v1.wp_psize = 10; v2 = v1;
The individual members of
v1 are initialized to suitable
values, then the whole of
v1 is copied into
v2 in
an assignment.
In fact the only operation permitted on whole structures is assignment: they can be assigned to each other, passed as arguments to functions and returned by functions. However, it is not a very efficient operation to copy structures and most programs avoid structure copying by manipulating pointers to structures instead. It is generally quicker to copy pointers around than structures. A surprising omission from the language is the facility to compare structures for equality, but there is a good reason for this which will be mentioned shortly.
Here is an example using an array of structures like the one before. A function is used to read characters from the program's standard input and return an appropriately initialized structure. When a newline has been read or the array is full, the structures are sorted into order depending on the character value, and then printed out.
#include <stdio.h> #include <stdlib.h> #define ARSIZE 10 struct wp_char{ char wp_cval; short wp_font; short wp_psize; }ar[ARSIZE]; /* * type of the input function - * could equally have been declared above; * it returns a structure and takes no arguments. */ struct wp_char infun(void); main(){ int icount, lo_indx, hi_indx; for(icount = 0; icount < ARSIZE; icount++){ ar[icount] = infun(); if(ar[icount].wp_cval == '\n'){ /* * Leave the loop. * not incrementing icount means that the * '\n' is ignored in the sort */ break; } } /* now a simple exchange sort */ for(lo_indx = 0; lo_indx <= icount-2; lo_indx++) for(hi_indx = lo_indx+1; hi_indx <= icount-1; hi_indx++){ if(ar[lo_indx].wp_cval > ar[hi_indx].wp_cval){ /* * Swap the two structures. */ struct wp_char wp_tmp = ar[lo_indx]; ar[lo_indx] = ar[hi_indx]; ar[hi_indx] = wp_tmp; } } /* now print */ for(lo_indx = 0; lo_indx < icount; lo_indx++){ printf("%c %d %d\n", ar[lo_indx].wp_cval, ar[lo_indx].wp_font, ar[lo_indx].wp_psize); } exit(EXIT_SUCCESS); } struct wp_char infun(void){ struct wp_char wp_char; wp_char.wp_cval = getchar(); wp_char.wp_font = 2; wp_char.wp_psize = 10; return(wp_char); }Example 6.1
Once it is possible to declare structures it seems pretty natural to declare arrays of them, use them as members of other structures and so on. In fact the only restriction is that a structure cannot contain an example of itself as a member—in which case its size would be an interesting concept for philosophers to debate, but hardly useful to a C programmer.
6.2.1. Pointers and structures
If what the last paragraph says is true—that it is more common to use pointers to structures than to use the structures directly—we need to know how to do it. Declaring pointers is easy of course:
struct wp_char *wp_p;
gives us one straight away. But how do we access the members of the structure? One way might be to look through the pointer to get the whole structure, then select the member:
/* get the structure, then select a member */ (*wp_p).wp_cval
that would certainly work (the parentheses are there because . has
a higher precedence than
*). It's not an easy notation to work
with though, so C introduces a new operator to clean things up; it is
usually known as the ‘pointing-to’ operator. Here it is being
used:
/* the wp_cval in the structure wp_p points to */ wp_p->wp_cval = 'x';
and although it might not look a lot easier than its alternative, it pays off when the structure contains pointers, as in a linked list. The pointing-to syntax is much easier if you want to follow two or three stages down the links of a linked list. If you haven't come across linked lists before, you're going to learn a lot more than just the use of structures before this chapter finishes!
If the thing on the left of the
. or
->
operator is qualified (with
const or
volatile)
then the result is also has those qualifiers associated with it. Here it
is, illustrated with pointers; when the pointer points to a qualified type
the result that you get is also qualified:
#include <stdio.h> #include <stdlib.h> struct somestruct{ int i; }; main(){ struct somestruct *ssp, s_item; const struct somestruct *cssp; s_item.i = 1; /* fine */ ssp = &s_item; ssp->i += 2; /* fine */ cssp = &s_item; cssp->i = 0; /* not permitted - cssp points to const objects */ exit(EXIT_SUCCESS); }
Not all compiler writers seem to have noticed that requirement—the compiler that we used to test the last example failed to warn that the final assignment violated a constraint.
Here is the Example 6.1 rewritten using pointers, and with the input function infun changed to accept a pointer to a structure rather than returning one. This is much more likely to be what would be seen in practice.
(It is fair to say that, for a really efficient implementation, even the copying of structures would probably be dropped, especially if they were large. Instead, an array of pointers would be used, and the pointers exchanged until the sorted data could be found by traversing the pointer array in index order. That would complicate things too much for a simple example.)
#include <stdio.h> #include <stdlib.h> #define ARSIZE 10 struct wp_char{ char wp_cval; short wp_font; short wp_psize; }ar[ARSIZE]; void infun(struct wp_char *); main(){ struct wp_char wp_tmp, *lo_indx, *hi_indx, *in_p; for(in_p = ar; in_p < &ar[ARSIZE]; in_p++){ infun(in_p); if(in_p->wp_cval == '\n'){ /* * Leave the loop. * not incrementing in_p means that the * '\n' is ignored in the sort */ break; } } /* * Now a simple exchange sort. * We must be careful to avoid the danger of pointer underflow, * so check that there are at least two entries to sort. */ if(in_p-ar > 1) for(lo_indx = ar; lo_indx <= in_p-2; lo_indx++){ for(hi_indx = lo_indx+1; hi_indx <= in_p-1; hi_indx++){ if(lo_indx->wp_cval > hi_indx->wp_cval){ /* * Swap the structures. */ struct wp_char wp_tmp = *lo_indx; *lo_indx = *hi_indx; *hi_indx = wp_tmp; } } } /* now print */ for(lo_indx = ar; lo_indx < in_p; lo_indx++){ printf("%c %d %d\n", lo_indx->wp_cval, lo_indx->wp_font, lo_indx->wp_psize); } exit(EXIT_SUCCESS); } void infun( struct wp_char *inp){ inp->wp_cval = getchar(); inp->wp_font = 2; inp->wp_psize = 10; return; }Example 6.2
The next issue is to consider what a structure looks like in terms of
storage layout. It's best not to worry about this too much, but it is
sometimes useful if you have to use C to access record-structured data
written by other programs. The
wp_char structure will be
allocated storage as shown in Figure 6.1.
The diagram assumes a number of things: that a
char takes
1 byte of storage; that a
short needs 2 bytes; and that
shorts must be aligned on even byte addresses in this
architecture. As a result the structure contains an unnamed 1-byte member
inserted by the compiler for architectural reasons. Such addressing
restrictions are quite common and can often result in structures containing
‘holes’.
The Standard makes some guarantees about the layout of structures and unions:
- Members of a structure are allocated within the structure in the order of their appearance in the declaration and have ascending addresses.
- There must not be any padding in front of the first member.
- The address of a structure is the same as the address of its first member, provided that the appropriate cast is used. Given the previous declaration of
struct wp_char, if item is of type
struct wp_char, then
(char *)item == &item.wp_cval.
- Bit fields (see Section 6.4) don't actually have addresses, but are conceptually packed into units which obey the rules above.
6.2.2. Linked lists and other structures
The combination of structures and pointers opens up a lot of interesting possibilities. This is not a textbook on complex linked data structures, but it will go on to describe two very common examples of the breed: linked lists and trees. Both have a feature in common: they consist of structures containing pointers to other structures, all the structures typically being of the same type. Figure 6.2 shows a picture of a linked list.
The sort of declaration needed for that is this:
struct list_ele{ int data; /* or whatever you like here */ struct list_ele *ele_p; };
Now, at first glance, it seems to contain itself—which is
forbidden—but in fact it only contains a pointer to itself.
How come the pointer declaration is allowed? Well, by the time the compiler
reaches the pointer declaration it already knows that there is such a thing
as a
struct list_ele so the declaration is permitted. In fact,
it is possible to make a incomplete declaration of a structure by
saying
struct list_ele;
at some point before the full declaration. A declaration like that declares an incomplete type. This will allow the declaration of pointers before the full declaration is seen. It is also important in the case of cross-referencing structures where each must contain a pointer to the other, as shown in the following example.
struct s_1; /* incomplete type */ struct s_2{ int something; struct s_1 *sp; }; struct s_1{ /* now the full declaration */ float something; struct s_2 *sp; };Example 6.3
This illustrates the need for incomplete types. It also illustrates an important thing about the names of structure members: they inhabit a name-space per structure, so element names can be the same in different structures without causing any problems.
Incomplete types may only be used where the size of the structure isn't needed yet. A full declaration must have been given by the time that the size is used. The later full declaration mustn't be in an inner block because then it becomes a new declaration of a different structure.
struct x; /* incomplete type */ /* valid uses of the tag */ struct x *p, func(void); void f1(void){ struct x{int i;}; /* redeclaration! */ } /* full declaration now */ struct x{ float f; }s_x; void f2(void){ /* valid statements */ p = &s_x; *p = func(); s_x = func(); } struct x func(void){ struct x tmp; tmp.f = 0; return (tmp); }Example 6.4
There's one thing to watch out for: you get a incomplete type of a structure simply by mentioning its name! That means that this works:
struct abc{ struct xyz *p;}; /* the incomplete type 'struct xyz' now declared */ struct xyz{ struct abc *p;}; /* the incomplete type is now completed */
There's a horrible danger in the last example, though, as this shows:
struct xyz{float x;} var1; main(){ struct abc{ struct xyz *p;} var2; /* AAAGH - struct xyz REDECLARED */ struct xyz{ struct abc *p;} var3; }
The result is that
var2.p can hold the address of
var1, but emphatically not the address of
var3
which is of a different type! It can be fixed (assuming that it's not what
you wanted) like this:
struct xyz{float x;} var1; main(){ struct xyz; /* new incomplete type 'struct xyz' */ struct abc{ struct xyz *p;} var2; struct xyz{ struct abc *p;} var3; }
The type of a structure or union is completed when the closing } of its declaration is seen; it must contain at least one member or the behaviour is undefined.
The other principal way to get incomplete types is to declare arrays without specifying their size—their type is incomplete until a later declaration provides the missing information:
int ar[]; /* incomplete type */ int ar[5]; /* completes the type */
If you try that out, it will only work if the declarations are outside any blocks (external declarations), but that's for other reasons.
Back to the linked list. There were three elements linked into the list, which could have been built like this:
struct list_ele{ int data; struct list_ele *pointer; }ar[3]; main(){ ar[0].data = 5; ar[0].pointer = &ar[1]; ar[1].data = 99; ar[1].pointer = &ar[2]; ar[2].data = -7; ar[2].pointer = 0; /* mark end of list */ return(0); }Example 6.5
and the contents of the list can be printed in two ways. The array can be traversed in order of index, or the pointers can be used as in the following example.
#include <stdio.h> #include <stdlib.h> struct list_ele{ int data; struct list_ele *pointer; }ar[3]; main(){ struct list_ele *lp; ar[0].data = 5; ar[0].pointer = &ar[1]; ar[1].data = 99; ar[1].pointer = &ar[2]; ar[2].data = -7; ar[2].pointer = 0; /* mark end of list */ /* follow pointers */ lp = ar; while(lp){ printf("contents %d\n", lp->data); lp = lp->pointer; } exit(EXIT_SUCCESS); }Example 6.6
It's the way that the pointers are followed which makes the example
interesting. Notice how the pointer in each element is used to refer to the
next one, until the pointer whose value is
0 is found. That
value causes the
while loop to stop. Of course the pointers
can be arranged in any order at all, which is what makes the list such
a flexible structure. Here is a function which could be included as part of
the last program to sort the linked list into numeric order of its data
fields. It rearranges the pointers so that the list, when traversed in
pointer sequence, is found to be in order. It is important to note that the
data itself is not copied. The function must return a pointer to the head
of the list, because that is not necessarily at
ar[0] any
more.
struct list_ele * sortfun( struct list_ele *list ) { int exchange; struct list_ele *nextp, *thisp, dummy; /* * Algorithm is this: * Repeatedly scan list. * If two list items are out of order, * link them in the other way round. * Stop if a full pass is made and no * exchanges are required. * The whole business is confused by * working one element behind the * first one of interest. * This is because of the simple mechanics of * linking and unlinking elements. */ dummy.pointer = list; do{ exchange = 0; thisp = &dummy; while( (nextp = thisp->pointer) && nextp->pointer){ if(nextp->data < nextp->pointer->data){ /* exchange */ exchange = 1; thisp->pointer = nextp->pointer; nextp->pointer = thisp->pointer->pointer; thisp->pointer->pointer = nextp; } thisp = thisp->pointer; } }while(exchange); return(dummy.pointer); }Example 6.7
Expressions such as
thisp->pointer->pointer are
commonplace in list processing. It's worth making sure that you understand
it; the notation emphasizes the way that links are followed.
6.2.3. Trees
Another very popular data structure is the tree. It's actually a linked
list with branches; a common type is the binary tree which has
elements (
nodes) looking like this:
struct tree_node{ int data; struct tree_node *left_p, *right_p; };
For historical and essentially irrelevant reasons, trees in computer science work upside down. They have their root node at the top and their branches spread out downwards. In Figure 6.3, the ‘data’ members of the nodes are replaced by values which will be used in the discussion that follows.
Trees may not seem very exciting if your main interest lies in routine character handling and processing, but they are extremely important to the designers of databases, compilers and other complex tools.
The advantage of a tree is that, if it is properly arranged, the layout of the data can support binary searching very simply. It is always possible to add new nodes to a tree at the appropriate place and a tree is basically a flexible and useful data structure.
Look at Figure 6.3. The tree is carefully constructed so that it can be searched to find whether a given value can be found in the data portions of the nodes. Let's say we want to find if a value x is already present in the tree. The algorithm is this:
Start at the root of the tree: if the tree is empty (no nodes) then return ‘failure’. else if the data in the current node is equal to the value being searched for then return ‘success’. else if the data in the current node is greater than the value being searched for then search the tree indicated by the left pointer else search the tree indicated by the right pointer.
Here it is in C:
#include <stdio.h> #include <stdlib.h> struct tree_node{ int data; struct tree_node *left_p, *right_p; }tree[7]; /* * Tree search algorithm. * Searches for value 'v' in tree, * returns pointer to first node found containing * the value otherwise 0. */ struct tree_node * t_search(struct tree_node *root, int v){ while(root){ if(root->data == v) return(root); if(root->data > v) root = root->left_p; else root = root->right_p; } /* value not found, no tree left */ return(0); } main(){ /* construct tree by hand */ struct tree_node *tp, *root_p; int i; for(i = 0; i < 7; i++){ int j; j = i+1; tree[i].data = j; if(j == 2 || j == 6){ tree[i].left_p = &tree[i-1]; tree[i].right_p = &tree[i+1]; } } /* root */ root_p = &tree[3]; root_p->left_p = &tree[1]; root_p->right_p = &tree[5]; /* try the search */ tp = t_search(root_p, 9); if(tp) printf("found at position %d\n", tp-tree); else printf("value not found\n"); exit(EXIT_SUCCESS); }Example 6.8
So that works fine. It is also interesting to note that, given a value,
it can always be inserted at the appropriate point in the tree. The same
search algorithm is used, but, instead of giving up when it finds that the
value is not already in the tree, a new node is allocated by
malloc, and is hung on the tree at the very place where the
first null pointer was found. This is a mite more complicated to do because
of the problem of handling the root pointer itself, and so a pointer to
a pointer is used. Read the example carefully; it is not likely that you
ever find anything more complicated than this in practice. If you can
understand it, there is not much that should worry you about the vast
majority of C language programs.
#include <stdio.h> #include <stdlib.h> struct tree_node{ int data; struct tree_node *left_p, *right_p; }; /* * Tree search algorithm. * Searches for value 'v' in tree, * returns pointer to first node found containing * the value otherwise 0. */ struct tree_node * t_search(struct tree_node *root, int v){ while(root){ printf("looking for %d, looking at %d\n", v, root->data); if(root->data == v) return(root); if(root->data > v) root = root->left_p; else root = root->right_p; } /* value not found, no tree left */ return(0); } /* * Insert node into tree. * Return 0 for success, * 1 for value already in tree, * 2 for malloc error */ int t_insert(struct tree_node **root, int v){ while(*root){ if((*root)->data == v) return(1); if((*root)->data > v) root = &((*root)->left_p); else root = &((*root)->right_p); } /* value not found, no tree left */ if((*root = (struct tree_node *) malloc(sizeof (struct tree_node))) == 0) return(2); (*root)->data = v; (*root)->left_p = 0; (*root)->right_p = 0; return(0); } main(){ /* construct tree by hand */ struct tree_node *tp, *root_p = 0; int i; /* we ingore the return value of t_insert */ t_insert(&root_p, 4); t_insert(&root_p, 2); t_insert(&root_p, 6); t_insert(&root_p, 1); t_insert(&root_p, 3); t_insert(&root_p, 5); t_insert(&root_p, 7); /* try the search */ for(i = 1; i < 9; i++){ tp = t_search(root_p, i); if(tp) printf("%d found\n", i); else printf("%d not found\n", i); } exit(EXIT_SUCCESS); }Example 6.9
Finally, the algorithm that allows you to walk along the tree visiting all the nodes in order is beautiful. It is the cleanest example of recursion that you are likely to see. Look at it and work out what it does.
void t_walk(struct tree_node *root_p){ if(root_p == 0) return; t_walk(root_p->left_p); printf("%d\n", root_p->data); t_walk(root_p->right_p); }Example 6.10 | http://publications.gbdirect.co.uk/c_book/chapter6/structures.html | CC-MAIN-2013-48 | refinedweb | 3,878 | 61.56 |
Quoth Marc Balmer <marc@msys.ch>, on 2011-01-18 13:06:47 +0100: > And what is very strange, in the firs iteration all output to the > webserver seems lost, only the second one succeds... > > this is mysterious... Incidentally, I see from the FCGI docs that they wrap the stdio functions using the C preprocessor. That's not going to do any good for a Lua program that invokes the core Lua stdio bindings somewhere else; the preprocessor definitions were never (and often cannot be) applied in that context. So you'd have to rebind the input and output functions yourself and expose them as new functions in the Lua namespace. Isn't there a stock FastCGI Lua binding somewhere? ---> Drake Wilson | http://lua-users.org/lists/lua-l/2011-01/msg01058.html | CC-MAIN-2018-47 | refinedweb | 122 | 63.59 |
2018¶
December¶
Fixed #2710 in
lino.modlib.extjs Checking date change. When
lino.modlib.system.SiteConfig.next_partner_id was inadvertently set to
the id of an existing Company, creating a Person caused Lino to overwrite the
data of the company instead of noticing the problem.
(20181226) Removed the pisa build method for printable documents. Lino Così
now uses
lino_xl.lib.weasyprint as the default build method. You will get
an error at the data migration if there are objects (e.g. calendar entries)
pointing to this print method. In that you can probably simply deactivate the
following line in
create_cal_event():
kw.update(build_method=build_method)
Released Lino Così 18.12.1
(20181225) Installing Lino Così with the pip command now works with Python3 as described in Installing a Lino developer environment.
Fixed #2715 in
lino_xl.lib.contacts.
(20181226) Removed the pisa build method for printable documents. Lino Così
now uses
lino_xl.lib.weasyprint as the default build method.
Released Lino Così 18.12.1
(20181225) Installing Lino Così with the pip command now works with Python3 as described in Installing a Lino developer environment.
(20181224) fixed #2773 in
lino_xl.lib.beid : when calling
eidreader while no id card was inserted into the reader sometimes caused a
server error message instead of just telling the user that there was no card.
(20181222)
lino_xl.lib.topics :
Interest now has
allow_cascaded_delete set
to
["partner"]. IOW the interests of a partner should not prevent a user
from deleting the partner. If the user decides to delete a partner and some
existing
Interest refers to the partner, it should be deleted
automatically.
(20181221)
lino_xl.lib.beid : New error message
Invalid
urlhandler_prefix {} (must end with '://') when
urlhandler_prefix does not end with
"://".
2018-12-18¶
Released Lino version 18.12.5.
Lino was not yet installable using pip under Python 3. Now it is (hopefully).
A new command-line option
--quick has been added to
restore.py.
The idea was that calling
Model.full_clean() on every restored database
row might make things very slow. This was used to try #2755 on the
field. First tests on real data indicate that it doesn't give very much.
Released XL version 18.12.5
The
lino_xl.lib.xl.Priorities choicelist was moved from
lino_xl.lib.tickets to
lino_xl.lib.xl so that it can be used by
any plugin of the XL. The
cal.Priority model and its FK in
cal.Event have been removed. Added a
choicelist field
lino_xl.lib.cal.Component.priority pointing to
Priorities. Priorities can't be
configured using the web interface any more, this is now done using a local
choicelists module.
Applications using
lino_xl.lib.cal must do a database migration:
def create_cal_event(id, modified, created, start_date, start_time, end_date, e$ ... #kw.update(priority_id=priority_id) ... def main(args): ... #execfile("cal_priority.py", *args) ...
The
get_table_summary() of
lino_xl.lib.blog.LatestEntries now
also returns an etree element (instead of a string with HTML).
2018-12-13¶
Released Lino 18.12.2
The new
lino.modlib.summaries.Summarized mixin didn't yet update its
fields during
checkdata. And I had no pangs of conscience to
completely review the API at that occasion: Summarizable becomes Summarized,
Summary becomes MonthlySlaveSummary, a new attribute
delete_them_all to make sure the developer
knows what it means.
lino.utils.jsgen.py2js() now has a keyword argument "compact" that
defaults to True. Because the default behaviour of py2js returns a massive
1-line response which makes it almost impossible to find where an issue in the
json is if there is some problem. In the react renderer im having it using the
lino.core.site.Site.is_demo_site value to determine if it wants to have
it be compact or not.
Released XL 18.12.3
2018-12-12¶
Released version 18.12.1.
#2745 (Summaries without master) caused some changes in
lino.modlib.summaries:
Added a new type of summary: a
lino.modlib.summaries.Summarizable. Models inheriting this have a lightning button to the ticket and makes the summary fields get updated during
computesummaries, but unlike it subclasses the objects are not considered temporary data (i.e. not being deleted during
computesummaries.
Actions for updating summaries now have a "∑" as button_text instead of a 'lightning' icon.
First usage example is
lino_noi.lib.tickets.Ticketwhich now.
#2744 (How to use locally injected fields in a layout) : new method
lino.core.model.Model.get_layout_aliases().
Fixed an unreported bug: the
checksummarytask was maybe not being run daily by
linod.
A solution for #2746. The virtual field
lino.core.model.Model.overviewwas being used for two different things: (1) in detail layouts to create customizable "overview panels" and (2) in table layouts to create a "clickable description", functionally equivalent to double clicking on the row.
The latter use should now be done with the new virtual field
lino.core.model.Model.detail_linkwhose verbose_name is automatically set to the model's verbose_name. This is done during startup and probably you cannot override this.
The
lino.core.model.Model.overviewfield no longer has a verbose_name, so application code no longer needs to set it explicitly to None using
dd.update_field().
Released XL version 18.12.1
lino_noi.lib.tickets.Ticketnow.
2018-12-11¶
Released version 18.12.0
We are still working on #2741 (Have book test pass with PyPI version of lino and lino_xl).
2018-12-10¶
Released version 18.11.0
The default value for
verbose_name_plural of a
lino.core.workflows.Workflow is now more intelligent: if the workflow
is being used on a single model (which is the case for most workflows), the
text is now "{} states" where {} is the model's verbose name.
lino.modlib.memo.parser.Parser.register_django_model() now says an understandable
error message "Duplicate renderer for %s" when an application tries to redefine
another renderer on the same model.
lino.modlib.uploads : the summary of AreaUploads now supports being
shown in a grid. It shows contant as a single paragraph (instead of an UL and
adds an action for opening the salve table in a separate window.
Fixed #2731 in
lino_xl.lib.cal:
lino_xl.lib.cal.MyTasks no longer hides open tasks that were started
in the past. PublishEvent is now allowed for a meeting that lies in the past.
lino_xl.lib.courses: the Explorer menu now shows courses.CourseStates
November 2018¶
#2682 Optionally allow dashboard items with no data to display
#2670 Leaving a combobox before its store is loaded
#2668 Grid keyboard nav optimizations
#2660 Configure the choices of a TimeField
#2648 Show toolbar list actions in display_type "html"
#2646 Cell cursor jumps to home after inserting a line
#2644 Show current state's button_text in workflow_buttons
#2632 Hovering over the column header of a grid doesn't display the help_text
#2497 Comboboxes sometimes show the value instead of the text (#2628 ForeignKey fields are not rendered correctly when detail loads first time)
#2623 Inconsistent meaning of Ctrl-S and Enter
#2596 Search field is disabled by loadmask
#2577 Row-level edit locking
#2544 SiteSearch fails when it finds a name containing "&"
2018-10-30¶
Database changes
Subclasses of
lino.mixins.refs.Referrablenow always have max_length=200.
Internal changes:
release tags in 18.8 were missing in the git repo because atelier did not yet push them.
New model mixin
lino.mixins.refs.StructuredReferrable.
New model mixin
lino.modlib.users.UserPlan.
plain html tables now use
class="text-cell"instead of a hard-coded set of attributes
align="left".
The
lino.core.renderer.HtmlRenderer.table2story()method now yields a sequence of elements instead of returning a single one.
We have a new method
lino.core.requests.BaseRequest.show_story()which is used in the template for the report (
ledger/Report/default.weazy.html).
in
lino.api.doctest, show_sql_queries and show_sql_summary no longer call reset_sql_queries.
we continued to improve the documentation
lino.api.doctest.show_sql_summary()now supports INSERT INTO and DELETE FROM statements. It now uses sqlparse.
New features visible to end-users:
A new implementation of the Accounting Report.
sheets.Reportreplaces the
ledger.AccountingReport. It now includes subtotals, analytic accounts balances, balance sheet and income statement. It is no longer a virtual table but a
lino.modlib.users.UserPlan.
Optimizations in
lino_xl.lib.cal
OverdueAppointments: the default view no longer includes today, it stops yesterday. Because today's appointments are shown by
lino_xl.lib.cal.MyAppointmentsToday.
2018-08-31¶
Version 18.8 was the first release for which pip install worked. At least under Python 2.
Released packages:
lino,
lino_xl,
lino_cosi,
lino_noi ,
lino_tera,
lino_amici,
lino_avanti,
lino_welfare,
lino_vilma,
lino_care.
There were many changes... we just didn't collect descriptions of them yet. | https://lino-framework.org/changes/2018.html | CC-MAIN-2020-50 | refinedweb | 1,426 | 51.75 |
We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi there dear enthusiasts,
I have been trying to run a couple of processing (java based) sketches using Jython. However, in both cases I am getting similar errors which I can not resolve. Here is my first piece of very basic code:
from processing.core import PApplet class HelloProcessing(PApplet): def setup(self): global p p = self p.size(350, 350) def draw(self): p.fill(p.random(255)) p.rect(150, 150, 50, 50) if __name__ == '__main__': import pawt pawt.test(HelloProcessing()) `
I get the following errors:
Traceback (most recent call last): File "/home/nimanamjouyan/workspace/LearningPyDev/src/helloProcessing.py", line 15, in <module> pawt.test(HelloProcessing()) File "/home/nimanamjouyan/jython-installer-2.7.0/Lib/pawt/__init__.py", line 9, in test f.add('Center', panel) TypeError: add(): 1st arg can't be coerced to String, java.awt.Component
The other piece of code I am trying to run is this:) return self.PApplet
The error I am getting this time is:
Traceback (most recent call last): File "/home/nimanamjouyan/workspace/LearningPyDev/src/RandBoxesTest.py", line 54, in <module> frame.add(panel) TypeError: add(): 1st arg can't be coerced to java.awt.PopupMenu, java.awt.Component
These two errors seem to be very similar. What am I doing wrong here? is java.awt incompatible with the class that I am parsing to? How can I fix this?
Any help is much appreciated.
Answers
Hi there,
I actually found a solution which makes the program work, but it does not address the problem. The "core.jar" file which I was using was from Processing 3.2.3. I changed it with the "core.jar" from Processing 1.5.1 and 2.2.1 and for both of them I no longer got the error and the program worked.
this
is trying to add a PApplet to a frame. if PApplet isn't one of Component or Popup menu then you'll have trouble. and PApplet changed sometime in P3, away from extending Applet
processing-3.1.1/core/library/core.jar
public class PApplet implements PConstants
processing-3.0b7/core/library/core.jar
public class PApplet implements PConstants
processing-2.2.1/core/library/core.jar
public class PApplet extends Applet implements PConstants, Runnable, MouseListener, MouseWheelListener, MouseMotionListener, KeyListener, FocusListener {...
I've repeated that zillion times already: :-<
Latest version which still
extendsJava's Applet class is 3.0a5! :(|)
Though I would still recommend using version 2.2.1
Thanks guys!!!! Also I was wondering why my mouse functions like "mousePressed" are not working. I changed the first code a little bit to make the colour of the rectangle dependent on the press of the mouse:
But it does not seem to work. any ideas why not?
I have no idea what that
pawtis for.
But AFAIK, class PApplet needs its methods main() or runSketch() in order to "ignite" it! :-?
The mouse does not work in my other longer code which is not using
pawt. Would you please point me to an example or let me know how I can use "mousePressed' and other Processing mouse functions? Also I have not used main() or runSketch(), but Processing functions such as fill() and rect() seem to work, but mouse stuff does not work. Any ideas why?
Sorry, I barely know anything about Python or its "ecosystem". X_X
That's just my Java Mode knowledge.
What its pre-processor does to transpile a ".pde" to an actual ".java" file. ~O)
I am not really sure about the pre-processor either. I really want to make this code work on eclipse so then I can integrate it with other python code and run it on a server as a GUI ( I am referring to the longer piece of code). Nonetheless, if you find anything or any guides relevant to my case, I would really appreciate it, if you could let me know. I really want to get the mouse working
In order to use Processing code on Eclipse or other IDE's, it's important to know how PDE's pre-processor works. That's all I know. 8-|
I see. I actually switched "mousePressed" with "mouseButton" and specified the button and it works! For some reason "mousePressed" is not working. Moreover, when I use
print(mousePressed)I get something weird like
<bound method Sketch.mousePressed of org.python.proxies.__main__$Sketch$0[panel0,0,0,300x300,layout=java.awt.FlowLayout]>
But when I do the same with "mouseButton" I actually get an integer value. It seems that some functions are not working? I am not exactly sure what is going on.
In Java, fields, methods & classes, each got its own namespace.
It means we can use the same label name for each of those 3 categories at the same time!
However, we don't have separate namespaces for JS. And I believe that's true for Python as well. :-@
Hi ! I have the same problem, did you fix it ? I need help too ! | https://forum.processing.org/two/discussion/19617/why-do-i-keep-getting-similar-errors-while-trying-to-run-processing-using-jython-in-eclipse | CC-MAIN-2019-43 | refinedweb | 851 | 69.07 |
I am a CS1 student and have had no issues until this point in the class really. I have been working on this for awhile now and cannot figure out how to get this to work!
I am supposed to use this code and modify it to #1 - open a .DAT file (which is just a comma delimited file with about 15 numbers) #2 - import the numbers from the file #3 - Sort the numbers
We are supposed to keep with the existing code using vectors but I just cannot get this to function properly...this is my very first post here so be easy with me lol
#include <iostream> #include <fstream> #include <string> #include <algorithm> #include <vector> using namespace std; bool myfunction (int i,int j) { return (i<j); } struct myclass { bool operator() (int i,int j) { return (i<j);} } myobject; int main () { ifstream file ( "DATA.DAT" ); string temp; vector<int> myvector; vector<int>::iterator it; file.open("DATA.DAT"); //open data file while(!file.eof()) { getline(file, temp); cout << temp << '\n'; myvector.push_back(temp); } file.close(); // using default comparison (operator <): sort (myvector.begin(), myvector.begin()+4); // using function as comp sort (myvector.begin()+4, myvector.end(), myfunction); // using object as comp sort (myvector.begin(), myvector.end(), myobject); // print out content: cout << "The file contains:"; for (it=myvector.begin(); it!=myvector.end(); ++it) cout << " " << *it; cout << endl; return 0; }
I know that there are a few lines that are probably way off, but I am pulling my hair out because everything I have tried hasn't worked...any help would be greatly appreciated. | https://www.daniweb.com/programming/software-development/threads/420857/need-help-importing-dat-file-and-sorting-using-vector | CC-MAIN-2017-34 | refinedweb | 263 | 63.19 |
29 January 2013 20:09 [Source: ICIS news]
HOUSTON (ICIS)--?xml:namespace>
Overall deal volume for 2012 also hit a 10-year high at 204 transactions involving deals valued at more than $50m (€37m), representing $146.2bn, which was the second highest total deal value in 10 years, PwC said. During the final three months of 2012, total deal value hit $56.2bn, also the second highest level in 10 years.
Several factors contributed to the flurry of merger and acquisition, PwC said, including private equity interest, foreign buyers, shale plays and companies looking to get deals done before the end of the year with the looming federal budget “fiscal cliff” situation and proposed tax changes.
,” said Rick Roberge, principal in PwC's energy merger-and-acquisition practice.
“We expect to see a slight pause in [mergers and acquisitions] during the first part of 2013 as companies focus on the recent wave of deals announced, but believe 2013 will be another banner year for deals | http://www.icis.com/Articles/2013/01/29/9635904/q4-m.html | CC-MAIN-2014-42 | refinedweb | 165 | 60.14 |
Sometimes one is in the middle of a debugging session and one would like to add some new code. For example, you may want to whip up a function that prints an object a certain way and it's just a temporary hack and it's just easier to do in C/C++. Or you may want some kind of complex test to use as the condition for the breakpoint, and you don't want to relink the program.
For situations such as these the following is an option to try. It involves calling dlopen from GDB to load the new code into the running inferior. ["inferior" is GDB parlance for the program you are debugging.] Once the code is loaded it is accessible from GDB.
Here is a simple and somewhat contrived example. [A better example is most welcome. :-)] This example is specific to Linux (and presumably other *nix Systems). If your system is not one of these perhaps this example can be adapted for it.
Alas, while it would be nice if this example Just Worked out of the box, it uses dlopen and thus requires libdl.so linked into your program. Heads up.
Here is the program we are debugging.
birthdays.h:
#include <map> #include <vector> #include <string> // A table mapping birthdays 1-31 to names of people having // birthdays on that day. typedef std::map<int, std::vector<std::string> > birthdays_type;
birthdays.cc:
#include <iostream> #include <cstdlib> #include "birthdays.h" using namespace std; birthdays_type birthdays; static void init () { birthdays[8].push_back ("Ann"); birthdays[8].push_back ("Claire"); birthdays[16].push_back ("John"); } static void usage () { cerr << "Usage: birthdays number(1-31)\n"; exit (1); } static void print (const string& s) { cout << s << "\n"; } static void print_matching (int day) { const vector<string>& people = birthdays[day]; for (string p : people) print (p); } int main (int argc, char *argv[]) { if (argc != 2) usage (); int day = atoi (argv[1]); init (); print_matching (day); return 0; }
Suppose we're in the middle of a GDB session and we want to stop when we're examining the entry for "Claire".
bash$ gdb a.out (gdb) start 8 Temporary breakpoint 1 at 0x401447: file birthdays.cc, line 45. Starting program: /home/dje/src/play/birthdays.x64 8 Temporary breakpoint 1, main (argc=2, argv=0x7fffffffe7f8) at birthdays.cc:45 45 if (argc != 2)
Since it's stored as a string class doing this test is perhaps not complex but certainly more effort than just a simple strcmp.
So we have the following helper function:
int is_claire (string *s) { return *s == "Claire"; }
Now we just need to add it to our session.
First, let's set up some helper convenience variables:
(gdb) set $dlopen = (void*(*)(char *, int)) dlopen (gdb) set $dlsym = (void*(*)(void*, char *)) dlsym (gdb) set $dlclose = (int(*)(void*)) dlclose
That may not work however. libdl.so exports these symbols as versioned symbols, e.g., dlopen@@GLIBC_2.2.5. So if the above doesn't work try one of these:
(gdb) set $dlopen = (void*(*)(char *, int)) 'dlopen@@GLIBC_2.2.5' (gdb) set $dlsym = (void*(*)(void*, char *)) 'dlsym@@GLIBC_2.2.5' (gdb) set $dlclose = (int(*)(void*)) 'dlclose@@GLIBC_2.2.5'
or
(gdb) set $dlopen = (void*(*)(char *, int)) __dlopen (gdb) set $dlsym = (void*(*)(void*, char *)) __dlsym (gdb) set $dlclose = (int(*)(void*)) __dlclose
The __ versions are "for internal use only", but there is Lefler's Law #36: You gotta go with what works.
With those convenience variables in place we can do this:
(gdb) !g++ -shared -fpic helper.cc -o helper.so (gdb) $mylib = $dlopen ("./helper.so", 1) # 1 is RTLD_LAZY (gdb) b print if is_claire (&s) (gdb) c Continuing. Ann Breakpoint 2, print (s="Claire") at birthdays.cc:30 30 cout << s << "\n"; (gdb)
We are now stopped at the desired point.
Important things to remember
We're calling dlopen at a possibly random point in the program. As long as the thread is not stopped inside the dynamic linker this should be ok.
dlopen needs to be available, so at a minimum your program must be linked with -ldl. | http://sourceware.org/gdb/wiki/LoadingCodeIntoActiveSession?action=diff&rev1=4&rev2=3 | CC-MAIN-2014-35 | refinedweb | 673 | 75.2 |
Query string library have stringifyUrl
I've been using query-string library to create my query string for a long time. Normally I've used it as follows:
import * as qs from "query-string";
const API_URL = "/users?" + qs.stringfy({ user: "1" });
// API_URL will be /users?user=1
Everything was fine until my parameter was null or undefined. When such case occurs my
API_URL
looked something like
/users?. It wasn't a problem for the endpoint - the request was hitting backend
yet I've some feeling that it can be done better. Today when I was integrating
query-string into
a new project I found out about new function:
stringifyUrl. Let's see it in action:
import * as qs from "query-string";
const API_URL = qs.stringifyUrl(
{
url: "/users",
query: {
user: 1,
},
},
{ skipNull: true }
);
// API_URL will be /users?user=1
// and in case when user id is null
// /users
Perfect 🎉. Now I'm happy and I've learned new stuff - so if you happen to use query-string consider using
stringifyUrl. | https://krzysztofzuraw.com/blog/2020/stringify-url/ | CC-MAIN-2022-21 | refinedweb | 169 | 74.49 |
On May 13, 2014, at 5:04 PM, Don Lewis <truck...@freebsd.org> wrote:
> On 13 May, To: po...@freebsd.org wrote: >> Please excuse the crosspost. I'm not sure if this is a ports problem or >> a CURRENT problem. >> >> I just updated my 11.0-CURRENT machine to r265940 and can no longer >> build ports/INDEX-11. My ports tree is r353903. I think this problem >> is being caused by the recent changes to /usr/share/mk/*. >> >> # make index >> Generating INDEX-11 - please wait..--- describe.accessibility --- >> --- describe.arabic --- >> --- describe.archivers --- >> --- describe.astro --- >> --- describe.audio --- >> --- describe.benchmarks --- >> --- describe.biology --- >> --- describe.cad --- >> --- describe.chinese --- >> --- describe.comms --- >> --- describe.converters --- >> --- describe.databases --- >> --- describe.deskutils --- >> --- describe.devel --- >> clang33: not found >> make[5]: "/usr/share/mk/bsd.compiler.mk" line 24: warning: "clang33 >> --version" returned non-zero status >> make[5]: "/usr/share/mk/bsd.compiler.mk" line 37: Unable to determine >> compiler type for clang33. Consider setting COMPILER_TYPE. >> ===> devel/ccons failed >> *** [describe.devel] Error code 1 >> >> make[2]: stopped in /usr/ports >> 1 error >> >> make[2]: stopped in /usr/ports >> >> ******************************************************************** >> Before reporting this error, verify that you are running a supported >> version of FreeBSD (see) and that you >> have a complete and up-to-date ports collection. (INDEX builds are >> not supported with partial or out-of-date ports collections. >> If that is the case, then >> report the failure to po...@freebsd.org together with relevant >> details of your ports configuration (including FreeBSD version, >> your architecture, your environment, and your /etc/make.conf >> settings, especially compiler flags and OPTIONS_SET/UNSET settings). >> >> Note: the latest pre-generated version of INDEX may be fetched >> automatically with "make fetchindex". >> ******************************************************************** >> >> *** Error code 1 >> >> Stop. >> make[1]: stopped in /usr/ports >> *** Error code 1 >> >> Stop. >> make: stopped in /usr/ports >> >> >> If I go to the offending port: >> >> # cd /usr/ports/devel/ccons/ >> # make describe >> clang33: not found >> make: "/usr/share/mk/bsd.compiler.mk" line 24: warning: "clang33 --version" >> returned non-zero status >> make: "/usr/share/mk/bsd.compiler.mk" line 37: Unable to determine compiler >> type for clang33. Consider setting COMPILER_TYPE. >> >> >> I don't have any problems building the INDEX file on 9.3-PRERELEASE >> r265940. > > Various ports were setting CC to the following, which was causing the > bsd.compiler.mk to barf: > clang32 > clang33 > /usr/bin/gcc > mingw32-gcc > gcc Yea, the actual problem is that it assumed that the CC you’d set actually existed on the system. Not unreasonable in the building /usr/src context, but less reasonable in this context... > The patch below allowed me to successfully run "make index" and reduced > the error spewage. It also greatly reduces the need to run > ${CC} --version > in order to set COMPILER_TYPE. > > It still seems like a great waste to run > ${CC} --version > for each port to set COMPILER_VERSION since only a handful of ports need > this information. Unfortunately, you can’t do that. You must know the version of the compiler in the bsd.*.mk system now. It is unfortunate that ports system users this aspect of tree, or at least that it slows things down a bit. > Then there is this sort of circular dependency in some ports, like this > one in textproc/ibus/Makefile: > > .if ${COMPILER_TYPE} == gcc && ${COMPILER_VERSION} < 46 > USE_GCC= yes > .endif > > This will cause CC to be redefined, but COMPILER_TYPE and > COMPILER_VERSION will still retain their old values. This suggests that ports might be better served by another mechanism, since this one doesn’t fit quite right…. > Index: share/mk/bsd.compiler.mk > =================================================================== > --- share/mk/bsd.compiler.mk (revision 265940) > +++ share/mk/bsd.compiler.mk (working copy) > @@ -21,23 +21,28 @@ > .if !target(__<bsd.compiler.mk>__) > __<bsd.compiler.mk>__: > > -_v!= ${CC} --version > .if !defined(COMPILER_TYPE) > -. if ${CC:T:Mgcc*} > +. if ${CC:T:M*gcc*} > COMPILER_TYPE:= gcc > -. elif ${CC:T:Mclang} > +. elif ${CC:T:Mclang*} > COMPILER_TYPE:= clang > -. elif ${_v:Mgcc} > +. else > +_v!= ${CC} --version > +. if ${_v:Mgcc} > COMPILER_TYPE:= gcc > -. elif ${_v:M\(GCC\)} > +. elif ${_v:M\(GCC\)} > COMPILER_TYPE:= gcc > -. elif ${_v:Mclang} > +. elif ${_v:Mclang} > COMPILER_TYPE:= clang > -. else > +. else > .error Unable to determine compiler type for ${CC}. Consider setting > COMPILER_TYPE. > +. endif > . endif > .endif > .if !defined(COMPILER_VERSION) > +. if !defined(_v) > +_v!= ${CC} --version || echo 'unknown' > +. endif > COMPILER_VERSION!=echo ${_v:M[1-9].[0-9]*} | awk -F. '{print $$1 * 10000 + > $$2 * 100 + $$3;}' > .endif > .undef _v I think this will mean that COMPILER_VERSION won’t be set now almost all the time. This will break some use cases that we’d hope to gain by doing this in the first place. It looks like it doesn’t matter so much to the INDEX generation. I just committed a simpler fix that doesn’t break the other things. Warner
signature.asc
Description: Message signed with OpenPGP using GPGMail | https://www.mail-archive.com/freebsd-current@freebsd.org/msg155055.html | CC-MAIN-2018-51 | refinedweb | 785 | 51.75 |
Ubuntu.Components.InverseMouseArea
The InverseMouseArea captures mouse events happening outside of a given area. More...
Properties
- sensingArea : Item
- topmostItem : bool
Detailed Description
A typical use case is hiding of a popup or tooltip when the user presses or taps outside of the popup or tooltip area. The following example illustrates the use of InverseMouseArea in a Popup.
Popup.qml
import QtQuick 2.4 import Ubuntu.Components 1.2 Rectangle { anchors.centerIn: parent width: 200; height: 200 color: "darkgray" radius: 10 InverseMouseArea { anchors.fill: parent acceptedButtons: Qt.LeftButton onPressed: parent.destroy() } }
In the Popup above the mouse presses happening outside the area will cause closing and destroying the popup.
import QtQuick 2.4 import Ubuntu.Components 1.2 Item { width: 640 height: 480 Button { id: button text: "Press me" onClicked: { var component = Qt.createComponent("Popup.qml"); var obj = component.create(parent); obj.visible = true; } } }
By default the InverseMouseArea sensing area (the area from which the mouse clicks will be taken) is the application's root component, or the Window in which the topmost parent component of the mouse area resides. This area can be however altered to a different area by setting the sensingArea property to a component which is either a parent of the mouse area or a sibling of it.
import QtQuick 2.4 import Ubuntu.Components 1.2 Item { width: units.gu(40) height: units.gu(71) MouseArea { anchors.fill: parent onClicked: console.log("clicked on the root component") } Rectangle { id: blueRect width: units.gu(30) height: units.gu(51) anchors.centerIn: parent color: "blue" Rectangle { width: units.gu(20) height: units.gu(20) anchors.centerIn: parent color: "red" InverseMouseArea { anchors.fill: parent sensingArea: blueRect onClicked: console.log("clicked on the blue rect") } } } }
In this example the inverse mouse area will get mouse presses only when those happen on the blue rectangle area. When clicked outside of the blue rectangle or inside the red rectangle, the mouse area covering the root item will get click signals.
InverseMouseArea, being derived from MouseArea respects the stacking and z-order of the components. This should be taken into account when combining it with MouseAreas within the same level of the component hierarchy or when combined with MouseArea siblings. In these cases it is recommended to have the InverseMouseArea declared as last component, having it in this way as last one oin the component stack.
Item { id: page width: units.gu(40) height: units.gu(71) Rectangle { id: label anchors { horizontalCenter: parent.horizontalCenter top: parent.top } height: units.gu(5) width: parent.width color: "red" MouseArea { anchors.fill: parent z: 1 onPressed: console.log("red band") } } Rectangle { anchors { top: label.bottom topMargin: units.gu(2) horizontalCenter: parent.horizontalCenter } height: units.gu(10) width: parent.width color: "green" Button { id: button anchors.centerIn: parent text: "I'm a button, I do nothing." } MouseArea { anchors.fill: parent onPressed: console.log("green band") } InverseMouseArea { anchors.fill: button onPressed: console.log("all over except button") } } }
When this is not enough, and you want to grab all the mouse events that have been sent to the sensingArea, you can use topmostItem to place the mouse area above all the components that were instantiated under the sensing area. Beware that setting this property will no longer consider neither the z-order nor the component stack order anymore, as it will steal all the mouse events from the component set as sensingArea.
Item { width: units.gu(40) height: units.gu(71) Rectangle { id: firstRect anchors { left: parent.left top: parent.top leftMargin: units.gu(10) topMargin: units.gu(10) } width: units.gu(15) height: width color: "blue" InverseMouseArea { anchors.fill: parent objectName: "IMA" topmostItem: true onPressed: print("IMA") } } Rectangle { anchors { left: firstRect.right top: firstRect.bottom } width: units.gu(10) height: width color: "red" MouseArea { anchors.fill: parent objectName: "MA" onPressed: print("MA") } } }
Property Documentation
This property holds the sensing area of the inverse mouse area. By default it is the root item but it can be set to any other area. The area can be reset to the root item by setting null to the property.
The property specifies whether the InverseMouseArea should be above all components taking all mouse, wheel and hover events from the application's or from the area specified by the sensingArea (true), or only from the siblings (false). The default value is false. | https://phone.docs.ubuntu.com/en/apps/api-qml-development/Ubuntu.Components.InverseMouseArea | CC-MAIN-2021-04 | refinedweb | 720 | 53.88 |
From: jaakko.jarvi_at_[hidden]
Date: 2001-08-20 03:47:23
Hi Peter and others,
Sorry for commenting so late in the process, it's already past 19th,
but
as the review period is not officially declared to be over, I hope I'm
still on time.
Like Peter said, bind is kind of a partial solution while waiting for
a
more full-fledged expression template library.
The LL has been sitting in the vault for quite some time, but it will
be submitted, sooner rather than later, so I want to make sure that
the two libraries
(bind and LL) are not conflicting in their functionalities.
First, bind offers a subset of the functionalities of LL (except for
the visitor stuff). So in theory,
if LL is at some point accepted to boost, users could just throw in a
new
include file and things should work. Currently this is not so.
There is a major difference between how arguments are stored within
the
bound function.
I'm placing a full article about this issue in the Files section
(directory: lambda, file: about_binding.ps). The paper appeared in the
proceedings of the MPOOL'01 workshop
In short, the issue is this:
C++ functions can take their arguments as copies or as references.
In an ideal case, a binding library should just replicate the
prototype of
the underlying function, so that bound arguments that the function
takes as references should be stored as references, and bound
arguments
that the function takes as copies, should be stored as copies.
This is not possible to implement staying inside the
current language.
The bind library has taken the route to store the bound arguments as
copies,
except when ref or cref is used, whereas LL tries to make an educated
guess
whether to store the arguments as references or as copies.
Here's an example taken from the article:
class turtle {
...
void move(const step& s);
};
turtle t;
list<step> s;
...
for_each(s.begin(), s.end(), bind(t, _1));
// In LL moves turtle t the steps in the list of steps s
// In Peter's bind library moves a copy of turtle t
ref(t) can be used (in both libraries) to make bind store arguments by
reference, the question is just what should be the default.
Please take a look at the article for a more in-depth treatment.
I'm not saying that bind library should be changed to have the same
semantics
than LL. I'm saying that they should both have the same semantics,
and LL can be changed just as well.
I think that this is a deeper issue, and requires careful
consideration and
it should be discussed before committing us into any one solution.
Other comments
--------------------
I see ref and cref are in the bind library now. What was decided on
this?
Tuples were lifted to boost namespace, and so ref and cref are now in
tuple
and in bind libraries?!
Would 'utility' be a better place for this piece of functionality?
There was a comment on the name bind, and someone considered it bad as
e.g. bind(f, _1, _2) doesn't bind anything. Well, it does, namely the
function f. Anyway, I too chose the name bind in the old binder
library
(predecessor of LL) for the analogy to bind1st and bind2nd,
and I think the name is ok.
_1, _2, ... After seeing these names in Peter's library, we adopted
them
in LL as well. They are short, and kind of nice. They do require you
to
know the library to understand the code though, but I guess any other
name
doesn't help in this respect either.
The implementation uses a list template of its own, and that's quite a
lot
of code. Would tuples do?
Someone asked this same question: why return_type instead of
result_type?
Isn't result_type the standard name for adaptable functors? In this
way
the user could write say bind(plus<int>(), _1, _2) instead of
bind<int>(plus<int>(), _1, _2).
Summary
-------
In general, I think bind library is a good temporary solution, I hope
we will
eventually go to a full expression template library (LL :),
offering recursive binding, and binding of operator functions as well,
and free mixing of these.
So I vote for accept, but not until the argument passing/storing
semantics
has been discussed more and a clear stand has been taken.
Cheers, Jaakko
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk | https://lists.boost.org/Archives/boost/2001/08/16132.php | CC-MAIN-2021-49 | refinedweb | 762 | 70.63 |
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.
You can subscribe to this list here.
Showing
2
results of 2
On Mon, 2004-03-08 at 02:10, Andre Wobst wrote:
> And about you patch ... is there a reason why having the id-comparion
> in the end? This looks totally unnatural to me ... did you step into
> troubles when not having this extra interpretation of the comparision
> operation???
Good question. I did it just so that if the units (resulting from tom)
came out as equal, the lengths would still be considered different.=20
This was so that even if two lengths came out to be the same in
measurement, they would not be treated as identical. As I think about
this more, it is probably a bad idea. Maybe better to just use:
def __cmp__(self, other):
return cmp(tom(self), tom(other))
Dave
--=20
David J. C. Beach
<beach@...>
Hi David,
On 07.03.04, David J. C. Beach wrote:
> I've recently started using PyX to prepare a few presentation quality
> graphics and I really like the quality of output it produces.
>
> I've been trying to add some "layout-management" type classes so that I
> can combine multiple images into larger layouts (such as grids/tables).
> In so doing, I ran into the problem that instances of the unit.length()
> class do not numerically compare, but simply have the default
> "compare-by-id" behavior implemented by Python. I don't like this at
> all. :)
>
> I patched my own installation of PyX to ammend this, and am offering the
> change here. Can this go back into the distribution?
Of course, we can take this into the distribtion. But I would like to
hear a response from Jörg first (he wrote the unit-implementation).
While he's at a conference this week, we should wait until he's back.
> (in unit.length...)
>
> def __cmp__(self, other):
> l1 = tom(self)
> l2 = tom(other)
> if l1 <> l2: return cmp(l1,l2)
> return cmp(id(self), id(other))
I should tell you, that I do have similar problems in the graph
module. Here I have to compare lengths as well. While there is in
principle a possibility to internally work in PostScript points
already (there are _pt-like classes and methods almost everywhere like
path.line and path.line_pt), you can then only return PostScript
points or faked PyX lengths (as "true pt" and the like). The other
possibility is to manually convert the lengths into plain numbers
yourself before comparing. This is what I do in the graph module at
various places. I was not satisfied about adding a comparision like
you suggest it, because you can easily compare "apples and oranges" by
that. What about allowing for the comparision, when both parameters
are PyX lengths only? (This should be the case I'm doing in the graph
module all the time.) Would this be your use case as well? I would
feel much happier with that ...
And about you patch ... is there a reason why having the id-comparion
in the end? This looks totally unnatural to me ... did you step into
troubles when not having this extra interpretation of the comparision
operation???
André
--
by _ _ _ Dr. André Wobst
/ \ \ / ) wobsta@...,
/ _ \ \/\/ / PyX - High quality PostScript figures with Python & TeX
(_/ \_)_/\_/ visit | http://sourceforge.net/p/pyx/mailman/pyx-devel/?viewmonth=200403&viewday=8&style=flat | CC-MAIN-2014-35 | refinedweb | 576 | 66.94 |
On Ubuntu 14.04, I have installed Anaconda, which I use as my main Python interpreter. I now want to install the TensorFlow library and use this via Anaconda. So, I downloaded the relevant
foo.whl
pip install foo.whl
pip freeze
tensorflow==0.7.1
import tensorflow
ImportError: No module named 'tensorflow'
pip install
pip
export PATH=/home/karnivaurus/Libraries/Anaconda/bin:$PATH
.bashrc
You can try the similar answer here:
Pretty much do these steps:
1. Uninstall TensorFlow from pip: pip uninstall tensorflow
Do the above to avoid conflicts.
2. Install Python 3 in a virtual environment (version 0.7.1 as of this writing): conda create -n <environment_name> python==3.5.1 3. Activate your virtual environment (do this every time you want to use TensorFlow): source activate <environment_name> 4. Install a Conda version of TensorFlow in that environment (version 0.7.1 as of this writing): conda install -c tensorflow
Remember to change "environment_name" to whatever you want to name your environment. After these, you should hopefully be able to import tensorflow. If not, then anaconda might be having trouble installing TensorFlow's dependencies.
I'll run this on my machine to check real quick :p. I have confirmed that this works.
A possible reason that your installation attempt was not working is because Ubuntu 14.04 has Python 2.7 installed, in which many system programs depend on for the time being. As an aside, the Ubuntu development team is working on porting all of those programs to use Python 3 instead:
Update: added instructions to include creating a virtual environment. The virtual environment helps because it allows you to use the Python commands within the environment instead of any system Python commands. So, commands like "pip" and "python" will use the ones in the environment, which also contains the TensorFlow libraries. To get out of the environment, do:
source deactivate | https://codedump.io/share/HSBgGXegrcT6/1/installing-packages-with-anaconda | CC-MAIN-2018-05 | refinedweb | 316 | 51.14 |
Opened 9 years ago
Closed 16 months ago
Last modified 16 months ago
#1261 closed defect (fixed)
import raster dialog bugs
Description
Using GRASS 6.5 from the svn (updated a couple days ago), I just tried to import a non-georeferenced *.tif image in order to test problems in the georectifier and find that the wrapper dialog for r.in.gdal doesn't recognize *.tif files for import, even if geotif is selected in the file type dropdown (the default selection). This DOES work in GRASS 6.4.1, so it is something that is different between the two versions.
Also, the the "load settings" dropdown does not work (the save does). Finally, the dialog is modal meaning no access to GRASS while it is open. Other GRASS dialogs are not modal. Why is this one modal? It is also modal in GRASS 6.4.1.
In 6.5 and 6.4.1, this dialog does not have the means to allow users to create a new location to import a map with a different projection. That is a very handy feature of r.in.gdal. It would be nice if available here too.
I can understand the reason for such a dialog for v.in.ogr, since this is a fairly cryptic module and not easy for normal users to navigate. But is r.in.gdal all that difficult? I'm not sure we've gained anything by this new GUI wrapper, but have lost some functionality.
Michael
This is all fixed in current GRASS 7 versions. I assume that no one will bother to fix it in legacy GRASS 6. Closing | https://trac.osgeo.org/grass/ticket/1261 | CC-MAIN-2020-05 | refinedweb | 274 | 77.23 |
The Sense HAT emulator was developed by Dave Jones. It is intended for people who own a Raspberry Pi, but not a Sense HAT.
The Sense HAT is one of the most important pieces of Raspberry Pi hardware. The board was developed to travel aboard the International Space Station (ISS) as part of the Astro Pi mission. It was also made available to buy, and schoolkids around the world use it to develop code - some of which runs in space as part of a series of competitions.
The Sense HAT adds various sensors to the Raspberry Pi: gyroscope, accelerometer, magnetometer, temperature, barometric pressure, and humidity.
You develop code for the Sense HAT and run it in the emulator. A visual representation of the Sense HAT hardware appears, and a range of sliders and buttons can be used to emulate the Sense HAT’s features.
The sliders are used to change the values reported by the sensors while your code is running. You can increase the pressure and humidity that the Sense HAT hardware would detect, and check that your system responds accordingly.
Using the Sense HAT emulator on a Raspberry Pi
The Sense HAT emulator is a great option for somebody who wants to develop code for the Astro Pi mission, but doesn’t have access to the Sense HAT hardware. It’s also a great environment for testing code, because you can manually adjust the values reported via the sensors.
>STEP-01: Start up the Sense HAT emulator
You can access the Sense HAT emulator from the Raspbian desktop menu, under Programming. The emulator closely simulates the experience of attaching the Sense HAT hardware to your Pi. You can read from the sensors or write to the LED matrix using multiple Python processes.
>STEP-02: Code the Sense HAT emulator
Open IDLE (Programming > Python 3) and choose File > New. Enter this code:
from sense_emu import SenseHat sense = SenseHat() green = (0,255,0) white = (255,255,255) while True: humidity = sense.humidity humidity_value = 64 * humidity / 100 pixels = [green if i < humidity_value else white for i in range(64)] sense.set_pixels(pixels)
This program adjusts the number of green and white pixels displayed on the LED, depending on the detected humidity.
>STEP-03: Run and adjust
Run the program in IDLE (Run > Run Module) and the Sense HAT image will appear and display some green LEDs. Adjust the humidity slider and watch the number of green LEDs change to match the new readings.
>STEP-04: Preferences
There are some preferences that you can adjust to change the behaviour of the emulator. Choose Edit > Preferences. Increase the Screen updates value to provide a more realistic experience of the behaviour of the hardware sensors. You’ll see that the values being returned in your code drift according to the known error tolerances of the physical sensors used on the Sense HAT.
>STEP-05: Code examples
If you’re new to the Sense HAT, you can copy and paste a range of example code from the Raspberry Pi educational resources page. Projects include a getting started guide and a random number program. You will also find lots of examples under File > Open Example. These will be written to your home directory.
>STEP-06: Port to Sense HAT
If you want to port your emulator code to a physical Sense HAT, you just need to change:
sense_emu
to…
sense_hat
Reverse this if you’re porting a physical Sense HAT program to the emulator.
Click here to download our free Experiment with the Sense HAT guide. | https://magpi.raspberrypi.com/articles/sense-hat-emulator | CC-MAIN-2022-33 | refinedweb | 590 | 61.26 |
Definition of Traceback in Python
Traceback in Python provides key to resolve unhandled exceptions that occur during the execution of the python program. This facility lists the nature of the exception, a clear explanation of the exception, details of program segments in the reverse order of execution that has triggered the exception to occur.
File name, module name, line numbers, and the exact code displayed by the traceback module help developers to trace the causes of exceptions by linking back various program steps and zero in on the killer lines and correct them for error-free execution. Traceback steps exactly match with the action steps of the Python interpreter, and it improves the productivity of the developer in quickly resolving issues in the program.
Syntax:
Traceback details displayed by python contain several parts, and its syntax is:
Traceback (most recent call last)
Program segment (File name, Line no, module name, exact code) executed first
Program segment (File name, Line no, module name, exact code) executed second
….
Program segment (File name, Line no, module name, exact code) executed last
Exception name: Detailed exception message
A typical traceback looks like
Traceback (most recent call last): Traceback Header
First code that got executed
File “main.py,” line 23, in module1 File name main.py, line no 23, module-1.
Exact code-1 Code is displayed
Second in the execution list
File “main.py,” line 20, in module2 File name main.py, line no 23, module-2.
Exact code-2 Code is displayed
Last in the execution list
File “main.py,” line 17, in module3 File name main.py, line no 23, module-3.
Exact code-3 Code is displayed.
IndexError: list index out of range Exception name: Detail
How does Traceback work?
Python generates traceback when an exception occurs during the execution of the python program. There are two conditions the python program gets into problems while the program is executed.
One is a syntax error. If the program is not properly coded, the program gets into error at the time of compilation itself. The developer needs to write the correct code; then, only the program will progress to the next lines.
Two is the logical error called an Exception. This error happens only during the execution, and it surfaces only when an exceptional condition occurs within the program. The exceptional condition occurs due to the supply of wrong data, and the program is not designed to manage the extraneous condition.
There are several built-in exceptions available in python, and some of them are listed below:
1. ZeroDivisionError – This error occurs if some value is divided by zero. The denominator is zero in a division.
2. ImportError – Python throws this exception when a module called is not available in its repository, and the program cannot be executed.
3. IndentationError – Exception is thrown when the indentation is incorrect. Conditional statements like If, While, For need to follow certain indentation, and if it is not followed, this error will occur.
4. IndexError – When index referenced overflows the maximum limit defined in the program, this exception will be thrown.
5. KeyError – Python triggers this exception when the referenced key is not found in the mapped table or dictionary.
6. AssertionError – This exception is thrown when a condition is declared to be true by the using Assert statement before the execution, slips into a false condition during execution of the module. The program stops execution if this is found.
7. NameError – Python throws this error if an attempt is made to refer to a variable or a function that is not defined within the program. This error could occur if a local variable is referred out of its boundary condition.
8. AttributeError – This kind of error occurs if any assignment of value is attempted on a variable that contradicts its original attribute. A string value assignment on an integer variable or vice versa results in this error.
9. TypeError – Python throws this exception when a wrong operation is attempted on a variable. Arithmetic operation on a string variable or string operation on an integer variable results in this error.
10. MemoryError This error condition occurs when the program exceeds the memory allotted to it by creating too many memory spaces and not clearing them on time.
The developer will have to use the error details, trace the code steps that caused the error and understand the issues and correct the program accordingly.
Examples
1. In the example below, there is a provision to decode the month description for the first four months in the year Jan-Apr, and anything beyond this will result in index error.
# Program to decode month code of the first four months in the year
mthdesc = ["jan","feb","mar","apr"] # four month description is the table
def decodemth(mm): # Function decodemth to decode
print (mthdesc[mm]) #() # Calling working function
When the program is executed, it prompts month code. The screenshot under various inputs.
Month code = 02
Month code = 04
Month code = 08 (out of boundary condition)
The error thrown is index out of range. The first line to be executed is line 13, which calls the src() module. The second line is to be executed in line 11 in the src() module, which calls another module decodemth(monthcode). The third and last line to be executed in line 5, which decodes and prints and it is the place where the error is thrown.
2. In this example, arithmetic operation is attempted on a string, and it returns type error
# Program to decode month code of the first four months in the year
mthdesc = ["jan","feb","mar","apr"] # four month description is the table
def decodemth(mm): # Function decodemth to decode
print (mthdesc[mm]+1 ) #()
During execution with month code 01, it gives type error and traces lead to line 13
3. Indentation error. Under the function Division, the lines are not indented
def Division():
A = Num / Den
print ("Quotient ", A)
Num = int (input ("numerator "))
Den = int (input ("denominator "))
Division()
4. Division by zero error
def Division():
A = Num / Den
print ("Quotient ", A)
Num = int (input ("numerator "))
Den = int (input ("denominator "))
Division()
When the program is executed with 10 as the numerator and 5 as the denominator, it gives results correctly.
When the program is executed with 10 as the numerator and 0 as the denominator, it gives an error.
Conclusion
Traceback provides a lot of information, ways, and means to debug any error, locate the root cause and correct them for error-free execution of Python programs.
Recommended Articles
This is a guide to Traceback in Python. Here we discuss the definition, syntax, How Traceback works? Examples and code implementation. You may also have a look at the following articles to learn more – | https://www.educba.com/traceback-in-python/ | CC-MAIN-2021-49 | refinedweb | 1,121 | 52.39 |
How To Write Smart Contracts for Blockchain Using Python — Part Two
A step-by-step guide to getting started
In this series of tutorial pieces, we are going to be using the SmartPy language from Smart Chain Arena. SmartPy offers a complete integrated development environment to write smart contracts online, test them, debug them, and deploy them in a blockchain.
Requirements
- Computer programming experience
- Basic Python programming knowledge
- Blockchain technology acquaintance
- A web browser
Welcome to SmartPy!
SmartPy is based on Python 3 language and requires Python code syntax. Python developers will feel at home when starting to code smart contracts with SmartPy.
However, note that although it is possible to import Python libraries through the import directive, some features will only work in the development environment. For example, when deployed to blockchain, there are specifics of that context.
First things first
For those who don’t know much of Python, it is important to remember that indentation is important. It affects the correctness of the code.
And for the newbies of smart contract programming, note that a smart contract will always have an entry point, by which it is going to be called from the outside world, through a transaction.
After being published, smart contracts reside in a blockchain, decentralized and distributed on a network of computer nodes. A copy of the smart contract is on each node.
Lesson number one
Let’s begin by meeting the development environment. You will be granted access to the SmartPy IDE:
Couldn’t be simpler than that. The left side of the screen is the editor, where you will type your smart contract source code. The right side is the output panel; it will show the result output of your programming.
Hello World!
There is an ancient Greek saying that states that if your first program in a new language is not a “Hello World!” then you will have much trouble in your future with programming. So…
Our first SmartPy experience
Click on the editor section of the screen and type:
alert("Hello World!")
Now, just click on Evaluate Script & Run Tests (the button over the output panel). Voilà! A box appears showing “Hello World!” on screen. That’s a fair beginning, just to break the ice.
Going a little bit further
OK, it was nice seeing that message alert on screen. But, let’s modify our code a little bit to change the way the message is displayed by adding a test to our smart contract script.
Just copy and paste the code below into the editor. Pay attention to the indentation, as it matters:
@addTest(name = "testHelloWorld")
def myTest():
setOutput("Hello World!")
Now, click again on the button Evaluate Script & Run Tests. You will see the result on the output panel, and you will also note that a new button called testHelloWorld appears over it:
The test is important because we need to simulate how the smart contract will behave before we publish it on the blockchain.
So far, so good. Still, there is not really much yet that is related to smart contracts.
Creating our first smart contract
So, lets get serious. We are now going to create our first smart contract. To begin, we will
import the
smartpy library. Clear the editor and paste the code below into it:
import smartpy as sp
Now that we have imported the library, we will be able to define a class based on an inherited contract. Add this to your code:
class MyClass(sp.Contract):
def __init__(self):
self.init(result = 0)
What we are doing here is defining a new class and declaring its constuctor method (init). That is how new instances (objects) of this class will be initialized.
Defining the smart contract entryPoint
A smart contract has at least one entry point. So, let’s declare the entry point for our contract. Add the text below to your code:
@sp.entryPoint
def myEntryPoint(self, params):
self.data.result = params.op1 + params.op2
If you try to run the code by clicking on the Evaluate Scripts & Run Tests button now, nothing will happen. That’s because we need to add a test to our code.
So, let’s do it. Copy the text below and paste in your code:
@addTest(name = "myFirstSmartContractTest")
def mySmartContractTest():
html = ""
mySmartContract = MyClass()
html += mySmartContract.myEntryPoint(op1 = 1, op2 = 2).html()
setOutput(html)
Let’s break down our added test. What is being done here?
We are defining a string called
html that we will use to render our output on screen. Then we create an object
mySmartContract instance of the class
MyClass, that is derived of
sp.Contract type. This is how we enable the class to be effectively transformed in a Tezos smart contract. This derivation construct, and the constructor and initialization, are all pure standard Python syntax.
Also, the
@ above method/functions declarations are Python decorators, used to guide the compiler for certain actions. They are what is called syntactic sugar, which offers a convenient way to add a little bit of magic to the function definition. You can think of it as a function which transforms the Python function you write into another Python function.
For example, the
sp.entryPoint is a function that takes a Python function and transforms it into one that will become the actual Michelson entry point.
Now, try to run the code again and see what happens. You should get a result as follows:
If you got errors, first check if your code has been incorrectly indented. Usually, you have to indent the code with four spaces or TAB. Also, check the logical indentation, i.e. which definition belongs to each parent declaration.
This first example is a smart contract that sums two numbers passed by parameter to the method
myEntryPoint of the class
myClass and puts the result on the storage
result of the contract.
To make it easier to understand and test, below is the full commented code:
This is a very brief first contact with the SmartPy environment to make you familiar with it. As we progress with future pieces, we will work on more real world use cases.
See you on Part Three! Don’t forget to read Part One! | https://medium.com/better-programming/how-to-write-smart-contracts-for-blockchain-using-python-part-2-99fc0cd43c37 | CC-MAIN-2019-51 | refinedweb | 1,037 | 73.47 |
Progressive Web Apps are fast becoming a major deployment target. Recent releases like the the Starbucks PWA provide validation that progressive web apps have arrived. Because Ionic is built on the web, Ionic apps can work anywhere the web runs, including as a PWA. In today’s post, we will go over exactly what a PWA is and how to deploy your next Ionic app as a PWA!!
First, let’s briefly define what a PWA is. We’ll go with Google’s official definition on this one: native app on the device, with an immersive user experience.
This new level of quality allows Progressive Web Apps to earn a place on the user’s home screen.
Before we cover how to transform your Ionic app into a PWA, let’s answer some of the most common questions people have about PWAs:
Do PWAs only work on mobile? Or desktop?
Both, it’s just a web app, so it should look good anywhere the web runs! And with Ionic 3 and above, the grid system will work beautifully on any size screen.
Will PWAs kill native apps?
No, there are use-cases for both. For example, does a conference need an installable app? Or would they convert better if the users could get the same experience through a website? Probably the latter as you would not want to go through the process of installing an app just to use it for a limited time. PWAs are what you are looking for when you want to give users an instant experience as nothing is faster than just clicking on a link. Have a more in-depth experience that is possibly using features not yet found on the web? Then a native app is probably what you need. Ionic has your back no matter what platform you want to deploy to, all from one single codebase!
What is this Service Worker thing?
Service workers are scripts the browser runs in the background, separate from a web page, that allow us to implement features such as push notifications, background sync, dynamic caching of assets and more!
There’s support for a bunch of other stuff coming, in the mean time, you can check out:
- What Web Can Do Today to see what behaviors are supported.
- is Service Worker ready? to see the browser support.
A couple of things to note about Service Workers:
- They are JavaScript Workers, so they cannot access the DOM directly. Instead, a service worker can communicate with the pages it controls by responding to messages sent via the postMessage interface, and those pages can manipulate the DOM if needed.
It is terminated when not in use and restarted when it is next needed, so you cannot rely on global state within a service worker’s
onfetchand
onmessagehandlers. But, if there is information that you need to persist and reuse across restarts, service workers do have access to the IndexedDB API.
Service Workers make extensive use of promises, so if you are new to promises, I recommend checking out this excellent blog post.
They only run on HTTPS connections. During development you will be able to use service worker through
localhost, but to deploy it on a site you will need to have HTTPS setup on your server. This is because using a service worker you can hijack connections, fabricate, and filter responses. Powerful stuff. So you might use that stuff to better your app, but a man-in-the-middle attack might not.
How do I create links? After all, it is a web app.
Ionic has an impressive deep-linking feature that works great with PWAs. Also, with the update to Ionic-angular 3, they created an
IonicPage module which lets us add, among other things, a static (or dynamic) URL for pages.
This means that users can easily share that URL and anyone they share it too will be taken right to the page they were on!
PWA, here we come!
Transforming an Ionic Framework app into a PWA is not easy, it is hard work, but we are going to go through every step here. First, go into
src/index.html and find the below commented out script that enables the service worker and uncomment it:
<script> if ('serviceWorker' in navigator) { navigator.serviceWorker.register('service-worker.js') .then(() => console.log('service worker installed')) .catch(err => console.log('Error', err)); } </script>
And that is it. You now have a PWA. Did you believe me when I said it was hard? 😛
I am not kidding, that is all you need to do to go from web app to PWA. You can then deploy your app to a server and immediately access it from your browser. Now, remember to put on your new PWA champion badge!
Further Optimizations
Let’s do some other tweaks to remove unnecessary things. These steps aren’t necessary but are good to do if you are deploying your app only as a PWA.
Currently, right above that service worker script is the script to call
cordova.js. If you are only going to run the app as a PWA and not a cordova app, go ahead and comment it out.
<!-- cordova.js required for cordova apps --> <!--<script src="cordova.js"></script>-->
If your only deploying this as a PWA you can go inside
app.component.ts, and remove the platform and plugin calls:
import { Component } from '@angular/core'; import { TabsPage } from '../pages/tabs/tabs'; @Component({ templateUrl: 'app.html' }) export class MyApp { rootPage: any = TabsPage; constructor() {} }
You can also go into the
app.module.ts file and remove the imports for the StatusBar and SplashScreen plugins.
Web Manifest and Service Worker
The web manifest and Service Worker are what officially make our app a PWA. Let’s take a look at these two features.
Let’s examine the web manifest and the service worker to see what’s going on. First, open
src/manifest.json
{ "name": "Ionic", "short_name": "Ionic", "start_url": "index.html", "display": "standalone", "icons": [{ "src": "assets/imgs/logo.png", "sizes": "512x512", "type": "image/png" }], "background_color": "#4e8ef7", "theme_color": "#4e8ef7" }
This is the standard web manifest that comes with the app. Let’s go through each option:
"name": "Ionic",=> This is the name of our application.
"short_name": "Ionic",=> This is our short name, used when there’s not enough space for the name. It is most commonly used when the user adds the application to the home screen.
"start_url": "index.html",=> This is the URL the app is going to open to.
"display": "fullscreen",=> Defines the developer’s preferred display mode for the web application. When using
fullscreenall of the available display area is used, and no browser chrome is shown.
- The
iconsobject lets you set the icons your app will use depending on the resolution of the screen. The highest resolution icon (512×512) will also be shown on the splash screen of the application
"icons": [{ "src": "assets/imgs/logo.png", "sizes": "512x512", "type": "image/png" }]
"background_color": "#4e8ef7",=> Defines the expected background color for the web application.
"theme_color": "#4e8ef7"=> Defines the default theme color for an application. This will affect things such as the notification bar color on Android.
Make sure to add your preferred logo to
src/assets/img/logo.png. This is the logo the PWA will display when the user adds it to the home screen, and it will show it on the splash screen when the user opens the app through the homescreen or app drawer in Android.
For a list of all the properties, you can check out this section of the MDN docs
Now let’s check out the
src/service-worker.js file:
'use strict'; importScripts('./build/sw-toolbox.js'); self.toolbox.options.cache = { name: 'ionic-cache' }; // pre-cache our key assets self.toolbox.precache( [ './build/main.js', './build/main.css', './build/polyfills.js', 'index.html', 'manifest.json' ] ); // dynamically cache any other local assets self.toolbox.router.any('/*', self.toolbox.cacheFirst); // for any other requests go to the network, cache, // and then only use that cached resource if your user goes offline self.toolbox.router.default = self.toolbox.networkFirst;
This is the default service worker setup that Ionic uses. This setup will pre-cache all of your static assets ensuring that your app loads reliably and fast under any network condition.
Deploying
Now it is time to get everything ready for deploy, we want to minify, uglify, and other-fy words you can think of. Ionic will do all the hard work for us, we just need to open up the terminal and run:
npm run ionic:build -- --prod
That command will activate Angular’s production mode, and run a full production build so you can get the smallest bundle possible.
It will take a while, especially the first time you run it, but it is worth it. Once it is finished you can upload your www directory to whichever hosting service you prefer.
Just like that, we took our existing Ionic app and made it into a PWA! Because Ionic is built completely using web technologies, we can deploy our app to cordova and as a PWA using the same codebase. Also, we are working on making this process even better, including completely automating our service worker setup using the CLI. The future is awesome! | https://blog.ionic.io/how-to-make-pwas-with-ionic/ | CC-MAIN-2017-47 | refinedweb | 1,548 | 64.3 |
OBJECTIVES
- Receive calls and SMS.
- Identify who calls us
- Show the SMS on the serial monitor.
BILL OF MATERIALS
Receiving calls
We saw in the previous session how to connect and start the GPRS module, and if someone tried at that time to call the card that we have placed in the SIM900, you will have seen how it gives tone normally.
However, you will not have seen anything that indicates that you are receiving a call, although if you look we will see how one of the LEDs on the card goes off while it is received. So what we’re going to do is let us know by the serial monitor when you receive them.
In principle the only difference to reach the loop will be that we declare a global variable of type char to save the characters that come from the SIM900.
char incoming_char = 0; // Variable to save the characters sent by the SIM900
In the loop we will check that characters are being sent from the SIM900 and we will show them through the serial monitor.
void loop() { if (SIM900.available() > 0) { incoming_char = SIM900.read(); //Save the character that arrives from the SIM900 Serial.print(incoming_char); //Save the character that arrives from the SIM900 } }
If we try to make a call to the number you have on the SIM900 card you will see that the serial monitor will show the word “RING”, once for each tone, and it will end with a “NO CARRIER”.
But many times it can be very useful to know who is calling us to, for example, take an action only if you call us a certain number (which we will see in the next session). For this we will use the command “AT + CLIP = 1 \ r”. If we want to deactivate it we only have to return it to 0. And with this we would have the complete program to receive calls.
#include <SoftwareSerial.h> SoftwareSerial SIM900(7, 8); //10 and 11 for the Mega Arduino. Configure the serial port for the SIM900 char incoming_char = 0; // Variable to store the characters sent by the SIM900 void setup() { //digitalWrite(9, HIGH); // Uncomment to activate the power of the card by Software //digitalWrite(9, LOW); delay (5000); // Wait some time to turn on the GPRS and power the card SIM900.begin(19200); // Set serial port speed for the SIM900 Serial.begin(19200); // Set the serial port speed of the Arduino Serial.println("OK"); delay (1000); SIM900.println("AT + CPIN = \"XXXX\""); // AT command to enter the card PIN delay(25000); //Time to find the network Serial.println("PIN OK"); SIM900.print("AT+CLIP=1\r"); // Activate the call identification. delay(1000); } void loop() { if (SIM900.available() > 0) { incoming_char = SIM900.read(); //Save character from SIM900 Serial.print(incoming_char); //Show it in the serial monitor } }
RECEIVING SMS
To receive SMS messages correctly, we only have to include a couple of AT commands in the setup. We already know it from the previous session, which configures the module to be able to send and receive SMS “AT + CMGF = 1 \ r”. And we will also include the command “AT + CNMI = 2,2,0,0,0 \ r” which configures it so that it sends us the serial SMS messages that arrive to us.
So the complete program to receive calls and SMS would look like this:
#include <SoftwareSerial.h> SoftwareSerial SIM900(7, 8); //Configure serial port. 10 and 11 for Arduino Mega char incoming_char = 0; //Variable to store incoming characters from SIM900 void setup() { //digitalWrite(9, HIGH); //Uncomment to activate software power on //delay(1000); //digitalWrite(9, LOW); delay (5000); // Wait some time to turn on the GPRS and power the card SIM900.begin(19200); // Set serial port speed for SIM900 Serial.begin(19200); // Set serial port speed for Arduino Serial.println("OK"); delay (1000); SIM900.println("AT + CPIN = \"XXXX\""); //Comando AT para introducir el PIN de la tarjeta delay(25000); //Time to find Network Serial.println("PIN OK"); SIM900.print("AT+CLIP=1\r"); // Activate the identification of calls delay(1000); SIM900.print("AT+CMGF=1\r"); // Set the text mode to send or receive messages delay(1000); SIM900.print("AT+CNMI=2,2,0,0,0\r"); // Configure the module to show us the SMS received by serial communication delay(1000); } void loop() { if (SIM900.available() > 0) { incoming_char = SIM900.read(); // Store the character that arrives from the SIM900 Serial.print(incoming_char); // Show the character in the serial monitor } }
And when we receive a message we will be shown by the serial monitor both the number from which it is sent and the content of the SMS, with the date and time of sending. And if we look, unlike the calls, the number will come with the international prefix, in my case the +34 that belongs to Spain.
You can download the full program here: receive_call and SMS.
In the next session we will use what we have learned so that our Arduino can contact us if necessary, and to make certain orders using calls and SMS, and making sure that he only responds to us. In it you will find a more worked program in which, among other things, we are going to use a function to send the AT commands and make sure that the module response is what we are looking for.
Resumen de la sesión
In this session we have learned several important things:
- How to receive calls and SMS and display them through the serial port.
- To identify who is calling us.
- We already know how to receive and send calls and SMS.
Give a Reply | http://prometec.org/communications/gprs-sim900/receive-calls-and-sms/ | CC-MAIN-2021-49 | refinedweb | 934 | 71.34 |
What does the & operator in c++ do (as opposed to the && operator?)
What does the & operator in c++ do (as opposed to the && operator?)
There are two different uses for the & operator. It is a bitwise and as well as the reference operator.
Is it in a piece of code that you are confused over or something?
Last edited by SilentStrike; 01-10-2002 at 04:54 AM.
Prove you can code in C++ or C# at TopCoder, referrer rrenaud
Read my livejournal
The '&' operator is used the following way:
return (13 & 4);
OR LATER:
return (13 & 8);
-Govtcheez
govtcheez03@hotmail.com | https://cboard.cprogramming.com/linux-programming/8420-operator.html | CC-MAIN-2017-51 | refinedweb | 102 | 65.83 |
One difficulty arising from this feature is a namespace collision. This is most evident when dealing with two replies to the same parent writeup, but it could occur with identically named top-level postings as well. How do you refer to a writeup by name when that name occurs multiple times in the database?
I see five possible solutions. Three are behavioral and two are technical.
spudzeppelin has come up with a unique way to handle threading and sorting. Give each writeup a new 8-digit number corresponding to its place in the nesting hierarchy. The first post would be 00000000. The first reply would be 00000000x00000001, and so on. Replies inherit and extend parent threading number information. (If you're concerned about taking up space in the database, simply pack the numbers.) Sorting into a threaded model is a snap -- instead of having to create a tree, you can simply use a numerical sort to arrange things correctly. However, if you prefer to sort by score, this won't work for you.
A similar option is to implement some sort of DOM-like model which applies to posts. You might be able to link to The Threading Dilemma:1:2 for the second reply to the first reply. (Again, your sorting order will affect this.)
After considering this, I consider the first to be the simplest and most effective. Though I have been prepending my username to my replies, I don't think it solves the underlying problem. If an XML interface to the Everything Engine becomes practical in the next year or two, hopefully the discussion will move from 'ease of displaying information within HTML limitations' to 'properly marking up data for user-determined display in XML clients', and we can be more efficient with both server resources and our own time.
Are there other solutions? Are there benefits and drawbacks I've overlooked? What do you prefer?
Would this be practical? I'm not sure how the architecture
of perlmonks would make this easy/hard. Personally I think the [last-node]
has the most potential, simply view the page you want to
comment on, then go to the discussion and paste it in.
-Mark
I like this, but I'd suggest simpler macros:
[here]
[top] or [parent]
[download]
When the day is over, I would prefer to just extend the existing id system, which guarantees uniqueness but doesn't expose itself sufficiently to users wanting to fully utilize it. And like I've said here and before, a good searching facility would be immensely helpful for this purpose and others.
I do, however, think the current node_id
system works very cleanly most of the time. There are a few
situations (like right after submitting a post) where it is
more difficult to find the node id, but [id://123456]
is the only internal linking method I use, anymore. It is
clean, almost always easy (just look in the location bar,
or mouse-over a link to get the lastnode_id) and precise.
There are certain situations where the id:// method does
actually convert to the full
<nobr><a href=index.pl?node_id=12345></nobr>,
so I imagine c-era's suggestion would be easiest to
implement.
I think I would encourage our fearless leader to
address this issue, because the
"add-my-name-to-the-title-just-to-make-it-unique" thing only
serves to clutter, not clarify. kudra first posted her
titling method to encourage us to make titles more
informative. How much does it help you to read in Newest
Nodes <nobr>"(Russ) Re: Threading"?</nobr>
If the site could address the underlying problem causing us
to do this, I think we will all be well-served.
Russ
Brainbench 'Most Valuable Professional' for Perl
I really like the idea of having [title] resolved to ID number at "post" time and ambiguities prompting a list, though I'm sure this would need to be optional to avoid becoming annoying for some situations and some people. My idea of this is having "Submit" and "Preview" do this, placing the modified HTMLish into the text box, so a subsequent "Submit" or "New" will have the ID numbers. Ambiguities would show as radio buttons under the text area. So if you don't want to use this feature, just ignore it and don't resubmit. But I understand this could be some work so I won't expect it soon. A radio button for "quote the [ and ]" (making it not a link), would be nice, especially when no match is found.
But even more than that, I really, really like replacing the current "Re: Re: Re: Re:" with "Re02.01.03: " for the third reply to the first reply to the second reply to the original question. In the rare cases of more than 99 replies, a third digit would be prepended which would mess up the sorting order unless extra work was done (which I wouldn't consider worth it).
Then, once we have that, the "In reply to:" links would be done so that "Re02.01.03: Hi" is "In reply to: [Re][02.][01: Hi]" where "01: Hi" is the regular "parent" link, "02." is a link to "Re02: Hi" ("grandparent"), and "Re" is a link to the original question ("Hi"). I'm constantly jumping to a new node and deciding I'd like to jump up the hierarchy three steps but dislike the extra clicks and pauses required.
The rest of the options I either didn't like, didn't understand, or didn't really care one way or the other about.
I
I like CTFT, at least when you are moving the discussion in a new direction. But the problem with it is that it usually means (based on the little experience I've had with perlmonks) that the title doesn't reflect what it was in response to. But this is only a problem in places that don't show an "In reply to" item, such as in "Newest node" (where I most dislike CTFT).
So I support CTFT (in many cases) but heavier use of it would make me push for addition of "in reply to" columns in several places.:
Replies:
[Deep Linkage]:
[Yeah but I think...]
[Happy birthday!]
[Arrays in Hashes]:
[Use it like this:]
[No no no...]
[download]
Which would be much more sensible (you could even space the replies, and
build a tree if you. | http://www.perlmonks.org/?node_id=23910 | CC-MAIN-2016-40 | refinedweb | 1,075 | 70.63 |
Using Underminer Studios’ MR Configurator Tool to Make Mixed Reality VR Videos
Atualizado
Written by: Timothy Porter, Underminer Studios LLC
Edited by: Alexandria Porter, Underminer Studios LLC
I am Timothy Porter, a pipeline technical artist and efficiency expert. I create unified systems that promote faster, more intuitive, and collaborative workflows for creative projects. With more than nine years in the entertainment industry, a Bachelor’s degree in Computer Animation, and a sharp mind for technical details, I have used lessons learned from early-career gaming roles to develop methodologies for streamlining pipelines, optimizing multiple platforms, and creating tools that make teams stronger and more efficient. I own an outsourcing and bleeding edge tech company, Underminer Studios.
Overview
This article will teach you how to identify VR applications that are mixed reality (MR) ready, and how to enable MR mode in your Unity* VR applications. By the end of this article you will be able to calibrate your experience to have the cleanest and most accurate configuration possible to make MR green screen videos. Since green screen MR can be useful to both developers and content creators (like streamers or YouTubers), the information in this article will be presented from both a developer and a user perspective. Keep that in mind; some of the information might be more than what is needed for a content creator to begin working in MR immediately. Please reference the section titles as guides to locate relevant information for your purposes. The process of getting an MR experience set up for the first time was a painful and tedious process, until now. Underminer Studios has created the Underminer Studios MR Configurator Tool to smooth the process.
Underminer Studios’ MR Configurator Tool
This tool was designed to speed up calibration of your MR setup. This article explains how to use the tool and help you get the most out of your MR experiences. For VR users and streamers, making MR videos is a great way to show a different perspective to people who aren’t wearing a head-mounted display (HMD), while for VR developers, MR videos are a great way to create trailers and show a more comprehensive view of the VR experience.
How does the Underminer Studios MR Configurator Tool help?
This tool will automate the configuration of the controller/camera offset, reducing the time massively, compared to the difficult manual process of camera alignment. Without this helper utility, you start with a blank externalcamera.cfg file, and manually adjust x, y, and z offset values to align the virtual camera with the real one. Every time you make a change you must shut down the application and restart it, then check alignment, hoping that your configuration is correct, and repeat as necessary. This is a tedious and imprecise process. Our helper utility streamlines and automates this alignment process and makes it much easier to calibrate your MR setup. Download and install the executable, then download and follow the documentation in the read me guide.
Though we had many use cases in mind to appeal to a broad audience, inevitably with developers there are always new, uncharted needs. We plan to update the tool periodically, and if you have ideas to improve the tool, please email us at info@underminerstudios.com.
How to use the MR Configurator tool
There is a handy dandy information file that covers, step-by-step, how to do the application setup; it is included in the MrSetUp.pdf file. A direct link is also provided with your install.
What is Mixed Reality?
In this case, mixed reality refers to a person on a green screen background, layered into video from an MR-enabled VR application. This is a great way to show people outside the VR headset what’s happening in the world within. A user can share their VR experience with others and can help create a more social gaming environment. Once you have a VR application that supports MR, all you need is a suitable camera, some green screen material, and an extra Vive* controller to create your very own MR VR experiences.
What’s required?
A powerful machine
Adding MR on top of VR requires a high-end system to handle the inherent stresses that these applications create. Without a powerful enough system you can encounter performance lag, which may lower your frame rate and create a less than optimal experience, especially for the user wearing the HMD. A higher-end PC is required to provide the MR experience and avoid those issues. I have provided a list below with optimal system requirements on which to run an MR experience.
An MR-enabled application
You can either take a previously made project that is MR-enabled or you can make one for yourself. We will cover both in this section.
How to tell if a VR application will work with this method
Config file
Test to see if a Unity-based VR title supports this MR mode by placing a configuration file named “externalcamera.cfg” into the same directory as the VR executable. For example, say you have a game located at C:\Program Files (x86)\Steam\steamapps\common\APPNAMEHERE\. Just put the file in that folder. Here is an example of a raw config file:
x=0
y=0
z= 0
rx=0
ry=0
rz=0
fov=60
near=0.01
far=1000
Note that there is almost zero chance that this will work appropriately right away. Use our application to configure, or go to the manual configuration section below and follow the instructions.
Connect a third Vive controller
Connect a third Vive controller (this controller needs to be plugged in via USB, since SteamVR* only supports two wireless controllers at a time). Launch the VR executable, and if you see a four-panel quartered view on the desktop, the app should work for this method of making MR videos. If you don’t see the four-panel quartered view, it’s likely the app wasn’t made in Unity, or doesn’t support this method of MR video. If you created the VR executable, read on for instructions on how to enable this MR mode. If it’s not your application, you will probably have to choose another application for your MR video.
Developers and Users
If you want to do MR setup inside of Unity go to the Developer section. If you want to learn how to play a readymade MR game move to the User section. First, we will cover the developer side of things, so if your goal is to make cool MR experiences, start here. Later, we will be learning the end user side of things, so if your game already has the development side configured you can start there. We are going to limit this discussion and focus on how to make MR work within Unity and the SteamVR system, since there are many ways to create multiple cameras and green screens, as well as to composite them. I will be using the HTC Vive, but I’ve seen others use the Oculus Rift* and Touch* controllers, but that’s outside the scope of this article. Let’s jump right in!
Developer side
I will show the current native SteamVR plugin method first. It takes a considerable amount of guesswork out of the system setup and provides you with a quick and high-quality MR setup. The tool provided sits on top of the current system, alleviating some of the manual or tedious sections of the process with automated or helper solutions. If at any time the specific setup or process that your project needs is not covered, there is no reason to chuck it, as the rest of the processes are perfectly self-contained.
Native (built-in) SteamVR MR overview
The team that invented this tool was quite brilliant. Using the idea of clipping planes and the location of the player, the SteamVR setup creates multiple views to allow an MR experience. If you want to use the native plugin and enable this in your game you have two separate choices: +third controller and no third controller. Both require the use of externalcamera.cfg.
Example using externalcamera.cfg
This file goes into the root of your project as externalcamera.cfg. This file tells the system in meters how far to offset the camera versus the controller.
x=0
y=0
z= 0
rx=0
ry=0
rz=0
fov=60
near=0.01
far=100
sceneResolutionScale=0.5
What setup to use?
The use of a third controller allows the user to move the camera. If you are planning to have a stationary camera see the No third controller section, below. If your game requires moving the camera, see the +third controller section, below.
No third controller—native SteamVR MR setup
- Pull in the extra controller prefab
- Set the Index of the SteamVR_Tracked Object (Script) to Device 2.
Users need to set up the externalcamera.cfg covered in the Example using externalcamera.cfg section, above.
Note: This requires always using Unity IDE unless you follow the How to not use Unity IDE section, below.
+third controller—native SteamVR MR setup
- Pull in the extra controller prefab
- Set the Index of the SteamVR_Tracked Object (Script) to Device 3.
This is simple in concept. The only thing you’ll need is the extra controller that is attached via USB to the computer playing the game.
Note: This requires always using Unity IDE unless you follow the How to not use Unity IDE section, below.
How to not use Unity IDE—native SteamVR MR setup
Both require you to make the project run within the editor. If you want to make a standalone version there is a bit of extra work to do.
- Add the “SteamVR_ExternalCamera” prefab at the root of your hierarchy.
- Drag and drop the “Controller (third)” into the [SteamVR] script “Steam VR_Render” – External Camera.
- In SteamVR_Render.cs add the following code:
void Awake() { #if (UNITY_5_3 || UNITY_5_2 || UNITY_5_1 || UNITY_5_0) var go = new GameObject("cameraMask"); go.transform.parent = transform; cameraMask = go.AddComponent<SteamVR_CameraMask>(); #endif if (System.IO.File.Exists(externalCameraConfigPath)) { { if (externalCamera == null) { var prefab = Resources.Load<GameObject>("SteamVR_ExternalCamera"); var instance = Instantiate(prefab); instance.gameObject.name = "External Camera"; } externalCamera = instance.transform.GetChild(0).GetComponent<SteamVR_ExternalCamera>(); externalCamera.configPath = externalCameraConfigPath; externalCamera.ReadConfig(); } }
User side
If you already have a VR-ready system you can to jump to the Running MR section, below.
System requirements
I have included both high-end (a) and low-end options (b) below.
Shopping list:
Green screen kit
a. StudioPRO* 3000W continuous output softbox lighting kit with 10ft x 12ft support system, $383.95 (or similar).
b. ePhotoInc* 6 x 9 Feet cotton chroma key backdrop, $18.99.
Extra controller
a. Vive controller, $129.99.
b. This solution does not need an extra controller, but if you aren’t the developer who created the game, you must keep the camera stationary and do some workarounds as discussed below.
Camera
a. Panasonic* HC-V770 with accessory kit, $499.99 (or similar camera with HDMI out for the live camera view; a DSLR or mirrorless digital camera will probably work, but be aware that their sensors are not designed to be run for long periods of time and can overheat).
Video capture card
a. Magewell* XI100DUSB-HDMI USB capture HDMI 3.0 - $299.00 (or similar HDMI capture device.
Computer
a. You’ve probably already got a VR-capable PC if you’re reading this. Beyond the minimum VR spec, you’ll need a system with enough power to handle the extra work you’re going to ask it to do (running the quartered view at 4x the resolution you intend to record, plus doing the layer capture, green screen chroma key, and MR compositing). A high end, sixth-gen or later Intel® Core™ i7 processor (for example, 7700K or similar) is recommended.
4K Monitor
a. Because of the way MR captures the quartered view window, you’ll want to be able to run that window at 4x the resolution of the final video output. This means you need to be able to run that window at 1440p resolution if you want to record at 720p, since you’re only capturing a quarter of the window at a time. If you want to record at 1080p, you’ll need to run the window at 2160p. For that, you’re going to want a monitor that can handle those resolutions; probably 4K or higher.
A little more about some of the options
Green screen
You could use outdoor carpet (like AstroTurf*) as a backdrop. It looks like it gets decent results and it should last for a very long time, but anything in a single color should work just fine. Green is recommended, as most systems (OBS*, or the screen capture provided for this tutorial) utilize green as a cut-out or chroma key.
Controller
If the project was not set up appropriately and requires an extra controller, there is a possible solution involving faking the third controller in software. Using this option is outside the realm of this article, but if you want to try it out you can learn more here.
Camera
There is a HUGE difference if you go with a real camera versus a webcam. Without being as expensive as a pro camcorder, some great things have come out of the camcorder option listed above. If you use a still camera (DSLR or mirrorless), be aware that their sensors are often not designed to be run constantly due to heat; this is why they often have a 20 or 30 minute limit on video recording. Be careful so you don’t harm your equipment.
Video capture card
If you are using an external camera, a capture card is required to get the HDMI output of the camera to appear as a usable source to the PC. The one listed above uses USB and is a great all-around capture card. Compared to having an internal card that is tied to a system, the best part of the USB capture card is portability. To do an onsite with publishers, clients, or other developers you can just throw it in a bag, send them a build, and show everyone in the room what is going on in the game. It will allow you to convey the information and ideas quickly.
Computer
The project we are doing is computationally intensive, so CPU choice is very important. A modern, high-end Intel Core i7 processor, like a 7700K, is well-suited to a project like this because many of the processes are single-thread intensive (like the compositor from SteamVR) and the high single-core performance will really help. Using a quad core or higher CPU can really help with the work of capturing, compositing, and recording your MR video.
Running MR—setup
To view the setup, you only need the .cfg file below, and a game that allows the use of MR. Some of these games include Fantastic Contraption* and Job Simulator*, Space Pirate Trainer*, Zen Blade*, Tilt Brush*, and many more.
Only after fulfilling these two requirements will the setup view appear:
- Add a file called externalcamera.cfg in the root of your project.
- Have a third controller that is plugged into your system.
Running MR—step by step
Note: These steps will not align the experience with the real world until you configure the .cfg file using the steps below.
Turn off SteamVR
If you have SteamVR on it will have issues with the further processes so it’s best to turn it off. As well, if you run into issues later, a restart will always help.
Put an externalcamera.cfg file into the root of your project
Next, you will need to put the file in the correct location at the root of your project. If you find that your project doesn’t show a four-panel quartered screen, then you will want to verify that root location, after you check the controller.
Set up your green screen and lights
You will be compositing people into the VR environment. To do this correctly you will need to have a green screen setup to cut the person out of the real world and put them into the VR world.
Connect your camera to your computer / capture card
The extra overhead of running VR and MR at the same time almost necessitates having a capture card instead of only using a web cam. Also, a capture card lets you pull in video from a secondary camera.
Affix your controller to your camera
The system always needs to locate the camera and the way we do that is by having the system track the Vive controller. The config file above provides offset and camera information to the system based on the Vive controller’s location in relation to the camera that is attached. The tighter the controller is the better.
Unplug any controllers that are attached to your system
SteamVR gets confused during this process. If you get into the project and realize that the third camera is attached to the wrong controller, unplug the third controller and plug it back in. This should solve the issue.
Turn on SteamVR
Now that this is ready we should to tell SteamVR to get going.
Turn on the two controllers not attached to the camera
We only want to turn on the controllers that aren’t attached so they get to the correct places in the SteamVR handset slots. This is a crucial step, so please do this. I also recommend waving the controllers directly at a lighthouse.
Plug into the system the controller that is attached to the camera
Now that Steam knows where the first two controllers are you can plug in the third controller. As stated before, if you get into the project and realize that the third camera is attached to the wrong controller, unplug the third controller and plug it back in.
Shift and double-mouse click your game of choice
This allows you to open the project at the highest resolution. For some reason SteamVR also gives preferential treatment to admin-running applications, so this should help.
Choose the desired resolution (4x the resolution at which you want to record)
This is where a 4K or higher monitor comes in handy. Since you’re only capturing one-fourth of the window (and compositing multiple layers), you’ll need to choose the correct window size here. If you want to record at 720p, choose 2560 x 1440. If you want to record at 1080p, choose 3840 x 2160. You might have to try different recording resolutions, depending on your system performance and the desired quality of the recording.
Open OBS or XSplit*
Now we are moving on to the live compositing section of the article. Either of these programs are tested to do MR compositing, although there are others out there that might work as well.
Add a cut of the upper-left corner and use the upper-right corner as the alpha; label this layer “Foreground”
This is the part we will composite over people. If you don’t have time to match up the handsets exactly to the VR space, choose a skin for your controller that uses large symbols. This will hide the fact that everything isn’t exactly matched up. Here is a how-to which showcases exactly how to change your controller skins in SteamVR.
Add the video stream from your camera and clear out the background with a chroma filter; label this “Live”
Putting the live person into the VR environment is the most crucial part of this project. Depending on the program you are using there are a multitude of ways that you can do this. Below is a screenshot for XSplit showcasing that you could also color key out a layer, which will remove a single color from the image.
Add the bottom left; label this layer “Background”
We will put this layer in the bottom position in whichever program you are using to composite with. If the background isn’t visible, repeat the step above.
Turn off your game and configure the config file
To make the config file, either use our tool outlined in the beginning of this article, or follow the section below. A word of warning: Manual configuration is not only difficult to get right, it’s also a very slow and laborious task. Every time there is a change made you need to restart your program. The average time for setup is about one hour. We have reduced the process to three minutes on average using the MR Configurator tool. It is also more accurate, since the long setup time usually causes people to give up before the config is perfect.
How to manually calculate the information in externalcamera.cfg
x=0
y=0
z= 0
rx=0
ry=0
rz=0
fov=60
near=0.01
far=100
sceneResolutionScale=0.5
Configuring
Note: Remember that you can use our tool to skip this entire section.
Field of view (FOV) – This must be the vertical FOV
FOV is the hardest one in the setup; find this out first. Most camera manufacturers provide the FOV values of the camera, but this is not the vertical FOV. Most of these techniques come from the camera world. Here is an article on how to find the FOV.
Note: The FOV of a camera is dependent on the focal length. Once you have your settings, do not zoom in or out on your camera!
Rotation
RX, RY, RZ—these are the rotational angles. 0,0,0 would be if the handset was level with the camera. Y+ is up, Z+ is forward, with X+ to the left. As a note, these are in degrees.
Distance
X, Y, and Z should be done using a tape measure. Remember, these numbers will be in meters.
Test
Open your game and with OBS or XSplit running, see if things line up. If not, shut down your game and try again.
Troubleshooting
If your system or game lags, options include lowering the canvas size, lowering the frame rate, using the GPU to encode video, or recording only without streaming. These could also make things worse, depending on the game and your system. With so many different variations to choose from it seems impractical to give profiles. To change these manually do the following:
Lower canvas size
Lower frame rate—be careful here; this can introduce further choppiness if below 24
Render using the GPU
Record only; do not stream
This article is an extension of my skills as a mentor and teacher. Often I am able to lead the path to new and exciting techniques, and I thoroughly enjoy sharing my knowledge with others. Enjoy your MR experiences and share your feedback with me at info@undeminerstudios.com. | https://software.intel.com/pt-br/articles/using-underminer-studios-mr-configurator-tool-to-make-mixed-reality-vr-videos | CC-MAIN-2017-43 | refinedweb | 3,826 | 62.07 |
Java uses the following Numeric Promotion Rules when applying operators to data types:
For the third rule, unary operators are excluded from this rule.
For example, applying ++ to a short value results in a short value.
What is the data type of x * y?
int x = 1; long y = 2;
Follow the first rule.
Since one of the values is long and the other is int, and long is larger than int, then the int value is promoted to a long, and the resulting value is long.
What is the data type of x + y?
double x = 3.21; float y = 2.1;
double? Wrong! This code will not compile! The floating-point literals are assumed to be double, unless postfixed with an f.
We can rewrite the code as
double x = 3.21; float y = 2.1f;
If the value was to 2.1f, then the promotion with both operands being promoted to a double, and the result would be a double value.
What is the data type of x / y?
short x = 10; short y = 3;
Follow the third rule, namely that x and y will both be promoted to int before the operation, resulting in an output of type int.
The result is not double.
public class Main { static public void main(String[] argv) throws Exception { short x = 10; short y = 3; System.out.println(x / y); } }
The code above generates the following result.
What is the data type of x * y / z?
short x = 4; float y = 3; double z = 3;
For the first rule,
x will be promoted to int because it is a
short and
it is being used in an arithmetic binary operation.
The promoted x value will then be promoted to a
float so that it can be
multiplied with y.
The result of x * y will then be automatically promoted to a double, so that it can be multiplied with z, resulting in a double value. | http://www.java2s.com/Tutorials/Java/OCA_Java_SE_8_Operators_Statements/0020__Java_Numeric_Promotion.htm | CC-MAIN-2017-04 | refinedweb | 325 | 74.49 |
Join devRant
Search - "typescript"
-
-
- Our dev team got a new manager. On our first face 2 face meeting:
Manager: So, what technology are we using for web apps?
Me: TypeScript.
Manager: What is TypeScript?
Me: It's a superset of JavaScript.
Manager: Oh I know JavaScript, it's the latest version of Java, right?
Me thinking: He is joking. He tries to be the fun guy. Everyone knows the Java-JavaScript, ham-hamster joke.
Me later, also thinking: No he is not joking. Oh God, this is the end. We are all f*cked!8
- LET'S LEARN ANGULAR2
* look for some good tutorial *
* download atom-typescript *
* type "ng new demo" in console"
1185 errors.
FINISHED LEARNING ANGULAR223
-
-
-
- TypeScript
Yeah, there are other more earth shattering, mission critical projects that save lives and drive humanity foreword etc. etc.
But TypeScript saves me from Javascript, and that's enough for me...16
-
-
-
-
- At least, it was honest comment by developer........
Have you ever encountered such funny statement/code ?1
-
-
- That moment you realise Typescript is not called Typescript because it has types but because of the immense amount of typing you have to do to get anything done...12
-
- Me learning typescript in react native,
The raven was being silent, but I know he’s laughing at my struggle,
It’s fun though,11
- What do you call it when you type a script? A TypeScript. Then you spill coffee on it...
now it's a JavaScript.8
-
-."12
-
-!5
-
-
-
-
-
- Currently rewriting a typescript app to ES5
You read that right, from typescript 2.9 to ES5, not ES6 or 7, just ES5
I guess the boss doesn’t like modern stuff
On the bright side, i contacted some recruiters today and there are already 2 companies who want me over for an interview11
-.3
- I cannot take this shit seriously.
I don't feel like reading the rest of it
Title: fuck typescript
1st line: well, actually I love typescript11
-]
- You hired me to be a JavaScript developer. Just because you have stock inMicrosoft is not a good reason to try stuffing Typescript down my throat. Maybe you should have hired a Typescript developer!7
-
-
-
- A Vue application I'm tasked with fixing consists of one single huge component, wouldn't survive even the most liberal use of linting, and has a reloadPage() function.
How fucked am I?8
-
-
- It's interesting how much fun Javascript is, when you just ignore it and use Typescript instead. 😎2
- Oh, this PHP thing is becoming big, we must use this; *makes ASP*
Oh, oh, this Java thing is really popular, and we're not the big bois now! *releases C#*
Waaait, functional is cool now? Damnit. Dude, grab this~~~ *F#*
Uhh. So people actually like JavaScript now? A wild *~~TypeScript~~* has appeared
Why does Microsoft have a history of following trends, and releasing poor clones with no substantial improvements??9
- 2016 is almost over, and when I look back I know exactly why I'm still single. Because I was chasing ember, angular, angular 1.5, react, angular 2, typescript, jsx, progressive web app etc..1
- Pick your poison ☠ and tell why in one sentence.
😀
Vue.js
Angular 6
ReactJs(TypeScript or Js version)35
-
-
- WHY DOES TYPESCRIPT EXIST OH MY FUCKING GOD WASN'T JAVASCRIPT ENOUGH
(just starting out on angular2 and i already hate it compared to jQuery)22
-
-
- Wanted to learn Angular 2, realised I'd have to learn TypeScript, System.js, and about 50,000 other frameworks before I could even do Hello World. Back to Angular 1 I guess
- I have now decided to use the following Stack for web developement.
Backend
- Kotlin with Ktor.io as REST application
- RethinkDB
Frontend
- NuxtJS Universal Application
- Typescript
- Buefy (Bulma for Vue)
What do you think ?7
- Today on "You're wasting your life by not writing typescript"
Union types
The value with redux, among other things, is incredible3
-.
- Friend learning typescript: JavaScript is easy, you do exactly opposite of what you did in java. Typescript is a half baked mess.
-
-
- I hate people who put underscore at the beginning of private variables names in Typescript. And I don't care if they have their reasons, I just hate them
- Typescript seems like such overkill, but then you need to refactor your code and hit a bunch of issues in production. I don't think I'll ever go without typescript again. Fuck dynamic typing, it doesn't scale8
-
- I need to create a npm module for creating react-native app with MobX and TypeScript.
The whole setup is a nightmare.
create-react-native-typescript-mobx-app seems insane4
-
-
- Has to review another Devs TypeScript project. And what do I find?
A single ts file with 700 lines of uncommented pure hard logic1
-
- Another update on my 3D Software Engine:
Big progress since my last rant.
I now have a simple lightning with the Gouraud Shading Algorithm!
Looks really cool now!
Btw for those who are interested, I am following a tutorial but I'm translating everything to Lua/LÖVE2D. Here's the link to the tutorial:
- One day after typescript , I ditch JavaScript on es5 totally and my college education on objective orient finally pays off ! !
I love functional programming but still insist that objective oriented is better for large project3
- Yesterday, we searched in our IT comunity Angular jobs. One of first jobs had these tags: angular, react, typescript and dart. How can programmer decide, when even the company can't decide what to use...3
-
- Thought I'd try out Asp.Net Core + React + Redux, at first I got shocked from the TypeScript shit I saw, but an hour later, I like what I'm seeing :P2
-
-?19
-
- /rant
When you spend longer trying to work out why your background <div> refuses to cover the entire page, than you spent coding an entire user-authentication system in TypeScript for Angular 2.
- Without the method names as a context clue l, could you tell if this was JavaScript or C#.!i think generic types will be the next addition to JavaScript as are already present in typescript so we might see JavaScript becoming quite more robust :)4
- For half a year, I couldn't find a job. Now I can't find any to hire. WTF, that doesn't make sense.3
- "I'm too freaking lazy to learn to write good JavaScript so I'm gonna build a top-language with types, and then a compiler so it transpiles TypeScript to JavaScript and runs my app on the interpreted language it was at first. I'm gonna save so much time" - 2017 people just bought the game screeps () and am gonna use typescript. Should I or should I not add this on my CV as side project?5
- I mostly work in Java as a backend developer, but lately I started a frontend side project in Angular. Man, Typescript and SASS are awesome! Totally love it :)2
-)
- 1. PHP would just die
2. Typescript become more popular than flow and the rest
3. Recruiters would stop assuming nodejs = react dev4
- The joy of learning typescript!
One thing I hated about Javascript, fucking runtime errors when I mistakenly fuckup with a typo or assign wrong param to my vars14
-
- I admit i don't like JavaScript... not one bit and mainly because it is not strongly typed. The idea of Typescript is interesting.
Anyways, i decided to jump in and learn Angular... So do you guys have any advice for me?10
- Me: Let's try to implement this in js...
Also me: npm install webpack webpack-cli typescript --save-dev1
-
- You know the truth will upset people.
I mean I'm trying to answer React, Typescript, mobX, Node.js related questions on stackoverflow, 1Q/day.1
-
- Writing Node entirely in TypeScript. Mini MEAN stack front and back entirely in Typescript... What a beauty 😍
-?
- I love VSCode Insiders. The daily builds (today there were already 3 of them) are coming fast as hell and always with cool new features. (new workspace handling, multiple source control providers simultaneously, TypeScript 2.5.2,...). Great job, MS
-
- Do devranters think that Reason(ML) is too late to the game to compete against TypeScript...or can it ride React success to become more than a niche?
Personally I like it, but, like with F#, I don't enjoying the lack of resources every time I need to get something done.8
-....9
- I honestly treat JavaScript as a binary executable format nowadays. It's an output format for me.
I choose you, TypeScript.4
-
-
-
-
-
- Did I screw up or is it ok doing this?
1. Calling another method inside the same factory file
2. Calling a method from another factory file
3. All factory methods are static because they only depend on their passed parameter(s
- After meddling around with all kinds of goopy front end frameworks I decided to take a look at TypeScript (in Angular 2).
I must say, as a Java developer: Why have I only found this now??
Granted, I have only played around with it for one day.1
-
-
-
- Today was my first internship day in a web dev agency. One of the developer ask me to use express and make a rest API with typescript to jauge my knowledge.
I create the project, add dependencies (express, morgan, typescript, bodyparser and they typescript definitions...) and worked till the afternoon. I pushed my code into their gitlab repository.
Some minute later:
- (the dev): The code you wrote is not working at all
- (me): what ?
- (the dev): yeah, it throw with an error (SyntaxError: Unexpected token import
)
- (me: I've check again on my computer and it work perfectly, I watch his screen and see): ```node server.ts```
- (me):(thinking wtf ) Did you convert the typescipt into javascript ?
- (the dev): what ? I use typescript all the day with angular and Ionic. you don't have to tell me how to run typescript code.
- (me): actually, you must convert the typescript code into js before running it with nodejs. I have created a cmd in the package.json file to do it (show him the script and run ```yarn build``` and the code run successfully).
- (the dev): Hum! in fact I thought that nodejs in they latest version support typescript code.
-(me): no, I don't think so
So It was my first day of internship in the agency. (me showing to the one who was suppose to teach me some thing that he must covert a typescript code into js before running it )3
- Most popular programming languages.
It's just funny they used different images for the language specially for Swift, Typescript, C# and specially Python
-.
- There's plenty of literature about how to emulate classes and interfaces flawlessly in JS even without es6, but no, let's make a separate language using 20 extra keywords and several unnecessary concepts called TypeScript with its own compiler.13
- That moment when I keep on typing int instead of number in typescript T_T
Too much errors thrown at my face XD1
- I'm a node JS developer, but I basically don't use Typescript but with the whole buzz around the technology, I feel I'm doing something wrong by not using Typescript and refusing to learn it. What do you think?5
- Typescript: All of your javascript code is valid typescript
Installs Typescript
runs typescript
Typescript: line x in function y has an error
Checking the function for error and the code is fine
After wasting an hour comment out all the linez in function y
Run typescript
Typescript: you have an error on line x which is commented in function y
ERROR IN A COMMENTED LINE :(4
- Angular 2 is really, really satisfying me. Such a very clean and smart way to organize web functionality! And es2015 + typescript is sooo nice to work with.2
-
- Why developer of c# (Anders Hejlsberg) when developing (TypeScript) not implemented method overloading and interfaces' methods implementation with same names.3
-
- I just got done learning Python and can do some stuff with it, and would like to move on to JavaScript.
Any good places to start? Right now I got a free starter course for it on Udemy and have been messing around on Sololearn and FreeCodeCamp. I'm looking for decent introductory points/books/tutorials that could help me get a better introduction of the language.8
-
- Hi everybody!
I made a lighter alternative (307bytes) to lodash.get and Ramda.path, any comment would be really appreciated!
-
- ```
- Reading OpenSource lib that write in TypeScript is a nightmare
WTF:
export function concatMap<T, I, R>(
project: (value: T, index: number) => ObservableInput<I>,
resultSelector?: (outerValue: T, innerValue: I, outerIndex: number, innerIndex: number) => R
): OperatorFunction<T, I|R> {
return mergeMap(project, resultSelector, 1);
}
That is just fucking definition, no execution code inside1
- Attempting a huge undertaking. I'm trying to convert a large JavaScript library, written in standard ES5 syntax, to Typescript with ES6 syntax. Turns out it's extremely difficult, but if I can finish this it will be 100% worth it3
- Fuck that piece of shit typescript!!!
Ever since I picked it up I have more problems with it, than it actually solves...
1. So you want to use that 3rd party library? No problem, just use typescript special import syntax.
- yeah, I do, it doesn’t work that way, but works with es6 import even if you fucking show me that damn error.
2. Want to use map? No problem, we have an interface for it and you treat it as an object.
- oh yeah? And how about fucking more user friendly approach: {key: value}? Why the fuck do I need to create a fucking instance and then use a fucking set method for each value?
3. Want to access value from native dom element? Sorry, but you need to define type yourself.
- fuck you7
- Hey so this just came up and i have no idea how could i ddg this so ill just ask here.
I know you can use namespace{} in typescript but is there something similar in js (es6)? We are making a game and the variable names are getting scarce so it would be nice if we could like menu.offset or something. I know static variables in classes are a thing but im asking about namespace-y stuff here?2
- I think about learning a lisp-family-language , but since there are plenty of them, I don't know which one to choose.
I've mostly coded in Go or typescript before.
Can any of you give me an advice with which one to start ?2
-
- Me, rueing typescript: "Dammit, Typescript!"
Typescript's cheeky response: Type 'string' is not assignable to type "Dammit"
ಠ_ಠ
-!1
- I'm still learning so take it easy on me, I'm trying to learn typescript and Factory pattern, hope I did it correctly this time :)
Link:
Its only one class in hope I got it right so I can continue with the others9
-)
- I want to use Babel or Typescript for the first time. Because as I read it is the way to go, when compressing JavaScript and make it browser compatible. If that's false, please correct me.
There's a question I've got about this. Right now I am using a PHP router file dealing with requests and selecting the right .js file and compresses it. So I can write like modular JavaScript functions and include them when needed.
My question is, what do I have to change in my setup to switch to the mentioned technologies?11
-
-
- My friend was asking can Html, Css , Typescript and C# be use in web/app development together....
PS. Who can answer this and vote...12
-
- Frontend JS devs - did you take the plunge into Typescript?
I've done some reading and a simple intro course but I'm still on the fence, what pushed you over the edge to adopt it?4
- Microsoft for creating typescript, and google for maintaining angular and forcing people to learn typescript before learning dog shit angular10
- My colleagues want to forbid the usage of the shorthand constructor in TypeScript.
I feel strongly about this.
At least they find it annoying that I call the more verbose one "PHP-style constructor" :D
- > after a week, finally up the project to angular2 rc5
> happyasfuck.jpg
> next day to go angular github.
> rc6
> CHANGELOG.md#breaking-changes1
- As a Software Design junky, I just enjoy using TypeScript for more conventional C-style programming structures in JavaScript
- 1) what do i have to know to be a good react native developer?
2) what level of javascript knowledge do need to have to understand react native?
3) how hard is typescript/ecmascript and what do i need to know to understand it? only js i guess or something else?
4) i have basic knowledge of javascript. do i have to learn it extremely well or can i start learning typescript/ecmascript along with react native?
5) tips for learning react native as fast and as efficiently as humanly possible
thanks4
- When you're struggling to understand why your thing isn't working, and Google doesn't give any answers.
And then it turns out your dist/ folder is the problem... 😕
- $ yarn add leftpad @types/left-pad
It was faster than reinventing the wheel and I needed that functionality :>
-
-
- I am supposed to conduct an Angular2 workshop for my juniors. Just found out that their subjects had changed and they don't know HTML or js, only C.
Why do they do it? How am I supposed to teach them Typescript,Object oriented,HTML, basic Nodejs, Angular in 4 hrs...
- Setting up ts linting is a pain in the ass..
Until you realize you could try to reload the window. So your settings actually pick up you know..
- I wrote a type checking utility that also considers all types (JS without TypeScript, so this meant arrays etc.). The desired type had to be declared in a config file and the data didn’t even come from the config.
What would I not do to prevent all possible attack vectors...
- Note to JavaScript beginners:
Dont use vanilla JS, use ECMAscript6 or typescript.
Its so much better4
- .
-
- When gulp takes 30 seconds to build... And you have to re-serve on every change.
Ready for webpack.3
- We've reached a point where every fucking thing is made so gosh darn easy... It's impossible to do something else with said thing.
Vue.js in typescript which will be translated with webpack for web?
How about fuck u?2
-?4
- So just started to get stuck into my new book on TypeScript. My immediate feeling is TypeScript is amazing and makes JavaScript a zillion times better. What's others opinions?4
-
- I'll preface this by saying that TypeScript is a beautiful language.
But also UTTERLY INCOMPLETE.
Here's what I'm trying to do: give the compiler well-defined contextual type information for a decorator's argument (a lambda signature) and for the decorated class method, so the user would not have to toil and type every single argument.
But does that happen? No.
I'm honestly disappointed
- The Travis build is failing at the tests, despite them working for me 🤔.
Seems to be some issue with TypeScripts "baseUrl" and "paths".
- I just want to use Jest to unit test my Typescript classes, but that appears to be impossible!
Testing the compiled Javascript instead doesn't seem to recognize any classname at all :(
- Cool, typescript is shitting out the wrong type signature for an explicitly defined array, but has the correct one for my Array.from meme.
-
-
-.
-
-
- I started to like Typescript. It was like c# on the client. Then the amount of lines and functions grew, so it was time for modules. That's pretty much when it went like this for me:...
I know it's a year later, but I don't think things have gotten much better since. That was pretty much exactly my experience this year.1
-
- Day1: It is really awesome to give data types for the variable I am about to use in typescript
Day1(few hours later): Let me declare all variables with type 'any'1
-.
-
- What's your opinion on TypeScript? I'm having a hard time figuring out if it's worth using for a React side project5
-
-
-
- Today I found this while filling my examination form, I think somebody gone crealess while handling production db........
- So, I have updated tslint and now I have close to a hundred warnings related to order of imports. 😔
I tried several tools for imports sorting, but none outputs it in a way tslint expects it to be. 😒
God damn it, I have to sort it all manually. 😩2
- Migrating angular project from version 2.x to 4.0.1 developed by a colleague. Everything's fine but there is a animation package he used which is extreme incompatible with angular 4. What a day xD
- when some lib using Typescript they think that they can show in the top of the page function with the full fucking complex signature and that explain everything you need to know about what the function do and how to use it !
what about some simple basic signature, table of attribute name and meaning. and some good examples
like we have then on the old day ??
-](...).
-
-
- This will never clash:
static createGuid() {
function s4() {
return Math.floor((1 + Math.random()) * 0x10000)
.toString(16)
.substring(1);
}
return s4() + s4() + s4() + s4(); // Example => 'e014026082e6237b'
}
-
-
- You know the feeling when your mom come to visit and then start reorganize your stuff and complains about the way you choose to live ?
That how I feel when TypeScript come into my code and start reorganize my functions into Classes and bug me, all the time, about the types I must use to active there function
( thanks to Angular )1
-
-
- TypeScript! Why you default compiler option "pretty" to false!? Why would anyone want this as false? This is such an amazing feature disabled out of the box! GNARF!
I USED TO GREP FOR ERROR TO GET ERROR HIGHLIGHTING!
:/
-
-
- A way to run sass/stylus/pugjs/coffeescript/typescript or any other preprocessor for that matter on the web browser3
- Working on multiple parts of the same product ecosystem. Some of it is ES6, some of it is TypeScript. FML
- Not my favourite language, but getting type definitions into TypeScript can be such a headache. Sometimes you just can't find the right definitions file anywhere for the version of the library you're using.1
-
- I want to be a better coder and what better way to improve, than look at how the best does it right? 😁
So do any of you guys know a JavaScript/TypeScript project that is commonly known to be a masterpiece in the art of coding?6
-...
- Does anyone know any good object-object property mapping library for JavaScript / Typescript? Similar to AutoMapper in C#?2
-
- Good evening, night, morning or day...
does someone knows a nice angular 5, typescript module to use for generating candlestick charts?
Merci!
-
- Oi, typescript, why do you take 15 seconds to transpile my project!?
It's a waiting game for the unit test to even start :
-
- Can anyone recommend some Angular tutorials or documentation that I can go through that will provide an easy to understand, step-by-step of Angular 55
-
-
-
-
- !dev && !rant
Whose company is hiring remote full stack/back end JS devs with Nodejs, react-redux, react native, typescript, coffeescript? Please help a devRanter.
Time to quit this shit hole 😫5
-
- Be better with React and Co. Learn Typescript to improve my sanity. Learn Rust. Read and study my copy of Computer Science Distilled: Learn the Art of Solving Computational Problems.
- Angular and is best friend RxJs are too over engineering and far from the concept of 'keep it simple, stupid'
But just a moment they're both use typescript to design there interfaces ... maybe that is the fucking reason for that !2
- Is this the right technique?
Trying to implement delete <-> undo actions on a JS object array called 'items' :
delete_item( position ){
delete_stack.push( items[ position ] );
items.splice( position, 1);
}
undo_delete_item(){
items.push( delete_stack.pop() );
}1
- can anybody give me advice on why typescript maybe be a better solution on the nodejs side. I've been trying it out but other than compiling seems like es6 is still better2
-
- Anyone know how to effectively write a DI in TypeScript with decorators? I’m working on a TS node framework and need some help4
-
- I'm always on the lookout for something new to learn..
What should I do next (no particular order)?
TypeScript
AngularJS
Ruby7
- I have finally finished my React components for Bulma, still work in progress - the styleguide docs are currently repeating depending on the number of files in the folder, but I will fix that soon.
It's here if anyone is interested:
- Spent this week working React into one of my projects. Works fine but I don't see Any real productivity gains over modular typescript with a good js view engine.
Does it get better?3
-
- Guys can you help me with sentry integration in angular 7 app ?
It capture errors but need to know the line number in the typescript source file not in the minified js file. Any hint ?3
- Why TypeScript and Angular2 encourages you to link scripts directly from node_modules folder? What happens when you move the project to server(you know...the place that doesn't know about that folder). And how's the bundling gonna work?5
- Am i the only one who thinks TypeScript is not necessary, more some kind of overhead creation?
Whats your opinion about TS? Do you use it or just "good" old plain JavaScript?5
-
-
- Article helps to understand the core concepts and the best patterns around Redux
“Demystifying Redux with TypeScript” by Mohan Ram
- Hi guys, I'm a newbie in web development! Do you know how I configure libraries like Angular, Typescript or Vue with Xampp.6
-
-
- Saw a rant earlier about angular and typescript, but I can't seem to find it. Just curious though: why is typescript pushed forward with angular? why not plain ol' javascript?
-
- Ionic2 + pouch DB seem to be a good choice ... No I sit her 8 hours and try to get a database access fml
-
- ```
Error: Resolution method is overspecified. Specify a callback *or* return a Promise; not both.
```
(ノ≧∇≦)ノ ミ ┸┸)`ν゚)・;’.
-
- Just got my first internship, unfortunately there were no C++ or Java positions available.
Here I find myself on a front end job using Angular 5 and typescript with practically no experience with web development.
HALP!!!!
Any tips to making this learning process easier?4
-
- Any remote crash reporter for angular 7 apps u suggest guys ? I will go live soon with a web app and need to see stacktrace or whatever usable info if anything goes wrong.3
-
-
-
- Is anyone frustrated like me with ES6 and the frameworks using typeScript? Are we supposed to code through a compiler for the next 10 years?1
Top Tags | https://devrant.com/search?term=typescript | CC-MAIN-2019-26 | refinedweb | 4,564 | 73.68 |
Patent application title: NETWORK IDENTITY MANAGEMENT SYSTEM AND METHOD
Inventors:
Liore Alroy (Passaic, NJ, US)
David Lando (West Orange, NJ, US)
Eduardo Francos (Les Ulis, FR)
Itamar Hassin (Millburn, NJ, US)
Ariel Rabkin (Berkeley, CA, US)
Assignees:
PICUP, LLC
IPC8 Class: AG06F15173FI
USPC Class:
709223
Class name: Electrical computers and digital processing systems: multicomputer data transferring computer network managing
Publication date: 2012-11-15
Patent application number: 20120290698
Abstract:
Users of Internet messaging services that are initially identified using
separate identifiers that may be associated with respective service
providers (e.g., email addresses) can manage network identities using a
single unified set of account information managed by a registry service.
When a second user wishes to communicate with a first user, the second
user provides any service provider identity that is believed to be
associated with the first user to determine if the specified service
provider identity appears to match the intended subscriber. If so, the
second user may specify a nickname (unique to the second subscriber but
not necessarily globally unique) to be associated internally within the
registry with the internal unique identifier of the first subscriber as
part of the second subscriber's user record.
Claims:
1. A method of providing a global name space to subscribers of a
registry, comprising: associating, in a first user record associated with
a first subscriber, (1) a first service provider identity of the first
subscriber and (2) a first unique identifier internal to the registry;
querying the registry to determine if the first service provider identity
is stored within the registry; associating, in a second user record
associated with a second subscriber, (1) a nickname for the first
subscriber and (2) the first unique identifier internal to the registry
without exposing the first unique identifier to the second subscriber.
2. The method as claimed in claim 1, querying the registry on behalf of the second subscriber for at least one service provider identity of the first subscriber using the nickname stored in the second user record.
Description:
CROSS-REFERENCE TO RELATED APPLICATIONS
[0001] The present application is a continuation of U.S. application Ser. No. 12/071,600, filed Feb. 22, 2008, which claims priority to U.S. Patent Application No. 60/903,306 entitled "Network Identity Management System and Method," filed on Feb. 26, 2007, U.S. Patent Application No. 60/903,303 entitled "System and Method for Providing Identity-Based Services," filed on Feb. 26, 2007, and U.S. Application No. 61/006,544 entitled "Network Identity Management System and Method," filed on Jan. 18, 2008. The entire contents of those applications are incorporated herein by reference.
FIELD OF INVENTION
[0002] The present invention is directed to a method and system for managing network identities using an identity registry.
DISCUSSION OF THE BACKGROUND
[0003] A number of on-line communication protocols exist that enable users to create network identities and communicate with each other. For example, on the Internet, MICROSOFT MESSENGER messaging service, AOL INSTANT MESSENGER messaging service, SKYPE messaging service, and GOOGLETALK messaging service each provide some level of communication between their users as well as some presence information. However, communication between these competing systems has often been problematic. For example, these applications each maintain their own namespaces, even though they may support identical modes of communication (voice, say, or text IM), and they generally do not interoperate.
[0004] Some attempts have been made to utilize services or protocols that interconnect the separate services such that communication can be made between services. TRILLIAN messaging service and JABBER messaging service are attempts that have been made to allow inter-service communication with limited success. Moreover, the management of user identities is still not yet truly unified.
BRIEF DESCRIPTION OF THE DRAWINGS
[0005] The following description, given with respect to the attached drawings, may be better understood with reference to the non-limiting examples of the drawings, wherein:
[0006] FIG. 1 is a block diagram of a network including a registry for user identities;
[0007] FIG. 2 is a message flow diagram showing a first identity authorizing process for use with the network of FIG. 1;
[0008] FIG. 3 is a message flow diagram showing a second identity authorizing process for use with the network of FIG. 1;
[0009] FIG. 4 is a message flow diagram showing the propagation of presence information from a registry to plural service providers;
[0010] FIG. 5 is a message flow diagram showing a first process for authentication and presence information updating;
[0011] FIG. 6 is a message flow diagram showing a second process for authentication and presence information updating;
[0012] FIG. 7 is a message flow diagram showing a first identity authorizing process for use with the network of FIG. 1; and
[0013] FIG. 8 is a message flow diagram showing a first identity authorizing process for use with the network of FIG. 1.
DISCUSSION OF THE PREFERRED EMBODIMENTS
[0014] Turning to FIG. 1, a user of plural Internet services (e.g., SKYPE messaging service, GOOGLETALK messaging service, AOL INSTANT MESSENGER messaging service, and MICROSOFT MESSENGER messaging service) is initially identified using separate user names or other identifiers for each of the plural Internet services. For example, a fictitious user (e.g., John Jones) may have user names such as fictitioususer1@gmail.com and fictitiousdad@aol.com. Both of these user names provide methods of enabling other users to reach John Jones. However, there is no linkage between the two user names that allows John Jones to manage his account information uniformly and in one place. In addition, John Jones may not want all other users to know all of his user names or the presence information provided by the applications with which those user names are associated. To aid in account management, John Jones may subscribe to a registry service that will enable Mr. Jones to unify his on-line identities and centralize his account management and account log-on functions. One example of a registry may be the Personal Internet Communications Unification Project from NET2PHONE, Inc., referred to hereinafter as "PICUP" or "picup.com".
[0015] When Mr. Jones subscribes to the registry service, he is assigned or is allowed to select a registry-specific identifier, such as johnjones@picup.com. As shown in FIG. 2, Mr. Jones may authenticate himself with that name to the registry service (through any number of known authentication techniques and protocols). For example, as shown in FIG. 1, Mr. Jones may use an application (labeled "Reg. App" for registry application) to communicate with the registry service. Applications that can be used for this authentication include, but are not limited to, a web browser (e.g., MICROSOFT INTERNET EXPLORER web browser or MOZILLA FIREFOX web browser) using a user name and password combination or a custom application that passes authentication information (e.g., a user name and password combination, a fingerprint, a secure token or a signed message).
[0016] Having acquired a registry identifier from the registry and having authenticated himself to the registry, Mr. Jones can, as part of the identity management process, begin associating other identities with the registry identifier. To do this, Mr. Jones sends to the registry an "Add identity" message including an identifier such as a user name corresponding to one of the plural service providers. For example, Mr. Jones sends fictitioususer1@gmail.com to the registry.
[0017] The registry may parse the received identifier into a domain name and a user id and, if necessary (as indicated by the dashed line in FIG. 2), request a connection with the service provider associated with the domain name. For example, the registry may contact the GOOGLETALK messaging service server associated with the gmail.com domain name.
[0018] The registry then sends a "challenge" to Mr. Jones via his registry application. The challenge may be in the form of a random number, text or even graphic containing clear or obscured random text/numbers. For example, the challenge could be a random number "9157638." As depicted by the dashed line of FIG. 2, the user then transfers (e.g., copies and pastes or retypes) the random number from the registry application to a service provider application corresponding to the service provider (e.g., the GOOGLETALK messaging service server) for the identity (e.g., fictitioususer1@gmail.com) being added. The service provider application then contacts, on behalf of Mr. Jones, the service provider corresponding to the identifier (e.g., fictitioususer1@gmail.com) that he sent the registry. (Like with the registry application, the service provider application may also be implemented as either a customized application or a web browser-based application.) The service provider application then sends to the service provider the same information that was contained in the challenge that he received from the registry. Lastly, the service provider sends to the registry the challenge that the service provider received from the service provider application (as it was transferred by the user). This completes a confirmation cycle that enables the registry to verify that the user does control the account corresponding to the identifier of the service provider.
[0019] As shown in FIG. 3, a second identity adding process can be used instead. In this process, the registry is not required to make a connection with the service provider to receive the challenge. Instead, after the challenge is received by the registry application, the challenge is provided to the service provider application that signs the challenge using a private key of a public/private key pair. The service provider application then sends the signed message back to the registry, and the registry can verify the signed message using the public key received from a key repository corresponding to the service provider.
[0020] The registry may consolidate not only identities but also real-time information (e.g., presence information) about the identities. For example, as shown in FIG. 4, Mr. Jones may set his status information to "on-line" (using either a registry application or using a service provider application). When this change is received by the registry, the registry propagates this information to all of the service providers that are managed by the registry. However, this information management assumes that the registry and the services can authenticate each other so that the service providers and the registry know that the information is to be shared.
[0021] One way in which this can be achieved is to have a service provider application running locally that authenticates the user to both the service provider and to the registry. As shown in FIG. 5, a service provider application has authenticated itself to its corresponding service provider (e.g., AOL Instant Messaging service). When the user elects to use the registry to centralize its presence information, the service provider application sends to the registry the log-in information (e.g., username and password) used in the initial authentication to the service provider. The registry can then authenticate itself to the service provider as well using the authentication information that the service provider is expecting. To avoid the service provider assuming that this is a new login by the user at a different location (that may cause the existing log-in to be terminated), the registry identifies to the service provider that the registry is logging on only as a proxy that will receive presence information and not as a communications end-point.
[0022] Later, when Mr. Jones uses his service provider application to change his presence information (e.g., by setting it to "Do Not Disturb"), the information received by the service provider will be passed to the registry so that other information services may see the same change, as shown in the last two steps of FIG. 5.
[0023] Alternatively, in the case of having used the authentication method of FIG. 3, as shown in FIG. 6, the service provider application can be configured to send the change in presence information to both its corresponding service provider and the registry. When the change in presence information is sent to the registry, it is preferably signed using the same private key that was used during the process of adding an identity shown in FIG. 3. In such a configuration, the registry can verify the authenticity of signed message containing the change in presence information using the public key corresponding to the identity. This enables the registry to receive presence information updates without requiring the registry to log into the service provider as a proxy. Moreover, if the registry has cached a copy of the public key received during the identity adding process, the registry does not have to re-contact the service provider to verify the authenticity of the change. This can reduce load on the service provider's network.
[0024] As shown in FIGS. 7 and 8, various other authentication protocols are also possible. In FIG. 7, assuming that the registry application has already sent an "Add identity" message including an identifier to the registry, the registry sends back a random challenge to the registry as was discussed above with reference to FIG. 2. However, as shown in FIG. 7, contemporaneously with receiving the challenge, the registry application also receives a phone number (or the name of an identity) indicating where it should be contacted. The user provides this phone number (or identity) to the service provider application which forwards it to the service provider for initiation of a telephone call. The service provider then connects to the telephone number (or identity). In at least one such embodiment, the telephone number (or identity) being used by the registry is provided by the service provider such that the authentication phone call remains "on network" for the service provider. Upon establishing a phone connection between the service provider and the registry, the user is prompted to enter the challenge (e.g., using a keyboard or DTMF tones, depending on the capabilities of the service provider application). Because the registry is able to determine on whose behalf the incoming call is being made (e.g., by looking at the caller ID information for a SKYPE telephone to SKYPE telephone call), the registry can then confirm that the challenge has been properly delivered to the user corresponding to the identity which is being added.
[0025] Alternatively, as shown in FIG. 8, similar to the authentication process shown in FIG. 7, a telephone connection can be made between the service provider and the registry so that the user may send the challenge to the registry over a telephone connection. However, in FIG. 8, it is the registry that establishes a connection to the service provider associated with the identity being added and requests that a connection be made to that identity. In this way the requirement for authentication of the identity on the service provider is pushed to the original service provider itself.
[0026] While the above embodiments of FIGS. 7 and 8 have been described with respect to establishing a telephone connection (e.g., a SKYPE telephone) between the registry and the service provider, other types of connections are also possible. For example, a text messaging connection between authenticated text messaging clients (e.g., between MICROSOFT MESSANGER messaging service clients) can also be established and the challenge(s) sent across those connections.
[0027] In configurations such as those discussed above with respect to FIGS. 7 and 8, the registry may include an automated response program (e.g., an avatar) that handles the incoming and/or outgoing connections and the parsing of the received challenges and/or the prompting for the challenges, whether the connections be telephone-based, text-based or a combination thereof.
[0028] A system, such as the registry described above, that tracks identities and corresponding presence information can provide additional that also make use of information stored in the registry. For example, the registry can support in-bound (i.e., pull to the user) and out-bound (i.e., push to the user) directed advertising to a particular user, whether or not the user manages plural identities through the registry. The advertising sent may be informed by the user's behavior on one or across multiple service provider domains.
[0029] Using a system such as the registry system described above, a user may also be able to manage a set of preferences that controls the order in which the user will be contacted when an in-bound request for communications arrives at the registry. For example, when Bob wants to initiate a text/voice messaging session with Sally, Bob's registry-compatible text messaging client may see that Sally is on-line and available for text messaging, but it may not show whether Sally is using AOL IM messaging service, GOOGLE TALK messaging service, or NET2PHONE COMMCENTER messaging service (because Sally doesn't want it known or because Bob's contact management software only displays presence information about modes, not applications). Bob might therefore invite Sally to a text and/or voice messaging chat session without knowing to which application the "invite" message is sent. That decision could be made by the registry in accordance with logic rules Sally establishes. For example, Sally might have established a connection preference rule (e.g., a "find me" rule) for the PICUP persona Bob is calling that "rings" her first using the NET2PHONE COMMCENTER messaging service, then using the GOOGLE TALK messaging service, then using the AOL INSTANT MESSANGER messaging service. Alternatively, the preference may be based on dynamic conditions, such as which application was most recently used, what time of day it is, what day it is, whether it is a holiday, etc. Other logic rules are possible, and all could be maintained as part of the registry user record for Sally.
[0030] Such preferences also make it possible to receive a preferred mode of communication. For example, the list of preferences may state that during the weekday, the preferred method of connecting is via a specified work telephone number, and then at a cell phone, and then at a voice-based messaging service, then at a text-based messaging service, etc. Alternatively, the list of preferences may state that during the weekend, the preferred method of connecting is via a voice-based messaging service, then at a text-based messaging service, and then no other connections are permitted. Thus, an initiating user may use the registry application to ask the registry what the best match is for contacting a receiving user, and then, based on the information returned, the registry application can start (or request that the user start) the appropriate service provider application to establish the communication channel between the initiating and receiving users.
[0031] The registry application may also be configured such that it interfaces with at least one of the service provider applications to provide connection control (e.g., call set up and tear down) and messaging services. In such a configuration, the user interfaces with the registry application to send messages (e.g., text message, voice messages or voice-over-IP call streams) to the service provider application which then sends them on to its corresponding service provider. The registry application may perform media protocol translations as necessary to provide the messages to the service provider application in a format which it understands. For example, if the registry application receives a voice stream in a first format (e.g., raw) but the service provider application expects it in a second format (e.g., compressed), then the registry application may perform the necessary conversion. In one embodiment, the registry application and the service provider application engage in a format negotiation to determine a preferred format for sending the messages.
[0032] Alternatively, the registry can act as simply an information repository that can be queried by a service provider such that the service provider can provide PICUP-aware routing services to its clients. For example, a PICUP-aware instant messaging server can be used to interact with standard instant messaging clients (e.g., XMPP clients such as iChat and Pidgin). (The Extensible Messaging and Presence Protocol (XMPP) is described in RFC 3920 and RFC 3921, the contents of which are incorporated herein by reference.) Users log into the PICUP server using any of their personalities and any of their XMPP clients. Then, the PICUP-aware server can send to the client a list of all buddies that are logged on, without revealing which IM-clients they are using and with which personality. Later, when a client requests to connect to a buddy, the PICUP-aware server can connect to the buddy without having to divulge which IM-client the buddy is using and with which personality.
[0033] Similarly, a VoIP server (such as an Asterisk server) can be made to be PICUP-aware to route calls according to a user's preferences. (For additional details on Asterisk, see Asterisk: The Future of Telephony, by Jim Van Meggelen, Jared Smith, Leif Madsen,
[0034] Second Edition August 2007, published by O'Reilly Publishing, the contents of which are incorporated herein by reference.) When an incoming call is received at a PICUP-aware VoIP server for a number that is associated with a PICUP user, the PICUP-aware VoIP server can access PICUP to determine if the user has established any preferences which affect how the call is to be routed. For example, "Mary" may have has established a rule that incoming calls to her extension "x1234" should be routed to her cell phone if the caller ID information indicates that the call is from her home or from the cell phone of a family member. Likewise, she may establish a rule to call her in an office down the hall if she knows that she is out of the office. Alternatively, Mary may establish a rule that indicates that inbound calls from VoIP clients should be routed based on who is calling her and at what time. Because her friends and associates may change which VoIP client they use, by establishing rules based on PICUP names and personalities rather than company specific personalities, Mary may be better able to handle who can and cannot reach her and when.
[0035] A similar routing preference interface can be established for other communications paradigms. For example, an e-mail server (e.g., an SMTP server) can be made PICUP-aware such that it can control how e-mail is processed and forwarded. For example, when an email is received at a server, the e-mail server can consult the PICUP server for routing rules that might affect how the mail is delivered. As one example, e-mail from a particular user (e.g., a boss) might always be accepted and sent to an email address associated with where the user is logged on (e.g., either home or office) so that the e-mail is seen as quickly as possible. Alternatively, e-mail from known unwanted addresses may be sent directly to the trash or a folder associated with junk email. Again, by using PICUP-aware routing, a boss who is on vacation and can only use his g-mail account may still be able to reach an employee with high priority if the employee's rules are based on the boss' PICUP-identity rather than just a particular e-mail address.
[0036] The same kind of rules can be applied to calendar events that are sent. A PICUP-aware calendar server can access the rules that a user has established to determine if and how calendar requests should be automatically processed based on who is requesting a meeting and when the requested meeting is.
[0037] Any number of grammars can be used for defining rules and actions. An exemplary rule grammar is defined as follows:
[0038] [Source]:[Target]:[Source Op]:[Target Op]:[Rule Expression]:[ACL].
[0039] [Source] identifies who is initiating the rule and is polymorphic such that [Source] may refer to a subscriber, a group of subscribers or anonymous sources.
[0040] [Target] is polymorphic and may be used to identify subscribers, modes of contact (telephone or IM) or attributes about a subscriber.
[0041] [Source Op] defines an operation to be performed and includes "Search", "Call" and "Add".
[0042] [Target Op] defines how contacts are redirected or may be null.
[0043] [Rule Expression] defines a temporal expression that causes the expression to be performed at certain times (or conditions)
[0044] [ACL] is an access control list that defines whether the rule is Searchable, Retrievable and/or requires an Invitation to be able to search and/or retrieve.
[0045] Using the above grammar, example rules can be created as follows:
[0046] (1) [Subscribed1]:[Subscriber2]:[Call]:[redirect to cell]:[if after work hours]:[Retrievable] in order to reroute a call from a specified caller to subscriber2's cell phone
[0047] (2) [Anonymous]:[Subscriber2]:[Call]:[redirect to voicemail]:[weekend]:[Retrievable] in order to reroute calls from unknown callers to subscriber2's voicemail
[0048] (3) [Subscriber2]:[Attribute:cell #]:[Add]:[null]:[weekdays]:[Requires Invitation]
[0049] Similarly, requests to determine information about a subscriber can be written as rules such as:
[0050] [Subscriber2]:[Cellphone]:[Search]:[null]:[null]:[null] in order to attempt to receive the cell phone number of subscriber2.
[0051] By using access control lists, a subscriber can control whether information can be searched or retrieved. This may be appropriate where you want to avoid the PICUP-server divulging as part of a search certain information (e.g., that your age falls into a particular range), but you are willing to allow other information to be retrieved if the person making the query already knew that information. For example, you can retrieve a person's cell phone number if you already know their age, but the system will not let you search for a person's age. Thus "age" would be retrievable but not searchable.
[0052] Because of the flexibility of the attributes that can be associated with a user's PICUP identity, those attributes can be used as persistent storage of information between different authenticated PICUP users. For example, "Joe" may add information associated with an attribute to his PICUP account and allow "Mary" to search and/or retrieve the information by querying that attribute. In this way, information, such as sales figures, can be stored by Joe such that Mary can pick them up later. One form of information associated with an attribute may be a file such that all the proper formatting and data may be associated with the attribute other than just storing text. Similarly, voice clips and any other information can be associated with an attribute. In this way, a subscriber's voicemails from various phones could be stored in a central location and retrieved by any application that the subscriber uses to authenticate himself/herself.
[0053] As described above, a number of existing applications can be modified to become PICUP aware. These applications can be modified to use either web-based APIs or actual code (e.g., c or C++ libraries) that can be linked in with the application. Either way, the service receives PICUP authentication information from a subscriber to authenticate the subscriber to PICUP and allow the server to retrieve information on the user's behalf. Alternatively, client applications may be developed that use the same Web or code interfaces to interact with PICUP directly. For example, an application that retrieves information associated with stored attributes in the PICUP server does not to interact with any server other than the PICUP server. Thus, such an application could authenticate the user to the PICUP server and retrieve the information (e.g., voicemails) directly.
[0054] As discussed above, attributes may be set to be searchable by subscribers. As such, a number of services may be built that perform certain searches in order to determine which subscribers match particular criteria. For example, a phone company may wish to run a promotion that seeks to target male consumers 21-25 for a chance to go to a football playoff game. If subscriber's have made their age and sex attributes searchable, an authenticated PICUP-aware phone service server may query the PICUP server for subscribers that meet that criteria. Such a query may be run at the phone service server, at the PICUP server or on a combination of both. These searches may be implemented as "plug-ins" to the various servers, assuming that the plug-ins have been authenticated and tested.
[0055] As described above, PICUP allows users to address contacts that have multiple network identities (email addresses, IM names, gaming IDs, phone numbers, social network IDs, etc.) with a single name regardless of which application they happen to be running One way to do that would be to replace all of the existing names with a new identity in a single "super" name space. However, unique names in a single name space are scarce, and late arriving users are forced to choose odd or cumbersome identities that their friends and colleagues may not intuitively associate with them.
[0056] Alternatively, users can instead use any of the existing names registered with PICUP as a means of finding a PICUP user, and, once found, tell PICUP that that found name is currently associated with the intended user. This can be illustrated with the following example. PICUP subscriber, Sally Parker, has the names sally.parker@gmail.com, sp439@aol.com, and sallyp@skype.com, associated with her email, AOL IM, and Skype VoIP services, respectively. Sally would register these with PICUP, which would store them in its database within a record associated with Sally. A caller could then use any of these names to lookup Sally's record. For instance, another PICUP subscriber, Bill Smith, could send a request to PICUP asking for information about Sally. Bill could transmit the name sally.parker@gmail.com to PICUP. Sally's record in the database would be retrieved, and PICUP could inform Bill of the various ways that Sally could be reached (subject to Sally's privacy rules). Bill could also add Sally to his record as a contact.
[0057] A problem with this approach is that there is no assurance that Sally will keep each of her existing application identities. Say, for example, that Sally became unhappy with her gmail service, decided to switch to hotmail, and so deletes sally.parker@gmail.com from her record, and adds sp111@hotmail.com to her record. Now the next time Bill tries to communicate with Sally, he uses sally.parker@gmail.com but cannot retrieve Sally's record, and the attempt fails. Worse, another subscriber in the meantime may have selected the name sally.parker@gmail.com, and now Bill will be put in touch with the wrong subscriber. Sally could elect to give Bill her unique PICUP login name, but that suffers from all the drawbacks of the super namespace. Also, Sally might not want to share her login name with Bill for any of several reasons (security, privacy, etc.).
[0058] Accordingly, there is a need for a naming system that allows one user to refer to any other user by a name that is: (i) memorable, (ii) distinctive, (iii) persistent, and (iv) decentralized. See Zooko's Triangle,; The Persistence of Identity,.
[0059] An implementation of a PICUP server may address this problem by allowing Bill to establish his own name for Sally as an alias or nickname, and to store that nickname in Bill's record. Specifically, this works as follows. Every PICUP record is given an identifier (e.g., a large number or character string) that is unique and distinct from all other PICUP record identifiers, and is never re-used even if the record is deleted. This identifier is internal to PICUP--it need never be exposed to subscribers, let alone to their contacts. When Bill first adds Sally as a contact in his record, perhaps after searching the PICUP database using one of her existing identities, Bill provides a nickname for her contact entry that he would like to use to refer to Sally. This nickname is stored in Bill's record, and PICUP internally links the nickname to Sally's record ID (without exposing Sally's record ID to Bill). The nickname Bill chooses need not be unique to the entire PICUP database; it only needs to be unique among the nicknames used by Bill. Now, whenever Bill wants to identify Sally's record in order to obtain information, all he has to do is identify himself (directly using his password or through a "triangle of trust" relationship) and his nickname for Sally. PICUP then find's Bill's record, and uses the nickname to obtain the unique ID for Sally's record. Using this approach, Sally may change any and all of her service names without ever having to tell any of her contacts. She also doesn't have to expose to Bill her login name or any other information in her user record that she doesn't want him to have.
[0060] In addition, "petnames" can be used to associate internal identifiers with subscribers. For a discussion on petnames, see Petname Systems by Marc Steigler, HPL-2005-148, the contents of which are incorporated herein by reference.
[0061] While certain configurations of structures have been illustrated for the purposes of presenting the basic structures of the present invention, one of ordinary skill in the art will appreciate that other variations are possible which would still fall within the scope of the appended claims.
Patent applications by Ariel Rabkin, Berkeley, CA US
Patent applications by David Lando, West Orange, NJ US
Patent applications by Eduardo Francos, Les Ulis FR
Patent applications by Itamar Hassin, Millburn, NJ US
Patent applications by Liore Alroy, Passaic, NJ US
Patent applications by PICUP, LLC
Patent applications in class COMPUTER NETWORK MANAGING
Patent applications in all subclasses COMPUTER NETWORK MANAGING
User Contributions:
Comment about this patent or add new information about this topic: | http://www.faqs.org/patents/app/20120290698 | CC-MAIN-2015-22 | refinedweb | 5,646 | 50.97 |
A Message-Driven Bean Example
A Message-Driven Bean Example
... of a simple message-driven bean application.
In this example, we are going to implement... messages
asynchronously, a Message-driven bean is used. Message driven
message driven bean example
message driven bean example can any one tell me how to develop and execute ---------- j2ee message driven bean example in weblogic server...://
Message Driven Beans
.
driven bean that is responsible....
Threading: EJB does not allow multithreading
when a message arrives to the bean... not take the new message arrive to the bean.
Message driven bean: Message
A Message-Driven Bean Example
A Message-Driven Bean Example
... of a simple message-driven bean application.
In this example, we are going..._ACKNOWLEDGE);
Code for the
message-driven bean:
The MessageBean
Chapter 10. Message-Driven Bean Component Contract
associated with a message-driven bean by
using JNDI. For example...
Chapter 10. Message-Driven Bean Component...;
Chapter 10. Message-Driven Bean Component ContractIdentify correct
Design and develop message-driven EJBs
provider. You might use a message-driven bean to integrate
an EJB-based...-driven EJBs
A message-driven bean is a new... passes the message via a listener port to the bean. Message-driven beans
Ejb message driven bean
you the process which are
involved in making a message driven bean using EJB...;
For developing the message driven bean we are using both the EJB module and web...
.style1 {
color: #FFFFFF;
}
Ejb message driven
From a list, identify the responsibility of the bean provider and the
responsibility of the container provider for a message-driven bean.
and the
responsibility of the container provider for a message-driven bean.
Prev Chapter 10. Message-Driven Bean Component Contract ...
The message-driven bean provider is responsible for providing message
Ejb message driven bean
Ejb message driven bean
... the EJB module and web module. The
steps involved in creating message driven bean... driven bean using EJB. Mesaage driven bean in EJB
have the following features
Identify the interfaces and methods a JMS message-driven bean must implement.
Identify the interfaces and methods a JMS message-driven bean must implement.Prev Chapter 10. Message-Driven Bean Component... message-driven bean must implement.All message-driven beans MUST implement
EJB Example - EJB
EJB Example Hi,
My Question is about enterprise java beans, is EJB stateful session bean work as web service? if yes can you please explain with small example.
Thanks
sravanth Hi Friend,
Please visit
first entity bean example in eclipse europa - EJB
first entity bean example in eclipse europa pls provide steps to create simple ejb3.0 application in eclipse .And also how to create entity bean...://
Hope that they will be helpful
Session Bean Example
Session Bean Example I want to know that how to run ejb module by jboss 4.2.1 GA (session bean example by jboss configuration )?
Please visit the following link:
EJB Hello world example
EJB Hello world example
... in EJB and testing it.
You can also create a hello world example to test your...
in the bean.@EJB is the
annotation
used for
configuring the EJB
An Entity Bean Example
and a database.
For example, consider a bank entity bean that is used... bean class:
In the Book catalog
example, we define a Book entity bean... Persistence Example
...
=================================
EJB message is:Roseindia.net
Company name
Stateless Session Bean Example Error
Stateless Session Bean Example Error Dear sir,
I'm getting following error while running StatelessSessionBean example on Jboss. Please help me...)
Please visit the following link:
Stateless Session Bean Example
EJB 3.1 - EJB Interfaces are Optional
EJB in jsp code - EJB
EJB in jsp code Suppose in EJB we created the session bean, remote...
Hope... can we access the EJB methods in the jsp file....
if u can present me
Features of EJB 3.0
of business methods.
A message driven bean does not need to include
the business interface as there is no direct interaction of the client with
the message driven bean... notifies the message driven bean instance that it is
about to destroy, simply
EJB, Enterprise java bean- Why EJB (Enterprise Java Beans)?
Why EJB (Enterprise Java Beans)?
Enterprise Java Beans or EJB..., Enterprise
Edition (J2EE) platform. EJB technology enables rapid and simplified
Bean
visit the following links:
entity bean
/ejb/entity-bean-example.shtml...entity bean can any one tell me how to develop and execute ---------- j2ee entity beans (cmp,bmp) example in weblogic server with (netbeans
Chapter 13. Enterprise Bean Environment
,
used to specify the referenced enterprise bean.
Used in: entity, message-driven....
Used in: entity, session, message-driven
-->
<!ELEMENT ejb-local-ref... expected by the enterprise
bean code.
Used in: entity, message-driven
EJB 3.0 Tutorials
Bean Example
Message Driven Beans
Motivations... an existing type of EJB component somehow to receive JMS messages
Message driven bean
A
Message-Driven Bean Example
j2ee example programs
j2ee example programs can any one tell me how to develop and execute ---------- j2ee entity beans (cmp,bmp) example,message driven bean example ,webservices example in weblogic server with (netbeans or eclipse
java - EJB
an application by an example that contains a session bean and a CMP but not able.... Hi mona,
A session bean is the enterprise bean that directly... application. A session bean represents a single client accessing the enterprise
EJB3 - stateless - EJB
EJB stateless session bean Hi, I am looking for an example of EJB 3.0
EJB - EJB
EJB What is the difference between EJB 2.0 and EJB 3.0?
GIVE ME....
---------------------------------------------------
Visit for more information with example.
Thanks.
Amardeep Hi friend,
Difference between EJB
EJB Hello world example
EJB Hello world example
... in EJB and testing it.
You can also create a hello world example to test your... can access the methods which are defined
in the bean.@EJB
Stateful Session Bean Example
Stateful Session Bean Example
... bean:
The enterprise bean in our example is a statelful
session bean called...
the Session Bean Class:
The session bean class for this example is called
Identify correct and incorrect statements or examples about application
exceptions and system exceptions in entity beans, session beans, and message-driven
beans.
of exceptions thrown by a method of a message-driven bean (MDB)
with container... thrown by a method of a message-driven bean (MDB)
with bean-managed... exceptionContainer's action
Bean is message-driven bean
Session Bean
-lived components. The EJB container may destroy a session bean if
its client times... i.e. the EJB
container destroys a stateless session bean. ... is a Session bean
A session bean is the
enterprise bean that directly
ejb - EJB
ejb plz send me the process of running a cmp with a web application send me an example
Simple EJB3.0 - EJB
://
Thanks...;>> my question is how to make session bean and how to access this session
EJB, Enterprise java bean, EJB Intoduction- Enterprise Java Beans (EJB) - An Introduction
beans, entity beans, and message-driven beans. A bean developer
has... a third
type of bean called message-driven bean. A
message-driven....
Unlike other types of beans, a message-driven bean is a local object
Java bean example in JSP
Java bean example in JSP
... that help in understanding
Java bean example in JSP.This code illustrates... of Java bean.
Understand with Example
In this example we want to describe you
Error in simple session bean ..................
more
EJB Hello World Example
Please visit the following links...Error in simple session bean .................. Hi friends,
i am trying a simple HelloWOrld EJb on Websphere Applicatiopn server 6.1.
Can any
Spring Bean Example, Spring Bean Creation
Basic Bean Creation
The Spring bean can typically be POJO(Plain Old Java... java bean file
having two methods getMessage() and setMessage() and a default...;}
}
The context.xml connects every bean to every other bean
ejb
ejb what is ejb
ejb is entity java bean:
EJB deployment descriptor
EJB deployment descriptor
Deployment descriptor is the file which tells the EJB server
that which classes make up the bean implementation, the home interface and the remote
EJB deployment descriptor
application. In the example given below our application consists of
single EJB...
EJB deployment descriptor
Deployment descriptor is the file which tells the EJB server
that which classes make
Example of struts2.2.1 bean tag.
Example of struts2.2.1 bean tag.
In this tutorial, you will see the use of bean tag of struts2.2.1 tag. The Bean tag is a generic tag that is used...;/head>
<body>
<h1>Example
of bean tag.....</h1>
<
EJB container services
support authentication and role-driven access control.
Example below show...
EJB container services
The EJB container is a container that deploys EJB automatically when
Web Server
java bean - EJB
protocol where as Java Bean is standalone and works only in the same JVM.
3)EJB...java bean difference between java bean and enterprice java bean first of all dont compare java bean with enterprise java bean because
Accessing Database using EJB
through the EJB example given below to find out the steps involved in accessing Database.
Creating a simple Database driven application in EJB
1)Create... the methods which are defined in the bean.
@EJB:-This is the annotation
Accessing Database using EJB
;
This is a simple EJB Application that access the
database. Just go through the EJB example... a simple Database driven application in EJB
1)Create an interface named...
through which we can access the methods which are defined in the bean.
@EJB
Writing Calculator Stateless Session Bean
Writing Calculator Stateless Session Bean...;
In this EJB tutorial we will learn how to Write
Staleles Session Bean for multiplying the values entered by user. We will use ant
build tool
EJB life cycle method
as the life cycle of EJB. Each type of enterprise
bean has different life cycle. Here we are telling you about the lifecycle of
message driven bean. This type... is the program denoting life cycle of message
driven bean.
package
doubt in ejb3 - EJB
EntityBean.UserEntityBean;
/**
* Session Bean implementation class UserBean
*/
@Stateless...(name="example")
EntityManager em;
public static final... = Persistence.createEntityManagerFactory("example");
// this.em= emf.createEntityManager
java bean code - EJB
java bean code simple code for java beans Hi Friend... the Presentation logic. Internally, a bean is just an instance of a class.
Java Bean Code:
public class EmployeeBean{
public int id;
public
Chapter 9. EJB-QL
. The Bean Provider uses
EJB QL to write queries based on the abstract....
For example, matching finder method declaration and EJB QL...
Chapter 9. EJB-QLPrev Part I. Exam
Given a list of responsibilities related to session beans, identify those which
are the responsibility of the session bean provider and those which are the responsibility
of the EJB contai
are the responsibility
of the EJB container provider.
Bean Provider's...-specific
code with the session bean class. This code may, for example, help... which
are the responsibility of the session bean provider and those
Cmp Bean - EJB
Cmp Bean I want to create connection pool in admin console in sun app server
the data base is sql server, I gave the resource type... Mbean. Target exception message: Class name is wrong or classpath is not set
Bean Tag (Data Tag) Example
Bean Tag (Data Tag) Example
In this section, we are going to describe the Bean Tag. The Bean tag is a generic tag..., it will
place the instantiated bean into the stack's Context.
Add the following code
Managing Bean Example
Managing Bean Example
...;head><title>Managed Bean Example(User Page)</title></head>...;
<head><title>Managed Bean Example (Welcome page)<
MDB - EJB
in an EJB server - all the Swing code you've supplied is not MDB, its regular JMS MessageListeners / consumers as its not using MDBs or EJB.
import javax.swing.... for more information.
JSP bean get property
JSP bean get property
The code illustrate an example from JSP bean get property. In this example we
define a package bean include a class
Chapter 5. EJB transactions
bean.
To add an isolation level to an EJB 2.0...
Chapter 5. EJB transactionsPrev Part I. Exam Objectives Next
Chapter 5. EJB
example
example example on Struts framework
Writing Deployment Descriptor of Stateless Session Bean
Writing Deployment Descriptor of Stateless Session Bean...
for the session bean. We need the deployment descriptor for application (application.xml),
ejb deployment descriptors (ejb-jar.xml and weblogic-ejb-jar.xml
JSF Manage Bean
JSF Manage Bean how to register JSF manage bean? Please give me an example.
Thanks!
JSF Manage Bean Example
Deleting a Row from SQL Table Using EJB
Deleting a Row from SQL Table Using EJB
In the given example of Enterprise Java Bean, we... access the methods which are defined in the bean.
@EJB
EJB
Transactional Attributes
or with the
onMessage(...) method of a message-driven bean. The
transaction attribute...).
For a MESSAGE-DRIVEN bean, the transaction attribute MUST be specified... invokes a message-driven Bean method whose transaction
attribute is set
ejb - EJB
the javax.ejb.EnterpriseBean interface by EJB class. The EJB bean class is now pure java class... of 3.0 version. Hi friend,
EJB :
The Enterprise JavaBeans architecture or EJB for short is an architecture for the development and deployment
example
example i need ex on struts-hibernate-spring intergration example
Struts Spring Hibernate Integration
Given a list of responsibilities related to exceptions, identify those which are
the bean provider's, and those which are the responsibility of the container
provider. Be prepared to recog
the SYSTEM Administrator); and, unless the bean is a message-driven bean....
The Bean Provider is also responsible for using the standard EJB APPLICATION... on.
Bean Providers MAY define subclasses of the standard EJB application
From a list of responsibilities, identify which belong to the application
assembler, bean provider, deployer, container provider, or system administrator.
or for the onMessage method of a
message-driven bean...
the users (for example in an LDAP directory).
Bean Provider's...-identity element cannot be specified for
message-driven beans 3.0 Tutorial
, Stateless Session Beans.
Message-Driven Bean : Message-Driven Bean permits... of EJB like what is an
Enterprise Bean, what is EJB container, benefits....
Message-Driven beans likewise the JMS message listener, that receives the JMS Enterprise Bean Perspective to Allow Access
of an enterprise bean to the remote business interface.
for example :
@EJB... the reference of the enterprise
bean to the no-interface view. for example... interface. for example
@EJB
XYZ xyz;
Through JNDI lookup, lookup method
bean - JSP-Interview Questions
bean what is use bean in jsp? Hi Friend,
Please visit the following links:
Hope
Bean life cycle in spring
Bean life cycle in spring
This example gives you an idea on how to Initialize
bean in the program and also explains the lifecycle of bean in spring. Run the
given bean example
J2EE Tutorial - Session Tracking Example
;
its state).The greeter bean that we saw earlier is an example of 'stateless'
bean. ( but not in EJB context).
Having thus familairized...J2EE Tutorial - Session Tracking Example
Example
EJB JNDI LOOK UP PROBLEM - EJB
://
Hope that it will be helpful for you...EJB JNDI LOOK UP PROBLEM Hi,
I am using jboss4.2 and created
Advertisements
If you enjoyed this post then why not add us on Google+? Add us to your Circles | http://www.roseindia.net/tutorialhelp/comment/83180 | CC-MAIN-2015-48 | refinedweb | 2,538 | 58.89 |
A Python wrapper for the Discord API
Project description
A modern, easy to use, feature-rich, and async ready API wrapper for Discord written in Python.
Key Features
- Modern Pythonic API using async and await.
- Proper rate limit handling.
- 100% coverage of the supported Discord API.
- Optimised in both speed and memory.
Installing
Python 3.5.3 or higher is required
To install the library without full voice support, you can just run the following command:
#:
$ git clone $ cd discord.py $ python3 -m pip install -U .[voice]
Optional Packages
- PyNaCl (for voice support)
import discord class MyClient(discord.Client): async def on_ready(self): print('Logged on as', self.user) async def on_message(self, message): # don't respond to ourselves if message.author == self.user: return if message.content == 'ping': await message.channel.send('pong') client = MyClient() client.run('token')
Bot Example
import discord from discord.ext import commands bot = commands.Bot(command_prefix='>') @bot.command() async def ping(ctx): await ctx.send('pong') bot.run('token')
You can find more examples in the examples directory.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
py-cord-1.7.3.tar.gz (731.3 kB view hashes)
Built Distribution
py_cord-1.7.3-py3-none-any.whl (786.6 kB view hashes) | https://pypi.org/project/py-cord/ | CC-MAIN-2022-27 | refinedweb | 232 | 54.69 |
Series: asyncio basics, large numbers in parallel, parallel HTTP requests, adding to stdlib
Update: slides of a talk I gave at the London Python Meetup on this: Talk slides: Making 100 million HTTP requests with Python aiohttp.
Update: see how Cristian Garcia improved on this code here: Making an Unlimited Number of Requests with Python aiohttp + pypeln..
See also:.
23.
That is a nice experiment. Andy, the fact that your client-async-as-completed uses 100% CPU is not a good thing. It indicates a problem with using busy-waiting. Your “while True” loop continuously checks for task completion, and that causes 100% CPU utilization. A better approach is to use
while futures:
done, futures = await asyncio.wait(futures, return_when=asyncio.FIRST_COMPLETED)
# then re-fill the set of futures from the coros iterable
asyncio.wait does not do busy-waiting
Awesome, thanks ruslan!
This is a great post! I learned a lot from it.
I’m also thinking about how to use aiohttp for a similar task.
Inspired by this post, I’m using only the semaphore to control the concurrent requests without exhausting CPU or memory. The only thing I do differently is to acquire the semaphore before creating the future task and release the semaphore after fetching the result.
Code:
Thanks Shih-Wen Su – looks great!
Hi!
I created this library called `pypeln` – for creating many kinds of concurrent data pipelines. It currently supports Processes, Threads and asyncio Tasks.
Your post was an inspiration when implementing the io module!
With pypeln you can easily solve the problem you showed like this:
“`
from aiohttp import ClientSession
from pypeln import io
import sys
r = int(sys.argv[1])
url = “{}”
with ClientSession() as session:
data = range(r)
io.each(lambda i: fetch(url.format(i), session), data, workers=1000)
“`
Thanks for sharing you knowledge!
Wow Cristian that looks brilliant!
I was planning to write a follow-up using pypeln, but I got this:
Can you give a more complete example?
Hey Andy,
Glad you liked it!
The error is due to changes in the iohttp library, it seems that ClientSession now has to be run with “async with” instead of “with”. Your original code should no longer work.
Here is a full working example:
from aiohttp import ClientSession
from pypeln import io
import asyncio
import sys
async def fetch(url, session):
async with session.get(url) as response:
return await response.read()
async def main():
r = 10
url = “”
# r = int(sys.argv[1])
# url = “{}”
async with ClientSession() as session:
data = range(r)
await io.each(lambda i: fetch(url, session), data, workers=1000, run = False)
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
print(“Finish”)
BTW: how do you make a code block on the comments?
Here is a gist for the code:
You can add “pre” tag around your code, I think. (I can, anyway.)
Thanks, I will test it out and hopefully write a new post.
Hmm, something is not working the way we expect – it took longer for this code to do 1000 requests than the client-async-as-completed took to do 10000:
Thank you very much for the feedback!
If possible, can we continue the discussion in this issue:
I looked at the code and made some optimizations, please update to the development code like this before you try:
pip install git+
Maybe include the -U flag:
pip install -U git+
Continuing here:
See for Christian’s new improved version.
Hi ,
This is great analysis on timecomplexity.
Looking for similar requirement with Python based Unit test framework:
1. Fire 100000 unique URL requests in parallel ( Not sequential and not repetitive requests) — Thread1
2. Verify HTTP response status code ( eg: 200, 403, 404 etc) of each requests in parallel , may be handled via different thread — Thread2
3. Verify Response headers of each URL requests –> may be handled via different thread – Thread3
4. Login to remote machine ( to which requests is fired) and verify logs –> Can this be done using RpyC — Thread4
any unit test framework like tornado or different framework using asyncio/aiohttp suitable with above requirements in optimized time fashion. | https://www.artificialworlds.net/blog/2017/06/12/making-100-million-requests-with-python-aiohttp/ | CC-MAIN-2020-05 | refinedweb | 682 | 65.22 |
w20e.pycms 1.0.1a
Pyramid CMS
==========
Only fools and nerds create their own CMS nowadays. Hurray! Anyway, so
here it is, w20e.pycms. Using the Pyramid framework as its base,
building on top of good old Zope (and some Plone) concepts. The CMS is
created using these main concepts:
* ZODB as database
* ZCML as configuration/glue language
* small core
* optional components (like search, catalog, sharing); just include what
you like
The CMS is a framework, not an out of the box app. What you'll need to
do is create your own Pyramid app, using the CMS as base. We've tried
to make this as easy as possible: use w20e.pycms.sitemaker (to be
found on github or pypi) to obtain a paster template for your app. Run
paster to create your app, and there you go...
Why?
----
w20e.pycms is Yet Another CMS, but without using the acronym. Why,
for the flying spaghetti monsters sake another CMS? Well, you know how
it goes. You use Plone for some years, find out that when your
favourite tool is a hammer, all problems have a rather strong tendency
towards nailishness... Then Pyramid comes along, giving you the best
of Plone (ZODB, Zope Component Architecture, ZCML, Chameleon, etc.)
for creating lightweight apps. Then you need a Page with
WYSIWYG... then you need search... sharing. Then you wake up with a
basic CMS in your hands. May as well share it so you can decide for
yourself whether it is worth your while. I mean, you dont __have__ to
use it!
Anyway, read on if you like...
For whom..?
-----------
w20e.pycms is not for the faint of heart, nor for people that cannot
read Python code, hate programming, think that the use of XML for
configuration is sooo 1990, are convinced that Windows 95 was the best
OS ever or would preferrably use a rocket launcher to deal with vermin
in the kitchen. It _is_ on the other hand, for those that rank
fuckit.js among the best JS libraries ever, enjoy Terry Pratchett,
love buildout en ZCML and think that beer is so much more that just a
breakfast drink.
Features
--------
Our little CMS gives you a framework to build your sites upon, if
you're not targeting the enterprise market. If you do, be gone (to the
plone.org site)!
PyCMS gives you:
* ZODB for storing data
* blobstorage
* user & group management
* search, using repoze.catalog (optional)
* creating and maintaining pages
* an easily extendable framework for new content types
* a lot of ZCML configuration
* CMS design based on (Twitter) Bootstrap
Getting started
---------------
We assume that you know how to use buildout, create virtual
environments, like to use paster, etc. But this is only one way to get
things going...
First, create a package for your project, requiring:
w20e.pycms
The easiest way to do so, is using our paster template
pycms_project. Install the w20e.pycms.sitemaker package (get it from
github), something along these lines:
# virtualenv <env>
# cd <env>; ./bin/activate
# ./bin/easy_install w20e.pycms.sitemaker
# cd <wherever you'd="" like="" your="" app="" sources="">
# paster create -t pycms_project <package name="">
If you really want to do it by hand, create an __init__ file for your
Pyramid app like this:
from w20e.pycms import make_pycms_app
def main(global_config, **settings):
return make_pycms_app(__package__, **settings)
and Bob might be your Uncle.
Secondly, create a buildout and virtualenv for your stuff. Why not use
w20e.buildoutskel? Install it using easy_install, and
# cd <whereever you="" want="" your="" buildout="" files="">
# paster create -t buildout
and answer <package name=""> to the project name question, and pycms to
the type question.
You now have a bunch of buildout files, almost ready to run your app!
You most likely will consider creating a buildout-my.cfg that extends
buildout-base.cfg, and adds some develop paths, like:
develop =
<that path="" where="" your="" pycms="" app="" was="" created,="" and="" where="" the="" setup.
Last, run python bootstrap.py and then buildout with your config file.
Now it's time to rev up the engine, and see what has happend. Run your
app like so (within the buildout dir):
# ./bin/paster serve dvl.ini [--reload]
Direct your favorite browser (most likely Lynx or Mosaic) to and sit back and relax!
Configuration
-------------
You may or may not be totally satisfied with the result so far. If
this is utterly your idea of a superduper web app, good on ya! If not,
read on...
- Add the default management and public css / js files (if you want):
add this to your configure.zcml:
<include package="w20e.pycms" file="public_resources.zcml"/>
<include package="w20e.pycms" file="manage_resources.zcml"/>
- Include any other CSS and JS you like, using the pycms zcml directives:
<pycms:css <
<pycms:js <
- Override assets like favicon and robots.txt:
<asset <
- Most likely you'll want to override the 'content' macro, that is
called to display a page. To do this, make your own pt file, make
that extend 'main.macros['master'], and let it fill the 'body' slot:
<metal:define-macro metal:
<html xmlns="" < xml:lang="en"
i18n:domain="w20e"
xmlns:
<head/>
<body metal:
Good morning Grommit...
<metal:define-slot
</body>
</html>
</metal:define-macro>
and add to your configure.zcml (always assuming you called your macro
main.pt):
<pycms:macro <
Using the CMS: core concepts
----------------------------
The core CMS consists solely of pages. Pages are just things with
text. Nothing serious. You may want to create your own content types,
actions, etc. Luckily that's not hard to do. Best way is to look at
existing code... Anyway, some examples here:
Actions
-------
You can register actions with your content. The currently used setup
mainly uses 'perspectives' or ways to look at your content. In the
management interface these are rendered as 'tabs'. Actions are
configured using zcml. Use the action statment as follows:
<pycms:action <
ctype is an optional filter.
Content types
-------------
Create your own content types if you wish. You can register an icon,
and possible subtypes with your type using:
<pycms:ctype <
Your actual model should extend either
w20e.pycms.models.base.BaseContent
or
w20e.pycms.models.base.BaseFolder.
You may want to use w20e.forms (read: should) for your model. Create
an xml form that describes your model, and add it. A simple model
looks like this:
from w20e.pycms.models.base import BaseContent
class SomethingSimple(BaseContent):
""" Well, actually it's more like an 'object'... """
add_form = edit_form = "../quote/somethingsimple.xml"
def __init__(self, content_id, data=None):
BaseContent.__init__(self, content_id, data)
def base_id(self):
return self.__data__['title']
@property
def title(self):
return self.__data__['title']
robots.txt
----------
The default robots.txt disallows all. Override as per your liking...
Search
------
Would you like search enabled for your site?
Add this to your configure.zcml:
<include package="w20e.pycms" file="search.zcml"/>
Sharing anyone?
---------------
Would you like search enabled for your site?
Add this to your configure.zcml:
<include package="w20e.pycms_sharing"/>
and this to your setup dependencies (don't forget to run buildout):
w20e.pycms_sharing
Settings
--------
pycms.acl.force_new = True|False
Force new version of ACL. All your security data will be lost
pycms.catalog.force_new = True|False
Force new version of catalog. All your entries will be lost, but you
can just run reindex-catalog and all is well again...
pycms.admin_user = <user>:<pwd>
Admin user and password, like so: pycms.admin_user = admin:pipo
pycms.admin_secret = <somesecret>
This secret may be used as URL parameter to obtain admin permission
Use it wisely!
pycms.minify_css = True|False
Minify CSS. Defaults to False
pycms.minify_js = True|False
Minify JS. Defaults to False
pycms.logged_in_redirect = <url>
pycms.rootclass = <full dotted="" classname="">
Defaults to w20e.pycms.models.site.Site
pycms.roottitle = <string>
Defaults to "Welcome"
pycms.from_addr
Send email as ...
pycms.bcc_addr
Send also to bcc
pycms.after_add_redirect
Where to go after successfull add
pycms.cancel_add_redirect
Where to go after cancelled add
pycms.after_del_redirect
Where to go after delete
1.0.1a
======
* Enabled call to render viewlet through base view
- Author: D.A.Dokter
- Keywords: web pylons pyramid
- Categories
- Package Index Owner: w20e
- DOAP record: w20e.pycms-1.0.1a.xml | https://pypi.python.org/pypi/w20e.pycms/1.0.1a | CC-MAIN-2017-09 | refinedweb | 1,347 | 69.07 |
Modern Typescript oriented libraries start to use classes and decorators in their APIs.
Everything is awesome until libraries start to use reflect-metadata API which enforce you to define business logic in the static types which are magically reflected into your runtime code.
TLDR:
Don't vendor lock yourself with unsupported experimental syntax and
don't use
reflect-metadata which forces you to pre-process your runtime code.
Use raw vanilla Javascript and infer Typescript data types directly from the Javascript definitions.
Good code
const userModel = model({ id: nonNullable(stringType()) name: nonNullable(stringType()) })
Bad code
@Model() class userModel /* decorators are nice syntax sugar ^^ */ @Field() id: string /* problem is that business logic is coded in typescript type here */ /* decorators are nice syntax sugar ^^ */ @Field() name: string /* problem is that business logic is coded in typescript type here */ }
Check full working example of the good code in the Typescript playground
And... what is
reflect-metadata?
Before we dig deeper to reflect-metadata we need to understand what are decorators Typescript decorators API.
Decorators
Decorators are syntax sugar which gives us the option to write quasi
high-order-functions to enhance
classes,
methods, and
properties.
class ExampleClass { @first() // decorators @second() // decorators method() {} }
You may know a similar pattern from languages like
C#,
Java or
Python.
If you compare Typescript decorators to the Python implementation,
you can find the difference that Typescript implementation does not work for basic
functions or
arrow functions.
At the top of it, the decorators are only a Typescript specific feature.
But we have to pay attention because similar functionality is already in the tc39 Javascript proposal at stage 2.
reflect-metadata
That was decorators, now we have to look for the reflect-metadata library.
Let's check the documentation.
Background
- Decorators add the ability to augment a class and its members as the class is defined, through a declarative syntax.
- Traceur attaches annotations to a static property on the class.
- Languages like C# (.NET), and Java support attributes or annotations that add metadata to types, along with a reflective API for reading metadata.
If you don't fully understand who will use it in the real world you can check some libraries which use
reflect-metadata to define the applications data models.
- type-orm (~24K Github stars)
- type-graphql (~6K Github stars)
- nest.js (~37K Github Stars)
- and so on...
If you know these libraries you know what I'm talking about.
Thanks to the
reflect-metadata library you can "hack" into the Typescript compiler and get the static type metadata from compile-time into your Javascript runtime.
For example, you may have code like:
@ObjectType() class Recipe { @Field() title: string; }
The
reflect-metadata library enables us to write decorators that will read metadata from the static type and this metadata may affect your Javascript runtime code.
You may imagine this metadata as an information that field title is
string.
So that's pretty handy syntax sugar!
Yes...
But actually...
No... There is another side of the same coin.
Let's check on how to define an SQL table via the
type-orm library using decorators and
reflect-metadata.
@Entity() export class User { @PrimaryGeneratedColumn() id: number; @Column() firstName: string; }
As you may see, there is no Javascript runtime information about the data types of columns.
So that's magic because the basic Typescript compiler should transpile code into this:
@Entity() export class User { @PrimaryGeneratedColumn() id; @Column() firstName; }
The default Typescript compiler removes information about data types. Thanks to
reflect-metadata and
"emitDecoratorMetadata": true this code is still working
since it transfers information about static types into the runtime metadata descriptor which can be read in the Javascript runtime.
And where is the problem?
In my humble opinion the whole philosophy of influencing Javascript runtime via static types is bad and we should not use it in the Javascript ecosystem!
The
reflect-metadata library has to influence the Typescript compiler and forces us to vendor lock our code into Typescript specific syntax so we're no longer able to use raw vanilla Javascript. The beauty of standard Typescript is that it just enhances the real Javascript codebase and enables us to have better integration, stability and documentation.
If some typings do not work correctly we can just use
as any,
@ts-expect-error or
@ts-ignore, and everything is okay. We don't need to bend our application in the name of strict-type-safe-only faith. The strongest type-system advantage of Typescript over the others is that Typescript is just a tool for developers and it does not optimize the runtime.
If you define a variable in the C language, you know how many bits will be allocated in the memory thanks to the definition of a data-type.
At first glance, it could look like Typescript is missing this kind of optimization but on the other hand we should also realise that THIS is the game changer!
It enables us to just use a type system to help us document code and avoid runtime errors with the best developer experience.
If you combine this philosophy with Typescript type inferring you get the greatest dev-tool for avoiding runtime errors which is not affecting Javascript code.
If you're more interested in some fancy usage of Typescript type inference which solves real-world problems, you can check my other articles.
- World-first Static time RegEx engine with O(0) time complexity
- React typed state management under 10 lines of code
- Type inferred react-redux under 20 lines
- and so on...
Reflect-metadata vs single source of truth (SSOT)?
If you use libraries like
typed-graphql or
type-orm you can find that
reflect-metadata is only working for basic data types like:
number,
string, and
boolean.
If you want to refer to another data type, you have to create a real Javascript pointer reference.
There are some real-world examples where you can see that the code is "duplicated" and you have to define real Javascript reference and static type reference.
It mean that you do not follow SSOT (Single source of truth) and DRY (Don't repeat yourself) at all.
type-orm example
(you should read comments in the code snippet)
@Entity() export class PhotoMetadata { // here you have to define a reference into the real runtime Javascript pointer @OneToOne(type => Photo) @JoinColumn() // here you duplicate the pointer into Photo just to have proper static types photo: Photo; }
type-graphql example
(you should read comments in the code snippet)
@InputType() class NewRecipeInput { // here you have to define a reference into the real runtime Javascript pointer @Field(type => [String]) @ArrayMaxSize(30) // here you duplicate the pointer into Photo just to have proper static types // so that means you can have an inconsistency between the static type and @Field(...) definition ingredients: string[]; }
Our target is to have SSOT which describes our data types and give us
- Static type inferring
- Infer cyclic pointer references
- Option to have runtime Javascript validations
- Type-safety
- Good documentation
- Enable us to use standard Javascript tooling
- Enable us to generate the schema in the runtime
The solution
So we have explained why using
reflect-metadata suc*s...so what should we use instead?
Thanks to Typescript generics we're able to write data types as a Javascript function composition or just simple
hash-map/
object.
Then we can Infer the data types. Thanks to that our code is pure Javascript, we're able to be more flexible and generate data types on the fly and not be fixed.
JSON Schema vs Class-based schema
In the previous examples we used class to define the schema, now we'll use a simple Javascript hashmap.
So let's define some basic ones.
const mySchema = { type: 'object' as const, properties: { key1: { type: 'number' as const, required: true as const, }, key2: { type: 'string' as const, required: false as const, }, }, required: false as const, }
The only Typescript-specific code there is the
as const notation which defines that the data type should have been the same as the value.
We're able to write a data type for a schema like this:
export type SchemaArr = { type: 'array' required?: boolean items: Schema } export type SchemaObject = { type: 'object' required?: boolean properties: Record<string, Schema> } type SchemaBoolean = { type: 'boolean' required?: boolean } type SchemaString = { type: 'string' required?: boolean } type SchemaNumber = { type: 'number' required?: boolean } export type Schema = SchemaArr | SchemaObject | SchemaString | SchemaNumber | SchemaBoolean
Let's go deeper, Infer type from the Javascript schema!
Now we can create a generic which extracts the data type from the schema definition.
type NiceMerge<T, U, T0 = T & U, T1 = { [K in keyof T0]: T0[K] }> = T1 type MakeOptional<T, Required extends boolean> = Required extends true ? T : T | undefined export type InferSchemaType<T extends Schema> = T extends { type: 'object' properties: infer U } ? // @ts-expect-error { [K in keyof U]: InferSchemaType<U[K]> } : T extends { type: 'array'; items: any } ? // @ts-expect-error MakeOptional<InferSchemaType<T['items']>[], T['required']> : T extends { type: 'boolean' } ? // @ts-expect-error MakeOptional<boolean, T['required']> : T extends { type: 'string' } ? // @ts-expect-error MakeOptional<string, T['required']> : T extends { type: 'number' } ? // @ts-expect-error MakeOptional<number, T['required']> : never
For simplicity I will not be describing how the
InferSchemaType<T> generic was crafted. If you want to know more, just mention me below in the comment section.
This generic is kinda more complicated but if we look at the result we can see that the generics work perfectly.
type MySchemaType = InferSchemaType<typeof mySchema>
Or we can create builder util functions which build JSON with the nicer API.
You can check full source code here
This is phenomenal code to define a schema and infer a type from it.
It's very strong because it enables us to just write simple raw Javascript and 100% of static types are inferred via a few generics and functions.
At the end...
Thanks to omitting experimental Typescript API and returning into good old Javascript we don't vendor-lock our code into the Typescript compiler.
Validators
Even if we want to have runtime-validations, it's super easy to write a runtime validator on top of this schema definition.
If you're more interested in how to write validation from schema you can check the source code on my Github
Use High-order-functions vs Decorators API
But what if you just like decorators and you want to enhance some functions?
Decorators are just syntax-sugar. We can program the same in raw Javascript with a few TS generics.
Decoration API
class ExampleClass { @first() // decorator @second() // decorator method() { console.log('hi') } }
vs
HOF (high-order-function) API
Raw Javascript
// these two examples are not the same because // 1. the second one will instance the method function code every time that class is instanced // 2. there is different `this` binding // but we'll ignore that small difference and we'll focus on different stuff... const fn1 = first()(second()((self) => { console.log('hi') })))
with usage of Ramda.js library
import * as R from 'ramda' const fn1 = R.pipe( second(), first() )(self => { console.log('hi') })
If you want to see more about how to add proper types for HOC or the Pipe function just tell me down in the comment section.
Who should care about this article the most?
The problem is not with the regular programmers who just install npm libraries.
The problem is the authors of libraries who think that this new
reflect-metadata API with experimental decorators will save the world, but at the opposite side it just vendor locks your codebase into 1 edge-case technology.
Is there some good library too?
Haha! good question, of course there is.
I picked two libraries which uses the same philosophy as we described in this article.
1. Typed-env-parser
Typed env parser - npm.
Typed env parser - github.
If you look for the API:
You can find that the definition of users does not include Typescript and the API of the function is pure Javascript.
Thanks to the type inference we get all the features of a strongly typed system in vanilla js implementation.
2. Yup
Yup enable us to define JS schema and infer its data type from raw Javascript schema.
Well That's all...
I hope that you find time & energy to read whole article with a clear and open mind.
Try to think about the syntax which you may use in your codebase on the daily basis and be sceptical about new fancy stuff, which enforces you to do extra compilation to make the code work...
If you enjoyed reading the article don’t forget to like it to tell me if it makes sense to continue.
Top comments (8)
This is great. I think Google suggested this article to me because I've been trying to figure out why I need a class in order to generate Swagger docs for my APIs which use TS interfaces. I wish I could tap into the TS compiler with decorators on my controller FUNCTIONs as I don't see the benefit of using a CLASS other than 'thats what you need to do'.
exactly! I love the minimalism of
expressand
nodejs/
javascriptecosystem... So I don't see the purpose to have classes and methods with tons of boilerplate to programme simple typed REST-API endpoints...
Another great example that followed your approach is mobx, the had decorator syntax added and made the default years ago when they were certain it'd come into ecma and then... It never did, last November they removed it (.. Kinda) and went for a purely js approach - kinda glad Google managed to suggest this post to me as I've recently been looking into decorators for TS as the DX is great and I'd like to get some use out of them 😅
thank you for a feedback :) I'm happy that you enjoy the article
I think you are missing the point here. The whole idea of TypeScript and Reflect is to bring JS world closer to high level programming languages, like Java and C#.
Yeah, sure, you can do it as close to native JS as possible, but then again, why bother with TS? Your basic argument is not against reflect-metadata, but whole concept of using typescript. Yeah, you might be vendor-locking yourself, but you do so too, whenever you use any framework for development. You are locked with that framework for the rest of the project, unless you expect some major refactoring.
So tell me - whoever read this comment after this article - do you want to trade code clarity to stay "pure"? Just because you can achieve same thing harder in native way, does it mean, you have to?
For me, it's just waste of time and energy.
What if you don't understand decorators, reflections and aspect programming? Don't worry, in 90% cases you don't have to.
You're right in one thing... C# & Java sucks as well
I think that you absolutely miss understand the whole point of this article... i can't imagine to write out more code without typescript and I think that TS type system is the best type system ever because you can infer almonost all types from your pure javascript code and keep 100% type safeness. Imho there is only one similar good type system and its from F# compiler. i do not blame TS, i love it... but my code looks like JS and works like TS <3 its 2 in 1, win win situation
BTW reflect-metadata is not as powerfull as the type inferring system for more complicated data types like structures etc...
its reason why you have to define pointer into
Phototwo times in this example:
Hey Jakub,
I just wanted to thank you for this article. It was a true eye opener. I was just digging myself deep into decorators and reflect-metadata. I had a weird feeling throughout that this is all wrong somehow.
I was searching for documentation on Reflect when Google fed me your article and you expressed precisely what to me was still just a hunch. I was shouting YES all the way through and ended my brief affair with Reflect instantly.
I also rediscovered yup, which I used in a project a few years back and found it matured into a polished library. I'm currently hosting a pool party with yup, Typescript and Wallaby and it's epic!
Godspeed and keep up the great writing!
Haha!
I hope that there will be more people with the same mindset as you have!
Thanks for the feedback! I appreciate it a lot! 🥰 😄 | https://practicaldev-herokuapp-com.global.ssl.fastly.net/svehla/why-reflect-metadata-suc-s-5fal | CC-MAIN-2022-40 | refinedweb | 2,769 | 61.36 |
install.rdf File
In the last section we looked at the contents of the Hello World extension. Now we'll look into its files and code, starting with the install.rdf file. You can open it with any text editor.
The file is formatted in a special flavor of XML called RDF. RDF used to be the central storage mechanism for Firefox, but it is now being replaced for a simpler database system. We'll discuss both of these storage systems further ahead in the tutorial.
Now let's look at the important parts of the file.
<em:id>helloworld@xulschool.com</em:id>
This is the unique identifier for the extension. Firefox needs this to distinguish your extension from other extensions, so it is required that you have an ID that is unique.
There are two accepted standards for add-on ids. One is the email-like format in the Hello World example, which should be something like <project-name>@<yourdomain>. The other standard practice is to use a generated UUID string, which is extremely unlikely to be duplicated. Unix-based systems have a command line tool called uuidgen that generates UUIDs. There are also downloadable tools for all platforms that generate them. The enclosing brackets are just notation, and they're just common practice. As long as your id has some uniqueness to it, it's OK to use either form.
<em:name>XUL School Hello World</em:name> <em:description>Welcome to XUL School!</em:description> <em:version>0.1</em:version> <em:creator>Appcoast</em:creator> <em:homepageURL></em:homepageURL>
This is the data that is displayed before and after the extension is installed, that you can see in the Add-ons Manager. There are many other tags that can be added, for contributors and translators. The full specification of the install.rdf file has all the details.
Since extensions can be translated to multiple languages, it is often necessary to translate the extension's description, or even its name. A localized description and name can be added with the following code:
<em:localized> <Description> <em:locale>es-ES</em:locale> <em:name>XUL School Hola Mundo</em:name> <em:description>Bienvenido a XUL School!</em:description> </Description> </em:localized>
The es-ES locale string indicates that this is the Spanish (es) localization for Spain (ES). You can add as many <em:localized> sections as you need. For Firefox 2, localizing this file is a little more complicated. We'll discuss localization further ahead in this section.
<em:type>2</em:type>
This specifies that the add-on being installed is an extension. You can read about different possible types in the install.rdf specification.
<em:targetApplication> <Description> <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id> <em:minVersion>4.0</em:minVersion> <em:maxVersion>10.*</em:maxVersion> </Description> </em:targetApplication>
This node specifies the target application and target versions for the extension, specifically Firefox, from version 4 up to version 10. The UUID is Firefox's unique ID. Other Mozilla and Mozilla-based applications such as Thunderbird and Seamonkey have their own. You can have an extension that works on multiple applications and versions. For example, if you create a Firefox extension, it would normally take little effort to port it to SeaMonkey, which has very similar features and UI.
The min and max version specify the version range in which the extension can be installed. Here's more about the version format. If the application or version range don't match, you won't be allowed to install the extension, or the extension will be installed in a disabled state. Users can disable version checks through preferences or installing add-ons like the Add-on Compatibility Reporter. Beginning with Firefox 11, add-ons will default to compatible and Firefox will mostly ignore the version range. Testing your add-ons with every Firefox version is always recommended, though.
This is the information Firefox and other Mozilla applications need to install an add-on. Any errors or missing information will cause the installation process to fail, or the extension to be installed in a disabled state.
The chrome.manifest File
Chrome is the set of user interface elements of the application window that are outside of a window's content area. Toolbars, menu bars, progress bars, and window title bars are all examples of elements that are typically part of the chrome.
Taken from Chrome Registration.
In other words, the chrome is everything you see in Firefox. All Firefox windows can be seen as having two parts: (1) the chrome and (2) possibly a content area, like the one that displays web pages in a Firefox tab. Windows like the Downloads window are pure chrome. Most of the code for an extension resides in the chrome folder, just like in the Hello World example.
As we saw in the directory structure of the unpacked extension, the chrome is composed of 3 sections: content, locale and skin. The 3 are necessary for most extensions. If we open the chrome.manifest file (again, any text editor will do), we see that the same 3 sections are mentioned:
content xulschoolhello content/ skin xulschoolhello classic/1.0 skin/ locale xulschoolhello en-US locale/en-US/
The chrome.manifest file tells Firefox where to look for chrome files. The text is spaced to look like a table, but that is not necessary. The parser ignores repeated spaces.
The first word in a line tells Firefox what it is that is being declared (content, skin, locale, or others mentioned later on). The second is the package name, which we will explain shortly.
Skin and locale packages have a third value to specify what locale or what skin they are extending. There can be multiple skin and locale entries relating to different skins and locales. The most common case is having one skin entry for the global skin, classic/1.0, and multiple locale entries, one for each translation. Finally, the location is specified.
There are some additional options that can be included in the entries of a chrome.manifest file. They are documented in the Chrome Registration page. Notably, we can have entries that are OS-specific. This is important because the appearance of the browser is very different for each operating system. If our extension needed to look differently on different systems, we could change the manifest file so that it looks like this:
content xulschoolhello content/ skin xulschoolhello classic/1.0 skin/unix/ skin xulschoolhello classic/1.0 skin/mac/ os=Darwin skin xulschoolhello classic/1.0 skin/win/ os=WinNT locale xulschoolhello en-US locale/en-US/
This way we can have separate skins for Windows, Mac OS X, and Linux (plus other unix-like systems), each defined in a separate directory. Since most other systems are Unix-based, the "unix" skin is the default, with no flags.
The Chrome
As mentioned earlier, the chrome is composed of 3 sections: content, locale and skin. The content is the most important section, holding user interface (XUL) and script (JS) files. The skin section has the files that define most of the look and feel of the UI (using CSS and images, just like web pages). Finally, the locale section holds all text used in the extension, in DTD and properties files. This division allows other developers to create themes that replace skins, and translators to create localizations in different languages, all of this without having to change your extension or your code. This gives Firefox extensions a great deal of flexibility.
Chrome files are accessed through the chrome protocol. This is what a chrome URI looks like:
chrome://packagename/section/path/to/file
So, for instance, if I want to access the file browserOverlay.xul in the extension, the chrome URI would be chrome://xulschoolhello/content/browserOverlay.xul.
If you have too many files in the content and you want to organize them in subdirectories, there's nothing you need to change in chrome.manifest, all you need is to add the right path after content in the URI.
Skin and locale files work in the same way, and you don't need to specify skin names or locale names. So, to access the DTD file in the Hello World extension, the chrome path is chrome://xulschoolhello/locale/browserOverlay.dtd. Firefox knows what locale to look for.
Here's an interesting experiment. Open a new Firefox tab, type chrome://mozapps/content/downloads/downloads.xul on your location bar and press ENTER. Surprised? You just opened the Downloads window in a Firefox tab! You can access any chrome file by just typing its URI in the location bar. This can come in handy if you want to inspect script files that are part of Firefox, other extensions, or your own. Most of these files are opened as text files, with the exception of XUL files, which are executed and displayed like you would normally see them on a window.
Content
There are 2 files in the content directory. Let's look at the XUL file first.
XUL files are XML files that define the user interface elements in Firefox and Firefox extensions. XUL was inspired by HTML, so you'll see many similarities between the two. However, XUL is also an improvement over HTML, having learned from many of the mistakes made during the evolution of HTML. XUL allows you to create richer and more interactive interfaces than the ones you can create with HTML, or at least XUL makes it easier.
XUL files usually define one of two things: windows or overlays. The file you opened before, downloads.xul, has the code that defines the Downloads window. The XUL file included in the Hello World extension is an overlay. An overlay extends an existing window, adding new elements to it or replacing some of the elements in it. The line that we skipped in the chrome.manifest file states that this XUL file is an overlay for the main browser window:
overlay chrome://browser/content/browser.xul chrome://xulschoolhello/content/browserOverlay.xul
With this line, Firefox knows that it needs to take the contents of browserOverlay.xul and overlay it on the main browser window, browser.xul. You can declare overlays for any window or dialog in Firefox, but overlaying the main browser window is the most common case by far.
Now let's look at the contents of our XUL file. We'll skip the first few lines because they relate to skin and locale, and we'll cover them later.
<overlay id="xulschoolhello-browser-overlay" xmlns="">
The root element in the file is an overlay. Other XUL documents use the window or dialog tag. The element has a unique id, which you should have on most elements in your XUL. The second attribute is the namespace, which is something you should always define in your XUL root element. It says that this node and all child nodes are XUL. You only need to change namespace declarations when you mix different types of content in the same document, such as XUL with HTML or SVG.
<script type="application/x-javascript" src="chrome://xulschoolhello/content/browserOverlay.js" />
Just like in HTML, this includes a JavaScript script file. You can have as many script elements in a XUL document as you need. We'll look into its code later.
We'll skip some code that is covered in the locale section, moving on to the most important part of the content:
<menubar id="main-menubar"> <menu id="xulschoolhello-hello-menu" label="&xulschoolhello.hello.label;" accesskey="&xulschoolhello.helloMenu.accesskey;" insertafter="helpMenu"> ubar> <vbox id="appmenuSecondaryPane"> <menu id="xulschoolhello-hello-menu-2" label="&xulschoolhello.hello.label;" accesskey="&xulschoolhello.helloMenu.accesskey;" insertafter="appmenu_addons"> <menupopup> <menuitem id="xulschoolhello-hello-menu-item-2" label="&xulschoolhello.hello.label;" accesskey="&xulschoolhello.helloItem.accesskey;" oncommand="XULSchoolChrome.BrowserOverlay.sayHello(event);" /> </menupopup> </menu> </vbox>
This is the code that adds the Hello World menu to the browser window.
There are two similar code blocks, because in modern versions of Firefox, particularly on Windows, a single Firefox menu button is presented, with simplified menu options, rather than an extensive menu bar. The second code block covers the common menu button case; the first code block covers all other cases. Check Menu Bar under the Options menu of the menu button to toggle display of the classic menu on Windows and some Linux distributions.
In order to write this code, we needed some knowledge of the XUL code in browser.xul. We needed to know that the id of the right pane in the unified menu is appmenuSecondaryPane. We're adding a menu of our own, and telling Firefox to add it in that pane, right after the Add-ons item. That's the purpose of the attribute:
insertafter="appmenu_addons"
appmenu_addons is the id of the menu element that corresponds to the Add-ons menu item in the main menu. We'll see later how we can find out things like the ids of browser elements, but for now let's look at the elements that compose the Hello World menu.
For the classic menu, we added the Hello World menu right in the "root" of the menu so that it would be very easy for you to spot it, but this is not a recommended practice. Imagine if all extensions added menus to the top menu; having a few extensions would make it look like an airplane dashboard, full of knobs and switches. In the case of the unified menu, things are a little more difficult due to lack of options. If your menu item fits in the Web Developer section, it is recommended that you add it there. Otherwise, the root menu might be your only recourse.
One recommended location for menus in the classic menu vase is under the Tools menu, so the code should really look like this:
<menupopup id="menu_ToolsPopup"> <menu id="xulschoolhello-hello-menu" label="&xulschoolhello.hello.label;" accesskey="&xulschoolhello.helloMenu.accesskey;" insertbefore="devToolsEndSeparator"> upopup>
We're overlaying the menu that is deeper into the XUL tree, but it doesn't matter because all we need is the id of the element we want to overlay. In this case it is the menupopup element that's inside of the Tools menu element. The insertbefore attribute tells Firefox to add the menu at the bottom of the dev tools section, above its end separator. We'll discuss more about menus later on in the tutorial.
Now let's look at the actual code:
oncommand="XULSchoolChrome.BrowserOverlay.sayHello(event);"
This attribute defines an event handler. The command event is the most frequently used in Firefox, since it corresponds to the main action for most UI elements. The value of the attribute is JavaScript code that invokes a function. This function is defined in the JS file that was included with the script tag. The JS function will be called once the user clicks on the menu item in the Hello World menu. All event handlers define a special object named event, which is usually good to pass as an argument to the function. Event handlers are explained in greater depth further ahead.
Now let's look at the JavaScript file and see what's going on when the event is fired.
/** * XULSchoolChrome namespace. */ if ("undefined" == typeof(XULSchoolChrome)) { var XULSchoolChrome = {}; };
The XULSchoolChrome namespace is defined. All objects and variables we define in this JavaScript are global, meaning that scripts in Firefox and other extensions can see them and interact with them. This also means that if we define an object called MenuHandler or some other generic name, it's likely going to conflict with an existing object. What we do here is define a single global object: XULSchoolChrome. Now we know that all of our objects are inside this object, which is unlikely to be duplicated or overwritten by other extensions.
You can read more about the typeof operator. If you're unfamiliar with JavaScript or this particular syntax, initializing an object as {} is the equivalent of initializing it to new Object().
/** * Controls the browser overlay for the Hello World extension. */ XULSchoolChrome.BrowserOverlay = {
Finally, BrowserOverlay is our object. Naming and referencing objects in such a long and verbose manner can feel uncomfortable at first, but it's worth the cost.
sayHello : function(aEvent) { let stringBundle = document.getElementById("xulschoolhello-string-bundle"); let message = stringBundle.getString("xulschoolhello.greeting.label"); window.alert(message); }
And, finally, this is our function declaration. Three lines of code are all we need for it to work. The first line in the body of the function declares a variable that will hold the stringbundle element defined in the overlay. The variable is declared using let, which is similar to var but with more restricted scope. Here you can read more about let declarations.
Just like in regular JS, we can use the DOM (Document Object Model) in order to manipulate the XUL document. First we get a reference of the stringbundle element in the document. This is a special element that allows us to obtain localized strings dynamically, by only providing a "key" that identifies the string. This is what we do on the second line. We call the getString method of the bundle element and get the localized message to be displayed. We then call the window.alert function with the message, just like we would do in an HTML document.
Locale
There are two types of locale files: DTD and properties, and in this example we use them both. DTD is the most efficient way of showing text in XUL, so you should use it whenever possible. It is somewhat inflexible so it can't be used for dynamically generated text, hence the need for an alternate way of getting localized strings.
Looking back at the menu code, you probably noticed some attributes such as this:
label="&xulschoolhello.hello.label;" accesskey="&xulschoolhello.helloItem.accesskey;"
These attributes define the text that you see on the menus, and they are string keys that are defined in our DTD file, browserOverlay.dtd. The DTD file was included in the XUL file with the following code:
<!DOCTYPE overlay SYSTEM "chrome://xulschoolhello/locale/browserOverlay.dtd" >
And in the DTD file you can see the association between keys and localized strings:
<!ENTITY xulschoolhello.hello.label "Hello World!"> <!ENTITY xulschoolhello.helloMenu.accesskey "l"> <!ENTITY xulschoolhello.helloItem.accesskey "H">
Notice that on the XUL file you enclose the string key with & and ; while on the DTD file you only specify the key. You may get weird parsing errors or incorrect localization if you don't get this right.
Access keys are the shortcuts that allow you to quickly navigate a menu using only the keyboard. They are also the only way to navigate a menu for people with accessibility problems, such as partial or total blindness, or physical disabilities that make using a mouse very difficult or impossible. You can easily recognize the access keys on Windows because the letter that corresponds to the access key is underlined, as in the following image:
Most user interface controls have the accesskey attribute, and you should use it. The value of the access key is localized because it should match a letter in the label text. You should also be careful to avoid access key repetition. For example, within a menu or submenu, access keys should not be repeated. In a window you have to be more careful picking access keys because there are usually more controls there. You have to be specially careful when picking access keys on an overlay. In our case, we can't use the letter "H" as an accesskey in the Main menu item, because it would be the same as the access key in the Help menu. Same goes with "W" and the Window menu on Mac OS. So we settled on the letter "l".
DTD strings are resolved and set when the document is being loaded. If you request the label attribute value for the Hello World menu using DOM, you get the localized string, not the string key. You cannot dynamically change an attribute value with a new DTD key, you have to set the new value directly:
let helloItem = document.getElementById("xulschoolhello-hello-menu-item"); // The alert will say "Hello World!" alert(helloItem.getAttribute("label")); // Wrong helloItem.setAttribute("label", "&xulschoolhello.hello2.label;"); // Better helloItem.setAttribute("label", "Alternate message"); // Right! helloItem.setAttribute("label", someStringBundle.getString("xulschoolhello.hello2.label"));
This is the reason DTD strings are not a solution for all localization cases, and the reason we often need to include string bundles in XUL files:
<stringbundleset id="stringbundleset"> <stringbundle id="xulschoolhello-string-bundle" src="chrome://xulschoolhello/locale/browserOverlay.properties" /> </stringbundleset>
The stringbundleset element is just a container for stringbundle elements. There should only be one per document, which is the reason why we overlay the stringbundleset that is in browser.xul, hence the very generic id. We don't include the insertbefore or insertafter attributes because the ordering of string bundles doesn't make a difference. The element is completely invisible. If you don't include any of those ordering attributes in an overlay element, Firefox will just append your element as the last child of the parent element.
All you need for the string bundle is an id (to be able to fetch the element later) and the chrome path to the properties file. And, of course, you need the properties file:
xulschoolhello.greeting.label = Hi! How are you?
The whitespace around the equals sign is ignored. Just like in install.rdf, comments can be added using the # character at the beginning of the line. Empty lines are ignored as well.
You will often want to include dynamic content as part of localized strings, like when you want to inform the user about some stat related to the extension. For example: "Found 5 words matching the search query". Your first idea would probably be to simply concatenate strings, and have one "Found" property and another "words matching..." property. This is not a good idea. It greatly complicates the work of localizers, and grammar rules on different languages may change the ordering of the sentence entirely. For this reason it's better to use parameters in the properties:
xulschoolhello.search.label = Found %S words matching the search query!
Then you use getFormattedString instead of getString in order to get the localized string. Thanks to this we don't need to have multiple properties, and life is easier for translators. You can read more about it on the Text Formatting section of the XUL Tutorial. Also have a look at the Plurals and Localization article, that covers a localization feature in Firefox that allows you to further refine this last example to handle different types of plural forms that are also language-dependent.
Skin
Styling XUL is very similar to styling HTML. We'll look into some of the differences when we cover the XUL Box Model, and other more advanced topics. There isn't much styling you can do to a minimal menu and a very simple alert message, so the Hello World extension only includes an empty CSS file and the compulsory global skin file:
<?xml-stylesheet type="text/css" href="chrome://global/skin/" ?> <?xml-stylesheet type="text/css" href="chrome://xulschoolhello/skin/browserOverlay.css" ?>
The global skin CSS file holds the default styles for all XUL elements and windows. Forgetting to include this file in a XUL window usually leads to interesting and often unwanted results. In our case we don't really need to include it, since we're overlaying the main browser XUL file, and that file already includes this global CSS. At any rate it's better to always include it. This way it's harder to make the mistake of not including it. You can enter the chrome path in the location bar and inspect the file if you're curious.
This covers all of the files in the Hello World extension. Now you should have an idea of the basics involved in extension development, so now we'll jump right in and set up a development environment. But first, a little exercise.
Exercise
Make the following changes to the example extension:
- Edit the welcome message that is displayed in the alert window.
- Move the Hello World menu to the Tools menu, where it belongs.
Repackage the XPI. Issue the following command from within the extension root directory on Linux or Mac OS X:
zip -r ../xulschoolhello2.xpi *
On Windows, use a ZIP tool to compress all files and subdirectories within the extension root directory. Name the file with extension .xpi
Re-install the XPI. You can just drag the XPI file to the browser and it will be installed locally.
Test it and verify your changes worked. If you run into problems at installation, it's likely that you didn't reproduce the XPI structure correctly, maybe adding unnecessary folders.
.XPI. Do not zip the containing folder, just its contents. The
contentfolder,
chrome.manifest,
install.rdf, and other files and directories should be at the root level of your archive. If you zip the containing folder, your extension will not load.
Note that the Tools menu is hidden by default on Firefox 4 and above, on Windows and some Linux distributions. Check Menu Bar under the Options menu of the Firefox menu button to enable it.
Once you're done, you can look at this reference solution: Hello World 2.
This tutorial was kindly donated to Mozilla by Appcoast. | https://developer.mozilla.org/en-US/docs/Archive/Add-ons/Overlay_Extensions/XUL_School/The_Essentials_of_an_Extension | CC-MAIN-2020-34 | refinedweb | 4,258 | 64.91 |
Oh, except for the camera issue. Which I've made pretty much no progress on, after having beaten my head against it off and on for a couple of weeks. It's reminding me in no uncertain terms of why I no longer write software for a living. This problem is bullshit and I hate working on it. So basically, I'm ready to admit defeat and throw all that plywood on the scrap heap unless someone else solves this problem for me.
Given the choices of "never have a photo booth" and "continue working on this software problem", I gleefully choose the former.
<lj-cut
Things I believe to be true:
The only sensible way to talk to cameras from MacOS is to use ImageCapture.framework.
- IOkit.framework is too low level.
- Gphoto2 doesn't work.
- libptp2 doesn't work.
- ptpcanon doesn't work.
- The official binary-only Canon SDK is junk, according to people who have actually used it.
The Canon Powershot S30 camera supports a bunch of undocumented commands. I have seen Canon's binary-only software do things, with this very camera, like:
- Turn the viewfinder on and off;
- Return a JPEG of the current viewfinder image;
- Take a picture, with flash, and return a JPEG of it without any CF card in the camera.
This camera only advertises two commands, "download file from CF card", and "delete file from CF card". This is according to the Apple CapabilitiesSample demo. Those commands work (e.g., via the SimpleDownload demo.)
Just pasting in the hex codes for the undocumented commands in ICAObjectSendMessagePB.message.messageType doesn't work. I don't know if the commands are actually being sent to the camera, or if the framework is filtering them before they get there, or what.
Wrapping a kICAMessageCameraPassThrough command around these undocumented commands doesn't work either, after cutting and pasting its definition into my code. Maybe PassThrough is a part of the ImageCapture framework, maybe not. It's documented in the ImageCapture SDK, but is not present in any of the installed ImageCapture.framework header files. Is it from some hypothetical future version of the framework? Or is it only supported by some hypothetical camera driver that is not installed by default? I have no idea.
Here's how you can help:
Find me source code that runs on MacOS and that talks to a Canon point-and-shoot camera (I believe they're all the same) and that does something more complicated than "download a file from the CF card; delete it."
Find me someone to talk to who understands and has used ImageCapture.framework in some nontrivial way. This person will be an Apple employee, because as far as I can tell, nobody who is not an Apple employee has ever touched it.
Modify the following code to do something useful, and show me what you did.
Here's some code that doesn't work:
/* A halfassed attempt at using ImageCapture.framework g++ -o test -g -Wall test.mm -framework Carbon */ #import <Carbon/Carbon.h> /* As far as I can tell, this shit should be in /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ ImageCapture.framework/Versions/A/Headers/ICAApplication.h but it's not. Why? I have no idea. */ enum { kICAMessageCameraPassThrough= 'pass', }; enum { kPTPPassThruSend = 0, kPTPPassThruReceive = 1, kPTPPassThruNotUsed = 2, }; typedef struct PTPPassThroughPB { UInt32commandCode; UInt32resultCode; UInt32numOfInputParams; UInt32numOfOutputParams; UInt32params[4]; UInt32dataUsageMode; UInt32flags; UInt32dataSize; UInt8data[1]; } PTPPassThroughPB; int main (int argc, char *argv) { OSErr err = 0; ICAObject list = NULL; // Get the list of image-capturable devices { ICAGetDeviceListPB list_pb; memset(&list_pb, 0, sizeof(list_pb)); err = ICAGetDeviceList(&list_pb, NULL); if (err != noErr) { fprintf (stderr, "device list error = %d\n", err); exit (1); } list = list_pb.object; } // Get the first device ICAObject device = NULL; { ICAGetNthChildPB nth_pb; UInt32 count; ICAGetChildCountPB count_pb; memset(&count_pb, 0, sizeof(count_pb)); count_pb.object = list; err = ICAGetChildCount(&count_pb, nil); if (err != noErr) { fprintf (stderr, "device count error = %d\n", err); exit (1); } count = count_pb.count; if (count <= 0) { fprintf (stderr, "device count = %d\n", (int) count); exit (1); } memset(&nth_pb, 0, sizeof(nth_pb)); nth_pb.parentObject = list; nth_pb.index = 0; err = ICAGetNthChild (&nth_pb, NULL); if (err != noErr) { fprintf (stderr, "first device error = %d\n", err); exit (1); } device = nth_pb.childObject; } // Send the device a message. ICAObjectSendMessagePB pb; memset(&pb, 0, sizeof(pb)); pb.object = device; #if 1 // pb.message.messageType = kICAMessageCameraCaptureNewImage; pb.message.messageType = 0x900b; // Turn viewfinder on #else PTPPassThroughPB *ptb = (PTPPassThroughPB *) malloc (32 * 1024 + sizeof(*ptb)); //ptb->commandCode = 0x901d; //kCanonGetViewfinderImage ptb->commandCode = 0x900b; // turn viewfinder on ptb->numOfInputParams = 0; ptb->numOfOutputParams = 0; ptb->dataUsageMode = kPTPPassThruReceive; ptb->dataSize = 1024; pb.message.messageType = kICAMessageCameraPassThrough; pb.message.startByte= 0; pb.message.dataPtr= ptb; pb.message.dataSize= 1024; pb.message.dataType= kICATypeData; #endif err = ICAObjectSendMessage (&pb, NULL); fprintf (stderr, "status = %d\n", err); return 0; } | https://www.jwz.org/blog/2007/02/03/ | CC-MAIN-2015-48 | refinedweb | 793 | 50.73 |
Function with Matrix input [closed]
Hello Guys i have the following problem.
I want to write a function whose input is a Matrix. A small example:
def Dimension(Matrix): n = Matrix.nrows() return n A = ([1,0,0],[0,1,0],[0,0,1]) print Dimension(A)
but then i get :
AttributeError: 'tuple' object has no attribute 'nrows'
How can I write i function that has an Matrix as input?
It would be better if you call the function with a matrix as input and not a tuple
Oops... that was quite some fail... Sorry :)
@bruno171092 The forum is exactly made for questions! If you are happy with my comment, could you close the question? | https://ask.sagemath.org/question/31787/function-with-matrix-input/ | CC-MAIN-2019-04 | refinedweb | 115 | 75.2 |
I think everyone who has ever coded knows or at least has seen this problem: You write a function/method and the after after that you begin to code another version of it and want to somehow let the world know, that yesterdays version should no longer be used. Right, I’m talking about deprecating stuff in your program.
But how do you want to let everyone know about this change in your API? You could simply write it into the documentation which is like a friendly and soft reminder. But an even better and stronger way would be, to let the compiler or interpreter of your program give a warning if a deprecated function is called, a deprecated classobject is generated.
Some languages out there support this kind of strong but still gentle reminder: So far I’ve seen examples in Java 1.5 and C#/Mono. I would have expected C and C++ having similiar features but I could only find the documentation way of deprecating stuff. If someone knows of ways to mark methods etc. as deprecated in any other language, please let me know :-)
Here I just want to show a little example about how it works in C#/Mono. In C# you can annotate everything using predefined or custom attributes. The attributes are added in brackets in front of the rest of the declaration:
[ATTRIBUTE] public void Main();
There are quite a few predefined attributes and attribute classes but only one is important for us right now: Obsolete. I’ve written a small sample code that sets to components as obsolete: A class variable and a class method.
using System; public class Test{ [Obsolete]static String TestString = "Hello"; [Obsolete]public static void Whatever(){ Console.WriteLine("{0} world",Test.TestString); } public static void Main(){ Test.Whatever(); } }
When compiling this piece of code, you will get warnings because of the obsolete state of these components:
zerok@intrepid:~/tmp $ mcs Test.cs Test.cs(3) warning CS0612: 'Test.TestString' is obsolete Test.cs(5) warning CS0612: 'Test.TestString' is obsolete Test.cs(8) warning CS0612: 'Test.Whatever()' is obsolete Compilation succeeded - 3 warning(s)
Quite handy :-)
Again: If you know of ways to mark stuff deprecated in other languages please let me know :-)
[UPDATE] Oops, completely forgot to post some links: | https://zerokspot.com/weblog/2005/02/12/marking-methods-etc-as-deprecated-in-cmono/ | CC-MAIN-2019-18 | refinedweb | 383 | 63.49 |
If our business is lucky enough to make it past its first few years, we often need to address the next hurdle: scaling. In this guide, we take a look at scaling from the perspective of internationalization (i18n) and localization (l10n). We address workflow efficiency and how localization technology can save us time and money as we scale, keeping us competitive through a laser focus on our core offering.
Our minimum viable product (MVP)
Let’s say we’re a fantastic new e-commerce startup called HandiRaft, with a goal of connecting artisans with customers who want to buy bespoke crafts. We’ve decided that our MPV will include iOS and Android apps, and a web app for desktop users. To reduce risk and validate our core offering as quickly as possible, we’ve built our mobile apps with Flutter and our web app with React.
Our Flutter mobile MVP: one codebase for both Android and iOS saves us time and money
Our desktop MVP with React
An offering like ours has some technical challenges right out of the gate:
- Handling payments, including security, which we can outsource to a service like Stripe.
- Creating an admin panel for creators, which our MVP would include in the web/desktop app, with some roles and permission management for buyers and creators.
- Handling the ecommerce experience, including buyer accounts, the shopping cart, orders, and returns/refunds.
- Ensuring we have excellent customer support, which we can outsource the tech solution for while keeping our support staff in-house for the best customer experience.
A simplified view of our app architecture
🔗 Resource » You can get the source code for our mocked-up apps from the companion GitHub repos:
Localizing software
Connecting buyers and artisans all over the world means taking a global approach to our offering. At the very least, we need to internationalize our public-facing apps and localize them for our most prominent target markets. This isn’t too difficult with Flutter and React.
🤿 Go deeper » Our Complete Guide to Software Localization goes into much more detail regarding what software localization is, its strategic importance for your business, and best practices for optimizing your localization workflows.
Localizing the mobile app
Flutter includes a robust first-party i18n library, and it can kickstart our mobile app i18n in a hurry. Here’s the skinny:
- We have localization ARB files, one per supported locale.
- We wire up the i18n library to our app and use its built-in code generation to load translation strings from these ARB files, instead of hard-coding them in our UI.
. └── lib/ ├── l10n/ │ ├── app_en.arb # English translations │ ├── app_ar.arb # Arabic translations │ └── ... # etc. │ ├── main.dart # Connects the Flutter localizations package │ # to our app │ └── widgets/ ├── creator_card.dart # Widgets import localization packages; │ # resolve and use current locale │ # translation strings │ └── ... # etc.
Here’s what our
main.dart file looks like:
import 'package:flutter/material.dart'; import 'package:flutter_localizations/flutter_localizations.dart'; import 'package:flutter_gen/gen_l10n/app_localizations.dart'; import 'pages/home_page.dart'; void main() { runApp(const MyApp()); } class MyApp extends StatelessWidget { const MyApp({Key? key}) : super(key: key); @override Widget build(BuildContext context) { return MaterialApp( onGenerateTitle: (context) { return AppLocalizations.of(context)!.appTitle; }, localizationsDelegates: const [ AppLocalizations.delegate, GlobalMaterialLocalizations.delegate, GlobalWidgetsLocalizations.delegate, GlobalCupertinoLocalizations.delegate, ], supportedLocales: const [ Locale('en', ''), Locale('ar', ''), ], theme: ThemeData( primarySwatch: Colors.deepOrange, ), home: const HomePage(), ); } }
🔗 Resource » The full code of this app is under the
flutter_appdirectory of our companion GitHub repo.
Our translation
.arb files are basically JSON.
{ "appTitle": "HandiCraft", "featuredCreators": "Featured Creators", "searchPlaceholder": "Find creator or product", "topRated": "Top Rated", "featured": "Featured", "search": "Search", "cart": "Cart", "account": "Account", // ... }
{ ", // ... }
Our widgets use prebuilt localization libraries to translate their UI:
import 'package:flutter/material.dart'; import 'package:flutter_gen/gen_l10n/app_localizations.dart'; BottomNavigationBar makeBottomNavBar(BuildContext context) { var theme = Theme.of(context); // Ensures that translations matching the currently active // locale are loaded var t = AppLocalizations.of(context)!; return BottomNavigationBar( type: BottomNavigationBarType.fixed, selectedItemColor: theme.primaryColorDark, selectedFontSize: 13, unselectedFontSize: 13, items: [ BottomNavigationBarItem( label: t.featured, // Pulls translation icon: const Icon(Icons.star), ), BottomNavigationBarItem( label: t.search, // Pulls translation icon: const Icon(Icons.search), ), // ... ], ); }
Our mobile app localized in Arabic
🤿 Go deeper » A Guide to Flutter Localization goes into localizing an app with the Flutter localization package in much more detail.
Localizing the web/desktop app
React doesn’t offer i18n out of the box, but the very popular i18next library has an excellent React integration we can use. The localization process is similar to our mobile app: We move our hard-coded UI strings to per-locale translation files and load the translation file corresponding to the active locale.
. ├── public/ │ ├── index.html │ └── locales/ │ ├── en/ │ │ └── translation.json # English translations │ ├── ar/ │ │ └── translaton.json # Arabic translations │ │ │ └── ... # etc. └── src/ ├── index.js # Loads i18n.js to initialize it ├── services/ │ └── i18n.js # Bootstraps our i18n library └── features/ ├── Creators/ │ └── CreatorCard.js # Imports i18n library and uses/ │ # current locale translation │ # strings │ └── ... # etc.
Our i18n bootstrap file basically initializes the i18next library.
import i18next from "i18next"; import { initReactI18next } from "react-i18next"; import HttpApi from "i18next-http-backend"; i18next .use(initReactI18next) .use(HttpApi) .init({ debug: true, lng: "en", interpolation: { escapeValue: false, }, }); export default i18next;
🔗 Resource » The full code of this app is under the
react_appdirectory of our companion GitHub repo.
The
index.js entry point simply imports the file to init the library.
import React from "react"; import ReactDOM from "react-dom"; import "./services/i18n"; import App from "./App"; ReactDOM.render( <React.StrictMode> {/* We use React Suspense to show a loading message while our translation file downloads */} <React.Suspense <App /> </React.Suspense> </React.StrictMode>, document.getElementById("root") );
i18next will automatically load our translation files from the URI
/locales/{locale}/translation.json. These translation files look a lot like our Flutter ARB files.
{ "appTitle": "HandiCraft", "featuredCreators": "Featured Creators", "searchPlaceholder": "Find creator or product", "topRated": "Top Rated", "featured": "Featured", "search": "Search", "cart": "Cart", "account": "Account", "copyright": "Copyright", // ... }
{ ", "copyright": "حقوق النشر", // ... }
Our React components then just import the i18next instance and use it to display UI strings translated in the active locale.
// MUI framework: Material components for React import { Card, CardContent, Typography, // ... } from "@mui/material"; // Imports the initialized i18next instance import { useTranslation } from "react-i18next"; export default function CreatorCard(props) { const { t } = useTranslation(); return ( <Card> {/* ... */} <CardContent> <Typography> // Pulls translation for active locale {t("specialties")} </Typography> {/* ... */} </CardContent> </Card> ); }
🤿 Go deeper » We cover localizing React apps with i18next in a lot of detail in our Guide to React Localization with i18next.
Et voilà. It takes a little bit of work, but the payoff is reaching a wider global audience.
Our localized desktop app
Scaling issues: analyzing our localization solution
We’ve been able to localize our app into multiple languages, and our buyer and creator base has grown dramatically. In fact, we’ve secured some good funding and we’re ready to scale up our offering and go deeper into the UX and the value we can provide to our community. There’s a lot to tackle, including localization.
Our current architecture, including localization
While our current i18n/l10n solution has kept us light on our feet, our product teams may start to complain about annoyingly inefficient workflows with the ever-increasing volume of content and languages being added:
- Translators have to manage text files that travel back and forth to developers to integrate into app codebases.
- Designers have to communicate screen updates to both developers and translators.
- Developers find they often need to provide screenshots to translators to give them context around new translation strings.
- Translators have to manage duplicate strings in the same app, and duplication across apps.
- Translations add complexity to managing feature flags, branches, and versions for our apps.
To solve these issues, we consider building our own localization admin backend. However, our very expensive engineering time would then be spread between this new backend and our much-needed updates across our public-facing apps. We would also have to maintain this backend in the future, which is time, effort, and attention that could be better spent on broadening and refining our core offering.
Taking the plunge: a software localization platform to the rescue
Lucky for us, others have done the hard work of clearing the workflow bottlenecks we face when we scale our localization. These software localization platforms provide a slew of localization tech services: from syncing translations and web consoles for translators to all kinds of automation and integration. By outsourcing our localization tech to a localization platform, we can focus on our core offering, ensuring that our time and effort are directed towards providing the best product we can for our customers. We’re a bit biased, but we think Phrase is a pretty darn good software localization platform, so we’ll use Phrase here.
🗒 Note » For brevity, we will largely cover connecting our Flutter app to Phrase. The steps for connecting our React app are almost identical. We will also focus on setting up Phrase, GitHub syncing, and managing translation duplication. However, Phrase offers solutions to all the problems we listed above.
Project setup
If you don’t have an organization in Phrase set up yet, you can get a free trial so you can jump in and play around with it yourself. Once we have access, we can create two projects: one for our Flutter app and one for our React app.
After saving, we can add English and Arabic as languages to our project, and skip the rest of the setup.
Connecting the Phrase CLI
To begin syncing our translations between our apps and our Phrase projects, we need to initialize the projects using the Phrase command line interface (CLI). Installing the CLI is straightforward, and you can easily find instructions to do so for your operating system of choice. I’m on macOS, and I’ll use the Homebrew package manager to install the Phrase CLI from my command line:
# Add Phrase Homebrew repository $ brew tap phrase/brewed # Install Phrase CLI $ brew install phrase
Once the CLI is installed, we can use it to connect each of our projects. For example, we can connect our Flutter project by navigating to its root directory in the command line and running the following command.
$ phrase init
At this point, we’re asked for an access token.
Access tokens are generated from our Phrase organization page. Once logged in to Phrase, we can click our name near the top-right of the screen and select Profile Settings from the dropdown. We can then click the Access Tokens tab near the top of the Profile Settings page, and click the Generate button to get a new token.
Token generated, we can copy and paste it into the CLI prompt to continue project initialization. The next step is choosing the Phrase project to link to our app. We’ll pick our Flutter Handiraft project, of course.
After selecting the translation file format, ARB for our Flutter project, we can provide the relative file paths to our translation files.
At this point the Phrase CLI will create a
.phrase.yml config file that connects our app to the Phrase project, and will ask us if we want to perform an upload (push) of our translation files up to Phrase. Let’s do so by entering
y and pressing Enter.
Our translations should now be up on the Phrase console, and we can see them if we navigate to Projects ➞ flutter-handiraft ➞ Languages and then click on a language.
The translator experience
At this point, the power of a software localization platform should start becoming apparent. Our translators can utilize the Phrase web interface—they can search, filter, add, remove, update, see changes, verify/unverify, and even do team management using a job assignment interface—all while our developers are busy working on core e-commerce functionality for our customers. We’ve saved countless design and engineering hours by not rolling our own console for translators, and given translators a platform that is designed and built for their workflows.
Connecting developers and translators
When developers add a new feature, they just have to
phrase push their new translation keys from the command line. The translators take it from there, and once their translations are polished and ready, they can notify the developers, who perform a
phrase pull and get back to writing the creative code they love. No need for exchanging and manually merging translation files. In fact, because the Phrase CLI supports all major operating systems, we can automate to our heart’s content. From an engineering perspective, localization becomes a simple step in our DevOps flow.
GitHub sync and continuous localization
As developers, we’re used to tight, cyclical build cycles that aim for continuous integration and continuous delivery. Localization can seamlessly be part of this through repository syncing: when we push a commit to a certain branch, Phrase can react by refreshing its translations, and our translators can get to localizing immediately. Let’s set this up for HandiRaft.
✋🏽 Heads up » We need to connect our apps to Phrase with
.phrase.ymlfiles in our Flutter and React apps to make GitHub sync work. The
phrase initcommand we ran earlier took care of this for us.
🗒 Note » We’re covering GitHub sync here, but Phrase can sync with Bitbucket and GitLab repos as well.
🤿 Go deeper » Take a look at our glossary entry on continuous localization, which covers best practices and goes deeper into the continuous localization workflow than we do here.
Generating a GitHub access token
The first thing we need to do to connect GitHub to our Phrase projects is generate an access token from GitHub. Once we’ve logged into our GitHub account, we can click our profile picture near the top-right of the screen and go to Settings ➞ Developer settings ➞ Personal access tokens ➞ Generate new token. This will open the New personal access token screen, and we can get our spicy new token from there.
🗒 Note » If our project repos are private, we’ll need the entire repo scope for our token. If the repos are public, however, we just need the public_repo scope.
Clicking the Generate token button will give us a token we can copy to a safe place. Said token in hand (or in clipboard), we can head back to Phrase, log in, and head to Projects ➞ flutter-handicraft ➞ Project settings ➞ GitHub Sync.
After providing our GitHub access token, selecting our repo and branch, validating our
.phrase.yml config via the Validate Configuration button, and clicking Save, we’re ready to sync our Phrase translations with our GitHub repo.
By default, our translators would have to manually pull translation updates from our GitHub repo by going to Languages ➞ GitHub Sync ➞ Import from GitHub.
Auto-importing using a webhook
Manual import can be exactly what your team needs. However, we can automate the import by adding a webhook to our GitHub repo that triggers whenever our chosen branch gets a new commit pushed to it. The webhook can then automatically import translations from our repo to our Phrase project.
To enable auto-import, we need to head back to our Project settings ➞ GitHub Sync, then check the Enable auto-import from GitHub. This will reveal a Generate payload URL button worthy of a good clicking.
A Payload URL is revealed, which we can copy to a safe place. Let’s click Save and make our way to GitHub to set up the auto-import webhook.
From our GitHub repo’s home page, let’s navigate to Settings ➞ Webhooks and click Add webhook.
We just need to paste our Payload URL in its namesake field and make sure the Content type is set to application/json. Leaving all other fields as they are, we can click Add webhook, and we’re set.
Continuous integration, continuous localization
With auto importing in place, we can now simply work in our normal Git flow and ensure that our translators get the latest translation keys as soon as they’re ready for them to translate. From an engineering perspective, translation becomes part of our continuous integration flow:
- We work on a new feature, adding and updating translations in the source language (say English).
- As soon as the feature starts taking shape, we push a commit to the branch that we registered with the Phrase projects.
- Translators automatically receive the new translation keys in their Phrase project and use Phrase to efficiently translate our new feature to all our supported locales.
- When they’re done, translators export a pull request (PR) to GitHub, which we can review and merge.
It’s really that easy. Let’s see it in action. Let’s say we’re adding a social forum section to our offering, where pro and hobbyist artisans can talk about their craft. We’ll have some new strings in our new screens, of course. While we develop, we add these strings to our development language, English.
{ // ... "artisanChat": "Artisan chat", "createPost": "Create a post", "publish": "Publish", "rulesOfConduct": "Rules of conduct" }
We feel that the forum is heading in the right direction, and we want to get our localization team working on it ASAP. So we simply push a commit to the branch connected to our Phrase project,
main in this case.
As soon as we do, our new translations are available in Phrase.
Our translators take over now, utilizing all the power of Phrase to manage and translate the new strings into all the locales we support. Our translators could have dozens of languages to manage here, and they’re using Phrase’s translation features to take care of that. We’re busy plugging away at our feature code. Once their translations are ready, they just need to export a PR for us to look at.
This is easily done on the Phrase console by going to Project ➞ Languages ➞ GitHub Sync ➞ Export to GitHub as pull request.
The PR immediately appears in our GitHub repo.
Just like any other PR, we can review and merge it in, making the new translations available to our whole team without us doing anything outside of our normal workflow: Git push, PR, review, merge. Presto.
So Phrase saves our engineering team many precious hours, and headaches, by automating localization integration.
🔗 Resource » You can get the source code for our mocked-up apps from the companion GitHub repos: the Flutter app repo and the React app repo.
Saving time for translators: translation memory
This article is aimed at developers, but I do want to briefly touch on a few features in Phrase that save translators time. One issue translators often face is duplicate translations, especially across multiple apps in the same offering. For example, the HandiRaft Flutter and React apps share a lot of the same translation keys.
We can dramatically reduce the amount of effort around duplicate translations across apps by enabling Phrase’s translation memory. After we log into Phrase, we can find it in the sidebar to the left of the screen.
Once on the translation memory page, we just need to select the Phrase projects to connect and then click Update settings. Of course, here we’ll connect our flutter-handiraft and react-handiraft projects.
Our web team has been busy updating our React app to include the social forum feature that the Flutter team started earlier. Of course, the React app’s new translation strings are very similar to ones recently added to the Flutter app. However, instead of spending time re-translating these strings, our translators can use the enabled translation memory to get automatic autocomplete suggestions and populate their translations with one button, while reviewing them to ensure quality.
Translation memory + autocomplete can save our translators countless hours across a project. But Phrase gives translators much more than that:
- Comments so that translators can collaborate with the translation right in front of them
- See changes in the translation and the ability to revert to earlier versions of a translation
- An in-context editor so translator can translate directly on the interface of web apps
- And much more
Wrapping up our tutorial on how to localize software at scale
Back to my engineering tribe, we’ve covered Phrase’s CLI and GitHub sync, but Phrase is built by developers for developers, so it gives us a lot more goodies:
- Support for almost every translation file format under the sun
- An API we can connect to
- Branching
- Over the Air (OTA) translations for mobile apps
- And much more
We hope you’ve seen how much a platform like Phrase can save your team time and money as your app scales, allowing you to focus on your core offering while leaving the heavy lifting regarding localization tech to Phrase. Are there topics that we missed here that you would like us to cover? Let us know in the comments below. We love hearing from you 🙂 | https://phrase.com/blog/posts/localize-software/ | CC-MAIN-2022-33 | refinedweb | 3,457 | 53.21 |
How to deal with errors in C++?
by, 30th June 2014 at 11:16 AM (3124 Views)
Ass can I fix the following error showing 'prinf' was not declared in the scope?
>>>
------------------------------------------------------------------------------------------------------------------------->>>
#include <stdio.h>
#include <stdlib.h>
/* Program that sorts a list of 10 number */
int main()
{ int cnt, inner, outer, didSwap, temp;
int nums[10]; /*Will hold the 10 numbers */
/* Fills an array with random numbers from 1 to 100 */
for (cnt = 0; cnt < 10; cnt++)
{ nums[cnt] = (rand() % 99) + 1; }
/* Print the list before it is sorted */
puts("\nHere is the list before the sort:");
for (cnt = 0; cnt < 10; cnt++)
{ printf("%d/n", nums[cnt]);}
/* Sort the array */
for (outer = 0; outer < 9; outer++)
{ didSwap = 0; /* Becomes 1 (true) if list is not yet ordered */
for (inner = outer; inner < 10; inner++)
{ if (nums[inner] < nums[outer])
{ temp = nums[inner];
nums[inner] = nums[outer];
nums[outer] = temp;
didSwap = 1; /* True because a swap took place */
}
}
if (didSwap == 0) /* Quits of list is now sorted */
{ break; }
}
/* Prints the list after it is sorted */
prinf("\nHere is the list after the sort:\n");
for (cnt = 0; cnt < 10; cnt++)
{ printf("%d/n", nums[cnt]); }
return 0;
} | https://www.ittaleem.com/blogs/km_khurram/623-how-deal-errors-c.html | CC-MAIN-2017-30 | refinedweb | 197 | 51.89 |
GameFromScratch.com
This post popped up on reddit a few days back and didn’t really get a ton of interest. I almost missed it myself, but I am glad I didn’t. Off and on the last couple days, I’ve been playing around with BDX and I have to say, there is the kernel of something really cool here!
First off, let me say BDX is really young and it shows some times. You do some things wrong and you are left with either a crashing game or a cryptic Python error message. Armature support is currently missing as are a few other features I looked for. The community is currently small and we are talking a 0.10 release here… I had to work around a couple bugs, the Android SDK path was getting an extra “ added and I simply can’t get gradle import to work with IntelliJ without hacking out the Android project. So expect some warts and experimentation. It’s worth it though, this is pretty cool stuff, as you will now see.
Oh yeah, there is also a video version of this post. It’s also embedded below if you scroll down. It covers basically the same topics as this tutorial.
So, what exactly is BDX? Well basically it’s a Java library built over top of LibGDX adding 3D support. Essentially I suppose you can think of it as a 3D scene graph. Then the cool part… it’s also a plugin to Blender that turns Blender into your 3D world editor. Basically you create your assets and world in Blender, apply properties using the BGE and Physics portions of Blender, then export and run. To a much lesser degree, it is also a code generator… sort of. Let’s take a look at how it works now…
First off, you need to have a Java JDK installed, personally I am using JDK 1.7. If you are going to be building BDX from sources ( we wont here ) you also need Ant installed. If you have trouble, watch this video on configuring a Java/LibGDX development environment. It’s more than what you need, but will certainly get you running.
Next head on over to the BDX download page and download the BDX zip file. If you happen to be running on Mac, turn off that infernal “automatically run trusted downloads” setting, as you want the file to remain zipped.
Of course, you will also need Blender installed. You can download it here. For the record I, at the time of writing this, am using 2.73a and as you can see from the screenshot above, 0.1.1 of BDX.
Please note, I WILL NOT be covering how to use Blender in this post, except for the configuration bit below. Fortunately I’ve got that down already, so if you are brand new to Blender run through this tutorial series. It will cover everything you need to get started (and more).
At this point I assume you have Blender installed and BDX downloaded. Now we need to set it up in Blender. Don’t worry, it’s pretty simple.
Load Blender up.
In the menu, select File->User Preferences…
Select the Add-ons tab, then Install From Disk:
Now navigate to and select Bdx.zip then click “Install from File…”
Now we need to enable the plugin. Back in the Add-ons tab, on the left hand side toggle the option Testing. Import-Export: BDX should now appear as an option. Click the Checkbox beside the dynamite icon.
BDX should now be ready to use!
BDX does an impressive job of wrapping the project generator for you. Coincidentally if you see the LibGDX project wizard you’ve made a mistake!
In Blender, make sure you are in Default view to start:
Now, assuming you are running factory settings, look for the Properties window on the right hand side, and scroll down to locate the BDX settings:
Fill in the settings like so:
Click Create BDX project. For Java Package, make sure to give the entire name, not just the url qualifier. Base Path is the directory the project will be created in, while Directory is the folder within that directory that will be created. So using the above settings, you will get the directory c:\temp\bdxdemo.
Once you click the Create BDX project, the magic begins!
It will churn away for a few seconds, and assuming no errors occurred, it should create a new scene for you like so:
A complete but very simple “game” created for you. A couple things to notice. First your Blender now has a new display mode “BDX” available:
This enables you to switch in and out of the BDX view you see in the screenshot above. Also, the controls in the BDX scene are now completely different:
Go ahead and click Export and Run. This will package your Blender scene, generate some Java code for you, call the Java compiler and assuming no errors, run your game.
Cool stuff!
So basically you can now create and edit a world in Blender and code it using LibGDX. Let’s take a look at the code portion now… actually, lets look at the project this created. Go to the directory you specified earlier.
So, here’s the directory structure that is created, with the critical directories expanded:
If you’ve done any LibGDX development, most of the structure should be immediately obvious. You get one directory for each project ( android, desktop, html, ios ), then all of the common code goes in to core. All of the assets ( graphics, scenes, data files, etc… ) that make up your game are put in the assets folder of the android folder.
The other folder of note is the Blender folder. This is where your Blender .blend files are generated/stored. In many ways, when using BDX, this becomes the heart of your project. You re-open the .blend file in Blender to reload your project.
So far we’ve just used Blender… how exactly do we work in Java?
Well the code is located in core/src/com/yourdomain/yourproject.
There are a pair of files generated by default here. First is BdxApp.java
This is your main application class implementing ApplicationListener. Here is the code below:
package com.gamefromscratch.bdxdemo;
import java.util.HashMap;
import com.badlogic.gdx.ApplicationListener;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.PerspectiveCamera;
import com.badlogic.gdx.graphics.g3d.ModelBatch;
import com.nilunder.bdx.Bdx;
import com.nilunder.bdx.GameObject;
import com.nilunder.bdx.Scene;
import com.nilunder.bdx.Instantiator;
import com.nilunder.bdx.utils.*;
import com.nilunder.bdx.inputs.*;
public class BdxApp implements ApplicationListener {
public PerspectiveCamera cam;
public ModelBatch modelBatch;
@Override
public void create() {
modelBatch = new ModelBatch();
Bdx.init();
Gdx.input.setInputProcessor(new GdxProcessor(Bdx.keyboard, Bdx.mouse, Bdx.allocatedFingers));
Scene.instantiators = new HashMap<String, Instantiator>();
Scene.instantiators.put("Scene", new com.gamefromscratch.bdxdemo.inst.iScene());
Bdx.scenes.add(new Scene("Scene"));
}
@Override
public void dispose() {
modelBatch.dispose();
}
@Override
public void render() {
Bdx.profiler.start("__graphics");
Gdx.gl.glViewport(0, 0, Gdx.graphics.getWidth(), Gdx.graphics.getHeight());
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
Bdx.profiler.stop("__graphics");
Bdx.updateInput();
Bdx.profiler.stop("__input");
for (Scene s : (ArrayListNamed<Scene>)Bdx.scenes.clone()){
s.update();
Bdx.profiler.start("__render");
renderScene(s);
Bdx.profiler.stop("__render");
}
Bdx.profiler.update();
}
public void renderScene(Scene scene){
Gdx.gl.glClear(GL20.GL_DEPTH_BUFFER_BIT);
modelBatch.begin(scene.cam);
for (GameObject g : scene.objects){
if (g.visible()){
modelBatch.render(g.modelInstance);
}
}
modelBatch.end();
}
@Override
public void resize(int width, int height) {
}
@Override
public void pause() {
}
@Override
public void resume() {
}
}
If you’ve worked in LibGDX before, this should all look pretty straight forward. Basically it’s setting up the BDX classes and a regular LibGDX render loop.
However, the part that is critical to understand is this little line… it goes a long way towards figuring out how BDX actually works:
Scene.instantiators = new HashMap<String, Instantiator>();
Scene.instantiators.put("Scene", new com.gamefromscratch.bdxdemo.inst.iScene());
This is the special sauce that links Blender and LibGDX together. If you look in sub directory inst, you will see a class named iScene.java:("Sacky"))
return new com.gamefromscratch.bdxdemo.Sacky();
return super.newObject(gobj);
}
}
This is actually an area I struggled with at first because I kept editing it by hand, then when I would run the game my changes were being overwritten! GRRRRRR… Then it dawned on me, BDX is also a code generator. This file is being created automatically when you click the “Export and Run” button.
So what exactly is it doing? Well basically it loops through each object in the Blender scene by name and creates the cooresponding Java class in our scene. For example, when it finds an object named “Sacky” in the Blender scene, it then creates a new com.gamefromscratch.bdxdemo.Sacky instance in our java code. Essentially this is the link between Blender and Java.
Wait, you might ask… what the heck is a Sacky?
Great question!
First, lets take a look at our Blender scene graph:
Ahhh… so that’s a “Sacky”. It’s basically a texture mesh in Blender that’s been named Sacky. So… where exactly is the class Sacky.java? If you look in the code directory:
No Sacky.java.
This is because by default the code is actually “embedded” in the blend file. In the BDX control buttons, there is a button “Make internal java files external”. Click it:
Now in your src folder you should see:
Ahhh, much better. At this point you can actually import the gradle project into your favorite IDE and work normally. You only need to return to Blender and click Export and Run when you make changes to the Blender scene.
NOTE: I am using IntelliJ and had a problem with the gradle import. It really doesn’t like the android gradle version created by default, but updating the version number caused other dependencies to break… oh the joy of Java build systems. I personally just hacked out everything but desktop and core from the gradle build. Leave a comment if you want more details how to do this… if you run into the same problem that is.
The heart of the BDX scenegraph is GameObject. It’s basically a thing in the world, often called an entity or node in other engines. Here for example is Sacky.java:
package com.gamefromscratch.bdxdemo;
import com.nilunder.bdx.*;
public class Sacky extends GameObject{
public void main(){
if (Bdx.keyboard.keyHit("space"))
applyForce(0, 0, 300);
}
}
GameObjects have a couple key methods. main() you see above is what you traditionally think of as update or tick. It is called each frame, so this is where you update your objects logic. There is also init() called on creation and onEnd() called when removed. In the above example you simply poll to see if the user hits space, and if they do apply 300 “force” along the Z axis. BDX makes use of the physics properties of Blender, as we will see shortly.
In a nutshell, the things that make up your game are GameObjects. Under the curtain, GameObjects are still LibGDX classes we know and love, let’s take a quick look behind the curtain with a debugger and inspect what makes up Sacky here…
Essentially GameObject is a fairly light wrapper over the LibGDX ModelInstance class, which is what you ultimately get when you import a 3D model into LibGDX. It holds all the nodes, animations, geometry and bones that make up an object. Unfortunately bone animation isn’t currently supported by BDX. You may also notice that each GameObject holds a reference to the Scene that contains it.
Scene itself is essentially the scene graph. That is, the container that holds the contents of your game ( the GameObjects, Cameras, etc ):
All told, pretty straight forward stuff and a good reminder that below it all, LibGDX is still right there, just slightly wrapped.
Now let’s actually look at creating your own GameObject. This is basically what the majority of your game development workflow will look like in BDX. It’s a multistep process, but isn’t difficult.
First, in Blender, simply add a new object. I am going to add a new Mesh->Cube:
Now in the scene graph select your newly created Cube, rename it to MyCube:
Now if you select Export and Run, you will now see your Cube:
Now let’s wire some code to it.
In the same directory as your App and the existing Sacky.java file, create a new Java class named MyCube.java, with the following contents:
package com.gamefromscratch.bdxdemo;
import com.nilunder.bdx.*;
public class MyCube extends GameObject{
public void main(){
if (Bdx.keyboard.keyHit("space"))
visible(!visible());
}
}
Next in Blender click the Export and Run button. Now when you press the spacebar, the visibility of the newly created cube will now toggle.
You will notice something… now that we have an object named MyCube in Blender and a class named MyCube.java, when we click the Export button, the iScene.java class is being auto generated each time:("MyCube"))
return new com.gamefromscratch.bdxdemo.MyCube();
if (name.equals("Sacky"))
return new com.gamefromscratch.bdxdemo.Sacky();
return super.newObject(gobj);
}
}
Again, this is basically the glue that ties Java and Blender together
An un-textured cube isn’t exactly exciting, so let’s quickly texture our cube. To do so, switch to edit mode in Blender, select all vertices and unwrap. Then create a new material, then a new texture. Watch the attached video for more details of this process.
There is one critical part you need to be aware of, thus why I am bothering to mention it at all. When generating your texture map, you need to put it in your assets folder! So when saving it, save it to the correct folder, like so:
To the following location:
If you don’t implicitly save it to this folder, or a sub-directory, your code will die on execution. Oh, another top tip… DO NOT RUN YOUR GAME WHILE IN EDIT MODE! Yeah, it doesn’t work. I’m guessing it’s a bug, but always switch back to object mode before running.
Now that we’ve got our cube textured, let’s run it:
Very cool.
You can also make objects physics objects using Blender. With your object selected selected the Physics tab in Blender:
You can now set the object to static ( unmoving ), dynamic ( affected by physics but not moving on its own ) or rigid body ( fully simulated physics ):
All other options are ignored, so stick to those three or No Collision.
For a Rigid Body there are a number of properties you can select. You can also determine the bounding type. Your choices are limited to Box (uses a bounding box to determine boundaries), Sphere (uses a sphere instead) and Mesh (uses the mesh itself. More accurate but much more CPU intensive):
As you can see, you can also configure Mass, velocity, etc.
Another cool feature is you can actually set properties using Blender and access them in your code. Therefore you can use Blender as a proper game editor, setting properties such as HP.
To do this, open the Logic Editor in Blender, and click Add Property.
Now name and type your property and set a default value, like so:
Then in code you can easily access these values:
public class MyCube extends GameObject{
public void main(){
if (Bdx.keyboard.keyHit("space")) {
int hp = this.props.get("hitPoints").asInt();
Gdx.app.log("Current HP",String.valueOf(hp));
visible(!visible());
}
}
}
Very cool stuff
BDX is certainly a project to watch if you are working in 3D with LibGDX, especially if you use Blender as part of your workflow. It does over all make for a pretty seamless pipeline and makes world authoring a breeze.
Programming
LibGDX, Java, Blender | http://www.gamefromscratch.com/post/2015/03/16/Create-a-3D-game-in-Blender-using-LibGDX-and-BDX.aspx | CC-MAIN-2017-17 | refinedweb | 2,675 | 66.84 |
could some one please explain to me in laymen terms why access methods are used. I know how to use methods but, I am confused about why access methods are used. I put an example from my book that uses acess methods. I hope this will help someone explain it to me.
Thanks,
Truck35
Code :
//This class is used to calculates fuel efficiency class Vehicle { private int passengers; //number of passengers private int fuelcap; //fuel capacity in gallons private int mpg; // fuel consumption in miles per gallon //This is a constructor for Vehicle. Vehicle (int p, int f, int m) { passengers = p; fuelcap = f; mpg = m; } //Return the range. int range() { return mpg * fuelcap; } //Compute fuel needed for a given distance. double fuelneeded(int miles){ return (double) miles/mpg; } //These are the access methods I was talking about. //The book says they are for instance variables. int getPassengers() {return passengers;} void setPassengers(int p) {passengers = p;} int getFuelcap () {return fuelcap;} void getFuelcap (int f) {fuelcap = f;} int getMpg() {return mpg;} void getMpg (int m) { mpg = m;} } | http://www.javaprogrammingforums.com/%20object-oriented-programming/22872-acess-methods-printingthethread.html | CC-MAIN-2015-32 | refinedweb | 176 | 62.38 |
package js
Types, methods and values for interoperability with JavaScript libraries.
This package is only relevant to the Scala.js compiler, and should not be referenced by any project compiled to the JVM.
Guide
General documentation on Scala.js is available at.
Overview
The trait js.Any is the root of the hierarchy of JavaScript types. This package defines important subtypes of js.Any that are defined in the standard library of ECMAScript 5.1 (or ES 6, with a label in the documentation), such as js.Object, js.Array and js.RegExp.
Implicit conversions to and from standard Scala types to their equivalent in JavaScript are provided. For example, from Scala functions to JavaScript functions and back.
The most important subtypes of js.Any declared in this package are:
- js.Object, the superclass of most (all) JavaScript classes
- js.Array
- js.Function (and subtraits with specific number of parameters)
- js.ThisFunction and its subtraits for functions that take the JavaScript
thisas an explicit parameter
- js.Dictionary, a Map-like view of the properties of a JS object
The trait js.Dynamic is a special subtrait of js.Any. It can represent any JavaScript value in a dynamically-typed way. It is possible to call any method and read and write any field of a value of type js.Dynamic.
There are no explicit definitions for JavaScript primitive types, as one could expect, because the corresponding Scala types stand in their stead:
- Boolean is the type of primitive JavaScript booleans
- Double is the type of primitive JavaScript numbers
- String is the type of primitive JavaScript strings (or
null)
- Unit is the type of the JavaScript undefined value
Nullis the type of the JavaScript null value
js.UndefOr gives a scala.Option-like interface where the
JavaScript value
undefined takes the role of
None.
A | B is an unboxed pseudo-union type, suitable to type values that admit several unrelated types in facade types.
- Alphabetic
- By Inheritance
- js
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- trait Any extends AnyRef
Root of the hierarchy of JavaScript types.
Root of the hierarchy of JavaScript types.
Subtypes of js.Any are JavaScript types, which have different semantics and guarantees than Scala types (subtypes of AnyRef and AnyVal). Operations on JavaScript types behave as the corresponding operations in the JavaScript language.
You can implement JavaScript types in Scala.js. The implementation (i.e., the method and constructor bodies) will follow Scala semantics, but the constructor and methods will be called using JavaScript semantics (e.g., runtime dispatch).
A JavaScript type that is annotated with @js.native is a facade type to APIs implemented in JavaScript code. Its implementation is irrelevant and never emitted. As such, all members must be defined with their right-hand-side being js.native. Further, native JavaScript types must be annotated with one of @JSGlobal, @JSImport, @JSGlobalScope to specify where to fetch it from.
In most cases, you should not directly extend this trait, but rather extend js.Object.
It is not possible to define traits or classes that inherit both from this trait and a strict subtype of AnyRef. In fact, you should think of js.Any as a third direct subclass of scala.Any, besides scala.AnyRef and scala.AnyVal.
See the JavaScript interoperability guide of Scala.js for more details.
- Annotations
- @RawJSType()
- class Array[A] extends Object with Iterable[A]
Arrays are list-like objects whose prototype has methods to perform traversal and mutation operations..
MDN
To construct a new array with uninitialized elements, use the constructor of this class. To construct a new array with specified elements, as if you used the array literal syntax in JavaScript, use the Array.apply method instead.
- A
Type of the elements of the array
- final class ArrayOps[A] extends ArrayLike[A, Array[A]] with Builder[A, Array[A]]
Equivalent of
scm.ArrayOpsfor js.Array.
- final class ConstructorTag[T <: Any] extends AnyVal
Stores the JS constructor function of a JS class.
Stores the JS constructor function of a JS class.
A
ConstructorTag[T]holds the constructor function of a JS class, as retrieved by
js.constructorOf[T]. Similarly to ClassTags,
ConstructorTags can be implicitly materialized when
Tis statically known to be a JS class, i.e., a valid type argument to
js.constructorOf.
- class Date extends Object
Creates a JavaScript Date instance that represents a single moment in time.
- sealed trait Dictionary[A] extends Any
Dictionary "view" of a JavaScript value.
Dictionary "view" of a JavaScript value.
Using objects as dictionaries (maps from strings to values) through their properties is a common idiom in JavaScript. This trait lets you treat an object as such a dictionary, with the familiar API of a Map.
To use it, cast your object, say
x, into a Dictionary using
val xDict = x.asInstanceOf[js.Dictionary[Int]]
then use it as
xDict("prop") = 5 println(xDict.get("prop")) // displays Some(5) xDict -= "prop" // removes the property "prop" println(xDict.get("prop")) // displays None
To enumerate all the keys of a dictionary, use collection methods or for comprehensions. For example:
for ((prop, value) <- xDict) { println(prop + " -> " + value) }
Note that this does not enumerate properties in the prototype chain of
xDict.
This trait extends js.Any directly, because it is not safe to call methods of js.Object on it, given that the name of these methods could be used as keys in the dictionary.
- Annotations
- @RawJSType()
- sealed trait Dynamic extends Any with scala.Dynamic
Dynamically typed JavaScript value.
- class Error extends Object
- class EvalError extends Error
An instance representing an error that occurs regarding the global function
eval().
- class Function extends Object
The Function constructor creates a new Function object.
The Function constructor creates a new Function object. In JavaScript every function.
Note:.
Invoking the Function constructor as a function (without using the new operator) has the same effect as invoking it as a constructor.
MDN
- trait Function0[+R] extends Function
- trait Function1[-T1, +R] extends Function
- trait Function2[-T1, -T2, +R] extends Function
- trait Iterable[+A] extends Object
ECMAScript 6 JavaScript Iterable.
ECMAScript 6 JavaScript Iterable.
- Annotations
- @RawJSType()
- final class IterableOps[+A] extends collection.Iterable[A]
Adapts a JavaScript Iterable to a Scala Iterable
Adapts a JavaScript Iterable to a Scala Iterable
- Annotations
- @inline()
- trait Iterator[+A] extends Object
ECMAScript 6 JavaScript Iterator.
ECMAScript 6 JavaScript Iterator.
- Annotations
- @RawJSType()
- trait JSArrayOps[A] extends Object
Discouraged native JavaScript Array methods.
Discouraged native JavaScript Array methods.
In general, you should prefer the Scala collection methods available implicitly through ArrayOps, because they are inlineable, and hence faster.
To enable the use of these functions on js.Arrays, import the implicit conversion JSArrayOps.jsArrayOps.
- Annotations
- @RawJSType()
- sealed abstract class JSConvertersLowPrioImplicits extends AnyRef
- trait JSNumberOps extends Any
Operations on JavaScript numbers.
Operations on JavaScript numbers.
- Annotations
- @RawJSType()
- trait JSStringOps extends Any
Operations on JavaScript strings.
- final case class JavaScriptException(exception: scala.Any) extends RuntimeException with Product with Serializable
- sealed trait LowPrioAnyImplicits extends LowestPrioAnyImplicits
- sealed trait LowestPrioAnyImplicits extends AnyRef
- class Object extends Any
Base class of all JavaScript objects.
- class Promise[+A] extends Object with Thenable[A]
ECMAScript 6 Promise of an asynchronous result.
ECMAScript 6 Promise of an asynchronous result.
Attention! The nature of this class, from the ECMAScript specification, makes it inherently un-typeable, because it is not type parametric.
The signatures of the constructor and the methods
thenand
catchare only valid provided that the values of
Aand
Bare not Thenables.
We recommend to use Scala's
Futures instead of
Promiseas much as possible. A
Promisecan be converted to a
Futurewith
.toFutureand back with
.toJSPromise(provided by JSConverters).
With
import scala.scalajs.js.Thenable.Implicits._
you can implicitly convert a
Promiseto a
Future, and therefore you can directly use the methods of
Futureon
Promises.
- trait PropertyDescriptor extends Object
- Annotations
- @RawJSType()
- class RangeError extends Error
An instance representing an error that occurs when a numeric variable or parameter is outside of its valid range.
An instance representing an error that occurs when a numeric variable or parameter is outside of its valid range..
MDN
- class ReferenceError extends Error
Represents an error when a non-existent variable is referenced.
- class RegExp extends Object
The RegExp constructor creates a regular expression object for matching text with a pattern.
- sealed trait Symbol extends Any
ECMAScript 6 JavaScript Symbol.
- class SyntaxError extends Error
Represents an error when trying to interpret syntactically invalid code.
- trait Thenable[+A] extends Object
A thing on which one can call the
thenmethod.
A thing on which one can call the
thenmethod.
Thenables are automatically transitively flattened by the
thenmethod of
Thenables. In particular, this is true for Promises.
Attention! The nature of this interface, from the ECMAScript specification, makes it inherently un-typeable, because it is not type parametric.
The signature of the
thenmethod is only valid provided that the values of
Bdo not have a
thenmethod.
- Annotations
- @RawJSType()
- trait ThisFunction extends Function
A JavaScript function where
thisis considered as a first parameter.
A JavaScript function where
thisis considered as a first parameter.
- Annotations
- @RawJSType()
- See also
Calling JavaScript from Scala.js
- trait ThisFunction0[-T0, +R] extends Function with ThisFunction
- trait ThisFunction1[-T0, -T1, +R] extends Function with ThisFunction
- trait ThisFunction2[-T0, -T1, -T2, +R] extends Function with ThisFunction
- sealed trait Tuple2[+T1, +T2] extends Object
A tuple "view" of 2 elements of a JavaScript js.Array.
A tuple "view" of 2 elements of a JavaScript js.Array.
Supports implicit conversions to and from scala.Tuple2.
To use it, cast your array into a js.Tuple2 using
val array = js.Array[Any](42, "foobar") val tuple2 = array.asInstanceOf[js.Tuple2[Int, String]]
or convert a Scala tuple
val obj: js.Tuple2[Int, String] = (42, "foobar")
- Annotations
- @RawJSType()
- sealed trait Tuple3[+T1, +T2, +T3] extends Object
A tuple "view" of 3 elements of a JavaScript js.Array.
- class TypeError extends Error
Represents an error when a value is not of the expected type.
- class URIError extends Error
Represents an error when a malformed URI is encountered.
- type UndefOr[+A] = |[A, Unit]
Value of type A or the JS undefined value.
Value of type A or the JS undefined value.
This type is actually strictly equivalent to
A | Unit, since
Unitis the type of the
undefinedvalue.
js.UndefOr[A]is the type of a value that can be either
undefinedor an
A. It provides an API similar to that of scala.Option through the UndefOrOps implicit class, where
undefinedtake the role of None.
By extension, this type is also suited to typing optional fields in native JS types, i.e., fields that may not exist on the object.
- final class UndefOrOps[A] extends AnyVal
- sealed trait UnicodeNormalizationForm extends Any
A Unicode Normalization Form.
A Unicode Normalization Form.
- Annotations
- @RawJSType()
- See also
Unicode Normalization Forms
- final class WrappedArray[A] extends AbstractBuffer[A] with GenericTraversableTemplate[A, WrappedArray] with collection.mutable.IndexedSeq[A] with BufferLike[A, WrappedArray[A]] with ArrayLike[A, WrappedArray[A]] with Builder[A, WrappedArray[A]]
Equivalent of
scm.WrappedArrayfor js.Array.
- class WrappedDictionary[A] extends AbstractMap[String, A] with Map[String, A] with MapLike[String, A, WrappedDictionary[A]]
Wrapper to use a js.Dictionary as a scala.mutable.Map
Wrapper to use a js.Dictionary as a scala.mutable.Map
- Annotations
- @inline()
- class native extends Annotation with StaticAnnotation
Marks the annotated class, trait or object as a native JS entity.
Marks the annotated class, trait or object as a native JS entity.
Native JS entities are not implemented in Scala.js. They are facade types for native JS libraries.
Only types extending js.Any can be annotated with
@js.native. The body of all concrete members in a native JS class, trait or object must be
= js.native.
- sealed trait |[A, B] extends AnyRef
Value of type A or B (union type).
Value of type A or B (union type).
Scala does not have union types, but they are important to many interoperability scenarios. This type provides a (partial) encoding of union types using implicit evidences.
- Annotations
- @RawJSType()
Value Members
- def constructorOf[T <: Any]: Dynamic
Returns the constructor function of a JavaScript class.
Returns the constructor function of a JavaScript class.
The specified type parameter
Tmust be a class type (i.e., valid for
classOf[T]) and represent a class extending
js.Any(not a trait nor an object).
- def constructorTag[T <: Any](implicit tag: ConstructorTag[T]): ConstructorTag[T]
Makes explicit an implicitly available js.ConstructorTag.
- def eval(x: String): scala.Any
Evaluates JavaScript code and returns the result.
Evaluates JavaScript code and returns the result.
- Annotations
- @inline()
- def isUndefined(v: scala.Any): Boolean
Tests whether the given value is undefined.
Tests whether the given value is undefined.
- Annotations
- @inline()
- def native: Nothing
Denotes a method body as native JavaScript.
Denotes a method body as native JavaScript. For use in facade types:
class MyJSClass extends js.Object { def myMethod(x: String): Int = js.native }
- def typeOf(x: scala.Any): String
Returns the type of
xas identified by
typeof xin JavaScript.
- def undefined: UndefOr[Nothing]
The undefined value.
The undefined value.
- Annotations
- @inline()
- object Any extends LowPrioAnyImplicits
Provides implicit conversions from Scala values to JavaScript values.
- object Array
Factory for js.Array objects.
- object ArrayOps
- object ConstructorTag
- object Date extends Object
Factory for js.Date objects.
- object Dictionary
Factory for js.Dictionary instances.
- object Dynamic
Factory for dynamically typed JavaScript values.
- object DynamicImplicits
Provides implicit conversions and operations to write in JavaScript style with js.Dynamic.
Provides implicit conversions and operations to write in JavaScript style with js.Dynamic.
Be **very** careful when importing members of this object. You may want to selectively import the implicits that you want to reduce the likelihood of making mistakes.
- object Error extends Object
- object EvalError extends Object
- object Function extends Object
- object Iterator
- object JSArrayOps
- object JSConverters extends JSConvertersLowPrioImplicits
A collection of decorators that allow converting Scala types to corresponding JS facade types
- object JSNumberOps
- object JSON extends Object
The JSON object contains methods for converting values to JavaScript Object Notation (JSON) and for converting JSON to values.
- object JSStringOps
- object Math extends Object
Math is a built-in object that has properties and methods for mathematical constants and functions.
- object Object extends Object
The top-level
ObjectJavaScript object.
- object Promise extends Object
- object RangeError extends Object
- object ReferenceError extends Object
- object RegExp extends Object
- object Symbol extends Object
ECMAScript 6 Factory for js.Symbols and well-known symbols.
- object SyntaxError extends Object
- object Thenable
- object ThisFunction
- object Tuple2
- object Tuple3
- object TypeError extends Object
- object URIError extends Object
- object URIUtils extends Object
Methods related to URIs, provided by ECMAScript 5.1.
Methods related to URIs, provided by ECMAScript 5.1.
- Annotations
- @native() @JSGlobalScope()
- object UndefOrOps
- object UnicodeNormalizationForm
- object WrappedArray extends SeqFactory[WrappedArray]
Factory for js.WrappedArray.
Factory for js.WrappedArray. Mainly provides the relevant CanBuildFromss and implicit conversions.
- object WrappedDictionary
- object defined
- object | | https://www.scala-js.org/api/scalajs-library/1.0.0-M2/scala/scalajs/js/index.html | CC-MAIN-2019-04 | refinedweb | 2,462 | 51.14 |
Persist logs With SQLite. Easy to query logs.
Project description
DB Logging
Summary
DB Logging is a Python logging utility that creates tag-based log messages in a SQLite database. This is a power mechanism for logging because the logs persist in a very easily queryable log file. Additionally, an HTML generator is included to parse the DB file and create a beautiful rendering of the log entries.
Installation
There are two methods for installing this module:
pip install dblogging
- Clone from Gitlab.
Usage Guide
Follow these steps to get started. Note the tips for extra pointers! See the examples folder for examples of using the logger.
Create The Custom Log Tags
The derived LogTags class MUST include at least these two properties: default and critical. This is
because the logging functions need a default log tag in case the log method was not explicitly given one by the
programmer. The critical tag is only used by
log_exception() and cannot be overridden. While these properties
exist, their values can be overridden.
Each log tag requires three values: a
name, a
value, and an
html_color (not required). The idea is to be able
to filter code by group names or by a threshold of some sort to sift out other noise within the log file.
- The name denotes a group name to which log entries will belong, such as a severity like DEBUG or a layer of code such as API.
- The value is an integer that places a value to the tag such as severity or level within a layer of code.
- The html_color is optional. It is the color used when generating the HTML file with the
HtmlGenerator().
There are two easy ways to create custom log tags.
- Import LogTagTemplate to customize the default and critical log tags.
from dblogging.config import LogTagTemplate, LogTag class LogTags(LogTagTemplate): # default and critical must be defined. default = LogTag( name='Standard', value=0, html_color='cyan' ) critical = LogTag( name='Critical', value=90, html_color='red' ) # custom tags below DAL = LogTag( name='Data Access Layer', value=10, html_color='#0F0' # green )
- Import LogTags to define just the custom tags. The default and critical tags are already defined.
from dblogging.config import LogTags as _LogTags, LogTag class LogTags(_LogTags): # custom tags below DAL = LogTag( name='Data Access Layer', value=10, html_color='#0F0' # green )
Writing Logs
When
Logger() is called it is disabled until
start() is called. This allows the program to explicitly decide when
logging is enabled and how. Prior to begin logging be sure to consider setting these variables:
log_path: This is the absolute path to the SQLite log file with or without the .db extension. The parent folder must exist and the log file must not already exist. If this variable is not set prior to
start()then logs will only be directed to stdout via
print().
log_tags: If not defined prior to
start()then the default
dblogging.config.LogTagsis used. See the section above for more details on customizing the log tags.
date_format: When
print()is called this date format is used to log the entry to stdout. If logging to the database as well then this format will NOT apply. The default value is
%Y/%m/%d %H:%M:%S.
When
start() is called the logger is enabled and, if and only if
log_path is defined, the SQLite database is
initialized with a log_tags and log_entries table. The log_tags table can only be populated once and is
populated on
start() with the log tag information. If the log tags are redefined later in the program it will not
be persisted into the database by the logger and would require the programmer's intervention.
When logging message the logger grabs these few items about the log entry:
- file path: The absolute path to the function, or caller, referenced in the call stack of the log entry.
- function name: The name of the function, or caller, referenced in the call stack of the log entry.
- line number: The line number of the function, or caller, referenced in the call stack of the log entry.
- message: The log message.
- log tag: The log tag the accompanies the log entry. The logger uses this tag to decide if the message should or should not be logged based on the currently defined log rule. See Setting Log Rules below for more details.
- thread information: The thread id and name of the call stack.
Here are all of the logging methods and how they work.
log(): Logs a message with a log tag.
msg: The log message. Required.
log_tag: Default is the
defaulttag.
num_prev_callers: This is the caller within the call stack to reference. The logger dynamically retrieves data about the caller based on this value. Default is 0.
log_exception(): Logs the exception with the
criticallog tag. This cannot be overridden. If
generate()is not used, then be sure to include this in an except clause at the very least.
log_method(): Not really useful to the programmer. Rather than dynamically retrieving data about a caller like
log()does, this explicitly logs data about the caller passed to the method.
func: A callable function.
msg: The log message.
log_tag: The log tag that logs the message. Defaults to the default tag.
returning: If
True, reference the last line of the method, otherwise the first.
generate(): This is the context manager that wraps the execution of the given code block in a
try/except/finallyclause. It accepts a
format_generatorparameter that, if defined, will generate the log file in the given format. If it is not given, then the database file will still persist if a
log_pathis given prior to starting the logger.
format_generator: Either a string or callable generator class. Right now the only acceptable string value is html, which references the built-in HTML log generator. The programmer can design a custom generator that parses the SQLite database entries to output the desired format. The custom generator MUST have an
__init__(self)method that accepts no arguments and a
generate()method that may accept arguments.
kwargs: Supplementary keywords can be passed to the
generate()function.
wrap_func(): A function wrapper that logs the inputs and outputs of the function. The function may not be a generator function or yield anything to the caller.
staticmethodand
classmethodsare supported. This method accepts a list of regular expressions to map to input parameter names whose values should be masked. Output values can only be entirely masked or not at all due to the complexity and time to parse the output to decide what to mask. The inputs and outputs are logged with
jsonpickleand only logs picklable objects to avoid errors with a max depth of 3 (meaning nested iterable objects are only logged up to 3 iterations).
log_tag: The log tag to use to log the input and output messages. If not given, then the
defaulttag is used.
mask_input_regexes: A list of regular expressions that map to input parameter names whose values should be masked.
mask_output: If
True, then the output message is simply "Output is masked." Otherwise, the output is given in the message.
is_static_or_classmethod: Must be
Truewhen using the
staticmethodor
classmethodwrappers.
wrap_class(): Applies the
wrap_func()wrapper to all callable members of a class that do not start with two underscores (__). This method automatically detects
staticmethodand
classmethodattributes. A single regular expression can be given to describe those methods that should NOT be wrapped. Just like
wrap_func(), input parameter values and output values can be masked. However, these are globally applicable values, so every method will apply these values. It is more efficient to define the input masking rules per method because the logger does not attempt to parse the inputs if nothing is defined.
wrap_func()overrides
wrap_class(), so it can be placed on a method that may require a different log tag or must have an input or output masked.
log_tag: The log tag to use to log the input and output messages. If not given, then the
defaulttag is used.
func_regex_exclude: The regular expression describing the functions to not wrap.
mask_input_regexes: A list of regular expressions that map to input parameter names whose values should be masked.
mask_output: If
True, then the output message is simply "Output is masked." Otherwise, the output is given in the message.
Setting Log Rules
When enabled, log rules can be created on the fly to manage which logs are actually committed to the console and/or to
the database. Here are the parameters to
set_rule():
mode: The mode, a string value, is the target for log entries. There are four possible values:
- "console": Only commit log entries that satisfy the rule via
print().
- "persistence": Only commit log entries that satisfy the rule to the database.
- "all": Commit log entries that satisfy the rule both via
print()and to the database.
- "current": Default. Commit log entries that satisfy the rule using the current mode.
log_tag: Used to log
why. If not given the default tag is used.
min_tag_value: The minimum log tag value, inclusive, that must accompany a log entry to be committed.
blacklist_tag_names: A list of log tag names that whose log entries will NOT be committed.
blacklist_function: A
lambdafunction that customizes the wanted behavior. This function MUST accept only one parameter, x, which is the log tag used to commit a log entry.
reset: Resets the rule to the original state, except the mode.
why: The reason why the rule is being set.
If none of
min_tag_value,
blacklist_tag_names,
blacklist_function, or
reset is defined, then all log entries
will be logged via the
mode given. The order of execution of these functions is as follows:
blacklist_function
min_tag_value
blacklist_tag_names
reset
- Allow all log entries. This is the same as
reset, only a different message is logged.
Logs can also be disabled. This option is only available as a context manager, meaning the
with statement is
required. Be cautious when using this option because all logs in the context will be disabled. Upon exit of the
context the logger will switch the disabled rule back to its original state. If
logger.start() was never called,
then it would not be enabled when the context exits. Otherwise the logger would be re-enabled. If an exception was
thrown in the context and the logger was started, then the exception will be re-raised by the logger and logged.
Generating The HTML File
Refer to dblogging/examples/logs/example.html in this repository to view the output files.
This type of log file generation can be very useful for having a nice visual into the logs. While having a database to
query is very nice, having a more friendly output that you can render in your browser is very handy. However, proceed
with caution as very large log files can take a very long time to render. To help with this, the
HtmlGenerator() has
a couple of parameters that can help.
The
HtmlGenerator() accepts these parameters:
log_file: The absolute path to the .db log file. If using the
generate()method, the logger handles this for you.
title: The title of the HTML page.
include_code: If
True, each raw code file referenced by the log entries will be compiled to HTML. To increase performance and save space, the output HTML file makes an
<object>reference to these files so each code file is not a) included directly in the output file and b) not duplicated in the output. To preserve reference integrity, each code file's HTML is named according to the
uuid.uuid3()hash of the absolute path to the file. If
False, raw code is not included with the output.
datetime_range: Must be a
Tupleof length 2 where the first value is the starting datetime and the second is the ending datetime. If either is undesired, then the value must be set explicitly to
None(i.e.
(None, today)for just and end date of today). The values must be
datetimeobjects. This is particularly useful for reducing the size and narrowing the target of the desired logs.
exclude_files: A list of regular expressions that describe the list of code files that should not be compiled and referenced by the output. If
include_code=False, this parameter is moot.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages. | https://pypi.org/project/dblogging/1.0.9/ | CC-MAIN-2021-39 | refinedweb | 2,056 | 65.73 |
Opened 3 years ago
Closed 3 years ago
#7588 closed bug (fixed)
GHC HEAD built with LLVM on Mac OS X miscompiles RTS: SIGSEGV in stg_PAP_apply
Description
After fixing #7571 and #7580, with those two patches, I now get a working stage1 compiler that can produce binaries using the LLVM backend. But all of them segfault:
$ cat no-op.hs main = return () $ ~/code/haskell/ghc/inplace/bin/ghc-stage1 -fforce-recomp -fllvm no-op.hs [1 of 1] Compiling Main ( no-op.hs, no-op.o ) Linking no-op ... $ ./no-op [1] 12434 segmentation fault ./no-op $
This looks like an error in stg_PAP_apply:
gdb -q ./no-op ⏎ Reading symbols for shared libraries .... done (gdb) r Starting program: /Users/a/t/no-op Reading symbols for shared libraries +++............................. done Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: 13 at address: 0x0000000000000000 0x00000001002917d4 in stg_PAP_apply () (gdb)
I imagine this is due to some miscompilation of rts/Apply.cmm using LLVM.
I'll rebuild the stage1 compiler with debugging support for sanity, and also enable the debug RTS in the test, and report back soon.
(I imagine this failure is certainly possible *because* of my patches in the other tickets, although my intuition tells me those are strictly correctness fixes and something else is afoot here.)
Change History (10)
comment:1 Changed 3 years ago by thoughtpolice
comment:2 Changed 3 years ago by dterei
Yes, when this occurs it has always been due to a miscompilation of a handwritten cmm file. Apply.cmm or Update.cmm are usual culprits. You could also check that the mangler is still working fine, that may be another issue.
comment:3 Changed 3 years ago by thoughtpolice
Great, thanks for the reaffirmation, David. I'll look into it later tonight and investigate further.
comment:4 Changed 3 years ago by dterei
- Blocking 7589 added
comment:5 Changed 3 years ago by dterei
- Blocked By 7590 added
comment:6 Changed 3 years ago by dterei
- Blocked By 7590 removed
- Blocking 7590 added
comment:7 Changed 3 years ago by dterei
- Blocking 7589 removed
comment:8 Changed 3 years ago by dterei
- Status changed from new to infoneeded
Austin, can you confirm if this occurs still with HEAD?
comment:9 Changed 3 years ago by thoughtpolice
Yes, I saw your patches go by. Thanks a lot! I'll ./validate with the latest HEAD and see how far I get.
comment:10 Changed 3 years ago by thoughtpolice
- Resolution set to fixed
- Status changed from infoneeded to closed
I just ran validate on the latest copy of HEAD. This is fixed and the stage2 compiler is running the testsuite now.
The stage1 compiler and RTS were both compiled with LLVM 3.2, btw. | https://ghc.haskell.org/trac/ghc/ticket/7588 | CC-MAIN-2016-22 | refinedweb | 456 | 64.3 |
#include <LevelFluxRegisterEdge.H>
A LevelFluxRegisterEdge manages the coarse-fine fixup for a face-centered field which is defined as a curl of an edge-centered field, performing the "reflux-curl" operation described in Balsara(2001) to preserve the divergence-free magnetic field in the presence of coarse-fine interfaces.
This class performs a reflux-curl of edge-centered fluxes to correct a face-centered field. This is in contrast to the regular LevelFluxRegister class, which performs a reflux-divergence of face-centered fluxes to correct a cell-centered field.
Default constructor. Creates an uninitialized LevelFluxRegisterEdge.
Full constructor. Calls the define function which creates a levels worth of flux registers.
Full constructor. Calls the define function which creates a levels worth of flux registers.
there is no copy constructor for this class
Full define function. Creates a levels worth of flux registers. The values in the flux registers are still undefined, however. To zero the fluxregisters, you must call setToZero().
Full define function. Creates a levels worth of flux registers. The values in the flux registers are still undefined, however. To zero the fluxregisters, you must call setToZero().
Modifies this LevelFluxRegisterEdge so that it is returned to the uninitialized state. User must now call the full define() before using it.
Initialize values of registers to zero.
increments the register with data from coarseFlux, multiplied by scale. coarseFlux must contain the edge-centered (in 3d, node centered in 2d) coarse fluxes in the dir direction for the grid m_coarseLayout[coarseDataIndex]. By convention, only the low side flux is used to avoid double-counting at coarse-fine interfaces. This operation is local.
increments the register with data from fineFlux (which is edge-centered in 3d, node-centered in 2d), multiplied by scale. a_dir is the normal of the coarse-fine interface, and a_sd determines whether we're looking at the high-side or the low-side for the grid box m_fineLayout[fineDataIndex] This operation is local.
increments uCoarse with the reflux "CURL" of the contents of the flux register. Note that there is no srccomp etc here. this is done for all components so uCoarse has to have the same number of components as input nComp. This operation is global and blocking.
has full define function been called? return true if so.
there is no operator= for this class
number of components in register
refinement ratio between levels
domain at the coarse grid resolution | http://davis.lbl.gov/Manuals/CHOMBO-RELEASE-3.3/classLevelFluxRegisterEdge.html | CC-MAIN-2019-22 | refinedweb | 401 | 58.79 |
Ok, I'm trying to make it somehow clearer. As a starter this time only
for news reception:
- create a new subdirectory, let's say c:\vsoup
- in this subdirectory create a file newsrc, which contains the
newsgroups you like to read. E.g. (type c:\vsoup\newsrc):
comp.os.os2.announce
alt.test
- create a small batch file (c:\vsoup\getnews.bat) which contains the
following:
c:
cd \vsoup
vsoup -m -t8 -C50 -h . nntp://your.news.server
import -u
Of course vsoup and import must be found in the PATH
- for convinience: create a link for that small batch file
- establish connection to your ISP
- start the small batch file from above which now should start
fetching news from your news server. After that data will be
imported to Yarn
- hangup connection to your ISP
- the c:\vsoup\newsrc now shows something like:
comp.os.os2.announce: 1-7396
alt.test: 1-32411
- more sophisticated versions of the batch could contain automatic
dialin/hangup, _sequential_ reception&transmission of mail&news.
Another feature could be scoring of news articles (to avoid
transmission of unwanted articles)
- much more sophisticated versions of the batch could include the
above and _parallel_ reception&transmission of mail&news (also for
more than one server for each task)
For further reading refer to my homepage which contains not even a
complete (more or less) description of the command line switches, but
also a FAQ which should guide you through the process of refining your
batch.
Hardy
-- VSoup Homepage: | http://www.vex.net/yarn/list/199905/0022.html | crawl-001 | refinedweb | 253 | 59.23 |
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.
Python Warning message display
I have written a function like below Written in Python and XML. Which function like if user selects past date it will display a warning message called 'Past date not allowed.' I need to get warning message like 'Past date not allowed. Date selected is 04-09-2015(It should display the selected date also). How can we do this.
Python:
def onchange_start_date_past(self, cr, uid, ids, start_date, eofdate, year2, context=None):
res = {'value':{}}
chng_year = datetime.strptime(start_date, "%Y-%m-%d %H:%M:%S")
today = time.strftime('%Y-%m-%d %H:%M:%S')
current_date = datetime.strptime(today, '%Y-%m-%d %H:%M:%S')
if chng_year.year and year2:
if str(chng_year.year) != str(year2):
#res['value']['date_start'] = ''
res.update({'warning': {'title': _('Warning !'), 'message': _('Please enter correct Year.')}})
return res
d = self.months_between1(chng_year, current_date)
if d < 0:
#res['value']['date_start'] = ''
res.update({'warning': {'title': _('Warning !'), 'message': _('Past date not allowed.')}})
return res
return start_date
else:
return False
XML:
<field name='date_start' on_change="onchange_start_date_past(date_start, date_end, parent
@hardikgiri Goswami Thanks a lot
Please accept the answer. | https://www.odoo.com/forum/help-1/question/python-warning-message-display-90636 | CC-MAIN-2017-09 | refinedweb | 212 | 54.69 |
These are chat archives for FreeCodeCamp/HelpFrontEnd
c0d0er2 sends brownie points to @dwquach :sparkles: :thumbsup: :sparkles:
?sig={random number}to the end of the url to prevent this, for example:
$("body").css("background-image", "url(" + "" + Math.random() + ")");
<h2>element for your name. The display style for that is
display:block;which makes it occupy its own line. Try changing it to something else. Or putting a class on it with
display: inline-block;
col-s-3is not correct, it should be
col-sm-3, for all of those, I think? Unless you're trying to do something else.
varLink</a>";
dwquach sends brownie points to @tylermoeller :sparkles: :thumbsup: :sparkles:
willstanleyus sends brownie points to @khaduch :sparkles: :thumbsup: :sparkles:
victorhall sends brownie points to @mot01 :sparkles: :thumbsup: :sparkles:
victorhall sends brownie points to @mot01 :sparkles: :thumbsup: :sparkles:
:warning: victorhall already gave mot01 points
quackidy sends brownie points to @dwquach and @khaduch :sparkles: :thumbsup: :sparkles:
It's very unfinished, I'm not sure if I'm headed in the right directionIt's very unfinished, I'm not sure if I'm headed in the right direction
function updateRecords(id, prop, value) { if(collection.tracks.hasOwnProperty()){ return collection; }else if (collection.tracks.hasOwnProperty === false){ collection.tracks.push }
collectionhave a
tracksproperty, ever? What kind of properties does
collectionhave - the "first level" of properties. For that matter, what kind of structure is
collection?
collection, and an
id, what would you do with that to try and find a
tracksproperty? Your answer is close, but you have to make sure that you understand when you can use dot notation vs. bracket notation to access an object.
johnnunns sends brownie points to @khaduch :sparkles: :thumbsup: :sparkles:
function updateRecords(id, prop, value) { if(collection["1245"].tracks.hasOwnProperty()){ return collection; }else { collection['1245'].tracks.push("Don't know") }
idvalues, and those values will be the numbers, so you should be able to use that variable in your data access.
function updateRecords(id, prop, value) { if(collection["1245"].tracks.hasOwnProperty(prop)){ return collection; }else { collection['1245'].tracks.push("Don't know"); }
id- there is no way to make it work otherwise! Check the test cases that will be run to validate your solution.
idbecause when you call the function, as they have one sample call at the bottom of the edit window, that value will be avaiable in the
idvariable and you'll be using it in the way that will be a general-purpose solution. But, for the sake of argument, you are using one of the values. So let's move on to the next thing. If you have this construct:
collection["1245"]- what does that allow you to access within the data?
@moT01 - well, it's better than counting into the negative values, I've seen that. So the next question is that I didn't hear any sound when it changed from the session to the break? I think that is one of the requirements, they mention it in the user stories, I think?
One other thing, and if you have it working, it's fine - it's easier to keep your time value in seconds only, and not have to make calculations against seconds and minutes.
But it looks good overall!
collection["1245"], how would you determine whether or not it has a
tracksproperty?
collection["1245"].tracks.hasOwnProperty(prop)- what is that going to tell you? Is it correct? (I would say that
tracksmight be there, it might not be there, and if it is there, it needs to be an array, as many of the records are initialized with an array.) But does an array have properties?
// Setup var collection = { "2548": { "album": "Slippery When Wet", "artist": "Bon Jovi", "tracks": [ "Let It Rock", "You Give Love a Bad Name" ] }, "2468": { "album": "1999", "artist": "Prince", "tracks": [ "1999", "Little Red Corvette" ] }, "1245": { "artist": "Robert Palmer", "tracks": [ ] }, "5439": { "album": "ABBA Gold" } }; // Keep a copy of the collection for tests var collectionCopy = JSON.parse(JSON.stringify(collection)); // Only change code below this line function updateRecords(id, prop, value) { if(collection[1245].tracks.hasOwnProperty(value)){ return collection; }else { collection[1245].tracks.push("Addicted to Love"); } if(collection[5439].hasOwnProperty(prop)) { return collection; }else if(collection[5439]) }
id
object.newProperty = "something";for example. If you want to add something to an array, as with this problem, you have to use
.push(), which you know. But again, in the general case, you have to make sure that there is an array there in order to push. So you cannot just do
object.someOtherProperty.push("something");if there isn't a
someOtherPropertythat doesn't contain an array. For the general case, you want to make sure that there is or isn't a property for the "tracks" case so you can properly create it if necessary, and
.push()to it if it exists.
mot01 sends brownie points to @khaduch :sparkles: :thumbsup: :sparkles:
idwill contain that value, and you can use it as
collection[id], and your code has to be written to just handle the other cases - for example, if
value === ''is one of the things that they mention - the specific record that you have the ID for is the one that will be tested. It will work!
@johnnunns when you call...
updateRecords(5439, "tracks", "");
those values get plugged into your variable...
updateRecords(id, prop, value);
so using collection[id], in this case, will give you access to the collection with the id of 5439
maybe you already got that part, trying to bring more clarity
@johnnunns - one example of one of these tests - the first one:
updateRecords(5439, "artist", "ABBA");
Your function will be called - the function arguments will be:
The test says that after the function runs:
artistshould be
"ABBA"
So the testing code is going to read the
collection object that is returned. Before your function runs, that record doesn't have an
artist field. But you will add it, and since it is not a
tracks property, no need to worry about array-type structures, you can just set that property using the variables and bracket notation -
collection[id][prop] = value; That's a hint...
It is equivalent to having the code
collection["5439"].artist = "ABBA"; but it is reusable because it is parameterized with the function arguments that will assume the values for the current function invocation.{query.value}&format=json&origin=*
if (collection[id].hasOwnProperty('someproperty');
.hasOwnProperty(), I think that's what you meant? And the point is that you want to be able to work on multiple records. The thing is, that the function is only called with one value at a time - so for each invocation of the function, you'll probably be using different values, but ONLY ONE AT A TIME! That's the beauty of it! You can, of course, have something that would take action on all of the records in the collection, say, if you wanted to add another field - but you'd have to be getting multiple pieces of data in an array or something - so calm yourself. :) It will work, I promise!
```
function updateRecords(id, prop, value) {
if(collection[id].tracks.hasOwnProperty(value)){
return collection;
}else {
collection[id].tracks.push("Addicted to Love");
}
if(collection[id].hasOwnProperty(prop)) {
return collection;
}else {
collection[id].push("tracks","artists");
}
}
``` @khaduch @moT01
function updateRecords(id, prop, value) { if(collection[id].tracks.hasOwnProperty(value)){ return collection; }else { collection[id].tracks.push("Addicted to Love"); } if(collection[id].hasOwnProperty(prop)) { return collection; }else { collection[id].push("tracks","artists"); } }
replaced the specific song with 'value'replaced the specific song with 'value'
function updateRecords(id, prop, value) { if(collection[id].tracks.hasOwnProperty(value)){ return collection; }else { collection[id].tracks.push(value); } if(collection[id].hasOwnProperty(prop)) { return collection; }else { collection[id].push("tracks","artists"); }
@johnnunns - there are a few problems here.
value === ''or
value !== ''somewhere in your code to be able to handle that situation, as described in the problem description
collection[id].tracks.hasOwnProperty(value)- this is not correct.
tracksdoes not contain an object as its value, so it cannot be used with
.hasOwnProperty()in the way you have it coded. (You would most likely get an error in the console if you looked at it when this code was attempted to be run.)
collection[id].tracks.push("Addicted to Love");would work - if
prop === "tracks"(you were supposed to be operating on the "tracks" property) and if
value === "Addicted to Love"- In other words, you have hard-coded something that should be using the function arguments.
if(collection[id].hasOwnProperty(prop)) {- this test is not useful here. The function should always
return collection;after it updates the record.
collection[id].push("tracks","artists");- this is also not useful here - there is no condition here where you should be pushing the words "tracks" and "artists" into an object (which probably will fail anyway, since it
collection[id]is not an array...
You have some of the concepts going in the right direction, but things are quite jumbled and confused, but let's try another approach. Look at the conditions that they want you to check - one of the biggies is
value === "" or
value !== "". If the value is blank, you are just supposed to delete the property that is given in the variable
prop, at the ID that is given in the variable
id. You have to use the
delete function. You can write this code like this:
if ( value === '' ) { delete collection[id][prop]; // because the value is blank, just delete this } else { // the value is not blank - there are other things to consider, most specifically, if `prop === "tracks"` if (prop === "tracks" ) { // do the things here to properly handle the "tracks" property } else { // the prop variable is not "tracks", just add the prop and value to the given record. } } return collection; // this is always done at the end of the function
that is what you should have as a basic idea for your function - you need to fill in the details. Look at the description of the problem, with this framework in mind, and see if you can get some of the tests to pass.
johnnunns sends brownie points to @khaduch and @mot01 :sparkles: :thumbsup: :sparkles:
joshfilippi sends brownie points to @mot01 :sparkles: :thumbsup: :sparkles:
.getJSON()but although the API is clearly returning data in a browser it doesn't appear to be hitting my script...
$.getJSON("", function(data) { console.log("OPoop"); });
console.log()should be
console.log(data);
joshfilippi sends brownie points to @livonian-router :sparkles: :thumbsup: :sparkles:
jamespayne sends brownie points to @joshfilippi :sparkles: :thumbsup: :sparkles:
"data": { "locationName": "test tag", "address": "Bangladesh,Boalkhali", "assetTags": [ { "tagType": "du", "tagValue": "aadadasd" } ] } var option_cate = '<li class="item"><span>' + malwareLabel +' : ' + dummyJson.data[key] + ' </span></li>'; $(option_cate).appendTo('#malware-menu');
but it gets printed as
locationName : test tag,
address : Bangladesh,Boalkhali,
Asset Tags : [object Object]
The data for assetTags gets printed as object as it is an array of object
How to print the values of the inner array also
jamespayne sends brownie points to @davidminaz :sparkles: :thumbsup: :sparkles:
.getJSON()with that API
replaceWith();,
replace();,
show();,
hide();, but I can't get it right.
$(document).ready(function() { $resultsList = $('#resultsList'); $('#submit').click(function() { var query = $("#query").val(); var<div class="card-content"><span class="card-title">'+ data[1][i] +'</span><p>'+ data[2][i] +'</p></div><div class="card-action"><a href="'+ data[3][i] +'" target="_blank">read full article</a></div></div></li>'); } }); }); });
append();to show the data on the page
davidminaz sends brownie points to @jamespayne :sparkles: :thumbsup: :sparkles:
when i click military?
$(document).ready(function(){ var int = setInterval(updateTime.bind(this, military),1000,military); $("#time").click(function(){ if(int) { clearInterval(int); int = setInterval(updateTime.bind(this, military),1000,military); } military = !military; }); });
format) in your updateTime function.
function updateTime(){ var d = new Date(), hours = d.getHours(), displayHours = military == true ? hours : hours % 12, minutes = d.getMinutes() > 9 ? d.getMinutes() : ("0" + d.getMinutes()), time = displayHours + ":" + minutes; if(hours < 12){ time += " a.m."; }else{ time += " p.m."; } $("#time").html(time); } $(document).ready(function(){ $("#time").click(military, function(){ military = !military; }); setInterval(updateTime,1000); });
scopeand parameters to be passed to a function.
callthe function
.bindwill be reflected in your function.
thisinside your function) and then 2nd arguments onward are parameters to be passed.
uaefame sends brownie points to @adityaparab :sparkles: :thumbsup: :sparkles:
:cookie: 767 | @adityaparab |
trieucrew sends brownie points to @adityaparab :sparkles: :thumbsup: :sparkles:
bahaaiman sends brownie points to @sorinr :sparkles: :thumbsup: :sparkles:
var app = angular.module('wikiApp', []); app.controller('myCtrl', function ($scope, $http) { $scope.searchUrl = `? format=json &action=query &generator=search &gsrnamespace=0 &gsrlimit=10 &prop=pageimages|extracts &pilimit=max &exintro &explaintext &exsentences=1&exlimit=max&gsrsearch=Albert&callback=?`; $http.jsonp($scope.searchUrl) .success( function (data) { var results = data.query.pages; angular.forEach(results, function (v, k) { $scope.results.push({ title: v.title, body: v.extract, page: page + v.pageid }) }) }); });
Following is the code:
var count = 0;
function cc(card) {
// Only change code below this line
switch (card) {
case 2:
case 3:
case 4:
case 5:
case 6:
count += 1;
break;
case 7:
case 8:
case 9:
count += 0;
break;
case 10:
case 'J':
case 'Q':
case 'K':
case 'A':
count -= 1;
}
if (count <= 0) {
console.log (count + " Hold");
} else
console.log (count + " Bet");
//return count;
// Only change code above this line
}
// Add/remove calls to test your function.
// Note: Only the last will display
cc(2); cc(3); cc(4); cc(5); cc(6);
I am not getting any output. Any ideas?
Hi guys, i dont know what the problem is here, my s function stream keeps returning undefined when the returned value is defined..
my Code:
$(document).ready(function() { var channels = ["ESL_SC2", "OgamingSC2", "cretetion", "freecodecamp", "storbeck", "habathcx", "RobotCaleb", "noobs2ninjas"]; function stream(channel) { var streamResult; var stream_link = "" + channel; $.getJSON(stream_link, function(result) { streamResult = result.stream; }); return streamResult; }//end function stream alert(stream("ESL_SC2")); function channelInfo(stream, channel) { //var status = stream(channel); if(status === null) { var channel_status = "offline"; }else { var channel_status = "online"; }//end else var link = "" + channel; $.ajax({ url: link, dataType: "jsonp", success: function(json) { $(".table").append("<tr><td><img src = '" + json.logo + "' width = '320'></td>"); $(".table").append("<td>" + json.display_name + "</td>"); $(".table").append("<td>" + channel_status + "</td></tr>"); }//end success });//end $.ajax }//end channelInfo for(i = 0; i < channels.length; i++) { channelInfo(stream, channels[i]); }//end for });///end document
codepen:
any help please
$.getJSONis an asynhronous call. That means, that the callback function given to it resolves late, and the code doesn't wait for it with running. so
streamResultis not YET set when you return.
When you want to encapsulate that stuff in a function still, you can use something like:
function stream(channel, cb) { var streamResult; var stream_link = "" + channel; $.getJSON(stream_link, function(result) { cb(result.stream); }); }
And use it as:
stream("ESL_SC2", function(stream) { // here you have the stream });
section { height: 100vh; width: 100%; }
pawelrokosz sends brownie points to @alpox :sparkles: :thumbsup: :sparkles:
purpose50 sends brownie points to @alpox :sparkles: :thumbsup: :sparkles:
purpose50 sends brownie points to @benwebdev :sparkles: :thumbsup: :sparkles:
purpose50 sends brownie points to @sorinr :sparkles: :thumbsup: :sparkles:
makzin sends brownie points to @tylermoeller :sparkles: :thumbsup: :sparkles:
<div class="col-md-3"> <button class="btn btn-block"><a href=""target="_blank">Minds</a></button> </div> <div class="col-md-3"> <button class="btn btn-block"><a href="" target="_blank">Twitter</a></button> </div> <div class="col-md-3"> <button class="btn btn-block"><a href="" target="_blank">Github</a></button> </div> <div class="col-md-3"> <button class="btn btn-block"><a href="" target="_blank">StumbleUpon</a></button></div> </div> </div>
plz got my buttons looking good but do they work no div classcontainer-fluid div classrow div classcol-md-3 button classbtn btn-blocka hrefhttpswwwmindscompielotarget_blankmindsabutton div div classcol-md-3 button classbtn btn-blocka hrefhttpstwittercompaul_standley target_blanktwitterabutton div div classcol-md-3 button classbtn btn-blocka hrefhttpsgithubcom target_blankgithubabutton div div classcol-md-3 button classbtn btn-blocka hrefhttpwwwstumbleuponcomstumblerpaulstandley1972 target_blankstumbleuponabuttondiv div div
<button>element, without any type attribute, is used for submitting a <form>. If you want to style your hyperlinks like buttons, use the
btnclass with your <a> elements instead.
@emamador With this code:
for(var i = 0; i < aiColors.length; i++) { playAiColInt(i); }
You are still calling a function that uses setTimeout(), so the for loop continues to completion before the setTimeout is finished.
ssgriffen sends brownie points to @tylermoeller :sparkles: :thumbsup: :sparkles:
pielo2 sends brownie points to @tylermoeller :sparkles: :thumbsup: :sparkles:
uaefame sends brownie points to @mot01 :sparkles: :thumbsup: :sparkles:
uaefame sends brownie points to @mot01 :sparkles: :thumbsup: :sparkles:
img-responsiveclass to your images - or use CSS and use max-width: 100%
c0d0er2 sends brownie points to @tylermoeller :sparkles: :thumbsup: :sparkles:
ash1108 sends brownie points to @ankit-prgmr :sparkles: :thumbsup: :sparkles:
Can anybody please help me on Use Bracket Notation to Find the First Character in a String in JavaScript? Here is my code:
var firstLetterOfFirstName = ""; var firstName = "Ada"; firstLetterOfFirstName = firstName[0]; // Setup var firstLetterOfLastName = ""; var lastName = "Lovelace"; // Only change code below this line var firstLetterOfLastName = ""; var lastName = "Frank"; firstLetteOfFirstName = firstName[0];
Here is my link:
c0d0er2 sends brownie points to @igoramidzic :sparkles: :thumbsup: :sparkles:
./img/... your code can move from one server to another
igoramidzic sends brownie points to @tylermoeller :sparkles: :thumbsup: :sparkles:
/* ---------------------------------------------------| | \ | | \ | | \ | |____________________________\__| */
transform: rotate(45deg);. You'll have to adjust the position to line it up correctly though. Another way is with SVG:
<div class="div-with-diagonal-line"> <svg width="100" height="100"> <path d="M 0 0 L 100 100" stroke="red" stroke- </svg> </div>
.div-with-diagonal-line { background-color: #eee; width: 100px; height: 100px; }
<ul clas="nav navbar-nav">
finkbeca sends brownie points to @tyler :sparkles: :thumbsup: :sparkles:
jinnd319 sends brownie points to @tylermoeller :sparkles: :thumbsup: :sparkles:
Here is my JS:
$(document).ready(function() {
$(".text-primary").addClass("animated bounce");
});
And HTML:
<h1 class="text-primary">Jean-Christophe Victor</h1>
mc00t sends brownie points to @larrygold :sparkles: :thumbsup: :sparkles:
brycemcdonald86 sends brownie points to @zovaaa :sparkles: :thumbsup: :sparkles:
event.preventDefault()right above your
search()call.
brycemcdonald86 sends brownie points to @tylermoeller :sparkles: :thumbsup: :sparkles: | https://gitter.im/FreeCodeCamp/HelpFrontEnd/archives/2016/12/29 | CC-MAIN-2021-10 | refinedweb | 2,983 | 55.74 |
from collections import deque def tarjan(g): """ Tarjan's algo for finding strongly connected components in a directed graph Uses two main attributes of each node to track reachability, the index of that node within a component(index), and the lowest index reachable from that node(lowlink). We then perform a dfs of the each component making sure to update these parameters for each node and saving the nodes we visit on the way. If ever we find that the lowest reachable node from a current node is equal to the index of the current node then it must be the root of a strongly connected component and so we save it and it's equireachable vertices as a strongly connected component. Complexity: strong_connect() is called at most once for each node and has a complexity of O(|E|) as it is DFS. Therefore this has complexity O(|V| + |E|) for a graph G = (V, E) """ n = len(g) stack = deque() on_stack = [False for _ in range(n)] index_of = [-1 for _ in range(n)] lowlink_of = index_of[:] def strong_connect(v, index, components): index_of[v] = index # the number when this node is seen lowlink_of[v] = index # lowest rank node reachable from here index += 1 stack.append(v) on_stack[v] = True for w in g[v]: if index_of[w] == -1: index = strong_connect(w, index, components) lowlink_of[v] = lowlink_of[w] if lowlink_of[w] < lowlink_of[v] else lowlink_of[v] elif on_stack[w]: lowlink_of[v] = lowlink_of[w] if lowlink_of[w] < lowlink_of[v] else lowlink_of[v] if lowlink_of[v] == index_of[v]: component = [] w = stack.pop() on_stack[w] = False component.append(w) while w != v: w = stack.pop() on_stack[w] = False component.append(w) components.append(component) return index components = [] for v in range(n): if index_of[v] == -1: strong_connect(v, 0, components) return components def create_graph(n, edges): g = [[] for _ in range(n)] for u, v in edges: g[u].append(v) return g if __name__ == '__main__': # Test n_vertices = 7 source = [0, 0, 1, 2, 3, 3, 4, 4, 6] target = [1, 3, 2, 0, 1, 4, 5, 6, 5] edges = [(u, v) for u, v in zip(source, target)] g = create_graph(n_vertices, edges) assert [[5], [6], [4], [3, 2, 1, 0]] == tarjan(g) | http://python.algorithmexamples.com/web/Graphs/tarjans_scc.html | CC-MAIN-2020-24 | refinedweb | 369 | 53.24 |
Print formatted output into a string
#include <stdio.h> int sprintf( char* buf, const char* format, ... );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The sprintf() function is similar to fprintf(), except that sprintf() places the generated output into the character array pointed to by buf, instead of writing it to a file. A null character is placed at the end of the generated character string.
The number of characters written into the array, not counting the terminating null character. An error can occur while converting a value for output. When an error occurs, errno indicates the type of error detected.
#include <stdio.h> #include <stdlib.h> /* Create temporary file names using a counter */ char namebuf[13]; int TempCount = 0; char* make_temp_name() { sprintf( namebuf, "ZZ%.6o.TMP", TempCount++ ); return( namebuf ); } int main( void ) { FILE* tf1,* tf2; tf1 = fopen( make_temp_name(), "w" ); tf2 = fopen( make_temp_name(), "w" ); fputs( "temp file 1", tf1 ); fputs( "temp file 2", tf2 ); fclose( tf1 ); fclose( tf2 ); return EXIT_SUCCESS; }
It's safe to call this function in a signal handler if the data isn't floating point. | http://www.qnx.com/developers/docs/7.0.0/com.qnx.doc.neutrino.lib_ref/topic/s/sprintf.html | CC-MAIN-2019-04 | refinedweb | 189 | 64.61 |
6 May 2013 12:43
Testers with sili(4) hardware needed
Francois Tigeot <ftigeot <at> wolfpond.org>
2013-05-06 10:43:52 GMT
2013-05-06 10:43:52 GMT
Hi, I'm trying to make sure the Silicon Image SATA chipsets can properly handle I/O requests of 256KB (their apparent theoretical limit). If you use this hardware, could you please apply the attached patch and report your findings ? Running this command as root will generate 256KB I/O requests: dd if=/dev/da0 of=/dev/null bs=1m count=10k I'm also interested if there is any issue in the course of regular operation. Thanks! -- -- Francois Tigeot
diff --git a/sys/cpu/i386/include/param.h b/sys/cpu/i386/include/param.h index d6547ce..2f48017 100644 --- a/sys/cpu/i386/include/param.h +++ b/sys/cpu/i386/include/param.h <at> <at> -121,7 +121,7 <at> <at> #define BLKDEV_IOSIZE PAGE_SIZE /* default block device I/O size */ #endif #define DFLTPHYS (64 * 1024) /* default max raw I/O transfer size */ -#define MAXPHYS (128 * 1024) /* max raw I/O transfer size */(Continue reading) | http://blog.gmane.org/gmane.os.dragonfly-bsd.kernel | CC-MAIN-2013-20 | refinedweb | 186 | 62.78 |
First post in the forum and i am a beginner as far as programming is concerned. The task is to read in a text file that has the size of the maze in the first line then maze follows. The out put im looking for is true that i did escape the maze but i am only seeing false or out of ArrayOutOfBoundsError when i am positive it is still inbound.
Any feedback is very much appreciated.
public class Maze { // public static char map[][]; public Maze(int row, int col, char map[][]) { Main.row = row; Main.col = col; Main.map = map; System.out.println(map[row][col]); } public boolean excape(int row, int col) { boolean exit = false; if(isValid(row, col)) { Main.map[row][col] = Main.WALL; if (row == Main.map.length-1 && col == Main.map[0].length-1) exit = true; //the maze is solved else { exit = excape(row+1, col); //down if (!exit) exit = excape(row, col+1); //right if (!exit) exit = excape(row-1, col); //up if (!exit) exit = excape(row, col-1); //left } } return exit; } public boolean isValid(int row, int col) { if(row <9 || col< 9 ) { } return true; } | http://www.javaprogrammingforums.com/whats-wrong-my-code/8553-maze-game.html | CC-MAIN-2014-35 | refinedweb | 192 | 69.18 |
This is a tutorial on Bootstrap Sampling in Python. In this tutorial, we will learn what is bootstrapping and then see how to implement it.
Let’s get started.
Table of Contents
What is Bootstrap Sampling?
The definition for bootstrap sampling is as follows :
In statistics, Bootstrap Sampling is a method that involves drawing of sample data repeatedly with replacement from a data source to estimate a population parameter.
This basically means that bootstrap sampling is a technique using which you can estimate parameters like mean for an entire population without explicitly considering each and every data point in the population.
Instead of looking at the entire population, we look at multiple subsets all of the same size taken from the population.
For example, if your population size is 1000. Then to find the mean, instead of considering all the 1000 entries you can take 50 samples of size 4 each and calculate the mean for each sample. This way you will be taking an average of 200 entries (50X4) chosen randomly.
A similar strategy is used by market researchers to carry out research in a huge population.
How to implement Bootstrap Sampling in Python?
Now let’s look at how to implement bootstrap sampling in python.
We will generate some random data with a predetermined mean. To do that we are going to use the NumPy module in Python.
Let’s start by importing the necessary modules.
1. Import the necessary modules.
The modules we need are :
- Numpy
- Random
To import these modules, use :
import numpy as np import random
In the next step, we need to generate some random data. Let’s do that using the Numpy module.
2. Generate Random Data
Let’s generate a normal distribution with a mean of 300 and with 1000 entries.
The code for that is given below:
x = np.random.normal(loc= 300.0, size=1000)
We can calculate the mean of this data using :
print (np.mean(x))
Output :
300.01293472373254
Note that this is the actual mean of the population.
3. Use Bootstrap Sampling to estimate the mean
Let’s create 50 samples of size 4 each to estimate the mean.
The code for doing that is :
sample_mean = [] for i in range(50): y = random.sample(x.tolist(), 4) avg = np.mean(y) sample_mean.append(avg)
The list sample_mean will contain the mean for all the 50 samples. For estimating the mean of the population we need to calculate the mean for sample_mean.
You can do that using :
print(np.mean(sample_mean))
Output :
300.07261467146867
Now if we run the code in this section again then we will get a different output. This is because each time we run the code, we will generate new samples. However, each time the output will be close to the actual mean (300).
On running the code in this section again, we get the following output :
299.99137705245636
Running it again, we get:
300.13411004148315
Complete code to Implement Bootstrap Sampling in Python
Here’s the complete code for this tutorial :
import numpy as np import random x = np.random.normal(loc= 300.0, size=1000) print(np.mean(x)) sample_mean = [] for i in range(50): y = random.sample(x.tolist(), 4) avg = np.mean(y) sample_mean.append(avg) print(np.mean(sample_mean))
Conclusion
This tutorial was about Bootstrap Sampling in Python. We learned how to estimate the mean of a population by creating smaller samples. This is very useful in the world of Machine Learning to avoid overfitting. Hope you had fun learning with us! | https://www.journaldev.com/45580/bootstrap-sampling-in-python | CC-MAIN-2021-21 | refinedweb | 593 | 67.35 |
Opened 13 months ago
Closed 12 months ago
#22737 closed New feature (needsinfo)
Ability to implicitly preappend current_app to reverse URL resolution.
Description
I want to be able to implicitly preappend the current_app as a namespace to some URL reverse-resolutions.
My suggestion would be that names starting with a colon ':' (e.g. empty string as first level namespace) implies current_app if present.
A very simple 2-line solution can be found on my github page
The question is if this breaches any philosophies of Django. There's no reason for me to create an elaborate patch including additional tests for this, if it's going to be cut down for political/design reasons. Therefore I am not ticking "has patch" just yet.
The possible use-cases for this is template reuse and making applications modular by simply splitting them up. (my use case covers both)
Change History (2)
comment:1 Changed 13 months ago by timo
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
comment:2 Changed 12 months ago by timo
- Resolution set to needsinfo
- Status changed from new to closed
Closing as "needs info" until the discussion happens.
Design decisions are usually made on the django-developers mailling list. I would post this idea there to get feedback. | https://code.djangoproject.com/ticket/22737 | CC-MAIN-2015-27 | refinedweb | 213 | 61.16 |
:
November 20,219
Related Items
Preceded by:
Lake City reporter and Columbia gazette
This item is only available as the following downloads:
( XML )
( PDF )
Full Text
WEATHER
Inside IOA
HLi: 73
Ch 0 0320, ****3-DIGIT 32
Ch( LIBRARY OF FL HISTORY
PO BOX 117007
GAINESVILLE FL 32611-7007
SLa w
Sunday, November 20, 2005
,/ 8 ALABAMA
.. 11 AUBURN
18
28
GEORGIA TECH 14
7 MIAMI
Sity
10
Jaguars vs.
Tennessee
Today @ 1 p.m.
Nashville, Tenn.
Natural History
Gainesville
museum offers .
excitement, fun. r
Life, ID
Reporter
Vol. 131, No. 257 N 75 cents
UNDERSTANDING THE MEDICARE CHANGES
ee
,~. 4 ~i~It
Local residents
find answers to
tough questions.
By LINDSAY DOWNEY
Idowney@lakecityreporter. corn
Juanita Hegenbarth
needed some answers. The
76-year-old Lake City resi-
dent said she did not know
much about Medicare's
new prescription plan
because she didn't receive
literature the agency
mailed out to customers.
She tried calling
Medicare several times on
the phone, but never could
get through. .
"'It's. h irrible."
Herenibarth said
" I've be.h-n thoroughly
c, - nfi.nifu d."
Hegenbarth was one of
dozens of seniors hoping
to get answers to Medicare
questions Friday at Baya
Pharmacy in Lake City.
As she waited to speak
with the pharmacist,
Hegenbarth expressed
frustration about rising
prescription drug costs.
She currently pays about
$330 per month for four
heart medications. One of
her prescriptions is Plavix,
which costs her $125
because it has no generic
counterpart.
Lake City resident Jack
Espenship, 66, also was
disheartened about the
price he pays for his med-
ication, Ambien, each
month.
'The last time I bought
it, it was about $80," he
said. "Eighty dollars for a
sleeping pill?"
Hegenbarth said he was
unsure whether the
-.- �'t Pro .,.r JENNIFER CHASTEENILake City Reporter
1 " "' ,-.ra[,r,,,: t,, S. MICHAEL MANLEYILake City Reporter
M^*� pharmacist said. "I feel like I'm going
would be able to to get help."
clear up her confusion Fort White resident
about the plan. When her Mary Wright, 57, said she
friend. Lola Dk'ickersn. 67. had a basic understanding
returned from speaking ot the new system, but'tshe
with him', however, she was worried it would
was more optimistic. require her to sign up for a
Dickcrson got all her prescription plan.
questions answered and "I just don't want it to be
signed up for a plan. shoved down my throat,"
"The premiums are
affordable," Dickerson ANSWERS continued on 7A
LINDSAY DOWNEY/Lake City Reporter
Lake City resident Jack Espenship (left), 66, asks Wayne
Wilson, Community Outreach Services Medicare Part D Plan
enroller, about Medicare's new prescription plan Friday
morning at Baya Pharmacy.
2 JENNIFER CHASTEEN/Lake City Reporter
Baya Pharmacy Owner Carl Allison fills a prescription at the pharmacy off
Baya Avenue.
Pharmacists
offer local
In-town assistai
available for the
who qualify for
By TROY ROBERTS
troberts@lakecityreporter.cor
Local pharmacists in
are attempting to hel
with the upcoming c
Medicare by helping
them choose which
plan is best for them.
'The new
Medicare plan has
been met with confu-
sion," said Carl
Allison, owner of
Baya Pharmacy. "They
just don't understand
coverage will be."
Allison said during tl
months he has done
research on the
to seniors
nce Medicare change and has
attended seminars about the
)se program.
aid. "The average person looking at
the different plans will likely be
overwhelmed by the amount of
It) options available to them," Allison
said.
Lake City Joel Rosenfeld, owner of North
lp seniors Florida Pharmacy, agrees the
changee to new program may be hard to
understand.
INSIDE "For a lay person, the
program can be very
a Overview of hew confusing," Rosenfeld
Medicare program, said. "For pharmacists,
7A it's easier for us to
understand, but can be
hard to explain."
generally Those interested can go online
what their to the official Medicare Web site
or call a toll-free number and
he past six speak with an operator.
* a lot of
upcoming LOCAL continued on 7A
Santa makes stop in Lake City
Children line up to
meet Saint Nick at
the mall Saturday.
By LINDSAY DOWNEY
Idowney@lakecityreporter. corn
Santa Claus came to town
Saturday.
Red-and-gold decorated
Christmas trees, glittering
packages and a white fire-
place adorned the center of
the Lake City" Mall as more
than a handful of children
lined up at 11 a.m. to have
their picture taken on Santa's
lap.
Lake City resident
Armando Garcia said his chil-
dren were thrilled to meet
Santa in person for the first
time.
"They spent all week
talking about it," Garcia said.
The Garcia children -
Arizayt, 8, and Jesus, 4 - col-
ored pictures for a Christmas
coloring contest as they
waited to talk to Santa.
"I really wanted to come
because I really wanted to
have 'Twister Moves,'"
Arizayt Garcia said, explain-
ing the game is a dance ver-
sion of the original Twister.
Seven-year-old Jessie
Powell visited Santa at the
mall for the second year in a
row.
"I told him I wanted a guitar
and a clubhouse," Jessie said.
Santa said children asked
for the "standard" Christmas
gifts this year.
"I've gotten a lot of
Gameboys, bicycles and
dolls," he said.
Shirley Davis said she
brings all seven of her
grandchildren to see Santa at
the mall. Saturday she had
4-year-old grandson Ricky
Shipley in tow.
"He wants everything
dinosaur," Davis said as Ricky
climbed onto Santa's lap.
When asked afterward if he
liked meeting Santa, Ricky
just nodded, but his excite-
ment was evident as he ran
circles around his grand-
mother and fell to the ground
laughing.
Fort White resident Cindy
Browning brought her
10-week-old son, Landon
Rhodes, to have his picture
taken with Santa to
commemorate his first
Christmas.
Browning said she remem-
bers sitting on Santa's lap
when she was a child and she
wants her son to have the
COURTESY DAVE W. KIMLERIFotographic.net
Ricky Shipley, 4, sat on Santa's
lap Saturday at the Lake City
Mall. Ricky's grandmother,
Shirley Davis, said her grandson
asked for dinosaur toys for
SANIA continued on bA Christmas.
Festival of Lights
returns Saturday
Marion Street at
U.S. 90 will be
closed at 9 a.m.
By LINDA YOUNG
lyoung@lakecityreporter.comn
The 24th annual Festival of
Lights is only days away and
already downtown is being
decorated with lights that will
be turned on at dusk on
Nov. 26 as part of the 12-hour
festival that begins at 9 a.m.
Marion Street will be
closed for the event from the
corner of U.S. 90 and North
Marion Avenue to
Hillsborough Street.
There will be
approximately 50 booths
selling handcrafted items -
arts and crafts - and food,
and the Downtown Action
Committee (DAC) will have a
booth to collect items to ship
to the 153rd National Guard
Unit from Lake City, said
Harvey Campbell, vice chair-
man of the Downtown Action
Committee (DAC).
DAC is sponsoring the
event, which includes live
entertainment in the Gazebo.
"Everything is free. We
work with the City of Lake
City, their public works crew
helps us with putting up dec-
orations," Campbell said.
"It's pretty," Campbell said.
"Our downtown is pretty spe-
cial during the Christmas
FESTIVAL continued on 6A
1 CALLUS: INSIDE
(386) 752-1293
THE REPORTER: Classified . ......... . ... . 5C Opinion ......... ...... . 4A
Voice: 755-5445 Life .................... IC Puzzles ................ 4B
1 4264 00021 8 Fax: 754-9400 Local & State ............ 3A Community Calender ..... 5A
TODAY IN COMING
BUSINESS TUESDAY
Revitalizing Toy drive under way for
downtown Lake City I C underprivileged children.
- - -- - I-- ) - - - C
7., �04
All
Friday: Friday: Saturday: Saturday: Saturday: Saturday:
10-34-38-39 1 3-5-9-12-32 5-6-0 8-9-1-8 1-16-25-31-35 5-10-27-44-45-50
AROUND FLORIDA
Tropical Storm lingers off Central America
ASSOCIATED PRESS
This satellite photo provided by NOAA on Saturday shows Tropical Storm Gamma off the coast of
Central America. Gamma - the 24th storm of the busiest hurricane season on record - formed
Friday off the coast of Central America, and forecasters said it could threaten Florida.
By CURT ANDERSON
Associated Press
MIAMI - Tropical Storm
Gamma lingered Saturday off
the coast of Central America,
with forecasts indicating it
could threaten storm-weary
Florida by the beginning of
next week - possibly even as
a hurricane.
'There is certainly a poten-
tial dis-
sipate before crossing the
Gulf of Mexico toward the
east.
Tropical storm warnings
were issued fore-
cast for parts of Honduras,
with 12 inches possible in
some spots.
The long-term track from
the National Hurricane
Center indicated that Gamma
may take a track similar to
Wilma's and head northeast
toward the Florida Peninsula.
Wilma tore across the south-
ern portion of the state from
west to east on Oct. 24, caus-
ing widespread damage,
21 deaths and power outages.
The initial forecast called
for Gamma to remain a tropi-
cal storm as it approached
Florida, with the possibility it
may become a Category 1
hurricane with winds of at
least 74 mph. Forecasters also
said some computer models
indicated Gamma could dissi-
pate because of wind shear in
the upper atmosphere.
"Right now, the forecast is
highly uncertain," Knabb
said.
By 7 a.m. EST Saturday,
Gamma's maximum sustained
winds were near 45 mph and
it was located about 130 miles
east-southeast of Belize City,
Belize, and 230 miles south-
southeast of Tulum, Mexico.
It was :moving north-
northwest at about 6 mph.
Gamma is the 24th named
storm of the busiest Atlantic
hurricane season on record.
There have been 13 hurri-
canes this year, another
record.
Florida has been pummeled
by eight hurricanes and three
tropical storms in the past
15 months, according to state
officials. Insured losses from
this year's storms are estimat-
ed at more than $10 billion in
Florida, according to the state
Department of Financial
Services
MacDill Air Force Base
cancels spring airshow
Associated Press
TAMPA - The command-
er of MacDill Air Force Base
has canceled next spring's air
show, citing security concerns
and busy operations.
Air Force Col. Maggie
Woodward said in a statement
Friday that no specific threat
prompted the move. She said
it would simply require too
much energy and resources to
properly protect the nearly
6,000-acre facility.
"As the leadership of the
base weighed the pros and
cons of having the airshow,
our security situation and the
incredible tempo our folks
have been maintaining for
over'a year led us to decide
that it was too much to ask of
the troops to have an airshow
in 2006," Woodward said.
Air Fest, which alternately
is headlined by the Air Force's
Thunderbirds and the Navy's
Blue Angels, drew 350,000
people in 2005 and half a
million visitors in 2004.
The event did not take place
for two years after the Sept. 11
attacks, ending a 15-year run.
ASSOCIATED PRESS
Precious
moment
Precious Oliver, 3, has her
right hand held by her dad
Roland Oliver, and her left
hand held by Judge Katherine
Essrig as they pose for a
picture after Precious'
adoption was approved, one
of more than 50 adoptions
three judges finalized in
recognition of National
Adoption Day, on Friday, at
the Hillsborough County
Courthouse in Tampa.
PEOPLE IN THE NEWS
Christina Aguilera to tie the knot
Christina Aguilera has found out
what a girl wants, and now she's
marrying him.
Wedding festivities for the pop singer
and fiancee Jordan Bratman began
Thursday in northern California's Napa
Valley, People magazine reported
Saturday on its Web site.
Aguilera, 24, found her Christian
Lacroix dress during Paris Fashion
Week, and the couple were set to
exchange wedding bands designed by
London jeweler Stephen Webster, the
Ring tone will
support Red Cross
STOCKHOLM, Sweden -
magazine said.
Bratman, a 28-year-old music
executive, proposed to Aguilera in
February while on vacation in Carmel,
Calif. Their hotel room was filled with
rose petals, balloons and gift boxes, and
each had a present and poem.
"When I got to the last box, there
was a ring in it," Aguilera told the
magazine. "He got down on one knee
and said "Will you do me the honor of
being my wife?' I've been floating ever
since.".
Music Awards offer
unique door prize
NEWYORK- Stars
appearing at Tuesday's
American Music Awards will
depart with a piece of the moon.
Lindsay Lohan, Will Smith,
Missy Elliot and the dozens of
other entertainers who are
either presenting or performing
at the award show will each be
given a gift basket that contains
Celebrity Birthdays
* Actress Evelyn Keyes is
86.
* Actress-comedian Kaye
Ballard is 80.
* Actress Estelle Parsons is
78.
M TV personality Richard
Dawson is 73.
* Comedian Dick Smothers
is 67.
* Actress Veronica Hamel is
62.
* Actor Samuel E. Wright is
59.
* Singer Joe Walsh is 58.
Christina Aguilera says it
plans to have the first private
mission to the moon, thereby
allowing it to create a Moon
government and secure land
rights - or so it claims. Steve
Stein of Hollywood
Connections, though,
acknowledges the gift is more
for fun than anything.
Golfer Daly to host
own reality show
NEW YORK - Professional
golfer John Daly is joining,
Paris Hilton, Ozzy Osbourne
and Donald Trump in the
world of reality TV.
Daly will star in "The Daly
Planet," a 13-part series for
The Golf Channel beginning
Jan. 18. The weekly
Wednesday night episodes will
follow Daly's daily life on and
off the golf course.
The long-hitting, 39-year-old
Daly has for years been one of
the most popular golfers on the
PGA tour. A two-time major
championship winner, Daly
has also battled problems with
alcohol, weight and his temper.
* Associated Press
Thought for Today
*.
"Make haste slowly."
- Caesar Augustus,,
Roman emperor (63 B.C.-A.D. 14).
MEET YOUR REPORTER
Tony Britt
Lake City, Staff Reporter
* Age: 37
* Family: Happily married
11 years to Jackie Britt, one
son, Anthony Britt Jr., 9.
* Favorite pastimes:
Fishing, fishing, more fishing.
* What do you like most
about your town: "I like this
town because of all the
fishing opportunities."
* Who is your hero or
inspiration, and why?:
"Professional anglers,
because they get paid to
fish. My motto is 'Fish and
let fish.'"
Sales ................... . 752-1293
(ads@lakecityreporter.com)
.'.Toy B t
Tony Britt
Meet Your Reporter is a
Sunday feature of the Lake City
Reporter. We interview our staff
so you, the readers, can get to
know us better.
If you'd like to recommend a
neighbor, call Jennifer Chasteen
at 754-0430.
Reporter
CLASSED
To place a classified ad, call 755-5440.
Controller Sue Brannon .......754-0419
(sbrannon@lakecityreporter.com)
CIRCUL: Joseph DeAngelis, 754-0424
SUNDAY, NOVEMBER 20, 2005
LAK CTYREORERSUN DAY REPORT
Page Editor: Chris Bednar, 754-0404 LAKE CITY REPORTER LOCAL & STATE SUNDAY, NOVEMBER 20, 2005
Council to consider
four items Monday
By LINDA YOUNG
lyoung@lakecityreporter.com
Lake City Council will
have its Monday meeting at
6:30 p.m., instead of 7:30
p.m., and will consider
making the change in meet-
ing time permanent.
The council will hear the
final read of an ordinance to
approve an amendment to
the final budget for fiscal
year 2005.
Also on the agenda is a
first read of an ordinance to
amend the pension and
retirement plan for general
employees of Lake City.
Under the proposed plan,
eligible city employees have
a choice of remaining in the
city retirement plan or par-
ticipating in the Florida
retirement system.
The council will also
consider four resolutions:
* A $10,000 grant from
the State of Florida,
Department of Community
Affairs (DCA) for technical
assistance funding to help
the city comply with new
planning requirements. The
requirements are to comply
with Senate Bill No. 360, an
amendment to Florida's
Growth Management Act.
* To enter into an
agreement with the Florida
Department of
Transportation (FDOT) to
construct, maintain and
operate a Global Positioning
System (GPS) Reference
Station at the Lake City
Municipal Airport.
* To request FDOT to
place signs in areas that are
either on or adjacent to
right-of-way maintained by
FDOT. This is in downtown
Lake City for the placement
of new signs in conjunction
with the new parking
regulations.
* To authorize the city to
hire Tetra Tech Hai to pro-
vide engineering services.
This is in connection with
construction of 6,000 feet of
36-inch ductile iron-finished
water main to be installed
between the Water
Treatment Plant and State
Road 100.
City Council will also have
a workshop at 5:30 p.m.
before the council meeting.
Items that council members
will discuss include changes
to awarding bids.
The changes to bids that
council is considering are
broken down into categories
that include bids of more
than $20,000, bids of less
than $1,000 and bids
between $1,000 and $8,000.
City Council will have its
Dec. 5 meeting at 5:30 p.m.
(because of the Christmas
Parade) and its Dec. 19
meeting at 6:30 p.m.
School board meeting
to select new members
By TONY BRITT
tbritt@lakecityreporter.com
The Columbia School
District will select a new
board chairman and vice
chairman at its meeting next
week.
The decision will be made
by school board members
through an election among
themselves during-' the,
school board's annual.
reorganization meeting,
6:30 p.m. Tuesday, at the
Columbia County School
Board Administrative
Complex Auditorium, 372 W.
Duval St.
During the meeting the
school board will elect its
chairman and vice chairman
for the upcoming year, in
addition to setting school
board meeting times and
locations for the upcoming
year. The board is also
expected to schedule one
meeting per semester at Fort
Two plead
not guilty
in beating
Associated Press
JACKSONVILLE - Two of
five men accused in the beat-
ing death of a 23-year-old
University of Florida student
after a football game have
pleaded not guilty.
Alex Canzano and Jeremy
Lane, both 21 and of
Jacksonville, pleaded not
guilty to second-degree mur-
der Friday. Mark Foss, 18, of
Jacksonville, was also
charged, but he did not attend
the arraignment because he
was in the hospital, Circuit
Judge John H. Skinner said.
Skinner did not elaborate, and
Foss' attorney refused to
comment.
Two other 19-year-old men
from Jacksonville are also
accused in the death, but were
not formally charged Friday.
Police say surveillance
video shows Thomas Oliver
Brown, 23, was held down by
three men and beaten by two
others on the night of Oct. 29
after the annual Florida-
Georgia game in Jacksonville.
The tape has not been made
public.
The men remain in the
Duval County jail without
bond.
White Elementary School
and Fort White High School.
For the past year, Steve
Nelson has served as the
board chairman. He was
selected to chair school
board meetings after serving
two years on .the school
board. He was the vice chair-
,man the second year and
..served as the chairman the
third year of his first-term as
a school board member.
"It's been an enjoyable
12 months and I've enjoyed
working with the other
board members and learning
from their experiences," he
said. "I'm looking forward to
helping out the new board
chair and continuing the
work that we began."
Following the reorganiza-
tion meeting, the school
board will'take a brief recess
and then begin its regularly
scheduled meeting at 7 p.m.
S 'n ,.r..n S[r,.c i
n HI i-[-.ri, [ . . n .' r i
The peaceful Ocala National
Forest has a darker past
By JIM TUNSTALL
The Tampa Tribune
OCAIA - To locals, it's
simply The Forest.
To the rest of us, it's a
sprawling wilderness where
the Seminoles battled presi-
dent-to-be Andrew Jackson's
boys and where, at nearby
Silver Springs, actor Johnny
Weissmuller honed his Tarzan
yell.
More recently, the Ocala
National Forest has become a
haven for escape artists look-
ing to get lost in some of
Florida's storied past. Those
who come can count on mem-
ories.
Then there is a burg named
for its booze.
The moonshiners are gone.
But Scrambletown is still
with us.
It's a state of mind with a
dozen or so houses, a church,
a junkyard and a general store
ASSOCIATED PRESS
The Fort Gates Ferry makes its way across the St. Johns River just south of Lake Little George in
Crescent City, on Nov. 3..
. "My uncle had a brand new
car and all of a sudden it disap-
peared. He said that it slipped
into the creek. But we knew he
made moonshine whiskey.
And the revenues got that
car."
Several miles north, you can
hitch a ride and save some
time on the Fort Gates Ferry.
Ifs an almost comical con-
traption.
Imagine a 59-year-old metal
barge big enough to hold four
midsize cars or 27 motorcy-
cles,.
Florida man admits selling false credits to teachers
Associated Press
MIAMI- A former high
school teacher accused ,of
operating a company that
offered teacher certifications
without proper training,
including some through an
Ohio college, has agreed to
serve two years in prison as
part of a plea agreement with
prosecutors. ' :
William McCoggle, 73,
pleaded guilty to a fraud
charge in Miami-Dade County
Circuit Court. He will also pay
up to $100,000 in restitution.
In court Friday, he
apologized and promised to
cooperate with investigators.
Prosecutors have said
McCoggle collected more
than $250,000 while running
Move On Toward Education
and Training, a program they
called a diploma mill.
A Florida grand jury found
no evidence of teachers attend-
ing classes, completing assign-
ments or meeting with
all., RIu. LI uu
9am-?
Over
40 Vendors
* All Day Entertainment *
* Food * ,
* Kids Activities
Santa Arrives at 6:00 p.m. ' you have high blood ! k
pressure, thyroid
problems, diabetes, or
high cholesterol, help
yourself now!
Call today for YOUR
Free Consultation
719-8888
Weigle WeihtOoss
instructors. The credits given
to teachers, many in the
Miami-Dade area, allowed
them to bump up' their
salaries, teach new courses or
meet Florida's continuing
education requirements.
The program offered certifi-
cation courses in such subjects
as driver's education and phys-
ical education. Several Miami-
Dade County Public Schools
teachers who received their
training through the program
were pulled from such classes
shortly before the school year
began.
Otterbein College, which
has about 3,000 students in
suburban Columbus, revoked
nearly 10,000 credits given to
657 teachers through the
program. It was one of five
2006 CLASSES
Apply & Register
NOW
Nov.15- Dec,16
Prepare for exciting CAREERS
or University Transfer
NEW OFFERINGS in
Academy of Teacher
Preparation Programs
and
Fast-Track LPN to RN
Bridge Program
For more information call
(386) 754-4287
wwwlakecityccedu
' ,'i:,,' r . n f l - , ,'E. u il
LAKE CITY
[ MMII NIY CH LEEI[
schools that prosecutors say
provided the course credits.
The program split tuition
money with the colleges.
Otterbein officials said the
school will donate the $89,000
it received to a Florida charity.
Otterbein officials have said
Dan Thompson, a former asso-
ciate dean for academic affairs
who administered the
program at Otterbein, did not
follow guidelines in regulating
the school's involvement and
did not seek proper approval
for the program. Thompson
died of a heart attack in
March.
The college was first linked
with the now disbanded
Florida program in 1996.
Thompson renewed the
program in 1999, and the
college continued issuing,
credits through 2002.
Under the plea agreement,
McCoggle ill1 have to serve
10 years in prison if lie fails to
tell prosecutors all he knows
or does not provide all the
documents pertaining to the
organization.
1ELD A Taste of the Holidays
Monday-Friday
Stop by and taste test our favorite
beverages * Jellies * Dips * Relishes
Pepper Jellies * Cheese Balls
Savannah Cinnamon & Hot Apple Cider
GIANT GINGERBREAD HOUSE GIVEAWAY
Stop by for details
Classy Baskets & Gifts
280SW Main Blvd. * 752-4636
Mon.-Fri. 10-5 & Sat. 10-2
Plus...All Christmas Decor and
Red Hat Apparel 25% off
Jo Lytte, Realtor
A RNIELCRA"
Shammi Bali, M.D.
Internal Medicine, Board Certified
Is pleased to announce the
LAK CTYREORERLOCAL & STATE SNANVME 020
Page Editor: Chris Bednar, 754-0404
rt
OPINION
Sunday, November 20, 2005
ED I'TO R I A L
Medicare
plan has
pros, cons
Medicare system is
bittersweet for many people
who rely on the program for
the quality of their
day-to-day lives.
The addition of a prescription-drug-
assistance program marks "progress,"
according to the government
construction crew that designed the
system.
Recipients who rely on the
health care
insurance Confusing times
coverage
provided by * The best advice is
Medicare
long have to contact
begged for Medicare or your
assistance pharmacist to
with better understand
prescription
drug the changes.
expenses.
Now, with the new prescription plan
about to launch, the Medicare patient
crowd is conscious that maybe they
should have been careful about asking
for help.
The program could be a quagmire; it
could be beneficial.
Like it or not, ready or not, it
launches in January. Between now and
then, there will be much discussion
between pharmacists who are
scrambling through seminars and
literature to make sure they understand
the new program, while at the same
time Medicare patients are scrambling
to obtain information and
understanding about what the
long-awaited prescription-drug program
will provide.
Everyone speaks positively of now
having a prescription-drug-assistance
card; the same people also express
concerns that any new federal program
will have numerous flaws that must be
worked out.
Sadly, there will be people who fall
through the cracks, but many others
will get financial assistance with their
prescriptions and this is a positive factor
that will improve the quality of life for
many.
HIGHLIGHTS
IN HISTORY
Today is Sunday, Nov. 20, the 324th
day of 2005. There are 41 days left in
the year.
E On Nov. 20, 1947, Britain's future
queen, Princess Elizabeth, married Philip
Mountbatten, Duke of Edinburgh, in a
ceremony broadcast worldwide from
Westminster Abbey.
* In 1789, New Jersey became the first
state to ratify the Bill of Rights.-ia I'
THE T,,4ES-PICAYUN2
()z0 0 5
IT'S TIME FOR
AN EXPLANATION
OF YOUR IRAQ
STRATEGY
/ --1^ .f--. ',
9-.-
n 1913, Columbia
County's prospective
teachers had to take and
pass a state test to receive
a teacher's license. The
10-part test was given over five
days, two parts each day. Each
part was worth 100 points and
to receive a "First Grade
License" (the license that enti-
tiled you to teach any grade),
you had to average 85 percent
on the whole test and score at
least 60 percent in every area.
You studied for the test by
buying the textbooks on which
each, part was based.
Agriculture, for example, used
John Frederick Duggar's
"Agriculture for Southern
Schools" (75 cents a copy);
algebra used Milne's "High
School Algebra" ($1 a copy).
The subjects tested were
orthography (the study of
correct spelling) and reading,
English grammar, arithmetic,
composition, geography,
history, agriculture, teaching
theory and practice, civil
government and algebra.
The test was serious
business. "Every examinee
must supply himself with
cap-paper, must write in a
legible hand with pen and ink,
must work in full view of other
examinees, must number or
letter answers to agree with
questions, and must fasten all
sheets together on the same
subject," the instructions said.
Think these were easy tests?
Here are some sample
questions:
* Agriculture. Why do
budding and grafting bring
fruit truer to the parent stock
than a tree grown from the
seed will bring? (10 Points).
Also, name five rules for
selecting good seed corn.
(10 points).
* Algebra. Factor the
following: 2ax + 2ay-
2az+2bx+2by-2bz. (4 points).
Also, from two places, distance
720 miles, "A" and "B" set out
LETTER
Heroes can be found
in heat of recovery
Dear Editor:
I recently visited Bay St.
Louis, Miss., as a volunteer
Hurricane Katrina relief
worker. I attached myself to a
family who had suffered a
great loss to the hurricane.
Their once beautiful home
and possessions were ruined
and buried in heavy, stinking
wet mud. Jeff and Tammy
Brownsberger had built a fine
two-story home over an old
single-story fish camp.
He is a builder by trade and
with his own design, utilizing
heavy timbers and massive
concrete footers, the house
and large garage withstood
the explosive tidal surge
which flooded the home with
18-feet of muddy salt water.
Even the vinyl siding was
fastened so tightly it was
almost perfectly intact. They
invested everything in their
effort. It was almost perfectly
intact, but they had no money
left to purchase insurance.
I - . -* V- kaa
Morris Williams
Phone: (386) 755-8183
williamsh2@fim.edu
to meet each other. "A" trav-
eled 12 miles a day more than
"B" and the number of days
before they met was equal to
one-half the number of miles
"B" went per day. How many
miles did each travel per day?
(15 points).
E Civil Government. State
the most important function.0of
any government and tell why.
(10 points). Also, give five
important events that led to the
'formation of the United States
and explain the'importance of
each event. (10 points).
* Geography. Name three
states of the United States most
productive in each of the
following: Copper, silver, wool,
sugar and wheat. (2 points
each).
* Teaching Theory and
Practice. (From White's
"Elements of Pedagogy").
Define psychology and give five
reasons why a knowledge of
psychology is helpful to a
teacher. (10 points)
* Composition. Explain the
basis of vigor of thought and
give the qualities of words
necessary to produce vigor in
writing; illustrate by comparing
examples in Lincoln's
Gettysburg Address and
Webster's Bunker Hill
Monument speech.
(10 points).
* U.S. History. State what
led to the Missouri
Compromise and give three
provisions of the Compromise.
If you passed the test and got
your teacher's license, your
scores on each of the tests
TO THE EDITOR
Their home was one of only
two on Good Street that
appeared to be salvageable.
I had brought my front-end
loader tractor and volunteered
throughout the neighborhood.
There were a few other
volunteers who labored with
us. H. Quinn from Minnesota
suffered a rupture and Jimmy
Cado from Waveland had a
heart attack from the heat and
exertion.
The heat and disorder,
combined with inedible Red
Cross food and lack of sleep,
sometimes caused angry, ugly
conflicts with the Army and
police who we begged for help.
So after a week in the mud
and heat, I am standing
exhausted at the end of the
day sharing a beer in the
middle of the street when a
Florida Highway Patrol.
cruiser rounds the corner. We
tossed the beer, but too late,
I'm sure.
It was Charlie Caulk, he
eyed me suspiciously. I'm sure
I looked like a looter or worse,
but Charlie listened to me and
asked what we needed.
I'D L'd
TO HEREIEAR
O1NL .
were printed on your teacher's
license for all to see.
Clearly the teachers of 1913
had to be well versed in many
content areas before they could
stand in front of a classroom.
Some local teachers who did
well on the test in their first try
were J. W. Burns, Annie Lou
McClinton, Lucy Simpson,
George Graham, Janie
Herlong, Pearl McDaniel, R.O.
Williams, Ruth Tolbert, Leila
Farnell, Jessie Montague, Lulu
Andrews and Grace Hemming.
Guess who?
Speaking of education, can
you use these clues to identify
this prominent education-
minded Lake City man who
died in 1990 at, age 75? He
taught school in Jasper, where
he met his wife and they were
married 51 years. He also ,
taught vocational agriculture at
CHS, founded a local real
estate office with his wife,
Virginia, and served in the
Florida House and Senate. He
helped pass bills that created
Florida's junior college system,
the UF veterinary school, and
the Ichetucknee State Park. He
served as president of the Lake
City Board of Realtors, as a
trustee at LCCC and the
Stephen Foster Memorial, and
as founding director of the
Council on Aging. He was
known as a man of, by, and for
the people - and to his friends
as just "Bish." Answer: W.
Emerson Bishop.
Pastor's humor
Rev. Al Donovan of Siloam
United Methodist Church said
"he once heard of a man who
said, "A Christian man believes
in having only one wife and this
practice is called monotony!"
* Morris Williams is a local
historian and long-time Columbia
County resident.
I told him we were getting a
lot of blisters and scratches
and we were out of
disinfectant and sterile
dressings. I also told him
there were four children
sleeping in a tent nearby; their
mother gone to work all night
and she asked me to watch out
for them. '
I told Charlie that I feared
one of these children was
going to suffer a serious
injury. Charlie left and spoke
with the children .and
reassured them.
I told Charlie to "Go help
someone else, I will go for
medical supplies tomorrow."
But an hour later Charlie
returned with disinfectant, a
syringe to flush wounds, sterile
dressings and a wash pan.
Charlie Caulk was only one
of many officials who I
encountered in Bay St. Louis,
but he was by far the most
compassionate and
professional.
Thank God we have men
like Charlie Caulk!
Rick Hawthorne
Kirbyville, Texas
words, between
Nov. 1 and Nov.
30.
This has
been going on
for a while - it
started in 1999,
in Oakland,
Calif., with 21
writers and six
Linda Seebach
winners who rockymountainnews.com
passed the
50,000-word
finish line - but I hadn't heard about it,
probably because I don't aspire to write fiction.
Chris Baty, in his history of NaNo, says they
hadn't expected it to be so much fun. "Fun was
a revelation," he says. "Novel-writing, we had
discovered, was just like watching TV. You get
a bunch of friends together, load up on
caffeine and junk food, and stare at a glowing
screen for a couple hours. And a story spins
itself out in front of you."
More than that, "We had taken the
cloistered, agoniized novel-writing process and
transformed it into something that was half
literary marathon and half block party."
Marathon, indeed. Last year, 42,000 people
signed up for NaNo, and nearly 6,000 of them
finished their books.
The first marathon, the news carried by
Pheidippides of the Greek victory over the
Persians at the battle of the same name,
passed into legend. Well, actually the myth
was probably cobbled together several
centuries later from a few randomly assorted
facts, but never mind; we have remembered it
for nearly 2,500 years, even if we have
remembered it wrong.
Now, running marathons is recreation for
the masses, so much so that thousands of
people compete for spaces in some of the
largest and most celebrated races.
Pheidippides, if he ever existed, would be
amazed.
A few people have actually sold their NaNo
novels to real publishers, just as somebody
actually wins the Boston Marathon. But for
most runners it is finishing the marathon that
changes their lives. NaNo writers "started the
month as auto mechanics, out-of-work actors,
and middle school English teachers. They
walked away novelists," NaNo says.
I heard about NaNo from my daughter-in-
law, Jesse. He (Jesse is transgendered and
prefers masculine'pronouns, just so you know
there's no need to write and tell me that I'm
getting them wrong) started a novel called
"Summerlands" in October. So it doesn't
qualify for NaNo, but as a gesture of solidarity
he's keeping track of words in November,
almost 15,000 in three posts (index post, for all
12 parts as of Friday, is
www. livejournal. com/users/gomichan/185409.
html).
If you wonder whether anything written so
fast can be readable, oh, yes indeed. I love
"Summerlands," even though it's not one of
my usual genres and I looked at the first
couple of episodes only out of curiosity.
Quantity over quality, as a deliberate tactic,
lets writers try things they wouldn't otherwise
risk.
"If I were trying to do it /well/," Jesse wrote
me in an e-mail, "I'd absolutely freeze up and
never get anywhere."
Summerlands is an alternative world,
relationship to Earth left unexplained, where
humans are a subordinate species, mostly
enslaved and scarcely better than livestock.
Truebloods, the dominant race, who cannot.
tolerate iron in any form, call them Children of
Iron.
Readers enjoy exchanging comments with
the author as his novel happens, and this
social aspect is a big part of NaNo's success,
too. It has local in-person meetings, participant
forums, radio broadcasts, projects to build
children's libraries in Laos and a host of other
community-building events.
Oh, and as of Friday morning 382,447,591
total collective words written and filed. Now
there's mass media for you.
4A
C M M E N TARY
Florida teacher tests of 1913
COMMENTARY
Literary
marathon
takes fun,
runs with it
Encountering a whole new world of
people intensely engaged in some
activity I've never given much
thought to, and getting to tell
readers about it, is one of the
nicest benefits of writing a column. When they
are people helping each other meet the
challenge of realizing a long-held ambition, so
much the better.
I am therefore very pleased to tell those of
you who don't already know that November is
National Novel Writing Month. It's a Web-
based effort () for
people who have always longed to write a
novel. Participants sign up by pledging to
write a complete novel, of at least 50,000
CKLTif
LAKE CITY REPORTER LOCAL & STATE SUNDAY, NOVEMBER 20, 2005
B. FLORIDA DEPT. OF TRANSPORTATION
ROAD REPORT
The following is a list of
roadwork underway by the
FDOT that may impact traffic:
ALACHUA COUNTY
* Southwest Second
Avenue (State Road 26A):
One lane will be closed Sunday
beginning at noon between
Southwest 28th and 34th
streets (by Publix) to allow the
placement of underground
drainage pipes across the
roadway. Traffic remains shifted
from just east of Southwest
34th Street by Publix to
Southwest 28th Street for
drainage modifications and
roadway widening. Dump
trucks are entering and leaving
a retention pond site behind
Publix. Bicyclists and
pedestrians just east of
Southwest 34th Street are
temporarily detoured to
University Avenue. Motorists
should use caution when
approaching Southwest 36th
Street and the entrance to the
Creekside Mall as crews work
on drainage and median
islands in the area. The
Hogtown Creek Bridge is
scheduled to be closed to all
traffic beginning Nov. 29 until
May 6, 2006.
* State Road 20
(Hawthorne Road): The
overpass at U.S. 301 will be
closed sometime during the
week between 9 a.m. and
4:30 p.m. so crews can place
asphalt on the new overpass.
All traffic will be diverted to the
ramps and across U.S. 301
using the traffic signals.
* Southwest Williston
Road (State Road 331):
Daytime lane closures for
eastbound traffic between
Southwest 34th Street and
Southwest 13th Street for utility
work in preparation for the
resurfacing which is scheduled
to begin in December.
* Southwest 13th Street
(U.S. 441): Daytime lane
closures for southbound traffic
between Southwest 16th
Avenue and Southwest 14th
Drive as crews work on curb,
sidewalk and concrete
driveways.
* Newberry Road (State
Road 26): Daytime lane
closures between Northwest
80th Boulevard and Northwest
109th Street as crews work on
the medians in preparation for
the resurfacing of the roadway
which is scheduled to begin
after Thanksgiving.,
COLUMBIA COUNTY
* State Road 47: Bascom
Norris Road to U.S. 41. All
businesses have access from
side streets. Motorists should
also watch for dump trucks
entering and leaving the
roadway from south of Bascom
Norris Drive to north of 1-75.
Also, motorists should watch
out for construction traffic on
the newly paved lanes on the
west side of the existing lanes
as they are approaching
State Road 47. Wide loads are
still prohibited from Bascom
Norris Drive to south of County
Road 242 due to the restricted
width of the travel lanes from
the barrier wall. The traffic
between Business Point Drive
and Bascom Norris Drive is
tentatively scheduled to be
switched to the west side of the
road before Christmas.
* U.S. 90: Daytime lane
closures on Monday and
Tuesday at the signalized
intersections of Sisters
Welcome Road and
Ridgewood Drive to hang the
mast arm poles for the new
traffic signals. Resurfacing is
scheduled to begin in early
January.
HAMILTON COUNTY
* U.S. 41: Workers are
building a sidewalk alongside
the roadway in White Springs
from the spring house curve
near the Library to the north
city limits. There should be no
impacts to motorists.
(Note: All FDOT construction
projects will be suspended for
the Thanksgiving holiday
period from Wednesday,
Nov. 23 through Sunday,
Nov. 27. Work will resume on
Monday, Nov. 28. FDOT, a
state government agency, will
be closed on Thursday, Nov. 24
and Friday, Nov. 25, in
observance of Thanksgiving.)
Former Aristide security chief
sentenced in cocaine operation
Associated Press
MIAMI - The former secu-
rity had
top government and
private jobs during the
Aristide administration.
Jean headed Aristide's
palace security unit from
2001 to 2003 and was arrested
March 10 after flying from the
Dominican Republic to
Toronto on a valid Canadian
visa. Aristide flew into exile
Feb. 29.
Other Haitian police
officials who previously plead-
ed guilty are Jean Nesly
Lucien, the former national
police director; Rudy
Therassan, a former police
commander; and Romaine
'rSITE PREP
U B: J L Dupree
Construction, Inc.
- ..j/ Commercial
or Residential
Rural Construction * Paving * Culverts
Utilities * Demolition Also
Quality Construction From Start to Finish,
Your Plan or Our Plan, Our Lot or Your's.
J L Dupree
Construction, Inc.
386-754-5678
U-----
Lestin, former police chief at
the Port-au-Prince airport.
Therassan was sentenced in
July to 15 years in prison,
while the other two are
awaiting sentencing later this
year.
Evintz Brillant, a former
senior Haitian police official,
was acquitted Oct. 7 of
charges he took bribes to help
Colombian drug traffickers
move tons of cocaine through
Haiti.
Aristide, who was forced
out under U.S. pressure in
February 2004 and is living in
exile in South Africa, has not
been charged or directly
implicated in drug trafficking.
Gljria Sp, r
,..- r,, ,
COMMUNITY
CALENDAR
Coming up
Cancer support group
to meet Tuesday
The American Cancer Society
and the Community Cancer
Center of Lake City are
co-sponsoring a breast cancer
support group. The first meeting
of this group will be held from
10 a.m.-noon on Tuesday at the
Colombia County Public Library,
308 NW Columbia Avenue,
Lake City.
All those who have personal
experience with breast cancer
and those who have concerns
or questions about breast
cancer are invited to attend.
For more information, call the
Community Cancer Center of
Lake City at 755-0601 or Joan
Restall at 755-0522.
Festival of lights
coming Saturday
The annual Festival of Lights
is coming Saturday to
downtown Lake City. The
Downtown Action Corporation
seeks to revitalize the bazaar
aspect of the festival.
Also, singers, dancers,
musicians and other groups are
asked to contact Denise
Hingson as soon as possible at
288-2750.
For more information, call
752-5200, 10 a.m.-6 p.m.
Monday through Saturday,.orq.
Red Hat Society plans
Mall Invasion
The Red Whiners - the local
chapter of the Red Hat Society
- will have a meet and greet
on the first Thursday of every
month.
hjnr, Sp .I,'
The Mall Invasion is
scheduled for 10:30 a-10 p.m.
Dec. 2 in the college library,
Building 007.
It will be an evening of live
jazz, coffee and treats and
poetry readings with an open
microphone.. All members and guests
are welcome.
For more information, call
752-7776.
Newcomers to
put on luncheon
The Christmas Friendship
Luncheon will be 11:30 a.m.
Dec. 7 at the Texas Roadhouse.
All members, guests and.friends
are welcome. There will be a gift
exchange ($5-$8) for those'
wishing to participate.
For further information, contact
758-7920 or 752-4552.
Regular Newcomers
meeting set for Dec. 14
The regular monthly meeting
of the Lake City Newcomers will
take place at 11:15 a.m.
Dec. 14 at the Quality Inn.
This will be the group's
0 To submit your
Community Calendar
S item, contact S.
Micheal Manley at
/ 754-0429 or by e-mail
J at smanley@
lakecityreporter,
754 344-2540 or
msvanessax@aol.com..
LAKE CITY
BUY IT! - SELL IT!
FIND IT!
I :-. ^ " -' .^- . �
Spinning Is Winning!
Monday $5 Match
& Saturday M t
Tuesday Tournament
.Open.. Saturday Mini Spin-Off
S12noon. ,
a Call for details - Must be 21 - 755-0024
a^Robert's Auto Service
With Warm Wishes at Thanhsgiving
We know we have a lot to be thankful for, and
you have a lot to do with it! So to all our
valued customers, we extend our best wishes
for a joyous Thanksgiving holiday filled
S with lots of good friends and good times.
We really enjoyed every minute of
serving you, and look forward to
helping you in the coming year.
Sincerely,
Robert Aderholt 9 Employees
Closed Nov. 24th 8 25th
rappy Thanhagiving
Storewide on all
Bridal Gowns
*Pageant Wear
*Mother of the Bride
r' , "For the gown that
Becomes you"
.Westside Plaza . US 90 West .(386) 961-9366
n(Qualitp Computers
- anb Components
Fast Professional Call Now:
Computer Repair 386-719-6853
Network Support brad@bradhandy.com
H ' '16 t/l .,I fiKff fol .ilc. ke b'ies",- v a ,'-� "-t.. ,c:t t- ,'I
thi;'.)* , A,,. i" .;tAt: a .'fh., t e. r .ztfce .f,,, I'l.,L' 0141-,z , . v':.,' f,' iu ,"t'
WE LISTEN. WE CARE
WE HELP!
Nahed Sobhy, M.D.
MERCY MEDICAL URGENT CARE
305 East Duval Street * Lake City, FL
386-758-2944
0OF LA KE CiT Y
'. 11, U H , ,. , 1 L. - '. , fL i
386-752-5501
Keep Your Garments a P 0
Looking Like New a L a Le nes
50%0ol
JO]
Clothes are an investment. � ' -
Keep them looking '
beautiful and fifting just
right, year after Near. We I 1 Uoff
take special care ol all your Pr
dry cleanables because it's Prepaid Orders
our job 1o keep . and Same Day :
yoUl looking good. | ,Pickupd.S,
I Not lid withiWed. Special I
Gateway Cleaners Moses Cleaners
1101 Hwy 90W 58" SW Main Bhd.,
Gateway Plaza Ste 100
'55-586(8 "55-0511
be~i S *x~f 6 *u mrlRtus~~.,
W - - -.r -..
mill
I
Page Editor: Chris Bednar, 754-0404
f
Page Editor: S. Michael Manley, 754-0429
LAKE CITY REPORTER LOCAL SUNDAY, NOVEMBER 20, 2005
Vendors look to help Katrina victims
By LINDSAY DOWNEY
Idowney@lakecityreporter.com
More than 10 vendors set
up tables at the Columbia
County Fairgrounds on
Saturday to raise money for
Hurricane Katrina victims as
part of the third-annual
Christmas Open House.
About 50 people stopped in
throughout the day to peruse
the books, jewelry, candles
and crafts for sale. One hun-
dred percent of the proceeds
will be donated to the Red
Cross.
Home interiors decorator
Stephanie Lane, who has been
planning the event since June,
said she wanted to raise the
money for hurricane survivors
because she was moved by
their stories.
"It made me want to cry,
just watching the news and
seeing every new thing that
happened," Lane said.
LINDSAY DOWNEY/Lake City Reporter
Home interiors decorator Stephanie Lane sells candles Saturday
at the Columbia County Fairgrounds' Christmas Open House.
Tupperware vendor
Leilanie Merrill said most
Floridians can relate to the
tragedy.
"We understand because
we've been hit so many times."
she said. "I fully believe in
karma. You give and you
always get back."
The volunteers also sold raf-
fle tickets for baskets filled
with small photo albums,
Christmas mugs, lotions and
other gifts to benefit the cause.
Lauri Thomas, of Premier
Design Store, sold jewelry at
the event for the first time.
She said people liked her
festive "holiday" jewelry.
"Anything sparkly, anything
glitzy," she said.
Branford resident Heather
Poltrock looked at the jewelry
for sale Saturday afternoon
and stopped to check out
some Tupperware. She said
she read about the open house
in the newspaper and came to
show her support for
Hurricane Katrina survivors.
Poltrock said the fundraiser
was "very upperclass."
"I feel like I'm in the South,"
she said.
Tabatha McMahon, inde-
pendent consultant of Close to
My Heart, sold scrapbooking
and quilting books and
supplies at the event.
"It's a national addiction of
most women," McMahon said
of scrapbooking.
McMahon said she is new
to Lake City and the fundrais-
er gave her the opportunity to
boost business and meet
several locals.
"I've been surprised," she
said. "We've had quite a few
people."
FESTIVAL: Miracle on Marion up next on Dec. 3
Continued From Page 1A
season."
Along with decorations, the
public works crew erected a
house for Santa Claus. Santa
will arrive at dusk that day.
DAC chairman Skipper,
Hair said he thought people
would be pleasantly surprised
by what downtown Lake City
has to offer if they came down,
especially during the Festival
of Lights. The booths and ven-
dors are similar to those at the
Olustee celebration, Hair said.
'"This is a way for us to
provide a unique purchasing
opportunity for residents and
also support businesses," Hair
said. "Please take the opportu-
nity to come downtown and
support our local businesses,
because that reverberates
through our economy.
"It's (Festival of Lights)
almost like an introduction to
a lot of activities to come in
our downtown through the
holiday season."
The next event is the
"Miracle on Marion" on
Dec. 3, a combination of din-
ner and an auction of decorat-
ed Christmas trees at
Tucker's restaurant. The pro-
ceeds go to the March of
Dimes.
The annual) Christmas
Parade is two days later, at
7 p.m. Dec. 5.
Next comes Santa Photo
night between 6 and 9 p.m.
* Dec. 10, along with a big con-
cert by the Parkview Baptist
Church in the Gazebo.
Snow Days is on Dec. 10
and there will be 40 tons of
snow - for sledding on round
plastic sleds and snow ball
fights - in the parking lot
across from DAC member
businesses A Company of
Angels and Rowand's
Antiques.
"Last year was great," Hair
said. "Some of those kids may
have slid down that hill
100 times or more.
"I was born and raised here
and a lot of us Floridians have
never seen snow."
SANTA: Christmas wishes relayed to Kris Kringle
Continued From Page 1A
same experience.
"I wanted him to see who
Santa is, just to see how he
reacts to him," Browning said.
Landon tugged on the
man's white beard as the
photo was snapped.
Along with the coloring
contest to win movie tickets
and Burger King coupons,
children signed up for a
breakfast and sing-a-long,
with Santa and local singer months oh
Jill Barrs on Dec. 11. their pictui
By the time the crowd "It's be
began to die down at
12:30 p.m., Santa said young getting to t
people ranging from 2 Santa said.
', "' ,, { ' '., , ,> , i "" ;. 1
d to teenagers had
res taken with him.
een a blast just
talk to all the kids,"
S . , r.
ALLMERICA FINANCIAL"
HANOVER"
INSURANCE
CTrusted
L. - -^
I
JENNIFER CHASTEENILake City Reporter
Ember moshin'
Students dance in a mosh pit as local student band Fate Accurnpli
performs during Ember Fest in Fort White on Saturday evening.
The Fest was organized by Fort White High School art instructor
Cindi Hiers along with Scribblers Art Club members, and premiered
student band performances and paintings displayed by art
students. The Fest ended with a two professional acts.
OBITUARIES
Mr. William Larry Hines
Mr. William Larry Hines, 63, of
Lake City died early Saturday
morning, November 19, 2005 at the
Still Waters Assisted Living
Facility. He was a native of Lake
City, son of the late Billie and
Pauline Wells Hines and had made
his home here his entire life where
he was employed by The '
Department of Transportation as an
engineer for many years until his
retirement. He was a member'of
Christ Central Ministries Church
where he was an usher. Mr. Hines
loved buying cars and was very
dedicated to his family and his
church.
Mr. Hines is survived by his wife
Rita Hines of Lake City; three.
daughters, Terri Hubner, Stacy
Boozer (Dwight), and Rhonda
Parnell (Michael) all of Lake City;
two sisters, Sandra Rickerson of.
Lake City and Sharon Richards of
Ocala; five grandchildren, William
Jakob, Joshua, Julie, Alexis, and
Kyle all of Lake City.
Funeral services for.Mr. Hines will
be conducted at 11:00 A.M.'
Wednesday, November23, 2005, at
Christ Central Ministrife Church in
Lake City with Pastor Lonnie Johns
and Pastor Mark Johns - officiating,
assisted by Ray Johns and Billy
Long. Interment will follow ht
Forest Lawn Memorial Gardens
Cemetery in Lake City. Visitation
with, the family will be held frbm
5:00-7:00 P.M. Tuesday evening, at
the funeral home. Arrangements are
under the direction of GATEWAY-
FOREST LAWN FUNERAL
HOME, 3596 South HWY 441,
Lake City. (386) 752-1954. Please
sign the guest book at-
wayforestlawn.com.
Obituaries are paid advertisements.
For details, call the Lake City
Reporter's classified department at
752-1,293
Karl Bodendorfer, MD
Anne Conner, Optician
* & LeeAnn Stokes, Office Manager
visit us at our new location
Columbia Eye Associates, PA
265 SW Malone Blvd, Ste 111I
Lake City * (386) 755-5699
LOOK GREAT
LOSE WEIGHT
LOWEST FEE EVER
X 755-8700
m11 E BOLI� Hwy g90 West, Lake City
RESEARCH CENTER oss r Lak City Mall
Individual results may varry Across from Lake City Mal
YOU ARE INVITED
To be our guest at the
First Presbyterian Church
Thursday, November 24th
Noon til 2:00PM
MENU Evel
Turkey with dressing . join
Cranberry sauce food
Mashed potatoes wet
Sweet potatoes man
Green beans
Rolls, coffee & tea Ti
Pumpkin pie
697 SW Baya Dr., Lake City
ryone is invited to
friends in sharing
d and fellowship as
thank God for our
ly blessings.
here is no charge!
Fell your friends.-
Call 752-0670
Drop in to See Our Fall Florals
% including
The FTD Fall Harvest Bouquet
CC's FLOWER VILLA
Your Full Service Florist
754-5200
S ;T" . oll Free 888-433-3216
. 563 SW S47 (Corner of McFarlane Ave. & SR47)
visit our website
SHERRILL-GUERRY
Funeral Home
Local People
Sio e Green Serving Local Families
Manager
Licensed Funeral Director
The Very Best Service at The Very Best Value
Located 1 Block North of VA Hospital * 752-2211
Visit us at our website sherrillguerryfh.com
For visiting us at the
Columbia County Fair.
Call for information
ONA * VIE
,., Timothy Emeis
Phone: 386-288-6031
" "'' . .,m DrirvrDis m 2374'3
* "" ,ir irvre, mro,
* .. .1~
!IL ~
~
~.0~~I
- a
IV.
*
dry,
i.~
Page EdItor: S. Michael Manley, 754-0429 LAKE CITY REPORTER LOCAL SUNDAY, NOVEMBER 20, 2005
Government set to launch new
By TROY ROBERTS
troberts@lakecityreporter.com
The U.S. government is
launching a new Medicare pro-
gram on Jan. 1, 2006, leaving
many senior citizens wonder-
ing about the many different
options available for them.
The sign-up period, which
began Nov. 15 and runs
through May 15, allows sen-
iors to sign up for a new pre-
scription drug plan through
Medicare Part D.
However, more than 50 pro-
grams are offered nationwide,
and 44 of them are offered in
Florida through 18 organiza-
tions including Blue Cross and
Blue Shield of Florida, CIGNA
Healthcare, Prescription
Pathway and United
Healthcare.
"On average, many of the
plans are fairly similar," said
Carl Allison, owner of Baya
Pharmacy. "For instance, some
plans will push mail order,
while another will have no
co-pay for generics."
There are multiple options
that a person on Medicare has
for looking at the variables,
benefits and drawbacks that
each plan has to offer.
"The program is good that it
helps people pay for medica-
tion that they sometimes can't
afford, but it was put together
in a fashion that isn't easy to
understand," said Joel
Rosenfeld, owner of North
Florida Pharmacy.
According to a report from
the Centers for Medicare and
Medicaid Services (CMS), the
monthly premium for 2006 will
average at about $32 a month.
Some plans begin as low as
$10.35, while others cost as
much as $104.89 a month
depending on the deductible,
which will be no more than
$250 in 2006.
On average, a person with
"... Some plans
will push for mail
order, while
another will have
no co-pay for
generics."
- Carl Allison,
Baya Pharmacy owner.
Medicare and no drug cover-
age will see their total drug
spending costs decrease by
50 percent and they will save
$1,100 per year on average,
according to CMS.
"We're seeing people now
spending $1,000 to $2,000 aver-
age per month on prescription
drugs," Allison said. "The new
plan will end up paying
between 50 and 75 percent of
drug costs."
Interested parties
online at the Med
site. medicare
call '(800) MEDIC.
4227) to speak with
who will use a con
gram to explain the
the best package.
Local pharmacies
Baya Pharmacy a
Florida Pharmacy,
seniors to go by ti
and learn about v
could possibly be ti
them. The corporate
both CVS and Walg
contacted repeat
information for this
Rosenfeld said th
is helpful, but may
understand by t
aren't computer sav
"Many seniors
know how to use ti
er, but by coming by
we will do the work
Rosenfeld said.
Medicare program
es can go through, list what medicines Medicare coverage, they will
icare Web they are currently taking, and be forced to pay more.
at give them the top three He said it is also important
re.gov, or choices for their plan." to see if an interesting plan is
ARE (633- If a person is on both covered by the pharmacy they
an expert Medicare and full Medicaid, use, as only certain pharma-
iputer pro- they are automatically enrolled cies will support certain plans.
benefits of in one of six plans in the state Rosenfeld offers a different
of Florida, Allison said. suggestion, stating that indi-
s, such as "They are also able to vidual plans vary between
ind North change their plan every people that enroll.
encourage month," Allison said. "It is hard to recommend
heir stores However, those only on one individual plan, because
rhich plan Medicare must stick with a there are different plans that
he best for plan for an entire year before are better for different people,"
e offices of being able to change. Rosenfeld said. "What might
greens were "It doesn't make much be right for you may not be
tedly for sense" as to why Medicare right for your best friend."
story. subscribers can only change Those that are interested in
le Web site once per year, but people that signing up for Medicare have
be hard to are dual-enrolled can change until May 15 to enroll.
hose that monthly, Allison said. "'That is "If you sign up after May 15,
vy., why it is important to sign up there will be a one percent
may not for a plan that covers a lot of charge each month," Allison
he comput- drugs." said. Those that sign up after
y the store, Allison said if a doctor pre- the date will continue to be
c for them," scribes a medication that isn't charged as long as they are on
"We'll go covered by a person's . Medicare.
LOCAL: Hotline and Web site can assist those who have Medicare questions
Continued From Page 1A
However, Allison says the
online portion of the plan can
be confusing.
"It isn't difficult for me or
younger people to go online
and find information about the
most viable plan," Allison said.
"However, the majority of the
people on Medicare don't
frequent the Internet."
Allison confirms the hotline
can be helpful to people want-
ing to find information about
the plan for them, but they
should be prepared to wait
because the customer service
representatives are over-
whelmed by the number of
calls they receive.
Allison, who is allowing peo-
ple to come in and discuss
which plan is right for them,
explained that it is best to sign
up for a plan that covers a wide
variety of drugs, with his rec-
ommendation being the
Community Care RX program
from MEMBERHEALTH.
"This program allows you to
go to any pharmacy and covers
95 percent of the top drugs,"
Allison said. "It also has low
premiums and no co-pay on
generic drugs."
Rosenfeld suggests there is
no plan that can be recom-
mended for everyone, because
not everyone takes the same
medicine and dosage.
"Some plans help the phar-
macists rather than the people
that need the medication,"
Rosenfeld said. "We're trying
to direct people to the
cheapest plan for them,
instead of what will provide the
most money for a pharmacy."
Rosenfeld also said that
while a doctor may prescribe a
drug not in a particular drug
coverage, there are multiple
generics and drugs out there
that normally will be under
that coverage.
Rosenfeld said when people
ask which plan is right for
them, he gives them the top
three cheapest plans available
to them.
"I don't want to tell a person
what plan they should use,"
Rosenfeld said. "I would rather
us give them the information,
let them call the toll free
number, and then decide
which plan is best for them.
We want to do the legwork for
them, but we want them to
decide."
Although Allison said he
would prefer one universal
plan, he believes there is
potential for the new system to
succeed.
'There is potential to see the,
whole system succeed
because people will be treated
properly for their exact med-
ical condition, rather than, like
now, people not taking or buy-
ing their medicine because
they are unable to afford it,"
Allison said.
The Medicare Web site is, or
call (800) MEDICARE
(633-4227) for more
information.
1N
JENNIFER CHASTEENILake City Reporter
Community Outreach Services Medicare Part Q Plan Enroller
Wayne Wilson (right) goes over enrollment applications with Jack
Exum of Lake City.
ANSWERS: Residents look to professionals for help to choose Medicare plan
Continued From Page 1A
she said.
Lake City residents
Emily Robarts, 68, and Gene
Robarts, 74, said they already
had attended two Medicare
seminars through other
organizations, but they did
not get their questions
answered because not enough
information about the pro-
gram was available.
.The whole thing is very
.vague the way the government
has it," Emily Robarts said.
The couple takes medica-
tion for high blood pressure
and various other ailments.
They spend about $400 per
month on Emily's prescrip-
tions and about $200 per
NOW HIRING!
YOU...
* Positive Attitude
* Dynamic Personality
, Computer Experience
* Various Schedules
* Benefits Package
* Casual, Fun Work Environment
Let's Connect!
Apply today!
1152 SW Business Point Drive
Lake City, Florida 32025
386-754-8600
CLi-ENTLOGIC
ClientLogic is Hiring Temporary Call Center
Positions Assisting Customers.
YOU:
* Keyboard and computer familiarity.
* Good communication skills.
US:
* All applicants welcome.
* High school and college M i
students encouraged to apply.
Assignments from 7-14 days
December 18-31, 2005
Various schedules possible. Christmas holiday work required.
$10 per hour
for all who fully complete assignment
Call (386) 754-8600 for more information
or apply in person:
1152 SW Business Point Drive
Lake City, FL 32025
month for Gene's medication.
They said the plan probably
would help cut down on
Gene's expenses, but Emily
was unsure whether she
would benefit.
The Robarts spent more
than 30 minutes speaking
with the pharmacist and
enrollment officer.
"They were very helpful,"
Emily Robarts said after the
meeting. "You need to talk to
someone face-to-face. On the
phone you don't know who
you're talking to."
Carl Allison, owner of Baya
Pharmacy, said most of his
customers seemed more con-
fident about the Medicare
T HE SILVER CHEST
Hiigh Quality - Low Prices '
Artisan Crafted Silver
SDirect from Taxco, Mexico
T' ite Silver Capital of the World!l
Fine Art - Pottery � Rustic Furniture
Handwoven Southwestern Wool Rugs
And Much Morel!
Located um Hisionc Downtown Lake City
Tel: 386-755-1114
S1 ' I re['a * to D r g
Prescription Drug
*' Baya Pharmacy will have
Insurance Specialists at
Baya Eas
780 SE Baya
Lake City
755-6677'
per Location
50 US 41 NW
Jasper
792-3355
plan after . they had the really help," Allison said. "I
opportunity to ask questions. . believe it's going to save the
"Most of the people it will whole program."
\COMPUTEd
"Like Having A.4 Tech In The Family'
Custom Built Units * Repairs Upgrades Parts
211 SW Knox St. 758 T-7 Q
Lake City75 w ,- 85
:GOING OUT
OF BUSINESS
SALE CONTINUES
Reductions Up To
60% off
Buy Now for Christmas!
Tremendous Selection!
Unbelievable Savings!
HOURS: MON.-FRI. 9:30 A.M.-5:30 P.M., SAT. 9:30 A.M.-4:30 P.M.
Gateway Center W. 90 at Baya
BPha acy
t Baya West Jasi
Dr. 1465 US 90 W 11
, Lake City
755-2233
mmd
LAK CTYREORER LOCAL SNANVME 020
Page Editor: S. Michael Manley, 754-0429
LAKE CITY REPORTER WEATHER SUNDAY, NOVEMBER 20, 2005
Page Editor: Joseph DeAngelis, 754-0424
THE WEATHER
CHANCE CHANCEL MOSTLY MOSTLY MOSTLY
SHOWERS I SHOWERS L SUNNY SUNNY SUNNY
17 HILO 5% | HI70LOr H1I LO |0 HIVLO X
SNATIONAL FORECAST: High pressure will produce sunshine and milder temperatures over much of the
mid-Atlantic states and southern New England. Low pressure over the Gulf of Mexico will spread clouds
and showers with a few thunderstorms over much of the Southeast and the Gulf Coast. Upper-level low
pressure will produce mostly cloudy skies over the central Plains and the mid-Mississippi Valley.
* Valdosta ' Jacksonville
71757 73 61
Lake City*
73 59
Gainesville* Daytona Beach
- 74 61. 7766
Oca!a* Cape Canaveral
76 6rland" 7869
80 67
Tampa .
80 70
West Palm Beach
82 71,
Ft. Myers' Ft. Lauderdale
82'71 82 73,
* Naples
83 69 Miami
Key West 83 73
81- 73*
Monday
7 J'�ti
1 i
71 4 r
j :r,
"A 46. r
ri
-. 4 2 r
, 4 l 4 i1
'- 60 ri.
Tuesday
SI
,-. 41 p:
r 7 1
-. 4' p,. 'l
* - ':. p" ..
- J. r "
r....
S - p,
T. 2" 5 P': l,
7$ $.4
al-M W l -- - - - --- .- -w - .- - -.r
YESTERDAY'S NATIONAL EXTREME
Showers
T-Storms
Rain
CU,l, F",:nl
OAL--:ia-a
Or.:l Oni
FrOal
. ig : ; 88 pia qoa- ,.Cai 14 W 7 4$ t- 7iJ o!- i
TEMPERATURES
High Saiurda,
Low Saturday
nrorrr..i1 ni~gi
Normal low
Pe.:'ord'l ohigh
Record low'
74
47
74
50
90 in lC19C6
31 in 1951
PRECIPITATION
S -itur.3',
Month total
'i.ar (. r .al
Normal month-to-date
. orn'ial ',,.- r.- , dart-
O .C ,": '
0.02"
42.25
1.33"
44.96'
SUN
Sunrise tr:)3,
Sunset today
Sunns.,� torn.
Sunset torn.
MOON
MoorInnse r, o3
Moonset today
rMurinse romr.
Moonset torn.
7:00i a.m.
5:32 p.m.
7:01 a. n'
5:32 p.m.
9`32 p.m.
11:21 a.m.
10:30 p.m.
12:02 p.m.
Q000
Nov. Dec. Dec. Dec.
23 1 8 15
Last New First Full
n r.r tis in
1 , rr, -a , .1i -ir. d
.i tru .:^ C ri^- a r, ri., ,
..i.,.ri i' tr.-, ri,-e.
.f zriou. inr' 2. hour"
nri .a re.:.:.r3 iT tal ':-
�'... ,nr,.:hr . eir tori,
hli ur, ltro-r'e .i.ri. :
:.reared hrije drirts
Stopping all trans..
.,:,-r T-i .o r,
5
MODEKT -
30 mnutesto0bIum
Today's
ultra-violet
radiation risk
for the area on
5 ., ale from ,
1'. j i+.
t,, r,,+{
'0.
4 ,S Forecasts, data and graphics
P-'- .-.' :2005 Weather Central,
SInc., Madison, Wis.
-' wvA.weatherpublisher.comn
t Amsterdam
:Athens
, Auckland
Beljing
Berlin
Buenos Aires
Cairo
Geneva
Havana
Helsinki i't -
Hong Kong
Kingston
Saturday
Hi/Lo/Pcp.
J . 22 ,7
> 3: i'i
37 '32 1
.0 22 0
4? 1 '7'
7 ., I. ,
55 31. ,
42 21 1
6 4 3 ,,
55 22 "1
55 2: ,
':, 4 - C'
Hi Lu Pcp.
90 3 0
Rs. *' . 0
75 ;. 07
43. 3 . ,:
Hi Lo Pcp.
92 ':5 0
i36. ?2 0
13 36 0
32'2, , - -�
,;2 f l 'u
it . ,u
Today
HI/Lo/W
50':' 2 1 PC
5 . 31 :;
3i5 25 ir.
5: J , :r.
59 3O -
5. 40 p:1
I.4 .5 ,:
1? 34
5 3.- ,:
4 '.'. ii h
S 31 .:
77 T6 i:
5 25
-: -.. E
Hi Lo W
; 77 pt:
64 4 ,:
*6. 51 p..
45' 31 I
39 21 :r,
.4 5 �
43 30.
s0 71, I .
75 CAFd -
SE 76 0V
CITY
Des Molnes
Detroit
El Paso
Fairbanks
Greensboro
Hartford
Honolulu
Houston
Indianapolis
Jackson MS
Jacksonville
Kansas City
Las Vegas
Little
Hi Lo Pcp. HI Lo W
57 39 .C' 62 42 :
70 63 0 67 5:. p.I
43 27 ' S 36 *.
5.5 5 ii 54 3". :
7i 46.0 71i 46 p,"
37 21 03 5 34 .
30 25 0 -144, 31 r~
7 . 6 1 0 ?0 ci , L
2, 75 2-2 4 7! pc
. 39,30 0 36.2J4. p
'8'7. C', 7 . 73"'.-3Y'
.5 ,'6 0 :;J 3'':
34':8 0 .1.4 37 *
KEY 10 CONDITIONS: c-cloudy, rdri0zzle, t-tair, Tg-Tog, n-nazy, i-ice, pc-parmy cloudy, r=rain; s-sunny, sn=snowers, sn=snow, ts-Lnunuelstorms, w-windy.
You can have your nte
and your short tern too!
Best-of-Market CD Rate
0 Nine
APY Month
4 lTerm
$15,000 minimum to open Deposits insured up to $350,0002
Call 754-9088 and press 1, then ext. 22111
(to reach the Lake City Service Center) or visit us today.
Hurry, offer is for a limited time only!
Membership is open pM Pt
to everyone in Alachua,
Columbia and Marion counties!-S
Count on CAMPUS.
1 Annual Percentage Vield (APY).erfeti'.e No,.ember 20 :70 5 AP'i 3 umE: ir.rar r.s' ,e r r :i r -T. : ,:,.t ur.ijr , i fr nar, h, :,.r :. r , , ih...: .'. . 6h T,a, N C U A U 'ir1 ov a Eura
reduce earnings Contact an employee lor further informalt.n bO out .rppl:.l . b iI. : ai , r.-rni ; 2 D. p :.~r ..-i l .r. r.: i rc11,rr all, p :, ii .. 100 t.. fr..ir. al Credit, ,, ,ia_,.-....,,arr s tii .ee
Union Adminisirration and pi.ateli up to 1250.000 b-, E.c1s;: Share p r iurincic [h: -r, Ti.n 1 . pr. I3I r : ir. . :.I a ppr: *.*fi r.i.:I.. 1 . 1,pi.l dsp ;. .:. '" n..ri
iS required leraition trii ad and well \.a.,e the I 15 membership i.e 152 W
=- .- * *=1 *MM* *gg 0 4 1 0 6 .1 .1M.
Pensacla
S69 50
Tallahassee
70 57'
Panama City
'72 57
Saturday
Hi/Lo/Pcp.
46 35 0
5? 31. 0
62 32 0'
1 . ; ''4
55 5. ,
45 ;1 o:'
61 Ji 02
56 '3 ,1
it 4.7 i
7 1 2 i
6 . 36- C'
682 3 ii
65. 37. 0
6i 36 0
6., 419, ,
46 33 0)
5. "i L,
Today
HI/Lo/W
4-4 3' p:
J4 14 ,:
59 34 ..
1 - . :
$9 45 pi.
'54 17 .
84 70 S
'>' 42. 4t'
54 3;, pi:
63 43 .:
6.3. 7l ir,
4 :. 30. a.
6ri 43.4
59 ,:'
82 53
61.1 i ,:
45. 3 ,.
,5 46 -r
A5 -4 .
55 4'0 i
9 :3 .:
CITY
Omaha
Orlando
Philadelphia
Phoenix
Pittsburgh
Portland ME
Portland OR
Raleigh
Rapid City
Reno
Richmond
Sacramento
St. Louis
Salt Lake City
San Antonio
San Diego
San Francisco
Seartle
Spokane
Tampa
Tucson
Washington
CITY
Rio
Rome
St. Thomas VI
San Juan PR
Santiago
Seoul
Singapore
Sydney
Tel Aviv
Tokyo
Toronto
Vienna'
Warsaw ,.
Saturday
Hi/Lo/Pcp.
46 35 0,I
-J 29 0 i
3 4i9. 0
1 25 0
4' 21 i
51 36 .'
Q'25. , :'
4- ? 9 0
514, . ,)
54 24 0
r,. J4 . .,,
61 .36 ii
J.4'9 7
64.51 0
517 1 0
35 30 0
K2 41.''
S2 '2 0
5'.i I 0
N7 1 0)
4 .17 0
A ;9 1 13L
?6 , 3 0
4 ?.o, 0
3- 2'. 0.
Today
Hi/Lo/W
9 2" pi:
'51, -
27 40 c;:
l3 50 ,
I35 2. P
SO4 J :
u51
;50
41 J;
4$ 315
51, p.
SE 27:
-;~-~-~-~.-~~~c-~-.-~-~---~.;P-~i~l~l T'~T~I~-=_~C;;-~-~-~i~~_5Cen~j~Pja~+e~iE
---- ------ ------ -- --
~i~EJ~
An~igii
Lake City Reporter
Story ideas?
Tim Kirby
Sports Editor
754-0421,
tkirby@Jokecityreporter.com
Sunday, November
SPORTS
20, 2005
BRIEFS
CHS FOOTBALL
Special Olympics
fundraiser
The Columbia High
football seniors will face off
against the Columbia
County Correctional
Institution Cowboys at
6 p.m. on Friday at
Memorial Stadium.
The price of admission is
$2 per adult and $1 per
child. There will be enter-
tainment during halftime.
For more information,
contact Steve McCray at
466-3000, or at 755-7105.
AUTO RACING
Newman wins,
Truex is champ
n For more auto racing,
turn to Page 6B.
HOMESTEAD- Martin,
Truex overcame a series of
setbacks
Saturday
to windhis5
straight
NASCAR
Busch
Series
season Truex
title, fin-
ishing seventh as Ryan
Newman won the Ford 300
at Homestead-Miami
Speedway.
Nextel Cup stars
Newman and Greg Biffle
battled at the front of the
pack through most of the
season-ending, 200-lap
race.
Biffle, who has one victo-,".
ry chal-
lenger the rest of the way,
winning by 0.138 seconds.
It was Newman's sixth
victory in nine races this
season.
Truex came into the race
with a 64-point lead over
Clint Bowyer and wound
up winning by 68 points.
Musgrave wins
first truck title
HOMESTEAD - Ted
Musgrave had to wait an
extra day
for his
year-old driver finished
20th in the rain-postponed
Ford 200 at Homestead-
Miami Speedway on
Saturday and edged Dennis
Setzer for his first title by
52 points. Todd Bodine
won his third consecutive
race and9
finished third in the points
standings, 70 points behind
the champion.
Setzer finished second for
the third consecutive year.
Musgrave finished second
in the NASCAR Craftsman
Truck Series points
standings in 2001 and was
third the last three years.
He entered this year's
finale 58 points ahead of
Setzer and kept the other
title contender in his sights
throughout the race.
U Compiled from Associated
Press, staff reports.
Columbia girls roll past Hamilton
CHS wrestling places
second in Wildcat Duels
at Ocala Forest High.
By MARIO SARMENTO
msarmento@lakecityreporter. corn
The Columbia High girls basketball
team won its third straight game on
Saturday night, rolling past Hamilton
County High 64-24.
The Lady Tigers led 8-0 before
Hamilton scored its first points at the
2:36 mark of the first quarter. After
only leading 9-3 at the end of the first,
Columbia went on a 24-7 tear in the
second quarter to put the game out of
reach.
Sophomore guard Tasheona Harris
led the second-quarter blitz with eight
points, and she finished with 12 points
on 5-8 shooting from the field.
"We've talked so much about being
more team-oriented within our sys-
tem," CHS coach C.C. Wilson said.
"She's done her part on it.
Now everyone's getting _
more points and more r.:
assists. Just maturation for f1
us. She's a 10th-grader and "
growing up in a hurry."
Clara Jernigan scored 12
points, Shatouria McClellan
scored nine, Racheal Jones
and Victoria Wilkes each scored eight,
Kaylyn Varnum added seven, Shannon
Alford scored six, and Benitra Givens
scored two.
Columbia's defense was suffocating,
as the Lady Trojans hit only one of
18 shots in the first half, and Hamilton
finished just 6-43 for the game. ,
The Lady Tigers were an efficient
27-56 (48 percent) from the floor on
the night.
U',
'We were nervous coming
out, but we played pretty
good," Harris said.
"Especially in the second
half."
Columbia's next game is at
home at 7 p.m. on Tuesday
night against state runner-up
and district rival Eastside
High, which is also 3-0 this season.
Columbia wrestling
The Columbia High wrestling team
placed second at the Wildcat Duels
meet at Ocala Forest High on
Saturday. Gainesville High defeated
the Tigers in the last match of the day
to take the title.
"We performed well," Tigers coach
Al Nelson said. "We didn't finish the
job, but we came out and competed."
Bryan Huggins finished 5-0 in the
160-pound weight class.
Michael Burrus was 4-1 in the 103-
pound class, Chris Dahlbeck was 4-1
in the 125s, Matt Bohannon was 4-1 in
the 140s, Greg Poole was 4-1 in the
145s, Lewis Sharp was 4-1 in the 189s
and Brandin Richards was 4-1 in the
215s.
Columbia wrestles in its first district
match at home against Ridgeview
High at 7 p.m. on Nov. 30.
Memorial Bowl winds down
Youth football
season will finish
Wednesday.
By MARIO SARMENTO
msarmento@lakecityreporter.com
At the Memorial Bowl, it's
all about the football.
The pageantry and celebra-
tion of the season-opening
Jamboree, which included a
cook-out and a carnival, is
replaced at the end of the sea-
son by the simple spectacleof
the game - pairans. frik nds-
and relatives cheering on the
players.
Even those who don't have
a physical link to the kids on
the field enjoy the action.
On Saturday, Neal Alford -
whose son Neal coaches the
Lake City Wolves team that
was eliminated earlier in the
tournament - was on hand to
watch the semifinal games
being played, at Memorial
Stadium.
"I think it's been great," he
said of the event. "All the kids
look like they've been having
fun. Real great ball games."
And that's the essence of
the Memorial Bowl - the
game of football itself.
Alford comes to the
Memorial Bowl every year,
and he plans on attending the
final games on Wednesday -
"If I can get off work and get
here," he said.
Twila Robinson made the
trip from Williston to watch
her son Detereon Williams
quarterback the Red Devils in
their semifinal Midget League
game against the Quincy
Eagles.
Williston lost 52-8, but
Robinson said, "It's been a lot
of fun. They had a pretty good
year. It was exciting for them
MARIO SARMENTO/Lake City Reporter
Quincy Eagles players listen as coaches discuss strategy during Quincy's 52-8 win against Williston in the Midget League semifinals at
the Memorial Bowl. Quincy will play the Zaxby's Raiders at 6 p.m. on Wednesday for the championship.
to come up here to be a part of
the Memorial Bowl."
Cristyl Williams and Shirley
Holt are parents of three of
the Quincy players who will
compete for the
championship on Wednesday.
"It's been pretty nice,"
Williams said. "They (the
kids) like it because they've
been winning."
Holt has been here before,
having watched her son win
the championship two years
ago.
In each of the last three
weeks she has made the
140-mile drive from Quincy to
Lake City.
"I have loved it, I have
really enjoyed it," she said.
"I just like to support the
team and see them make a
touchdown ... I don't know
much about it, but I'm.
learning."
Eagles quarterback
Michael Still- said the
Memorial Bowl was like,
"Christmas and Thanksgiving
Georgia Tech upsets Miami
Hurricanes are out
of the ACC title
game with the loss.
By STEVEN WINE
Associated Press
M con-
tention aca-
demically ineligible athletes
in four sports, including 11 in
football.
Georgia Tech mounted
touchdown marches of
68 and 61 yards against the
nation's No. 1-ranked
defense, and Miami penalties
contributed to both drives.
Interference on Marcus
Maxey negated an intercep-
tion situa-
tions he repeatedly found
Calvin Johnson, who had six
receptions for 89 yards.
all rolled into one."
The games are about having
fun, but Zaxby's Raiders coach
Bud Parker said there is defi-
nitely an intense atmosphere
surrounding the contests.
"It's just the added tension,
a little added pressure," he
said.
"Because in the bowl game,
you're one-and-done. If you
lose one, you're out. So it's a
little more pressure, but it
gives them something they've
never experienced before."
The Raiders went undefeat-
ed in the regular season, and
continued that streak with a
narrow 20-16 win against the
Annie Mattox Eagles in the
Midget League semifinals.
Their reward is a date with
Quincy in the Midget League
Championship Game at 6 p.m.
on Wednesday.
In other games in the Junior
Midget Division, the Subway
Packers topped the Virginia
BOWL continued on 5B
JENNIFER CHASTEEN/Lake City Reporter
Having a ball
Fort White Minor's Isaiah Boddy pitches during the Fort White
Fallball Tournament on Saturday. Boddy's Fort White Black team
lost 9-6 to Melrose before defeating the Lake City Braves 15-5.
Melrose ended the Black team's run with a 10-0 victory. Other
results were: ROOKIE - Melrose 1, Santa Fe 0; Fort White Black
3, Fort White Red 0; Fort White Black 3, Santa Fe 0; Melrose 4,
Lake City 3. MINORS - High Springs Subway 6, Lake City 0.
SENIOR - Fort White 17, Interlachen Red 0; Fort White 11,
Interlachen Blue 0; Santa Fe 10, Live Oak 4; Interlachen Red 7,
Santa Fe 0. Games start at 10.a.m. today.
Section B
- I I�r I --
LAKE CITY REPORTER SPORTS SUNDAY, NOVEMBER 20, 2005
TELEVISION
TV Sports
' Today
AUTO RACING
4 p.m.
NBC - NASCAR, Nextel Cup, Ford 400,
at Homestead
BOWLING
I p.m.
ESPN - Miller High Life USBC Masters, at
Milwaukee
GOLF
I p.m.
ABC - LPGA, ADT Championship, final
round, at West Palm Beach
3 p.m.
ABC - PGA Tour/WGC, Algarve World
Cup, final round, at Algarve, Portugal (same-
day tape)
NFL
I p.m.
CBS - Regional coverage, doubleheader
FOX - Regional coverage
4 p.m.
FOX - Regional coverage
4:15 p.m.
CBS - Regional coverage, doubleheader
game
8:30 p.m.
ESPN - Kansas City at Houston
RODEO
I p.m.
NBC - PBR, Mohegan Sun Invitational, at
Uncasville, Conn.
TENNIS
3 p.m.
ESPN2 -ATP,Tennis Masters Cup, cham-
pionship, at Shanghai, China (same-day tape)
Monday
MEN'S COLLEGE BASKETBALL
2:30 p.m.
ESPN2 - Maui Invitational, first round,
Chaminade vs. Michigan St., at Lahaina, Hawaii
4:30 p.m.
ESPN2 - Maui Invitational, first round,
Gonzaga vs. Maryland, at Lahaina, Hawaii
7 p.m.
ESPN2 - Guardians Classic, semifinal,
West Virginia vs.Texas, at Kansas City, Mo.
9 p.m.
ESPN - Maui Invitational, first round,
Arizona vs. Kansas, at Lahaina, Hawaii
ESPN2 - Guardians Classic, semifinal,
Kentucky vs. Iowa, at Kansas City, Mo.
I 1:30 p.m.
ESPN2 - Maui Invitational, first round,
Arkansas vs. Connecticut, at Lahaina, Hawaii
NFL FOOTBALL
9 p.m.
ABC - Minnesota at Green Bay
FOOTBALL
College scores
Saturday
EAST
Army 38,Arkansas St. 10
Brown 52, Columbia 21
Colgate 34, Georgetown, D.C. 7
Cornell 16, Penn 7
Delaware 38,Villanova 13
Harvard 30,Yale 24,30T
Navy 38,Temple 17
SOUTH
Auburn 28,Alabama 18
Boston College 31, Maryland 16
East Carolina 34;, Marshall 29
Fla. International 38;W. Kentucky 35
FloridaA&M 26, Bethune-Cookman 23, OT
Georgia 45, Kentucky 13
N.C-. State 24, Middle Tennessee 3
North Carolina 24, Duke 21.
South Florida 31 , Cincinnati 16
The Citadel 22,VMI 14
Tulsa 38,Tulane 14
Vanderbilt 28,Tennessee 24
Virginia Tech 52,Virginia 14
MIDWEST
Cent. Michigan 31, Ball St. 24, OT
Iowa 52, Minnesota 28
Kansas St. 36, Missouri 28
Northwestern 38, Illinois 21
Notre Dame 34, Syracuse 10
Ohio St. 25, Michigan 21
Penn St. 31, Michigan St.22
Purdue 41, Indiana 14
SOUTHWEST
Arkansas 44, Mississippi St. 10
Baylor 44, Oklahoma St. 34
Texas St. 26, Sam Houston St. 23, OT
Texas Tech 23, Oklahoma 21
UCF 31, Rice 28
FAR WEST
Air Force 42, New Mexico 24
Boise St. 70, Idaho 35
Colorado St.31, UNLV 27
Montana St 16, Montana 6
Nevada 30, Utah St. 24
Utah 41, BYU 34, OT
Washington St. 26,Washington 22
NFL standings
AMERICAN CONFERENCE
New England
Buffalo
Miami
N.Y.Jets ,
Indianapolis
Jacksonville
Tennessee
Houston
Pittsburgh
Cincinnati
Cleveland
Baltimore
Denver
San Diego
Kansas City
Oakland
East
W L T
5 4 0
4 5 0
3 6 0
2 7 0
South
W L T
9 0 0
6 3 0
2 7 0
I 8 0
North
W L T
7 2 0
7 2 0
3 6 0
2 7 0
West
W L T
7 2 0
5 4 0
5 4 0
3 6 0
Pct PF
.556 203
.444 142
.333 162
.222 121
Pct PF
1.000 260
.667 180
.222 175
.111 124
Pct PF
.778 223
.778 210
.333 135
.222 100
Pct PF
.778 232
.556 252
.556 199
.333 202
NATIONAL CONFERENCE
Dallas
N.Y. Giants
Washington
Philadelphia
Carolina
Atlanta
Tampa Bay
New Orleans
Chicago
East
W L T Pct PF PA
6 3 0 .667 202 157
6 3 0 .667 254 167
5 4 0 .556 187 185
4 5 0 .444 193 205
South
W L T Pct PF PA
7 2 0 .778 250 166
6 3 0 .667 217 176
6 3 0 .667 176 156
2 7 0 .222 142 242
North
W L T Pct PF PA
6 3 0 .667 156 107
Minnesota
Detroit
Green Bay
Seattle
St Louis
4 5 0 .444 154 228
4 5 0 .444 160 173
2 7 0 .222 201 184
West ,
W L T Pct PF PA
7 2 0 .778 245 162
4 5 0 .444 224 262
Arizona 2 7 0 .222 167 240
San Francisco 2 7 0 .222 126 263
Today's Games
Detroit at Dallas, I p.m.
Carolina at Chicago, I p.m.
,Oakland at Washington, I p.m.
Arizona at St. Louis, I p.m.
Tampa Bay at Atlanta, I p.m.
Miami at Cleveland, I p.m.
Jacksonville at Tennessee, I p.m.
Philadelphia at N.Y. Giants, I p.m.
Pittsburgh at Baltimore, I p.m.
New Orleans at New England, I.
Thursday's Games
Atlanta at Detroit, 12:30 p.m.
Denver at Dallas, 4:15 p.m.
Sunday, Nov. 27
St. Louis at Houston, I p.m.
Carolina at Buffalo, I p.m.
San Diego atWashington, I p.m.
San Francisco atTennessee, I p.m.
Chicago atTampa Bay, I p.m.
Baltimore at Cincinnati, I p.m.
New England at Kansas City, I p.m.
Cleveland at Minnesota, I.
BASKETBALL
NBA standings
EASTERN CONFERENCE
Atlantic Division
W L Pct GB
Philadelphia 6 '4 .600 -
New Jersey 5 4 .556 1/2
Boston 4 5 .444 1 1/2
NewYork 2 7 .222 3 1/2
Toronto 0 9 .000 5 1/2
Southeast Division
W L Pct GB
Miami 6 3 .667 -
Washington 5 4 .556 I
Orlando 3 6 .375 3
Charlotte 3 8 .273 4
Atlanta 0 9 .000 6
Central Division
W L Pct GB
Detroit 8 0 1.000 -
Cleveland' 8 2 .800 I
Indiana 5 3 .625 3
Milwaukee 5 3 .625 3
Chicago 3 5 .375 5
WESTERN CONFERENCE
Southwest Division
W L Pct GB
San Antonio 7 2 .778 -
Dallas 6 2 .750 1/2
Memphis 6 3 .667 I
New Orleans 4 5 .444 3
Houston 3 6 .333 4
Northwest Division
W L Pct GB
Minnesota 5 4 .555 -
Denver 5 5 .500 1/2
Seattle 4 5 .444 1/2
Portland 3 4 .429 1/2
Utah 4 6 .400 I
Pacific Division
W L Pct GB
L.A. Clippers 7 2 .778 -
Golden State 6 4 .600 1 1/2
Phoenix 4 4 .500 2 1/2
LA. Lakers 4 5 .444 , 3
Sacramento 4 5 .444 3
Friday's Games
Indiana 93, Charlotte 85
Cleveland 102, Orlando 84
Boston 100,Toronto 93
Miami 106, Philadelphia 96
New Orleans 95,Atlanta 92
Phoenix 102, Utah 94
Denver 95, New York 86
Detroit 78, Houston 70
Sacramento 103, Milwaukee 82
Golden State 91, Portland 80
Seattle 98, Chicago 84
L.A. Clippers 97, L.A. Lakers 91
Saturday's Games
(Late Games Not Included)
New Orleans 98, Orlando 95
Cleveland 123, Philadelphia 120
New Jersey 89,Washington 83
Minnesota 102, Charlotte 89
Phoenix at San Antonio (n)
Detroit at Dallas (n)
Memphis at Utah (n)
Today's Games
Portland at New York, Noon
Miami'atToronto, I p.m.
Golden State at L.A. Clippers, 3:30 p.m.
Houston at Indiana, 6 p.m.
Memphis at Denver, 9 p.m.
Sacramento at Seattle, 9 p.m.
Chicago at LA. Lakers, 9:30 p.m.
Monday's Games
New Orleans at Philadelphia, 7 p.m.
Milwaukee at Utah, 9 p.m.
San Antonio at Sacramento, 10 p.m.
New Jersey at Golden State, 10:30 p.m.
College scores
Friday
EAST
Army 76, Polytechnic 37
Boston College 80, Dartmouth 61
Cent. Connecticut St. 76, Birmingham-
Southern 67
Colgate 78, Florida Atlantic 74
Georgetown 72, Navy 49
Massachusetts 67, Hartford 62
Northeastern 67, Brown 53
Seton Hill95, Urbana 86
SOUTH
Charleston Southern 82, Coll. of
Charleston 77
Clemson 84, Bethune-Cookman 55
Delaware 77,The Citadel 57
East Carolina 86, N. Carolina A&T 75
Georgia Tech 80, N.C.-Asheville 52
LSU 84, Southern U. 56
Maryland II I, Fairleigh Dickinson 85
N.C. State 91, Stetson 61
Old Dominion 74, Georgia 65
South Carolina 87,W. Carolina 62
South Florida 69,Alcorn St. 52
Tennessee 106, ETSU 83
UCF 68, Rollins 58
Vanderbilt 67, Jacksonville St. 46
Virginia 79, Liberty 44
Virginia Tech 74, Mount St. Mary's, Md. 62
W. Kentucky 83, Austin Peay 54
MIDWEST
Dayton 81 ,Tennessee Tech 60
E. Michigan 67, California 65
Evansville 91, Marshall 81
Illinois 90, S. Dakota St. 65
Indiana 99, Nicholls St. 65.
Indiana St. 84, Central St., Ohio 60
Kansas 90, Idaho St. 66
Kansas St. 83, Georgia Southern 58
Michigan 87, Cent Michigan 60
Minnesota 70, N. Dakota St. 57
Nebraska 80, Longwood 65
S. Illinois 65, Louisiana-Lafayette 47
Wichita St. 83, Panhandle St. 55
Wisconsin 80, Norfolk St. 51
Yale 69, Louisiana Tech 68
SOUTHWEST
Arkansas 107, Portland St. 69
Oklahoma St. 74,Texas-Arlington 65
UTEP 78,W.New Mexico 51
FAR WEST
Boise St. 90, Montana 69
Colorado 73, N.C.-Wilmington 54
Colorado St 70, N. Colorado 57
Connecticut 75, Pepperdine 56
Gonzaga 69, Idaho 60
Loyola Marymount 83, BYU 71.
Mississippi 69, S. Utah 62
New Mexico 56, S. Carolina St. 47
UNLV 108, Long Beach St.73
Utah 74,Texas St. 59
Weber St. 77, Montana-Western 66
TOURNAMENTS
2K Sports College Hoops Classic
Third Place
Wake Forest 78,Texas Tech 73, 20T
Championship
Florida 75, Syracuse 70
BP Top of the World Classic
First Round
Denver 80, Kennesaw St. 66
Southern Miss. 79, Lamar 76
Pepsi Blue & Gold Classic
First Round
Marquette 82, Rice 65
Winthrop 73, IUPUI 50
Tyler Ugolyn Columbia Classic
First Round
Columbia 64, New Hampshire 61
Troy 94, Quinnipiac 83, OT
William & Mary Classic
First Round
Holy Cross 85, High Point 71
William & Mary 89, Maine 55
AUTO RACING
Ford 400 lineup
At Homestead-Miami Speedway
Lap length: 1.5 miles
(Car number in parentheses)
1. (99) Carl Edwards, Ford, 176.051 mph.
2. (12) Ryan Newman, Dodge, 176.039.
3. (9) Kasey Kahne, Dodge, 175.896.
4. (5) Kyle Busch, Chevrolet, 175.558.
5. (6) Mark Martin, Ford, 175.273.
6. (41) Casey Mears, Dodge, 175.222.
7. (16) Greg Biffle, Ford, 174.989.
8. (42) Jamie McMurray, Dodge, 174.967.
9. (88) Dale Jarrett, Ford, 174.661,
* 10. (01) Joed Nemethek, Chevrolet,
174.605.
11. (07) Dave Blaney, Chevrolet, 174.588.
12. (24) Jeff Gordon, Chevrolet, 174.554.
13. (19) Jeremy Mayfield, Dodge,
174.537.
14. (29) Kevin Harvick, Chevrolet,
174.503.
15. (09) Reed Sorenson, Dodge, 174.430.
16. (31) Jeff Burton, Chevrolet, 174.351.
17. (17) Matt Kenseth, Ford, 174.261.
18. (25) Brian Vickers, Chevrolet, 174.126.
19. (0) Mike Bliss, Chevrolet, 173.99 1.
20. (20) Tony Stewart, Chevrolet,
173.851.
21. (18) Bobby Labonte, Chevrolet,
173.829.
22. (39) David Stremme, Dodge,
173.673.
23. (38) Elliott Sadler, Ford, 173.533.
24. (4) Todd Bodine, Chevrolet, 173.494.
25. (21) Ricky Rudd, Ford, 173.444.
26. (40) Sterling Marlin, Dodge, 173.282.
27. (22) Scott Wimmer, Dodge, 173.260.
28. (66) Kevin Lepage, Ford, 173.216.
29. (43) Jeff Green, Dodge, 173.033.
30. (77) Travis Kvapil, Dodge, 172.983.
3 I1. (10) Scott Riggs, Chevrolet, 172.844.
32. (48) Jimmie Johnson, Chevrolet,
172.723.
33. (50) Jimmy Spencer, Dodge, 172.612.
34. (49) Ken Schrader, Dodge, 172.601.
35. (45) Kyle Petty, Dodge, 172.458.
36. (97) Kenny Wallace, Ford, 172.436.
37. (2) Rusty Wallace, Dodge, 172.260.
38. (32) Bobby Hamilton Jr., Chevrolet,
172.068.
39. (7) Paul Menard, Chevrolet, 171.996.
40. (8) Dale Earnhardt Jr., Chevrolet,
owner points.
41. (15) Michael Waltrip, Chevrolet, owner
points.
42. (I I) Denny Hamlin, Chevrolet, owner
points.
43. (37) Mike Skinner, Dodge, 171.805.
Failed to Qualify
44. (92) Chad Chaffin, Chevrolet, 171.233.
S45.(51) Mike Garvey, Chevrolet, 170.875.
46. (00) Derrike Cope, Dodge, 170.735.
47. (80) Carl Long, Dodge, no speed.
48. (89) Morgan Shepherd, Dodge, no
speed.
HOCKEY
NHL games
Friday's Games
Atlanta 6, Philadelphia 5, OT
New Jersey 5, Montreal 3
Dallas 6, Columbus 3
Chicago 5, Calgary 2
Colorado 3,Anaheim 2
Saturday's Games
N.Y. Rangers 4, Carolina 3
Buffalo 3, Boston 2
Ottawa 5, New Jersey 4
Washington 5, Montreal I
St. Louis. 3, Detroit 2
Toronto 5,Atlanta I
Philadelphia 5, Pittsburgh 3
N.Y. Islanders 5, Florida 3
Nashville at Minnesota (n)
Chicago at Edmonton (n)
Phoenix at San Jose (n)
Colorado at Los Angeles (n)
Today's Games
Vancouver at Anaheim,.4 p.m.
Tampa Bay at Carolina, 7 p.m.
Boston at N.Y. Rangers, 7 p.m.
Columbus at Phoenix, 8 p.m.
Monday's Games
Nashville at Detroit, 7:30 p.m.
San Jose at Edmonton, 9 p.m.
Calgary at Colorado, 9 p.m.
MIDDLE SCHOOL ROUNDUP
TIM KIRBY/Lake City Reporter
Lady Falcons basketball
Members of the 2005-06 Lake City Middle School girls basketball team are (front row, from left)
manager Clidette Douglas, Shaniqua Henry, Carltonette Claridy, Vikie Hill, Teshiana Parker, Jershayla
Tucker and manager Chelsea Free. Back row (from left) are head coach Kathryn Terry, Don'netra
Adams, Simone Williamson, Kiarra Perry, Shaiwong Whittaker, Tiarra Perry, Cyntaria Anderson,
Jamesha Merritt and assistant coach Gina Free.
Al ~ i
~ a..
C .. .
A. .. . - .~
V..
\4i~dir 'C-
4~TV
~li~
TIM KIRBY/Lake City Reporter
Lady Wolves basketball
Members of the 2005-06 Richardson Middle School girls basketball team are (front row, from left)
Shakneaia Fulton, Elisea Ray, Briya McGuire, Sharmayne Edwards,Ishijel Hill, Angelique Shaw and
Jalisa Bradley. Back row (from left) are assistant coach Deborah Hill, Megan McGouyrk, Kharah
Norman, Da'Brea Hill, Ashley Walker, Katrina Goodbread, Jazmyne Bradley and head coach Sue
Ebert.
a~
~ ~,
~
A. ~. ~ w 4
-I
,A .4
~4~4
-4 -�
.~. ..p4< f-7
AA~
'- ^*
TIM KIRBY/Lake City Reporter
Wolves wrestling
Members of the 2005-06 Richardson Middle School wrestling team are (front row, from left) Kory Tate,
Seth Hamilton, Raven Tate, Josh Faulkner, Blake Dicks and John Windham. Second row (from left)
are Kenneth Shade, Brandon Osburn, Jordan DeJesus, Kyle Gambel, Bobby McNeil, Chris Polbos
and Michael Creech. Back row (from left) are coach Wes Parker, Jarred Ogburn, Ellis Ezeb, Blaine
Crews, Bobby Williams, Teddy Avinger and Andre Gonzales. Devontay Anderson and Jarred Coody
are also on the team.
Falcons place in preseason event
From staff reports
Lake City Middle School wrestlers placed
fourth out of 12 teams in the Chris Bono
preseason tournament. Orange Park Junior
High won the event.
Lake City's Ronnie Graham went 4-0. and
defeated Episcopal's Matt Green 12-10 in the
final to win the 85-pound weight class.
Jeffery Bell pinned River Springs's Tyler
Corbett to go 4-0 and finish first in the
171-pound weight class.
Brach Bessant pinned Orange Park's Chris
Dickerson in 42 seconds in the 189-pound final
to go 4-0 on the day.
Brad Abbott pinned Bartram's John Lent to
finish 3-0 and win first in the 215-pound weight
class.
Kurtis Phillips pinned Lakeside's Cody
Thomas in 25 seconds to finish 5-1 and place
third in the 152-pound weight class.
Justin Kennedy was pinned by Orange
Park's Bernard Chevalier in the second period
to finish in second place.
Jordan Shaw went 3-1 and was third in the
160-pound weight class.
COURTESY PHOTO
Lake City Middle School wrestlers who placed in
the Chris Bono preseason tournament are (front
row, from left) Kurtis Phillips and Ronnie
Graham. Second row (from left) are Brach
Bessant, Jeffery Bell and Jordan Shaw. Back row
(from left) are Brad Abbott and Justin Kennedy.
SCOREBOARD
----I
Page Editor: Tim �Kirby, 754-0421
A~tft
1
.1k�71- 2Z
Page Editor: Mario Sarmento, 754-0420 LAKE CITY REPORTER GOLF SUNDAY, NOVEMBER 20, 2005
Woods surges to
Dunlap Phoenix lead
Furyk is one shot
back, Duval slips to
a third-place tie.
By JIM ARMSTRONG
Associated Press
MIYAZAKI, Japan - Just
like last year, Tiger Woods is in
front at the Dunlop Phoenix -
with far less room for mistakes.
After trailing by a stroke in
each of the first two rounds,
Woods shot a 2-under-par 68
Saturday to take a one-stroke
lead over Jim Furyk. Woods is
at 10-under 200 while Furyk
shot a 70 for 201. David Duval,
whose last victory came at
this event in 2001, shot a 71
and was at 203.
Woods entered the final
round of last year's tourna-
ment with a 10-stroke lead and
shot a."
Woods carded five birdies
against three bogeys at the
Phoenix Country Club and
took advantage of a shaky
back nine by Furyk.
"The golf course was play-
ing difficult today," Woods
said. "I knew it was a day
when you had to play more
conservatively. Guys weren't
going to go, too low so a 2
under is a pretty good score."
Furyk, who held a one-
stroke lead over Woods enter-
ing the third round, bogeyed
the par-3 17th hole when he
hit a tee shot that went into
the greenside rough.
His second shot landed on
the edge of the green and he
two-putted for his third bogey
of the day.
"It was an interesting day,"
Furyk said.
"I was happy that I played
well on the front nine when it
was windy and the conditions
were tough, but disappointed
that I didn't play better after
the turn when the conditions
were better."
Furyk finished with a birdie
on No. 18 in the $1.7 million
tournament, the richest on
the Japanese tour.
Woods had a chance for an
eagle on the par-5 18th when
-he reached the green in two
Tiger Woods hits a shot during the fourth hole of the third round in
the Phoenix Tournament at the Phoenix Country Club in Miyazaki,
southern Japan on Saturday. After trailing by a shot after each of
the first two rounds, defending champion Woods shot a 2-under-par
68 Saturday to take a one-stroke lead over Jim Furyk at the
tournament.
"I just need to go
out there and
execute shots and
play well in order
to win. Jim
(Furyk) loves to
compete and
that's what makes
him tough to
beat."
- Tiger Woods,
Dunlap Phoenix leader.
but he left his first putt 7 feet
short and two-putted for birdie.
On the par-4 13th, Woods'
tee shot landed in the rough at
the side of the green. He
chipped on and then made a
10-foot birdie putt. Furyk
played it safe by laying up in
front of the green but had to
settle for par.
"It seems like every putt I
made today was downhill,"
Woods said.
"The greens here are fast
and the pin placings were real
tough today."
Duval, who shared second
with Woods entering the third
round and had a one-stroke
lead after the first round, is
tied for third with Japan's
Kaname Yokoo (68).
Duval, whose last victory
was at this event in 2001, had
three birdies and four bogeys.
Woods is. coming off two
runner-up finishes - at the
HSBC Champions in
Shanghai, China, last week
and the Tour Championship
two weeks ago.
He enjoyed* playing with
Duval and Furyk.
"We had a lot of fun out
there today," Woods said. "I've
played with Jim in the
Presidents Cup and with
David in the Ryder Cup and
World Cup, so it was a blast
(Saturday)."
Sorenstam clings to ADT lead
By DOUG FERGUSON
Associated Press
WEST PALM BEACH -
Annika Sorenstam had a two-
shot lead that she thought
should have been more as
she stood in the rough on the
18th hole Saturday in the
ADT Championship, staring
at a difficult lie below her feet
and a big water hazard next
to the green.
This had not been the best
of days.
She wanted to make sure it
didn't get worse.
'This was too dangerous,"
she said.
Sorenstam opted for cau-
tion, laid up and made bogey
on the par-4 closing hole for a
2-over 74 that cut another
stroke off her lead and ended
her streak of nine consecu-
tive rounds at par or better at
Trump International.
The good news?
She still had the lead by one
shot over Marisa Baena and
Liselotte Neumann heading
into the final round of the year
at a tournament where she is
the defending champion.
"She didn't birdie the last
hole," Neumann said.
"She ended up shooting
(2 over), which is a little bit
unusual for her. But, unfortu-
nately, that probably only
gets her more fired up for
(today). That's usually how it
works when she doesn't have
a good day. She really comes
back and plays great the next
Wales takes
the World
Cup lead
Associated Press
VILAMOURA, Portugal
- Wales' Bradley Dredge
and Stephen Dodd shot an 11-
under 61 Satuirday in better
ball to take a two-stroke lead
over England after the- third
round of the World Cup.
David Howell and Luke
Donald of England and the
Swedish team of Henrik
Stenson and Niclas Fasth
were tied for second after
rounds of 63 for a total of
25-under 191.
Raphael Jacquelin and
Thomas Levet of France
also carded a 61 to trail by
five strokes. Denmark shot.
63 and was six off the lead.
Americans Zach Johnson
and Stewart Cink had a 67 to
trail by 13 strokes.
ASSOCIATED PRESS
Annika Sorenstam waves after
sinking her putt on the 18th
green during the third round of
the ADT Championship at
Trump International'Golf Club
on Saturday.
day."
At least Neumann has a
chance, carried along by a
pure swing that kept bogeys
off her card on a gusty after-
noon, until her only bad
swing sent her tee shot into
the water on the par-3 17th for
a double bogey. She shot 71.
Baena can't believe she has
a chance, after an
unbelievable round.
She was tied for 20th when
the third round began in
Still
a
PVI.
stud.
SGentle T
No scalpel, no needles, nothing removed.
15 minutes, $0-$300 depending on income.
N o w .._'' . ..'" . : ' :...'-. .:_ '_- . '... -' : . - .. ... . .. .
Call tollfree: 1-866-VAS-TIME
(827-8463)
Douglas G. Stein, M.D., Certified, American Board of Urology
Over 12,000 vasectomies performed
www. vas web. corn
S* V ^ 'Y * ~ OVER MILLION
E OAK" DOLLARSS IN
FORD* IME CU RYE ' R..... ' INVENTORY
FAX (386) 362-7348 * 1-800-84-0609 r- F Si E TAL 5ALE RS , .
US 129 NORTH, LIVE OAK, FL - , T " . . .
H EDDIE ACCARDI SERVICE
MV47669
a" ~
ra
We service all makes and models
1$ 95 1
^^^^^^B ^B * 24 hours, .165 tinys n year
I Up o $75/Sivic calls,
3 calls per period
S Includes: Filter, up to 5 qts. * Services IncludIs:
i 0w30 Citgo, Chassis Tow.ni r J l. i neinn *
1 US or cia,
*Toll-Fro. Nocito,
*Up to.$7 5/Sorvice coli, 1
Lubrication, inspection of
all fluids, tire pressure & wear *Most Cars and light Trucks
visual brake inspection. * Must present cupon
.. . - - - . Expires .1130-05
;--- ---------- *
I Starting At:
_* Must present coupon * Expires 11-30-05
L .mms present. .mm . mmml
-I -- - -- - - -I -- - - -- --
I I
S95 * Most Cars
9 . n '95 & Light Trucks I
* Must present
coupon
1 Expires 1-30-05
,-- m--.--i-- m--ii
Starting At: $
*2 Wheels *Most Cars & 95*W
Light Trucks
* Must present coupon
Expires 11-30-05
age mm ggme e mmmm mm a I
AN ANtERK~fV
-- -UJFION
TUNE U
4 CYLINDER 74900
6 CYLINDER
8 CYLINDER $60
I Platinum extra I
* Must present coupon * Expires 11-30-05
L-m mmmmmm-----m-m---mmmJ
386-752-6933
90 West of 1-75, Lake City, Fl.
Service, Parts & Detail Department
Open Mon.-Fri. 7:30am-5:30pm, Sat. 8am-5pm
I
LAE IT RPOTE GLF
SUNDAY, NOVEMBER 20, 2005
Page Editor: Mario Sarmento, 754-0420
- - - - - -
. ... ...
*-
,-l r
ir,
20 mph gusts, and after
birdies on seven of her final
seven holes, wound up tied
for second with a 6-under 66
- the only round in the 60s
- that put her one shot
behind.
'That was one of the best
rounds of golf I've ever
played," Baena said.
Sorenstam was at 3-under
213, one of only five players
who remained under par.
"I'm glad to be in the posi-
tion I'm in, but I'm disap-
pointed with my round
today," Sorenstam said.
"I'm just looking forward
to (today), to the last day, and
give it all I've got."
Catriona Matthew had a 70
and was at 1-under 215, along
with Hee-Won Han (74).
It was an exasperating day
for most everyone else, best
illustrated by the way Cristie
Kerr left the course.
She three-putted from the
fringe on the 18th for a bogey
and a 76, then angrily tossed
her ball to the water.
But she left that short, and
had to run across the green
and into the rough to
retrieve' the ball, exiting
through a tunnel beneath
the bleachers to reach the
scoring tent.
Paula Creamer, the
19-year-old rookie of the
year, stumbled in the middle
of the back nine and wound
up with a 74 to finish at 1-
over 217, still only four shots
behind.
I
Page Editor: Mario Sarmento, 754-0420
LAKE CITY REPORTER SPORTS SUNDAY, NOVEMBER 20, 2005
Jags must deal with Titans
in chase for playoff berth
By TERESA M.WALKER
Associated Press
NASHVILLE, Tenn. - The
Jacksonville Jaguars have one
large obstacle - or perhaps
it's a mental block - to over-
come in their push for their
first playoff berth since 1999.
It's the Tennessee Titans.
Since joining the NFL in
1995, the Jaguars have, played
the former Houston Oilers
more than any other franchise
in a rivalry that started in
their inaugural game as AFC
Central foes and survived the
league's reorganization.
It was the Titans who kept
them from the Super Bowl in
2000 and have dominated this
series, winning six of the last
seven, 11 of the last 14.
Even banged-up last sea-
son, Tennessee still beat the
Jags, a loss that helped keep
them out of the playoffs
despite their first winning
record since, yes, 1999.
Today, the Jaguars (6-3) can
change that balance when
they visit the struggling
Titans (2-7) in what would be
one of the last big steps' in
their rebuilding process jump-
started with the hiring of
M
ASSOCIATED PRE
Jacksonville Jaguars receiver Matt Jones attempts to elude
Baltimore Ravens defenders during the second quarter, in a
Nov. 13 photo.
coach Jack Del Rio in 2003.
"I think we're starting to
find a little bit of an identity,"
Del Rio said. "I feel good
about that. I think we under-
stand where we are and where
we want to go."
The Jaguars finally seem to
be clicking on both offense
and defense, coming off a 30-3
victory over Baltimore that
was their first 30-point game
since Dec. 23, 2001. This
starts a three-game road
COLLEGE BASKETBALL
Hawaii shocks Spartans
Associated Press
HONOLULU -
Gators
wins 2K
Sports title
By DOUG FEINBERG
Associated Press
NEW YORK - Florida
coach Billy Donovan is learn-
ing more each game about his
young Gators.
Taurean Green had 23 points
and keyed a late second-half
run in Florida's 75-70 victory
over No. 16 Syracuse on Friday
night in the championship
game of the 2K Sports College
Hoops Classic on Friday night.
'They are young and eager
just to be out there playing,"
Donovan said. 'There's a lot of
unselfishness with them."
Florida (4-0) trailed 62-60
with 6:43 left before going on a
12-0 run. Green, named MVP
of the tournament, had eight
points during that span,
including a 3-pointer with 1:52
left to cap the spurt and give
the Gators a 72-62 lead, their
biggest of the game.
'Taurean Green made some
great plays," Florida coach
Billy Donovan said.
Green matched his career-
high set in the semifinals on
Thursday night against Wake
Forest.
"It's .a great feeling win-
ning," Green said. '"We just
wanted to move the ball and
get open shots."
This should have been a tran-
sition season for the Gators,
having lost David Lee, Anthony
Robertson and Matt Walsh,
who supplied 60 percent of the
offense on last year's SEC
Tournament championship
Steam to the NBA draft.
Instead, the Gators left New
York unbeaten.
The defending champion
Orange (3-1) were led by
Demetrius Nichols, who had a
career-high 24 points.
to Maui Invitational that starts
Monday and will see them play
three games in as many days.
Duke 84, Davidson 55
DURHAM, N.C. - J.J.
Redick started a rally late in
the first half and finished with)
29 points, leading; top-ranked.
Duke to an 84-55 victory over
Davidson on Saturday.
Redick shot 10-for-18,
including 4-for-6 from 3-point
range as the Blue Devils (3-0)
won their 19th straight in the
series.
ACROSS
1 Lion's quarry
4 Pasture sound
7 Navy noncom
10 Sun,
in Mazatlan
11 Daffodil starters
13 Regal emblem
14 Valiant's son
15 Sponger
16 Rush off
17 Brickworkers
19 Type of glue
21 Couple
22 Hired car
23 All uncles
26 First-string
team
30 Steps tothe
Ganges
31 Jo's sister
32 Forest mom
33 Albuquerque hrs.
34 Taconite
35 Lunchtime
36 Electronics
giant
39 Throws rocks at
swing against opponents wi
a combined'7-20 record.
"If you want to get in tl
playoffs, here's your chance
Jaguars linebacker Mil
Peterson said.
The Titans aren't ready
concede anything. Half th
squad may have been in hig
school when coach Jeff Fish
revved up his Titans for the
AFC championship victory 1
playing a Jaguars Super Bov
music video, but the ne
,^ :.,..
795 SW SR 47 *
386-7
A Member of North
40 Funny
41 How - things?
42 Tint again
45 Ghosts
48 Clinch a deal
49 Pitcher's dream
game (hyph.)
51 Close friend
53 Season opener
54 Draw forth
55 A Gershwin
56 Smallest cont.
57 Put away
58 Jerk
DOWN
Brownie's org.
Yardstick
Arm bone
Good, to Pedro
Pub orders
Kindergarten
trio
Salmon variety
Monaco's
Grand -
Not defy
Squanders
Titans can tell this game is
different.
"It's a great matchup," rook-
ie cornerback Reynaldo Hill
said. "I already know it is
because of how everyone's
starting to act."
Now the Titans are rebuild-
ing. They have lost six of their
last seven and were forced to
start a season-high six rookies
in a 20-14 loss at Cleveland on
Nov. 6. They are hoping the
bye last week will help today.
S "'That's a game we're always
pumped up for," Titans tight
end Erron Kinney said.
*ss "It's one of those good old-
fashioned games .that's fun to
watch no matter.. The records
go out the window. It's just
one of those games where
th everybody comes out to play."
The teams split last season.
he The reason Del Rio knows his
," Jaguars won't overlook a
ke 2-7 team is because one of the
Titans' five victories in 2004 was
to an 18-15 win in Jacksonville.
lis Jacksonville may be without
gh running back Fred Taylor for
er a second straight week, but
-ir Greg Jones proved he could
by switch from fullback by run-
wl ning for 106 yards against
*w Baltimore.
..
Welcomes Back,
Dr. Bobby E. Harrisao
Specializing in 0cogL.g,
Lake City, FL 32025
58-7822
SFlorida Cancer Care Network
Answer to Previous Puzzle
AA U E D N
ATC D MSG ABED
LODE APR TIDE
GOOF PLANTAIN
KELP ELO IC ECSTS
Gather wool
Proofer's word
"Sesame
Street" channel
Hamster's digs
Execs
PUZZLE ENTHUSIASTS. Get more puzzles in
"Random House Crossword MeaaOrnnibus' Vols 1 & 2.
10 11 12 13
!~ ." -^iiiii ^^ "^� j.ii� ^ g.'
24 Mr. Moto
remark
(2 wds.)
25 Back muscles
26 Actress
- Miles
27 Goddess'
statue
28 Play a horn
29 Urges
31 Half a
Melville title
35 Lack
37 Main rd.
38 Curie
daughter
39 Keep yakking
41 Take--!
42 Not green
43 Pantyhose
color
44 Whitetail
45 Whiskey
measure
46 Tale
of adventure
47 Paretsky or
Teasdale
50 Future fish
52 Youth
Tampa Bay always
plays Vick tough
By PAUL NEWBERRY
Associated Press
ATLANTA - The Tampa
Bay Buccaneers are one
team that doesn't mind facing
Michael Vick.
The Bucs have chased,
harassed and beaten up the
Atlanta Falcons quarterback.
They've come up with cover-
ages that confused
him, devised blitzes
that sent him fleeing
and generally made
one of the NFL's most
dynamic players look
ordinary.
"Yes; everybody
tries to look at our blueprint,"
defensive end Greg Spires
said. "But the thing is, we just
go out there and play. We
don't have a secret. We know
Vick is a scrambling quarter-
back, so were not going to
wait on him. We're going'to
shoot our guns at him."
The Falcons (6-3) will host
the Bucs (6-3) in a crucial
NFC South game today. Both
teams are one game behind
-3
Unscramble these four Jumbles,
one letter to each square,
to form four ordinary words.
FROM
�2005 Tribune Media Services, Inc,
ANGLD
NAUMUT
wwwijumbl co
FTFP5flO
first-place Carolina in what
appears to be the league's
strongest division. Both
teams know the winner of
this one will position itself
much more favorably for a
run at the playoffs.
Then there's the game
within the game: Vick vs. the
Bucs' defense.
The lowdown on Vick's
five career starts
against Tampa Bay:
He's completed only
47.4 percent of his
passes and averaged
less than 110 yards per
game through the air.
While he has run for
203 yards, averaging 5.6 per
carry, the Bucs have 14 sacks,
more than any team has
against the elusive
quarterback.
Tampa Bay set the tone in its
first encounter with Vick back
in 2002. He completed only 4 of
12 passes, ran once for 1 yard
and was sacked three times -
the last of the hits knocking
him out of the. game with a
sprained shoulder.
THAT SCRAMBLED WORD GAME
by Henri Arnold and Mike Argirion
Let's listen to our tape
and improve our tones
WHAT THE BARBER-
5HOP QUARTET
U5EP TO PIERFEITF
THEIR HARMONY.
Now arrange the circled letters
to form the surprise answer, as
suggested by the above cartoon.
Answer: A
(Answers tomorrow)
Saturday's Jumbles: JOINT AGONY FEUDAL SECEDE
Saturdays Answer: When the salesman told him what the dia-
mond cost, he turned - "STONE" DEAF
Kmat laa *Lae [t
1 7523733
11-21 � 2005 by NEA, Inc.
If you're building a new home
or business call us 1st!
MAYO TRUSS
COMPANY, INC.
Put Your "Truss" In Us!
Ph. (386) 294-3988
Toll Free (877) 558-6262
mayotruss @alltel.net
~i~8~di~
Page Editor: Mario Sarmento, 754-0420 LAKE CITY REPORTER SPORTS SUNDAY, NOVEMBER 20, 2005
Auburn whips 'Bama in Iron Bowl
Georgia clinches
SEC East title by
beating Kentucky.
Associated Press
AUBURN, Ala. - Bran-
don Cox passed for two first-
half touchdowns and
Auburn sacked Brodie
Croyle 11 times in Auburn's
28-18 victory against
Alabama on Saturday, the
Tigers' fourth consecutive
win in this bitter rivalry.
Auburn (9-2, 7-1
Southeastern Conference)
clinched at least a share of
the Western Division title
for the fifth time in six sea-
sons scor-
ing!"
No. 9 Ohio State 25.
No. 17 Michigan 21
ANN ARBOR, Mich. -
Antonio Pittman's 3-yard
run with 24 seconds left
capped an 88-yard drive and
gave ninth-ranked Ohio
State a win against No. 17
Michigan, clinching a share
of the Big Ten title.
Ohio State (9-2, 7-1)
closed the regular season
with six straight wins and
gave coach Jim Tressel his
fourth win in five games
against Michigan (7-4, 5-3).
The Buckeyes shared the
conference title with Penn
State, which beat them in
October and will get the Big
Ten's BCS bid.
The Buckeyes rallied for
the victory despite two
turnovers and a shanked punt
that led to scores, a missed
extra point and field goal, mis-
handled punt returns and two
pass interference penalties in
the end zone,.
Michigan was essentially
playing mistake-free football
when it led 21-12 midway
through the fourth quarter
before Ohio State quarter-
back.
No. 5 Penn State 31,
Michigan State 22
EAST LANSING, Mich.
- Joe Paterno and Penn
State locked up their first
Bowl Championship Series
bid after the Nittany Lions
defeated Michigan State to
win their first Big Ten title in
11 years.
Michael'Robinson ran for
90 yards and a touchdown
and passed for another, and
Alan Zemaitis had three
interceptions for Penn State
(10-1, 6-1).
Coming off a 4-7 season,
Penn State tied Ohio State for
the Big Ten lead but will get
the league's automatic BCS
bid because the Lions beat
the Buckeyes in October.
Michigan State (5-6, 2-6),
which began the season 4-0,
finished it with six losses in
seven games to post consec-
utive losing seasons for the
first time since 1991-92.
Win No. 353 gave Paterno
his first Big Ten title since
1994.
No. 6 Notre Dame 34,
Syracuse 10
SOUTH BEND, Ind. -
Brady Quinn threw two
touchdown passes and Leo
Ferrine returned an inter-
ception for a touchdown,
giving Notre Dame a victory
over Syracuse.
Darius Walker, who rushed
for 123 yards on 26 carries,
added a 3-yard TD run in the
fourth quarter. The Irish
struggled on offense, with
Quinn not as sharp as he has
been and receivers dropping
catchable balls, but were still
good enough to beat the
Orange (1-9).
Notre Dame (8-2) needs
to beat Stanford next week
to remain eligible for its first
Bowl Championship Series
berth since 2000.
No. 7 Virginia Tech 52,
Virginia 14
CHARLOTTESVILLE, Va.
- Virginia Tech dominated
archrival Virginia to keep
alive its hopes of gaining a
spot in the Bowl
Championship Series.
Two long weeks after get-
ting beaten convincingly by
No. 3 Miami, Cedric Humes
ran for 113 yards and three
touchdowns and Marcus
Vick threw for two more
scores as the Hokies beat
Virginia for the sixth time in
the last seven meetings.
Virginia Tech (9-1, 6-1
Atlantic Coast Conference)
also turned three Virginia
turnovers into touchdowns
and shut down Marques
Hagans and the Cavaliers
offense.
No. 14 Georgia 45,
Kentucky 13
ATHENS, Ga. - D.J.
Shockley threw four touch-
down, win-
ning their ninth straight in
the lopsided series.
Shockley, one of the sen-
iors honored before
Georgia's final home game
of the season, completed
17-of-31 for 159 yards in less
than three quarters. Bryan
McClendon caught two of
the TD passes.
Even when the Wildcats
(3-7, 2-5) held a 3-0 lead at
the end of the first quarter,
no one at Sanford Stadium
seemed too concerned.
The Bulldogs will be
appearing in the touch-
down run lifted Clemson to
its eighth victory in the last
nine tries against South
Carolina.
Steve Spurrier had hoped
to conclude a season of suc-
cess - the Gamecocks
broke long streaks of failure
with wins over Tennessee
and Florida this year - with
South Carolina's first victory
over Clemson (7-4) since
2001.
.-" , ,-
1.4-11 1,
MARIO SARMENTO/Lake City Reporter
Members of the fourth-place Williston Red Devils Midget League team
are (in alphabetical order): Tebin Cameron, Mike Cuello, Ben Culbreth,
Tobias Days, Brett Durden, Brandno Hernandez, Brian Hernandez,
Desmond Holmes, Chris Holt, Darrell Jent, D.J. King, Rahim Mentor,
Lance Montez, Luke Pallone, Detereon Ross, Dakota Williams and
Timothy Young. The head coach is Jermaine Pitts.
BOWL: Finals are at night
Continued From Page 1B
Tiner Tax Service Seminoles
22-6.
The Packers will face Quincy
at 7:30 p.m. on Wednesday. The
Eagles defeated Madison County
21-14 earlier Saturday.
The championship games
were originally scheduled for the
afternoon, but Quincy has a half-
day of school Wednesday, so
players and coaches would not be
able to make it to Lake City until
the evening.
This year, the Lake
City/Columbia County Parks and
Recreation Department and the
Columbia Youth Football
Association decided to tweak the
Memorial Bowl format.
In the past, the event was com-
prised of All-Star teams from
nearby areas. But this year, local
teams from surrounding areas
were invited to attend.
And Parks and Recreation
Department Athletic Director
Mario Coppock said the new for-
mat has been a success, citing
that in last year's all-star format,
Lake City had two teams and a
total of 50 players represented.
This year, that number swelled
to seven teams and 210 players.
'That's just tremendous,"
Coppock said.
It's been a long season for the
parents, players and coaches -
something Coppock plans to
rectify.
"When you consider we start-
ed in August, and we. finish this
Wednesday - that's a long
season," Coppock said.
"We can curtail this bowl a lit-
tle bit next year. If that means a
reduction in teams' and possibly
starting earlier and using another
venue, we will."
Coppock said Columbia High
has been receptive to the idea of
hosting some games at the high
school football field in the future.
As for taking the credit for the
success of the Memorial Bowl,
Coppock pointed out that it was a
team effort.
'The coaches, our community,
our cheerleaders, everybody
involved in this, the Parks and
Rec. Department, the mainte-
nance staff, the guys who take
care of the field, the concession
people - they've all been very
supportive," Coppock said.
That support will probably
intensify by Wednesday, when
fans from Quincy and Lake City
pack the Memorial Bowl for the
final time this youth football
season.
Arid you can .bet it will be all
about football then.
EXHILARATION. AND THEN SOME The award-winning CTS.
Car and Driver's Best Luxury SUV for the second straight year, the 255-hp
SRX V6 performance utility. Power to the people.
CADILLAC CTS & SRX
3^-
. . A'.
~34,~~ j
.�
~ g~.
!a~~
NEW 2006 CADILLAC 2.8L CTS NEW 2006 CADILLAC SRX V6
Low Mileage Lease Example
*299.n
36 months
S3,4 2 due at lease signing
for qualified lessees.
[o security deposit required.
Ta.,, title, license, dealer fees extra.
Mileage charge of $.25!mile over 30,000 miles.
Low Mileage Lease Example
$379,mo.
36 months
$4,254 due at lease signing
for qualified lessees.
No security deposit required.
Tax, title, license, dealer fees extra.
Mileage charge of $.25/mile over 30,000 miles.
BREAK
- 3.,.
3,
.-.
�2005 GM Corp. All rights reserved. Break Through� Cadillac� Cadillac badge CTS� GMAC� SRX�
LAE IT EPRTR SPORTS SUDYNOEBR2,05
Page Editor: Mario Sarmento, 754-0420
9P
LAKE CITY REPORTER NASCAR SUNDAY, NOVEMBER 20, 2005
Stewart at ease as he closes
in on NASCAR history
Only 13 drivers
have won multiple
NASCAR titles.
By JENNA FRYER
Associated Press
HOMESTEAD - On the
verge of racing into NASCAR
history, temperamental Tony
Stewart spent Saturday morn-
ing searching for a little
serenity. He went fishing.
Under a brilliant sun on a
calm lake inside Homestead-
Miami Speedway, Stewart was
seemingly at peace. Unlike his
tortured run to the title in 2002,
his second march has been
smooth with few distractions.
Needing to finish ninth or
better today to clinch the
Nextel Cup title, Stewart can
use the season finale to
cement his name among
NASCAR's elite. Only 13 driv-
ers have won more than one
championship, with Jeff
Gordon the only one among
active drivers.
"I think he already ranks
right up there with the big
boys," said A.J. Foyt,
Stewart's boyhood idol and no
slouch himself with four
Indianapolis 500 victories and
a Daytona 500 win. "He's got a
lot of winning left in him.
There aren't a lot of drivers
Edwards
ArT1i
like Tony Stewart anymore."
A winner at every level of
racing he's entered, NASCAR
was no different for Stewart
when he made the leap into
stock cars in 1999 following a
championship stint in the Indy
Racing League.
But the time demands, spon-
sor commitments and constant
scrutiny were difficult for
Stewart, a driver who relaxed
in a race car and seemed on
edge - sometimes even angry
- everywhere else.
He soon became known as
an extraordinary talent with a
history of derailing his own
success. He was his own worst
enemy, especially during his
2002 championship season.
NASCAR's bad boy was on
probation for punching a pho-
tographer, was ordered to
attend anger management
classes and was generally just
miserable. In the buildup to
the season finale, he was
dogged with questions about
what kind of champion he
would be and if his temper
would embarrass NASCAR
during his reign as the series
ambassador.
Three years later, Stewart
has finally figured out how to
cap his short fuse.
There have been few out-
bursts and fewer tantrums.
When baited, he was able to
summon the strength to walk
away.
"You know what? He's 34
years old nowv," said his moth-
er, Pam Boas. "It was time to
grow up."
Stewart is far from
NASCAR's new golden boy,
but his dealings with the
sport's leadership have been
far more pleasant these days.
"I've really noticed a differ-
ence in him," said chairman
Brian France. "He's different
when I talk to him now. He's
more approachable. He's got a
smile on his face. He doesn't
make comments anymore.
that you don't understand. He
takes things in stride more.
"Whatever he is doing
looks like it is helping on the
track, too, because he is deal-
ing with adversity and manag-
ing it better than he ever has."
Should Stewart win the
championship on Sunday, it
would be his second in four
seasons - and his third major
title since 1997's IRL crown.
But this championship is no
gimme, .although it is his to
lose.
He leads Jimmie Johnson
by 52 points, with Carl
Edwards and Greg Biffle not
far behind. Edwards won the
pole, Biffle - the defending
race winner - qualified sev-
enth. Stewart will start 20th
and Johnson was 32nd.
Still, all the contenders
have accepted that it will take
a colossal collapse by Stewart
and his team - which has
been nearly flawless during
the entire Chase for the cham-
pionship - for anyone but
Stewart to win.
"I think it will be a travesty
if Tony doesn't win a champi-
onship," rival car owner Jack
Roush conceded. "I hope that
he does."
So does Stewart, who does-
n't want this second title so
much for himself, rather as a
gift to the team that stuck with
him through his darkest days.
"It would mean everything
to me, that's why I want to win
it so bad this year," Stewart
said. "2002 was probably one
of the worst personal years of
my life, even though it was
one of the most gratifying pro-
fessional years of my life as far
as winning a championship."
"It will mean 10 times more
if we can do it this year with
the way the year has been. I
think the entire team will
enjoy it more," he added.
Stewart will have to keep
his composure through one
more weekend. He succeeded
on Friday when he lost control
of the No. 20 Chevrolet during
practice, keeping it off the
wall through two full spins.
ASSOCIATED PRESS
NASCAR driver Tony Stewart talks to reporters during a news
conference on Thursday in Miami. All Stewart has to do to win his
second championship is finish ninth or better in today's season
finale at Homestead-Miami Speedway.
-(IYAPL
WVWJXL A__ A__ _____________________
season's 1AM.
final pole -tHOUR
I I21O8,
I---------------------------
THIS COUPON EXTENDS THE MANUFACTURER'S WARRANTY (Usually
90 Days) TO A FULL 2 YEARS FROM ORIGINAL.DATE OF PURCHASE
* AVAILABLE ONLY ON ITEMS IN A FACTORY SEALED BOX * NOT SUBJECT TO PRIOR
SALE * OFFER IS FOR INDIVIDUALS, NOT BUSINESSES * SEE STORE FOR DETAILS
I .* EXPIRES 11130105
L --------------------------------------J
By MIKE HARRIS
Associated Press
HOMESTEAD - Carl
Edwards keeps doing things
nobody expects.
Edwards, nearing the end of
his first full season'in NASCAR
Nextel Cup with a mathemati-
cal chance to overtake, veter-
ans Tony Stewart and Jimmie
Johnson for the championship,
won the pole for today's
season-ending Ford 400.
Edwards edged qualifying
ace Ryan Newman for his sec-
ond career pole with a lap of
176.05'1
m p h . ' H
Newman,
who led all
drivers in
poles for the :
straight sea-
son, turned Edwards
a lap of 176.039. The time dif-
ferential between the two was
0.002-seconds.
"It's a great way to start the
weekend," said Edwards, who
trails leader Stewart by .87
points and is 35 behind
Johnson for the runner-up spot.
Stewart, the 2002 champion,
qualified 20th' and simply
needs to finish ninth or better
to close out his pursuers, no
matter what they do.
"If we can just go out there
and have a good run, we'll let
the rest of it take care of
itself," he said.
"We don't have to create
magic this weekend. We just
have to go out and have a solid
performance."
The day didn't start well for
Edwards, who woke to find
part of the floor in his motor
home, .parked in the infield at
the track, flooded.
"I left the darned sink run-
ning all night and the people
here at Homestead-Miami
Speedway are so gracious, they
leave you a water line hooked
up, so you never run out of
water," Edwards explained.,
Johnson, the runner-up
each of the past two years,
qualified 32nd on Saturday. A
year ago, he was worse off,
starting from the rear of the
field after qualifying so slowly
he had to use a provisional.
But Johnson was able to move
through the field and finish
second, losing the title to Kurt
Busch by just eight points.
JVC DVD PLAYER WITH
DIGITAL DIRECT
PROGRESSIVE SCAN
:.: OUTPUT, DOLBY�
? DIGITAL/DTS OUTPUT
AND MP3 PLAYBACK
- $59
TOSHIBA~
PORTABLE DVD PLAYER
WITH 7" 16:9 WIDE
SCREEN TFT LCD
MONITOR, DVD/MP3/CD/
CD-RW PLAYBACK AND
REMOTE
SAMSUNG 30" 16:9 WIDE
SSCREEN DynaFlat PHILPS!
MONITOR WITH HIGH
DEFINITION CAPABILITY, .. --."
MTS STEREOISAP, 20-WATT .
AUDIO SYSTEM AND '
REMOTE 5' .....9 "'""'i.
SAMSUNG 26" 399 -
DynaFlat" HDTV....3 3 1 w-,
PanasonIc
PANASONIC 42" 16:9 WIDE
SCREEN PLASMA EDTV
W/BUILT-IN ATSC/QAM/NTSC
TUNERS,' SURROUND SOUND,
PEDESTAL STAND & UP TO
4000:1 CONTRAST RATIO
*.TH42PD50U S1999
-S200
AFTER 1799*
10% OFF UE* W
HITACHI 50" UltraVislon�
CineForm- 1'6:9 LCD HDTV
WITH MTS STEREO/SAP
W/dbx", VirtualHDT, SRS�,
BBE� & HD DIGITAL
WINDOW' SPLIT SCREEN
s2388
-1239
10% OFF 2149*"
13" COLOR TV WITH
TRILINGUAL ON-SCREEN
DISPLAY, V-CHIP, SLEEP
TIMER, A/V INPUTS AND
FULL FUNCTION REMOTE
$57
19" TELEVISION . I... 89
PIONEER I 1Wx6 5 1 DIGITAL
A'V RECEIVER WITH DOLBYe
DIGITAL EXRDTS DECODERS,
DOLBY' PRO LOGIC lIx.
WMA9 PRO & REMOTE
. - i ,, 1 i , cal)
s167
PANASONIC 600-WATTS
TOTAL POWER 5-DVD/CD
HOIE THEATER SYSTEM
WITH 5 SPEAKER SYSTEM
PLUS SUBWOOFER, DOLBY�
DIGITAL/DTSOIPRO LOGIC II
AND UNIVERSAL REMOTE
#SCHT680
$248
FRIGIDAIRE ELECTRIC RANGE
WITH SUPER CAPACITY
5.3 CU. FT. -ELF-CLEANING
OVEN AND UPSWEPT
CERAMIC COdKTOP
Bake Cooking System Storage
Drawer. #FEF364DS
$399
I,.wv TAPR
TOSHIBA DVD/DVD-R/
VCD/CD/CD-R/CD-RW/
MP3/WMA VIDEO
PLAYER WITH
PROGRESSIVE SCAN
AND REMOTE
$59
TOSHIBA 14" FLAT
COMBO WITH MTS H '-
STEREO/SAP WITH dbix�,
DOLBY: DIGITAL/DTS,
JPEG VIEWER AND
REMOTE
PHILIPS 34" RealFlat' "
WIDE SCREEN HDTV
MONITOR WITH DOLBYz� - ' ** -
VIRTUAL SURROUND,
HDMI INPUT AND
EyeFidelity, SCAN I ..
SELECT $999
-100 TOSHIBAI ' ..
AFTER
10% OFF 899 * --
SAMSUNG 46" WIDESCREEN ..;'..-,'
HDTV WITH PLP7 ,,
TECHNOLOGY, DIGITAL ' . . .
CABLE READY WITH- .i ' tI.
CABLECARD-, SRS ' :
TruSurround XT�, MTS ;o' -' \JK '""" . ,*
STEREO AND REMOTE
-S200 ." :..7: "
% OSFF1799
SHARP 13" AQUOS LC "' ...
TV WITH 170/170* VIEWING .
ANGLES, 500:1 CONTRAST '
RATIO AND INCLUDES TABLE . . ..,�,
SHARP 26" LCD HDTV ..... ''
$1099 "_A10FT = s989oF ,'"-
RCA 27" TV WITH MTS
STEREO/SAP, TRILINGUAL
ON-SCREEN DISPLAY, ADJ.
COLOR WARMTH, PARENTAL
CONTROL AND REMOTE
s177
RCA 32" STEREO TV..$269
RCA 35" STEREO TV.. 399
SONY DUAL
CASSETTE TAPE DECK
WITH DOLBY� B NR
* High Speed Dubbing High Density
Permalloy Heads - Twin Tape Coun-
ters - LED Record Level Meters
* Fixed MPX Filter. #TCWE305
s97
SONY 700-WATTS TOTAL
POWER HOME THEATER
SYSTEM WITH 5-DISC
PROGRESSIVE SCAN DVD/
CD PLAYER, DOLBY�
DIGITAL/dtse, DOLBY� PRO
LOGIC II, 5-SPEAKER
SYSTEM PLUS SUBWOOFER
AND REMOTE
#HT485ODP
$298
ROPER 3.2 CU. FT.
SUPER CAPACITY PLUS
WASHER WITH 2 SPEEDS,
6 CYCLES, 3 WATER
LEVELS AND 3 WASH/
RINSE TEMPERATURES
#RAS6233PQ
$279
' *NET PRICE REFLECTS DISCOUNTAFTER 10% OFF INSTEAD OF 24 MONTHS FINANCING. SEE ABOVE.
; lakeCityMall Mr
REX 13 .-REX
I ..-.. i ;
LAKE CITY IN VALDOSTA GAINESVILLE
__ __ Lke Cityk Man - Hwy 90 Across from Vl Mall 1349 NW 23rd Avo
,s . -a.-
-.' ..
Jvc1
PROGRESSIVE. SCAN
DVD/6-HEAD HI-FI
STEREO VCR COMBO
WITH DOLBY�
DIGITAL/DTS, 3D
VIRTUAL SOUND, MP3
PLAYBACK AND
REMOTE
$89
PHILIPS DVD RECORDER/
PLAYER W/PROGRESSIVE
SCAN, DOLBY� DIGITAL
2.0 ENCODER, i.Link�
AND DVD Video, Video
CD, Super VCD, Audio CD,
MP3 CD, CD-R/RW,
DVD-R/RW
. 159
TOSHIRA .7' TheaterFineT'
HO MOI rOR PROJECTION TV
WVSPLIT SCREEN HD WINDOW"'
POP Mrs 1599
STEREOSAP
WI'db.' SR51 -s160
WOW-- AND
REMOTE $1 A'QO*
AFFEi. r ... OFF m "
TOSHIBA 51" HDTV ....
1 320-1 32--=1188
AFTER 10% OFF
SCNY .142 16.' WEGA 3LCD
REAR PROJECTION DIGITAL
CABLE READY HDTV WiBUILT-
IN HD TUNER.
DOLBY' DIGITAL $1999
AND SRS -S200
T.uS. round"`
_IT Se 1799*
SONY 55 WEGA3LCDHDTV..
'2999- '300 = *2699*
AFrER 10% OFF
WESTINGHOUSE 27" 16:9 HD-READY
LCD TV WIPIP, MTS STEREO/SAP,
1280x720 RESOLUTION, 600:1
CONTRAST
RATIO, 170o 888
VIEWING ANGLE -s89
& DVIIPC INPUTS
AFTER 10% OFF 799*
WESTINGHOUSE 30" LCD TV..
11099 -110= '989*
AFTER 10% OFF
JVC 27" TV WITH MTS
STEREO/SAP, HYPER
SURROUND SOUND,
BBE� HIGH DEFINITION
AUDIO, A/V INPUTS
AND REMOTE
$217
JVC 32" STEREO TV. .349
SONY 27"FD
TRINITRONR WEGA�
FLAT SCREEN TV WITH
SRSL 3D AUDIO EFFECT,
SPEED SURF-�, STEADY
SOUND
AND
REMOTE $299
SONY 3E FLAT SCREEN TV..
s888 - $89 = '799*
AFTER 10% OFF
FRIGIDAIRE 16.5 CU. FT.
REFRIGERATOR-
FREEZER WITH
GALLON DOOR
STORAGE
* 2 Sliding Shelves * Twin White
-,rispers * Static Condenser * White
Oalry Door. #FRT17B3AW
$339
ROPER 5.9 CU. FT.
EXTRA LARGE
CAPACITY ELECTRIC
DRYER WITH
3 CYCLES AND SIDE
SWING DOOR
#REX3514PQ
*179
JVC SUPER VHS-C & VHS ET
CAMCORDER WITH 25x OPTICAL/
1000x DIGITAL HYPER ZOOM AND
270� ROTATING 2.5" LCD MONITOR
* Digital Image Stabilizer * Digital Picturg
Improvement Technology � Integrated Auto
Video Light - 108 Combinations Of Digital Spe-
cial Effects & Scene
Tr.stlinls. A.. Ircf
TIMEX AM/FM DIGITAL CLOCK
RADIO
#T230
$788
KITCHEN UNDER CABINET
CD PLAYER AND AM/FM
STEREO DUAL ALARM CLOCK
RADIO WITH BATTERY BACK-UP
#JLK73348
___$48
SHARP 0.8 CU. FT. 800-WATT
MICROWAVE OVEN WITH
TURNTABLE, MINUTE PLUS",
4 COOK, 6 REHEAT & 4 DEFROST
OPTIONS
#R-209KK $59
3.2 MEGA PIXELS DIGITAL
CAMERA Wf3x OPTICAL ZOOM,
4x-DIGITAL ZOOM AND 1.5"
.-
COLOR-TFT
LCD
SWV.E,,L ,-, B, rlE . 1 _
.'. :, , , I . I ,,. ,
SDO Card Sup-
ports Up To e ,
512MB-Easy To
Use & Connect To
Computers - Compatible With
PC & Mac. $99
TECH CRAFT TV STAND WITH
SWIVEL BASE
* Sculpted Base And Top o Adjustable
ShelvesO Tempered Glass Doors Easy
Assembly � Jupiter Silver Finish. #CABS41
Electrnics Not Included $1,49 ,
80-WATTS TOTAL POWER AM/FM/
CD RECEIVER WITH DETACHABLE
FACE & 1.0 DIN CHASSIS
SElectronic Volume, Bass, Treble, Balance
Illuminated Presetttons Clock
SOne Pre-amp Oulput Hard Carry Case.
sCD12$38
PIONEER 45Wx4 CD RECEIVER
W/SUPERTUNER IIID� DIGITAL
TUNER, EEQ AND DETACHABLE
FACE SECURITY-
SLoudness & 3 EQ Controls
SMulticolor LCD With LED Backlight
SElectronic Faderl/Balance 8IFM/6AM
Memory Presets. #DEH-2700
MAILr-.IN REBATE 1 9
SONY MinIDVD HANDYCAMC CAMCORDER
W/DIGITAL STILL CAMERA, 2.5" HYBRID
SWIVELSCREENTM LCD MONITOR AND
20x OPTICAL/U80ox DIGITAL ZOOM
S1/6" Advancod HAD'M CCD Imager, 680K Pixels Gross,
340K Effective Carl Zeiss�
Varlo-Tossar Lens A M A
CA l~- l 3a6O-TB8 -074 B92.293-09�6 362-373-09 ' . . * SlSeadyShotE Pictur Vl
L . S _ BUSINESSES, CONTRACTORS OR SCHOOLS CALL: 1-800-528-9739 .08 - ., I 1W 1 Slabilizatlon.
OUR RAINCHECK POLICY: Occaslonally Due To Unexpected Demand Caused By Our Low Prices Or Delayed Supplier Shipmnts We Run Out of Advertised Specials. Should This Occur, Upon Request We Will Gladly Issue You A Rancheck. No Dealers Please. We Reser., i. r .. A . .... ...,.. . r ... ...., .. ....,,. .,
- Errors, Correctllon Nolltces For Errors In This Advertisement Will Bo Posted In Our Stores. * This Advorsoment Includes Many Reductions, Special Purchases And ems At Our Everyday Low Prce. * OUR LOW PRICES ARE GUARANTEED IN WRITING. IF YOU FIND ANY C0Si: A E.'.".EL E i.'.r .1.: ".N .. iR-L rIi . , ..... .. rl, d h .:.: 1 hiAl". j
SELL FOR LESS THE IDENTICAL ITEM IN A FACTORY SEALED BOX WITHIN 30 DAYS AFTER YOUR REX PURCHASE, WE'LL REFUND THE DIFFERENCE PLUS AN ADDITIONAL 25% OF THE DIFFERENCE.
*$*.
Page Editor: Mario Sarmento, 754-0420
LIQUID CRYSTAL DISPLAY
"'An PROJECTION
Liz
,, 71TM
MR
-' .
Lake City Reporter
Story ideas?
Joseph DeAngelis
News Editor
754-0424
jdeangelis@lakecityreporter.com
Sunday, November 20, 2005
BUSINESS
RESUMANIA
Max Messmer
wwwresumonia.com
Experience:
Domestic
engineer
"EXPERIENCE: Domestic
Engineer: accounts payable,
accounts receivable, teacher,
nurse, cook and
nutritionist."
We should all have such
diverse skills!
Following a prolonged
absence from the workplace
- whether to raise children,
take a sabbatical or tackle a
long-term pursuit - many
people wonder how best to
position the employment
gap when launching a
It's best to highlight any
skills and experience you
gained during your time
away from the traditional
work world and how these
new abilities would allow
you to excel in the job for
which you are applying.
In the same vein, include
hobbies or outside interests
on your resume if they relate
to the responsibilities of the
opening. For example, board
membership for a nonprofit
demonstrates leadership, a
necessary quality for
management-level roles.
The following job seeker
RESUMIA continued on 4C
JENNIFER CHASTEENILake City Reporter
Downtown bustles with activity along Marion Avenue.
Downtown gets new life
Downtown Action
Committee helps drive
revitalization of the area.
By LINDA YOUNG
lyoung@lakecityreporter., corn
Ambiance, uniqueness,
people, activities and
convenience are reasons
many business owners
use to describe what
drew them to locate or relocate in
downtown Lake City this year.
Those things did not happen by
chance. They are results of concerted
effort by the Downtown Action
Committee (DAC) to bring more foot
traffic to the downtown area.
"One of our goals is to bring more
people down here with more
activities," said Patty Kimler, board
member of DAC.
"It brings people downtown," Kimler
said.
And more people downtown brings
more business, both new and existing.
"We have a lot more walk-in traffic
here than we did where we were " said
Gwen MacLaren, owner of Creative
Stitches.
MacLaren moved her store from
West Duval Street to 273 N. Marion
Ave. in August.
Along with picking up new repeat
customers from the area, MacLaren
said she gained business from tourists
who aren't interested in the same
malls and stores that every other town
has.
'They want to see what is unique,
the real flavor of our town," MacLaren
said. "I think the downtown area is
really a magnet for attracting people to
our county."
"I really love it downtown,
everything is so convenient, with
everyone walking around, and my
customers have been so favorable
about the move, they really like it
down here," MacLaren said.
Sandy Greeley opened The
Household Consignment Store at
150 N. Marion Ave. two months ago.
She had a similar store in Port
Charlotte Harbor for three years and
lost everything a year ago in
Hurricane Charley. She came north to
DOWNTOWN continued on 4C
BISHOP REALTY, INC. 0
U.S. 90 West - Across from Wal-Mart * 752-4211
ColdwellBanker.com S
Independently Owned and Operated.........
Beautiful Country Home on 10 Acres. Paved
drive. 5BR/3.5 baths. Large rooms. Country
kitchen, Screened back porch. Deck, Detached
3 car garage. Pond with dock. Fencing.
$649,900. MLS#47993. Ask for Elaine K. Tolar
386-755-6488.
'' .. '*-I. . ,.
New Home, Great Neighborhood! 3BR/2BA,
1600 sq. ft., split plan, 2 car garage, open patio.
Only $176,900. Won't last long. Ask for Lori
Giebeig Simpson 752-2874 or Elaine K. Tolar
755-6488..
Handy Man's Special - This 3/1 needs some
TLC. Would make a great rental. $39,900.
MLS#48200. Call Kimberly Wynne @ 965-5630.
I"
Gorgeous Tri-Level Home on Large Lot. 4/3,
large master suite w/glamour bath. Newly
painted. Formal LR, DR, and Den w/FP. Great
location. $279,900. MLS#48438. Ask for Elaine
K. Tolar 386-755-6488.
In Townl Neat Home on large lot. 2BR/1BA
Hardwood floors. Chain link fence. Storage
building. New roof 1-04. $70,000. MLS#48689.
Ask for Elaine K. Tolar 386-755-6488.. $400,000. MLS#47074. Call
Hansel or Nell Holton for info 386-752-4211.
Beautiful wooded lot on paved road. 4.59 acres, close to town. Only $69,900. MLS#48852. Ask for Lori Giebeig
Simpson 752-2874.
3/2 SW MH, .28 acre lot on 441 North. Easy access to 1-10. $35,900. MLS#48045. Call Hansel or Nell Holton,
386-984-5791.
Investors! 40-56 acre tracts on CR 158 near the new Jai-Alai stadium in Hamilton County. $247,623 - $448,008.
Call Patti Taylor 386-623-6896.
Zondd R/IO - Turn of the Century, 1893 sq. ft. built in 1900. Current use as rental, 3B/2B, with a 1B/1B being
added. Has had new wiring. Frame with vinyl siding. Near everything downtown. $76,000. MLS#44063. Contact
Nell or Hansel Holton for more info, 386-984-5046.
UNIQUE FIND! 3BR/2BA on 4 oak-filled acres; WHAT A LOCATION! Mere feet off busy US-90 -
picturesque home w/large kitchen, spacious this bldg has plenty of visibility & loads of traffic;
family rm, Ig bedrooms w/huge walk-in closets! with a little TLC, this would be a perfect office-
Claw-foot tub & stained glass window in bath building $169,500 AVERY CRAPPS 984-5354
2,000 SqFt wkshop w/possible living qtrs; so many #48854
amenities! AVERY CRAPPS 984-5354 #46669
..,'�.. ,.LE
GREAT LOCATION in "Fields of McAlpin"! 5 acres
of planted pines on paved road at $69,900 CORI
DELIETO 965-2916 #48190
BEAUTIFUL hardwoods & granddaddy oaks on
1.25 acres in Lake City! A rare find in today's
market; well & septic already in place #48853
CORI DELIETO 965-2916
GREAT LOCATION for office on US-41;
currently used as residence - but zoned
commercial; 1,966 SqFt brick home on 1 acre
w/visibility & parking; 2 Ig outbldgs &
workshop in garage $280,000 AVERY CRAPPS
984-5354 #48548
420 FT of SANTA FE RIVER frontage! Boat ramp,
deck, 1,510 SqFt home plus 2 MH near Ft. White on
CR-138/SR-47; completely fenced 11.85 acres,
wkshop/carport MUST SEE! $650,000 KATRINA
BLALOCK 961-3486 #48611
DREAMS CAN COME TRUE on this gorgeous
6.84-acre lot in Hunter's Ridge! Scenic wooded
lot offers perfection when choosing your spot to
build your new home! AVERY CRAPPS 984-5354
#47889
Section C
V��
- I Is -�I- - - - - I I
I
Page Editor: Joseph DeAngelis, 754-0424
LAKE CITY REPORTER BUSINESS & HOME SUNDAY, NOVEMBER 20, 2005
Burn Rate
Q What's a "bum rate"? - P V,
Escondido, Calif.
A A company's burn rate refers
to how quickly it's burning
through cash. This isn't that much
of an issue for large, established
companies, but with small and
quickly growing enterprises, it's
valuable to look at their bum rate.
The number to examine is free c sh
flow, which is income from opera-
tions, less capital e'pendit ltre-.
For example, imagine that in its
most recent quarterly report, the
Rubber Chick. C.neriin- Co.
(ticker: CHEWY) reported "l-g.raie
$20 million in free cash lo\\. as its
cash balance fell t, S rr million from
Slti million in pthe pretiou', quLnrte.
II'- not unusual o[ lirms to lose
money in their carl\ ,- is butt it'
also what puts manim o1 them out of
businc., In CHE\\WY' case, at its
current burn i.Utc i'll LueC up its CLI
injust a Ic: qu:trieIs To st.s a ;ilie
it will iha,. to rduce spending lpos-
siHl' r'c ultlrin in -lo.,er gio'.th). or
tindJ 'me m ,re mone; Iperliaps
taking on debt or issuing additional
stock, diluting valuee t'r e\il.slng
hareholildersi
Q H\ .an. 1 rind the highest
S sitess toi cerrlticates of deposit
(CDs i online' D S . ain k-.,i
ti.-.
A Just ..lick oIu r _11
A % %.bankraWte.comlbrn/
rualhigh_hnme.asp .ond .'ui'll hC
able [0o find. Jin-ng oihei ilmngs,
somnie f lthe bet initeest raitc deals
fI! C Ds. nri'l itgee, aiuto I' , in, ajnd
pcrsn..il o.ins. Las't inine w
L h.IL t . %I \,.,IL I.o ld cam 4 - I I-[ 'r-
.ril i 'in .J ih',.[l lceilcent.Le field ) on
a 2* 5-',>.r CD from \&T B.ink in
.,ikfielJ. N 'OLI dOn't Ih.iLe 0LI
lh.e in ll, 't..ate .-,r cilN * hel e i ,'c 1
in'.est ir .I CD. so d�'ntl thl'rink tlIoI're
-tuctiL c'ceptin' ',our ne!'hborhoo'd
b.aik'; .. percent dil A little
I Lc.i.h IddlJ p.i\ off Leam.ri mior
.b til ..h:,rt-terrn s.i ngs .it
'n� '. iool.com/si'i in .s/I'inIs.htmi
(I, t. l; 't U .II '* ' 1,1 i't. ' i. ,..I Il d i
;., -- .. , .* I1 ,,', ,', '. / .
The Motley Fool
Our Mission: To Inform, to Amuse, and to Help You Make Money
I Fols ch
Bully fo
Most inves
kets," where
But many of
for them. Th
but if you're
money into t
next few dec
market in th
good thing.'
Warren Buff
explained:
"If you exi
saver during
years, should
or lower stock
period? Mar
\ IOlly E\en
to be net biu
\CLaIS Li.' c.on
,lock prices
the\ fall Thli
sense- OnlIx t
of equrile 1i
be hhippl ati
Prospect.\Ie I
prefer sinking
OL'li the Ih
better off bLi
"< . " I ,
SMALL TALK
Last chance for
2005 tax planning
By JOYCE M. ROSENBERG
AP Business Writer
NEW YORK - The next
few weeks will be a critical
time at small businesses - by
mid-December, companies
need to have their tax plan-
ning for the current year pret-
ty much complete. They also
need to be looking ahead to
2006.
For many businesses, the
two biggest year-end con-
cerns will be capital spending
and retirement plans - either
category can give your com-
pany a potentially large tax
deduction. But before you
make any big commitments
on equipment or a pension
plan, you need to be sure that
you're making a decision that
makes sense when you con-
sider how profitable your busi-
ness is, not just this year, but
next year also.
"You've got to look at your
tax bracket from year to year,
the whole picture," said
Jeffrey Berdahl, a certified
public accountant with Beard
Miller Co. in Allentown, Pa.
You also need to be certain
that you should never make a
year-end decision solely for
the purpose of lowering your
taxes - if you buy equipment,
for example, you should do so
because it fits into your overall
business plan.
Small businesses that buy
certain kinds of equipment
and put it into service by the
end of this year are eligible to
deduct the full amount of the
purchase price, up to a maxi-
mum of $105,000, rather than
depreciate it. Computers, cars
and manufacturing machinery
are among the kinds of equip-
ment that qualify for this
deduction; heating and cool-
ing systems are the kinds that
don't.
You can find out more about
the deduction, known as the
Section 179 deduction after an
Internal Revenue Code provi-
sions, by downloading IRS
Publication 946, "How To
Depreciate Property" from
the IRS Web Site,. Another
online resource is the CCH
Business Owner's Toolkit at, cch.com/tex
t/P07(underscore) 2930. asp.
Small business tax guides in
libraries and bookstores will
also explain the basics.
While retirement plans may
seem to be an obvious way for
a company to lower its tax bill,
accountants say many small
business owners don't get
around to starting one.
You can get a quick educa-
tion into retirement plans at
the IRS web site. The agency's
Publication 560, "Retirement
Plans for Small Business,"
spells out the differences
among plans such as
Simplified Employee Pensions
(SEPs), Savings Incentive
Match Plans for Employees
(SIMPLEs) and the more
complicated plans such as
Keoughs, defined contribu-
tion plans and defined benefit
plans.
But beware - while you
still have time to set up a SEP
plan, you've passed the dead-
lines that apply to some other
retirement plans. And, if
you're going to create a quali-
fied plan, you have a fair
amount of paperwork ahead
of you. Publication 560
explains the requirements.
Berdahl noted that many
companies at this point are
working on setting up plans
for early in 2006 rather than
trying to cram them in before
the end of the year. And that's
SMALL TALK continued on 4C
companies at fair or depressed
nr!iLi. A thift ft Iahe h prices. WhX/'i
a
What Is This Thing Called
The Motley Fool?
Remember Shakespeare?
Remember "As You Like It"?
In Elizabethan days, Fools were the only
people who could get away with telling
the truth to the King or Queen.
The 11 ,/ -. Fool tells the truth about
i 11.1':; i an hope' voiu'll laeneh all
,eM,''te IIF l,'T ake,
r Bear Markets hope to buy Wal-Mart shares at $60 Look Forward, Cyclical Love
and then $70, when you'd do better Perhaps it makes sense that United
stors fear "bear mar- buying at $50 and $40? If you plan Not Back Technologies (NYSE: UTX) doesn't
stocks fall or stagnate. to buy milk for the next 25 years, 10 . get a lot of love. Its big market
'us should be hoping years of falling milk prices would be This is definitely in the running opportunities - commercial con-
iat may sound illogical, welcome, right? (Unless you run a for my dumbest investment deci- struction, aviation and defense -
continually plunking dairy.) sion. Many years ago, I was think- are all cyclical businesses. But with
the stock market for the The stock'market is a place to ing about buying Microsoft. I had two out of those three major market
ades, a flat or falling invest money mrithJdicdal., aiding done my research, and categories ,tupp;.,cdl, on the way
e near future is a to your savings with the knowl- was all set to buy it when 2" up. ,houldn'r I.ITN be getting a little
Superinvestor edge that over the long run, the I heard a news report that -- - cyclical love right now?
ett once ti investor has usually been said that Bill Gates was The company's third-quar- L.
.ett once .rdce. investor has usually been 0 1orth n billion. At the time, that ter results reflected a mix of
to be a net r ed. Too often, it's instead made him either the richest or sec- organic growth and acquisitions.
pect to be a net portiayed as a get-rich-quick ond-richest person in the world.'l Revenue rose 17 percent as reported,
the next five - vehicle. The media presents a thought, wait a minute. B tilhe time with organic growth making up a
d you hope for a higher momentary drop in i the i.tck mar- I make a real money, Bill will be bit more than a third of that. Profit
ck market during that kel .is unambiguously bad ,Iand the worth around ^S billion. At that n margin also improved a bit for the
iy investors get this one posbihliy of a:i longer drop as rea- time, $25 billion was so totally out- period, and operating profits rose 22
though thlev are going son t, p.mc landish that I didn't buv the st,.ck. percent. Interest expense was sub-
ets of stocks tor many \ bc.ir mil.i ini'i g0ood f r Next time I heird about Bill's stantially higher, though, and net
e., they arc I.cted when eetr, body. though For those in or . health it was over $50 billion, and income growth declined to a still-
rise and depressed when nearing retirement. t lical to still going up. So the lesson is: It Asolid 18 percent for the quarter.
it, reaction make no piclci b.ll market .'.er the next doesn't matter how much money All of the company's operating
Suits posted positive operating
lh isc iho ill b sellers five.i iId 15.e.r,. somebody made (or lost) i terda.i. gro% ith The Otis business continues
S[the near future should Of cour e v.i.hi,-bii for this or tiat The onlb iling thal matters is how to see good growth in China, while
.eeslig tlock, ris'. u-mi'I ifflcct the market We can't much can be made in the Itiurrc -- the Pratt & Whitney and Hamilton
pnirchJsers. should rmui expect lt, change the future, but wve ' Gin r Olhiiad Ventura Calif. Sundstrand businesses are benefit-
ig prte.' mni_,hi do \%tell to a.diiiIt Lot\. \'re The Fool Responds: That's an ing from ongoing improvements in
Ong run. 'ouI're -impl\ think about ii. I'f 'iiol' 'ie -\CSt[in2 em ellent point, true of stocks, as the commercial aviation industry.
ying
d deed irkt epre.su ,OI the pa-i :e.ir. but that doesn't mean caih floor growth while actively buy-
. ... ******it ,orn't r a .id \ ou over the long ing its own shares. Given its mar-
-Name That Company haul. kets, the company would certainly
S Name hatCompany Do you have an embar- benefit if the much-talked-about
Think of luxury, and you should raising lesson learned the commercial building upswing takes
'~Think of luxry, andou should ho, i vBoilroot; those buildings will need esca-
a& 0 100 words (orl and lators and HVAC systems. Likewise,
t ,think of me. The brands I've amassed . : >/ 1 ts ? I ^ do ,bl is ms. Likewise,
nklof J 100 m e* The bad I'i e amsiedoords (or less) and onvoino strength in the aerospace
2 include wine and spirit names such send it to The .fl' i' Fool dlo My business would be good news.
as Dom Perignon, Hennessy, Chateau Dumbest Investment. Got one that Still, a big company with strong cash
d'Yquem and Veuve Clicquot Ponsardin; : -,I, /'Submit to My Smartest flow, solid market share and a good
Fashion names such as Kenzo, Givenchy, Investment. If we print vour:s you'll price doesn't come. by every day. Fools
fashion names such as Keazo, Givenchy, win a'Fool's cap! m nay want to dig deeper into this one.
Fendi, Donna.Karan, Marc Jacobs and ............................**.* <**.....*..******..****
Berluti; perfume and cosmetic names such LAST WEEK'S TRIVIA ANSWER
as, Christian Dior, Guerlain, Loewe, BeneFit Last Week's Trivia Answer: I'm the No. 1 pharmacy benefit manager, running the
, C sin Aor uerla nd e and nation's largest mail-order pharmacy. A Fortune 500 company with 2004 revenues of
Cosmetics, Acqua d Parma'and Fresh: and $35 billion, I serve about one in four Americans via mail order or through nearly 60,000
watch and jewelry names such as TAG Heuer retail phai nacies. I was spun off from Merck in 2003. I'm one of Fortune magazine's
S and Chaumet. I'm based in Paris and have a "Most Admired Companies." I recently bought Accredo Health for $2.3 billion, making
and Cha~umet. I'm based in Paris and have a me the nation's largest specialty/biotech pharmacy operation. I'll now better serve the
partnership with diamond titan DeBeers. Some of needs of patients with complex conditions requiring advanced treatment - increasingly
my companies date back to the 1700s, and one to . ith a qro.vinin variety of costly biotech medications. Who am I? (Answer: Medcc Health'
1593. VVWho am I? Write to Us! Send questions for Ask the Fool, Dumbest (or Smartest)
Investments (up to 100 words), and your Trivia entries to
.'.n ii .,'(,,' ' Si lJ it to i , .' unl i i ,on 'i ,i ,l l Fool, i o'L corn or via regular mail c/L tlii, re,\' op.ipri', attn: The Mc le., :
, I, !\ , . .,' !nto a / l .' .,- fbr' 'i' ,, :' FR ....l Sorry, we can't provide .'itmi'.i', inancial advice.
C,2005 TrHr MOTin Y FOOi/DI. T BY UNIVERSATI. PRESS SYNDICATE (FOR REuirSE11 I I 'I "i
w.
___ _I__ �~__~
[-Ask the ~I~
Page Editor: Joseph DeAngelis, 754-0424
LAKE CITY REPORTER BUSINESS & HOME SUNDAY, NOVEMBER 20, 2005
THEWEEK IN REVIEW * THEWEEK IN REVIEW -THEWEEK IN REVIEW * THEWEEK IN REVIEW *THEWEEK IN REVIEW
Weekly Stock Exchange Highlights
A NYSE Amex Nasdaq
7,634.58 +73.18 1,702.32 +5.74 2,227.07 +24.60
Gainers ($2 or more) Gainers ($2 or more) Gainers ($2 or more)
Name Last Chg %Chg Name Last Chg %Chg Name Last Chg %Chg
GaPacif 47.20+12.73 +36.9 Sinovacn 6.60 +1.54 +30.4 Chindex 6.47 +2.84 +78.2
Enterasy rs 13.10 +2.53 +23.9 Cenucolf 3.48, +.81 +30.3 Osound 3.94 +1.54 +64.1
BradyCps 38.90 +7.27 +23.0 TiensBion 5.11 +1.02 +24.9 SNBBcsh 17.20 +6.22 +56.6
DoralFinl f 10.27 +1.91 +22.8 Palatin 2.44 +.48 +24.5 ChinaTcF n 13.42 +4,71 +54.1
PinnclEnt 23.88 +4.14 +21.0 AdvMag 10.88 +2.13 +24.3 Astealntl 13.79 +4.81 +53.6
AAR 18.32 +2.77 +17.8 iMergent 4.75 +.86 +22.1 Firstwv 2.17 +.64 +41.8
PetGeos 27.96 +3.51 +14.4 MauiLnd 34.10 +6.10 +21.8 JJillGr 18,51 +5.24 +39.5
Elan 10.71 +1.31 +13.9 EmpireFh 2.73 +48 +21.3 ChinaESvn 6.04 +1.65 +37.6
SCPIE 19.81 +2.42 +13.9 CCAInds 8.58 +1.50 +21.2 DsgWthRch 5.85 +1.60 +37.6
NRGEgy 43.25 +5.05 +13.2 GlobeTeln 242 +.42 +21.0 eLoyalty 8.43 +2.12 +33.6
Losers ($2 or more) Losers ($2 or more) Losers ($2 or more)
Name Last Chg %Chg Name Last Chg %Chg Name Last Chg %Chg
C&D Tch 7.00 -2.70 -27.8 CVD Eqp 3.20 -1.32 -29.2 TRM Corp 7.11 -5,54 -43.8
BrMSqpf 364.00-117.50 -24.4 FarmTelh 2.14 -.60 -21.9 Ollgear 11.00 -6.06 -35.5
HancFab 4.69 -1.51 -24.4 AmOrBio n 5.81 -1.53 -20.8 TaroPh 14.01 -7.11 -33.7.
Xerium n 7.45 -2.22 -23.0 EasyGrd pf 3.20 -.83 -20.6 ProDex 2.50 -1.00 -28.6
CrwfdA 5.50 -1.42 -20.5 Arhyth 10.40 -2.21 -17.5 Q Med 8.75 -3.22 -26.9
Crwfd8 5.53 -1.42 -20.4 ACmtPT 19.75 -3.65 -15.6 Forward 18.28 -6.59 -26.5
1ystemax l 5.79 -1.30 -18.3 Nephros 2.03 -.37 -15.4 MovieGal. 4.60 -1.52 -24.8
Mosaic pf 84.38-18.37 -17.9 TriValley 9.97 -1.78 -15.1 SFBC Intl 23.98 -7.84 -24.6
EducRlty n 12.80 -2.76 -17.7 FusionTI n 2.50 -.40 -13.8 T--3F,,., 9.95 -3.00 -23.2
JoAnnStrs 12.42 -2.65 -17.6 FlightSaf. 2.73 -.42 -13.3 1 a...,i,:r 6.42 -1.93 -23.1
Most Active ($1 or more) Most Active ($1 or more) Most Active ($1 or more)
Name Vol (00) Last Chg Name Vol (00) Last Chg Name Vol (00) Last Chg
Lucent 1821805 2.84 +.06 SPDR 2802102125.13 +1.37 Nasd100Tr3978973 41.45 +.74
Pfizer 1724609 21.60 -.83 iShRs2000s137576566,89 +.46 Microsoft 3804125 28.07 +.87
GnMotr 1382493 24.05 -.43 iShJapan 1244294 12.55 +.21 Cisco 3085299 17.02 -.45
TimeWarn 1207268 18.03 +.21 SP Engy 1063966 49.04 +1.57 SiriusS 2507967 7.28 :.28
GenElec 1179341 35.75 +1.10 SemiHTr 734453 36.48 +.52 Intel 1967677 25.30 +.17
Motorola 1141275 23.86 +.30 SP Fncl 535086 31.70 +.09 SunMicro 1806549 3.75 +.05
FordM 1040233 8.40 +.43 OilSvHT 384220120.04 +5.62 JDS Uniph1640218 2.28 -.01
HewlettP 1006608 29.40 +.88 DJIA Diam 308360107.53 +79 Oracle 1569541 12.62 -.19
ExxonMbI 980559 58.25+1.73 BemaGold 249243 2.91 +.25 CpstnTrb 1377662 3.65 +.52
GaPacif 970025 47.20+12.73 AmOrBio n 188225 5.81 -1.53 Yahoo 1369608 41.54 +3.05
Diary Diary Diary
Advanced 1,892 Advanced 622 Advanced . 1,612
Declined 1,600 Declined 480 Declined 1,636
New Highs 289 New Highs 129 New Highs 311
New Lows 422 New Lows 117 New Lows 200
Total issues 3,570 Total issues 1,153 Total issues 3,335
Unchanged 78 Unchanged 51 Unchanged 87
Volume 11,457,147,065 Volume 1,545,801,683 Volume 8,826,472,399
Wkly Wkly YTD
Name Ex Div Last Chg %Chg %Chg
AT&T NY .95 20.35 +.47 +2.4 +6.8
Alltel NY 1.54 64.62 +1.19 +1.9 +10.0
ApidMatl Nasd .12 17.24 -.69 -3.8 +.8
AutoZone NY ... 88.10 +1.36 +1.6 -3.5
BkofAm NY 2.00 45.56 +.10 +0.2 -3.0
BellSouth NY 1.16 27.36 +1.19 +4.5 -1.5
BobEvn Nasd .48 24.88 +2.98 +13.6 -4.8
CNBFnPA Nasd .56 14.25 -.06 -0.4 -6.7
CSX NY .52 48.63 +1.69 +3.6 +21.3
CpstnTrb Nasd ... 3.65 +.52 +16.6 +99.5
ChmpE NY 15.00 +.04 +0.3 +26.9
Chevron NY 1.80 58.11 +1.93 +3.4 +10.7
Cisco Nasd ... 17.02 -.45 -2.6 -11.9
CocaCI NY 1.12 42.20 -.56 -1.3 +1.3
ColBgp NY .61 24.01 -.31 -1.3 +13.1
Delhaize NY 1.13 62.36 -.63 -1.0-17.8
Dellinc Nasd ... 29.85 +.45 +1.5 -29.2
DollarG NY .18 19.00 -.49 -2.5 -8.5
FPLGps NY 1.42 43.17 +1.40 +3.4 +15.5
FamDIr NY .38 23.24 -.78 -3.2 -25.6
FordM NY .40 8.40 +.43 +5.4 -42.6
GenElec NY 1.00 35.75 +1:10 +3.2 -2.1
GnMotr NY 2.00 24.05 -.43-1.8 -40.0
GaPacif NY .70 47.20+12.73 +36.9 +25.9
GdyFam Nasd .12 9.35 -.14 -1.5 +2.3
HCA Inc NY .60 51.68 +2.33 +4.7 +29.3
HomeDp NY .40 42.44 +.53 +1.3 -.7
iShJapan Amex .04 12.55 +.21 +1.7 +14.9
Wkly Wkly YTD
Name Ex Div Last Chg %Chg %Chg
iShRs2000 sAmex ' .84 66.89 +.46 +0.7 +3.3
Intel Nasd .40 25.30 +.17 +0.7 +8.2
JDS Uniph Nasd .. 2.28 -.01 -0.3 -28.0
JeffPilot NY 1.67 55.23 +.80 +1.5 +6.3
LowesCos NY .24 65.95 +3.98 +6.4 +14.5
Lucent NY .. 2.84 +.06 +2.2 -24.5
McDnlds NY .67 33.09 -.71 -2.1 +3.2
Microsoft Nasd .32 28.07 +.87 +3.2 +5.1
Motorola NY .16 23.86 +.30 +1.3 +38.7
Nasd1OOTrNasd .41 41.45 +.74 +1.8 +3.8
NY Times NY .66 27.98 -1.24 -4.2 -31.4
NobltyH Nasd .20 25.01 +1.54 +6.6 +6.5
OcciPet NY 1.44 75.05 +1.03 +1.4 +28.6
Oracle Nasd 12.62 -.19 -1.5 -8.0
Penney NY .50 54.37 -.35 -0.6 +31.3
PepsiCo NY 1.04 58.52 -.18 -0.3 +12.1
Pfizer NY .76 21.60 -.83 -3.7 -19.7
Potash NY .60 78.15 -5.85 -7.0 -5.9
Ryder NY .64 43.63 +.43 +1.0 -8.7
SearsHIdgsNasd ... 119.44 +4.64 +4.0 +20.7
SiriusS Nasd .. 7.28 +.28 +4.0 -4.5
SouthnCo NY 1.49 34.79 +.34 +1.0 +3.8
SPDR Amex2.39 125.13 +1.37 +1.1 +3.5
SunMicro. Nasd ... 3.75 +.05 +1.4 -30.4
SymantecsNasd 18.43 -1.18 -6.0 -28.5
TimeWarn NY .20 18.03 +.21 +1.2 -7.3
WalMart NY .60 49.50 +'50 +1.0 -6.3
Yahoo Nasd ... 41.54 +3.05 +7.9 +10.2
Sitack Eoot no lear. y= -- r~u S sF2.d Frr . L ~ z , C J,7,iiirr. r, - ....j, , .1 m.I c,:..h r,,aFh,, I I .I
A KIarEdHr -Ii T My c& W r, SC .rj.%.wh a,, 5*'Amu jrC4 Reso~,,r.d a r. aI, , ,,,iqxc,:r
sr , . . ,-?rer, ,,,,bs1 ... = ,.n ; .r . i = .r .
M~uial Fund FoojnlnotS,.-.., ~ .Acchbod,.rk .JLtoi,:, .' nAmpp ~'1.,~ :~r. Funrd- i msfl.1 . :.
Gaines amo Lomeu si . ...n"M IM am . .4tn.*WI M"d I lMW+ Mi"q Mo tAmies .my Wi "m
iii ., -, 11 jo. �'I '". i*,,,, , d . r. Sour~e: T e-irs ...ova, u F, . i . 3. r.-. ,sr,,on.,,ai
Currencies
Last Pvs Day
Australia 1.3650 1.3607
Britain 1.7169 1.7189
Canada 1.1905 1.1870
Euro .8501 .8511
Japan 119.15 118.72,
Mexico 10.6440 10.6290
Switzerind 1.3150 1.3171
British pound expressed in U.S. dollars. All oth-
ers show dollar in foreign currency.
11,000
-10,500
-10,000
.9.500
J AS 0N D
MUTUAL FUNDS
Total Assets Total Return/Rank Pct . Min Init
Name Obj ($Mlns) NAV 4-wk 12-mo 5-year Load Invt
Vanguard Idx Fds: 500 n SP 68,144 115.30 +6.0 +7.3/A -1.5/A NL 3,000
American Funds A: GwthFdA p XG 67,771 30.32 +6.1 C +10.3/A 5.75 250
American Funds A: InvCoAA p LV 64,884 31.92 +4.8 +7.0/C +21.9/C 5.75 250
American Funds A: WshMutA p LV 61281 31.30 +i5.3 +5.4/E +30.5/B 5.75 250
Fidelity Invest: Contra n XG 54,996 64.99 +6.8 +18.5/A +32.6/A NL 2,500
PIMCO Instl PIMS: TotRet n IB 53,284 10.52 -0.5 +2.1/A +40.8/A NL 5,000,000
Fidelity Invest: Magellan n LC 50,671 108.28 +6.1 +6.8/C -8.4/C NL 2,500
Dodge&Cox: Stock XV 49,203 137.89 +5.7 +12.4/B +80.2/A NL 2,500
American Funds A: IncoFdA p MP 47,316 18.37 +2.9 +5.0/C +54.4/A 5.75 250
i,,;.,-ax, iFund: :CaplnBldAp MP 42,303 53.01 +2.5 +7.0/B +64:5/A 5.75 250
,,,,,,' .r, ;,,,-1 : EupacA p IL 40,820 40.54 +6.0 +19.3/A +35.0/B 5.75 250
. ran,Ir.jil ii F.i: Instldx.n SP 38,086 114.37 +6.0 +7.4/A -0.8/A NL 5,000,000
4:.",, .' , .: 4: CapWGrA p GL 37,562 36.75 +5.3 +14.9/B +66.3/A 5.75 250
S'r,j,.ad dTial ' ." j'ri, n SP 36,311 115.31 +6.0 +7.4/A -1.1/A NL 100,000
F b L,, .I ,,'rr.- MV 35,303 40.86- +4.8 +11.7/C +125.1/A NL 2,500
American Funds A: NewPerA p GL 34,478 29.66 +5.2 +10.9/C +29.5/B 5.75 250
American Funds A: BalA p . BL 32,234 18.17 +3.5 +4.3/D +47.5/A 5.75 250
Fidelity Invest: Grolnc LC 30,693 37.80 +5.1 +5.1/D -1.7/B NL 2,500
Fidelity Invest: Diverintl n IL 29,613 31.79 +5.9 +17.1/B +53.1/A . NL 2,500
Vanguard Idx Fds: TotStk n 'XC 28,384 '30.03 +6.1 , +9.0/C +5.8/C NL 3,000
Vanguard Fds: Wndsll n LV 28,199 32.33 +4.8 +9.9/B +38.8/A NL 3,000
Vanguard Fds: Welltn n BL 25,621 31.26 +3.6 +8.4/A +44.1/A NL 3,000
Fidelity Invest: Equtlnc n El 25,347 54.09 +6.6 +7.9/C +23.1/D NL- 2,500
Fidelity Invest: GroCo n XG 25,341 62.59 +8.3 +15.5/B -15.5/C NL 2,500
Fidelity Invest: Puritan BL 23,657 18.80 +4.0 +5.8/C +29.5/A NL 2,500
Dodge&Cox: Balanced n BL 23,102 81.89 +3.4 +8.3/A +69.1/A NL 2,500
American Funds A: FundlnvA p LV 22,710 34.62 +5.7 +11.1/A +22.0/C 5.75 250.
BL -Balanced, El -Equity Income, GL -Global Stock, HB -Health/Biotech, IB -Intermediate Bond, IL -International Stock, LC -Large-Cap Core, LG
i.. i i:,- ' .= '"''... L _. , ', .1 ,i r :i- I3ond Blend, MT -Mortgage, SP -S&P 500, SS.-Single-Stlate Muni, XG -Multi-Cap Growth.
ui,, ,.,,,,-, , ,,, ,, I, , , l. , ,,,,, ,, ,i,,i .. .... i. , Rank: How fund performed vs. others with same objective: Ais in top 20%, E in bottom
1:, 1,,,h. in . i,,,,,7i.,i , i. ,- ,- ,,11.,-l',,1. 1 ,,,,, E . b, , ii i� .E i. NS= i ...a,--i.~. INS =Fundnotinexistence.Source: Lipper, Inc.
New York Stock Exchange
Wkly YTD Wkly
Name Div YId PE Chg %Chg Last
ABB Ltd ... ... ... +.22 +48.8 8.42
ACE Ltd .92 1.7 16 -.16 +30.4 55.74,
AESCp If ... ...22 +.43 +17.0 16.00
AFLAC .44 .9 16 -.51 +22.1 48.64
AK Steel ... ... ... -.02 -49.6 7.30
AMR ... ... ... +.78 +60.3 17.55
AT&T .95 4.7 8 +.47 +6.8 20.35
AUOptron .38 2.8 ... -.20 +4.6 13.74
AbtLab 1.10 2.7 19 -2.83 -12.3 40.90
AberFitc .70 1.1 23 +1.34 +29.9 61.01
Accenture .30 ... 18 +1.36 +3.4 27.92
AMD ... ... ... +1.98 +21.4 26.74
Aeropstl ... ... 15 -.72 -27.9 21.23
Aetna s .04 ... 19 +5.11 +52.0 94.79
Agilent ... ... 53 +1.98 +44.9 34.91
AirTran ... ... ... -.25 +49.0 15.94
Albertsn .76 3.1 18 -.02 +4.2 24.88
Alcoa .60 2.3 18 -.28 -16.0 26.40
AllegTch .24 .8 11 +.49 +42.5 30.87
Allergan .40 .4 36 +.07 +23.7 100.25
Allstate 1.28 2.2 22 +.48 +10.9 57.35
Alltel 1.54 2.4 15 +1.19 +10.0 64.62
Altria 3.20 4.5 15 -3.60 +16.6 71.25
Amdocs ... ... 20 -1.04 +2.9 27.01
AmHess 1.20 .9 13 +3.75 +56.2 128.64
AMovilLs .10 .4 ... +1.27 +60.5 28.01
AEP 1.48 4.1 12 +.01 +6.3 36.51
AmExp .48 1.0 16 -.54 +1.1 49.91
AmIntGp If .60 .9 16 -.07 +2.3 67.17
AmTower ... ...... -.52 +40.4 25.84
Ameriprs n .44 1.1 ... +1.01 +7.9 39.92
Antadrk .72 .8 11 +1.83 +35.7 87:97
AnalogDev .24 .6 35 -.13 .+.9 37.27
Anheusr 1.08 2.5 17 -.02 -14.9 43.17
AnnTaylr ... ... 85 +1.79 +41.3 30.42
Aon Corp .60 1.6 18 +1.39 +54.7 36.90
Apache .40 .6 9 +1.30 +30.6 66.04
Aquila ... ... ... -.03 -5.4 3.49
ArchCoal .32 .5 ... -1.72 +96.3 69.78
ArchDan .34 1.4 17 +.19 +9.9 24.51
ArvMerit .40 2.8 83 -2.48 -37.0 14.10
AstraZen 1.03 2.3 18 +.16 +24.1 45.15
AutoNatn ... ... 9 +.30 +5.0 20.17
AutoData .74 1.6 26 +.27 +7.6 47.70
Avaya .. . 6 +.35 -32.0 11.69
Avon .66. 2.6 13 -1.68 -33.5 25.72
BJ Svcs s .20 .6 25 +1.77 +48.3 34.52
BMC Sft ... ... 89 -.01 +10.3 20.52
BakrHu .52 .9 24 +2.84 +30.5 55.67
BkofAm 2.00 4.4 11 +.10 -3.0 45.56
BkNY .84 2.6 16 -.23 -3.1 32.39
BarrickG .22 .8 38 +.69 +10.7 26.80
Baxter .58 1.5 32 -.10 +11.6 38.55
BearingP If... ... ... +.10 -8.5 7.35
BeazrHms .40 .6 7 +7.80 +41.9 69.14
BellSouth 1.16 4.2 12 +1.19 -1.5 27.36
BestBuys .32 .7 21 -1.13 +16.1 45.91
Beverly ... ... 16 -.10 +28.2 11.73
Biovail .50 ... ... -4.33 +33.8 .22.12
BlockHRs .50 2.0 14 +1.17 +3.9 25.45
Blockbstr .04 ... ... -.51 -62.8 3.55
Boeing 1.00 1.5 23 +1.60 +29.3 66.95
BostonSci ... ... 38 +.65 -26.6 26.10
Brinks .10 .2 20 -.47 +17.7 46.53
BrMySq 1.12 5.0 16 +.21 -13.0 22.30
. BurlNSF .80 1.2 18 +2.35 +40.9 66.66
BurlRsc .40 .6 12 +2.40 +59.1 69.22
CIT Gp .64 1.3 '13 +1.00 +9.7 50.25
CMS Eng ... +.13 +32.2 13.81
CSX .52 1.1 11 +1.69 +21.3 48.63
CVSCps ,15 .5 23 -.16 +19.5 26.92
CablvsnNY ... ... ... -.31 -.3 24.83
Calpine ... ... ... -.01 -56.3 1.72
CapOne .11 .1 12 +3.52 +.2 84.34
CapitlSrce 2.50 ... 19 -.49 , -4.6 24.48
CardnlHIth .24 .4 24 -.08 +5.1 61.14
CaremkRx ... ... 27 -1.74 +26.6 49.90
Carnival .80 1.5 20 -.52 -7.5 53.28
Caterpil s 1.00 1.7 16 +2.41 +17.5 57.28
Wkly YTD Wkly
Name Div YId PE Chg %Chg Last
ASML HId ...
ATI Tech ...
AVI Bio ...
Activisn s ...
Adaptec
AdobeSys...
Adtran .36
AkamaiT
AlteraCp ..
Alvarion ...
Amazon
AEagleO s .30
Ameritrade ...
Amgen
AmkorT
Amylin
AppleC s
ApIdMatl .12
AMCC
AriadP
Arotech
Arris
Atmel .
Autodsk s .03
BEA Sys ...
BeaconP
Biogenldc ...
Brdcom
BrcdeCm If ...
CMGI
CNET
Cadence.
CpstnTrb ...
ChartCm ...
ChinaTcFn ...
CienaCp
Cisco . ...
CogTech
... +.21 +17.2 18.66
...+1.13 -13.0 16.86
.. +.20 +47.2 3.46
54 -1.51 +33.7 15.18
... +.06 -38.7 4.65
30 +.59 +6.8 33.50
28 -.34 +56.7 29.99
8 -.03 +30.4 16.99
26 +.89 -11.2 18.38
... +1.09 -33.9 8.77
40 +5.30 +8.3 47.98
13 -1.81 +.5 23.66
28 +.24 +58.4 22.52
30 +2.12 +29.7 83.22
... +.46 -7.2 6.20
... +2.58 +56.6 36.59
41. +3.02 +100.5 64.56
24 -.69 +.8 17.24
... +.07 -35.2 2.73
... -.86 -17.0 6.17
... -.17 -74.8 .41
28 -.55 +15.1 8.10
... +.29 -24.7 2.95
33 -8.22 +2.1 38.74
27 +.12 +6.8 9.46
... +.27+127.2 2.09
... +.42 -31.9 45.33
62 +2.93 +49.6 48.28
20 +.89 -42.5 4.39
33 +.04 -35.7 1.64
... +.64 +34.1 15.06
62 +.30 +21.7 16.80.
... +.52 +99.5 3.65'
... -.04 -45:1 1.23
.. +4.71 -12.4 13.42
... +.20 -18.9 2.71
20 -.45 -11.9 17.02
50. +2.69 +14.2 48.36
Name
Wkly YTD Whly
Div YId PE Chg %Chg Ladi
Cemex 1.18 2.1 ... +3.32 +56.3 5,.':'
Cendant .44 2.4 16 +.55 -18.8 $ i,
Centex .16 .2 8 +4.63 +23.8 , '
Ceridian .... ... 57 +.19 +24.1 "-',
Chemtura .20 1.6 ... +.63 +3.6 --
ChesEng .20 .7 16 +1.30 +74.1 2-?
Chevron 1.80 3.1 9 +1.93 +10.7 .i 11
Chicoss ... ... 49 +1.39 +97.8 5.0,,
ChungTel 1.48 8.4 ... +.15 -16.4 -.,
CircCity .07 .4 56 +.50 +27.8 9 9'?
Citigrp 1.76 3.6 11 +.41 +.5 s 4i
CitzComm 1.00 7.9 32 +.15 -7.8 -- i
ClearChan..75 2.3 25 +.96 -3.0 3:',,
Coach ... ... 32 -.18 +22.1 C0- 4%,
CocaCI 1.12 2.7 19 -.56 +1.3 4-' .
Coeur ... ... ... +.36 +12.7 4 .4
ColgPal 1.16 2.2 24 +.23 +5.3 535.
CmcBNJs .44 ,1.3 18, -.53 +2.8 . 309
CVRD 1.13 2.6 11 +.65 +47.2 1-,
CompAs .16 .6 92 -.70 -8.4 2L 44
CompSci ... ... 13 +2.00 -2.7 54 8.C
ConAgra 1.09 4.8 14 -.67 -22.8 .2- :"
ConocPhil s1.24 2.0 7 -1.27 +43.3 6.-3
ConsolEgy .56 1.0 10 +.95 +42.5 S.P",
ConEd 2.28 5.0 18 +.20 +4.1 4 ':
ConstellAs ... ... 18 -.13 +1.0 2,'? 4
ConstellEn1.34 2.5 17 +1.59 +20.3 E ,",
CtlAir B ... ... .. +.06 ..+17.9 15.96
Corning 40 +.84 +78.0 20.95
CntwdFn .60 1.7 10 +.49 -6.4 34.65
CrwnCstle ... ... -.96 +61.3 26.84
CrowhHold ... '.. 47 +1.14 +34.6 18.49
CypSem ... ......+.05 +36.4 '16.00
DR Hortn-s .36 1.0 9 +2.25 +15.1 34.81
DTE 2.06 4.7 28 +.14 +1.0 43.54
DanaCp if .04 .5 ... +.35 -57.4 7.38
Deere 1.24 2.0 10 -.78 -15.2 63.10
Denburys ... ... 24 -.35 +64.3 22.55
DevonE .30 .5 11 +3.56 +50.6 58.61
DiaOffs .50 .9 45 +.31 +39.4 55.83
DicksSprt ... ... 30 +3.04 -2.3 34.33
DirecTV ... ... ... -.12 -17.9 13.74
Disney .24 1.0 20 -.66 -9.4 25.20
DollarG .18 .9 18 -.49 -8.5 19.00
DomRes 2.68 3.5 27 +2.38 +14.4 77.48
DoralFin If .32 3.1 3 +1.91 -79.1 10.27
DowChm 1.34 '2.9 9 -.85 -6.4 46:35
DukeEgy 1.24 4.6 17 +1.08 +6.4 26.95
Dynegy .... ... ... -.12 +.2 4.63
ETrade ... . ... 18 -.15 +28.3 19.18
EMC p ... ... 26 +.31 -6.0 13.98
EOG Ress .16 .2 17 +4.73 +93.0 68.87
Edisonlnt 1.00 2.3 12 +1.97 +37.0. 43.87
EIPasoCp .16 1.4 +.14 '+7.4 11.17
Elan ... ...... +1.31 -60.7 10.71
EDS .20 .8 ... +.21 +4.8 24.20
Emulex ... ... 25 +.68 +19.7 20.16
EnCanas .30 .7 .... +.82 +52.5 43.50
ENSCO .10 .2 31 +2.71 +48.7 47.21
Enterasy rs ... 14 +2.53 -9.0 13.10
EqOffPT 2.00 6.5 +.33 +5.4 30.68
Exelon 1.60 3.1 16 +1.01 +16.7 51.43
ExxonMbl 1.16 2.0 11 +1.73 +13.6 58.25
FPLGps 1.42 3.3 19 +1.40 +15.5 43.17
'FannieM If 1.04 2.2 8 -.15 -33.0 47.74
FedExCp .32 .3 21 +1.80 -.7 97.80
FedrDS 1.00 1.4 12 +.71 +20.3 69.53
FidINFn s 1.00 2.6 7 -1.21 +22.6 38.01
FirstData .24 .6 20 +2.08 -.6 42.28
FirstEngy 1.80 3.8 18 +.39 +18.6 46.84
FishrSci ... ... 25 -.35 +3.4 64.49
FlaRock s .60 1.2 25 +.71 +27.5 50.60
FootLockr .36 1.7 13 +1.51 -20.0 21.55
FordM .40 4.8 9 +.43 -42.6 8.40
FredMac 1.40 2.3 ... -.91 -15.7 62.12
FMCG 1.00 1.9 14 +.40 +34.4 51.37
Freescale ... ... 40 -.83 +45.8 25.99
FreescB n ... ... ... -.71 +42.3 26.12
Frontline 11.90 27.0 3 -.08 +16.2 44.02
Wkly YTD Wkly
Div YId PE Chg %Chg Last
Comcast
Comc sp
Compuwre...
Conexant ...
Costco .46
CredSys
DRDGOLD ...
Danka
Dellnc
DobsonCm ...
eBay s
EchoStar 1.00
ElectArts ...
Emdeon
EvrgrSr ...
ExpScripts ...
ExtNetw
FifthThird 1.52
Finisar
Flextrn
Foundry
GenBiotc
Genta ...
Genzyme
GileadSci ...'
GloblInd ...
Google
HudsCity s .28
HumGen
IAC Inter s ...
IntgDv
Intel .40
Intellisync
Intersil .20
Intuit
JDS Uniph...
JetBlue
J JillGr
... 44 -.01 -19.1 26.92
... 43 +.19 -19.4 26.48
... 28 +.17 +29.5 8.30
... ... +.13 +19.1 2.37
.9 23 -.21 +2.9 49.81
... ... -1.24 -17.4 7.56
... ... +.06 -7.8 1.42
... ... +.02 -47.8 1.65
... 23 +.45 -29.2 29.85
.. ... +.59 +289.5 6.70
... 61 +.78 -23.2 44.67
... 8 +.34 -21.6 26.08
... 49 -1.03 -5.4 58.38
... 43 -.33 -5.3 7.73
... ... +1.37 +174.6 12.00
... 32 +1.69 +107.9 79.45
... 51 +.34 -22.7 5.06
3.8 16 -.86 -14.5 40.46
... ... +.10 -21.9 1.78
... 26 -.08 -27.6 10.00
... 37 +1.90 +5.3 13.86
... ... -.05 +29.3 .97
... 5 -.11 -19.3 * 1.42
... ... +.67 +32.8 77.12
... 40 +.28 +55.4 54.36
... 30 -.46 +50.1 1.2:44
89 +9.81 +107.6 400.21
2.4 26 -.26 +.9 11.59
... ... +.36 -20.4 9.57
... 14 +1.38 -5.9 28.87
... ... +.56 ; +2.2 11.81
1.6 , 19 +.17 +8.2 25.30
-.13 +149.5 5.09
.8 51 +.77 +55.4 25.96
... 27 +4.56 +21.4 53.42
... ... -.01 -28.0 . 2.28
... 92 -.53 -17.0 19.27
... ... +5.24 +24.3 18.51
FIt d%-itrnIon-. I vI'-% dl lr .-Ii
t% I N r t j tt ' s vllt 1 . 1,t 1 it im
It 'rdil I is s'rrt -in ditt**,.
uxcudS. Gtd Lu klduu'i ti.
Steve Jones Robert Woodard
Investment Representatives
Edward Jones
846 SW Baya Ave.
Lake City, FL 32025-4207
(386) 752-3847
Member SIPC
Wkly YTD Wkly
Name Div YId PE Chg %Chg Last
GameStp ...
Gannett 1.16
Gap .18
Gateway
Genentch
GenMills 1.32
GMdb32A 1.12
GMdb32B 1.31.
GMdb33 1.56
Genworth - .30
GaPacif .70
Glamis
GlaxoSKIn 1.53
... 31 +.36 +62.2 36.27
1.8 12 -2.41 -23.1 62.79
1.1 13 -1.39 -19.2 17.06
... 49 -.17 -50.9 2.95
91 +2.22 +78.1 96.96
2.8 14- -.34 -4.0 47.74
5.1 ... -.76 -12.9 21.86
8.2 ... +.11 -30.6 16.01
9.0 +.02 -34.7 17.40
.9 13 +:72 +21.9 32.92
1.5 22+12.73 +25.9 47.20
... ... +.10 +29.0 22.13
3.1 ... -3.61 +5.3 49.92
GlobalSFe .60 1.4 46 +.63 +33.5 44.20
GoldFLtd .11 .7 ... +.66 +24.1 15.49
Goldcrpg .18 .9 33 +.56 +34.7 20.26
GoldWFn ..32 .5 14 +1.49 +5.4 64.72
GoldmanS 1.00 .8 13 +1.58 +26.5 131.58
Goodyear ... ... 8 +.54 +10.0 16.13
GrantPrde ... ... 36 +1.84 +91.8 38.46
GtAtPc ... ... 3 +.75 +180.5 28.75
Guidant .40 .6 47 +3.44 -13.8, 62.15
HCA Inc .60 1.2 16 +2.33 +29.3, 51.68
Hallibtn .50 .8 31 +5.31 +56.4. 61.37
HarleyD .64 1.2 16 +.15 -11.9 53.54
HarmonyG ... ... ... +.90 +35.7 12.58
HarrahE 1.45 2.2 20 +.85 +.6 67.32,
HItMgt .24 1.0 16 +1.68 +2.2 23.22
Heinz 1.20. 3.4 17 -.25 -10.0 35.08
HewlettP .32 1.1 36 +.88 +40.2 29.40
Hilton .16 .8 20 -.39 -8.2 20.87
HomeDp .40 .9 16 +.53 -.7 42.44
Name
JnprNtw
KLA Tnc .48
KnghtCap ...
Kulicke
LTX
LamRsch
Level3
LexarMd
LinearTch .40
Loudeye
MCI Inc s 6.00
MarvellT
Maxim ..50
Medlmun
Mercintr If
Microsoft .32
MillPhar
MnstrWw ...
NABI Bio ...
Nasd100Tr .41
NetwkAp ...
Novavax
Novell
Novius
Nvidia ...
OSI Phrm ...
OmniVisn ...
OnSmcnd ...
Oracle
PMC Sra ...
PRG Schlz ...
ParmTc
Patterson
PattUTI .16
Paychex .64
Powrwav
Qualcom .36
RF MicD ...
i. 1
. -- _ - -_ - _
Edward Jones ranked "Highest in
Investor Satisfaction With Full Service
Brokerage Firms"
J.D. Power and Associates 2005 Full
Service Investor Satisfaction Studys. -
Study based on responses from 6,637.
investors who used one of the 20 firms
profiled in the study.
Wkly YTD Wkly
Name Div YId PE Chg %Chg Last
HonwIllnti .83 2.3 20 +.33 +2.7 36.38
HostMarr .44 2.5 53 +.02 +.9 17.46
IMS HIth .08 .3 21 +.55 +5.3 24.45
INCO .40 .9 10 -1.36 +19.2 43.83
IntegES ... ... ... -.05 -90.7 .45
IntcntlEx n ... . ... ... -10.8 35.00
IBM .80 .9 19 +3.22 -11.0 87.77
IntlGame .50 1.8 24 +.71 -17.0 28.54
IntPap 1.00 3.2 11 +1.31 -26.5 30.89
Interpublic ... ... ... -.11 -26.5 9.85
JLG .02 .. 22 +3.59+119.7 43.12
JPMorgCh'1.36 3.6 19.. -.23 -2.5 38.03
JanusCap .04 .2 41 -.54 +11.2 18.70
JohnJn 1.32 2.1 .20 +1.96 -1.4 62.55
KB Homes .75 1.1 8 +1.24 +28.2 66.92
Kellogg , 1.11 2.5 19 -.30 -.2 44.57
KerrMcG .20 .2 10 +1.53 +46.8 84.83
KimbCIk 1.80 3.0 18 +.79 -9.1 59.84
KingPhrm ... :.. 17 +.58 +28.9 15.98
Kinross g If ... ... ... +.59 +6.3 7.48
KnightR 1.48 2.4 9 -.17 -6.9 62.33
Kohis ... ... 21 -1.45 +.1 49.23
LSI Log ... ... . .. +.07 +45.4 7.97
LaQuinta ... .... .. +.02- +20.5 10.95
LearCorp 1.00 3.5 +.56 -52.6 28.89
LehmBr .80 .6 13 +1.38 +45.2.127.00
LennarA .64 1.1 8 +.98 +.4 56.90
Lexmark ......13 +.25 -47.2 44.85
LibtyMA .;. ... ... -.25 -17,2 7.73
LillyEli 1.52 3.0 43 .-.64 -11.3 50.34
Limited .60 2.8 19 +.30 -6.0 21.65
LaPac .50 1.8 8 +1.85 +1.3 27.08
Wkly YTD Wkly
Najme Div YId PE Chg %Chg Last
Lu'-nt ... ... 11 +.06 -24.5 2.84
L,,:.a.jell .90 3.5 17 -.92 -9.9 26.07,
P.J&NA .56 2.1 16 +.12 -6.1 26.47
Et.E I.If .. ... 17 +2.17 +69.8 22.50,
r.i1-r.AlMirs ... ... 27. -.25 +6.0 38.55
[.l.rvl . .54 1.2 18 -.94 -3.0 46.84
t.lramion 1.32 2.2 10 +2.10 +56.9 59.02
Marir.M .68 2.3 ... +.45 -9.8 29.68
.1,r.E E .... ... 15 +.17 -29.2 14.51
r.1:,: . .80 2.7 15 +.73 -18.4 29.82
r.15i:;yEn .16 .4 28 -2.50 +7.3 37.50
f.Lln.y .50 3.3 15 -.18 -22.2 15.17
Mis.Tube ... ... 11 +1.31 +18.7 35.97
U.1i...r ... ... ... +.13 -28.3 3.80
,.Gr,nvHs .66 1.3 24 +.95 +15.3 52.76
.l,:1- ison .24 .5 ... +2.53 +53.8 48.38
r.l,: ie .... ... 37 +.68 +3.5 29.95
t,,3,:)Hlth ... ... 27 +.10 +27.3 52.95
,,3..:is .12 .4 23 -2.04 -21.0 27.75
-leITnic .39 .7 37 -.55 +13.2 56.25
&,ii. 'nFnc .80 2.4 18 -.42 +6.6 33.15
t.ltrr.eILyn .80 1.2 14 +.35 +12.5 67.26
f.lILie .52 1.0 8 +.70 +26.1 51.08
f.r,:,:,nT ... ... 53 +.53 +14.8 14.18
r.1Ilil p 2.51 6.0 59 +2.24 -34.8 41.59
.liliuUFJ. .08 .6 ... -.04 +30.1 13.30
r.1mn iitl .40 1.5 5 +.32 -31.1 26.64
Monsnto .68 .9 78 +3.65 +32.3 73.47
Montpelr 1.44 7.3 ... +1.30 -41.1 19.66
MorgStan 1.08 1.9 16, *.22 ... 55.50
Motorola .16 .7 15 +.30 +38.7 23.86
NCR Cps ... . ... 11" -.13 -14.1 29.75
NRG,Egy , . ... ... +5.05 +20.0 43.25
Nabors ... ... 20 +3.99 +33.9 68.66
NatlCity 1.48 4.4 9 -.25 -10.2 33.72
NatGrid 2.17 4.6 ... +1.04 -1.9 47.08
NOilVarco ...
NatSemi ,12
NY CmtyB 1.00
NewmtM .40
NewsCpA .12
NewsCpB .10
NiSource .92
NobleCorp .16
NobleEn s .20
NokiaCp .44
Nordstrm s .34
NorflkSo .52
NortelNet ...
NoFrkBc .88
Nucor , .60
OcciPet 1.44
OffcDpt
Owensll
PG&ECp 1.20
PPLCps 1.00
PaylShoe ...
PeabdyE s .38
Penney .50
PepsiCo 1.04
Pfizer .76
PhelpD 1.50
Pier 1 .40
PioNtrl .24
PlacerD .10
Pridelntl If :..
Prudent .78
PulteH s .16
QuantaSvc ...
QkslvRess ...
QwestCm ....
Raytheon .88
ReliantEn ..
RiteAid
Rowan .25
SBC Com 1-.29
SLM Cp .88
Safeway .20
StJude
... 34 +3.24 +67.3 59.04
.5 26 +2.16 +43.8 25.82
5.9 13 +.53 -17.8 16.90
.9 46, +2.02 +4.3 46.33
.8 ... -.42 -22.2 14.51
.7 49 -.33 -20.8 15.20
4.3 15 -.28 -5.4 21.56
.2 39 +3.15 +41.0 70.15
.5 14 +1.01 +22.1 37.63
2.5 ... +.16 +10.7 17.34
.9 22 -.12 +60.5, 37.51
1.2 15 +1.48 +21.2 43.87
... ... -.12 -11.8 3.06
3.3 13 -.10 -6.8 26.90
.9 8 -1.51 +21.0 63.34
1.9 6 +1.03 +28.6 75.05
... 40 +.48 +63.0 - 28.29
S10 +1.66 -4.8 21.56
3.4 9 +.72 +7.5 35.77
3.4 17 +.52 +10.7 29.48
... 32 +.88 +75.6 21.60,
.5 30 -2.09 +82.8 73.94
.9 17 -.35 +31.3 54.37
1.8 25 -.18 +12.1 + 58.52
3.5 19 -.83 -19.7 21.60
1.1 7 +6.26 +32.6 131.19
3.4 69 -.49 -40.4 11.75
.5 15 +2.83 +43.2 50.25
.5 92 +.35 +11.9 21.11
.., 46 +1:45 +43.9 29.55
1.0 12 +2.12 +38.2 75.96
.4 8 +2.25 +27.7 40.75
... ... -.40 +76.1 14.09
... 49 +3.51 +56.5 38.38
... ... +.20 +11.9 4.97
2.3 21 +.71 -2.6 37.81
... .... +.01 -32.0 9.28
... 10 +.27 -2.2 3.58
24 ,+1.92 +35.3 35.05
5.3 21 +.43 -5.4 24.38
1.7 15 -.72 -.2 53.26
.9 18 , -.02 +18.4, 23.37
..., 37 ... +21.4 50.91
Name
Wkly YTD Wkly
Div .YId PE Chg %Chg Last
StPaulTrav .92 2.0 17 +.43 +25.3 46.45
Saks ... ... 21 -.99 +20.3 17.46
Salesforce ... ... ... +1.29 +69.7 28.75
SaraLee .79 4.4 33 -.18 -25.6 17.96
SchergPI .22 .1.1 ... -:02 -5.7 19.70
Schimb .84 .9 31 +3.01 +42.0 95.05
Schwab .10 .7 33. -1.04 +25.1 14.96
SciAtlanta .04 .1 26 +3.25 +27.7 42.15
SeagateT .32 1.9. 9 +1.06 -1.7 16.98
SempraEn 1.16 2.7 11 -.89 +15.4 42.34
SierrPac ... ... 18 +.36 +22.9 12.90
Smithlnts .24 .7 26 +2.91 +31.3 35.72
Solectrn ... ... ... -.02 -33.8 3.53
SouthnCo 1.49 4.3 16 +.34 +3.8 34.79
SwstAirl . .02
SwnEngys ...
SovrgnBcp .24
SprintNex .10
StarwdHtl .84
StateStr .72
sTGold
Stryker .09
Suncorg .24
Sunoco s .80
SymblT .02
Sysco .68
TJX .24
,TXU Corp 3.30
TaiwSemi .32
Target .40
TenetHIth ...
Teradyn
Tesoro .40
Texinst .12
3M Co 1.68
Tidwtr .60
TimeWarn '.20
TollBros s
Transocn
TriadH
Tribune .72
Tycolntl .40
Tyson .16
UnionPac 1.20
Unisys
UtdMicro .01
UPS B 1.32
US Bancrp 1.20
USSteel .40
Utdhlth s .02
Univision
UnumProv .30
ValeroE .40
VerizonCm 1.62
ViacomB ..28
Vishay
Visteon If
Vodafone .76
Wachovia 2.04
Walgrn - .26
Walterlnd .16
WA Mutl 1.96
WsteMInc .80
Weathfint ...
WellPoints .
WellsFrgo 2.08
WDigiti
Weyerh 2.00
WmsCos .30
Wyeth 1.00
XTOEgys .30
Xerox
YumBrds .46
Zimmer
.1 26 .-.17 +1.6 16.54
... 45 +3.81 +177.0 70.20
1.0 13 +.02 +2.0 23.00
.4 20 +.19 +.4 24.94
1.4 36 -.02 +1.4 59.24
1.2 25 +.53 +18.6 .58.27
... ... +1.66 +10.6 48.46
.2 28 -.56 -8.3 44.26
... ... +1.57 +53.8 54.45
1.1 12 +2.56 +85.9 75.95
.2 72 +.49 -37.7 10.78
2.1 22 +.49 -16.4 31.90
1.1 18 +.27 -10.6 22.47
3.4, 83.+3.18 +52.4 98.40
3.5 ... +.28 +12.8 9.12
.7 22 -3.13 +6.3 55.22
S... ... +.01 -30.7 7.61'
+.07 -17.7 14.05'
.7 9 +1.86 +75.1 55.80
.4 26 +.76 +29.5 31.88
2.1 19 +.61 -4.8 78.16
1.3 14 +.83 +27.0 45.24
1.1 32 +.21 -7.3 18.03
... 8 -.09 -.6 34.09
... 41 +2.24 +40.9 59.72
... . 14 -.88 +8.7 40.46
2.2 17 -.76 -22.5 32.64
1.4 20 +2.12 -19.3 28.85
1.0 17 -1.76 -9.0 16.74
1.6 25 +4.25 +11.5 75.00
... ... +.07 -46.3 5.47
.3 ... -.13 -4.7 3.05
1.7 24 +1.89 -8.6 78.15
4.0 13 -.37 -4.2 30.00
1.0 4 -.60 -24.6 38.62
26 +1.31, +38.5, 60.96
44 -1.32 -1.9 28.72
1.3 13 +.73 +24.3 22.30
.4 9 +1.86 +116.2 98.17
5.1 10 +.30 -21.7 31.70
.8 ... +.78 -7.2 33.78
... ... -.06 -14.1 12.90
... ... +.56 -27.9 7.04
3.5 ... -3.69 -20.5 21.78
3.9 13 -.32 +.5 52.84
.6 31 +.12 +23.0 47.19
.3 22 +4.98 +52.7 51.50
4.6 11 +1.06 +.4 42.46
2.6 15 +.09 +2.0 3055
... 27 +3.08 +28.5 65.94
24 +3.33 +34.1 77.10
3.3 14, +.36 +.6 62.51
... 13 +1.43' +28.0 13.87
3.1 14 +2.39 -3.9 64.61
1.4 40 +1.53 +33.5 21.75
2.3 51 -.91 +1.4 43.17
.7 17 +1.46 +52.1 40.37
. 16 +.26 -16.2 14.26
.9 18 +.14 +3.1 48.64
... . 22 -3.36 -20.4 63.77
AMEX Most Active
Wkly YTD Wkly
Div YId PE Chg %Chg Last
... 44 -.63 -14.1 23.36
.9 24 +1.56 +10.7 51.56
... 9 +.40 -5.6 10.34
... ... +1.51 -.6 8.57
... ... +.86 -39.3 4.67
... 21 +.32 +29.7 37.49
... ... +.66 +15.0 3.90
... ... +.67 +6.0 8.31
1.1 26 +.57 -9.5 35.06
. ... ... -.04 -77.1' .47
... 22 +.06 +25.9 19.79
... 74 +7.27 +60.8 57.04
1.4 24 . -.39 -15.9 35.65
... ... +.54 +33.7 36.25
26 -.06 -38.9 27.82
1.1 24 +.87 +5.1 28.07
... ... +.11 -13.5 10.50
... 51 +2.15. +17.3 39.47
... ... -.10 -77.5 3.29
1.0 ... +.74 +3.8 41.45
... 44 +.86 -13.1 28.86
... ... +.20 -.6 3.24
.... 9 +.36 +20.4' 8.13
... 27 +.32 -14.2 23.93
... 26 +2.15 +53.6 36.19
S... -2.55 -68.3 23.72
... 14 +2.09 -10.8 16.37
... ... +.21 +19.6 5.43
... 23 -.19 -8.0 12.62
... 65 +.32 -31.2 7.74
... .:. +.05 -93.4 .33
... 20 -.16 +2.4 6.03
26 -7.92 -19.3 35.01
.5 19 +1.03 +59.5 31.03
1:5 41 +1.88 +25.0 42.60
... ... +.10 +52.8 12.96
.8 36 +.51 +8.3 45.93
... ... -.06 -24.0 5.20
Name
RealNwk ...
RedHat
RschMotn ...
SFBC Intl ...
SanDisk
Sanmina ...
SearsHIdgs ...
SiebelSys .10
SST . ..
SiriusS
SkywksSol
SmurfStne ...
Sonus
Staples s .17
Starbucks s ...
SunMicro ....
SunPower n...
Symantec s ...
Synopsys ...
TaroPh
TASER s ...
Tellabs
TevaPhrm .27
3Com
TibcoSft ...
UTStrcm ...
UndArmr n ...
UrbanOut s ...
ValueClick ..;
Verisign
Vimicro n
ViroPhrm ..
Vitesse
XMSat
Xilinx .28
Yahoo
Wkly YTD Wkly
Div YId PE Chg %Cho Last
... ... +.68 +31.7 8.72
... 82 -1.55 +71-.8 22.94
... 39 -.64 -19.7 66.15
.. 15 -7.84 -39.3 23.98
... 32 -4.78 +125.1 56.20
... ... -.11 -50.3 4.21
.13 +4.64 +20.7 119.44
1.0 ... +.04 ... 10.49
... ... +.52 -6.6 5.56
... ... +.28 -4.5 7.28
31 +.06 -47.3 4.97
... .... +1.40 -36.6 11.85
... 86 -.05 -25.1 4.29
.7 22 -.48 +3.5' 23.27
... 51 +.83 -.6 30.98
... ... +.05 -30.4 3.75
... ... .... +6.5 27.10
... 41 -1.18 -28.5 18.43
... ... +1.03 +1.3 19.80
... 23 -7.11 -58.8 14.01
... 80 -.37 -77.4 7.16
... ... -.01 +14.6 9.84
.7 25 +.67 +366 40.79
... ... -.08 -8.6 3.81
... 30 -.05 -38.6 8.19
... ... +.93 -66.0 7.53
.. . ... ... ... 25.30
... 41 -.63 +38.7 30.80
39 +.97 +42.2 18.95
... 25 -.80 -31.3 23.10
... ... ... +8.5 9.07
... 17 -1.43 +435.4 17.40
... . ... +.11 -47.9 1.84
... ...+2.26 -18.3 30.75
1.1 32 +1.42 -12.6 25.94
... 38 +3.05 +10.2 41.54
Name Div YId
AbdAsPac .42 7.4
Ableauctn ...
AmOrBion ...
AWtrStar ...
ApexSilv
ApolloG g ...
BemaGold ...
BiotechT .05
BirchMt gn ..
CanArgo
Cheniere s ... ...
CovadCm n ...
Crystallx g ...
DJIA Diam 2.16 2.0
DesertSng ...
EagleBbnd ...
EldorGldg ...
GascoEnn ...
GlobeTel n ...
Golditrg ...
GreyWolf ...
Harken
HomeSol
iShBrazil .46 1.4
iShJapan .04 .3
iSh Kor .10 .2
iShMalasia .16 2.3
iShTaiwan .08 .7
iShSP500 2.50 2.0
iShEmMkt s .80 .9
iSh20 TB 4.09 4.5
iSh EAFE s .80 1.4
iShNqBio
iShR100OV1.65 2.4
iShRIOOOG .58 1.1
iShR2000Vs1.15 1.7
iShR2000G .30 .4
iShRs2000 s.84 1.3
Wkly YTD Wkly
PE Chg %Chg Last
... -.07 -12:3 5.68
.... -.09 -55.4 .37
...-1.53 +214.1 5.81
... -.02 -76.2 ' .15
... +1.30 +.7 17.30
. ... -73.2 .22
... +.25 -4.6 2.91
... +4.18 +37.2 209.78
+.58 +259.5 7.19
+.06 +13.9 1.23
... -.21 +10.8 35.30
... +.02 -41.9 .75
.. +.03 -57.7 1,52
... +.79 ... 107,53
... +.09 +17.6 1.94
... -75.8 .16,
... +.50 +33.9 3.95
... +.19 +51.4 6.45
... +.42 -38.3 2.42
... +.05 -41.4 2.35
19 +.44 +44.0 7.59
5 -.03 +13.5 .59
35 +.93 +326.1 6.69
... +.11 +47.8 32.88
.. +.21 +14.9 12.55
... +.60 +39.5 40.81
... -.06 -.8 7.09
-.10 -3.5 11.64
... +1.21 +3.3 125.03
... +1.46 +25.4 84.35
... +.65 +1.8 90.14
... +.62 +8.5 57.95
+.72 +4.1 78.46
... +.63 +4.2 69.14
... +.62 +4.4 51.33
... +.30 +3.4 66.50
... +.85 +3.2 69.48
... +.46 +3.3 66.89
Name Div YId
iShREst s 2.60 4.0
iShSPSml s .50 .9
IntrNAP
IvaxCorp ... ....
MadCatz g ... .:
Miramar
NatGsSvcs ...
NOrion g
NthgtM g ...
OilSvHT .62 .5
Palatin
PetrofdE g 2.04 ...
ProvETg 1.44 ...
Qnstake gn .
RegBkHT 4.90 3.5
Rentech
RetailHT' 5.05 1.0
SemiHTr .23 .6
SilvWhtn gn ...
Sinovac n
SPDR 2.39 1.6
SP Mid 1.34 1.0
SP Matls .57 1.9
SPHIthC .39 1.2
SP CnSt .42 1.8
SP Consum .26 .8
SP Engy .57 1.2
SP Fncl .69 2.2
SP Inds .43 1.4
SPTech .42 1.9
SP Util .98 3.1
TanRng gn ...
Telkonet
UltraPt gs ... :..
UtilHTr 3.88 3.5
Viragen h
Yamana g ..
Wkly YTD Wkly
PE Chg %Chg Last
... +.77 +5.2 64.79
... +.47 +7.0 58.03
-.01 -60.2 .37
41 +.49 +88.8 29.87
... +.01 +1.2 .85
... +.46 +57.8 1.83
49 +1.55 +133.8. 22.05
90 +.17' -6.9 2.71
36 +.13 -15.3 1.44
... +5.62 +41.1 120.04
... +.48 -8.3 2.44
... -.66 +29.4 16.88
-.13 +9.4 10.37
+.01 -50.0 .20
... -.91 -.9 140.68
... +.45 +42.9 3.20
... +.67 -.1 98.55
... +.52 +9.3 36.48
+.46 +61.5 5.04
+1.54 +84.4 6.60
+1.37 +3.5 125.13
+1.43 +10.0 133.15
.. +.69 -1.4 29.30
.. +.18 +3.5 31.26
-.10 +1.4 23.4Q
+.16 -6.0 33.17
... +1.57 +35.0 49.04
... +.09 +3.8 31.70
... +.77 +.7 31.30
... +.40 +2,1 21.55
... +.53 +11.9 31.17
... +.32 +342.5 3.54
+.54 -12.6 4.86
... +1.08 +116.0 51.98
...+2.58 +15.0 112.32
... +.23 -35.0 .65
.. +.31 +50.7 4.55
STOCKS OF LOCAL INTEREST Weekly Dow Jones
Dow Jones
industrials
For the week ending
Friday, November 18
+80,29
10,766.33
Record high: 11,722.98 ' I ' '
Jan. 14,2000 N D J F M A M J
Money Rates
Last Pvs Week
Prime Rate 7.00 7.00
Discount Rate 5.00 5.00
Federal Funds Rate 4.00 , 4.00
Treasuries
3-month 3.92 3.87
6-month 4.19 4.16
5-year. 4.42 4.48
10-year 4.50 4.54
30-year 4.69 4.74
Nasdaq Most Active
i � _I
Page Editor: Joseph DeAngelis, 754-0424
LAKE CITY REPORTER BUSINESS & HOME SUNDAY, NOVEMBER 20, 2005
DOWNTOWN: Activities like Finally Friday bring life back to the area
Continued From Page 1C
escape the "hurricane mad-
ness" of FEMA trailers and
blue tarp roofs and likes hav-
ing her business in downtown
Lake City, Greeley said.
'The ambiance. It reminds
me of the little shops, the little
downtown that I had growing
up. It's a step back in time
rather than the malls and shop- _
ping centers where everything
is the same. Everything down
here is unique, it's individual,"
Greeley said.
"Downtown you get just as
much fun looking at the build-
ings as the shops," Greeley
said. "I feel like I'm part of
something in Lake City." .
She credits the Downtown
Action Committee with con-
tributing to a sense of belong-
ing with the activities in "
Olustee Park - such as
Finally Friday and a recent car Rupped
show - that bring people City.
downtown.
"It's not all about money. The custom
movies are free, the entertain- a table
ment is free. They get people The
out to gather, it's (downtown) a 124 N
gathering place," Greeley said. and re
Although she has only been Ave. o
downtown for two months, It s
Greeley said customers in the jewelry
community have filled her Tactic
store with furniture and other Ponde
items for sale on consignment woven
and she thinks business is fine ar
"going to be O.K" Stoi
"I feel like I'm a service to Hanco
the community. These ladies has n
are here practically exchanging first lc
things in the store," Greeley "M(
said, motioning toward three traffic
'a
0...1'
a'.'.
-Aao. 'no.
-~ A
I.,..
'I
. 0
JENNIFER CHASTEE
rt's Bakery and Cafe is just one of the businesses that adds to the ambiance in dow
mers sitting and talking at
e'that was for sale.
Silver Chest opened at
. Marion Ave. in March
-opened at 218 N. Marion
an Nov. 15.
sells handcrafted silver
ry - primarily from
, Mexico - handcrafted
erosa Pine chests, hand-
rugs, wool purses and
rt among other items.
re Manager Amber
)ck said the new location
more parking than their
location did.
ore parking, more foot
down here. Because of
the restaurants, there are more
people walking," Hancock said.
Owner David Charron said,
"I just like it better down here.
The ambiance is nice and
you've got the old town feel.
You've got the DAC and we all
help each other out and you
won't get that support in other
places."
Tammy Robbins opened the
Marion Street Cafe at 279 N.
Marion Ave. in February. It was
her first venture and she want-
ed a place where people didn't
just drive up and take their food
away with them.
Volunteers helped her
remodel her shop,
per top coffee bar,
chairs and sofas,
chairs and walls
bookshelves and a:
"It's beautiful
there's a quaintne
said. "I wanted peo
in and enjoy them
"I love coffee, I
and Lake City h
Robbins said. '"W
place to sit and
talk. It's like a hea
.makes you feel goo
Along with fresi
soup, salads,
quiche and dessei
... gourmet teas and an infinite
4, / combination of specialty cof-
O "pp /, fees custom-made for cus-
tomers.
Book lovers can exchange
f.' , three used books for one new
one or purchase a book for one
third of the cover price. There
are chess sets, gift baskets,
imported teas and cookies and
original art for sale.
Robbins also offers wireless
:Internet access on the store
laptop or yours for $2.95 per
hour, $4.95 per day or $8.95
monthly.
As far as business is con-
cerned Robbins said she
thinks it is good, but that busi-
ness at her store and down-
town in general, is "up and
down."
"It's a struggle. But it's a
N/Lake City Reporter good one. It's fun and I think
ntown Lake there's going to be some huge
changes in Lake City in the
next few years, especially
with its cop- downtown," Robbins said.
upholstered She cited the Downtown
tables and Action Committee (DAC) with
lined with parades, fireworks and the
rt. Festival of Lights as benefits to
building, having a business downtown.
ss," Robbins "I've never seen a place
ople to come where there are so many peo-
selves." ple who want to offer things to
I love books the community on a regular
ad neither," basis," Robbins said.
Te needed a "DAC is looking for ideas
unwind and about downtown and Lake
ling place. It City. What would you like to
od." see? We're looking for input,"
hly prepared Kimler said.
sandwiches, The DAC number is (386)
rts she sells 755-9023.
RESUMANIA
Continued From 1C
missed the mark:
"INTERESTS: Composing
a variety of music, writing
poems, watching Court TV."
A modern-day troubadour
with a passion for the law.
"OBJECTIVE: Looking
for a full-time/part-time job
to make money."
Aren't we all...
The objective section of a
resume gives a job seeker
the opportunity to provide a
summary of his or her quali-
fications and how they apply
to the open position. It
should lihk the needs of the
company with the back-
ground and expertise of the
applicant; it should not be a
platform for personal
requests or philosophizing,
as. this job candidate
demonstrates:
"OBJECTIVE: My per-
spectives are as follows:
Working overtime is fine.
Job and personal life don't
mix. Wasting company time
is wrong."
Hear, hear!
COVER LETTER: "I
prefer a fast-paste work
environment."
For life's
situations.
stickiest
* Max Messmer is chairman
and CEO of Robert Half
International Inc., a
specialized staffing firm, and
author of 'Managing Your
Career For Dummies' and
'Job Hunting For Dummies.'
Charter boat captains
tally storm losses
By MELISSA NELSON
Associated Press
PENSACOLA - Charter
boat owners from KeyWest to
Corpus Christi, Texas, are
joining forces to convince
Congress of the need for post-
Hurricane Katrina economic
relief.' ..
The National Association of
Charter Boat Captains began a
series of meetings with Gulf
Coast charter boat owners in
mid-October in Mississippi
and will conclude the meet-
ings in South Florida next
month. The association met
Friday with Pensacola boat
owners.
"If there's a silver lining to
Katrina, it's that we've come
together as an industry across
the gulf. When we all, come
together as five gulf states, we
have a more powerful voice,"
said Bobbi Walker, executive
director of the association, told
the Pensacola group.
The 3,000 member associa-
tion hopes to convince
Congress to approve low-inter-
est loans, grants and other
assistance by compiling an
economic impact survey of
charter boat losses from
recent hurricanes.
Bob Zales II, the associa-
tion's president, said charter
boat bookings are down
80 percent at his Panama City
business since Katrina hit. He
doesn't expect business to
improve anytime soon
because of a wave of negative
publicity about conditions on
the Gulf Coast.
Another problem, fish popu-
lations were widely scattered
by the numerous hurricanes
to strike the region. When
Hurricane Ivan struck the
Florida Panhandle in
September 2004, it destroyed
many of the reefs where fish
gather, he said.
SMALL TALK
Continued From 2C
a sensible way to do it -
taking the time to set up a
plan carefully will help
ensure you get one that
works best for your
company.
It's a good idea to consult
with a tax professional
before setting up any retire-
ment plan - and, to be on
the safe side, before you
make any big tax decision.
There are other impor-
tant tax issues to be think-
ing about at this point in the
year.
For example, if, you're
going to owe 2005 taxes, do
you know how you're going
to be paying them? Do you
have a sense of what your
cash flow will be like?
Should you be thinking
about filing for an extension
of the time to file your tax
return (keeping in mind you
still need to pay your taxes
by next year's April 17
deadline)?
(HAMILTON)
r Jai-Alai & Poker �
We've got your game!
LIVE JAI-ALAI * 35 POKER TABLES
eatoTEXAS HOLD'EM 1raoo
Vlay Voe Located on US 129 in Jasper, Florida *WI.ntrj
Jackpot!
1-75 North, exit 451 South 1/2 mile on left.
Watch all the
football games.on our
1-800-941-4841 plasma TVs. o
Hours: POKER Weds.-Mon.-Noon 'til Midnight
JAI-ALAI Mon., Wed.-Sat. @ 7PM * Sat. & Sun. Matinee 1PM
Closed Tuesday
No One Under 18 Admitted
ETTIME WARNER CABLE
AND GET IT ALL!
You deserve the finest home entertainment and communication options available and Time Warner Cable
is the one company that can offer you a full range of products and services to meet your needs.
- h. DigitalVideo Recorderyou'll havelhepower to!~dect lod
, .., ,- . TV shows whenever you want.
wy | '".iq L': i O . -.. .y Hollywood Blockbusters, original series, championship boxing
5 11 ,, . , . - - - h, I E n ,.nerT , In .:.,r, . rli
ROAD RUNNER HIGH SPEED ONLINE - faste than the standaul DSL package and R04 RUVNFR h
--ET THE FINEST ICE CREAM.
Order Time Warner Digital Cable, plus Showtime and get Haagen-Dazs ice cream - free for an entire year!
1hll'l. 12 coupons (Juod fo oin imHit.il-i.Uai p oducl piier mno .. up i. o b Vauio
Take time Warner Cable Digital 1 Pack with Showtime for
$39.95 a month for 6 months, includes 1 digital terminal
TWflnME
'themoviechannel r
-IHSPEKOLN
.50 ~.''Orc�boooo *001 1.tn0'no.'Ai 9on VOS.,.., 0, tOtAlS
no
a~t-
: zl"il
Classified Department: 755-5440
Personal Merchandise
300o $ oo 1 - "1
. , e :.. .. " . . . .. . 4 yn " E a c h a d d it io n a l i .. . . .
...... " e' , ', LC6. . d ays "line'100 -" " . . " '; -
IM A . : - ' . . | . ....
$ 25 $2 00 1
It One em prad . -
I$ F
ml~fi"
le ~ ~ * Di wra..ii.rl ins
-3. lie~r
H, r3- p i cil r
In Print ne
C I.*M ' ' ' 5k-J : ^ '? . r ,
Legal
IN THE CIRCUIT COURT, IN AND
FOR COLUMBIA COUNTY, FLORI-
DA.
PROBATE DIVISION
Case No. 05-202-CP
IN RE: THE ESTATE OF
MOLLIE ADSIT JOYNES OTTINGER
a/k/a MOLLIE J. OTTINGER
Deceased.
NOTICE TO CREDITORS.
TO ALL PERSONS HAVING CLAIMS
OR DEMANDS AGAINST THE
ABOVE ESTATE AND ALL OTHER
PERSONS INTERESTED IN THE ES-
TATE:
YOU ARE HEREBY NOTIFIED that
the administration of the Estate of MOL-
LIE J. OTTINGER, Case File Number
05-202-CP, is pending in the Circuit
Court for' Columbia County, Florida,
Probate Division, the address of which is
Columbia County Courthouse, Lake
City, Florida. The Personal Representa-
tive of the estate is Kim Elizabeth Choy-
nowski, whose address is 11793 S.E.
Williams Lane, Tequesta, Florida 33469.
The name .and address of the Personal
Representative's attorney is set forth be-
low. for the creditor or his agent
.r [i.:.rr..., .in. the amount claimed. If
the clari.-; . r:.r jt due, the date when it"
will become due shall be stated. If the
claim is contingent or unliquidated, the
nature of he uncertainty shall be stated.
If the claim is secured, the security shall
be described. The Claimarit PUBLICA-
TION OF THIS NOTICE, to file any ob-
jection they may have that challenges the
validity of the decedent's Will, the quali-
fications of the Personal Representative
e, or the venue or jurisdiction of the
Court.
ALL CLAIMS, DEMANDS, AND OB-
JECTIONS NOT SO FILED WILL BE
FOREVER BARRED.
Date of the first publication of this No-
tice of Administration: November 20,
2005.
Attorney for Personal Representative:
Dale C. Ferguson
P.O. Box 111
Lake City, Florida 32056-0111
(386) 752-1920
Florida Bar No. 024311
KIM ELIZABETH CHOYNOWSKI AS
Marine/Repairs
.1, Tll ,
.1:.'
Legal
Personal Representative of the Estate of
Mollie J. Ottinger,
deceased
04500435
November 20, 27, 2005
020 Lost & Found
Found: Clip on Earring at Walmart.
Call to identify 386-755-6065
Lost Dog: 41 N & 1-10.
Japanese Chin, 10lbs, wearing Gator
collar w/Black & White fur.
Reward! Call 386-397-1647
LOST MINIATURE Dachshund,
Female, Name is Jessie. Red smooth
coat, white on face. Lost in Emerald
Forest S/D off Branford Hwy.
Belongs to a 10 yr old Boy who is
Heart Broken. 386-754-9427,
LOST TWO Kittens, 4-5 months
old on Birleymiers welcome.
Dr. trans. avail. 386-397-2920
GET YOUR Home Holiday Ready!
Exp. Maid will clean your home, do
your laundry. Competitive Rates &
Ref. Avail. Call 386-935-1888.
LAKE CITY REPORTER CLASSIFIED SUNDAY, NOVEMBER 20, 2005
C'.: ": .. * '" " " " i '*- " . :'. ".:. i.
- - -.
1^ ". -
Ad is to Appear:
Tuesday
Wednesday
Thursday
Friday
Saturday
Sunday
Mon., 10:00 a.m. Mon.,- 9:00 a.m.
S � , .'.
ioo Job
Opportunities
01556185
Want steady work w/stable
Company. Good equipment
w/ good wages & a full benefits
Pkg. Home daily, off weekends.
CDL-A req'd. F/T
Call Columbia Grain
386-755-7700
01556187
. , - "?' ;. '
� . .d , ."!
Home Maintenance Pressure Cleaning
HOME REPAIRS
Yard Work, Electrical, Plumbing,
Roofs, Painting & Much More.
Call 386-884-0004
Lawn & Landscape Service
Custom Cuts Lawn & Landscape.
Customized lawn care, sod, trim-
Sming, design. Com. & Resd. Lic. &
insured. Call 386-496-2820 Iv
t1n Job
100 Opportunities115
PEMCO5
.
L-
� i.,:>.. �. "( pemcoair.com
or fax to (334)983-7046.
EOE M/F/D/V �
Equal Employment Opportunity
05508530
WATER/WASTE WATER
TREATMENT OPERATOR
Advent Christian Village
386-658-5627(JOBS)58-5160
Accounting Manager
Experience in G/L, A/R, A/P & P/R
Salary Open. Fax resume to:
386-397-1130
noo Job
Opportunities
04500341
or Apply in Person at: Morrell's
461 SW Deputy Jeff Davis Lane
Lake City, FL 32024
Apply Monday - Friday
04500400
City of Lake City
Currently has openings for
The following positions:
Executive Assistant 0506(13)
Concrete Finisher 0506(18)
Maintenance Worker 0506(19)
Public Safety Dispatcher
0506(20)
Deadline for these positions is
Wednesday,
November 23, 2005.
For a complete list of minimum
qualifications and to fill out an
application, please visit us at:
City Hall, 205 N. Marion Avenue;
Lake City, Florida 32055.
Our website is
The City of Lake City is an
EEO/AA/ADA/VP employer
04500417
Finance Manager
Westfield Group seeking financial
manager to oversee multi
S ( Need Help? Let Us Write YorClassified Ad
SUNBELT TRANSPORT
Call Bonnie: 800-793-0953
Or Apply Online!
04500469
$1000 SIGN-ON
Dedicated South & SE runs
High Miles, Weekends at Home
Pemberton
For more info call
888-PEMBERTON
888-736-2378
6 months OTR. w/Hazmat req.
noo Job
Opportunities
04500430
MEDICAL
TECHNOLOGIST at RTI
Are you a state of Florida
licensed Medical Technologist
looking to get out of the
hospital setting? Regeneration
Technologies (RTI), a state of
the art medical device company,
ideal for employment in an
industrial setting, is seeking a
motivated, enthusiastic, Medical
Technologist licensed in the areas
of Serology, Immunohematology,
and Micrpbiology to work 2nd
shift. Workplace setting allows
candidate to focus on developing
skills, enhancing career in a
structured and goal oriented
Biomedical Laboratory
environment. Competitive
salary with excellent benefits.
For more details regarding
shift and to apply, please visit
jobsearch.cfm.
EOE DF.'.,
Health/Dental/Life Insurance,
paid holidays/vacations. Apply at
Gilman Building Products, 6640
CR 218, Maxville, FL or fax
resume to (904) 289-7736.
05508531
Come enjoy the Holiday's at
Bath & Body Works.
Now hiring seasonal help.
Apply in person at the
Lake City Mall
05508539
Hiring Kitchen Manager & Cooks
Minimum 5yrs exp. in
supervision. Also cooks need at
least 2 yrs family, dining exp.
No Phone Calls&
05508553
Salesperson-Lumber Sales
Must be people savvy
Will train - Great benefits
Apply in person
Idaho Timber of Florida
1786 SEFSR 100
Lake City, FL. 32025
Call 386-755-5555
05508561
AUTO BODY TECHNICIANS
needed @ Autocrafters Collision
Repair in Macclenny. Exp.
and I-Car Certified. Full
Benefits Pkg. Apply in person @
180 S. Lowder St. or call
Randy Sikes 904-259-3001597.
Driver/Flatbed
NEW PAY INCREASE!!
Up to 39j/mi
ALL MILES
HOME EVERY NITE
& HOME WEEKENDS
FL & GA Dispatch
BCBS Family Insurance Plan
Starting at only $39.95/wk!
Min. 23 yrs. old & 1 YEAR OTR
FLATBED EXPERIENCE
REQUIRED
LAKE CITY REPORTER CLASSIFIED SUNDAY, NOVEMBER 20, 2005
n00 Job
0 Opportunities
0M500353
DRIVER
A- * NEW PAY PACKAGE* *
TNT Logistics is hiring qualified
Drivers for our locomotive
fueling environment in
JACKSONVILLE. CDL A,
HazMat & Tanker endorsement,
2 years tractor trailer exp
required. Must be able to
work nights and weekends.
Full time local work with
excellent benefits package.
Call toll-free
1-877-628-8728 or
904-545-5432 EOE.
045(0)420
$1,036 PER WEEK
This is what our average
Driver earns, could be more.
Class A CDL Required.
Great Benefits and 401K.
Flatbed drivers wanted now!
Minimum 3 out of 4 weekends
Home guaranteed each month.
Call Amy, Jessica, or Rachel
Now at:
800-545-3230
Owner Operators needed also!!
Tom Nehl Truck Company
Is looking for Warehouse/Delivery
Driver. Must have clean MVR and
be able to pass drug test. Full Time
position, Good Benefits. Apply at
383 S.W. Arrowhead Terrace,
Lake City, FL 32024. 386-755-9527
A/C TECH $14-18/hr
Need 5 yr AC exp, completion c
AC school, own tools. Choose
days @ 10hrs/wk or 5 days @
8hrs/wk sched. Smoke/Drug fr
only. Fax resume to 352-377-20(
or apply at:
1231 SW 3rd Ave, Gainesville
AFTER SCHOOL Tutor needed
Would you like to teach part tim
From 3:30 to 6:30 working with
students. If so call 386-758-471
between 2-5 pm.
of
4
100 0ob
SOpportunities
Delivery Route Driver/warehouse
person needed, F/T position. Class
B license a must. Salary plus Health
& Dental. 401K programs avail.
Call 386-754-5561
DEPENDABLE INSURED
Commercial Tile Setters with Crews
needed. Great pay, Fast Track.
386-755-1586 or e-mail
Experienced Front Desk Clerk
Apply at Howard Johnson
3072 West Hwy 90 Lake City
No Phone Calls Please
HEALTH & FITNESS
ee Positions available for Front
69 Desk/Sales, Child Care/Custodial
Staff & Personal Trainer.
Growing business.
Great pay & benefits. Apply at
d. M & M Fitness, Westfield Square.
e?
2-3
0/Dump Trailer experience
No more than 4 points need apply.
Call 386-867-3432
CLERICAL
Different Positions Available
All Levels
Call 386-755-199-1 for an-apptf.--
W, al-Staf Personnel
CLERICAL
Wal-Staf is now hiring for an
Accounts Payable Clerk
Must have strong Clerical skills :
Backgrd & Drug Screens required
Call for an appt 386-755-1991
Connect With Some Extra Cash
During Your Winter Break!
CLIENT G!C
ClientLogic is Hiring
, Temporary Call
Center Positions
Assisting Customers.
* All applicants welcome.
* High school and college students
encouraged to apply.
* Good communication skills and
computer experience preferred.
Assignments from 7-14 days,
Christmas holiday work required.
December18-31,2005. Vadous schedules possible.
$10 per hour
for all who fully complete assignment
Call (386) 754-8600 for more information
or apply in person:
1152 SW Business Point Drive
Lake City, FL 32025
HEAVY
EQUIPMENT
OPERATOR
TRAINING FOR
EMPLOYMENT
Bulldozers, Backhoes,
Loaders, Dump Trucks,
Graders, Scrapers,
Excavators
Train in Florida
-National Certification
-Financial Assistance
-Job Placement Assistant
800-383-7364
Associated Training Services
HELP WANTED
for Roofing and Metal
Building construction.
Call Randy 386-344-0997
100 Job
SOpportunities
HELP WANTED Top Climber/
Bucket Operator. Minimum
"B" Class CDL w/airbreaks.
Drug Testing Dedge Tree Service
Call 386-963-5026
HOUSEKEEPER WANTED
in Lake City, references &
experienced required. Will pay by
the hour. Please call 386-984-5673-623-1992
INDUSTRIAL
New to Lake'City?
Tired of looking for work on your
own? Various positions
available/All Shifts
Must be-able to lift up to 70Ibs
Drug Screens & Backgrd Check req
Call 386-755-1991
05508606
GYPSUM EXPRESS
Flatbed & Van Drivers
Regional-Home Weekends
Class A CDL - lyr Exp.
We have the top
pay in Jacksonville
Qualcomm Dispatch
Apply: Imesom Park
904-751-9193
888-565-0518
Follow Our Red Trucks!
NEEDED!!!!
MECHANIC
Need exp with GM Motors
Automatic Transmissions
Certified a Plus!!
Please call for an interview
Wal-Staf Personnel
386-755-1991
Drug screens & Backgrd Check req
Career-minded
Sales People Needed
* Good pay structure
* Brand new facility
* Insurance & 401k
* Great organization
Call
964-3200
or apply in person at
15000 Hwy 301 S. * Starke, FL
REGISTERED
NURSES
A SPECIAL INVITATION TO JOIN OUR
PROFESSIONAL NURSING TEAM
*Professional Growth
*Excellent Benefits
*Excellent Salary
SHANDS LAKE SHORE
For more information contact Human Resources
At 386-754-8147 EOE M/F/V/D
Drug Free Workplace
Success
requires a
foundation
built on
values..
Integrity
Professionalism
Relationships
Balance
Passion
Mercantile
Bank is a
drug-free
workplace,
EOE M/F/D/V
Employer
MERCANTILE BANK
We take ywo banking personally.
Our business philosophy is "Personal One-On-One Service"
We are looking for exceptional sales and service professionals
who have the people oriented values and skills to consistently
exceed our customer finandalsen/ices expectations.
Excellent Compensation! Exceptional Benefits!
Just for Starters:
*Tuition Reimbursement Scholarship Grants
*Dependent Care Contributions *Medical -Dental.
*Vision *401K *Vacation
Qualified candidates apply online:
AVAILABLE POSITIONS
Branch Supervisor - Lake City
Elite Travel Team Member
North Central Florida Region
100i Job
Opportunities
05508564
Drivers
SE Regional Runs
New Valdosta Terminal
OWNER OPERATORS
.85/mile ALL MILES
PLUS Fuel Surcharge.
24�= 41.09/mile
All miles last week!!!
No NYC or Canada - Paid Fuel
Taxes, Base Plates & Permits ~
Transport System, Inc.
Medical & Disability
Benefits. Available
1-800-948-6766
epestransport.com
05508570
Drivers-CDL A
DON'T MISS OUT!
$3,000 Sign-On Bonus
(Company Drivers)
No Loading/Unloading
Pre-Pass Plus, No NYC or
Canada, Optional NE
Min. Age 22 w/1 yr. OTR
If less then 1 yr exp., ask about
our training program!
No Hazmat Required
800-848-0405
Driver
Dedicated & OTR Available
Solos * Teams * Student Graduates
Owner Operators d Lease Purchase
*Refrigerated Division
Opportunities
Teams and Solos
Call 866-826-7061
*Team Expedite
Coast to Coast
Call 866-391-0141
-Bonuses Available
888-MORE-PAY
888-667-3729
No CDL? No Problem
866-280-5309
1000Job
NEEDED:
PRIVATE Driver, Part Time,
Preferably Retired Bus Driver.
Please Call 386-754-9657
10i Job
0 Opportunities
SALES POSITION:
Looking for a HARD worker �
With GREAT
Customer Service Skills
Ready to Make Money
Call Lake City Wal-Staf
386-755-1991
For an Interview
Or
Drug screen & Backgrd Check Req.
Real Estate Legal Secretary
Experience required. Must have
good typing, computer and people
skills. Health insurance and
other benefits available.
Send reply to: Box 05002, C/O The
Lake City Reporter, P.O. Box 1709,
Lake City, FL, 32056 int person.
Contact Rick Bader at Walts Live Oak Ford Mercury
Phone 1-800-814-0609 * Fax 1-386-362-3541 or e-mail at
r-bader@dealeremail.com
PRITCHETT
TRUCKING
Needs Experienced class A drivers in your area! Chip and log positions
available. Be home at night. Apply at 263 Comfort Road in Palatka or call!
1-800-808-3052
II - ]I
.)u aIa y: . IIn ve I,, ijve voi ur eritl-I TO : u -i' ll offTi, vur lt I, i:, .riil irnd
i ', c e.e ij e,,:uij I. r i Trni, e I rI ai, n j i�.i ii , ] u. lhu ] iM o ,rl ,i r ni ri irid ey Wi 11 il i U ii .j
Idr a your 3rrmtni in:. rij.i,:l i L ial HI -:l-pi n - ':,rvi:i,-' A'i 3i ,- ionj l gri w.nj , ervi i pr n:w- ,vi
for DISH Network, we offer set schedules, good pay, exceptional benefits, thorough training, advancement potential and more. So make
your skills pay off as one of our:
Immediate openings for mechanically inclined individuals in LAKE CITY. Please apply on line at.
DRS is a drug/smoke-free EOE
l DIGITAL
RECEPTION
SERVICES, INC.
tre frsFON $
c H R YVS L E H.
Classified Department: 755-5440
LAKE CITY REPORTER CLASSIFIED SUNDAY, NOVEMBER 20, 2005
100 Job
tio 1Opbportunities
05508567
Drivers
$1,000 Sign On
(For exp'd OTR's)
E09
LOOKING FOR Dependable
Person to Clean Vacant Apt. and
various other jobs. Call office at
386-755-2423 for appt. or
NEEDED: EXPERIENCED Floral
Designer, part time, Saturday
rotation. Thompson's Flower Shop
High Springs. Call 386-454-2709
OTR DRIVERS NEEDED
Heavy Haul,Class A CDL,
2 week turnaround,good pay,
Call Southern Specialized,ULC
386-752-9754
SERVICE & REPAIR help needed
for a Busy Manufactured Home
Sales Lot. Previous experience a
plus. 386-752-1452
Truck Drivers Wanted
CDL Class A required
3 years experience
Good Pay, home weekends.
(386)294-3172
Wal-Staf Personnel
Looking for a hard worker with:
Real Estate Exp
Loan Experience
.,.Any Legal Exp. a-Plus!!!
Please fax resume to: 386-755-7911
Or call for an interview:
386-755-1991
100 Job
100W Opportunities
WANTED:
ASSISTANT & INSTALLER
For local tile & marble company.
Must be-able to lift up to 70lbs
Reliable Transportation a MUST!
Experience a plus
WAL-STAF PERSONNEL
S386-755-1991
DRUG SCREENS &
BACKGROUND REQUIRED
Medical
120 Employment
04500438
a - . IV
Join the industry leaders...
bringing great healthcare home!
Lake City and Live Oak Branches
Physical Therapist- Full time
& Per Diem available
Speech Language
Pathologist- Per Diem
Home Care Training Provided...
Commit to us.
We'll commit to you!
Competitive Salary
FT and Per Diem Benefits
Starting from 1st month of
employment!!
Call Ashlie Sitter @ 866.Gentiva
EOE M/F/D/V DFWP
Website:
Great healthcare has come
homeSM
HHA#206340963 & 299991379
05508523
OFFICE SUPERVISOR
FT position available in Lake City
medical practice. Primary
responsibilities include managing
daily office functions and
assisting staff w/check-in,
insurance coverage, patient
scheduling and chart prep.
Supervisory, Medical Manager
experience and multi-tasking
ability are critical. Competitive
pay rate and outstanding benefits.
Please fax cover letter and resume
to 352-331-9095
05508555
Busy Medical Practice
Medical Manager/Computer Exp.
+F/T Receptionist/Scheduler
*F/T Receptionist
Medical Records
Patient check-in/check-out. Must
have good organizational skills.
Attn: Financial Supervisor
I
Classified Department: 755-5440
1 Medical
120 Employment
04500461
Lake City Medical Center
We have immediate positions
available for the following:
*RNs
PCT III
Case Manager
Education/Employee
Health Coordinator
*Respiratory Therapist
*Nuc Med Tech
Rad Tech
*US Tech
Radiology Patient Coordinator
Sleep Lab Coordinator
Sleep Lab Tech
*Inquire about our
We offer a generous benefit
package that includes health,
dental; life insurance, vision,
stock purchase plan, 401(k),
retirement, paid time off and
many more!,
For more information
and to apply:
Call: (386)719-9020
Or online:43
Baya Pointe Nursing Center
Has the following Open Positions:
FT LPN/RN 1 lpm-7am
Apply in Person to:
587 SE Ermine Ave.
Lake City, FI 320225
05508583
Dental Receptionist needed. F/T
position. Must be available
evenings & Saturdays. Must work
well under pressure, have a great
attitude, & be flexible. Will train
the right candidate. Please fax
resume to 386-752-8601 or mail
to: Aspen Dental Group 1788 SW
Barnett Way, Lake City, FI.32025
05508603
Private Aid Needed for
386-754-9657
386-365-1979 386-623-4448 386-365-8343
White Springs - Restaurant has 70+ seats.
Take out business does very well. Inventory
will be dollar for dollar at closing. $290,000
Call Shirley Hitson 386-365-1979
Sunview Lot 10 - Nice 5 acre tract with
planted pines. Quiet area on paved road.
Well and septic available. Seller is motivat-
ed!! $ $78,000 Call Shirley Hitson
365-1979
NW Lake Jeffery - Older 3/1, 1700+ sqft Sunview Estates - Nice 5 acres with pas-
home. Recently renovated with lots of coun- ture and a few trees. Great for G'ville, High
try charm.. Large rooms with tongue & Springs, Fort White and Lake City com-
groove pine walls. Nice 2-story barn & shed. muters. $80,000 Shirley Hitson 365-1979
$149,900. call Debbie King 365-3886
mom t'
Pinemount/Madison St .- This Beautiful 5
acre corner lot only 6 miles from Wal-Mart.
5 from 1-75, 3 from US 90. Lot 1 is ready for
your home to be built. $150,000 Teresa
Spradley 365-8343
Dear Meadows - Phase 2 is 5.05 acres of
rolling land on a paved street. Fast growing
area with private well and septic. $85,000
Call Shirley Hitson 365-1979
Debbie King Bob & Cheryl Sellers
Realtor. Realtors
386-365-3886 386-590-4085 or 7357
Federal Court - Nice 5 acre tract that gen-
tly rolls on the backside. Currently 2-
SWMH. Both are neat and clean with a
lovely view in the backyard. Entire 5 acres
is fenced. Seller motivated. Reduced to
$120,000 Shirley Hitson 365-1979
Pennington Pines - Have A Pole? Fish from
a cypress pond in your backyard. Restricted
to site built homes only. Experience rural
North Florida naturally. $89,900. Teresa
Spradley 365-8343
Morning Star Glen - This is a '03 MH on 5
acres w/an addl. 5 acres available.
Appliances are like new. Garden area has
sprinkler system. Large 28x12 shed.
$190,000 Call Shirley Hitson 365-1979.
100 acres MOL of N US 441. Cleared and fenced with highway frontage. $900,000. Charles Peeler
386-623-4448
11 acres MOL in Suwannee County. Beautiful, cleared & fenced with huge oak tree on property. Site built or
MH allowed. $169,000. Call Debbie King at 386-365-3886.
4.85 acres in Stonewall Heights less than 5 miles from Live Oak. Call Teresa Spradley at 386-365-8334 for
this property and others.
5 acres west of town. Nice and private area. Great location for your home of choice. $90,000. Shirley Hitson
386-365-1979.
Several 10 acre tracts in Columbia County. Partly wooded. MH allowed as well as horses. Give Shirley Hitson
a call at 386-365-1979.
Southern Exposure - Several lots available with country atmosphere near Ichetucknee. Property is high & dry.
Call Charles Peeler at 386-623-4448.
wwwK, northfa JIoidah e - - - -gnd o
Q_ 3101 US HWY 90 WEST, Suite #101
_ rLake City, FL 32055
880C Business (386) 752-6575
l 2001 Toll Free 1-800-333-4946
THE DARBY-ROGERS COMPANY "
wwwEc21 darbyrogers.comPC visit our website
So Many Extras...3/2 brick home on 4.8 acres. Arbor Green @ Emerald Lakes...New home
2107 sf wit screened lanai, garden tub. Property is presented by Blake Construction. 3/2 with over
fenced for horses and has kennel. Rolling lot with 2,000 sf on .51 acre. Cathedral ceilings, formal
a gorgeous sunset view over the lake. dining room and more! $279,900 MLS#46172
MLS#48958 $449,000
Three Rivers Estate...3BR/2BA completely Newer Brick Home...3BR/2BA with 1653 sf on
remodeled home with 1188 sf. New appliances, almost an acre. Privacy comes with this large
carpet/vinyl and morel Only 4 blocks to the river. yard. Won't last long @ $160,000 MLS#48942
MLS#49006 $132,000
-41
New Construction...3BR/2BA brick veneer home Cobblestone accents.. .this beautiful 4BR/2BA
with 2 car garage on .73 acre. 1457 sf features home on .5 acre with 2275 sf. Ample living space
great room with boxed ceilings and French doors with a formal living room, dining room and user
leading to an 8x30 porch. Double walk-in closets friendly kitchen with stainless steel appliances.
in the master. MLS#47961 $174,900 Screened porch, backyard completely fenced and
a 12x20 workshop. MLSS#49101 $329,900
" ,' ... .
.i"..
Completely Remodeled...3BR/1.5BA brick In Suwannee County...3BR/2BA completely ren-
home with 1100 sf on a city lot. Nice corner lot ovated on 1 acre. New paint, appliances, flooring.
accessible to all amenities. New counter tops, A must see for the first time home owner.
cabinets, flooring and more! MLS#48937 $158,500 MLS#48747
$109,900
ADDITIONAL LISTINGS
4 acre scenic lot in a quiet country location. $55,000 MLS#48964
50 acres with 10 year old pines. Great development potential. MLS#48667 $750,000
6 residential lots ranging from .7 to .8 acre. Totals 4.3 acres. $135,000 MLS#48661
10 high and dry wooded acres with some oaks and dogwoods. Both site built homes
and mobiles. MLS#48326 $159,900
I A'
I g ,I
You Mostd TtdName i Rea EtI
Your Most Trusted Name in Real Estate.
RN needed
Part Time, 3-11p
and every other weekend
Please apply at:
The Health Center of Lake City,
560 SW McFarlane Ave, Lake City.
Equal Opportunity Employer/Drug
.Free Workplace/ Americans with
Disabilities Act.
140 Work Wanted
Medical Transcriptionist with
9 years exp. HIPAA Cert. Seeking
Medical transcription work.
Reasonable rates. Free pick up
& delivery. Dictaphone or tapes.
Call 386-466-0093
17O Business
Opportunities
ABSOLUTE GOLD MINE!
60 Vending Machines, You OK
Locations! All for $10,995.
800-234-6982 AIN#B02002039
Look!
Can you sell Real Estate?
Want Big Bucks?
Call 386-466-1104
180 Money to Loan
lakecityhomeloan.com
Zero Down Home Loans
Cashout/Debt Consolidation
Local Broker 386-755-1839
240 Schools &
v240
AKC BOXER PUPPY.
Fawn Female avail 12/13
$500
386-755-3807
310 Pets & Supplies
8 wk Mini/Long Haired Dachsund.
Black w/tan markings.
One male, one female.
$350. papers & Health Cert.
386-623-5604 or 386-755-4532
LHASO APSO PUPPY
ACA Registered. Health Certificate.
Will be ready 12/24. Call for more
info. 386-758-8957
OLD ENGLISH Bull dog,
Female. 4 mo old. Brindle with
white Blaze. $1,350.
Call 386-719-4412
TINY CKC Pomeranian puppies.
Shots, Wormed & Vet Checked.
Call 386- 755-2645
330 Livestock &
330 Supplies
COW FOR SALE
ANGUS BULL
$600.00
386-755-2609
402 Appliances
GAS STOVE
$50.00
Call 755-3357
Leave Message
MAYTAG GAS DRYER
Excellent Condition
$50.00
Call 386-288-5333
NATURE GAS DRYER
Maytag
$75.00
Call 755-3357 leave message
403 Auctions
ESTATE AUCTION
Mon. November 21st at 6:00 p.m.
High Springs, FL Hwy. 27 N.
*Complete Estates*
Antique/Modem Fum., Glassware,
Appliances, Bedding, Gold/Dia.
Rings, Tools, Rugs, Box Lots,
10% B.P.
Red Williams AU437/AB270
1-386-454-4991
408 Furniture
BED-$140 A Brand new QUEEN
orthopedic pillow-top mattress set.
Still in plastic with warranty.
Can deliver 352-376-1600
BED-$195 ALL NEW KING!
3pc orthopedic pillow-top set.
Brand new, still in plastic!
Can deliver 352-264-9799
CRAZY JOHNS Treasure Chest.
Assorted Chairs (set of 4)
$49.00 - $99.00. 716 E Duval.
Call 386-755-1012
CRAZY JOHNS Treasure Chest.
Used Furniture Sale, Make an offer!
716 E Duval.
Call 386-755-1012
HIDE-A-BED
Floral & Bamboo w/matching
glass coffee table. $200
386-752-7910
408 Furniture
Must Sell Furniture
Lighted China Cabinet:
5'X7'$200
386-752-7910
NICE GRAY
Couch & Chair
$150 OBO 386-755-9574
call after 6:00 p.m.
414 Needlecraft
41 &
430 Garage Sales
MULTI FAMILY, Sat & Sun, 7-?
135 SE Horace Witt Way, comer of
CR 238 & 441, top of the hill, look
for signs. Furn, tools & clothes.
440 Miscellaneous
HOT TUB - $1,795. LOADED!
Never used. Waterfall, therapy jets,
LED lights, cupholders, 110v
energy efficient. With warranty.
Can deliver 352-264-9799
JENN-AIRE Heavy duty stainless,
4 burner gas grill w/cover & full
tank of Propane. Like new. Over
$800 new, will sell for $450 OBO
Call 386-623-9736 leave message
SOLAR CROSS.
Angel, Flag/$38
ValdostaMemorials.com
Tel: 888.978.2883
Steel Buildings
Shops, Barns, etc. 24X30 to
100X200. Factory Discounts!
Will deliver and erect. JL Dupree
Construction. Call 386-754-5678
450 Good Things
5'U to Eat,
PECAN HOUSE exit 414 & 1-75.
Elliot Pecans, Choctaw Pecans, &
other pecans for sale. Also shell pe-
cans. 386-752-1258 or 386-6976420
LAKE CITY REPORTER CLASSIFIED SUNDAY, NOVEMBER 20, 2005
520 Boats for Sale
05508472
1996 18' HEWES REDFISHER
115hp Yamaha, new 24 volt
trolling motor, onboard charger,
GPS, radio, Exc. Condition.
$13,900. Call 386-623-5450
630 Mobile Homes
630 for Rent
BEAUTIFUL COUNTRY Setting
Very clean & QUIET MH park. 2
Igr BD/2BA, new carpet, lgr utility
shed & double car port. $450.00,
Senior discount. Call 386 752-0981
or 386-755-4965
MH Park BEAUTIFUL
COUNTRY Setting Very clean &
QUIET 2 BD, front kitchen, utility
shed & double car port. $425.00,
- - Senior discount. Call 386 752-0981
or 386-755-4965 QJV& Land
!! Owner Finance !!
1998 24X48 3/2 on small lot
1903 SW Judy Glen
Call 386-867-0048
05508387
BAKER COUNTY
Land/Home 4.56 Acres
w/upgraded DWMH on
(1.5 acres cleared) w/2001
4/2 Fleetwood, porch, big kitchen.
All appliances inc. $150,500
800-353-3349 24hr rec.
Cell 904-477-7944
Ask about 3 acres available-752-7951
650 Mobile Home
650 & Land _
SUPER NICE 1,216 sq ft
3BR/2BA MH. Close to Lake City,
Possible Owner Finance.
Call 386-623-5491
710 nUnfurnished Apt.
i10 For Rent
1 & 2 Bedroom Apartments
All very nice.
Convenient location..
Call 386-755-2423
1BR/1BA Apt w/Feliced Yard.
Washer, Dryer, Stove Refrig, Lawn
Maint. Water/Sewage & Garbage
p/up included. $425 mth, 1st, last, &
Sec/Dep. required. Call Richard,
Licensed Real Estate Agent.
386-867-1414
EFFICIENCY APARTMENT.
1 Person in town. Clean. All utilities
included. $425 mo. $150 deposit.
386-397-3568
Newly Renovated, 2 Bedrooms
Starting at $525 mth.
Plus security. Pets allowed w/fee.
Call Lea.386-752-9626
SPACIOUS 2BRI 1 1/2BA
Townhouse. Convenient location.
$750 mo plus security deposit. Call
386-752-7781 or 386-397-5880
UNFURNISHED 1BR/1BA
Apartment for rent in Gatorwood.
$370 mo plus security.
Please call 386-755-2645
SUnfurnished
730 Home For Rent
2BR/1BA Block Home
227 SE Craig Ave., Lake City.
Call 386-752-3653 or
386-365-0903
2BR/1BA. CHIA
FOR RENT: 2BR/IBA Home,
Five Miles South of Lake City.
CH/A, Appl. $500 deposit, $500
mo. No Pets. Call 386-867-1833
HOMES FROM $199/mo.
4% Down, 30 years at 5.5%
1-3br Foreclosures! For listings
1-800-749-8124 ext. F388
Mini Ranch in quiet sub. 3BR/2BA
w/garage & pole barn. Close to
Lake City. 1st & sec. $1,400 mo.
Call Jimmy at 954-433-4370 or
954-559-0872
74n Furnished
4U Homes for Rent
2 BEDROOM FURNISHED
Mobile Home. Utilities
included. No pets.
386-755-9784
740 Furnished
74 'Homes for Rent
New River Home
2/1 on 8 Acres, furn. plus 1 BR
Cottage. $975 mth, 1st, last, Sec.
Call 386-365-3865, view at
750 Business&
7 Office Rentals
60X60 Steel Warehouse
W/ .5 acre Parking Area &
Restrooms. $800 mth
Call 386-365-3865
BILLBOARDS AVAILABLE
1-75 Northbound & 1-75
Southbound, Lake City, FL area.
Call 386-362-4768
Complete Office w/Warehouse in
good neighborhood. Great Location!
Must See!$550 mth
Call Lea 386-752-9626
Selling Privately?
Increase your exposure thru' a .
FREE internet website. Log on to
index.html
8o0 Farms &
2O Acreage
5 Ac. Columbia City Area
in planted pines
$89,900
352-472-3660
820 Farms &
Acreage
04500425
46 ACRES
Buy Part or all beautiful rolling
land with scattered trees. Cross
fenced. Lots of Road Frontage.
Large barn, corral & two Mobile
Homes. Call Jane S. Usher Lic.
Real Estate Broker 386-755-3500
04500457
MACON COUNTY
GEORGIA
189 acres $536,750
Food Plots, Pine Timber
MATURE HARDWOOD
near Flint River
CALL OWNER
478-477-1000
10/20 ACRES pasture with gentle
roll. Columbia County West. Lots
of privacy. Call Jane S. Usher Lic.
Real Estate Broker.
386-755-3500 or 386-365-1352
Property
Warehouse/Office For Lease
12,000 SqFt. Totally remodeled.
3 miles from 1-75. $2,900 mth
386-365-3865
Q840 out of Town
840 Property
LAND FOR Sale in Tennessee:
45.41 acres, can be divided.
Good Hunting, near a river & near
a golf course. Call 386-755-6065
870 Real Estate
870 Wanted
Small Piece of Land wanted for
MH. Preferably with power, septic,
& well. Will consider anything.
Call (904)693-9462
QUIET COUNTRY LOCATION. "Young"
doublewide on 5 acres South of town,
easy commute to Gainesville. Wood and
brick deck with BBQ plus nice rock
waterfall. MLS#48465 Call Bryan
Smithey 965-2922
880 Duplexes
DUPLEX: 2BR/1BA w/garage.
CH/A, washer & dryer hook up,.
$600 mo, $600 dep. Located SE
Hanover Lane. Call (352)377-7652
930 Motorcycles
1999 HARLEY Davidson, Fat Boy
soft tail, 11,600 miles. Custom paint,
flames & checker board. 2 sets of
pipes. $14,875 call 352-258-6145
940 Trucks
1937 FORD 3/4 TON TRUCK
Running a year ago
New water pumps. $8,700 Firm
Call (904)259-4204
2001 Freightliner Classic Condos
(Qty 2)430/500 Detroits, 10 speed,
3:70 rears, 625K & 670K miles,
power right window, & power
locks. Clean trucks. We can email
photos. $34K. 352-542-8927
1954 Chevrolet
4 door, driveable, needs restoring.
$2,100 firm
Call 386-752-0013
1985 CROWN Victoria
Motor & Transmission Excellent,
Low Miles. Runs Good. Asking
$750.00. Call 386-935-4931
1995 VOLKSWAGEN JETTA
Clean, New Tires, Brakes, &
Battery. Runs good. $3,000 OBO.
Call Dave at 386-963-1391
1997 HONDA Civic EX. AC, CD,
Great Gas Mileage, Runs Great.
$3,000 OBO.
Call 386-984-0862
Recreational
951 Vehicles
83 TIOGA, 23' Motor Home.
To many new parts to list.
$2,800 OBO.
Call (207)337-0897
GO-CART Carter 10 horse electric
start, $500 or will trade for
motorcycle of equal value.
386-755-3357 leave message
New '05 Class A Motorhomes
From $426.95 per month
Free gas & other promotions!
Free Campground Memberships!
One Week Only!
352-572-4470 See Roger!
GET READY FOR THE HOLIDAYS! Large
home for family and guests with 4BRs, 2.5
baths, ceramic tile floors, whirlpool in the.
master! 2 back porches to enjoy autumn
afternoons MLS#48564 NEWLY REDUCED
Call Tanya Shaffer 755-5448
...to never miss a day's
worth of all the
Lake City Reporter
has to offer:
Home delivery.
To subscribe call
755-5445
t . .
-^^aa^^,'^*-' -^
52 ACRE RANCH WITH CUSTOM
MOBILE HOME, large barns, cross
fenced, rolling pasture with beautiful
views: Call Janet Creel 755-0466
MLS#48811
Ce' 71 ,
HOME ON 441 NORTH. Residential and income THE ENTE
property. Currently comes with a beauty shop acres sou
that could be converted back to rental apart- mother-in
ment! Highway frontage. $169,000 Call Julia room, gre
'De Jesus 344-1590 or r
Sharon Selder 365-1203 MLS#48383 for details
CONTACT A REALTOR WITH
EXPERIENCE THAT WILL WORK
FOR YOU!!! GIVE US A CALL!
386-755-6600
RTAINER! Large home available on 5 GEORGIAN BRICK. Large 3400+ sq. ft. 4BR/.4.5BA
th of town. 5BR/3BA with separate with a master suite upstairs and down! Gourmet
-law suite attached. Large dining kitchen with double ovens for that holiday baking.
at family kitchen. Call Vic Lantroop In-ground screened pool, nursery and office too!
623-6401 MLS#46803 MLS#48722 Call Sharon Selder 365-1023 or Julia
DeJesus 344-1590
Real Estate of Lake City, Inc.
ML TOLL FREE 877-755-6600
eed io CRP Planted Pines
v*O el5s, Oak Thickets
P P ond
o 1d s a sHome
sO d e. Excellent Hunting
Beautiful Rolling Terrain
Directions: From Quitman take Hwy 333 South to Nankin Rd. Turn right go approxi-
mately 5 miles. Follow signs. From madison take SR 53 (333 in GA) to Nankin Rd.
Turn right go approximately 5 miles. Follow signs. Inspection: Land may be inspect-
ed anytime by riding the property or call the auction company for an appointment.
Terms: 10% buyers premium on all sales. 20% down day of auction, balance due in
30 days at closing.
For More Information or Free Color Brochure
. 1-800-448-2074 or (229) 263-9202
. '., on line brochure:
Stephen F. Burton
REA*,,LT-Y ! N GA 1548 AB 587 AU649 AL #1337 SC3580R
REALTY AD AUCTION IC, roker/Auctioneer
vLie RE Broker/Auctioneer
S.. -- Lovely 3BR/2BA split level
home with approximately 1506
. sf on 1 acre. Features include a
: ' fireplace and one car garage.
S. . Property is partially wooded in a
S. , . great neighborhood. Call Mike
S. Gordon @ 386-365-7501 to
, ... schedule an appointment.
MLS#47259 $159,900
752-6575
.. 3101 W. US Hwy 90, Suite 101
THE DARBY-ROGERS COMPANY k ity FL Lake ity, FL 32055
AREA MORTGAGE RATES
Institution Phone 30fixed 15fixed 1 ARM FHA/
Institution Phone rate pts rate pts rate pts VA
A Coastal Funding (800)594-3319 6.13/0.00 5.75/0.00 4.88/0.00 6.00/ 0.00
Absolute Mortgage Co. (888) 90-HOMES 6.00 / 0.25 5.63 / 0.00 4.50 / 0.00 No Quote
Accountable Mortgage (800) 840-8771 6.13/0,00 5.75/0.00 4.00 / 0.00 6.00/0.00
American Federal Mortgage (888) 321-4687 5.63 / 2.00 5.63 / 0.00 No Quote 6.00 /0.00
American Home Finance (888) 429-1940 6.13/0.00 5.63/0.00 3.50/0.00 No Quote
America's Best Mortgage (800)713-8189 6.13 / 0.00 5.75 / 0.00 5.13 / 0.00 6.00 / 0.00
Amicus Mortgage Group (877) 385-4238 6.00 / 0.00 5.63 / 0.00 No Quote 6.00 / 0.00
Atlantic States Mortgage (888) 439-5626 6.00 / .00 5.62 / 0.00 No Quote No Quote
Borrowers Advantage Mtg. (888) 510-4151 6.00/0.00 5.63 /0.00 No Quote 5.88/0.00
C & C Financial Services (800) 287-8858 6.13 / 0.00 5.75 /0.00 No Quote No Quote
Capital Trust Mortgage (800)511-2862 6.00 / 0.00 5.63 / 0.00 4.25 / 0.00 No Quote
Golden Rule Mortgage (800) 991-9922 5.63 / 1.63 5.13/1.63 3.00/ 1.00 5.50/ 1.00
Home Finance of America (800) 358-LOAN 6.00 / 0.00 5.63 / 0.00 No Quote No Quote
Homestead Mortgage (888) 760-6006 6.13 / 0.00 5.75 / 0.00 4,00 / 0.00 6.00 / 1.00
Interactive Financial (877) 209-7397 6.13/0.00 5.75/0.00 No Quote No Quote
Lighthouse Mortgage (800) 784-1331 6.13 / 0.00 5.63/0.00 No Quote No Quote
Mortgage Master, Inc. (800) 731-7783 6.00 / 0.00 5.63/0.00 4.25 / 0.00 6.00/0.00
Prime Plus Mortgage (800) 630-4259 6.00 / 0.00 5.75/0.00 4.50 / 0.00 6.00/0.00
Sovereign Mortgage (800) 996-7283 6.13 / 0.00 5.63 / 0.00 5.75 / 0.00 5.88 / 0.00
Stepping Stone Lending (800) 638-2659 6.13 / 0.00 5.75 / 0.00 No Quote 6.00 / 0.00
SunnyMTG (813)434-5660 6.00/0.00 5.63/0.00 5.25/0.00 5.88/0.00
Rates provided by The National Financial News Services. Rates are valid us of November 15, 2005. Rates
tre inclusive of all fees and are subject to change without notice. Call lender directly for APR's. Lenders wishing
to participate in this service, please call (610) 344-7380. For additional information on mortgages, go to: or call the consumer Help Line - (800) 264-3707 .
Down-to-earth Frederick has great views
By Associated Designs into an octagonal dining room, washes in through dual skylights.
which in turn is open to tihe kitchen. For a review plan, including
Lap siding and a welcoming The C-shaped kitchen offers a scaled floor plans. elevations, sce-
front porch given a traditionally, coun- wealth of cupboard nnd counter tion and-artist's conception, send
try-style look to the Frederick. space. Families that enjoy cooking $25 to Associated Designs, 1100
Wooden columns and handrails togetherwill find pleptyof space to Jacobs Dr.. Eugene, OR 97402.
harken back to a simpler time, when work without getting in each other's Specify the Frederick 30-507 and
families r.axed on porch swings, way. A raised eating bar rinms tie include a return address. A catalog
and friends dropped by to chat. kitchenodining room bouindary, and with over 550 plans is $15. For more
This plan is designed for con- the view from the kitchen sink is informnnation. call(800)634-0123. or
struction on land that slopes down i i. ,i" ' der room and a visit.
to the right and rear, where a wide . , i h . vwith a
deck offers a splendid view. In fact, deep sink are nearby. i .-. r
since all of the rear rooms offer ex- Upstairs. natural light Beom
cellcnt views, this plan is ideal for spills into tile Frederick's S, Mnter Sulo
construction as a vacation home. large, luxurious master 17'4x17'4
Picture panoramic view of a lake, suite through a wide bay
ocean, canyon or grassy meadow window outfitted wit a I
scene arrayed below. wvndowrse.at and more
oFThe foyer opens into a bayed den icony
on the right, and stairs oi n e von---
the left. Natural lihgbt Dock Do 4
washes down over IIe Dck- .o -k . no
stairway through n ....
arched window there. Ti7e
window seal tihalfway up Kt Cr MA i.
is the perfect 12xt3ia- Li2viCin c
spot for enjoy- 17 '
ing a good book. --I~
Three bed r ooms - -- U
and a wide bal-
cony are on tie irsi Floor 1285 sqlt
second tloor. C- 1 I Senond Floor 1134 sq.l
Three family Co�23 0jBLI 10P Ot 6n 2419 g 4st
gathering spaces Gara - 552 iqt
flow together ci t - e--
the r ear The Dius 56'48
spacious living . . . . . .. E.t, d-. , . dlid llg--
room has a gas fireplace. It flows v "
L
-I - -
Classified Department: 755-5440
Story ideas?
S. Michael Manley
Copy Editor
754-0429
smonley@lakecityreportercom
Sunday, November
Lake City Reporter
LIiFE
20, 2005
FROM THE GARDEN
0~ . . '. *"
Don Goode
Phone:752-5384
dgoode@ifos.ufl.edu
Holiday
tree care
in a snap
is a holiday
tradition observed
around the world.
Various cultures
have different interpretations
of what the evergreen
Christmas tree symbolizes
ranging from a celebration of
the winter solstice to the gift
of eternal life promised by
Christ. With its decorations
and gifts underneath, it is
perhaps one of the most
recognized symbols of this
time of year.
While many people have
chosen to use artificial trees,
some prefer the smell and
look of a live tree. One option
is a live tree that still has
roots. These can be used
indoors in a pot and planted
outside after the holiday
season. These are typically
smaller trees since a large tree
would require too large a pot
and would not survive the
transplanting well. Most local
nurseries or garden centers
can supply a nice evergreen in
a pot suitable for growing in
our area. Be sure to put it near
a sunny window since it still is
a living tree.
Some people go out on the
farm and cut a tree from the
fence row. If you choose to cut
a tree yourself, do not cut
trees from State parks, wildlife
preserves, and other public
property (or someone else's
private property without their
permission). Make the saw cut
is as low as possible on the
trunk since you will need to
cut another inch off the base
of the trunk when you get
home before placing the'tree
in water.
Christmas trees are also
grown in commercial tree
farms. They are planted in
rows so weeds and insects can
be controlled. The trees are
pruned or sheared regularly
with large machete-like knives
to give them that conical
shape we typically see. It may
take 7 to 12 years to grow a
seven-foot tree. Some
Christmas tree farms sell
directly to the public and allow
you to pick and cut your own
tree. Take a picnic and make it
a family outing.
When purchasing a live tree
that has already been cut,
select the freshest tree
available. The needles should
appear green and healthy.
Shaking or bouncing the tree
should not result in the loss of
very many needles (except
some older ones on the
inside).
Check the tree for insects,
spiders or any other
unwelcome hitchhikers.
Shake or bounce the tree
outdoors to dislodge any
unwanted "residents." A blast
from the water hose may be
used if needed. If the tree is
already indoors and insects
are detected or sticky drops
are found on the presents
underneath the tree, use an
aerosol insecticide labeled for
indoor use. You might want
to remove the presents and
open some windows before
spraying.
The tree needs to be able
to absorb water from its base
in order to stay fresh and
GOODE continued on 4D
.4
I
I
When the children are
complaining of boredom, take
them to Gainesville's museum.
By SUSAN SLOAN
Special to the Reporter
he next cold, rainy Sunday
afternoon, when the kids are
complaining there's nothing to
do, take a trip to Gainesville to
the Museum of Natural History
at the University of Florida, and
the afternoon will just fly by.
I arrived at the museum with
a group of church children, who
all immediately begged to enter
the Northwest Florida: Waterways & Wildlife
Exhibit. Entering the exhibit, you are transported to
the northwest part of the state, where hardwood
hammocks and
limestone caves abound. Before entering the
life-sized limestone cave, there is an interactive
exhibit with the plants, animals, insects and birds
that frequent the area.
The museum challenges visitors to find the series
of flora and fauna that can be found in the exhibit,
with secret nooks and crannies to make the search
challenging.
The exhibits explain the relationships between
the plants and wildlife and will teach even the most
knowledgeable something new.
Moving through the life-sized limestone cave, the
walls are covered with icky, gooey slime and an
impressive display of stalagmites and stalactites.
There is an interactive search for fossils and cave
dwellers, and the kids had a great time clamoring in
and out of the cavern.
From there, you move through a pitcher plant
bog - where carnivorous plants of the coastal plain
are found - and a Native American trading scene.
A boardwalk of the coastal salt marsh and a
butterfly exhibit complete the educational
experience of Northwest Florida region.
As you travel from Northwest Florida, you pass
through a shark exhibit that will make you
reconsider the next time you take a trip to the
ocean. A series of shark jaws wowed and amazed
the children as they stood before teeth that could
have easily devoured our whole crew.
From there, we traveled to the Florida Fossils:
Evolution of Life & Land Exhibit. While some of this
exhibit features scientific and geological information
that was more than our group could understand, the
amazing display of fossils and depictions of the last
65 million years of Florida's history was fantastic.
From when Florida was underwater through
when the first humans arrived 14,000 years ago, you
SUSAN SLOAN/Special to the Reporter
The Hall of Florida Fossils is a walk through time,
beginning when Florida was underwater and ending
with the arrival of the first humans in Florida.
SUSAN SLOANISpecial to the Reporter
A sure hit with kids of all ages, the interactive Cave of the Northwest Florida Exhibit features a life-sized
limestone cave with an impressive display of cave formations such as stalactites and stalagmites.
can see Florida's first land animals and the land
bridge between North and South America that
experts say formed about three million years ago.
The displays help
connect the fossils, o
present-day animals
- such as the early
ancestors of the
horse, dog and bear.
From a 15-foot-tall
ground sloth to the
tiniest sea urchin, you
can have fun relating
what was with what is
now.
More than
90 percent of the
500 fossils are real
and many were found
within 100 miles of The life-like depiction of a
Gainesville, some The life-like depiction of a
right here in political ceremony is just or
Columbia County! displays in the South Florid
The next exhibit, Exhibit.
South Florida People
& Environments, commemorates the early South
Florida inhabitants, including the Calusa,
Miccosukee and Seminole Indians. The life-sized
depictions of life among the Calusa Indians and
King Carlos are breathtaking. From the tools of
ki&
Calus
ne of
la: Pe
their fishing industry to every day household items
and religious ceremony artifacts, this exhibit allows
you to step back in time to the days when the
* Native American
, __ . _ Indians ruled this
peninsulaa.
Again, this exhibit
features' interactive
activities for the kids
that will hold their
attention at least as
long as their favorite
video game.
Two special visiting
exhibits were next on
the agenda. First we
visited the Pearsall
Collection of Amterican
Indian Art: 40th
SUSAN SLOANISpecial to the Reporter Anniversary
sa leader's house during a Selections (at the
the many fascinating museum through
peoples and Environments 2006), where artistry
and ways of life of the
American Indian from
different regions of the country of displayed. The
Eastern Woodland, Great Plains and Plateau,
Northwest Coast and Far North, and Far West
HISTORY continued on 4D
SUSAN SLOAN/Special to the Reporter
The artistry of the American Indian is highlighted in this beaded vest of the Northern Woodlands Indians.
tori
Section D
t
-- I- -- c I
c~N
t~ ';`'f~ ,pB
e
LAKE CITY REPORTER SOCIAL SUNDAY, NOVEMBER 20, 2005
ANNIVERSARY
Mikell
Shirley and Randollph Mikell
Shirley Bailey of Wellborn
and Randolph Mikell of Lake
City were united in marriage
Nov. 24, 1955, in Live Oak.
They will celebrate their
50th anniversary from 2-5 p.m.
on Nov. 27, with family and
friends, at a party in their
honor given by their children
and grand children.
The couple has two
children, Terri Carmichael
(Keith) and Randy Mikell.
They have three grandchil-
dren and three great-grand-
children.
Shirley and Randolph are
the owners of Mikell's Power
Equipment.
The couple has lived in
Lake City for 50 years.
BIRTHS
Cook
Scott and Alexis Cook of
Lake City announce the birth
of their son, Brayden
Alexander, Oct. 14 in North
Florida Regional Medical
Center.
He weighed seven pounds,
two ounces and measured 19
inches.
Grandparents are David
and Kelly Boyd of Live Oak
and Larry and Sandra Cook of
Lake City.
McCarty . ,
: Tammy and Kyle McCarty of
Wellborn announce the birth of
their . daughter, . Morgan
Elizabeth, Oct. 20 in North
Florida Regional Medical
Center, Gainesville.
She weighed seven pounds,
five ounces and measured
19 2 inches.
She joins her big brothers
Pepper and Smokey McCarty.
Grandparents are Sharon
Jerge of New York, Harriett
McCarty of Massachusetts and
Gene and Sue Jerge of
Pennsylvania.
Great-grandparent is
Elizabeth O'Brien of New York.
Biehl
Karl Eugene and Kinberly
Ann Biehl of Lake City
announce the birth of their son,.
Kahner Jordan Biehl, Sept. 25
in North Florida Regional
Women's Center, Gainesville.
He weighed seven pounds,
11 ounces and measured
19 inches.
He joins Kalen James, 6 and
Kolton Jayce, 4.
Grandparents are Gene and
Shirley Biehl and Dorothy Tyre
Hopson and the late James
Henry Tyre, all of Lake City.
Johnson
Richie and Teisha Johnson
of Lake City announce the
birth of their son, Ashden
Richard Johson, Nov. 4 in
Shands at Alachua General
Hospital.
He weighed seven pounds,
three ounces and measured
19 inches.
He joins Hayden Robert
Johnson, 2.
Grandparents are Jane and
the late Bob Johnson and
Kathye and Rick Nabinger, all
of Lake City.
Great-grandparents are
Drew Law Sr. and the late
Juanita Law of Lake City and
Cecila Williams of West
Virginia.
BUY IT! * SELL IT!
FIND IT!
1755-5401
December is full of
By MIKE P. McKEE
Special to the Reporter
As the fall
semester
winds down
and stu-
dents pre- .
pare for
final exams,
the Lake _ ...
City McKee
Community
College campus will be a very
busy place as host to a
number of programs,
performances, luncheons, and
recitals. If you've never been
to the college, December
might be the time to visit.
Beginning on Dec. 1,
Steven King, instructor of the
irrigation management
program will host the seventh
annual hog roast fundraiser.
Steven started the holiday
gathering to welcome alumni
back to campus and offer
current students a chance to
network with people in the
industry. The hog roast will be
from 11 a.m.-2 p.m. in
Building 036, (the irrigation
lab). Money raised from the
meal and raffle is earmarked
for the Landscape and
Irrigation clubs.
On Dec. 2 the college's
library will be the location for
"Jazz and Java." The
coffee and jazz will be flowing
beginning at 7 p.m. and atten-
dees will get to hear live jazz,
poetry readings, and possibly
a poetry slam.
On Dec. 6 the lights bright-
en the Alfonso Levy
Performing Arts Center
(ALPAC) for the annual Harry
Wuest Musical Christmas
with Friends. Harry will high-
light his best music students
from the fall semester with
holiday music as only Harry
can. The
curtain goes up at 7:30 p.m.
On Dec. 7, the Florida
Association of Community
College's Lake City chapter
will host a holiday luncheon in
the Barney E. McRae Jr.,
M.D. Allied Health
Auditorium. The college
employee organization will
recognize the good works of
its members. The group will
also adopt a deserving family
during the holidays and
provide food, clothing, and
Christmas presents for their
Life as a professional
video gamer has its perks
By MATT SEDENSKY with-
out effort, he has annihilated
his foe.
Time to punch out. Another
hard day at work.
Welcome to the basement
'lair of the 24-year-old \Wndc-d,
the man known and feared by
aficionados of multiplayer
games across the globe as
"Fatality."
If you deign to think of
video games as simply a child-
ish pastime, consider this pro-
fessional game player. He col-
lects a six-figure salary, has
his own brand of gaming mer-
chandise and travels the
world to compete - regarded
by those in the know as one of
the most gifted players of his
kind.
"It's ffn to play games for a
living," says Wendel. "Getting
up every day is very easy."
If professional video
gamers have a knight-errant,
Fatality begin even
persuade his wife.
"She said, This is why you
quit investment banking? To
do this crazy thing?"' he
recalled. "I couldn't convince
even the gamers."
That's beginning to change.
Tens of thousands turn out
each year at tournaments
around the world as both seri-
ous gamers and doting fans.
Major corporations including
Intel Corp., Samsung
Electronics Co. and the maker
of Tylenol are becoming spon-
sors. And video game enthusi-
asts are no longer seen as
socially inept geeks.
Wendel's journey to the
Nokia Theatre in Times
Square - where he'll face off
against other individual play-
ers in a "first-person shooter"
game called Painkiller and
hope to win his 12th major
championship - began
around the age of five, the age of 15, he
started taking home prizes
from local competitions. At 18,
he entered his first
professional tournament in
Dallas.
'children.
Semester final exam
scheduled to begin on
so on Dec. 7 and Dec.
college library will be
until midnight to accof
date end-of-semester s
(cramming). Study grn
encouraged and free p
be provided courtesy 4
Student Government
Association.
New students for th
spring term will hear a
college policies, proce
financial aid, and stude
during a special orient
session scheduled for
8:30 a.m. on Dec. 8 in
ALPAC. Students will
meet instructors, advise
staff members, and ad
trators during the mor
long session.
If you can't make th
daytime session, anoth
orientation is schedule
4:30 p.m. on Dec. 12 in
Allied Health Auditori
new student who would
attend the orientation
to RS.V.P Vince Rice,
of admissions at 754-42
The student govern
lounge will be the vent
activity
the next "Caf6 Politico" at
is are p.m. on Dec. 8, where stu
Dec. 9, dents and members of th
8, the Lake City community can
open discuss the political issue
mmno- the day. The topic for disc
studies sion is usually chosen bef
oups are the meeting so call ahead
)izza will find out what it is and join
of the students and your friends
healthy, sometimes spirit
dialogue.
e 2006 On Dec. 8-10, the collej
about choir will present their
dures, annual Christmas Madrig
ent life Dinners. The holiday dim
ation shows will be presented a
Montgomery Hall at Lake
the City's First Presbyterian
get to Church. Proceeds from ti
sors, sales will benefit Hospice
minis- Lake City. Tickets may be
ning- purchased from any choir
member. Seating is limited
e On Dec. 9, the Allied H
ier Department will
*d for graduate the latest class c
a the practical nurses in a tradil
um. Any pinning ceremony. Family
d like to friends will gather for the
is asked "Pomp and Circumstance
director 6 p.m. in the Performing.
288. Center.
ment The United Way of the
ue for Suwannee Valley will hold
Newcomers
Pinky Moore, Joan Wilson, Carole Brown, Micheline Adamcewicz,
Gerry Yonitis and Cathy Feagan,
Newcomers Officers (from left).
are the 2006 Lake City
BRIEF
Parking meters now
accept credit cards
NEW YORK - Change is
good, but plastic now rules
when it comes' to parking
meters.
The .
* Associated Press
REPORTER Classifieds
In Print and On Line
' Signature fragrance of
Lady Primrose's captures the essence of fresh
green florals with a heart offleur'd orangery
and jasmine.
Royal B&EIIvni.-r S ir. Lu ur-e:
low
A
Exclusively at
156 N. Marion Ave., Lake City, FL
752-5470
Page Editor: Chris Bednar, 754-0404
at LCCC
t 1:30 final report luncheon at noon
1- on Dec. 14 in the Allied
e Health Auditorium. Volunteers
1 will update United Way mem-
s of bers on the amount of money
cus- raised during the current
fore campaign which began in
to September.
a If you'd like to take your
in a time and appreciate the work
ed of up-and-coming artists from
the area, we invite you to
ge browse the art gallery in the
ALPAC and see the student
al art show. Drawing,
ner photography, graphic design,
it collage, painting, and ceram-
e ics will be on display through
Dec. 11.
cket We hope there is
of something for you to attend
and/or participate in at the
college during December.
d. Who knows maybe you'll pick
health up an application and a spring
class schedule and take a
Af college class?
tional For details about any of
V and these events, please call the
Media and Community
" at Information Department at
Arts 754-4329.
* Mike P. McKee is the
executive director for media
I its and Community Information
LAKE CITY REPORTER ADVICE & CROSSWORD SUNDAY, NOVEMBER 20, 2005
DEAR ABBY
Concerned daughter wants
to help mom lose weight
DEAR ABBY: I am a
teenage girl with an obese
mother. She doesn't exercise
much. She started going to
the gym about a month ago,
but since has stopped.. When I try to
talk to her about her bad
habits, she gets defensive and
angry. I want her to lose
weight and am willing to help
her. How can I confront my
mom about her problem? -
HUNGRY FOR HELP IN
NORFOLK, VA.
DEAR HUNGRY FOR
HELP: You are a caring and
concerned daughter, and for
that you deserve to be
praised. However, no one can
"help" your mother until she's
willing to admit she has a
problem. The behavior you
described isn't "evening
snacking"; it's binging. Until
she's ready to confront what is
eating HER, she will not stop
trying to fill the emptiness
inside with food.
Rather than confronting
your mother yourself, enlist
Abigail Van Buren
the help of a close friend or
family member. If your. moth-
er agrees, her next step
should be to check the phone
book for the listing of the
nearest chapter of Overeaters
Anonymous. They charge no
dues or fees, and no member-
ship lists are kept. There is no
shaming, no weighing in and
no embarrassment. The only
requirement for membership
is a desire to stop eating com-
pulsively. When your mother
attends a meeting, she'll be
welcomed with open arms
into a fellowship of compas-
sionate women and men who
all share her problem.
There are more than 8,000
Overeaters Anonymous
groups worldwide and chap-
ters in almost every city.
However, if your mother has
difficulty locating one, help
her by visiting-
sanonymous.org or sending a
long, self-addressed, stamped
envelope to OA World Service
Office, P.O. Box 44020, Rio
Rancho, NM 87174-4020.
ARIES (March 21-April
19): Avoid any squabbles
with friends or family. Take
care of your responsibilities
without being asked. Money
will come your way if your
intentions and motives are
good. **
TAURUS (April 20-May
20): Have some faith in your-
self and what you can do.
Being nice and offering what-
ever you can to help others
should be your intent. Don't
be impulsive when it comes to
spending. ****
GEMINI (May 21-June
20): Follow your basic
instincts when it comes to a
deal or job prospect. Move for-
ward with your plans, prepar-
ing to present what you have
come up, with. Your keen
sense of timing will enable
you to pick the best time to
get other people on board,
making your . proposal
successful. ***
CANCER (June 21-July
22): Emotional ups and
downs will let others see and
HOROSCOPES
THE LAST WORD
Eugenia Word
know how caring you really
are. You need to get involved
in activities that will spark
your creative imagination. A
change in your lifestyle may
come as a surprise to the peo-
ple to whom you are closest.
LEO (July 23-Aug. 22):
Keep your thoughts a secret
today. Your observations may
change your mind drastically,
and you wouldn't want to jeop-
ardize your chance to follow a
new path. Making a move will
be to your benefit. ***
VIRGO (Aug. 23-Sept.
22): You are up for change in
your personal life. Take a look
at your situation and, if it isn't
working for you, do whatever
is required to make your life
better. You may want to re-
evaluate some of your
relationships. ****
LIBRA (Sept. 23-Oct.
22): You won't be able to fool
DEAR ABBY: My husband
and I have a friend, "Jon," who
told us he wanted to open a
nonprofit Christian center,
and my husband donated
$1,000 to help out. About a
month later, Jon decided he
couldn't handle it and bailed
out. The business never
opened.
I say Jon should pay my
husband back the money. Jon
says he used it on a mission
run for someone we don't
know, for vehicle repairs, and
to reimburse some of his own
losses.
I am being made out to be
the "bad guy" here. This is
twice that it has happened to
my husband. Am I right about
this? If I'm wrong, I'll drop it.
- FURIOUS IN
WELLINGTON, COLO.
DEAR FURIOUS: I don't
blame you for being furious.
Perhaps you should inform
"Jon" that if he doesn't return
the money, you will inform the
fraud unit of your local police
department. There is more to
setting up a nonprofit than
putting out your hand and say-
ing you're starting one; legal
steps must be taken that
appear to have been "over-
looked." So stick to your guns,
and if it means the end of the
"friendship," you won't have
lost much.
* Write Dear Abby at P.O. Box
69440, Los Angeles, CA 90069.
TDGJZEPLM."
- NGZ'I MGLGDJC
NJLJMGD ANJD NPLJVJ
PREVIOUS SOLUTION - "He that has no fools, knaves nor beggars in his
family was begot by a flash of lightning." - Thomas Fuller
(c) 2005 by NEA, Inc. 11-21
yourself into thinking you are
following the best course for
you. Don't make the mistake
of bending to what others
want you to do. Follow your
heart. **
SCORPIO (Oct. 23-Nov.
21): You are likely to be mys-
tified by your good fortune,
but now isn't the time to walk
around too shocked to take
advantage of the good things
happening. You can have
whatever you strive for if you
go the distance. *****
SAGITTARIUS (Nov. 22-
Dec. 21): Make yourself
heard if you really want to see
something come to fruition in
your personal life. It's up to
you to make things happen.
Waiting around for others will
be futile. ***
CAPRICORN (Dec. 22-
Jan. 19): Take a break and
do something nice for your-
self. Focus on love and
romance. The people you care
about the most will be happy
to enjoy the time you take off
to be with them. ***
AQUARIUS (Jan. 20-
Feb. 18): Stop pretending
that everything is fine just the
way it is. Dead ends should
motivate you to make some
drastic alterations. This can
be a new beginning for you if
you make a few changes.
PISCES (Feb. 19-March
20): Your ability to move
from one thing to another will
be to your advantage. A
chance to socialize with peo-
ple who interest you will
result in some interesting
points of view. *****
SUNDAY CROSSWORD
FLYING START B', BRErjcLAr EMr.ETT QIJIGLE. / EDITED By WILL SHIRTZ
ACROSS
1 "A Passage to
India" actor, 1984
9 Cultivation
16Game divs.
20 Water, colloquially
21 The- haven't any
dofinlilc tomiis
22 Cover up
23 The SS Manhattan
was the first
commercial ;hipto
cross it
25 Rain collector
26N.Y.C. .ubwa\ line
27It may precede a
nickname
28Buenos
29-"Hoormo or I ove"
composer
30Scrap
32 Post-9/11 slogan
36Take down the aisle
gdain
38Big name in Fox
Ne% S
39 Made sport of
42 The Father of
English History
45 Histotoneo\\ n on
the \ire
46 -' C(ried" (1962
hit)
49 Plce to get links
For any three answers, call
900-285-5656, $1.20 each
minul . or. ii h . j .-' r dla
c.a.rd, 1 -01.1-8. - ;i.5554
50 Macaroni dish with
-ronJd beefjnd a
little tomato sauce
55 Come together
56 Neuter
57 After-dinner drink
58 Sculptor James
Fraser
59 Get a sense
sonimehin,'s up
62 Doesn't just throw
offT
66Fngine me.isuriw
Abbr.
67 \ .:irmn . tiiter 'A eC
70 No'elitr
O'Flahcrt%
72 Anore\ic's
aversion
73 Stealth adctlr.iay
76 The\ gct pin, and
needles
78 Do
80 Depilatory brand
81 "Your point being
82 Entertainer
Jccomnpani, ing a
slide guitar and
harmonica, maybe
87Son of Leah
8810 cc, e.g.
89 Soinctling th.ia
may be on a house
90"Star Trek: T.N,G."
counselor
91 Actor Quinn
92 Palestinian
nationalist group
95Ear minlammalion
981977 Toni
Morrison novel
103 Jim Backus
provided his voice
107 U-shaped piece of
wood
108-Lincle Vanya"
woman
109 18-Down writer
110 Coastal flier
111 Baloney peddler
112 Earthquake cause
117 Concert halls
118 Malleable
ll9 linerl;. loyl
120 WViiheicd
121 Operatic tenor__
Alag Lna
122 Place to stretch
DOWN
1. Arlo's planner in
thie comnc'
2 Festoon
3Radio-.
broadcasiting
.,erT ice to Cuba
4One \ith a timne-
sensili\'ejob, for
short
5 Like some hooks
6Guy frorn EngLind
7 Soap ingredient
MSlarks iouil
9Golfgimmne
J10.apanese porcelain
11 Get cruhlcd b
12Minor
13 Court org.
14Skit prt
15A foot wide?
16 Kind of keyboard
17 Refrain part.
perhaps
18 See 109-Across,
with "The"
19 Devote. as time
24 Overdtra% wn?
29 Pitched
31 Feed facts to,
maybe
33 Family tree listing
Abbr.
34 Plus
35 Green .cli grcelting
37 Temporarily
suspended
39 Spirited dances
411 -Your slip is
sho. iing'"
41 Bar challenge
43 Decline
44 (reen
46 "Is that what you
expected?'
47 Coninand position
48 Sure \s
50 Take
(cop I
from
51 195'"' ong that
begins "The most
beautiful sound I
ever heard ..."
52 Seed covering
53 Underground
experiment, for
short
54 Eastern wrap
56Camera nits.
60Cap
61 \2
63Mlanage to succeed
64 Home that may 790regon 92 Ancient 102 Bridge opening.
hae painted 83-Back to the marketplaces briefly
designs on IL Future" bullv 93 Dooray. jamb 104 MIintd. Ger.
65Old drie-in fare
68 Lennon's in-la% s
69 Day-care charge
70 Mother of
ClI)tecnmestra
71 Point
74 Big star
75-How's it ?"0
77 Sick-looking
84 Areas bet%% een
woods
85"__ e? I do not
know you": Emily
Dickinson
86 Columnist Peggy
87 Sen. Mlurkowski of
Alaska
91 Targeted
94 More pious
96 Render helpless, in
a way,
97Fair, tale
baddies
98 Plays by oneself
99 Rust- e.g
100 Hornet. e.g
101 woik
105 "Eccopur ch'avoi
ritorno opera
106 Available
SIZ it'll help you
breathe
113 Spanish inches
114 Head
115 Seafarer
116 Defensive Iinnemen.
Abbr.
Answers to last week's Sunday Crossword.
B IOLAB SNOB CASH EFS
I G E AURA ASTI DOWD
THE T TEN L ATHLE RRE
AC 0 N CR S I R L OO V N
SHU A ET S H AINR F E S
AWL 0 I H O 0 US O
ABR NXT LS EN AD
TR EEA R 0 I C I S
LE E LY E AT J M S G
S NU H 0 U N 0
Sv N D NTHAR
TRW INBR 0 YN
T 0 0 N LE V D 0R A AEGEA
S I N 0A A AG KS AD
T A W D0NE H00K 0RR0
ENTERTAINMENT
Auction helps stranded jazz artists
By VERENA DOBNIK
Associated Press
NEW YORK - night, the
Jazz Foundation of America
,held an auction to help Batiste
and hundreds of other hurri-
cane-displaced musicians with
food, clothes, housing and jobs.
Among those playing at the
fundraiser were
more than 50 jazz treasures
ranging from Miles Davis' boa
constrictor snakeskin jacket to
the Boesendorfer grand piano
from Manhattan's Blue Note
club. The auction raised more
than $300,000 Wednesday
night, with Davis' jacket fetch-
ing $13,000; bidding on some
items, including the Blue Note
piano, was to continue online
for another week.
A 1961 New York Times
photo showing Armstrong
playing for his wife in front of
the pyramids in Giza, Egypt,
sold for $1,600. A vocal coach-
ing session from Roberta Flack
went for $5,000, and a jazz
piano lesson from Billy Taylor
went for $2,500.
The presale estimates
ranged from $200 for the
Times photo to $65,000 for the
Blue Note piano.
The online component of the
fundraiser -also - were
flown in for the evening at the
B.B. King Blues Club & Grill in
Times Square. The band previ-
ously performed a New
Orleans-style funeral proces-
sion at the Halloween parade in
Greenwich Village.
The New York-based founda-
tion, which fields up to
20 requests a day for help,
already has delivered more
than $120,000 worth of new
instruments.
Page Editor: Joseph DeAngelis, 754-0424
CELEBRITY CIPHER
by Luis Campos
Celebrity Cipher cryptograms are created from quotations by famous people, past and present.
Each letter in the cipher stands for another.
Today's clue: S equals C
"XAD CJZPL JNGDPSJLI,
TJ IGTJCC P1 ... J BJV AX
TGPLM. PZ'I JCNAIZ CPRG
LAKE CITY REPORTER LIFE SUNDAY, NOVEMBER 20, 2005
SUSAN SLOAN/Special to the Reporter
The Florida Museum of Natural History features 'The Pearsall
Collection of American Indian Art: 40th Anniversary Selections,'
where exquisite beadwork like this beaded Indian on Horseback
can be seen.
HISTORY: Coming to life
Continued From Page 1D
and Desert West Indians
culture is shown by photogra-
phy, carvings, beadwork, jewel-
ry, pipes, pottery and other
Indian art.
More than 200 of the best
objects from the Florida
Museum's Leigh Morgan
Pearsall collection is on dis-
play for the first time since it
was acquired in 1963.
And to end the day with what
kids love best, slimy squirmy
sea creatures, our tour finished
up at the "In Search of Giant
Squid" exhibit (until Jan. 2,
2006).
What's bigger than a
school bus and battles sperm
whales? Who has the world's
largest eye and blue blood?
The giant squid, of course.
The fact that no one has actu-
ally seen a live giant squid
only adds to the mystery.
A frightening monster in the
same category as Big Foot or
the Loch Ness Monster, the
giant squid struck fear into the
hearts of sailors for centuries.
This exhibit by the Smithsonian
Institution de-mystifies the
giant squid and gives the kids
an opportunity to view life deep
under the ocean in just one part
of this interesting exhibit.
At this point, we had spent
three hours that had sped by
like it was 30 minutes. Of
course, the kids had to have
just one more trip to the cave,
where they spent the next
few minutes scaring each
other as they traveled
through the twists and turns
and then it was off to the gift
shop to get a souvenir of their
day.
When you have five chil-
dren from 6 to 17 years of age
all proclaiming "this was the
best time we've had in a long
time," you know you've hit on
something special.
The museum is open all year,
seven-days a week except for
Thanksgiving and Christmas,
Monday-Saturday, 10 a.m.-5
p.m. and Sunday 1-5 p.m.
The Florida Museum of
Natural History is located at
the University of Florida
Cultural Plaza, SW 34th
Street and Hull Road,
Gainesville.
From Interstate 75, take
exit 384 and travel east on
State Road 24 (Archer Road).
Turn north (left) on State
Road 121 (SW 34th Street). At
the third traffic signal, turn
east (right) on Hull Road and
travel /4 of a mile. The
entrance to the University of
Florida Cultural Plaza is on
the south (right) side of Hull
Road.
Museum exhibit melds
science, fiction of Star Wars
By THEO EMERY
Associated Press
BOSTON - In a certain
galaxy far, far away, fantasy
- not physics - rules the
frigid wasteland of Hoth and
the infernos of Mustafa.
Spaceships flit between plan-
ets, massive factories churn
out robot and clone armies,
and circuitry keeps alive the
Empire's greatest villain.
Here on earth, though,
more conventional forces are
at work than in the Star Wars
series. There's no gravity-
defying Force to help change
a tire, no light sabers for
pruning the bushes, and no
landspeeders in the garage
for a late-pight pizza run. get-
ting less so with each passing
year.
The exhibit, which stirred
controversy when it was
ASSOCIATED PRESS
Richard Greif, of Wakefield, Mass., listens to recorded information on an earphone as he examines a
'Yoda' puppet at the 'Star Wars: Where Science Meets Imagination' exhibit at the Museum of
Science in Boston.
revealed that the museum
had bumped a more conven-
tional science exhibit, uses
the wildly popular movies as
a bridge to real science, and
fire up interest - particular-
ly among youngsters -
about the promises of engi-
neering,.
GOODE: Caring for Christmas trees is easy to do
Continued From Page 1D
retain its needles. When you
get it home, trim about an
inch off the base of the trunk
to expose fresh wood.
Immediately place the tree in
a stand that can contain
about a gallon of water. Refill
the water at least daily.
Adding supplements to the
water such as aspirin, soda,
bleach or sugar do not
extend the life of the tree.
Keep your tree away from
the fireplace or any open
flame. Burning candles
directly on the tree may have
been the early form of lights,
but is not recommended due.
to the fire hazard. Keeping
the tree watered is one of the
best fire-prevention
measures.
After the holidays, what will
you do with your tree? The
landfill will accept trees for
disposal. Some people
choose to burn their old tree
(with a water hose nearby of
course). If you burn. your
tree, recycle the ashes as fer-
tilizer on the flower bed or
vegetable garden.,If you own
some wooded land, the old
tree can be discarded there
for wildlife habitat. If you
have a chipper/shredder,
you can recycle your tree as
mulch. A container grown
tree can be planted in the
landscape to enjoy for years
to come.
Enjoy your Christmas tree,
whether natural or artificial,
and take time with friends
and family to remember and
celebrate the meaning of the
holiday.
* Dr. Don Goode is the
Director and Horticulture Agent
of the Columbia County
Extension Service B, a branch
of the University of Florida.
CVS/pharmacy invites you to
"Medicare Tuesdays"
Guided tours Tuesday November 22nd and 29th
Special Offer for Customers
65 & Older This Tuesday Only
2 1 F�I
A
V.~ ~~�E
Visit your neighborhood
CVS/pharmacy, take our
Medicare Guided Tour,
and speak with a member
of our pharmacy team to
Medicare Prescription Drug Program.
Valid Tuesday, November 22nd only
to customers 65 and Older
T-. ,lch.re, n pr_-, .:,,-r, ,rice v v~'i ri qilre,. I
Linn oi e per ,u:t ,el ,:- 5 V .,IIlrl,,i: hCol,:,r
,p anh a ,,Ir c mi a c ,Jr - ' .h . --
- l ' l i"lut ir.
t":.,-to'A' i Vi ,. nrln nron,.--
, nd'[-A-jnJ : p' d , 1-t ir ,:rd,_ -
CVS/pharmacy __ vh
L - - - - - - - --
phar
-- I~~~ - '- -~--~Y--l~~ I~-r-- ------~--1� ---rY' ----- y I--.-~ -.'.. II ---. ~II..+.--��--. �C I-.-Lc.--~. t �-��C -- ~I I�---C-
Page Editor: S.' Michael Manley, 754-0429ins. Nov. 17 Surviving the Holidays Pastor Jeff Tate will lead a Grief Share: Surviving the Holidays session at the First United Methodist Church, 973 S. Marion Ave., in the fellowship hall, on Sunday, Nov. 17 from 4-6 p.m. You dont have to face the first holiday with out your loved one alone. The event is open to the public at no charge. If you are interested in attend ing, please RSVP to info@ lcfumc.org or call Arlene at 752-488. An RSVP will allow us to have enough books an hand for everyone in attendance. Nov. 18 SCORE Workshop SCORE is holding an online business workshop and discussion on Monday, Nov. 18 from 6-8 p.m. at the downtown Columbia County Public Library, 308 NW Columbia Avenue. SCORE Counselors will answer general business and entrepreneurship ques tions and all participants will receive a complete packet of valuable busi ness planning and busi ness resource materials. Call 386-752-2000 or email scorelakecity@gmail.com to reserve your seat. RSVP is required. Executive Committee The Early Learning Coalition of Floridas Gateway Inc., executive committee meeting will be held on Monday, Nov. 18 at 3 p.m. at the Coalition Office, 1104 SW Main Boulevard. The Coalition administers the state and federal funding for all School Readiness and Voluntary Prekindergarten (VPK) programs for the fol lowing counties: Columbia, Hamilton, Lafayette, Suwannee and Union. We encourage community par ticipation and welcome any imput. Food for Fines The Columbia County Public Library will part ner with the Christian Service Center for a one-week Food for Fines project. From Nov. 1824, for every one nonexpired, sealed, non-per ishable food item that is brought to any of the three CCPL locations, the library patron will be able to exchange the item for $1 in overdue fines or fees. One item equals 41, five items equals $5, etc. The food collected will be delivered to the Christian Service Center in Lake City for local is invited to buy.. Open House The Chamber of Commerce is hosting an Open House & R/C for Origins Family Medical & Weight Loss Clinic on Tuesday, Nov. 19 from 4:30 to 5:30 p.m. at 194 SW Wall Terrace. Please RSVP for this event. Library program Friends of the Library welcome Rick Smith, son of A Land Remembered author Patrick D. Smith, who will present a. Art League meeting The Art League of North Florida invites the commu nity to the monthly meeting at the First Presbyterian Church on Tuesday Nov. 19 at 6:15 p.m. There will be fellowship followed by a supper, short busi ness meeting, and Sandy Lindfors as guest speaker. Sandys program is titled, Chewed through restraints. Having taught oil painting for 40 years, Sandy is now retired. She uses her oil painting expe rience to compliment her love for fabric art. NARFE meeting The National Active and Retired Federal Employees wil meet on Tuesday, Nov. 19 at 1 p.m. at the Life Enrichment Center, 628 SE Allison Court. Blue Cross / Blue Shield will be present ing this years health ben efits and premium cost. All federal retires are welcome to attend even if you are not a member. For more infor mation contact Jim Purvis at 752-8570 or 292-9361.. WILSONSArain. Mondays Game New England at Carolina, 8:40 p.m.BASKETBALLNBA schedule Todays Games Portland at Toronto, 1 p.m.Memphis at Sacramento, 6 p.m.Detroit at L.A. Lakers, 9:30 p.m. Mondays.. The Gamecocks (8-2, 6-2 Southeastern Conference) struggled to score points against the Gators SEC-leading defense until Fry gave them a 16-14 lead with a 22-yard field goal with 6:43 remaining. This is the longest losing streak for Florida (4-6, 3-5) since dropping nine straight during its 0-10-1 season in 1979. The Gamecocks win kept them in the SECs/ stump grinding. All major credit cards accepted. Call 352-745-0630. Roberts Stump Grinding Low as $10 each. Licensed & Insured. No trucks in your yard. Call or Text 386-984-6040 060Services 05541520Primary Care New Office Dr.Tohmina Begum, MD Board Certified Call: (386) 438-5255 100Job Opportunities05541914START up of Plant #2. Now hiring for all Positions including Quality Control and Cad Operator. Experience positions for Construction Workers: Framers, Electrical and Plumbing. Benefits available for full time employees. Applicants can apply at Champion Home Builders, Lake City, Fl. Available Position : Revenue Specialist III Florida Department of Revenue, General Tax Administration, Collections Location: Lake City Apply at People First website The State of Florida is an Equal Employment Opportunity Employer / Affirmative Action Employer. Commercial Electrician with Valid Drivers License. Please Email resumes to joel.bellman@yahoo.com EXPERIENCED MASONS and Mason Tenders/Helpers needed immediately for work located at University of Florida. Call 850-528-4930 Finance Directorfor local nonprofit. Experience with Sage MIP a plus. CPApreferred. Competitive compensation and benefits. View full position announcement at Submit resume and cover letter with salary requirements to hr@anotherwayinc.net No phone calls accepted. FULL-TIME POSITION Seeking organized, dependable, detail-oriented individual with 3+ years of general office experience. Must be able to multi-task and is proficient in Quickbooks, Excel, Outlook and Word. Salary based on skills and experience. Fax resume to 755-7331 GILMAN BUILDING Products Company is accepting applications for Storeroom Clerk at the Sawmill located in Lake Butler. This position is second shift receiving, inventorying and issuing parts. Ahigh school diploma or equivalent is required. Computer knowledge is required. We have competitive rates & 401K, dental & health insurance, paid vacations & holidays & promotional opportunities. Interested applicants should apply in person Monday through Friday from 8:00 AM until 3:30 PM at the front office Houston-based research firm seeks child assessors/observers for part-time temporary work in Columbia Co schools. Experience working in education and criminal background check required. $14/hr. E-mail cover letter + resume to RELSE.HR@dir-research.com.-K LEAD TEACHER $11.08 perhrRequirements: Minimum AS degree in Early Childhood Education or related field & 3 yrs classroom exp working w/preschool children INFANT/TODDLER TEACHER FULLTIME $8.71 perhr3 yrs infants & toddlers exp prefer-red. Requirements: FCCPC, CDAorequivalent Pro-fessional Child Care CredentialExcellent Benefits, Paid Holidays, Sick/Annual Leave, Health/DentalApply at: 236 SWColumbia Ave, LC By E-mail / fax to: employment@sv4cs.or g Fax (386) 754-2220 Call 754-2222 EOE SMALLHISTORIC non-denominational church with a heart for children is seeking a pianist for Sunday services. Please contact 386-755-0580 if interested. TMC ENVIRONMENTAL now hiring part time laborers. Starting pay $12/hr, Must pass background check, physical, and drug screen. Call 386-438-8258 M-F 8am-5pm TRUCK DRIVERS NEEDED Local Hauling Logs or Southeast Hauling Pine Straw & Freight 386-935-0693 or 386-935-0476 120Medical Employment 240Schools & Education05541854INTERESTED in a Medical Career?Express Training offers courses for beginners & exp Nursing Assistant, $479next class12/9/2013 Phlebotomy national certifica-tion, $800 next class1/13/2013. $475 mo., $475 sec. dep. 386-719-9169 or 386-965-3003. Large3BR/2BA Doublewide, 5 points area, no pets, $700-750/mo $500 dep, Large 2br/2ba $650/mo $500/dep, no pets, Woodgate village, 386-961-1482 MOVE IN Specials 2/1 MH $450 mo. 3/2 $550/mo. Only $350 + 1st mo. to m/in. Fast Approval 305-984-5511 Center of L.C. 640Mobile Homes forSalePalm Harbor Homes 4/2 Stock Sequoia 2,200 sq ft $12K OFF! FOR FREE PHOTOS....John Lyons @ 800-622-2832 ext 210 for details 710Unfurnished Apt. ForRent2br/1ba Apt. CH/A $475. mo $475 dep. No pets 386-697-4814 Nice Apt Downtown. Remodeled 1 bdrm. Kitchen, dining, LR $475. mo plus sec. Incld pest control. 386-362-8075 or 386-754-2951 SEASONALSPECIAL 2BR/1.5 BA. No pets $515 mth & $515 dep. Contact 386-697-4814 TENANTS DREAM Only 1 left $600 Newly remodeled, 2bd/1ba duplex Call for details 386-867-9231 UPDATED APT, w/tile floors/fresh paint. Great area. 386-752-9626 720Furnished Apts. ForRentImmaculate Studio Apt. Avail Dec. 1st $550. mo. $300. dep. Incl. appliances, cable, internet, water. Smoke Free Envir., No Pets 386-697-3031 or 386-487-5172 ROOMS FOR Rent. Hillcrest, Sands, Columbia. All furnished. Electric, cable, fridge, microwave. Weekly or monthly rates. 1 person $145, 2 persons $155. weekly 386-752-5808 730Unfurnished Home ForRent05542111 BR/1 BA, CH/A Nice & Clean $630 month & $630 deposit. Call 386-697-4814 3BD/2BAHOME on half acre. with 900 sq ft shop, central heat/aiR. $950/mo 1st+last+ $600 deposit. 386-365-8812 3BD/2BA, new paint and carpet, central a/c & heat, walk to VAand DOT. $975/mo 1st+last+$500 deposit. 386-243-8043 3br/2ba 2 car garage, Call for details 386-867-9231/1BABRICKhouse forsale in Lake City Fixer upper, needs roof. $19,500 cash. 352-498-3030Motorcycles 2008 ArticCat 4-wheeler 4 wheel drive, $2000 386-961-5990 950Cars forSale SPORTY07 Ford Mustang. 2DR coupe. Lt blue w/racing stripe. Excel. cond. 84K miles. $11,500. Call or txt Tom: 352-514-7175. Nov. 30, 2013 1 Pair Eyeglasses Some Restrictions Apply. Coupon Required. Expires Nov. 30, 2013 $ 99 NOW Includes lenses & frames. CONTACTS EYE EXAMS By Independent Optometristre trying to take a nap, says Tom Dott of the Lamb and Lion Inn on MassachusettsennDog With a BlogA)) HLN After Dark (N) Showbiz Tonight FNC 41 205 360Special Report With Bret Baier (N) On the Record W/Greta Van SusterenThe OReilly Factor (N) The Kelly File (N) Hannity (N) The OReilly Factor E! 45 114 236.(1:00)Raising America With Kyra Phillips WhispererVaried Programs NGC 109 186 276Wild JusticeAlaska State TroopersBorder WarsVaried Programs SCIENCE 110 193 284Varied Programs ID 111 192 285DisappearedDisappearedVaried Programs HBO 302 300 501(:15) MovieVaried Programs Movie worked a lifetime to get here. Give me the dignity I deserve. All too soon, you will want the same. DAUGHTER IN ANDERSON, IND. DEAR DAUGHTER: mothers care is not up to par and that her dignity is not being respected, you should discuss it with the director of the facility. DEAR ABBY: For the last 10 years, a family of four has come to our home for every Christmas and Easter meal. It started when my wife invited a co-worker. They had no fam-ily in town and nowhere else to go. My wifes relationship with the woman has cooled, but the family assumes they are automat-ically | http://ufdc.ufl.edu/UF00028308/00219 | CC-MAIN-2017-30 | refinedweb | 50,790 | 75.2 |
auto expansion}
You’ll get a list of all packages that begin with mvc as follows:
I choose MvcScaffolding, press enter and.. you’ll get the error that you need to have a project open. Of course, because it wants to add it to your project.
Now, let me add a real project with a simple class called MyTeam
public class MyTeam
{
[Key]
public int ID { get; set; }
[Required]
public string Name { get; set; }
public string City { get; set; }
public DateTime Founded { get; set; }
}
Now, when I re-run the last command, I get all my Controllers and Views.
Hope this helps, I have a lot more to learn now.
Thanks for the details on installation, helped me save time so I could shop online with my Sears Coupons
Great post keep it up
Now, when I re-run the last command, I get all my Controllers and Views.Hope this helps, I have a lot more to learn now.Installing NuGet on VS2010 (first blood) | http://peterkellner.net/2011/03/02/installing-nuget-on-vs2010-first-blood/ | CC-MAIN-2015-32 | refinedweb | 166 | 85.02 |
This is the 3rd post of a series of posts about NPOI 2.0.
This time we’re going to see how easy it’s to copy cells, rows and even sheets. As a bonus you also get to see the process for workbook merging/combining.
There’s nothing much to say so we’re going directly distill some “codez” in front of you…
Copying Cells and Rows
Here’s what it gets to copy Cells and Rows:
using NPOI.HSSF.UserModel; using NPOI.SS.UserModel; using System.IO; namespace CopyRowsAndCellsInXls { class Program { static HSSFWorkbook hssfWorkbook; static void Main(string[] args) { InitializeWorkbook(); ISheet sheet = hssfWorkbook.GetSheetAt(0);
ICell cell = sheet.GetRow(4).GetCell(1);
cell.CopyCellTo(3); // Copy B5 to D5 IRow row = sheet.GetRow(3); row.CopyCell(0, 1); // Copy A4 to B4 sheet.CopyRow(0,1); // Copy row A to row B; row B will be moved to row C automatically
WriteToFile(); } static void WriteToFile() { //Write the workbook’s data stream to the root directory FileStream file = new FileStream(@"test.xls", FileMode.Create);
hssfWorkbook.Write(file);
file.Close(); } static void InitializeWorkbook() { using (var fs = File.OpenRead(@"Data\test.xls")) { hssfWorkbook = new HSSFWorkbook(fs); } } } }
The code above was taken from CopyRowsAndCellsInXls sample project.
Copying Sheets
Here’s what it gets to copy Sheets:
using NPOI.HSSF.UserModel; using System; using System.IO; using System.Windows.Forms; namespace CopySheet { class Program { [STAThread] static void Main(string[] args) { // Excel worksheet merge/combine sample
// You will be prompted to select two Excel files/workbooks. test.xls will be created that combines/merges the sheets from those two workbooks. // Note: This example does not check for duplicate sheet names. Your test files must have different sheet names. OpenFileDialog ofd = new OpenFileDialog(); ofd.Filter = "Excel document (*.xls)|*.xlsx"; ofd.Title = "Select first Excel document";
if (ofd.ShowDialog() == DialogResult.OK) { HSSFWorkbook book1 = new HSSFWorkbook(new FileStream(ofd.FileName, FileMode.Open));
ofd.Title = "Select second Excel document";
if (ofd.ShowDialog() == DialogResult.OK) { HSSFWorkbook book2 = new HSSFWorkbook(new FileStream(ofd.FileName, FileMode.Open));
HSSFWorkbook merged = new HSSFWorkbook(); for (int i = 0; i < book1.NumberOfSheets; i++) { HSSFSheet sheet1 = book1.GetSheetAt(i) as HSSFSheet;
sheet1.CopyTo(merged, sheet1.SheetName, true, true); } for (int j = 0; j < book2.NumberOfSheets; j++) { HSSFSheet sheet2 = book2.GetSheetAt(j) as HSSFSheet;
sheet2.CopyTo(merged, sheet2.SheetName, true, true); }
merged.Write(new FileStream("merged.xls", FileMode.Create, FileAccess.ReadWrite)); } } } } }
The code above was taken from CopySheet sample project.
To go deeper and explore all the features available for Excel 2007 you can check a handful of sample projects here (as of now 24 sample projects showcasing many available features):
Open the file NPOI.XSSF.Examples.2010.sln to have all them show up in Visual Studio’s Solution Explorer. | http://www.leniel.net/2014/03/npoi-2.0-support-for-cell-row-sheet-copying-workbook-merging.html | CC-MAIN-2017-43 | refinedweb | 454 | 52.76 |
Python library to Etheroll smart contract
Project description
pyetheroll
Python library to Etheroll smart contract
Usage
Simply set bet size, chances and wallet settings before rolling:
from pyetheroll.etheroll import Etheroll etheroll = Etheroll() bet_size_ether = 0.1 chances = 50 wallet_path = 'wallet.json' wallet_password = 'password' transaction = etheroll.player_roll_dice( bet_size_ether, chances, wallet_path, wallet_password)
It's also possible to set different contract address and chain ID:
from pyetheroll.constants import ChainID from pyetheroll.etheroll import Etheroll chain_id = ChainID.ROPSTEN contract_address = '0xe12c6dEb59f37011d2D9FdeC77A6f1A8f3B8B1e8' etheroll = Etheroll(chain_id, contract_address)
Find out more in docs/Examples.md.
Install
pip install pyetheroll
pip install --process-dependency-links \
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages. | https://pypi.org/project/pyetheroll/20190321/ | CC-MAIN-2019-51 | refinedweb | 120 | 52.26 |
Re: Pluggable architecture for wicket application
You can try wicket-plugin [1]. [1] -- View this message in context: Sent from the Users forum mailing list archive at Nabble.com.
Re: Wicketstuff TimerPushService memory leak?
Hi Martin I don't understand you. I talk about the browser memory and I feel like you're talking about java memory. My problem is the browser (tab process) memory and not the java memory. Best regards, Decebal -- View this message in context:
Re: Wicketstuff TimerPushService memory leak?
Thanks Martin! -- View this message in context: Sent from the Users forum mailing list archive at Nabble.com. - To
Re: Wicketstuff TimerPushService memory leak?
I created another test. It' very simple. Just put a Label in a HomePage and add AjaxSelfUpdatingTimerBehavior on this component (label.add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(2)));) The results are the same: the memory increases with time. The ajax call looks ok. To monitor the
Re: Register Wicket Components @ Runtime
Maybe wicket-plugin [1] help you. Best regards, Decebal [1] -- View this message in context: Sent from the Users forum mailing list archive at
Re: Component Queueing is here (master), aka Free Wicket From Hierarchy Hell, aka Markup Driven Component Tree
Thanks! It is a major feature in Wicket 7. -- View this message in context: Sent from the Users forum mailing list archive at
About getMarkupType() from MarkupContainer
Hi I have an issue on wicket-jade () and I cannot find a nice solution. The use case is that I have an EmbeddedPanel (html markup) in a JadePanel (jade markup) and when I try to run my test I get a MarkupNotFoundException: Failed to find markup
Re: About getMarkupType() from MarkupContainer
Forget about. I resolved my problem much easy. -- View this message in context: Sent from the Users forum mailing list archive at Nabble.com.
Re: a little question about add(new XComponent(id).setVisible(false))
Hi Sebastian I see that in Component.internalBeforeRender() the call of onBeforeRender() is conditioned by determineVisibility() and this explains all. I think it's fine to change the hierarchy in onBeforeRender() ... , this is even made explicit in the source code of
a little question about add(new XComponent(id).setVisible(false))
Hi First, the scenario (a simplified version): I have a XPage (extends WebPage) and in the constructor of this page I want to add a YPanel (extends Panel) but depending on a condition. if (condiiton) { add(new YPanel(panel)); } else { add(new WebMarkupContainer(panel).setVisible(false));
Re: a little question about add(new XComponent(id).setVisible(false))
I tested with: public class MyPanel extends Panel { public MyPanel(String id) { super(id); } @Override protected void onBeforeRender() { super.onBeforeRender(); add(new MyLabel(l1,
Please remove the spam post from the wicket forum
Hi Is it someone that can make a clean on the wicket forum? It is frustrating to see a lot of spam posts (for example in start page only few posts are non spam). For a new coming these spam posts create a bad impression. Thanks, Decebal -- View this message in context:
Re: Please remove the spam post from the wicket forum
Sorry, I talk about Mailling Lists [1] [1] -- View this message in context: Sent from the Users forum mailing list archive at
Re: Please remove the spam post from the wicket forum
Or it's a possibility to filter these spam posts? How do you read these mailling posts? Best regards, Decebal -- View this message in context: Sent from the Users forum mailing
Re: Please remove the spam post from the wicket forum
Thanks Martin -- View this message in context: Sent from the Users forum mailing list archive at Nabble.com.
Little issue with tree component
Hi I write this post for sven as a feedback for his excellent tree component from wicket 6. I encounter a problem with the tree component (nothing happens on expand) in the conversion process of NextReports from wicket 1.5 to wicket 6. My problem happened because the NestedTree.updateBranch
Re: Blogging platform written in Wicket?
Hi I decided to open this platform under Apache License. It will be available on github. I've already converted application to wicket 6 and bootstrap 3. In fact, my intention was to create a modular debate platform (using plugins), something more social with many contributors/authors but I am
Re: Blogging platform written in Wicket?
Hi I have a platform for you (I created with other two friends, some time ago.) :) I like to open this platform and to publish the code on github under a friendly open source license (probably Apache License). Now the platform it's converted for wicket 6 but need more tests. On this platform we
Re: Blogging platform written in Wicket?
My mistake. myagora.ro is built with wicket 1.4 Best regards, Decebal -- View this message in context: Sent from the Users forum mailing list archive at Nabble.com.
[Announce] NextReports is open source
Hi I post this announce on the wicket forum because NextReports Server [1] is a wicket application and maybe it is useful for some wicket developers. In few words, the entire NextReports Suite [2] (a reporting and dashboarding tool released under Apache License) is available on github. The
Re: [Announce] wicket-jade
Hi I try to implement a JadeMarkupFactory (wicket custom MarkupFactory). You can see my current implementation at My problem is that if I want to render the jade template I need the map with the variables. JadePanel takes as parameter in constructor: Wicket plugin architecture
Hi If anybody is interested, Wicket Plugin is now available on github. Best regards, Decebal -- View this message in context: Sent from the Users forum
Re: Dynamic Components
Hi Can I see the code. The pastebin show me a Unknown Paste ID! message on link [1]. [1] Best regards, Decebal -- View this message in context: Sent from the Users forum mailing
Re: [Announce] Introducing Wicked Charts
See another implementation wicket-jqplot in wicketstuff () Best regards, Decebal -- View this message in context: Sent from: [ANN] wicket-dnd now ready for Wicket 6
Thanks. I appreciate your contribution to wicket (ui components in special). Best regards, Decebal -- View this message in context: Sent from the Users forum mailing list archive
Re: Charts in Wicket
jqplot . See some jqplot charts in action with wicket-dashboard . -- View this message in context: Sent from the Users forum: Mount Page
In your panel: WebApplication application = getApplication(); application.mountPage(...); // for mount and application.unmount(...); // for unmount -- View this message in context: Sent from the Users forum Thanks Paul for the nice words. wicket-dashboard code is used in production in NextReports server (see) but with some additional features (multiple dashboards, detached widgets,
: WiQuery 6.0.0 has been released!
Congratulations -- View this message in context: Sent from the Users forum mailing list archive at Nabble.com. - To
Re: The Apache Software Foundation Announces Apache Wicket™ 6.0.0
Good job -- View this message in context: Sent from the Users forum mailing list archive at Nabble.com.
pivot table for wicket
Hi I implemented a simple pivot table for wicket that can be found at Best regards, Decebal -- View this message in context: Sent from the Users forum mailing list: Generate html page from java POJO in Wickets
See also. It's not uptodate but you can see how it works. -- View this message in context: Sent from the Users forum mailing list
Re: Generate html page from java POJO in Wickets -- View this message in context: Sent from the Users forum mailing list archive at Nabble.com.
Re: Twitter Bootstrap Navigation and JQuery Impromptu demo / tutorial
Thanks. I like Twitter Bootstrap -- View this message in context: Sent from the Users forum mailing list archive at Nabble.com.: Wicket 1.5 ListMultipleChoice add Serializable values
Maybe you must override TextField.getConverter() because the text field component cannot knows to convert text to object/serializable. -- View this message in context: Sent
Re: Clear markup cache
Another question: I know what markup files are changed do you think that it's a good idea to use MarkupCache.removeMarkup(String key) to improve the performance? -- View this message in context: Sent from the
A/B testing with wicket
Hello Any advice how can I implement the A/B testing () in wicket. Anybody already implemented this concept in an ecommerce or page landing site? Thanks, Decebal -- View this message in context:);
Cannot find AnnotApplicationContextMock in wicket 1.5
Hi I migrate my application from wicket 1.4 to wicket 1.5.4 but I cannot find AnnotApplicationContextMock class. Thanks, Decebal -- View this message in context: Sent from,
maven repository for JQWicket
Hello Do you know a public maven repository for JQWicket? Thanks, Decebal -- View this message in context: Sent from the Users forum mailing list archive at Nabble.com. | https://www.mail-archive.com/search?l=users%40wicket.apache.org&q=from:%22Decebal+Suiu%22&o=newest | CC-MAIN-2021-25 | refinedweb | 1,462 | 55.54 |
Find the value of the list that occurs most often
The list is given. Determine the most common value in it.
The program below searches for only one value. If two values occur at the same frequency in the list, only one of them will be defined.
from random import random a = [int(random()*5) for i in range(15)] print(a) a_set = set(a) most_common = None qty_most_common = 0 for item in a_set: qty = a.count(item) if qty > qty_most_common: qty_most_common = qty most_common = item print(most_common)
Example of execution:
[1, 2, 2, 2, 1, 3, 2, 0, 2, 1, 3, 2, 4, 0, 4] 2
With comments:
from random import random # Filling the list with random numbers from 0 to 4. # The quantity of items in the list is 15. # The list generator is used for filling. a = [int(random()*5) for i in range(15)] print(a) # The list is converted to a set. # In it all elements are unique. a_set = set(a) most_common = None # most common value qty_most_common = 0 # its quantity # the cycle bypasses the elements (items) of the set for item in a_set: # the qty variable is assigned the number # of occurrences of the item in the list qty = a.count(item) # If the qty is greater than the maximum, if qty > qty_most_common: qty_most_common = qty # then overwrite the maximum, most_common = item # remember the value of the element # output value print(most_common) | https://pythoner.name/en/most-common-item | CC-MAIN-2022-33 | refinedweb | 234 | 61.46 |
This is a C++ Program to Perform Edge Coloring of a Graph.
In graph theory, an edge coloring of a graph is an assignment of “colors” to the edges of the graph so that no two adjacent edges have the same color.
1. Any two edges connected to same vertex will be adjacent.
2. Take a vertex and give different colours, to all edges connected it, remove those edges from graph (or mark them as coloured).
3. Traverse one of its edges.
4. And repeat the step 2 with the new vertex.
Here is source code of the C++ Program to Perform Edge Coloring of a Graph. The program is successfully compiled and tested under Linux platform. The program output is also shown below.
#include<bits/stdc++.h> using namespace std; int n,e,i,j; vector<vector<pair<int,int> > > graph; vector<int> color; bool vis[100011]; void colour(int node) { queue<int> q; int c=0; set<int> already_colored; if(vis[node]) return; vis[node]=1; for(i=0;i<graph[node].size();i++) { if(color[graph[node][i].second]!=-1) { already_colored.insert(color[graph[node][i].second]); } } for(i=0;i<graph[node].size();i++) { if(!vis[graph[node][i].first]) { q.push(graph[node][i].first); } if(color[graph[node][i].second]==-1) { while(already_colored.find(c)!=already_colored.end()) c++; //cout<<graph[node][i].second+1<<" "<<c<<"\n"; color[graph[node][i].second]=c; already_colored.insert(c); c++; } } while(!q.empty()) { int temp=q.front(); q.pop(); colour(temp); } return; } int main() { int x,y; set<int> empty; cout<<"Enter number of vertices and edges respectively:"; cin>>n>>e; cout<<"\n"; graph.resize(n); // Number of Vertices. color.resize(e,-1); // Number of Edges. memset(vis,0,sizeof(vis)); for(i=0;i<e;i++) { cout<<"\nEnter edge vertices of edge "<<i+1<<" :"; cin>>x>>y; x--; y--; graph[x].push_back(make_pair(y,i)); graph[y].push_back(make_pair(x,i)); } colour(0); for(i=0;i<e;i++) { cout<<"Edge "<<i+1<<" is coloured "<<color[i]+1<<"\n"; } }
1. User must first enter the number of vertices, N, and then number of edges, E, in the graph.
2. It should be followed by E lines, denoting A and B, if there is an edge between A and B.
3. The graph is stored as adjacency list.
4. Then BFS is implemented using queue and colours are assigned to each edge.
5. Numbers have been used instead of colours, for simplicity of source code.
Case 1: Enter number of vertices and edges respectively:4 6 Enter edge vertices of edge 1 :1 2 Enter edge vertices of edge 2 :2 3 Enter edge vertices of edge 3 :3 4 Enter edge vertices of edge 4 :1 4 Enter edge vertices of edge 5 :2 4 Enter edge vertices of edge 6 :1 3 Edge 1 is coloured 1 Edge 2 is coloured 2 Edge 3 is coloured 1 Edge 4 is coloured 2 Edge 5 is coloured 3 Edge 6 is coloured 3
Sanfoundry Global Education & Learning Series – C++ Algorithms.
To practice all C++ Algorithms, here is complete set of 1000 C++ Algorithms. | https://www.sanfoundry.com/cpp-program-perform-edge-coloring-graph/ | CC-MAIN-2020-29 | refinedweb | 526 | 64.51 |
[Aug 15 2008: Click here for updated links and instructions.]
Finally, here is the often-requested and long-awaited source code for PrivBar. In the process of code review, I’ve made minor updates to the DLL – which is now at v1.0.2.1. [2005-10-27: Updated to remove dependency on VC/MFC DLLs.]
It’s originally based on the old “KBBar” IE toolband sample (KB 246234), and also incorporates some of Keith Brown’s “tokdumpsrv” token-dumping code. It’s now a VS.NET 2003 project, but it was originally created and built with earlier versions of Visual Studio. And, oh, it’s all C++.
It could probably use a lot more internal documentation, but here are some random notes:
The mechanism that captures the security info might at first seem to be more complex than necessary. There are a couple of classes that need to consume the security information. The public interface to that information is a class with all static methods. Behind it is a privately declared class in a .cpp file and a module-level singleton instantiation of that class, so that it gets instantiated exactly once when the DLL loads. The group name lookups for the token-dumping dialog can be time consuming, so I kick off a background thread to get them so as not to hold up the rendering of the Explorer/IE window. That requires proper synchronization of access to the string info, which requires proper one-time initialization of a CRITICAL_SECTION, etc. I decided that the easiest way to do that was with the singleton. It was thrown together pretty quickly, to be quite honest! If I spent more time on it, I might have come up with something else. It works, though, and as far as I can tell does not offer any exploitable surface area!
After you released 1.0.2 I can not get the new DLL to load. When I try to use regsvr32 I get the error message “LoadLibrary(“C:Non-AdminPrivBar.dll”) failed – The specified module could not be found. Any ideas?
Hi Aaron,
Great tool, I have been using the Privbar and MakemeAdmin for a while on my laptop, but just downloaded the brivbar zip at work and tried to register it, and I get the following error that I cannot seem to resolve:
Loadlibrary(“privbar.dll”) failed – The Specified module could not be found
I am a local admin on this system.
Its very strange.)
That worked great! Thanx!!
What’s the license? May I put it on a CD-ROM for distribution?
Can you build and make available x64 binaries for this? I’m feeling naked without it on my new win64 box.
Thanks,
–Wez.
An x64 version would be great — could you send me an x64 computer? 🙂
Complete list of Aaron Margosis’ non-admin / least privilege posts, for easy lookup.
I am having problems compiling this project in Visual Studio 2003, I am geting following errors:
…PrivBarKBBarBand.h(76): error C2501: ‘CKBBarBand::IInputObjectSitePtr’ : missing storage-class or type specifiers
…PrivBarKBBarBand.h(76): error C2501: ‘CKBBarBand::m_pIOSite’ : missing storage-class or type specifiers
I download this source and tryed to compiple it, I haven’t made any changes to it.
Make sure you have installed a relatively recent Platform SDK and that its directories are in the include path, etc.
— Aaron
Hello, sorry for my english, i’m french!
I have downloaded the source of this project and i have the same errors that “Rade” has…
I don’t know if my SDK is up to date and i don’t know qhere i can add the good directories to the projet.
Please could you help me?
You can download the Platform SDK from msdn.microsoft.com/downloads, or get it as part of an MSDN Subscription.
In Visual Studio, choose Tools / Options, then look for VC++ Directories (actual location may vary based on Visual Studio version).
Hope this helps.
— Aaron
Hi Aaron,
We met a couple of times at a few Tech.Ed / IT.Forum events (US and EMEA). Now that IE 7 is officially out, will there be an update of PrivBar available? Otherwise what is the equivalent?
Thanks (contactable on blog > Feedback link) !
Hi, Desmond. I’ve used PrivBar on Vista without any problems. I haven’t tried it on XP+IE7 yet but I’m not aware of any issues. Have you tried it yet?
— Aaron
Aaron hello,
System: XP SP2 with IE7 RTM installed. Looks like PrivBar has been auto migrated from IE6 SP2 (on XP SP2) without reinstallation and it seems to function without any problems so far except:
a. it cannot be positioned on the same row as the new IE7 menu toolbar (where the back/forth buttons and the address bar sit). This was possible with IE6 previously. Perhaps it has got to do with the fact that this IE7 "toolbar" is permanently anchored and UNmovable even when the Lock the Toolbar option is disabled (default).
b. the font size of PrivBar seems to shrink or expand depending on the active tabs being selected.
Anything a user can do to fix these 2 annoyances?
Thanks again!
Hello Aaron,
Did you have time to check into my last feedback? Incidentally I did not manage to meet you in IT Forum 2006; were you there?
Thanks & rgds,
Desmond, sorry for the delay — I didn’t have an XP+IE7 system until recently. I think you are correct about the toolbar issue — the row with the back/forward buttons, address bar, etc., does not appear to be available for adding custom toolbars. Regarding the font size issue, I don’t see that happening. Can you provide repro steps?
Wish I could have been at IT Forum this year. Maybe next year? 🙂
— Aaron
Specifically what directories need to be included from the platform sdk? I have attempted both privbar and kbbar and get the same errors listed above. I have added several directories from src and include to the project and it doesn’t seem to make a difference.
Vaelek: You should install the Platform SDK using its installer, installing it to an appropriate system-wide location (the default is for it to go under %ProgramFiles%). If I remember correctly, if you have Visual Studio installed already, it will offer to add its directories to VS’ settings. If not, in Visual Studio 2005, choose Tools / Options, navigate to Projects and Solutions VC++ Directories. For each of the items in the “Show directories for” dropdown (particularly for the “Include” and “Libraries” folders), ensure that the appropriate Platform SDK folder is listed first. For Visual Studio .NET 2003, the same thing is in Tools / Options, navigate to Projects, VC++ Directories.
HTH
— Aaron
same issues as Vaelek, despite downloading Microsoft Platform SDK for Windows Server 2003 R2, and including the Include and all subdirectories in Visual C++ Express 2005. I also explicitly added an extra:
#include <comdef.h>
as per KBBAR postings.
Did you try to compile the bar using Visual C++ Express 2005?
m
Hi Aaron
I am in the phase of converting my source code from vc++6.0 to vc++8.0. I am using IInputObjectSitePtr(same as KBBar) and when I compile it is throwing me the error. I am using Vista Business edition and I have updated latest SDK and included it in the directories. Please do advice.
–Shaj
Last Friday the last of the Windows Server 2008 Security Resource Kit finally went to press! This was
Keep this file in stdafx.h
#include <comdef.h>
And also make sure you have installed SDK and specify the path of SDK include Folder (Given Below)
C:Program FilesMicrosoft SDKsWindowsv6.0Include
in Visual Studio 2008, choose Tools / Options, navigate to Projects and Solutions VC++ Directories .
Thats All.
—— Anoop Kumar | https://blogs.msdn.microsoft.com/aaron_margosis/2005/10/13/privbar-source-finally/ | CC-MAIN-2017-17 | refinedweb | 1,303 | 66.13 |
I'm trying to open a text file with Scala, read the first line, then the second, then the third.
All samples I've found online want to read/buffer the entire file into a list or array and then access the individual lines from that construct.
import scala.io.Source;
object ScalaDemo {
def main(args: Array[String]) = {
val file = io.Source.fromFile("TextFile.txt");
// -----------------------------------------------
// read text from file, line by line, no iterator
// -----------------------------------------------
val first = file.getLines().mkString;
val second = file.getLines().mkString;
val third = file.getLines().mkString;
// Close the file
file.close;
println(first+"|"+second+"|"+third);
}
}
As stated in comments,
.mkString will fetch all the elements that the iterator would return and concatenate them in a single string.
The option of @Régis Jean-Gilles is probably the best if you already know that you always have at least three lines in the file.
Another option is to call
getLines() followed by
grouped(3) to get an iterator that groups elements into blocks of 3. A call to
next() will give you a list with at most three elements (it can have less if the iterator has only two elements left to return for example).
val ite = io.Source.fromFile("textfile.txt").getLines().grouped(3) //list with the first three elements, if any - //otherwise an empty list if the file is empty val list = if(ite.hasNext()) ite.next() else Nil
At least it does ensure that you won't have a
NoSuchElementException at runtime if there is less than 3 lines in the file. | https://codedump.io/share/TiRVEDHxogZ1/1/reading-a-text-file-in-scala-one-line-after-the-other-not-iterated | CC-MAIN-2021-21 | refinedweb | 256 | 64.91 |
- Sort Posts
- 26 replies
- Last post
how to check opengl version i m new for this....sry for my bad english...
The OpenGL version is specified in the Android.mk file (in the /jni directory); look for this line:
USE_OPENGL_ES_1_1 := false
if you want to use OpenGL ES 1.1 (instead of 2.0), just set the value of that variable to true
You may also want to have a look at this article:
HTH.
Thanks.....but now ndk-build successfully but now shown when i run the project...object is not display.
wht should i do???
Have you adjusted the kObjectScale (see in ImageTargets.cpp, global variables) ?
Sometimes it is just that the model is too small and you might need to increase that number to something big (e.g. 100).
i have done this:
kObjectScale=100.f
but no result....plz help me .....
Can you PM me the header file (.h) of your 3D model ?
ya give me your email id plz...
Just click on my name and then on the Send a Message button
how can i send u .h file i dnt have ur email id plz give me ur id.....
I've sent you a message, just reply to that (check your email)
sry its very long file...so it is not possible to copy paste if any other option to upload file and then i can send it....
hello,
i'hv sent u msg plz check it...
Got it, thanks.
I was able to render the Tajmahal model; these are the code changes I made (starting from a fresh ImageTargets sample):
- add the include statement:
#include "TAJMAHALOBJ.h"
- increased kObjectScale to 100.f;
- in the renderFrame() function, I modified the rendering code as follows (since your model has no indices, no tex-coords and no normals):
glUseProgram(shaderProgramID); glVertexAttribPointer(vertexHandle, 3, GL_FLOAT, GL_FALSE, 0, (const GLvoid*) &TAJMAHALOBJVerts[0]); /* glVertexAttribPointer(normalHandle, 3, GL_FLOAT, GL_FALSE, 0, (const GLvoid*) &teapotNormals[0]); glVertexAttribPointer(textureCoordHandle, 2, GL_FLOAT, GL_FALSE, 0, (const GLvoid*) &teapotTexCoords1i(texSampler2DHandle, 0); glUniformMatrix4fv(mvpMatrixHandle, 1, GL_FALSE, (GLfloat*)&modelViewProjection.data[0] ); /* glDrawElements(GL_TRIANGLES, NUM_TEAPOT_OBJECT_INDEX, GL_UNSIGNED_SHORT, (const GLvoid*) &teapotIndices[0]); */ glDrawArrays(GL_TRIANGLES, 0, TAJMAHALOBJNumVerts);
Can you try the same ?
Hi Alessadro B:
my project is running successfully....
thank you very much for your support.
regards
bitupatel
Glad to hear that. You're welcome.
Hi guys I tried to all steps but still getting error like:
Thanks your feedback AlessandroB
I actually did replace teapon on Image Target sample. But now I am trying to do in my project which have these errors . weird
Edit: I changed
USE_OPENGL_ES_1_1 := false
to
USE_OPENGL_ES_1_1 := true
and Now I 've got some errors when my application enter the ImageTarget activity.
Hi, the error in the image indicates that your Java code is unable to resolve the link to the C++ code;
this probably happens because you created your project by copying the code from ImageTargets and renaming the project, but probably you forgot to update certain references to the right name of your native module; for instance, the LOCAL_MODULE ( e.g. LOCAL_MODULE := ImageTargets) in your Android.mk should be the same as the one that appears in the Java code (see loadLibrary() and NATIVE_LIB_SAMPLE = "ImageTargets" in ImageTargets.java);
also, the C++ function names should reflect the name of the Java classes, as per JNI specification.
Have you checked this article, which explains these basic issues ?
Thanks AlessandroB
I changed
NATIVE_LIB_SAMPLE = "ImageTargets"; to NATIVE_LIB_SAMPLE = "AugmentedRealityTest";
and in android.mk changed LOCAL_MODULE := ImageTargets to LOCAL_MODULE := AugmentedRealityTest
I create a ndk builder like a sample
now
I would recommend to use ndk-build from the console (and avoid using the ndk-builder in Eclipse, as this kind of problems can emerge)
I would recommend to use ndk-build from the console (and avoid using the ndk-builder in Eclipse, as this kind of problems can emerge)
Thanks for responce AlessandroB,
You are totally right.
I changed codes that like (myPackage name is com.arel.augmentedrealitytest)
Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_initApplicationNative
to:
Java_com_arel_augmentedrealitytest_ImageTargets_initApplicationNative
(myPackage name is com.arel.augmentedrealitytest)
and than got
" Failed to initilaze QCAR". error.
So I realized to forget to add some permisition in manifest file.
and changed code in ImageTargets.cpp
"getTexture", "(I)Lcom/qualcomm/QCARSamples/ImageTargets/Texture;");
build ndk again
Got no errors in log Thanks alot :)
you're welcome
Hi,
I am New in Android ..i am showing following error during Ndk-Build in Cygwin for Image Target Native Sample
SampleUtils::scalePoseMatrix(targetSize.data[0],targetSize.data[1],1.0f,
Can Anyone Help me to declere targetSize ?
You can declare targetSize as a QCAR::Vec2F.
Note: it looks like you are copy-pasting some code from one sample into another (e.g. from VideoPlayback into ImageTargets, or something similar); this is perfectly legitimate, but before doing that I would recommend you are well familiar with C++ programming (e.g. variable declaration), and when copying code from one place to another, you need to make sure you are also copying the relevant variable declarations and everything else you need to bring something consistently.
Final note: you are posting on a thread which is not really relevant to your issue; please create a new thread in the future; this thread was already answered and the discussion ws over. By reopening this thread with a basic programming question you are simply creating confusion in the thread itself.
Thanks.
Delete Message
Are you sure you want to delete this message?
Delete Conversation
Are you sure you want to delete this conversation?
Hi, you probably forgot to include the header file (.h) containing the TAJMAHALStride and TAJMAHALNumVerts definitions.
Also, glVertexpointer is compatible with OpenGL 1.1, while if you are using OpenGL 2.0 you should use glVertexAttribPointer(). | https://developer.vuforia.com/forum/android/ndk-build-error-image-target?sort=2 | CC-MAIN-2021-25 | refinedweb | 947 | 57.06 |
I’ve recently made a solution where the customer requested to be able to bring up the calendar view in a DateTimePicker control by pressing on a specific button on the screen. The solution to that was really simple: Create a control that inherits from System.Windows.Forms.DateTimePicker and add a method called ShowCalendar() which I call to bring up the Calendar view.
public class DateTimePickerEx : DateTimePicker
{
[DllImport(“coredll.dll”)]
static extern int SendMessage(
IntPtr hWnd, uint uMsg, int wParam, int lParam);
const int WM_LBUTTONDOWN = 0x0201;
public void ShowCalendar() {
int x = Width – 10;
int y = Height / 2;
int lParam = x + y * 0x00010000;
SendMessage(Handle, WM_LBUTTONDOWN, 1, lParam);
}
}
4 thoughts on “Displaying the Calendar view on a DateTimePicker Control in .NETCF”
Hi Christian,
It’s Jenson here.
Hmm, sorry I’m quite new in coding and I found out that I’m always scared of coding something like this, which I have no knowledge or experience on:
SendMessage(Handle, WM_LBUTTONDOWN, 1, lParam);
Are they native codes or something else?I don’t really know how to name them. I think you are either a C# guy, or you have background on Java, I’ve been trying hard to squeeze out time to learn Java too -.-“
Great blog and resources >.<" can learn a lot from here. One more thing, your photo is so cool XD
Hi Jenson,
Nice of you to stop by. And thanks for all the compliments.
WM_LBUTTONDOWN is the Windows Message that a control receives when it is clicked using the left mouse button. Windows programming can be quite cryptic to see at first.
Try reading up on Win32 Programming a little, you will see the bigger picture and you might also thank god for managed code!
As for my programming background, i mainly work with C# now but i’ve played with quite a few other technologies in the past. I never really got proficient with Java though. I believe that Java was a part of my Linux phase..
yeah, it’s always my pleasure to visit blogs, especially those who has helped me a lot. I’ll find myself rude if I stop by and say Hi to you =)
Well, there will be another project coming in pretty soon. I will be quite busy soon -.-“
And yeah, thanks God for the managed code, else I will have to remember all these WM_LBUTTONDOWN stuff, btw, the new project would use purely PDA for client side, so might be Windows CE 6.0 as they dont need the mobile functions.
Have a nice day! Take care!
I'm realy trying hard to translate this to VS2008 – and can't get it work – can anybody help ? | https://christianhelle.com/2007/07/displaying-the-calendar-view-on-a-datetimepicker-control-in-netcf/ | CC-MAIN-2021-04 | refinedweb | 447 | 71.75 |
scan – Looping in Theano¶
Guide¶
The scan functions provides the basic functionality needed to do loops in Theano. Scan comes with many whistles and bells, which we will introduce by way of examples.
Simple loop with accumulation: Computing
¶
Assume that, given k you want to get
A**k using a loop.
More precisely, if A is a tensor you want to compute
A**k elemwise. The python/numpy code might look like:
result = 1 for i in range(k): result = result * A
There are three things here that we need to handle: the initial value
assigned to
result, the accumulation of results in
result, and
the unchanging variable
A. Unchanging variables are passed to scan as
non_sequences. Initialization occurs in
outputs_info, and the accumulation
happens automatically.
The equivalent Theano code would be:
import theano import theano.tensor as T k = T.iscalar("k") A = T.vector("A") # Symbolic description of the result result, updates = theano.scan(fn=lambda prior_result, A: prior_result * A, outputs_info=T.ones_like(A), non_sequences=A, n_steps=k) # We only care about A**k, but scan has provided us with A**1 through A**k. # Discard the values that we don't care about. Scan is smart enough to # notice this and not waste memory saving them. final_result = result[-1] # compiled function that returns A**k power = theano.function(inputs=[A,k], outputs=final_result, updates=updates) print(power(range(10),2)) print(power(range(10),4))
[ 0. 1. 4. 9. 16. 25. 36. 49. 64. 81.] [ 0.00000000e+00 1.00000000e+00 1.60000000e+01 8.10000000e+01 2.56000000e+02 6.25000000e+02 1.29600000e+03 2.40100000e+03 4.09600000e+03 6.56100000e+03]
Let us go through the example line by line. What we did is first to
construct a function (using a lambda expression) that given
prior_result and
A returns
prior_result * A. The order of parameters is fixed by scan:
the output of the prior call to
fn (or the initial value, initially)
is the first parameter, followed by all non-sequences.
Next we initialize the output as a tensor with same shape and dtype as
A,
filled with ones. We give
A to scan as a non sequence parameter and
specify the number of steps
k to iterate over our lambda expression.
Scan returns a tuple containing our result (
result) and a
dictionary of updates (empty in this case). Note that the result
is not a matrix, but a 3D tensor containing the value of
A**k for
each step. We want the last value (after
k steps) so we compile
a function to return just that. Note that there is an optimization, that
at compile time will detect that you are using just the last value of the
result and ensure that scan does not store all the intermediate values
that are used. So do not worry if
A and
k are large.
Iterating over the first dimension of a tensor: Calculating a polynomial¶
In addition to looping a fixed number of times, scan can iterate over
the leading dimension of tensors (similar to Python’s
for x in a_list).
The tensor(s) to be looped over should be provided to scan using the
sequence keyword argument.
Here’s an example that builds a symbolic calculation of a polynomial from a list of its coefficients:
import numpy coefficients = theano.tensor.vector("coefficients") x = T.scalar("x") max_coefficients_supported = 10000 # Generate the components of the polynomial components, updates = theano.scan(fn=lambda coefficient, power, free_variable: coefficient * (free_variable ** power), outputs_info=None, sequences=[coefficients, theano.tensor.arange(max_coefficients_supported)], non_sequences=x) # Sum them up polynomial = components.sum() # Compile a function calculate_polynomial = theano.function(inputs=[coefficients, x], outputs=polynomial) # Test test_coefficients = numpy.asarray([1, 0, 2], dtype=numpy.float32) test_value = 3 print(calculate_polynomial(test_coefficients, test_value)) print(1.0 * (3 ** 0) + 0.0 * (3 ** 1) + 2.0 * (3 ** 2))
19.0 19.0
There are a few things to note here.
First, we calculate the polynomial by first generating each of the coefficients, and then summing them at the end. (We could also have accumulated them along the way, and then taken the last one, which would have been more memory-efficient, but this is an example.)
Second, there is no accumulation of results, we can set
outputs_info to
None. This indicates
to scan that it doesn’t need to pass the prior result to
fn.
The general order of function parameters to
fn is:
sequences (if any), prior result(s) (if needed), non-sequences (if any)
Third, there’s a handy trick used to simulate python’s
enumerate: simply include
theano.tensor.arange to the sequences.
Fourth, given multiple sequences of uneven lengths, scan will truncate to the shortest of them. This makes it safe to pass a very long arange, which we need to do for generality, since arange must have its length specified at creation time.
Simple accumulation into a scalar, ditching lambda¶
Although this example would seem almost self-explanatory, it stresses a
pitfall to be careful of: the initial output state that is supplied, that is
outputs_info, must be of a shape similar to that of the output variable
generated at each iteration and moreover, it must not involve an implicit
downcast of the latter.
import numpy as np import theano import theano.tensor as T up_to = T.iscalar("up_to") # define a named function, rather than using lambda def accumulate_by_adding(arange_val, sum_to_date): return sum_to_date + arange_val seq = T.arange(up_to) # An unauthorized implicit downcast from the dtype of 'seq', to that of # 'T.as_tensor_variable(0)' which is of dtype 'int8' by default would occur # if this instruction were to be used instead of the next one: # outputs_info = T.as_tensor_variable(0) outputs_info = T.as_tensor_variable(np.asarray(0, seq.dtype)) scan_result, scan_updates = theano.scan(fn=accumulate_by_adding, outputs_info=outputs_info, sequences=seq) triangular_sequence = theano.function(inputs=[up_to], outputs=scan_result) # test some_num = 15 print(triangular_sequence(some_num)) print([n * (n + 1) // 2 for n in range(some_num)])
[ 0 1 3 6 10 15 21 28 36 45 55 66 78 91 105] [0, 1, 3, 6, 10, 15, 21, 28, 36, 45, 55, 66, 78, 91, 105]
Another simple example¶
Unlike some of the prior examples, this one is hard to reproduce except by using scan.
This takes a sequence of array indices, and values to place there, and a “model” output array (whose shape and dtype will be mimicked), and produces a sequence of arrays with the shape and dtype of the model, with all values set to zero except at the provided array indices.
location = T.imatrix("location") values = T.vector("values") output_model = T.matrix("output_model") def set_value_at_position(a_location, a_value, output_model): zeros = T.zeros_like(output_model) zeros_subtensor = zeros[a_location[0], a_location[1]] return T.set_subtensor(zeros_subtensor, a_value) result, updates = theano.scan(fn=set_value_at_position, outputs_info=None, sequences=[location, values], non_sequences=output_model) assign_values_at_positions = theano.function(inputs=[location, values, output_model], outputs=result) # test test_locations = numpy.asarray([[1, 1], [2, 3]], dtype=numpy.int32) test_values = numpy.asarray([42, 50], dtype=numpy.float32) test_output_model = numpy.zeros((5, 5), dtype=numpy.float32) print(assign_values_at_positions(test_locations, test_values, test_output_model))
[[[ 0. 0. 0. 0. 0.] [ 0. 42. 0. 0. 0.] [ 0. 0. 0. 0. 0.] [ 0. 0. 0. 0. 0.] [ 0. 0. 0. 0. 0.]] [[ 0. 0. 0. 0. 0.] [ 0. 0. 0. 0. 0.] [ 0. 0. 0. 50. 0.] [ 0. 0. 0. 0. 0.] [ 0. 0. 0. 0. 0.]]]
This demonstrates that you can introduce new Theano variables into a scan function.
Multiple outputs, several taps values - Recurrent Neural Network with Scan¶
The examples above showed simple uses of scan. However, scan also supports referring not only to the prior result and the current sequence value, but also looking back more than one step.
This is needed, for example, to implement a RNN using scan. Assume that our RNN is defined as follows :

Note that this network is far from a classical recurrent neural network and might be useless. The reason we defined as such is to better illustrate the features of scan.
In this case we have a sequence over which we need to iterate
u,
and two outputs
x and
y. To implement this with scan we first
construct a function that computes one iteration step :
def oneStep(u_tm4, u_t, x_tm3, x_tm1, y_tm1, W, W_in_1, W_in_2, W_feedback, W_out): x_t = T.tanh(theano.dot(x_tm1, W) + \ theano.dot(u_t, W_in_1) + \ theano.dot(u_tm4, W_in_2) + \ theano.dot(y_tm1, W_feedback)) y_t = theano.dot(x_tm3, W_out) return [x_t, y_t]
As naming convention for the variables we used
a_tmb to mean
a at
t-b and
a_tpb to be
a at
t+b.
Note the order in which the parameters are given, and in which the
result is returned. Try to respect chronological order among
the taps ( time slices of sequences or outputs) used. For scan is crucial only
for the variables representing the different time taps to be in the same order
as the one in which these taps are given. Also, not only taps should respect
an order, but also variables, since this is how scan figures out what should
be represented by what. Given that we have all
the Theano variables needed we construct our RNN as follows :
W = T.matrix() W_in_1 = T.matrix() W_in_2 = T.matrix() W_feedback = T.matrix() W_out = T.matrix() u = T.matrix() # it is a sequence of vectors x0 = T.matrix() # initial state of x has to be a matrix, since # it has to cover x[-3] y0 = T.vector() # y0 is just a vector since scan has only to provide # y[-1] ([x_vals, y_vals], updates) = theano.scan(fn=oneStep, sequences=dict(input=u, taps=[-4,-0]), outputs_info=[dict(initial=x0, taps=[-3,-1]), y0], non_sequences=[W, W_in_1, W_in_2, W_feedback, W_out], strict=True) # for second input y, scan adds -1 in output_taps by default
Now
x_vals and
y_vals are symbolic variables pointing to the
sequence of x and y values generated by iterating over u. The
sequence_taps,
outputs_taps give to scan information about what
slices are exactly needed. Note that if we want to use
x[t-k] we do
not need to also have
x[t-(k-1)], x[t-(k-2)],.., but when applying
the compiled function, the numpy array given to represent this sequence
should be large enough to cover this values. Assume that we compile the
above function, and we give as
u the array
uvals = [0,1,2,3,4,5,6,7,8].
By abusing notations, scan will consider
uvals[0] as
u[-4], and
will start scanning from
uvals[4] towards the end.
Conditional ending of Scan¶
Scan can also be used as a
repeat-until block. In such a case scan
will stop when either the maximal number of iteration is reached, or the
provided condition evaluates to True.
For an example, we will compute all powers of two smaller then some provided
value
max_value.
def power_of_2(previous_power, max_value): return previous_power*2, theano.scan_module.until(previous_power*2 > max_value) max_value = T.scalar() values, _ = theano.scan(power_of_2, outputs_info = T.constant(1.), non_sequences = max_value, n_steps = 1024) f = theano.function([max_value], values) print(f(45))
[ 2. 4. 8. 16. 32. 64.]
As you can see, in order to terminate on condition, the only thing required
is that the inner function
power_of_2 to return also the condition
wrapped in the class
theano.scan_module.until. The condition has to be
expressed in terms of the arguments of the inner function (in this case
previous_power and
max_value).
As a rule, scan always expects the condition to be the last thing returned by the inner function, otherwise an error will be raised.
Reducing Scan’s memory usage¶
This section presents the
scan_checkpoints function. In short, this
function reduces the memory usage of scan (at the cost of more computation
time) by not keeping in memory all the intermediate time steps of the loop,
and recomputing them when computing the gradients. This function is therefore
only useful if you need to compute the gradient of the output of scan with
respect to its inputs, and shouldn’t be used otherwise.
Before going more into the details, here are its current limitations:
- It only works in the case where only the output of the last time step is needed, like when computing
A**kor in an encoder-decoder setup.
- It only accepts sequences of the same length.
- If
n_stepsis specified, it has the same value as the length of any sequences.
- It is singly-recurrent, meaning that only the previous time step can be used to compute the current one (i.e.
h[t]can only depend on
h[t-1]). In other words,
tapscan not be used in
sequencesand
outputs_info.
Often, in order to be able to compute the gradients through scan operations,
Theano needs to keep in memory some intermediate computations of scan. This
can sometimes use a prohibitively large amount of memory.
scan_checkpoints allows to discard some of those intermediate steps and
recompute them again when computing the gradients. Its
save_every_N argument
specifies the number time steps to do without storing the intermediate results.
For example,
save_every_N = 4 will reduce the memory usage by 4, while having
to recompute 3/4 time steps of the forward loop. Since the grad of scan is
about 6x slower than the forward, a ~20% slowdown is expected. Apart from the
save_every_N argument and the current limitations, the usage of this function
is similar to the classic
scan function.
Optimizing Scan’s performance¶
This section covers some ways to improve performance of a Theano function using Scan.
Minimizing Scan usage¶
Scan makes it possible to define simple and compact graphs that can do the same work as much larger and more complicated graphs. However, it comes with a significant overhead. As such, when performance is the objective, a good rule of thumb is to perform as much of the computation as possible outside of Scan. This may have the effect of increasing memory usage but can also reduce the overhead introduces by using Scan.
Explicitly passing inputs of the inner function to scan¶
It is possible, inside of Scan, to use variables previously defined outside of
the Scan without explicitly passing them as inputs to the Scan. However, it is
often more efficient to explicitly pass them as non-sequence inputs instead.
Section Using shared variables - Gibbs sampling provides an explanation for this and
section Using shared variables - the strict flag describes the strict flag, a tool that Scan
provides to help ensure that the inputs to the function inside Scan have all
been provided as explicit inputs to the
scan() function.
Deactivating garbage collecting in Scan¶
Deactivating the garbage collection for Scan can allow it to reuse memory between executions instead of always having to allocate new memory. This can improve performance at the cost of increased memory usage. By default, Scan reuses memory between iterations of the same execution but frees the memory after the last iteration.
There are two ways to achieve this, using the Theano flag
config.scan.allow_gc and setting it to False, or using the argument
allow_gc of the function theano.scan() and set it to False (when a value
is not provided for this argument, the value of the flag
config.scan.allow_gc is used).
Graph optimizations¶
This one is simple but still worth pointing out. Theano is able to automatically recognize and optimize many computation patterns. However, there are patterns that Theano doesn’t optimize because doing so would change the user interface (such as merging shared variables together into a single one, for instance). Additionally, Theano doesn’t catch every case that it could optimize and so it remains useful for performance that the user defines an efficient graph in the first place. This is also the case, and sometimes even more so, for the graph inside of Scan. This is because it will be executed many times for every execution of the Theano function that contains it.
The LSTM tutorial on
DeepLearning.net provides an example of an
optimization that Theano cannot perform. Instead of performing many matrix
multiplications between matrix
and each of the shared matrices
,
,
and
, the matrices
, are merged into a single shared matrix
and the graph
performs a single larger matrix multiplication between
and
. The resulting matrix is then sliced to obtain the results of that
the small individual matrix multiplications would have produced. This
optimization replaces several small and inefficient matrix multiplications by
a single larger one and thus improves performance at the cost of a potentially
higher memory usage.
reference¶
This module provides the Scan Op.
Scanning is a general form of recurrence, which can be used for looping. The idea is that you scan a function along some input sequence, producing an output at each time-step that can be seen (but not modified) by the function at the next time-step. (Technically, the function can see the previous K time-steps of your outputs and L time steps (from the past and future) of your inputs.
So for example,
sum() could be computed by scanning the
z+x_i
function over a list, given an initial state of
z=0.
Special cases:
- A reduce operation can be performed by returning only the last output of a
scan.
- A map operation can be performed by applying a function that ignores previous steps of the outputs.
Often a for-loop can be expressed as a
scan() operation, and
scan is
the closest that theano comes to looping. The advantage of using
scan
over for loops is that it allows the number of iterations to be a part of
the symbolic graph.
The Scan Op should typically be used by calling any of the following
functions:
scan(),
map(),
reduce(),
foldl(),
foldr().
theano.
map(fn, sequences, non_sequences=None, truncate_gradient=-1, go_backwards=False, mode=None, name=None)[source]¶
Similar behaviour as python’s map.
theano.
reduce(fn, sequences, outputs_info, non_sequences=None, go_backwards=False, mode=None, name=None)[source]¶
Similar behaviour as python’s reduce.
theano.
foldl(fn, sequences, outputs_info, non_sequences=None, mode=None, name=None)[source]¶
Similar behaviour as haskell’s foldl.
theano.
foldr(fn, sequences, outputs_info, non_sequences=None, mode=None, name=None)[source]¶
Similar behaviour as haskell’ foldr.
theano.
scan(fn, sequences=None, outputs_info=None, non_sequences=None, n_steps=None, truncate_gradient=-1, go_backwards=False, mode=None, name=None, profile=False, allow_gc=None, strict=False, return_list=False)[source]¶
This function constructs and applies a Scan op to the provided arguments.
theano.
scan_checkpoints(fn, sequences=[], outputs_info=None, non_sequences=[], name='checkpointscan_fn', n_steps=None, save_every_N=10, padding=True)[source]¶
Scan function that uses less memory, but is more restrictive.
In
scan(), if you compute the gradient of the output with respect to the input, you will have to store the intermediate results at each time step, which can be prohibitively huge. This function allows to do
save_every_Nsteps of forward computations without storing the intermediate results, and to recompute them during the gradient computation.
Notes
Current assumptions:
- Every sequence has the same length.
- If
n_stepsis specified, it has the same value as the length of any sequence.
- The value of
save_every_Ndivides the number of steps the scan will run without remainder.
- Only singly-recurrent and non-recurrent outputs are used. No multiple recurrences.
- Only the last timestep of any output will ever be used. | http://deeplearning.net/software/theano/library/scan.html | CC-MAIN-2019-18 | refinedweb | 3,229 | 55.74 |
3 Jan 23:06
[OpenID] XRD/YADIS validator?
From: Sam Ruby <rubys <at> intertwingly.net>
Subject: [OpenID] XRD/YADIS validator?
Newsgroups: gmane.comp.web.openid.general
Date: 2007-01-03 22:09:19 GMT
Subject: [OpenID] XRD/YADIS validator?
Newsgroups: gmane.comp.web.openid.general
Date: 2007-01-03 22:09:19 GMT
Would people on this list see value in a XRD/YADIS validator? If syndication is any guide, once the "unwashed masses" start adopting this, I see plenty of opportunities for errors: non-memorable namespace names, MiXeDcAsE Element names, etc. If there is value, what I would find helpful is suggestions in the form of test cases: documents which either are asserted to be valid, or documents which contain specified conditions that should produce a specific error or a warning. An example of a warnings could be "unknown Type": in theory, any URI is valid, but unknown Types may indicate a typo. Checks can also be made for the presence of elements such as openid:Delegate when Type is other than. Given such tests, I can quickly build this logic on top of the foundation that is the Feed Validator: it already has logic for what constitutes a valid URI (or IRI, for that matter). - Sam Ruby | http://permalink.gmane.org/gmane.comp.web.openid.general/3641 | crawl-001 | refinedweb | 209 | 52.7 |
Deploying 3rdparty Qt Quick plugins on macOS
Hello,
I am trying to build a macOS application which uses KDE's Kirigami framework for its UI. On Linux I am able to install Kirigami to a standard location so that Qt could automatically locate it. On macOS I use macdeployqt, but it only copies Qt's own Qt Quick libs (e.g. QQC2), so I have to script cp/ln/install_name_tool.
Is it possible to make macdeployqt add Kirigami automatically? Or, alternatively, can I use CMake or some macOS tools to do the job?
- AndyS Moderators
Hi @Ilya-Bizyaev,
Provided that your QML imports it and you have your QML2_IMPORT_PATH environment variable set to include the location of the import then macdeployqt should take care of this for you and pick it up as a result. This way macdeployqt can see that it requires it and will deploy it with the other plugins.
Thank you for your reply!
Unfortunately, macdeployqt does not seem to take QML2_IMPORT_PATH into account. I managed to make it find Kirigami by symlinking from inside Qt's qml folder to the library's location, but it feels hacky.
Hi,
There's the
-qmldiroption of
macdeployqtthat you can use but AFAIK, it only takes one path currently.
Thanks for the reply :)
According to the macdeployqt manual:
-qmldir=<path> : Scan for QML imports in the given path.
This argument is used to specify the application's qml source directory to be scanned for
import *statements. It can accept multiple paths, but these are not used as library search paths.
To specify a library search path, macdeployqt would need to pass it as an
-importPathargument to qmlimportscanner, but it only passes Qt's default library location:
As a hack one can create a link to the custom location from inside the Qt installation, and that's what I use for now, but I think there has to be a better way.
A feature to add to
macdeployqt: an option to give additional import paths.
Should I open a feature request?
If you don't find any yet, yes. If you can provide a minimal buildable sample application that shows that behaviour it would be great.
Out of curiosity, how did you got Kirigami for macOS ?
@SGaist I reported the issue as and opened a revision at
Kirigami works just right on macOS, here are some screenshots:
The app is on its early stages, though.
Thanks for the submission !
One small fix to the commit message to do :)
Starting from Qt 5.13, there will be a
-qmlimportmacdeployqt option to specify additional QML module search directories.
If needed earlier,
macdeployqtcan be manually built from the dev branch. | https://forum.qt.io/topic/95157/deploying-3rdparty-qt-quick-plugins-on-macos/13 | CC-MAIN-2019-04 | refinedweb | 446 | 63.09 |
I am dynamically generating the SVG in my
<x-pizza>pizza-building Polymer. And for the life of me, I don't know why. But it may have been a lucky guess.
For my fist pass, the shapes were all circles:
The pizza was effectively inlined in the Polymer element's shadow DOM with a bit of JavaScript:
For now, I am going to leave that in place in my custom element. Instead, I will concentrate on loading an external SVG file for the toppings and adding them to the SVG.For now, I am going to leave that in place in my custom element. Instead, I will concentrate on loading an external SVG file for the toppings and adding them to the SVG.
_updateGraphic: function() { this.$['pizza-graphic'].innerHTML = '' + '<circle cx="150" cy="150" r="150" fill="tan" />' + '<circle cx="150" cy="150" r="140" fill="darkred" />' + '<circle cx="150" cy="150" r="135" fill="lightyellow" />'; this._addWholeToppings(); this._addFirstHalfToppings(); this._addSecondHalfToppings(); },
I thought I had the hang of saving SVG from Inkscape, but when I create a 10x10 pixel pepperoni, set the document properties so that the page is 10x10 as well and save:
I always get a matrix transform in the resulting plain (not Inkscape formatted) SVG file:
>This may not be a huge deal—this is vector graphic manipulation, after all. Still, I bothers me that my SVG is being translated -1042.3622 pixels and then run through that transform matrix. Heh, I realize that I trying to get pixel perfection in a scalable vector graphic, which is just silly. So I press on for now (but I will revisit at some point).
Anyhow, I copy said
pepperoni.svginto my Polymer library's asset directory, then try to use it in my Dart code thusly:
Which does not work at all—there is no matching constructor. Eventually, I realize thatWhich does not work at all—there is no matching constructor. Eventually, I realize that
_svgPepperoni() { var svgImage = new ImageElement(src: '/assets/svg_example/pepperoni.svg'); return new GElement() ..append(svgImage); }
ImageElementis different than an
<img>element. In order to load an SVG as an image, I need the XLINK namespace, which requires the
setAttributeNSmethod:
(the commented out, non-namespace version does not work)(the commented out, non-namespace version does not work)
_svgPepperoni() { var svgImage = new ImageElement() ..setAttributeNS('', 'href', '/assets/svg_example/pepperoni.svg') // ..setAttribute('href', '/assets/svg_example/pepperoni.svg') ..setAttribute('width', '10') ..setAttribute('height', '10'); return new GElement() ..append(svgImage); }
That's pretty ugly, but it works:
Ugh. This SVG stuff sure is a pain. I am unsure if Dart has any facilities for making this easier. The current approach is very much a JavaScript-y approach and it feels like it. It is hacky and of the barely-holding-duct-tape variety. Still, it does work, which is a start.
Day #66
Great, please don't give up! We need to arrive to an usable polymer svg interactive element.
About the issues you rise above:
1 - Always getting a matrix transform in svg files : yes, I forgot to tell you that you need to delete all layers in Inkscape. Layers are useful for complex graphics, but not needed for simple web components like a button. If you remove all layers and just draw in the "root" page, the transform will disappear from the svg file. You just need to go to the "Layer" menu, and choose to open the "Layers..." dialog. Here you will see a list of all layers (like photoshop), and you just need to delete the default one. Inkscape create a default layer for you when you create a new document, but you don't need it.
If you have some drawings already in the layer you can cut&paste those from Layer 1 to root, and then delete Layer 1.
You can check anytime if you are drawing on the "root" layer looking at the current layer switch in the lower status bar of the Inkscape window, where you will read "(root)". Create a new document, delete the Layer 1 and draw your circles directly on the root layer. Then resize page to content as usual, and save. You will find that no transform has been added.
NOTE: Anyway it's not that the transformation added with the layers changes the position of your path object. The transformation is perfectly neutral to the original object. In other words: the original path object (non transformed) is EQUAL to the saved path object with the saved transformation matrix applied to it. The result of object+transformation is identical to the original object. Only if you delete the transformation then the saved path object will result translated in a different position that the correct one. If you just use the svg file as is, it will just work.
2 - SVG object in Dart: The Dart API has classes for managing SVG. For example:
and:
Here is the function I use to load an svg file in Dart:
//LOAD AN SVG FILE AND MAKE IT A BUTTON
void load_svg_button(String svg_file_name) {
String svg_content HttpRequest.getString(basedir(svg_file_name));
SvgElement new_button = new SvgElement.svg(svg_content);
String svg_width = new_button.attributes['width'];
String svg_height = new_button.attributes['height'];
// Some svgs use "pt" units which are not properly parsed
svg_width = svg_width.replaceAll("pt", '');
svg_height = svg_height.replaceAll("pt", '');
num width = 50;
num height = 50;
new_button.attributes['width'] = '$height';
new_button.attributes['height'] = '$width';
new_button.attributes['viewBox'] = '0 0 $svg_width $svg_height';
new_button.onClick.listen(toolbutton_OnClick);
new_button.id = 'svg_toolbutton_${++svg_id}';
querySelector("#toolbar").children.add(new_button);
} | https://japhr.blogspot.com/2014/05/svg-as-images-in-polymerdart.html | CC-MAIN-2017-43 | refinedweb | 919 | 65.83 |
This is the mail archive of the cygwin mailing list for the Cygwin project.
Hi Brian, On Aug 19 13:06, Brian Inglis wrote: >, Right, they are GNU extensions and marked as such in the headers. But you're right, I should have been more clear in the release message as to which functions are POSIX and which ones are GNU extensions. > and isascii(3) and toascii(3) are deprecated: > Right, and the feature test macros in ctype.h say so: #if __MISC_VISIBLE || __XSI_VISIBLE int _EXFUN(isascii, (int __c)); int _EXFUN(toascii, (int __c)); [...] #endif > nl_langinfo_l(3) is in POSIX and is not included in your list: > Right, thanks for pointing this out. Oh well, I searched the POSIX function list *at least* twice and simply didn't see this function. I hope I didn't miss another one. This will be rectified in the next test release which I'm going to upload in a sec. > Will LC_GLOBAL_LOCALE designate the locale -f or locale -n locale? Neither. LC_GLOBAL_LOCALE is a per process locale and per POSIX the default is to set it to the "C" locale at process startup. A POSIX compliant application has to call setlocale(3) to change its locale process-wide. locale -f or locale -n are really only fetching information from Windows when you call the tool, but the underlying WIndows functions are never directly used by the Cygwin DLL. You *can* use them to prime your locale-specific environment variables, but that's all. Cygwin applications default to the "C" locale, or to the locales set via the LANG/LC_xxx variables *if* the application calls setlocale(LC_ALL, NULL); > locale -s and locale -u appear to return the Windows default product > locale e.g. en_US, regardless of system default regional settings. Not quite. Let's have a look into the locale(1) options: -i returns the current "input" language. That's what you set in the region&language settings and by choosing a locale for input in the keyboard layout control. This is often what you really want, but we only found out about this a couple of days ago when we had a system with -u persisting to return the wrong info. -s and -u are a bit tricky. Both depend on the installed language packs which you can download from Microsoft. If you didn't install another language pack, then the *only* language ever returned by -s and -u will be the language you installed the OS with in the first place. Download langauge packs and this gets settable, the -s option only by an admin, of course. -f is equivalent to the langauge you set the "Format" settings to, i. e. the settings for date, time, monetary... And last but not least -n is the locale used for applications which are not UNICODE capable. This affects the Windows API but it's not used by Cygwin. Thanks, Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat
Attachment:
signature.asc
Description: PGP signature | http://cygwin.com/ml/cygwin/2016-08/msg00364.html | CC-MAIN-2018-05 | refinedweb | 509 | 62.98 |
08 November 2010 16:34 [Source: ICIS news]
RIO DE JANEIRO (ICIS)--Bio-based products could make up 8% of chemical sales by 2012, with their share continuing to grow in the future, a consultant said at an industry conference on Monday.
Sales should increase as crude oil prices continue to rise, said Jorge Fergie, a partner at the US-based consultancy McKinsey & Co.
Fergie was speaking to delegates during a seminar at the annual Latin American Petrochemical Association (APLA) meeting in ?xml:namespace>
In addition, governments will adopt policies to increase self-sufficiency in energy, which would increase demand for bio-based products, Fergie said.
Consumer preference could also encourage companies to produce more bio-based products, Fergie said. Thirty percent of consumers are willing to pay a 10% premium for bio-based products, he said.
Bio-plastics are niche products, and producers should price them for value instead of cost, Fergie said.
There is a need for producers to attack some of the misconceptions about bio-plastics, he said.
For example, some consumers are concerned about bio-plastics being mixed with other plastics at recycling centres, he said.
This is not a concern for polyethylene (PE) produced from ethanol-based ethylene, he said.
The APLA meeting runs through 9 November. | http://www.icis.com/Articles/2010/11/08/9408340/apla-10-bio-based-products-to-make-up-8-of-chem-sales-in.html | CC-MAIN-2014-52 | refinedweb | 212 | 53.1 |
Issues
ZF-3821: Zend_InfoCard does not interpret namespace prefixes from the XML token
Description
Zend_InfoCard seems to be expecting the enc: prefix for the namespace, even when the submitted XML token assigns a different prefix (such as xenc: ) to that namespace. This causes Zend_InfoCard to fail to parse a submitted information card token from card selectors other than Microsoft Cardspace.
Posted by Arthur Frankel (afrankel) on 2010-07-09T14:56:24.000+0000
Since there are several other card selectors available has there been any movement on this fix? Besides the enc (to xenc) issue there are others related to the namespaces.
Posted by Pádraic Brady (padraic) on 2011-08-13T23:18:19.000+0000
Fixed in r24374 and ZF2 hotfix branch.
Sorry for the long wait! It only needed a quick patch to register the namespace for XPath so the default prefix was not relied on. | http://framework.zend.com/issues/browse/ZF-3821?page=com.atlassian.streams.streams-jira-plugin:activity-stream-issue-tab | CC-MAIN-2015-22 | refinedweb | 147 | 64.81 |
This is the beginning of a series that will provide an easily digestible cheat sheet for the most often-used and favorited JavaScript methods. In the first part of the series we will focus on array methods.
These methods are actually properties of the Array object itself and are accessed using the following keywords.
In this example we will be creating simple flash errors for an application that allows users to create new heroines. If a parameter for heroine creation is not met, a flash error is displayed.
In the controller (under create, or whatever form you want the error messages to appear on):
if @heroine.valid?
redirect_to @heroineelseflash[:error] = @heroine.errors.full_messagesredirect_to new_heroine_pathend
Implemented example:
def create
@heroine = Heroine.create(heroine_params)if @heroine.valid?redirect_to @heroineelseflash[:error] = @heroine.errors.full_messagesredirect_to new_heroine_pathendend
In your ERB file (new or edit, wherever you want the error messages to appear on) add the flash errors:
<% if flash[:error] %><% flash[:error].each do |e| %><%= e %><% end %><% end %>
It’s the seemingly simplest yet most difficult to wrangle concept in styling. How to center your divs, headers, text, whathaveyou. What should be a no-brainer exercise for most developers usually turns out to be a surprisingly frustrating endeavor. In this article I will try to create a simple to read cheatsheet for centering in CSS so that you may never have to deal with the frustration of uncentered items again.
First, it must be known that in HTML there are two types of elements, in-line, and block-level. In-line elements such as text, as their name suggests, can be placed in-line and do not create a new line when implemented. This means you can have multiple headers on the same line next to each other. Block-level elements, on the contrary, will create a brand new line and take up the full width of the page. …
Last year Instagram unveiled their latest product offering aimed at entering the lucrative online shopping industry. Instagram Shopping allows sellers to link directly to their own product pages via instagram links as well as providing the option for a proprietary in-app product page and checkout system. With Instagrams estimated one billion users and highly consumer-oriented culture, this platform has been received with great interest by both shoppers and sellers alike.
Instagram/Facebook’s documentation, while comprehensive, can be very disorganized at times and the multitude of requirements asked of sellers that span both the Instagram and Facebook platform can be a landmine to navigate. In this article I will walk you through setting up a selling profile on your account in as simple terms as possible. No more getting confused as to what exactly you need to do and where. …
AlphaVantage is one of the most popular web APIs for real-time stock information. It’s free and easy to use and a great learning tool for beginner developers who are trying to gain a handle on how to work with APIs and stock data as a whole.
Whether you’re building a pet project or trying to wet your feet into the world of algorithmic trading, AlphaVantage is a great tool for introducing you to working with stock price APIs. …
As the internet economy grows online and mobile payment platforms are becoming more and more ubiquitous to web development products. Which is the best one for you? In this article I’ll introduce the most popular platforms to try to give you a better idea of each one when making the decision for your web development project.
Let’s face it, nowadays data is everything. Almost every coding project involves data in some ways and the collection, maintaining and analyzing of databases has become a very lucrative industry that is involved in almost every facet of life and business.
As such, a common problem that many developers face is where to find the data that they need for their particular projects. …
The web development space has never been more vibrant and diverse. There is an absolute abundance of conferences, groups, and workshops to attend, especially in tech hubs like NYC. This abundance can be overwhelming for many newcomers so I’ve gone ahead and introduced five great groups that are free to attend for developers of all experience levels.
This is a group that meets weekly in New York City and is great for beginner developers. …
The main mechanisms of Google Analytics work by inserting a unique ‘tracking code’ into the source of the website that is to be analyzed. This code is tied to a Google account and will compile reports based on user interactions with the site or advertisement. Such a report will use metrics that are particular to Google Analytics. In our practicum presentation we mentioned some of the most widely seen metrics and what they mean.
Page views measure the total number of times a page has been loaded in a browser, regardless of how many individuals are doing the loading. This means that page views do not take into account unique visitors, another metric used by Google, which counts how many distinct individuals view a page. When a visitor opens a page in your website they have started a session, or, a sequence of interactions with your website that begin when you open enter the site and ends when you exit it. These interactions that constitute a session can be anything from a page view to a transaction to an event, which is defined by Google as any kind of interaction with your website that can be measured beyond a simple page view. Examples of events would be the instance when a visitor watches an embedded video or clicks on a download link. Finally, the most basic user interaction that Google measures is a click. Clicks are a measure of how many times a user has clicked on an advertisement regardless of how long their session lasts once they have entered the page that the advertisement leads to. …
The levels of ocean surfaces (henceforth referred to as the ‘sea level’) have been observed to be rising around the world. While sea levels are known to fluctuate due to natural processes, researchers have found a steady increase in the sea level during the past 100 years that is anomylous to historical natural fluctuations. This project will use historical monthly sea level data from the National Oceanic and Atmospheric Association in order to estimate the rate of sea level rise. Because sea levels are known to vary throughout localities, this project will focus on the sea level around New York City. …
About | https://medium.com/@danielmjung?source=post_internal_links---------4---------------------------- | CC-MAIN-2021-04 | refinedweb | 1,102 | 59.03 |
Searchlight API¶
Searchlight’s API adds authentication and Role Based Access Control in front of Elasticsearch’s query API.
Authentication¶
Searchlight, like other OpenStack APIs, depends on Keystone and the
OpenStack Identity API to handle authentication. You must obtain an
authentication token from Keystone and pass it to Searchlight in API requests
with the
X-Auth-Token header.
See Keystone Authentication for more information on integrating with Keystone.
Using v1¶
For the purposes of examples, assume a Searchlight server is running
at the URL on HTTP port 80. All
queries are assumed to include an
X-Auth-Token header. Where request
bodies are present, it is assumed that an appropriate
Content-Type
header is present (usually
application/json).
Searches use Elasticsearch’s query DSL.
Elasticsearch stores each ‘document’ in an ‘index’, which has one or more
‘types’. Searchlight’s indexing service stores all resource
types in their own document type, grouped by service into indices. For
instance, the
OS::Glance::Image and
OS::Glance::Metadef types both
reside in the
searchlight index.
type is unique to a resource type.
Document access is defined by each document type, for instance for glance images:
If the current user is the resource owner OR
If the resource is marked public
Some resources may have additional rules. Administrators have access to all resources,
though by default searches are restricted to the current tenant unless
all_projects
is set in the search request body.
Querying available plugins¶
Searchlight indexes OpenStack resources as defined by installed plugins. In general, a plugin maps directly to an OpenStack resource type. For instance, a plugin might index nova instances, or glance images. There may be multiple plugins related to a given OpenStack project (an example being glance images and metadefs).
A given deployment may not necessarily expose all available plugins.
Searchlight provides a REST endpoint to request a list of installed plugins.
A
GET request to
might yield:
{ "plugins": [ { "type": "OS::Glance::Image", "alias-searching": "searchlight-search" "alias-indexing": "searchlight-listener" }, { "type": "OS::Glance::Metadef", "alias-searching": "searchlight-search" "alias-indexing": "searchlight-listener" } ] }
This response shows the plugin information associated with the Glance image and metadef resources.
type: the resource group, which is used as the document type in Elasticsearch.
alias-searching: the Elasticsearch alias used for querying.
alias-indexing: the Elasticsearch alias used for indexing.
If desired, all indexed Glance images can be queried directly from Elasticsearch, rather than using Searchlight. Assuming an Elasticsearch server running on localhost, the following request can be made:
curl
Running a search¶
The simplest query is to ask for everything we have access to. We issue a
POST request to with the
following body:
{ "query": { "match_all": {} } }
The data is returned as a JSON-encoded mapping from Elasticsearch:
{ "_shards": { "failed": 0, "successful": 2, "total": 2 }, "hits": { "hits": [ { "_id": "76580e9d-f83d-49d8-b428-1fb90c5d8e95", "_index": "searchlight", "_type": "OS::Glance::Image" "_score": 1.0, "_source": { "id": "76580e9d-f83d-49d8-b428-1fb90c5d8e95", "members": [], "name": "cirros-0.3.2-x86_64-uec", "owner": "d95b27da6e9f4acc9a8031918e443e04", "visibility": "public", ... } }, { "_id": "OS::Software::DBMS", "_index": "searchlight", "_type": "metadef", "_score": 1.0, "_source": { "description": "A database is an ...", "display_name": "Database Software", "namespace": "OS::Software::DBMS", "objects": [ { "description": "PostgreSQL, often simply 'Postgres' ...", "name": "PostgreSQL", "properties": [ { "default": "5432", "description": "Specifies the TCP/IP port...", "property": "sw_database_postgresql_listen_port", ... }, ... ] } ], "tags": [ { "name": "Database" }, ] } }, ... ], "max_score": 1.0, "total": 8 }, "timed_out": false, "took": 1 }
Each
hit is a document in Elasticsearch, representing an OpenStack
resource. the fields in the root of each hit are:
_id
Uniquely identifies the resource within its OpenStack context (for instance, Glance images use their GUID).
_index
The service to which the resource belongs (e.g.
searchlight).
_type
The document type within the service (e.g.
image,
metadef)
_score
Where applicable the relevancy of a given
hit. By default, the field upon which results are sorted.
_source
The document originally indexed. The
_sourceis a map, where each key is a
fieldwhose value may be a scalar value, a list, a nested object or a list of nested objects.
More example searches¶
Results are shown here only where it would help illustrate the example. The
query parameter supports anything that Elasticsearch exposes via its
query DSL. There are normally multiple ways to represent the same query,
often with some subtle differences, but some common examples are shown here.
Administrators - search all resources¶
By default, all users see search results restricted by access control; in practice, this is a combination of resources belonging to the user’s current tenant/project, and any fields that are restricted to administrators.
Administrators also have the option to view all resources, by passing
all_projects in the search request body. For instance, a
POST to:
{ "query": { "match_all": {} }, "all_projects": true }
Restricting document index or type¶
To restrict a query to Glance image and metadef information only (both
index and
type can be arrays or a single string):
{ "query": { "match_all": {} }, "type": ["OS::Glance::Image", "OS::Glance::Metadef"] }
If
index or
type are not provided they will default to covering as
wide a range of results as possible. Be aware that it is possible to specify
combinations of
index and
type that can return no results. In general
type is preferred since
type is unique to a resource.
Retrieving an item by id¶
To retrieve a resource by its OpenStack ID (e.g. a glance image), we can use Elasticsearch’s term query:
{ "index": "searchlight", "query": { "term": { "id": "79fa243d-e05d-4848-8a9e-27a01e83ceba" } } }
Limiting and paging results¶
Elasticsearch (and Searchlight) support paging through the
size and
from parameters (Searchlight also accepts
limit and
offset respectively as synonyms).
from is
zero-indexed. If
size is zero, no results will be returned. This
can be useful for retrieving the total number of hits for a query without
being interested in the results themselves, or for aggregations:
{ "query": {"match_all": {}}, "size": 0 }
Gives:
{ "hits": { "hits": [], "max_score": 0.0, "total": 40 } }
Limiting the fields returned¶
To restrict the
source to include only certain fields using Elasticsearch’s
source filtering:
{ "type": "OS::Glance::Image", "_source": ["name", "size"] }
Gives:
{ "_shards": { "failed": 0, "successful": 1, "total": 1 }, "hits": { "hits": [ { "_id": "76580e9d-f83d-49d8-b428-1fb90c5d8e95", "_index": "searchlight", "_score": 1.0, "_source": { "name": "cirros-0.3.2-x86_64-uec", "size": 3723817 }, "_type": "OS::Glance::Image" }, ... ], "max_score": 1.0, "total": 4 }, "timed_out": false, "took": 1 }
Versioning¶
Internally an always-incrementing value is stored with search results to
ensure that out of order notifications don’t lead to inconsistencies with
search results. Normally this value is not exposed in search results, but
including a search parameter
version: true in requests will result in
a field named
_version (note the underscore) being present in each result:
{ "index": "searchlight", "query": {"match_all": {}}, "version": true } { "hits": { "hits": [ { "_id": "76580e9d-f83d-49d8-b428-1fb90c5d8e95", "_index": "searchlight", "_version": 462198730000000000, .... }, .... ] }, ... }
Sorting¶
Elasticsearch allows sorting by single or multiple fields. See Elasticsearch’s sort documentation for details of the allowed syntax. Sort fields can be included as a top level field in the request body. For instance:
{ "query": {"match_all": {}}, "sort": {"name": "desc"} }
You will see in the search results a
sort field for each result:
... { "_id": "7741fbcc-3fa9-4ace-adff-593304b6e629", "_index": "glance", "_score": null, "_source": { "name": "cirros-0.3.4-x86_64-uec", "size": 25165824 }, "_type": "image", "sort": [ "cirros-0.3.4-x86_64-uec", 25165824 ] }, ...
Wildcards¶
Elasticsearch supports regular expression searches but often wildcards within
query_string elements are sufficient, using
* to represent one or more
characters or
? to represent a single character. Note that starting a
search term with a wildcard can lead to extremely slow queries:
{ "query": { "query_string": { "query": "name: ubun?u AND mysql_version: 5.*" } } }
Highlighting¶
A common requirement is to highlight search terms in results:
{ "type": "OS::Glance::Metadef", "query": { "query_string": { "query": "database" } }, "_source": ["namespace", "description"], "highlight": { "fields": { "namespace": {}, "description": {} } } }
Results:
{ "hits": { "hits": [ { "_id": "OS::Software::DBMS", "_index": "searchlight", "_type": "OS::Glance::Metadef", "_score": 0.56079304, "_source": { "description": "A database is an organized collection of data. The data is typically organized to model aspects of reality in a way that supports processes requiring information. Database management systems are computer software applications that interact with the user, other applications, and the database itself to capture and analyze data. ()" }, "highlight": { "description": [ "A <em>database</em> is an organized collection of data. The data is typically organized to model aspects of", " reality in a way that supports processes requiring information. <em>Database</em> management systems are", " computer software applications that interact with the user, other applications, and the <em>database</em> itself", " to capture and analyze data. (<em>Database</em>)" ], "display_name": [ "<em>Database</em> Software" ] } } ], "max_score": 0.56079304, "total": 1 }, "timed_out": false, "took": 3 }
Faceting¶
Searchlight can provide a list of field names and values present for those fields for each registered resource type. Exactly which fields are returned and whether values are listed is up to each plugin. Some fields or values may only be listed for administrative users. For some string fields, ‘facet_field’ may be included in the result and can be used to do an exact term match against facet options.
To list supported facets, issue a
GET to:
{ "OS::Glance::Image": [ { "name": "status", "type": "string" }, { "name": "created_at", "type": "date" }, { "name": "virtual_size", "type": "long" }, { "name": "name", "type": "string", "facet_field": "name.raw" }, ... ], "OS::Glance::Metadef": [ { "name": "objects.description", "type": "string" }, { "name": "objects.properties.description", "type": "string", "nested": true }, ... ], "OS::Nova::Server": [ { "name": "status", "options": [ { "doc_count": 1, "key": "ACTIVE" } ], "type": "string" }, { "name": "OS-EXT-SRV-ATTR:host", "type": "string" }, { "name": "name", "type": "string", "facet_field": "name.raw" }, { "name": "image.id", "type": "string", "nested": false }, { "name": "OS-EXT-AZ:availability_zone", "options": [ { "doc_count": 1, "key": "nova" } ], "type": "string" } ... ] }
Facet fields containing the ‘nested’ (boolean) attribute indicate that the field mapping type is either ‘nested’ or ‘object’. This can influence how a field should be queried. In general ‘object’ types are queried as any other field; ‘nested’ types require some additional complexity.
It’s also possible to request facets for a particular type by adding a
type query parameter. For instance, a
GET to:
{ "OS::Nova::Server": [ { "name": "status", "options": [ { "doc_count": 1, "key": "ACTIVE" } ], "type": "string" }, ... ] }
As with searches, administrators are able to request facet terms for all
projects/tenants. By default, facet terms are limited to the currently scoped
project; adding
all_projects=true as a query parameter removes the
restriction.
It is possible to limit the number of
options returned for fields that
support facet terms.
limit_terms restricts the number of terms (sorted
in order of descending frequency). A value of 0 indicates no limit, and is the
default.
It is possible to not return any options for facets. By default all options
are returned for fields that support facet terms. Adding
exclude_options=true as a query parameter will return only the facet
field and not any of the options. Using this option will avoid an aggregation
query being performed on Elasticsearch, providing a performance boost.
Aggregations¶
Faceting (above) is a more general form of Elasticsearch aggregation. Faceting is an example of ‘bucketing’; ‘metrics’ includes functions like min, max, percentiles.
Aggregations will be based on the
query provided as well as restrictions
on resource type and any RBAC filters.
To include aggregations in a query, include
aggs or
aggregations in
a search request body.
"size": 0 prevents Elasticsearch
returning any results, just the aggregation, though it is valid to retrieve
both search results and aggregations from a single query. For example:
{ "query": {"match_all": {}}, "size": 0, "aggregations": { "names": { "terms": {"field": "name"} }, "earliest": { "min": {"field": "created_at"} } } }
Response:
{ "hits": {"total": 2, "max_score": 0.0, "hits": []}, "aggregations": { "names": { "doc_count_error_upper_bound": 0, "sum_other_doc_count": 0, "buckets": [ {"key": "for_instance1", "doc_count": 2}, {"key": "instance1", "doc_count": 1} ] }, "earliest": { "value": 1459946898000.0, "value_as_string": "2016-04-06T12:48:18.000Z" } } }
Note that for some aggregations
value_as_string may be more useful than
value - for example, the
earliest aggregation in the example operates
on a date field whose internal representation is a timestamp.
The global aggregation type is not allowed because unlike other aggregation types it operates outside the search query scope.
Freeform queries¶
Elasticsearch has a flexible query parser that can be used for many kinds of search terms: the query_string operator.
Some things to bear in mind about using
query_string (see the documentation
for full options):
A query term may be prefixed with a
fieldname (as seen below). If it is not, by default the entire document will be searched for the term.
The default operator between terms is
OR
By default, query terms are case insensitive
For instance, the following will look for images with a restriction on name and a range query on size:
{ "query": { "query_string": { "query": "name: (Ubuntu OR Fedora) AND size: [3000000 TO 5000000]" } } }
Within the query string query, you may perform a number of interesting queries. Below are some examples.
Phrases¶
\"i love openstack\"
By default, each word you type will be searched for individually. You may also try to search an exact phrase by using quotes (“my phrase”) to surround a phrase. The search service may allow a certain amount of phrase slop - meaning that if you have some words out of order in the phrase it may still match.
Wildcards¶
python3.? 10.0.0.* 172.*.4.*
By default, each word you type will match full words only. You may also use wildcards to match parts of words. Wildcard searches can be run on individual terms, using ? to replace a single character, and * to replace zero or more character. ‘demo’ will match the full word ‘demo’ only. However, ‘de*’ will match anything that starts with ‘de’, such as ‘demo_1’. ‘de*1’ will match anything that starts with ‘de’ and ends with ‘1’.
Note
Wildcard queries place a heavy burden on the search service and may perform poorly.
Term Operators¶
+apache -apache web +(apache OR python)
Add a ‘+’ or a ‘-‘ to indicate terms that must or must not appear. For example ‘+python -apache web’ would find everything that has ‘python’ does NOT have ‘apache’ and should have ‘web’. This may also be used with grouping. For example, ‘web -(apache AND python)’ would find anything with ‘web’, but does not have either ‘apache’ or ‘python’.
Boolean Operators¶
python AND apache nginx OR apache web && !apache
You can separate search terms and groups with AND, OR and NOT (also written &&, || and !). For example, ‘python OR javascript’ will find anything with either term (OR is used by default, so does not need to be specified). However, ‘python AND javascript’ will find things that only have both terms. You can do this with as many terms as you’d like (e.g. ‘django AND javascript AND !unholy’). It is important to use all caps or the alternate syntax (&&, ||), because ‘and’ will be treated as another search term, but ‘AND’ will be treated as a logical operator.
Grouping¶
python AND (2.7 OR 3.4) web && (apache !python)
Use parenthesis to group different aspects of your query to form sub-queries. For example, ‘web OR (python AND apache)’ will return anything that either has ‘web’ OR has both ‘python’ AND ‘apache’.
Facets¶
name:cirros name:cirros && protected:false
You may decide to only look in a certain field for a search term by setting a specific facet. This is accomplished by either selecting a facet from the drop down or by typing the facet manually. For example, if you are looking for an image, you may choose to only look at the name field by adding ‘name:foo’. You may group facets and use logical operators.
Range Queries¶
size:[1 TO 1000] size:[1 TO *] size:>=1 size:<1000
Date, numeric or string fields can use range queries. Use square brackets [min TO max] for inclusive ranges and curly brackets {min TO max} for exclusive ranges.
IP Addresses¶
172.24.4.0/16 [10.0.0.1 TO 10.0.0.4]
IPv4 addresses may be searched based on ranges and with CIDR notation.
Boosting¶
web javascript^2 python^0.1
You can increase or decrease the relevance of a search term by boosting different terms, phrases, or groups. Boost one of these by adding ^n to the term, phrase, or group where n is a number greater than 1 to increase relevance and between 0 and 1 to decrease relevance. For example ‘web^4 python^0.1’ would find anything with both web and python, but would increase the relevance for anything with ‘web’ in the result and decrease the relevance for anything with ‘python’ in the result.
Advanced Features¶
CORS - Accessing Searchlight from the browser¶
Searchlight can be configured to permit access directly from the browser. For details on this configuration, please refer to the OpenStack Cloud Admin Guide. | https://docs.openstack.org/searchlight/latest/user/searchlightapi.html | CC-MAIN-2019-43 | refinedweb | 2,739 | 55.44 |
For Erick M.
Thanks for your immediate response Eric!. Question? I noticed that you put a default capacity of 0 when the original code is 16. Also, as per the instructor guidance is the size that should be initialized to 0. I might be confusing between the size and capacity, but I appreciate any clarification.
For Erick,
Do you know why every time I'm trying to run my program in eclipse, the following message is showing "Selection does not contain a main type"?
I'm sorry, it was your program that I was trying to run. Here is the window
So this need a test file?
For Eric M.
I received feed back from the instructor. It looks like I need to create a generic class that accepts a stack of Strings, Objects, integers. Any help will be appreciated.
Hmm, I'm having a little trouble parsing what the instructor is saying -- I've tested this out, and it takes Strings, Objects, and integers. The code I use to test it is this:StackOfObjects soo=new StackOfObjects(); soo.push(new String()); soo.push(5); soo.push(new Object());The first line initializes the Stack, the second adds a String, the third adds an Integer, and the fourth adds an Object.I'm re-uploading the file in which I made these changes -- I don't think I've made any changes since the last time I uploaded it, but I could be wrong. Here it is: (link)I may have changed line 29 -- formerly, it said:public void push(int value) {which means it would only take an integer, but it's now:public void push(Object value) {I believe I changed that before uploading the previous file, but I'm not 100% certain -- I know I forgot that change initially. That change is necessary to make it accept Objects instead of just ints, though, so that could be what your instructor is referencing if I did make that mistake.If not, I would tell your instructor that the class successfully lets you add ints, Strings, and Objects (as given by the above code), and ask how this differs from what he's looking for. I'll be happy to help further, I'm just trying to figure out what it is that he's looking for.Thanks again!
I thinks this might be how the class loos like to make it generic:
public class StackOfObjects <T> { private T elements; private int size;
But I'm having problems to make it work in the code.
here is the full feedback:
The problem is that the same stack can contain different types of objects. You can push a String, an Integer, a Double, or an object of any class whatsoever (including a stack!) all onto the same stack. What you want is a generic stack where each element is of the same desired type. You could use the same class to create a stack of Strings, a stack of Integers, or a stack of objects of some class you wrote. For example, if you used the class to create a stack of Strings, then the only thing you could put on the stack are Strings (or objects from a subclass of String). If you tried to push an Integer onto this stack, the compiler would complain about incompatible types.
Yeah, I agree. If you can take a look later on will be great. thanks!
did you make any changes in the main code? I'm getting a message that my object is not generic
Hey Eric,
you already send this. my question is : do you made any changes from the original code that allows you to test it with your new class?
Did you change anything from the main Stack of objects file. When I'm testing your code I'm getting
" The type StackOfObjects is not generic; it cannot be parameterized with arguments <String>"
package stackofobjects;public class StackOfObjects { private Object[] elements; private int size;/** Construct a stack with the default capacity 16 */ public StackOfObjects() { this(16); } /** Construct a stack with the specified maximum capacity intialize size to 0*/ public StackOfObjects(int capacity) { elements = new Object[capacity];size =0; } /** Push a new integer into the top of the stack */ public void push(String value) { if (size >= elements.length) { Object[] temp = new Object[elements.length * 2]; System.arraycopy(elements, 0, temp, 0, elements.length); elements = temp; } elements[size++] = value; } /** Return and remove the top element from the stack */ public Object pop() { return elements[--size]; } /** Return the top element from the stack */ public Object peek() { return elements[size - 1]; } /** Test whether the stack is empty */ public boolean empty() { return size == 0; } /** Return the number of elements in the stack */ public int getSize() { return size; }}
No worries, it works. thank you!
Attachments are only available to registered users. | http://www.justanswer.com/homework/81dhp-hi-i-m-having-serious-problems-trying-understand.html | CC-MAIN-2014-52 | refinedweb | 806 | 69.72 |
This article provides a base for fresh C# and Java developers.
C# includes more primitive types and the functionality to catch arithmetic exceptions.
Includes a large number of notational conveniences over Java, many of which, such as operator overloading and user-defined casts, are already familiar to the large community of C++ programmers.
Event handling is a "first class citizen"—it is part of the language itself.
Allows the definition of "structs", which are similar to classes but may be allocated on the stack (unlike instances of classes in C# and Java).
C# implements properties as part of the language syntax.
C# allows switch statements to operate on strings.
switch
string
C# allows anonymous methods providing closure functionality.
C# allows iterator that employs co-routines via a functional-style yield keyword.
yield
C# has support for output parameters, aiding in the return of multiple values, a feature shared by C++ and SQL.
C# has the ability to alias namespaces.
C# has "Explicit Member Implementation" which allows a class to specifically implement methods of an interface, separate from its own class methods. This allows it also to implement two different interfaces which happen to have a method of the same name. The methods of an interface do not need to be public; they can be made to be accessible only via that interface.
public
C# provides integration with COM.
Following the example of C and C++, C# allows call by reference for primitive and reference types.
Java's strictfp keyword guarantees that the result of floating point operations remain the same across platforms.
strictfp
Java supports checked exceptions for better enforcement of error trapping and handling.
There are no unsigned primitive numeric types in Java. While it is universally agreed that mixing signed and unsigned variables in code is bad, Java's lack of support for unsigned numeric types makes it somewhat unsuited for low-level programming.
C# does not include checked exceptions. Some would argue that checked exceptions are very helpful for good programming practice. Others, including Anders Hejlsberg, chief C# language architect, argue that they were to some extent an experiment in Java and that they haven't been shown to be worthwhile [1] [2].
C#'s namespaces are more similar to those in C++. Unlike Java, the namespace does not specify the location of the source file. (Actually, it's not strictly necessary for a Java source file location to mirror its package directory structure.)
C#
C# allows the use of pointers, which some language designers consider to be unsafe, but certain language features try to ensure this functionality is not misused accidentally. Pointers also greatly complicate technologies such as Java's RMI (Remote Method Invocation), where program objects resident on one computer can be referenced within a program running on an entirely separate computer. Some have speculated that the lack of memory pointers in Java (substituted by the more abstract notion of object references) was a nod towards the coming of grid computing, where a single application may be distributed across many physical pieces of hardware.
C# supports the goto keyword. This can occasionally be useful, but the use of a more structured method of control flow is usually recommended.
goto
C# has true multi-dimensional arrays, as well as the array-of-arrays that is available to Java (which C# calls jagged arrays). Multi-dimensional arrays are always rectangular (in the 2D case, or analogous for more dimensions), whereas an array-of-arrays may store rows (again in the 2D case) of various lengths. Rectangular arrays may speed access if memory is a bottleneck (there is only one memory reference instead of two; this benefit is very dependent on cache behavior) while jagged arrays save memory if it's not full but cost (at the penalty of one pointer per row) if it is. Rectangular arrays also obviate the need to allocate memory for each row explicitly.
Java does not include operator overloading, because abuse of operator overloading can lead to code that is harder to understand and debug. C# allows operator overloading, which, when used carefully, can make code terser and more readable. Java's lack of overloading makes it somewhat unsuited for certain mathematical programs. Conversely, .NET's numeric types do not share a common interface or superclass with add/subtract/etc. methods, restricting the flexibility of numerical libraries.
Methods in C# are non-virtual by default. In Java however, methods are virtual by default. Virtual methods guarantee that the most overridden method of an object will be called which is determined by the runtime. You always have to keep that in mind when calling or writing any virtual method! If the method is declared as non-virtual, the method to invoke will be determined by the compiler. This is a major difference of philosophy between the designers of the Java and .NET platforms.
Java 1.5's generics use type-erasure. Information about the generic types is lost when Java source is compiled to bytecode. .NET 2.0's generics are preserved after compilation due to generics support starting in version 2.0 of the .NET Common Language Runtime, or CLR for short. Java's approach allows Java 1.5 binaries to be run in the 1.4 JRE, at the cost of additional runtime typechecks.
C# is defined by ECMA and ISO standards, whereas Java is proprietary, though largely controlled through an open community process.
The C# API is completely controlled by Microsoft, whereas the Java API is managed through an open community process.
The .NET run-time allows both managed and unmanaged code, enabling certain classes of bugs that do not exist in Java's pure managed code environment but also allows interfacing with existing code.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)
I am interested in knowing what primitive types C# has that Java does not.
Note that stacks are machine-dependent; not all processes have stacks. That might be why stacks are excluded from the Java Virtual Machine that is designed to be portable.
What is the "C# API"? I think it would help to specify it in the terminology that defines it.
The article says: "C# has support for output parameters" ... "featured shared by C++". I am familiar with C++ but I do not understand what is meant by "output parameters" for C++. I think it would help to clarify what is meant by "output parameters" for C++.
Also the article says: "Following the example of C and C++, C# allows call by reference for primitive and reference types.". Note that C does not have reference types as does C++. Also, the term "call by reference" is confusing for the C and C++ languages. I think that instead of saying "call by reference" in the context of C and C++, it is better to use the terminology that the C and C++ langauges use to describe what you are trying to describe.
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/22854/Main-Differences-between-C-and-Java | CC-MAIN-2014-42 | refinedweb | 1,195 | 55.03 |
When writing integration tests that use a persistent data store, it’s important to isolate the tests as much as possible to provide stability in test results.
Unit tests are easy to isolate: the test boundary is a function, we call it with arguments and assert the output. Integration tests are more challenging to isolate. In this case, the challenge is the shared database: create setup data in the database, run code that interacts with the database, then assert output.
To isolate, one might write data that is uniquely-identifiable to the test (eg, with queryable unique ids).
What does this kind of test look like for Jest? Let’s say that we have a test for a bit of code that’s meant to create a Book model record in the database:
import * as uuid from 'uuid' import * as bookRepo from './book' import * as database from './database' it('creates a book', async () => { const db = await database.connect() const title = uuid.v4() await bookRepo.create(db, title, 'An author name') const result = await db.query('select * from book where title = $1', [title]) expect(result.rowCount).toEqual(1) expect(result.rows[0].title).toEqual(title) expect(result.rows[0].author).toEqual('An author name') database.disconnect() })
By generating the title with a unique value, we can tie that data in the database back to this test successfully. We just need to make sure to query by that unique data when we go to assert what’s in the database.
Another method of isolation that can be useful is to ensure that the database is clean for every run of a test. In this way, we know that data in the database is for the test and assertions can be more straightforward:
import * as bookRepo from './book' import * as database from './database' it('creates a book', async () => { const db = await database.connect() await db.query('delete from book') await bookRepo.create(db, 'A title', 'An author name') const result = await db.query('select * from book') expect(result.rowCount).toEqual(1) expect(result.rows[0].title).toEqual('A title') expect(result.rows[0].author).toEqual('An author name') database.disconnect() })
The important steps are:
- The setup - we delete all book records before our test runs so that we know that we’re starting with a baseline of 0 books
- Exercising the code - we run the subject under test, as usual
- Assertion - we can easily test that there’s one book in total, because that’s what our code should create, and we started with 0 books
We used the same test of book insertion to show a comparison, but it’s really too trivial of an example to show the advantages to to using this method. Imagine, instead, that you were querying a 3rd-party service over which you didn’t have direct knowledge of your input data but where you could make assertions on the number of rows, recency of timestamp or something like that. Knowing all data in the database is related to the current test only could help.
This method, however, comes with a clear downside. Let’s imagine that we had many tests where we follow this same pattern: clear db, run tests, assert what’s in the db. Most test runners will run tests in parallel. This means that there are some tests that have cleared the database and others that have written to it, all asserting different things. It’s easy to see how the different tests will clobber each others’ pristine environment and create unstable test results.
One solution is to run the tests serially, one at a time, so that the tests can use the shared environment one at a time before letting the test suite advance to the next test. Jest provides an option to accomplish this, –runInBand:
jest --runInBand
And we can avoid that problem. Of course, this has the downside of increasing the running time for your integration test suite.
There are likely other ways to make sure that we can isolate our tests where we use a shared database. What methods have you found effective? | https://jaketrent.com/post/isolate-jest-integration-test-shared-database | CC-MAIN-2021-04 | refinedweb | 684 | 63.8 |
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.
Hi kids!
I have made a new release of strace for testing purposes, called 4.4.90.
As you might guess from the name, this is what I expect to be called 4.5 as
soon it gets some more fixes.
The sources can be got from
and I've also uploaded the source package to Debian (same files).
There is a .deb there for powerpc as well, but YMMV with that.
There is an rpm spec file included in the sources now as well, so you can
use "rpmbuild -ta strace_4.4.90-1.tar.gz" to build it on an rpm-based system.
The sourceforge CVS repository has the tag v4_4_90 for the current state
that produced these release files.
For those building by hand, it may be notable that the distribution now
uses Autoconf-2.57 and Automake-1.7.2. I don't recommend regenerating
configure and Makefile.in unless you have those versions.
This version has problems with -f on Linux/IA64 2.4.x and on Linux/S390.
I would appreciate help fixing those from people who grok those machines.
The canonical test case is "strace -f /usr/bin/time /bin/true".
Enjoy,
Roland
Bye kids!
> I have made a new release of strace for testing purposes, called
> 4.4.90. As you might guess from the name, this is what I expect to
> be called 4.5 as soon it gets some more fixes.
On UnixWare 7.1.1, a problem:
$ ./configure
...
checking whether sys_errlist is declared... no
checking whether sys_siglist is declared... no
checking whether _sys_siglist is declared... yes
...
$ make
make all-am
source='strace.c' object='strace.o' libtool=no \
depfile='.deps/strace.Po' tmpdepfile='.deps/strace.TPo' \
depmode=none /bin/ksh ./depcomp \
cc -DHAVE_CONFIG_H -I. -I. -I. -Isvr4/i386 -I./svr4/i386 -Isvr4
-I./svr4 -D_GNU_SOURCE -g -c `test -f 'strace.c' || echo
'./'`strace.c
UX:acomp: ERROR: "strace.c", line 1317: identifier redeclared:
_sys_siglist
In strace.c we have:
#ifdef HAVE__SYS_SIGLIST
#if !HAVE_DECL_SYS_SIGLIST
extern char *sys_siglist[];
extern char *_sys_siglist[];
#else
#endif
#endif /* SYS_SIGLIST_DECLARED */
Shouldn't that be checking "HAVE_DECL__SYS_SIGLIST"?
I cleaned up those #ifdefs. Thanks.
Another problem on UnixWare 7.1.1:
$ make
make all-am
cc -D_GNU_SOURCE -g -o strace strace.o version.o syscall.o
util.o desc.o file.o ipc.o io.o ioctl.o mem.o net.o process.o bjm.o
resource.o signal.o sock.o system.o term.o time.o proc.o stream.o
-lnsl
Undefined first referenced
symbol in file
print_sock_optmgmt stream.o
UX:ld: ERROR: strace: fatal error: Symbol referencing errors. No output
written to strace
*** Error code 1 (bu21)
UX:make: ERROR: fatal error.
*** Error code 1 (bu21)
UX:make: ERROR: fatal error.
No "print_sock_optmgmt" (should be in net.o):
#ifdef HAVE_OPTHDR
void
print_sock_optmgmt (tcp, addr, len)
struct tcb *tcp;
long addr;
...
Hum, where's "HAVE_OPTHDR"? Seems to have been renamed
"HAVE_STRUCT_OPTHDR". Changing the #ifdef fixes the problem:
--- net.c.orig Mon Dec 30 01:51:30 2002
+++ net.c Mon Jan 13 16:29:24 2003
@@ -1425,7 +1425,7 @@
}
-#ifdef HAVE_OPTHDR
+#ifdef HAVE_STRUCT_OPTHDR
void
print_sock_optmgmt (tcp, addr, len) | http://sourceforge.net/p/strace/mailman/strace-devel/thread/200301140125.h0E1PCD13209@magilla.sf.frob.com/ | CC-MAIN-2014-35 | refinedweb | 550 | 71 |
ITEMIDLIST structure
Contains a list of item identifiers.
Syntax
- mkid
-
A list of item identifiers.
Remarks
A pointer to this structure, called a PIDL, is used to identify objects in the Shell namespace. For more information about pointers to item identifier lists (PIDLs) and item identifiers, see Introduction to the Shell Namespace.
ITEMIDLIST Strict Types
As of Windows Vista, several forms of ITEMIDLIST are available as data types. The three main types are:
- IDLIST_ABSOLUTE: Fully qualified ITEMIDLIST relative to the root of the namespace. It may be multi-level.
- IDLIST_RELATIVE: ITEMIDLIST relative to a parent folder. It may be multi-level.
- ITEMID_CHILD: Single-level ITEMIDLIST relative to a parent folder. It contains exactly one SHITEMID structure.
These types are used if you compile your code with the symbol STRICT_TYPED_ITEMIDS before you include the Shell header files, as shown in the following example code.
The meaning of each of these types can be altered with one or more of the following modifiers:
- P: The type is a pointer.
- C: The type is constant.
- U: The type is unaligned. It aligns to a DWORD boundary in 32-bit architectures and a QWORD boundary in 64-bit architectures.
Some examples of these modified types are:
- PIDLIST_ABSOLUTE: The ITEMIDLIST is absolute and has been allocated, as indicated by its being non-constant. This means that it needs to be deallocated with ILFree when it is no longer needed. Because it is a direct pointer to allocated memory, it is aligned.
- PCIDLIST_ABSOLUTE: The ITEMIDLIST is absolute and constant. This is typically used when you are passed an absolute ITEMIDLIST as a parameter but do not own it, and so are not allowed to change it.
- PCUIDLIST_ABSOLUTE: The ITEMIDLIST is absolute, constant and unaligned. This is rarely used. Absolute ITEMIDLIST are typically allocated in memory aligned to a DWORD boundary in 32-bit architectures and to a QWORD boundary in 64-bit architectures. An absolute ITEMIDLIST would be unaligned only if it has been byte-packed along with other data, such as in a serialization format.
- PITEMID_CHILD: The ITEMIDLIST is an allocated child ITEMIDLIST relative to a parent folder, such as a result of IEnumIDList::Next. It contains exactly one SHITEMID structure.
- PCUITEMID_CHILD: The child ITEMIDLIST is relative, constant, and unaligned. This often occurs when you get a pointer to part of an existing PIDL. For example, if you have an absolute PIDL and call ILFindLastID, it returns the pointer to the last child SHITEMID in the list. It is unaligned because the byte-packed PIDL does not ensure that its individual SHITEMID structures fall on byte boundaries. References to child PIDLs such as these are always constant because the memory is owned by the absolute PIDL.
- PCITEMID_CHILD: The child ITEMIDLIST is constant and aligned. This is rarely used because as a child PIDL, it is usually a part of a larger PIDL, and therefore not aligned on byte boundaries.
- PUITEMID_CHILD: The child ITEMIDLIST is unaligned. This is rarely used because memory for this ITEMIDLIST is owned by the parent PIDL, which is absolute. This means that modifications can be made only to the parent PIDL, and so the child PIDL would need to be constant.
This list is not exhaustive. Other types can also exist.
Requirements | http://msdn.microsoft.com/en-gb/library/windows/desktop/bb773321.aspx | CC-MAIN-2014-15 | refinedweb | 541 | 66.13 |
2009/8/4 Ned Deily <nad at acm.org>: > In article > <ac2200130908040625qac2c52bg8946ae26e40e15ec at mail.gmail.com>, > Guilherme Polo <ggpolo at gmail.com> wrote: >> I have verified the VIDLE fork last week expecting to find many >> differences between it and IDLE. Most files differ but it turned out >> that most of these differences are equivalent (many of the changes >> were merged already), except for two of them. One of these changes is >> related to py2app, so I can't verify it. > > [...] > >> Index: Lib/idlelib/macosxSupport.py >> =================================================================== >> --- Lib/idlelib/macosxSupport.py (revision 74191) >> +++ Lib/idlelib/macosxSupport.py (working copy) >> @@ -9,7 +9,7 @@ >> """ >> Returns True if Python is running from within an app on OSX. >> If so, assume that Python was built with Aqua Tcl/Tk rather than >> - X11 Tck/Tk. >> + X11 Tcl/Tk. >> """ >> return (sys.platform == 'darwin' and '.app' in sys.executable) >> >> @@ -121,6 +121,13 @@ >> menu.add_command(label=label, underline=underline, >> command=command, accelerator=accelerator) >> >> +def preprocessArguments(): >> + # Deal with spurious argument passed by Finder, so "argv emulation" is >> + # not required for app bundle >> + argv = sys.argv >> + if runningAsOSXApp() and len(argv) > 1 and argv[1].startswith("-psn"): >> + del sys.argv[1] >> + >> def setupApp(root, flist): >> """ >> Perform setup for the OSX application bundle. > > This isn't needed as there already is similar code in > Mac/IDLE/idlemain.py, an initialization script that gets invoked when > IDLE.app is launched and that goes on to call idlelib.Pyshell.main. > (BTW, this has nothing to do with py2app which is not used by IDLE or > anything else in the standard library.) > I'm aware of py2app not being used by IDLE (or anything else in std lib), but what prevents someone from running py2app on idlelib and getting an similar IDLE.app ? I'm really not into Mac, but isn't this IDLE.app just an bundle that could be similarly built with py2app ? Anyway, if the code for supporting argv emulation already exists then it is very fine to not include it. Thanks for your input, > -- > Ned Deily, > nad at acm.org > -- -- Guilherme H. Polo Goncalves | https://mail.python.org/pipermail/idle-dev/2009-August/002782.html | CC-MAIN-2018-26 | refinedweb | 344 | 60.11 |
The Storage Team Blog about file services and storage features in Windows and Windows Server.
There are a couple of ways to check the progress of initial replication. You can either use the Event Viewer snap-in or WMI to check whether your replicated folders have finished initial replication.
Event Viewer:
A separate event (4104) is thrown for each replicated folder on each downstream partner. For example, if there are three downstream partners with four replicated folders each then a total of 12 events will be thrown on all downstream partners.
Open the Event Viewer snap-in on the server, navigate to the DFSR event log, and then check the 4104 events for your replicated folders.
WMI:
You can also check the status of initial replication by running the following command on the downstream machine. This is especially handy if the event log has been cleared.
C:\dfsr>Wmic /namespace:\\root\microsoftdfs path dfsrreplicatedfolderinfo get replicationgroupname,replicatedfoldername,state ReplicatedFolderName ReplicationGroupName State DATA Test-RG 4
The state for each folder that has completed initial replication is 4. For all other folders that are still in the process of initial replication, the ‘State’ will be 2.
Rizwan Ansary
PingBack from | http://blogs.technet.com/b/filecab/archive/2008/10/27/how-to-check-if-the-initial-replication-was-completed-successfully.aspx | CC-MAIN-2013-48 | refinedweb | 199 | 53.92 |
Update of /cvsroot/sbcl/sbcl/src/code
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3976/src/code
Modified Files:
print.lisp reader.lisp
===================================================================
RCS file: /cvsroot/sbcl/sbcl/src/code/print.lisp,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -d -r1.49 -r1.50
--- print.lisp 4 May 2004 11:08:12 -0000 1.49
+++ print.lisp 11 May 2004 18:29:51 -0000 1.50
@@ -1250,6 +1250,7 @@
;;; [CMUC]<steele>tradix.press. DO NOT EVEN THINK OF ATTEMPTING TO
;;; UNDERSTAND THIS CODE WITHOUT READING THE PAPER!
+(declaim (type (simple-array character (10)) *digits*))
(defvar *digits* "0123456789")
(defun flonum-to-string (x &optional width fdigits scale fmin)
@@ -1387,6 +1388,96 @@
;; all done
(values digit-string (1+ digits) (= decpnt 0) (= decpnt digits) decpnt)))
+;;; implementation of figure 1 from Burger and Dybvig, 1996. As the
+;;; implementation of the Dragon from Classic CMUCL (and above,
+;;; FLONUM-TO-STRING) says: "DO NOT EVEN THINK OF ATTEMPTING TO
+;;; UNDERSTAND THIS CODE WITHOUT READING THE PAPER!", and in this case
+;;; we have to add that even reading the paper might not bring
+;;; immediate illumination as CSR has attempted to turn idiomatic
+;;; Scheme into idiomatic Lisp.
+;;;
+;;; FIXME: figure 1 from Burger and Dybvig is the unoptimized
+;;; algorithm, noticeably slow at finding the exponent. Figure 2 has
+;;; an improved algorithm, but CSR ran out of energy
+;;;
+;;; FIXME: Burger and Dybvig also provide an algorithm for
+;;; fixed-format floating point printing. If it were implemented,
+;;; then we could delete the Dragon altogether (see FLONUM-TO-STRING).
+;;;
+;;; possible extension for the enthusiastic: printing floats in bases
+;;; other than base 10.
+(defconstant single-float-min-e
+ (nth-value 1 (decode-float least-positive-single-float)))
+(defconstant double-float-min-e
+ (nth-value 1 (decode-float least-positive-double-float)))
+#!+long-float
+(defconstant long-float-min-e
+ (nth-value 1 (decode-float least-positive-long-float)))
+
+(defun flonum-to-digits (v)
+ (let ((print-base 10) ; B
+ (float-radix 2) ; b
+ (float-digits (float-digits v)) ; p
+ (min-e
+ (etypecase v
+ (single-float single-float-min-e)
+ (double-float double-float-min-e)
+ #!+long-float
+ (long-float long-float-min-e))))
+ (multiple-value-bind (f e)
+ (integer-decode-float v)
+ (let (;; FIXME: these even tests assume normal IEEE rounding
+ ;; mode. I wonder if we should cater for non-normal?
+ (high-ok (evenp f))
+ (low-ok (evenp f))
+ (result (make-array 50 :element-type 'base-char
+ :fill-pointer 0 :adjustable t)))
+ (labels ((scale (r s m+ m-)
+ (do ((k 0 (1+ k))
+ (s s (* s print-base)))
+ ((not (or (> (+ r m+) s)
+ (and high-ok (= (+ r m+) s))))
+ (do ((k k (1- k))
+ (r r (* r print-base))
+ (m+ m+ (* m+ print-base))
+ (m- m- (* m- print-base)))
+ ((not (or (< (* (+ r m+) print-base) s)
+ (and high-ok (= (* (+ r m+) print-base) s))))
+ (values k (generate r s m+ m-)))))))
+ (generate (r s m+ m-)
+ (let (d tc1 tc2)
+ (tagbody
+ loop
+ (setf (values d r) (truncate (* r print-base) s))
+ (setf m+ (* m+ print-base))
+ (setf m- (* m- print-base))
+ (setf tc1 (or (< r m-) (and low-ok (= r m-))))
+ (setf tc2 (or (> (+ r m+) s)
+ (and high-ok (= (+ r m+) s))))
+ (when (or tc1 tc2)
+ (go end))
+ (vector-push-extend (char *digits* d) result)
+ (go loop)
+ end
+ (let ((d (cond
+ ((and (not tc1) tc2) (1+ d))
+ ((and tc1 (not tc2)) d)
+ (t ; (and tc1 tc2)
+ (if (< (* r 2) s) d (1+ d))))))
+ (vector-push-extend (char *digits* d) result)
+ (return-from generate result))))))
+ (if (>= e 0)
+ (if (/= f (expt float-radix (1- float-digits)))
+ (let ((be (expt float-radix e)))
+ (scale (* f be 2) 2 be be))
+ (let* ((be (expt float-radix e))
+ (be1 (* be float-radix)))
+ (scale (* f be1 2) (* float-radix 2) be1 be)))
+ (if (or (= e min-e) (/= f (expt float-radix (1- float-digits))))
+ (scale (* f 2) (* (expt float-radix (- e)) 2) 1 1)
+ (scale (* f float-radix 2)
+ (* (expt float-radix (- 1 e)) 2) float-radix 1))))))))
+
;;; Given a non-negative floating point number, SCALE-EXPONENT returns
;;; a new floating point number Z in the range (0.1, 1.0] and an
;;; exponent E such that Z * 10^E is (approximately) equal to the
@@ -1451,6 +1542,12 @@
;;; attractive to handle exponential notation with the same accuracy
;;; as non-exponential notation, using the method described in the
;;; Steele and White paper.
+;;;
+;;; NOTE II: this has been bypassed slightly by implementing Burger
+;;; and Dybvig, 1996. When someone has time (KLUDGE) they can
+;;; probably (a) implement the optimizations suggested by Burger and
+;;; Dyvbig, and (b) remove all vestiges of Dragon4, including from
+;;; fixed-format printing.
;;; Print the appropriate exponent marker for X and the specified exponent.
(defun print-float-exponent (x exp stream)
@@ -1508,26 +1605,34 @@
(write-string "0.0" stream)
(print-float-exponent x 0 stream))
(t
- (output-float-aux x stream (float 1/1000 x) (float 10000000 x))))))))
+ (output-float-aux x stream -3 8)))))))
(defun output-float-aux (x stream e-min e-max)
- (if (and (>= x e-min) (< x e-max))
- ;; free format
- (multiple-value-bind (str len lpoint tpoint) (flonum-to-string x)
- (declare (ignore len))
- (when lpoint (write-char #\0 stream))
- (write-string str stream)
- (when tpoint (write-char #\0 stream))
- (print-float-exponent x 0 stream))
- ;; exponential format
- (multiple-value-bind (f ex) (scale-exponent x)
- (multiple-value-bind (str len lpoint tpoint)
- (flonum-to-string f nil nil 1)
- (declare (ignore len))
- (when lpoint (write-char #\0 stream))
- (write-string str stream)
- (when tpoint (write-char #\0 stream))
- ;; Subtract out scale factor of 1 passed to FLONUM-TO-STRING.
- (print-float-exponent x (1- ex) stream)))))
+ (multiple-value-bind (e string)
+ (flonum-to-digits x)
+ (cond
+ ((< e-min e e-max)
+ (if (plusp e)
+ (progn
+ (write-string string stream :end (min (length string) e))
+ (dotimes (i (- e (length string)))
+ (write-char #\0 stream))
+ (write-char #\. stream)
+ (write-string string stream :start (min (length string) e))
+ (when (<= (length string) e)
+ (write-char #\0 stream))
+ (print-float-exponent x 0 stream))
+ (progn
+ (write-string "0." stream)
+ (dotimes (i (- e))
+ (write-char #\0 stream))
+ (write-string string stream)
+ (print-float-exponent x 0 stream))))
+ (t (write-string string stream :end 1)
+ (write-char #\. stream)
+ (write-string string stream :start 1)
+ (when (= (length string) 1)
+ (write-char #\0 stream))
+ (print-float-exponent x (1- e) stream)))))
;;;; other leaf objects
Index: reader.lisp
===================================================================
RCS file: /cvsroot/sbcl/sbcl/src/code/reader.lisp,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- reader.lisp 16 Mar 2004 18:00:05 -0000 1.31
+++ reader.lisp 11 May 2004 18:29:51 -0000 1.32
@@ -1272,46 +1272,10 @@
(#\F 'single-float)
(#\D 'double-float)
(#\L 'long-float)))
- num)
- ;; Raymond Toy writes: We need to watch out if the
- ;; exponent is too small or too large. We add enough to
- ;; EXPONENT to make it within range and scale NUMBER
- ;; appropriately. This should avoid any unnecessary
- ;; underflow or overflow problems.
- (multiple-value-bind (min-expo max-expo)
- ;; FIXME: These forms are broken w.r.t.
- ;; cross-compilation portability, as the
- ;; cross-compiler will call the host's LOG function
- ;; while attempting to constant-fold. Maybe some sort
- ;; of load-time-form magic could be used instead?
- (case float-format
- ((short-float single-float)
- (values
- (log sb!xc:least-positive-normalized-single-float 10f0)
- (log sb!xc:most-positive-single-float 10f0)))
- ((double-float #!-long-float long-float)
- (values
- (log sb!xc:least-positive-normalized-double-float 10d0)
- (log sb!xc:most-positive-double-float 10d0)))
- #!+long-float
- (long-float
- (values
- (log sb!xc:least-positive-normalized-long-float 10l0)
- (log sb!xc:most-positive-long-float 10l0))))
- (let ((correction (cond ((<= exponent min-expo)
- (ceiling (- min-expo exponent)))
- ((>= exponent max-expo)
- (floor (- max-expo exponent)))
- (t
- 0))))
- (incf exponent correction)
- (setf number (/ number (expt 10 correction)))
- (setq num (make-float-aux number divisor float-format stream))
- (setq num (* num (expt 10 exponent)))
- (return-from make-float (if negative-fraction
- (- num)
- num))))))
- ;; should never happen
+ (result (make-float-aux (* (expt 10 exponent) number)
+ divisor float-format stream)))
+ (return-from make-float
+ (if negative-fraction (- result) result))))
(t (bug "bad fallthrough in floating point reader")))))
(defun make-float-aux (number divisor float-format stream)
Update of /cvsroot/sbcl/sbcl
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3976
Modified Files:
BUGS NEWS version.lisp-expr: BUGS
===================================================================
RCS file: /cvsroot/sbcl/sbcl/BUGS,v
retrieving revision 1.380
retrieving revision 1.381
diff -u -d -r1.380 -r1.381
--- BUGS 2 May 2004 18:12:42 -0000 1.380
+++ BUGS 11 May 2004 18:29:50 -0000 1.381
@@ -382,6 +382,20 @@
Raymond Toy comments that this is tricky on the X86 since its FPU
uses 80-bit precision internally.
+ Bruno Haible comments:
+ The values are those that are expected for an IEEE double-float
+ arithmetic. The problem appears to be that the rounding is not
+ IEEE on x86 compliant: namely, values are first rounded to 64
+ bits mantissa precision, then only to 53 bits mantissa
+ precision. This gives different results than rounding to 53 bits
+ mantissa precision in a single step.
+
+ The quick "fix", to permanently change the FPU control word from
+ 0x037f to 0x027f, will give problems with the fdlibm code that is
+ used for computing transcendental functions like sinh() etc.
+ so maybe we need to change the FPU control word to that for Lisp
+ code, and adjust it to the safe 0x037f for calls to C?
+
124:
As of version 0.pre7.14, SBCL's implementation of MACROLET makes
the entire lexical environment at the point of MACROLET available
@@ -1310,38 +1324,6 @@
around the same time regarding a call to LIST on sparc with 1000
arguments) and other implementation limit constants.
.
-
- See also CSR sbcl-devel with an implementation of Berger and
- Dybvig's algorithm for printing and a fix for reading.
-
311: "Tokeniser not thread-safe"
(see also Robert Marlow sbcl-help "Multi threaded read chucking a
spak" 2004-04-19)
@@ -1363,3 +1345,121 @@
313: "source-transforms are Lisp-1"
(fixed in 0.8.10.2)
+
+
+315: "no bounds check for access to displaced array"
+ reported by Bruno Haible sbcl-devel "various SBCL bugs" from CLISP
+ test suite.
+ (locally (declare (optimize (safety 3) (speed 0)))
+ (let* ((x (make-array 10 :fill-pointer 4 :element-type 'character
+ :initial-element #\space :adjustable t))
+ (y (make-array 10 :fill-pointer 4 :element-type 'character
+ :displaced-to x)))
+ (adjust-array x '(5))
+ (char y 5)))
+
+ SBCL 0.8.10 elides the bounds check somewhere along the line, and
+ returns #\Nul (where an error would be much preferable, since a test
+ of that form but with (setf (char y 5) #\Space) potentially corrupts
+ the heap and certainly confuses the world if that string is used by
+ C code.
+
+316: "SHIFTF and multiple values"
+ reported by Bruno Haible sbcl-devel "various SBCL bugs" from CLISP
+ test suite.
+ (shiftf (values x y) (values y x))
+ gives an error in sbcl-0.8.10.
+
+ Parts of the explanation of SHIFTF in ANSI CL talk about multiple
+ store variables, and the X3J13 vote
+ SETF-MULTIPLE-STORE-VARIABLES:ALLOW also says that SHIFTF should
+ support multiple value places.
+
.
+
+320: "shared to local slot in class redefinition"
+ reported by Bruno Haible sbcl-devel "various SBCL bugs" from CLISP
+ test suite.
+ ;;)))
+ should return (1 NULL) but returns (2 NULL) in sbcl-0.8.10. See
+ ensuing discussion sbcl-devel for how to deal with this.
+
+321: "DEFINE-METHOD-COMBINATION lambda list parsing"
+ reported by Bruno Haible sbcl-devel "various SBCL bugs" from CLISP
+ test suite.
+ (define-method-combination w-args ()
+ ((method-list *))
+ (:arguments arg1 arg2 &aux (extra :extra))
+ `(progn ,@(mapcar (lambda (method) `(call-method ,method)) method-list)))
+ gives a (caught) compile-time error, which can be exposed by
+ (defgeneric mc-test-w-args (p1 p2 s)
+ (:method-combination w-args)
+ (:method ((p1 number) (p2 t) s)
+ (vector-push-extend (list 'number p1 p2) s))
+ (:method ((p1 string) (p2 t) s)
+ (vector-push-extend (list 'string p1 p2) s))
+ (:method ((p1 t) (p2 t) s) (vector-push-extend (list t p1 p2) s)))
+
+322: "DEFSTRUCT :TYPE LIST predicate and improper lists"
+ reported by Bruno Haible sbcl-devel "various SBCL bugs" from CLISP
+ test suite.
+ (defstruct (a (:type list) (:initial-offset 5) :named))
+ (defstruct (b (:type list) (:initial-offset 2) :named (:include a)))
+ (b-p (list* nil nil nil nil nil 'foo73 nil 'tail))
+ gives an error in sbcl-0.8.10
Index: NEWS
===================================================================
RCS file: /cvsroot/sbcl/sbcl/NEWS,v
retrieving revision 1.527
retrieving revision 1.528
diff -u -d -r1.527 -r1.528
--- NEWS 11 May 2004 07:31:36 -0000 1.527
+++ NEWS 11 May 2004 18:29:50 -0000 1.528
@@ -2432,7 +2432,10 @@
* fixed some bugs revealed by Paul Dietz' test suite:
** FILE-POSITION works as specified on BROADCAST-STREAMs.
** CAST optimizer forgot to flush argument derived type.
-
+ ** print/read consistency on floats is now orders of magnitude
+ more likely. (thanks also to Bruno Haible for a similar report
+ and discussions)
+
planned incompatible changes in 0.8.x:
* (not done yet, but planned:) When the profiling interface settles
down, it might impact TRACE. They both encapsulate functions, and
Index: version.lisp-expr
===================================================================
RCS file: /cvsroot/sbcl/sbcl/version.lisp-expr,v
retrieving revision 1.1587
retrieving revision 1.1588
diff -u -d -r1.1587 -r1.1588
--- version.lisp-expr 11 May 2004 07:31:37 -0000 1.1587
+++ version.lisp-expr 11 May 2004 18:29:51 -0000 1.1588
@@ -17,4 +17,4 @@
;;; checkins which aren't released. (And occasionally for internal
;;; versions, especially for internal versions off the main CVS
;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
-"0.8.10.18"
+"0.8.10.19"
Update of /cvsroot/sbcl/sbcl/tests
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3976/tests
Modified Files:
print.impure.impure.lisp
===================================================================
RCS file: /cvsroot/sbcl/sbcl/tests/print.impure.lisp,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- print.impure.lisp 9 May 2004 17:12:15 -0000 1.18
+++ print.impure.lisp 11 May 2004 18:29:51 -0000 1.19
@@ -220,5 +220,16 @@
(assert (and w-p f-p))
(assert (nth-value 1 (ignore-errors (funcall f)))))
+;;; floating point print/read consistency
+(let ((x (/ -9.349640046247849d-21 -9.381494249123696d-11)))
+ (let ((y (read-from-string (write-to-string x :readably t))))
+ (assert (eql x y))))
+
+(let ((x1 (float -5496527/100000000000000000))
+ (x2 (float -54965272/1000000000000000000)))
+ (assert (or (equal (multiple-value-list (integer-decode-float x1))
+ (multiple-value-list (integer-decode-float x2)))
+ (string/= (prin1-to-string x1) (prin1-to-string x2)))))
+
;;; success
(quit :unix-status 104)
Update of /cvsroot/sbcl/sbcl/tests
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18297/tests
Modified Files:
loop.pure.lisp
Log Message:
0.8.10.18:
Merge patch for bogus LOOP warning (Nikodemus Siivola sbcl-devel
2004-05-01)
... and write a test case
Index: loop.pure.lisp
===================================================================
RCS file: /cvsroot/sbcl/sbcl/tests/loop.pure.lisp,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- loop.pure.lisp 9 Nov 2003 13:35:31 -0000 1.17
+++ loop.pure.lisp 11 May 2004 07:31:39 -0000 1.18
@@ -214,3 +214,13 @@
(let ((x 2d0))
(loop for d of-type double-float downfrom 10d0 to 0d0 by x collect d))
'(10d0 8d0 6d0 4d0 2d0 0d0)))
+
+(let ((fn (handler-case
+ (compile nil '(lambda ()
+ (declare (special x y))
+ (loop thereis (pop x) thereis (pop y))))
+ (warning (c) (error "Warned: ~S" c)))))
+ (let ((x (list nil nil 1))
+ (y (list nil 2 nil)))
+ (declare (special x y))
+ (assert (= (funcall fn) 2))))
Update of /cvsroot/sbcl/sbcl/src/code
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18297/src/code
Modified Files:
loop.lisp
Log Message:
0.8.10.18:
Merge patch for bogus LOOP warning (Nikodemus Siivola sbcl-devel
2004-05-01)
... and write a test case
Index: loop.lisp
===================================================================
RCS file: /cvsroot/sbcl/sbcl/src/code/loop.lisp,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- loop.lisp 9 Nov 2003 13:35:31 -0000 1.35
+++ loop.lisp 11 May 2004 07:31:38 -0000 1.36
@@ -479,8 +479,8 @@
(defvar *loop-after-epilogue*)
;;; the "culprit" responsible for supplying a final value from the
-;;; loop. This is so LOOP-EMIT-FINAL-VALUE can moan about multiple
-;;; return values being supplied.
+;;; loop. This is so LOOP-DISALLOW-AGGREGATE-BOOLEANS can moan about
+;;; disallowed anonymous collections.
(defvar *loop-final-value-culprit*)
;;; If this is true, we are in some branch of a conditional. Some
@@ -908,10 +908,6 @@
-final-value-culprit*))
(setq *loop-final-value-culprit* (car *loop-source-context*)))
(defun loop-disallow-conditional (&optional kwd)
Update of /cvsroot/sbcl/sbcl
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18297
Modified Files:
NEWS version.lisp-expr
Log Message:
0.8.10.18:
Merge patch for bogus LOOP warning (Nikodemus Siivola sbcl-devel
2004-05-01)
... and write a test case
Index: NEWS
===================================================================
RCS file: /cvsroot/sbcl/sbcl/NEWS,v
retrieving revision 1.526
retrieving revision 1.527
diff -u -d -r1.526 -r1.527
--- NEWS 9 May 2004 17:12:13 -0000 1.526
+++ NEWS 11 May 2004 07:31:36 -0000 1.527
@@ -2420,8 +2420,11 @@
type.
* fixed bug: SET-PPRINT-DISPATCH does not immediately resolve
function name. (thanks to Nikodemus Siivola)
- * fixed bug:: compile-time format string checker failed on
+ *)
* optimization: rearranged the expansion of various defining macros
so that each expands into only one top-level form in a
:LOAD-TOPLEVEL context; this appears to decrease fasl sizes by
Index: version.lisp-expr
===================================================================
RCS file: /cvsroot/sbcl/sbcl/version.lisp-expr,v
retrieving revision 1.1586
retrieving revision 1.1587
diff -u -d -r1.1586 -r1.1587
--- version.lisp-expr 10 May 2004 15:02:59 -0000 1.1586
+++ version.lisp-expr 11 May 2004 07:31:37 -0000 1.1587
@@ -17,4 +17,4 @@
;;; checkins which aren't released. (And occasionally for internal
;;; versions, especially for internal versions off the main CVS
;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
-"0.8.10.17"
+"0.8.10.18" | http://sourceforge.net/mailarchive/forum.php?forum_name=sbcl-commits&max_rows=25&style=nested&viewmonth=200405&viewday=11 | CC-MAIN-2013-48 | refinedweb | 3,038 | 56.15 |
Hi everyone, This message announces the birth of a new service: Alioth is a Sourceforge installation dedicated to Debian. Before going into details, I'd like to thank Roland Mas and Christian Bayle who packaged Sourceforge (and it's not something easy!). Special kudos to Roland Mas and Wichert Akkerman who worked together to set it up and to make some modifications for Debian (so that each Debian developer has his usual account mostly ready to use, for example). Project approval policy ----------------------- Alioth offers the same range of services than Sourceforge but only to projects which met certain criteria. Here are the guidelines we're going to follow when approving project submissions: We'll approve all those projects: - Free software or free documentation (as defined by the Debian Free Software Guidelines) authored by Debian developers, or free software/documentation where a Debian developer is heavily involved (part of the core team for example). The project request should ideally be done by a Debian developer. - Free documentation concerning Debian or any of its derivatives. We may also approve other projects on a case by case basis, for example: - Other projects (non-software, non-documentation) whose goal is to promote Debian. - Other projects (non-software, non-documentation) whose goal is to promote free software in general, if those initiatives are backed by Debian or by a group a Debian developers. - Any other project where you can convince the Alioth's administrators that it will help Debian achieve World Domination. What is it good for ? --------------------- Alioth has big advantages: - creating a project is easy and it offers you full control over many services - it is open to non-Debian developers and you can easily grant rights (for example CVS write access) to external contributors Thus Alioth is particularly suited for: - Debian specific software that could be used by third parties (who'd be able to easily contribute). I would give the "Debian menu system" as an example. - Documentation where many external contributors (authors, translators, reviewers) are typically involved. - Subprojects like DebianEdu where many contributors are not (yet) Debian developers, and where we want to federate/integrate projects which started without any links to Debian. But Alioth can still be used for projects/tasks of limited scope: for example comaintenance of packages can be done on Alioth (by using the CVS repository). How to use my Debian Developer account ? ---------------------------------------- Your account already exists. You just have to change your password by following the instructions on this page: (the URL will be mailed to your @debian.org email account). Very recent new developers may not have their account created at exactly the same time on Alioth as on other Debian servers, but the delay is worked on. How to use Alioth if I'm not an official developer ? ---------------------------------------------------- Just click on the "New user via SSL" link and create your account from there. Your account name will include a "-guest" suffix, so that we can avoid namespace conflicts with "real" Debian developers. Apart from that limitation, your account is not crippled. Expectations ------------ We hope that this service will show that the Debian community is a very active part of the free software community. Hopefully it will also help us by letting more people contribute to Debian without going through the complete new maintainer system. It should also help collaborative package maintenance, thus increasing the general quality of Debian. Why "Alioth"? ------------- Well, we had to pick a name. Lots of names were suggested, most of which were references to movies, books, cartoons or whatever. These references were not necessarily understood by people from all over the world (not everywhere can you watch the Simpsons or Goldorak on TV), and the names had not much significance apart from these references. The Alioth name was primarily chosen as a reference too, but this one is less bound to geographical origin of the users: it's the capital system for the Alliance of Independent Systems in the Frontier First Encounters game. I'm not saying everyone here played this game, but it's more likely that you have at least heard of it, whereas you probably have no clue who Actarus is unless you're French, male, and 23 to 30 years old. Oh, and as a bonus, Alioth is a real star, in the constellation of Ursa Major (as any Google search will tell you). We hope you'll enjoy this new service ! -- The Alioth administrators (Wichert Akkerman, Roland Mas, myself)
Attachment:
pgp45RsAB7BsZ.pgp
Description: PGP signature | http://lists.debian.org/debian-devel-announce/2003/03/msg00024.html | crawl-002 | refinedweb | 749 | 51.58 |
The PMatrixDec class is a subclass of PMatrix. More...
#include <vnl/vnl_matrix.h>
#include <mvl/PMatrix.h>
#include <vcl_iosfwd.h>
Go to the source code of this file.
The PMatrixDec class is a subclass of PMatrix.
It justs adds decomposition of the projection matrix, P, into 2 matrices: J (3x3) and D (4x4), with intrinsic and extrinsic parameters, respectively, where P=[J O_3]D.
References:
pp 50 and 52-54, or more widely, CHAPTER 3 in (Faugeras, 1993): @Book{ faugeras:93, author = {Faugeras, Olivier}, title = {Three-Dimensional Computer Vision: a Geometric Viewpoint}, year = {1993}, publisher = mit-press }
Modifications: 15-May-97, A.Lopez -> Provide access methods for intrinsic parameters, denoted by AlphaU, AlphaV, U0 & V0.
Definition in file PMatrixDec.h. | http://public.kitware.com/vxl/doc/release/contrib/oxl/mvl/html/PMatrixDec_8h.html | crawl-003 | refinedweb | 120 | 51.14 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.