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
On Fri, 2012-09-07 at 16:09 -0700, Linus Torvalds wrote:> The "u32 len" -> "unsigned long len" thing *might* make a difference, though.This I believe doesn't fix the reported BUG. I was trying to addressyour previous comment about broken types.> > I also think your patch is incomplete even on 32-bit, because this:> > > if (mtd->type == MTD_RAM || mtd->type == MTD_ROM) {> > off = vma->vm_pgoff << PAGE_SHIFT;> > is still wrong. It probably should be> > off = vma->vm_pgoff;> off <<= PAGE_SHIFT;> > because vm_pgoff may be a 32-bit type, while "resource_size_t" may be> 64-bit. Shifting the 32-bit type without a cast (implicit or explicit)> isn't going to help.Agree.> That said, we have absolutely *tons* of bugs with this particular> pattern. Just do> > git grep 'vm_pgoff.*<<.*PAGE_SHIFT'> > and there are distressingly few casts in there (there's a few, mainly> in fs/proc).> > Now, I suspect many of them are fine just because most users probably> are size-limited anyway, but it's a bit distressing stuff. And I> suspect it means we might want to introduce a helper function like> > static inline u64 vm_offset(struct vm_area_struct *vma)> {> return (u64)vma->vm_pgoff << PAGE_SHIFT;> }> > or something. Maybe add the "vm_length()" helper while at it too,> since the whole "vma->vm_end - vma->vm_start" thing is so common.Agree.> Anyway, since Sasha's oops is clearly not 32-bit, the above issues> don't matter, and it would be interesting to hear if it's the 32-bit> 'len' thing that triggers this problem. Still, I can't see how it> would - as far as I can tell, a truncated 'len' would at most result> in spurious early "return -EINVAL", not any real problem.> > What are we missing?> On Fri, 2012-09-07 at 15:42 -0700, Suresh Siddha wrote:> - if ((vma->vm_end - vma->vm_start + off) > len)> + if (off >= len || (vma->vm_end - vma->vm_start + off) > len)> return -EINVAL; This is the relevant portion that I am thinking will address the BUG.Essentially the user is trying to mmap at a very large offset (from theoops it appears "vma->vm_pgoff << PAGE_SHIFT + start" ends up to"0xfffffffffffff000").So it appears that the condition "(vma->vm_end - vma->vm_start + off) >len" might be false because of the wraparound? and doesn't return-EINVAL.Let's see what Sasha finds. Anyways the patch does indeed require yourabove mentioned vm_pgoff fix for the 32-bit case.thanks,suresh
http://lkml.org/lkml/2012/9/7/714
CC-MAIN-2016-36
refinedweb
400
71.55
Hello, I have this assignment in C. The problem is that the functions have to be placed in separate files instead of just one. I haven't done that before. It seems code that would have run if the program was written in one file doesn't work when the functions are separated. Why? I've tried this on both Visual Studio 2005 and 2010 on Windows XP with the same result. Here's a small bit of code: main.c #include <stdio.h> #include <stdlib.h> #include "my_func.h" int main() { FILE *fp; char s[30]; fp=fn_fop(); fn_out(&fp); fclose(fp); printf("\nsuccess\n"); return 0; } my_func.c #include <stdio.h> #include <stdlib.h> FILE *fn_fop() { FILE *fp; char fn[30]; for(;;) { printf("Filename:"); scanf("%s",&fn); if((fp=fopen(fn,"r"))==NULL) { printf("failure\n"); getchar(); } else { printf("file loaded\n"); return fp; } } } void fn_out(FILE *fp) { char s[30]; fgets(s,30,fp); fflush(fp); printf("%s",s); } my_func.h FILE *fn_fop(); void fn_out(FILE *fp); The program crashes at fgets in fn_out. It seems to me that the program crashes every time I try to do anything with a file opened in a different function. Except for this one time: When I try to read from the file in main combined with fn_fop it works. But if the file is opened by a function like the following it will crash when accessed in main. int fn_fop2(FILE *fp) { for(;;) { char fn[30]; printf("Filename:"); scanf("%s",&fn); if((fp=fopen(fn,"r"))==NULL) { printf("failure\n"); getchar(); } else { printf("file loaded\n"); return 0; } } } Why is this happening? What's wrong? I'm sorry if my explanation was not sufficient. Thanks in advance for your time!
https://www.daniweb.com/programming/software-development/threads/356007/handling-files-through-functions-program-crashes
CC-MAIN-2019-04
refinedweb
291
76.42
UIPageViewController is a powerful class used by nine out of ten of the mobile apps you will ever come across. Many apps use it for feature lists and/or tips on getting started. In this post, I will show you how incredibly easy it is to make a UIPageViewController tutorial. To start, let’s create a new application. It doesn’t matter which type you select, since we’re going to start with a clean slate anyway. Select a product name and be sure to select Swift for the language. Remove all of the auto-generated files besides the ones listed. Now remove all of the objects in Main.storyboard. If you did everything right, building the project ( Cmd + b) should succeed. Next, inside Main.storyboard, add a new Page View Controller object to the canvas. Make sure to set the new UIPageViewController object as the initial view controller in the attributes inspector. That way, it will be initialized when the app launches. Next, let’s create a custom UIPageViewController subclass… …and assign it to the UIPageViewController object (which we created inside Main.storyboard earlier) in the identity inspector. Now for the fun part–let’s create three view controller objects in Main.storyboard. These will eventually be scrolled through in the page view controller. Planning ahead a bit, let’s set Storyboard IDs in the identity inspector for each of the view controllers above. These will be used in code to instantiate the view controllers. Alternatively, you could create three separate UIViewController subclass files and assign them to the objects in the storyboard. All right, now that our storyboard is all set up, let’s write some code! To start, let’s set ourselves as the datasource and define the required methods. // // TutorialPageViewController.swift // UIPageViewController Post // // Created by Jeffrey Burt on 12/11/15. // Copyright © 2015 Atomic Object. All rights reserved. // import UIKit class TutorialPageViewController: UIPageViewController { override func viewDidLoad() { super.viewDidLoad() dataSource = self } } // MARK: UIPageViewControllerDataSource extension TutorialPageViewController: UIPageViewControllerDataSource { func pageViewController(pageViewController: UIPageViewController, viewControllerBeforeViewController viewController: UIViewController) -> UIViewController? { return nil } func pageViewController(pageViewController: UIPageViewController, viewControllerAfterViewController viewController: UIViewController) -> UIViewController? { return nil } } Next, let’s add an array to reference the view controllers we want to page through. The view controllers will be shown in this order. private(set) lazy var orderedViewControllers: [UIViewController] = { return [self.newColoredViewController("Green"), self.newColoredViewController("Red"), self.newColoredViewController("Blue")] }() private func newColoredViewController(color: String) -> UIViewController { return UIStoryboard(name: "Main", bundle: nil) . instantiateViewControllerWithIdentifier("\(color)ViewController") } Now, it’s time to load up the first view controller (green). override func viewDidLoad() { super.viewDidLoad() dataSource = self if let firstViewController = orderedViewControllers.first { setViewControllers([firstViewController], direction: .Forward, animated: true, completion: nil) } } Sweet, green is shown, but what about red and blue? Let’s go ahead and actually implement the UIPageViewControllerDataSource methods to get swiping up and running. guard previousIndex >= 0 else { return nil } guard orderedViewControllersCount != nextIndex else { return nil } guard orderedViewControllersCount > nextIndex else { return nil } return orderedViewControllers[nextIndex] } This gives us the following output: This is great and all, but what if we wanted to loop the view controllers? Easy! Just convert the UIPageViewControllerDataSource methods to the following: // User is on the first view controller and swiped left to loop to // the last view controller. guard previousIndex >= 0 else { return orderedViewControllers.last } // User is on the last view controller and swiped right to loop to // the first view controller. guard orderedViewControllersCount != nextIndex else { return orderedViewControllers.first } guard orderedViewControllersCount > nextIndex else { return nil } return orderedViewControllers[nextIndex] } Sweet, an infinite loop that we actually want! But we’re making a tutorial. Let’s trash the page curl and replace it with a horizontal scroll. This can be done in the attributes inspector inside Main.storyboard. Be sure to click on the Tutorial Page View Controller object since that’s what we’re editing. There’s only one thing missing: the dots! Simply implement the following two UIPageViewControllerDataSource methods inside our TutorialPageViewController: UIPageViewControllerDataSource extension. func presentationCountForPageViewController(pageViewController: UIPageViewController) -> Int { return orderedViewControllers.count } func presentationIndexForPageViewController(pageViewController: UIPageViewController) -> Int { guard let firstViewController = viewControllers?.first, firstViewControllerIndex = orderedViewControllers.indexOf(firstViewController) else { return 0 } return firstViewControllerIndex } Build and run and you should be all set! And for the best part…the GitHub Download link! Update: Be sure to check out my next post, where I explain How to Move Page Dots in a UIPageViewController. By commenting below, you agree to the terms and conditions outlined in our (linked) Privacy Policy70 Comments Hi Jeff, thx for sharing. Just a question… how I can change the background for dots controllers?? Black is not the ideal color for my pages! Unfortunately I can’t get the meaning of last two functions! Thank you in advance, Michele Hey Michele! Thanks for checking out my post. You definitely asked a great question. Unfortunately, there isn’t a pageControlproperty on UIPageViewController. So, you have to get a little creative. I take advantage of UIPageControl.appearanceWhenContainedInInstancesOfClasses()to accomplish this. Here is a snippet: Then, simply call stylePageControl()inside viewDidLoad(). I have also added this to the GitHub repo. Here is the commit in case you’re curious: Hope this helps! Jeff Michele, I just realized I didn’t respond to your last concern. The last two methods defined inside the UIPageViewControllerDataSourceextension are directly related to the page control. UIPageViewControlleris smart enough to show/hide a page control depending on the presence of these methods. To hide the dots, simply leave off these methods. presentationCountForPageViewController()tells the UIPageViewControllerhow many pages there are in total. presentationIndexForPageViewController()tells the UIPageViewControllerwhich page the user is currently on, which is how the page control knows which dot to color in. Let me know if you have any additional questions/concerns! Jeff Hi Jeff, thanks a lot for you clear answers! Bye, Michele Hey Jeff–thanks for a really handy tutorial! I was wondering though: is it possible to move the location of the dots/bar? Or is the default behavior for the page view controller to present that at the bottom? I tried to set the frame in stylePageControl but it didn’t move. Hey Dan, That’s a great question! I am going to cover that in my next blog post. I’ll post a link when it is published. In case you can’t wait, I’ve pushed the necessary code changes to the masterbranch on the GitHub repo. Thanks! Jeff Hey Dan, I’m happy to announce that the blog post went live: Let me know if you have any further questions! -Jeff Is there a way to set this up for scrolling thru images rather than a series of view controller? Hello, Your best bet is probably to use a UICollectionViewController. -Jeff Hey, I was wondering if there was a way of putting eg a “skip” button at the same level as the dots? Similar to this: Thanks Hey Marek, That’s a great question. I have made those changes to the GitHub repo. Here is a link to the commit. Let me know if you have any other questions! -Jeff Cool, that’s really helpful, I was struggling to implement this! That is wonderful news. I’m glad I was able to help! Thanks for article. But I think there is issue with cycle reference/memory leak. When I added initial Navigation Controller and View Controller with button, and returned back from TutorialViewController deinit didn’t called. To fix this need to make tutorialDelegate weak reference and TutorialPageViewControllerDelegate inherit class: protocol TutorialPageViewControllerDelegate: class { } P.S. I used source from GitHub link Hi Igor, I believe your comment refers to my other blog post: How to Move Page Dots in a UIPageViewController. Anyways, you are absolutely correct. I have made the changes to the GitHub repo as well. Thanks for checking out the blog! -Jeff Hi. Thanks for the tutorial :) If I have two view controllers already made with names, do I just put those names in the brackets instead of the newViewControllers?: private(set) lazy var orderedViewControllers: [UIViewController] = { return [self.newColoredViewController(“Green”), self.newColoredViewController(“Red”), self.newColoredViewController(“Blue”)] }() Because I tried doing so, and my simulator just shows a black screen. Hi Cormac, When you say “two view controllers already made with names,” what exactly do you mean? Are you referring to instantiated view controllers stored in vars? Do you see a black screen when using the view controllers from the tutorial (i.e. self.newColoredViewController("Red"))? -Jeff Hi Jeff, I just wanted to know if there was a way to only show the tutorial the first time the application is run or a way for the user to say do not show tutorial again? Thanks for the great tutorial! -Mark Hey Mark, Thanks for checking out my post! Anyways, you could use a key inside NSUserDefaultsto determine if the tutorial has been shown or not. Maybe name it something like didShowTutorial(that does not default to true). Hope this helps! -Jeff Cool! Thanks for the tip. That idea worked perfectly for what I was trying to do :) Nice! Happy to have helped. Best of luck to you! Thank you Jeff for the great tutorial! I’m receiving some errors in my orderViewControllers lazy instkantation. “cannot convert value of type String to expected argument type…XPageViewController” It seems as if the error could be with XCode, have looked over it several times. tips? Hey Malcolm, Just to confirm, are you casting orderedViewControllersto be of type [UIViewController]? For example, private(set) lazy var orderedViewControllers: [UIViewController]. If this isn’t the problem, will you post your entire orderedViewControllersfunction? Thanks! Jeff Hi Jeff, Firstly, thank you so much for this tutorial. You have saved my bacon and my sanity. I have one question, that if you could help me with I would have your babies (Not actually offering, plus i’m a dude). I would like to know how to pass data that I get from the TutorialViewController to the 3 viewcontrollers that are loaded. I created a StackOverflow question (With a lin to your article) here: P.s I am a little noobie so please forgive me if this is a super basic question. Hey James, Great question! First, I want to thank you for checking out my tutorial and all of the nice things you said about it. Second, I have a solution for you! I went ahead and. I will also post the code here and walk you through it. (1) Create a UIViewControllersubclass to add custom properties to. For this example, I chose to add a UILabelsince it’s the easiest to view when running the app. (2) Inside Main.storyboard, change the custom class for each UIViewController“page” to ColoredViewControllerin the Identity Inspector. (3) Add a UILabelto each “page” and constraint it however you’d like. I chose to vertically and horizontally center it in the container. Don’t forget to link the UILabelto ColoredViewController‘s @IBOutlet weak var label: UILabel!. (4) Optional: I deleted the default “Label” text in each one that way if we never set the label’s text in code, we will not show “Label” to the user. (5) We need to do some TLC to TutorialPageViewControllerso it knows that orderedViewControllersis now a ColoredViewControllerarray. To make things easy, I’m just going to paste the entire class: (6) Inside TutorialViewController: let’s set the label.text. I chose to use viewDidLoad, but feel free to stuff this logic inside a network request completion block. Hope this helps! -Jeff First off, thank you very much for this fabulous resource. I have everything working regarding looping while swiping using the updated code above. However, the last bit, inside of the “override func viewDidLoad()” , “if let greenColoredViewController …” won’t compile. I’m receiving the error: “Use of unresolved identifier ‘tutorialPageViewController'” Thanks, again! Hey Darrell, Thanks for checking out the post! Do you have a tutorialPageViewControllerproperty on TutorialViewController? pass-data-to-individual-pagesbranch on the GitHub repo to compare what I have with what you have. Thanks! Jeff Ok, got it all straightened out. This is THE BEST and most flexible implementation I’ve come across. I have, literally, been scouring the net for a couple of days now and am so glad you have taken the time to put this together and freely share your expertise. Jeff, all the best and keep up the great work! Darrell, That is wonderful news! I’m super glad this post has made such an impact. Thanks for the awesome feedback! Best of luck to you! Jeff Hi Jeff, This is a great tutorial, thanks. I too having been scouring the web for this solution! Is there a way to use a button on each of the pages to implement Next/Previous rather than the app accepting ‘swipes’. Apologies if I am missing something obvious. Jeff, you’ve done so much already and I’ve tried my best to figure this out on my own with the well organized code that you have provided. However, I can’t figure out how to do the following: I need to reload the individual UIViewControllers when they appear. I completely understand that the (3) views are being cached by the UIPageViewController – and that’s my challenge. (Any way to disable caching??) My underlying UIViewControllers each have embedded UITableViews and are all showing up just fine when swiping in either direction. I’m successfully passing data (NSPredicate values for filtering) to the underlying views. The problem is that the underlying view won’t update because I can’t “reload” it for in order to use the new values. It would be great if I can somehow say, while viewing the current page: “reload the previous and next pages”, so that when I swipe to them they will update accordingly. Right now all pages are using their initial values, as expected and they’re “stuck” that way. Maybe this request is outside the scope of your tutorial. If so, I understand. I’ll just keep digging until I can figure it out. Thanks for listening, Darrell Hey Darrell, You can override viewWillAppear:on each view controller in question and reload your table view there. It gets called every time you swipe it into view. Let me know how it goes. Jeff Hi, I don’t really have any questions, I just wanted to say thanks for such a great article. You rock! :) Ok, got it working! Thanks so much for the tip and the fast reply. Take care, Darrell My pleasure! Take care, Jeff Thanks for this tutorial, Jeff! It’s definitely nice to see some handiwork done with Swift’s protocols and extensions. It can be a little difficult to wrap my head around sometimes, but I enjoy the challenge; especially when there are awesome tutorials out there, like this one, to back me up. My pleasure! Thanks for checking out my post! Best of luck to you Hey Jeff, Thanks for this tutorial. It was really helpful. I was wondering how to do this same thing with a root view controller. Hey Gokulraj, Thanks for checking out my post! If I understand you correctly, you should be able to drag a Navigation ControllerInterface Builder object into Main.storyboardand set TutorialViewControlleras the root view controller. Main.storyboardshould look something like this: I’ve also created a new branch called wrapped-inside-nagivation-controller on the GitHub repo with these additions. Hope this helps! Jeff This is what I was talking about, Jeff. check this out Gokulraj, You can add a container view to your Storyboard’s initial view controller, and link it up with the UIPageViewController. Actually, I did this in my How to Move Page Dots in a UIPageViewController blog post (also linked above). You can also check out the GitHub repo linked above as well, which contains the code you’re looking for. Here is a screenshot from that post: Good luck! Jeff I have a lot of red dot error message in my codes. I follow the instruction and i don’t know what went wrong. Jeff is it possible to have the actual project so i can compare it? Hey Frank, Thanks for checking out my post. You can find the GitHub download link at the end of the post, which contains all of the source code. Here it is again for you: Good luck! -Jeff thanks jeff! Jeff I just wanted to say thank you for this post. It really helped me out. Hey Mike, Thanks for the feedback – I really appreciate it. Glad you were able to find my post useful. Best, Jeff Thank you Jeff ! It was a great help for me such as a begginer ios developper! Ryo, That is wonderful news. I’m glad you found my post useful. Best of luck! Jeff I’m afraid I’m getting stuck very early. When creating the array of view controllers, I am getting an error “‘TutorialPageViewController’ does not have a member named ‘newColoredViewController’. Any suggestions? Quit, reboot computer and that problem just went away… Yeah, that’s pretty weird. Sounds like maybe your Xcode was in an odd state? Anyways, glad your problem went away. Good luck! Jeff Hey Jeff. Awesome tutorial! Quick question, is there any (reasonably) simple way to add in a timer to trigger the segues? Essentially, if the user logs in, the first view auto-segues to the second view after 5 seconds or something? I’m having trouble incorporating a few solutions I’ve found on timers with the above. I have the below timer formula, but I can’t get a function (moveToNextPage) to work properly with the ImageSwap I’ve already built. NSTimer.scheduledTimerWithTimeInterval(5, target: self, selector: #selector(ImageSwapViewController.moveToNextPage), userInfo: nil, repeats: true) Any help is greatly appreciated! Hey Dustin, Sorry for the delayed response. Were you able to get it? One thing to keep in mind: if the user swipes, will that cancel the timer? Or is user interaction going to be disabled? Jeff Jeff – Very new to this whole process, but I cannot even set the dataSource = self. I am receiving the error “Cannot assign value of type “PageViewTutorial” to type “UIPageViewControllerDataSource?” import UIKit class PageViewTutorial: UIPageViewController { override func viewDidLoad() { super.viewDidLoad() dataSource = self } } Hi Troy, Sorry for the delayed response. Were you able to figure it out? If it helps, take a peak at the source code: Let me know if you are still stuck, Jeff Hi Jeff! Great Tutorial! I have a question, if I want to implement the page controller in a game, using spriteKit, How can I do it? Thanks! Hey Ana, Unfortunately, that’s out of scope for this tutorial. Perhaps I will cover that in a future tutorial. Thanks for checking out my post! Jeff Hi Jeff, thanks for the tutorial. Is it possible to pass the current index count to the TutorialViewController using on the next button? Hi Jeff, no need for the help. I was able to use pageControl.currentPage as the index. Thanks again for the tutorial. Hey Dannie, Glad you were able to figure it out! Jeff Hi Jeff, thx for tutorial. Just a question… how can i change dots with custom image that deigned with photoshop?? and i complete this tutorial with images. how to make images clickable? Thank you in advance, AllPO Jeff, thanks for the post. Thoughts on the best way to implement with a dynamic number of pages? Did you actually tried to follow this tutorial ? It’s not working … Hi Jeff. First, thanks for tutorial. It helped me out a lot. Currently, however, I am having a bit of an issue with having a Tab, Navigation Controller overlayed on a pageview, pushing out a view controller with a nested tableview. As soon as the view is loaded, it’s a couple of pixels below where it should be (the viewcontroller does not fit all the way). Only after I move the view using the page controller functions does it position itself correctly. I was wondering if you know a potential solution to this. Thank you Mr. Burt this tutorial was fantastic.I learned a lot. Thank you Hi , It is really a nice tutorial and appreciate for your time :) I want to check if we have a option to see the previous and next viewControllers of the current view controllers in the same screen. I tried multiple options but did not work out. Any suggestions on this is greatly appreciated. Hi and thanks again for sharing. Just a quick question. If I swipe right in the first page (as well I swipe left in the last page) I see a black background… a very bad experience. How to block the first and last page from this kind of movements? Hey Jeff, I am trying to implement page view controller and through your post I am able to do it successfully. Now I want to add a transition between different views with some animation like when my view is swiped then the next view is slight small in size from borders. and when the present view scrolls completely up then the second view restores to fix size. Can you help?
https://spin.atomicobject.com/2015/12/23/swift-uipageviewcontroller-tutorial/
CC-MAIN-2019-51
refinedweb
3,509
67.96
N4JS npm Export Guide Project Example In order to demonstrate exporting as npm, we can begin by creating a new N4JS Project using the keyboard shortcut ⌘+N and naming it "fibonacci". We then create a class "Fibonacci" and define it as follows: export public class Fibonacci { public seq() { var arr = []; var a = 0; var b = 1; for (var n = 1; n < 15; n++) { var current = a + b; arr.push(current); a = b + a; b = a - b; } console.log(arr); } } var run = new Fibonacci(); run.seq(); In the above example, we are creating a function which will iterate through the Fibonacci sequence, push each new value into an array and report the results in the console after the for loop is complete. When right-clicking the module and selecting, we have the following output in the console: Exporting as npm To export our Fibonacci example, navigate to the Project Explorer view, right-click our Fibonacci.n4js file or the project name and select Export. An Export wizard will list the available types of exports. Select N4JS npm export in the N4JS Exports folder. On the following screen, we can select a target folder and click "Finish" to complete the export. There is an option to compress the files on export which will create a tarball. If we have a look in the target folder, we can see that a new folder has been created which is our exported package. The contents of the package are: Fibonacci.js the Fibonacci.n4js file transpiled to JavaScript. package.json npm package description (name, author, version etc.) which is described in detail below. manifest.n4mf N4JS project dependencies. Fibonacci.map contains debugging information. src folder containing the original Fibonacci.n4js file. Running from the Command Line In the example so far, we exported our npm package to a folder on the desktop called "npm". We create a folder called newinstall located at User/bsmith/Desktop/npm/newinstall, but this can be anywhere outside of the exported project folder. With a Terminal window, cd to our new folder: $ cd /User/Desktop/npm/newinstall and install the package $ npm install ../fibonacci All dependiencies required for running the package will then be downloaded and installed to the "newinstall" folder /User/Desktop/npm/newinstall └─┬ fibonacci@ 0.0.1 └─┬ n4js-node@ 0.3.1 ├── n4js-es5@ 0.3.0 ├─┬ node-fetch@ 1.4.1 │ ├─┬ encoding@ 0.1.12 │ │ └── iconv-lite@ 0.4.13 │ └── is-stream@ 1.0.1 └─┬ systemjs@ 0.19.25 └── when@ 3.7.7 We can now create a new JavaScript file saved as "index.js" that calls the method in our package. In our case, the index.js only needs to contain the following line var fib = require("fibonacci/Fibonacci"); Our example module can now be called if we run the index.js file from the command line with node: $ node index.js [ 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610 ] $ If we wanted to run this node module by itself without the use of the index.js file, we can use the command $ node -r fibonacci/Fibonacci Modifying Package Info In our exported npm project, a package.json file is created from the project manifest which contains information about the package. The minimum information required for a package.json file is: name of the package (all lowercase, one word, no spaces, dashes and underscores allowed). version following semver conventions i.e. 1.0.0. Let’s say we wanted to change the version of our npm package, we can edit this in the manifest.n4mf file in the root of our fibonacci project: ProjectId: fibonacci ProjectType: library ProjectVersion: 1.2.3 VendorId: eu.mycompany VendorName: "MyCompany AG" Output: "src-gen" Sources { source { "src" } } Above, we have made the simple change of our project from version "0.0.1" (the default) to "1.2.3" and the package.json file will contain our new version number the next time we export as npm. Editing the package.json from the Command Line It’s possible to edit the package.json from the command line by using npm init which is normally used to create a new package: $ cd /User/brian.smith/Desktop/npm/fibonacci $ npm init This will load a questionnaire that will cycle through the attributes of your existing package and update the package.json file if new information is provided. Publishing to npm In order to publish to npm, you must have an account on the npm registry. To store your credentials on the client: $ npm login If you do not already have an account, use npm adduser to create a new account. Test that your credentials are stored on the client with *npm config ls. To publish our exported npm package, cd to the package and use the command npm publish $ cd /Users/brian.smith/Desktop/npm/fibonacci $ npm publish We can now check if our package has been published to the registry, in our case, it would be published at
https://www.eclipse.org/n4js/userguides/npm-export-guide.html
CC-MAIN-2021-04
refinedweb
833
67.25
Caching in custom code The Kentico API allows developers to cache data in website code. To cache data, use the CacheHelper.Cache method. This type of caching is applicable to any API result. The same caching API is also available in macros. We recommend caching in code for any frequent API calls that load significant data from the Kentico database (or other external sources). For example, caching is typically a good idea when retrieving content in the code of MVC sites. The following example shows the code behind of a custom user control that: - Loads user data from the Kentico database (with caching) - Displays the data using a BasicRepeater control using System; using System.Data; using CMS.Helpers; using CMS.Membership; public partial class CachedUsers : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { // Ensures loading and caching of data // Uses CacheSettings that cache the data for 10 minutes under the cache key "customdatasource|..." // Automatically checks whether the given key is already in the cache DataSet data = CacheHelper.Cache(cs => LoadUsers(cs), new CacheSettings(10, "customdatasource|" + UserBasicRepeater.ClientID)); // Assigns the data to the BasicRepeater control UserBasicRepeater.DataSource = data; UserBasicRepeater.DataBind(); } // Method that loads the required data // Called only if the data doesn't already exist in the cache private DataSet LoadUsers(CacheSettings cs) { // Loads all user accounts from the database DataSet result = UserInfoProvider.GetUsers(); // Checks whether the data should be cached (based on the CacheSettings) if (cs.Cached) { // Sets a cache dependency for the data // The data is removed from the cache if the objects represented by the dummy key are modified (all user objects in this case) cs.CacheDependency = CacheHelper.GetCacheDependency("cms.user|all"); } return result; } } The Cache method checks if the key specified by the CacheSettings object is in the cache: - If yes, the method directly loads the data from the cache. - If not, the code calls the custom private method (LoadUsers) with the CacheSettings as a parameter. The private method loads the data from the database, sets a cache dependency and saves the key into the cache for the specified number of minutes You can use the caching API when handling data anywhere in your code. Tip If you do not need to access or set the CacheSettings in the method that loads the data, you can use a simplified version of the Cache method: DataSet data = CacheHelper.Cache(LoadUsers, new CacheSettings(10, "customkey")); private DataSet LoadUsers() { ... } CacheSettings When calling the Cache method, you need to specify a CMS.Helpers.CacheSettings object as a parameter. The settings configure the cache key that stores the data. If you set the same cache key name for multiple data loading operations, they share the same cached value. You can work with the following properties of the CacheSettings: Was this page helpful?
https://docs.xperience.io/k12sp/configuring-kentico/configuring-caching/caching-in-custom-code
CC-MAIN-2021-39
refinedweb
463
55.74
[Date Index] [Thread Index] [Author Index] Re: factoring - To: mathgroup at smc.vnet.net - Subject: [mg115092] Re: factoring - From: Patrick Scheibe <pscheibe at trm.uni-leipzig.de> - Date: Thu, 30 Dec 2010 19:04:37 -0500 (EST) Hi, if you want to multiply x and y you have to say so. Either by leaving a space so that it reads x y or by using times *: Factor[x*y - x*z + y^2 - y*z] Cheers Patrick On Thu, 2010-12-30 at 04:09 -0500, r_poetic wrote: > Hello, > an easy question: > > why does Factor[xy-xz+y^2-yz] fail to return (x+y)(y-z), and what > command would do that? > > Thanks! > >
http://forums.wolfram.com/mathgroup/archive/2010/Dec/msg00776.html
CC-MAIN-2018-26
refinedweb
114
73.71
How to plot stream data with python animation (or other method?) Hi, I wanted to ask what would be the best approach to plot live data from the accelometer (at 25Hz)? Should I update the plot with python matplotlib.animation? Other method? And where this update plot should be? Should it within the Callback function to process/parse the gyroscope data? From the example () def data_handler(self, ctx, data): print("%s -> %s" % (self.device.address, parse_value(data))) Any guidelines for the location of realtime plotting and realtime processing of the signal would be very helpful. Thank you, Omri Python plotting libraries - Matplotlib, Seaborn, Plotly, and Bokeh Python analysis libraries - Pandas
https://mbientlab.com/community/discussion/3650/how-to-plot-stream-data-with-python-animation-or-other-method
CC-MAIN-2021-25
refinedweb
110
58.38
class Test(object): def __init__(self, store): assert isinstance(store, dict) self.store = store def __getitem__(self, key): return self.store[key] In [10]: a = Test({1:1,2:2}) In [11]: for i in a: print i --------------------------------------------------------------------------- KeyError Traceback (most recent call last) <ipython-input-11-8c9c9a8afa41> in <module>() ----> 1 for i in a: print i <ipython-input-9-17212ae08f42> in __getitem__(self, key) 4 self.store = store 5 def __getitem__(self, key): ----> 6 return self.store[key] 7 KeyError: 0 def __iter__(self): return dict.__iter__(self.store) You missed a crucial wording in the documentation you found: For sequence types, the accepted keys should be integers and slice objects. [...] [I]f of a value outside the set of indexes for the sequence (after any special interpretation of negative values), IndexErrorshould be raised. Note: forloops expect that an IndexErrorwill be raised for illegal indexes to allow proper detection of the end of the sequence. Bold italic emphasis is mine. If you accept keys, not integers, you don't have a sequence. The Python glossary explains more; see the definition of sequence: An iterable which supports efficient element access using integer indices via the __getitem__()special method and defines a __len__()method that returns the length of the sequence. [...] Note that dictalso supports __getitem__()and __len__(), but is considered a mapping rather than a sequence because the lookups use arbitrary immutable keys rather than integers. So sequences accept integer indices, and that's exactly what for provides when iterating *. When given an object to iterate over, if there are no other means but __getitem__ is available, then a special iterator is constructed that starts at 0 and keeps increasing the counter until IndexError is raised. In pure Python that'd be: def getitem_iterator(obj): getitem = type(obj).__getitem__ # special method, so on the type index = 0 try: while True: yield getitem(obj, index) index += 1 except IndexError: # iteration complete return The actual implementation is in C, see the PySeqIter_Type definition and functions. Implement the __iter__ method instead; it is used when present. Since you wrap a dictionary, you could simply return the iterator for that dictionary: def __iter__(self): return iter(self.store) * Technically speaking, for doesn't provide this. for just uses iter(obj) and it is that call that produces the special iterator when no __iter__ method is available instead.
https://codedump.io/share/7BwHtpbeF5wh/1/python-iter-over-dict-like-object
CC-MAIN-2017-34
refinedweb
393
53.61
I guess it would be hard as there are to many ways to scale out what you run - how many VMs, how many containers, what are you running in them? It would be an interesting benchmark matrix to sort for. It would be interesting just to see how many containers you could start, run lighttpd and each server a static web page? Maybe 1/2 with the page and 1/2 with an application that builds the page? Who knows...to many variables. I think we will just by a system when we can and try our workload on it. Oh, well. So, quad-CPU is faster than dual-CPU? Not surprising. The most common feedback I get is that it seems like too much of a stretch for companies that dont operate at Google scale. That may be true if looking at the system as a whole, but the principles behind the architecture should attract anyones attention - remove trust from the network by authenticating and authorizing every request based on whats known about the user and connecting device at the time of the request. Disclaimer: I work for ScaleFT, a provider of Zero Trust access management solutions. Edit: If folks are interested in hearing more about how other companies can achieve something similar, here's video of a talk I gave at Heavybit a few months ago on the subject:... In addition to simple primary and second factor, you can design policies for MDM-controlled devices only (i.e. designing endpoints that are trusted for remote access), geolocation, and software versions on a per-application basis, for example. I think save for a few use cases (SSH into your datacenter, e.g.), VPNs will be dead before we know it. Also highly recommend for anyone who wants beyondcorp-style access to infrastructure. [1]... The other articles in the series have PDF links, but not the latest one. I'm assuming it will eventually... [1] I ask because, I find it relatively comfortable to do coding on a chromebook over a 'mosh' session over LTE. [0]... The largest notable exceptions seem to be internal file shares, and remote connections to machines that need to be behind a firewall. I guess the overall point I have is that with the data files for both productivity and source code being stored cloud side, that VPNs become less and less necessary for a large % of workers. Here's a somewhat over-simplified TL;DR on Google's approach: Make everything in your company a SaaS app that lives on the Internet via cloud hosting or a proxy. Nice but not always readily do-able. But you know what really happened? I wound up with hard to remember email logins and caught less than a handful of services sharing my email address without my permission. It wasn't worth it. Another user commented that you could just register your own domain and do this; that's great for the average hacker news reader, but not so great for the average Joe so a service like this (if done correctly) would be pretty convenient. Things that jump out right away as bad about this NBox. 1) It just auto generates an email for me. That's going to be a pain in the ass to remember. 2) Wait; how do I login? I literally don't understand how to login to this app short of going to the site and I get auto logged in by the Chrome extension? 3) Why do I even need a Chrome extension to get my email; where is the password protection so I can login from a different device or god forbid my computer crashes? 4) Not every service asking for an email address is a web service. If I sit down for dinner at an Applebees and order a meal a server is going to tell me the appetizer is free if I just provide my email address... and I want that free appetizer minus the side of spam... As someone else noted mailhero.io is basically the same service as this, but it's big flaw is that the real email address is exposed since it's always included in the provided email address. spam.u.later@mailhero.io (ah; real address is later@mailhero.io) Also; many other email services (including GMail can do the samething as mailhero using + addressing and adding rules. For example, I would sign-up for HN using hackernews@marak.com and for Reddit using reddit@marak.com Simple and effective. > bdav24: Hi water42, don't ever trust anyone with your data, governments and big companies get hacked every day. Our angle: we don't ask for any personal information You will be able to route/read all of an individuals inbound mail ? nBox generates for you an email address for each site, for free. - Effortlessly thanks to our browser extensions - Addresses are anonymous and private - Delete the addresses you don't want any more - Be notified according to your preferences on each email I'm looking to share the service. Any feedback is very welcome. Thanks! If I'm willing to give a fake registration email I probably don't care about privacy and this is just for throwaway anyway. I'm not going to give any personal info to a website I don't trust with my email in the first place. I also don't understand how this is not going to be blacklisted like any other anti-spam email service. Maybe I'm not the target for this product bu this seems to bring nothing new in a slightly more annoying way. P.S. here's the link for the extension:... This seems like an interesting idea if they own a whole bunch of different domains, but they don't specify this, and my attempt to sign up for an address failed. (open firefox -> click create my nBox -> click Sign up for a service (i type) -> receive message saying "To create your nBoxAllow the notifications" -> No simple info about how to do this is given, so I give up) I've been a satisfied user of SpamGourmet () for years, and the only (argueable) downside I've seen is how upset customer-service representatives get upset while reading my address. How does your service compare? I'd pay a lot of money for an actual open linux phone, but nobody wants to make one. Do consumers really care about monopolies? I believe they don't and I think nowadays Android's reputation is not very good. People have a whole bunch of useless outdated android devices laying around, have some horrible experience with them and could appreciate an ungoogled/unappled linux-like distribution with more control for the user and updates. Device trees aren't used on most mobile hardware. Mobile ARM is like the PS4 .. Intel arch chip, but totally not PC compatible. I feel like Microsoft needs to give out the keys to their phones. Their platform is standardized enough devs could buy up old hardware and make a real oss mobile operating system without having to build totally different kernels per device. Sailfish still seems to be around for Sony's Open Devices,... I think this had a lot to do with the cancelling of Unity 8 as well. Thinking back, I'm impressed with how far they got. If they had collaborated where it didn't help to compete, then I think they would've had a better chance of entering the market. I hope that this experience doesn't steel them against working on ambitious things entirely in the future. Correct me if I'm wrong but it stores the data on Google's servers in which case you're actually sharing it with a third party. It wraps your database in a worse database with a worse query language. It makes simple queries into kilobyte-long GET query strings that get morasses of XML-namespace nonsense as a response, or more likely, a server timeout. While the W3C was screwing around with SPARQL, everyone else came up with JSON-based REST APIs. They work well. Not even the core W3C people use SPARQL anymore. Some potentially HN-interesting links: pyQuil, a Python library for quantum programming: pyQuil on RTD: Grove, a collection of quantum algorithms in Python: How hard of a problem can you solve with 8 qubits? For example, if you're implementing shor's algorithm -- it looks (very naively) from the wikipedia article that to efficiently factor a number of size N, you need about log(2N) qubits. So with 8 qubits you could factor the number 32 efficiently (is that calculation right?). Can you do things more difficult than 'factor 32' with 8 qubits? (not intended as an attack at all, i genuinely just do not understand how to reason about the power of quantum computing devices with X qubits) Now it's true that classical computers used to take up whole buildings. Living people remember this. And progress is supposed to be getting faster and faster. But given the particularly arcane constraints... how long if ever before this kind of technology can be a part of the daily lives of most Teran Citizens? Will it ever be possible for us to have it at home? Or will we always have to send out requests to more centralised machines that will then send us back answers? [0] I understand if you don't want to make a public statement about such divisive (and perhaps, more importantly, ill-defined) matters in this context. I'm just curious about the way that the people who are actually building these things tend to view them... I wonder if anyone could link to something that makes the stuff clear. "QBism is NOT NEW but at least people are reviving what Bohr thought. QM just involves expectations of observables and the Born rule is just "metaphysical fluff." The confusions are all about false counterfactuals." So, I wiped it, hoping to give them a blank slate to install whatever they need. I wish I hadn't - I could find absolutely nothing to install on the device from the Apple Store. Everything requires new iOS version (which is fine, of course), but I also can't install old versions of software on the iPad. Basically, I screwed myself by wiping the device because now the default, pre-installed apps are the only apps that will ever run on this thing again. Also, they don't show versions lower than 2.3 on this graph, but I think it's fair to assume that the user share for 2.1 is far lower than 2.3's 0.8%. In short, this isn't a big problem at all. This (planned obsolescence) is what you get when you buy closed hardware running proprietary software. My last company (Zip Phone, YC S14) was a direct result of the fantastic work that the Opus team has done in the last few years. I remember researching audio codecs around the end of 2013 and stumbling across Opus, and being amazed at what it could do at extremely low bitrates, and everything was available completely for free! Spent my fair share of time on the Opus IRC channel on freenode (shout out to derf, gmaxwell, jmspeex, mark4o) bugging them with basic queries, and getting excellent support. Opus rocks. It's just amazing. You can throw anything at it. No matter the sample rate and the bitrate and the output has good quality without any of that narrowband, wideband, ultra-wideband speex nonsense. All that is missing is an "hybrid" mode just like wavpack that produces combined output of roughly the same size as flac. I reasoned the additional lossy encoding of Bluetooth would be too much with lower bitrates, but now I'm not so sure... It looks like many free extensions either have malware in them from the start or get sold to malware companies later on, who then deploy the malware via updates:... But how's the accuracy here? Cause when I used previous plugins for this functionality, I often found they'd return gibberish if the text was even slightly ambiguous looking in image form. How does it compare to the other plugins doing the same thing here? It is beyond irresponsible for mozilla to do nothing to prevent this malware from being recommended on their platform. ...here it seem like any other modern language, until you see that Julia has something that many other languages lack: true macros (true metaprogramming.) A big feature. And multiple dispatch on all functions! (a very nice feature that puts it above many other languages in use.) You can even program Julia in s-expressions if you feel like it. (Some argue that Julia should be considered a Lisp dialect.) Compared to the other languages with Python-like, C-like or Algol-like syntax, Julia stands out from them as a more powerful alternative. (If you need more power and flexibility than Julia with good processing speed, i think only Common Lisp will clearly provide it.) A very recommendable language, especially now with this initiative for giving more "enterprise-like" support, and worth looking in depth, if you are also considering moving to Go and Rust. Digging a bit deeper, it appears they use it to deliver specifications and example code to vendors? "[T]ransferring the specifications to industry using this legacy system required three different types of documentation: first, the specifications were written both in variable-based pseudocode and in English descriptive pseudocode. But this approach left gaps in interpretation, leading to possible confusion or disagreement. So programmers also created state charts to fill these gaps and eliminate the potential for misinterpretation.",... I do wonder though: have Julia been able to raise this much money thanks to awesome traction or the reputation of the team? Seed round 2016 average is around $1m per Crunchbase:... Cooley has seed round pre-moneys at $4-6m. (Thus, a $5m check is pretty much out of question at that stage.) So, this is much more like a Series A? I wonder if they were advised to call it seed funding to leave open the possibility of a "big" Series A, due to the level of interest. It does seem like SV VCs are making somewhat large bets on F/OSS-based companies, so maybe that is wise. I also realize a lot of this is semantics. That being said, I applaud getting good funding for a project that's actually more than beyond MVP, it has happy users/customers and it serves a purpose. That's not all that common these days. Good luck, guys. I'd rather deal with Cython apache license than deal with this GPL stuff for commercial use. 1.... 2. From my admittedly limited experience with Jupyter, it is already an interactive coding and visualization tool which can be exported to HTML. Can you not include Plotly plots in vanilla Jupyter? The kyso homepage says that you beautifully render the notebooks? Given that they're already html, does that mean custom style sheets? Something more? Or is the main value add just a wrapper over git to make versioning and sharing easier? Thanks. Upon reading this, I decided to implement a renderer of Github-hosted files (as their renderer is painfully slow and doesn't work on phones) to further simplify notebook distribution. I haven't looked into Bokeh and other javascripty extensions, but it might be solvable as well. So thanks for the inspiration! Having the expandable/collapsible code is nifty for sure, but that's the main feature I noticed. If I can offer some perhaps unsolicited feedback, I'd like for you guys to make it more clear (explitcly clear) what exactly you are offering. Your main web page just looks like a sales pitch for jupyter notebooks in general. This looks really good though! Good work! Adoption hasn't been great, so it's probably going to stay free for a while. Enjoy! my email is eoin [at] kyso.io Will be releasing a node v6.0 compatible version in the next 2 days, and an node independent version very soon!! The feedback was fantastic, and today I'm finally launching the searchable database. Browse through a growing feed of newsletters and support influencers by advertising in their newsletters. Get your product in front of their thousands of targeted and engaged subscribers. Play around with it and let me know what you think. I am curious to know the monetization strategy? Your site reads "won't charge you anything for it nor will we take a percentage of your sponsorship deals", so what is your angle? [0] - build your own curated newsletter[1] Some searches, like 'deep learning', 'venture capital', and 'NLP' don't display any results. Not sure if this is a problem with the search functionality or with your database (probably the former). Some searches display a lack of context - for example, searching 'AI' returns a top result of "Air travelers" because the string "ai" is in "air". You might consider checking out a product like Algolia to scale your search. Awesome concept though! Excited to see it grow Also of interest are sorting networks which can be used to perform branchless sort on parallel hardware. I haven't been following this closely, but the last time I checked scatter-gather loads were really really slow. Chapter 3.3 from page 27 (PDF page 43) on of this be interesting:... Also contains a survey of some other related data structures and algorithms. [1] (Full disclosure: I work for Advanced Telematic, the creators and maintainers of the meta-updater Yocto layer.) On the other hand, they recently reduced the level of detail in the transparency report. There is also the fact that they are Swiss, and their privacy laws were severely weakened by a recent referendum. In particular, the Swiss government can now monitor all cross border traffic without a warrant. ProtonMail fought the referendum, but hasn't updated this "Why Switzerland?" page: They also haven't moved to a more appropriate legal jurisdiction. [edit: clarify links] - TunnelBear is a bit more expensive (4.99$/mo, paid annually vs 4$/mo). - TunnelBear supports up to 5 connections per account vs 2. I use TunnelBear regularly for my browser and phone. Both works great. My subscription is going to expire soon and I'll be open to try other VPN providers, not that there is anything wrong with TunnelBear. Any recommendations? This site [2] has feature comparisons but experience using VPN services is another story. [1][2] Worth mentioning their VPN recommendations: algo by trailofbits and freedome. There is another paid service they recommend but I can't recall the name.... I run free privacy/security classes for journalists, and some of them have said that their sources can't use paid VPNs because they're afraid of the purchase showing up on their credit card statement. TOR is great, but doesn't yet work for things like video chat (yes i tell them not to use Skype...) This was to their us-07 server in SF. The reason is using it on mobile unlocked devices, rather than desktop. What they changed in the model? Is it trustless? I recommends the shadowsocks protocol[2] which I used in the censored network, which is hard to be detected and decrypted. [1] [2] Ian, our mentor, went through every project and asked questions that made us make great progress. In our company's case, we went from Idea to MVP, then to Product and Launch in 10 weeks (thanks Ian!). Also, Office Hours are great because it gives you the accountability needed to push forward every week. One thing I noticed is how sharp in timing the Office Hours were. They were 1 hour length mostly all of the times. Same with Startup School lecture videos which consistently were around 50min long. Is this sharp control over timing something in American culture? As an European I find surprising how you guys make things last the exact amount of time you want even when you don't control the input (like in office hours where 10 startups have to show their progress) [^1] -> A Glassdoor tailored to Software Engineers. This is article is pretty much the same experience I had. Albeit we launched June 12th (pretty much, the last day of Startup School). We built a super rough MVP during throughout the duration of Startup School. Here's our product if anyone's interested: It's basically a search engine meets your news feed. We're specifically targeting financial advising, while keeping an eye on enterprise search. Launching it so late, had it's draw backs, but also IMO was the right for us. We got to see everyone else's progress, but we also did follow much of the advise: interviewing customers, launching pre-registration, how to structure a company / team, etc. We also got to see other teams mistakes, and successes. I think that's what I found super valuable, not so much where people were from, but the various stages of their startups! We had people come in with only ideas, and watched them bring them to launch. Some people grew their company 10x. It was fun and interesting to watch the process. We also had several people interview for the Summer YC class, while in startup school. I've previously interviewed, so I knew what it was like - but others (and I to some extent) found it valuable to ask questions and understand what they look for. Some companies in our group, I'm sure, will be looking for funding. Highly recommend. Older fathers are more likely to have established careers, establishing higher socioeconomic status, affording a lifestyle that engenders "geekiness". First, the article throws out some very reasonable sounding things, like older dads are more established and stable parents. This seems totally legit. Then they start talking of a 'geek gene' that gets passed down by dads as they get older? That seems ridiculous to me. We don't even know how general intelligence works on a genetic level. Overall, I feel like we put way too much stock in genetics over how children are raised. The world children live in today (screens, different types of processed food, flashy movies and cartoons) is so different than hundreds or thousands of years ago. Early childhood years are also hugely important for brain development and social skills yet we give little kids screens to keep them quiet, hooking them early. Just seems like any excuse to not involve parenting is in vogue now.... I know N=1... but when you're debating with your friends whether or not this () can be classified as a sandwich or if it warrants a new nomenclature entirely and realizing that these are the people you are associating with it's difficult to not look for answers. Example:... I guess the article here also says it: > Repeated studies have shown that older sperm is more prone to genetic errors and children are more likely to develop autism and schizophrenia. - Father's who start a family later vs father's who start a family early but have additional children later. - Children who are more likely to have multiple older siblings. My first son is a soldier. The 2nd and 3rd are software developers and musicians. Works for me. The really key environmental factors that led me to being a geek can firmly be put down to: My Mother taking me to the library every week; having plenty of books at home and school; and good quality teaching at school. I can't imagine that having an older/wealthier father would have that much additional impact on top of these factors. I was 36 when I got my oldest and 39 when i got my second son. Just anecdotal but so does this seems to be. My favorites: * Cortex A-5 security/boot processor * High throughput I/O (I always thought QPI was a great improvement over HT, seems like they've gone one further) * 290GB/s memory controller (excellent for algorithms that need to span many many GB and can't fit into a GPU) Clever bit, comparing against Bulldozer in places where they can't beat Xeon. All in all, looks like the competition has truly heated up. (If you haven't heard of them: in the 1800s London, one happy customer would get their ice cream, lick the glass clean and return it to the vendor, who would refill it and give it to the next customer. Perhaps the best way to spread tuberculosis, which the Penny lick did very well on until it was banned in 1899.) Now days, of course, London's streets are all choked with parked cars, creating a less than welcoming environment for cyclists and pedestrians. And horses.... [1] The problem with the human body is that is extremely hard to share information. We can absorb gigabytes of information through our eyes and other sensory organs, but we can only emit a few bits of information. When we communicate, we are essentially trying to share our thoughts through a very narrow straw that limits the flow of information. The result of this bottleneck is language. Language requires lots of context, common understanding, and being able to view the world from the other person's perspective to make sense of the tiny amount of information that one person is sharing with another Unfortunately, this leads to nonsensical literal translations like "ONE-QUANTITY-ABOVE-LIFE-TOWARDS" for "banana," but it's still a neat/interesting concept. [1] [2] The core claim of the title, that somehow non-decomposable sign language goes counter to something doesn't match anything I've ever heard in linguistics. Many signs in ASL are fairly representational as well. Also note that ABSL is only around 100 years old, and see... Later on, writing developed into either using meaningless signs to represent sounds, and stringing those together (as in the case of what you're reading now), or using signs to represent fragments of meaning which are combined to form complete concepts (at least, that's how i understand Han ideograms). Rather like the business with the slide whistle. I don't follow: many ASL signs are completely distinct. There are some incorporations, like classifier CL:3 (vehicle) includes a modified 'V' sign. What exactly is the claim: that a language cannot have a 1:1 mapping of simple representation and meaning i.e. is unambiguous and context-free? You have HVAC. Refrigeration. Your washer. Your dryer. And your dishwasher. Each one of those things is inherently a form of energy storage, because you don't need any of those to start up or stop at the same milisecond where you flip the switch. What's left? Lighting.Entertainment. Communication. All of these you do expect to consumer power on demand without any time slack. But the major loads I listed above can defer to the minor loads that demand that kind of priority. So with a little TCP/IP to coordinate activities around your house, your need for power storage declines considerably. Right. That's the policy issue. Government subsidies for batteries would be a huge giveaway to battery manufacturers. California [1] and Sweden [2] have already offered subsidies. That may not be a good thing. [1]...[2]... Users smart enough to change their electricity consumption eg night rates - they need more information to improve even more. Smart appliances will soon follow. Let's assume an extraterrestrial colony being established on the Moon, or Mars, or another planet. Do you really want to spend time, effort and resources on building a traditional power grid in a hostile, unstable environment (or a planet whose natural terrain you want to affect as little as possible), or just provide each facility its own independent power supply? So storage still makes a lot of sense, because if I want to do anything about renewable energy, I unfortunately have to do it myself. Putting some sort of solar system on my house will cost ME money; either outright, leased, or through a home-improvement loan plan. Which is sad, but it is what it is (and kudos to what the government HAS done to bring down these costs). Since it's all on me to reduce my carbon footprint, that energy produced must be stored, and these home battery systems (Tesla or not, there's about 2 other choices though, it seems in my research with companies locally) are not all that expensive considering the cost and installation of a solar array, especially Tesla's pricier solar roof option. And that's giving you complete independence from the electric company. I talked to a rep about a solar solution and he understood my concern for wanting to go "net zero" since it feels like locally, the power company is devaluing what you put back into the sub-system more and more. He explained that more and more people exploring their alternative energy solutions are interested in these battery/storage systems for the exact same reasons. With a minimum investment of about 30k or 40k for a whole-home solution, a lot of people don't trust that their power fed back into the grid won't be devalued over time (at least a rate higher than the natural decay of battery technology). I'm sure some people have home batteries - but isn't this a rather niche thing?I'm sure some people have home batteries - but isn't this a rather niche thing? Now, new consumer products like Teslas grid-connected home battery [...] are becoming more popular I mean, I'm sure it's nice for people in the boonies where mains power is unreliable. Or if you're a survivalist/hippy that wants to be off-the-grid/completely-renewable and doesn't mind paying a big premium for it. But what would a home battery offer me that I can't get from the grid already? The good supplier doesn't want to spend their energy in reviewing vast quantity of available consumers. At the same time good consumers don't want to go after every available suppliers. There is also good likelyhood that bad suppliers as well as bad consumers are trying to masquerade as good ones. This is the same setting as dating website or Amazon product website. The solution that humans seem to prefer is somehow build the trust model. In case of Amazon product website, you look at reviews and ratings by others. In case of dating website you look at characteristics that you have learned to trust such as what's in the photos, what person is doing for living, what degrees do they have and so on. In case of jobs, companies look at who is referring to who or if you are already at other top company (which is the reason why most people get jobs because of referrals, not by posting resumes). The trust model is developed individually and can massively be different from person to person. I'm in fact more certain that virtually all companies ignore resumes posted on their website and most interviews happen solely because recruiter actively identified candidate from other similar company/university or referrals. However this may be more true in skilled jobs. "At the same time, 46 percent of U.S. employers face talent shortages and have issues filling open positions with the right candidate." "Talk of a skills gap in the labor market is 'an incredible cop out'":... Doubly so for technology:...... Kudos to google, hopefully this helps majority of America find jerbs. most hackernews readers think this is stupid because our industry has different problems. Our jobs problem is:- "employers often lie because they want to pay less than a typical employee is worth" but also at the same time: - "applicants often lie about their experiences and such" So there are 4 quadrants: honest/dishonest applicants and honest/dishonest employers and where they overlap is small. Niche job boards FTW Honestly the wording makes me think it just wasn't ready in time for the announcement, although I'm not sure how they'd have up-to-date data. It's one of the few applications of AI over street view data that doesn't utterly creep me out and actually seems quite useful. Isn't that being "nationalistic"? Can't you be universal? Come on, Google! - Not enough jobs. LinkedIn seems to have more jobs posted for the things I searched for. While many recruiters still post to Indeed, Glassdoor, ZipRecruiter etc... The beef of postings, from my experience, is found on LinkedIn.- Not easy to apply. LinkedIn has the ability to more easily apply. Yes, one could argue this is a bad thing (since companies get spammed with candidates) but I think with AI a lot of bad candidates could get filtered out more easily.- No social network. Since so many professionals use LinkedIn, it's easier to find people you know who work at a company you are applying for. I think this is a long, long way to beating LinkedIn for job search. What's interesting is that Imgur managed to pivot into a full-blown community site, with threads, communities and voting. I don't think they're very dependent on Reddit anymore. From a few cursory glances, they have a relatively large amount of participation, and it's not unusual that an image shared on Reddit has a huge comment section on Imgur, with Imgur users not getting the context (that of course is over on Reddit). Reddit is doing a smart thing here by hosting the images themselves. They're now at a scale where hosting images is feasible. Being dependent of Imgur (and Imgur not being dependent of Reddit) is a bad thing for Reddit, since most of the popular content on Reddit is images, and so Reddit gives away a huge amount of traffic to Imgur (which is basically a Reddit competitor now), trading that for the expenses of running an image hosting site. I guess Reddit realized it wasn't worth it. Ultimately I think Imgur is destined to the same fate as TwitPic. So when a direct Imgur image link is opened in its own tab, Imgur can redirect to a webpage if it feels like it.In Firefox, by changing about:config value "image.http.accept" to it's possible to avoid this behavior and it will load exactly what you asked for.it's possible to avoid this behavior and it will load exactly what you asked for. */* I never quite understood why do browsers let a webserver know the context you're loading the requested resource in, for privacy's sake. As soon as Imgur took funding the die was cast. They have to show more ads, get more traffic to their pages, and drive engagement. Imgur was at its best when it was simple to upload and link. Those days are gone. "Oh, we built many of our communities on sharing Copyright protected content by way of our weasel-cousin IMGUR, so let's go ahead and bring all that DMCA/Safe Harbors liability under our umbrella - you're joking, right?" At least the Conde Nast lawyers will come out okay in this. Also: Is it new that Reddit allows animated ads? I always had the feeling Reddit was a place where I could peacfully interact with others. Lately I am afraid it turns into a page full of animated, colorful distractions that make me feel uneasy. I have friends who visit imgur regularly, and it's what I would consider a meme platform. Although, I personally use it to just share photos. Reddit's natively hosted app, is likely why they need increased investment. Honestly, I see why Reddit wanted their own natively hosted images, but I can't see how this will increase their revenue or help them succeed. Because it's very easy for the 'host' company to take your idea, undercut it and 'force' you out of business. Or to make changes that completely kill your product or service/screw up your marketing strategy. It's a risk you have to take with a business so dependent on another particular company or site. frustrating overlays, slow, intrusive self promotion ... even worse on mobile. anyone remember the annoying cat paw? Maybe because they identified how easy it would be for them to get nuked by Reddit?... So long as you have users, you have bandwidth, you have revenue. The problem is now storage. As users and revenue may decline the bandwidth bill declines too... but the storage bill always increases and never declines. This is the real problem with image hosting, keeping alive old images and storage costs always growing regardless of current usage and revenue. Imgur seems to want show it's loading gif before the actual gif. Sometimes I can be waiting at least 10 seconds for the gif to actually begin loading. No thanks. I am a big Hearthstone fan so I enjoy watching the competitions sometimes. It's been consistently the highest viewed Blizzard game on Twitch for a long time now so it's important to bring up in this discussion. PlayHearthstone[1] is the official channel for Hearthstone events so you would think it would be representative of how Blizzard wants to operate in the competitive space. Whether it is due to technology, lack of oversight, or simply not caring, Twitch chat is notoriously atrocious; rampant with trolling, vitriol, spamming, and terrible behavior. To make things worse, there's absolutely no consistency with how events are moderated, if they are at all. For one event, members are banned for simply asking questions, or providing constructive criticism to the casting of the event with mods creating trigger phrases or words that lead to users getting banned immediately without knowing why. For other events, the chatters are allowed to use all manner of racial, sexual, demeaning, and outright threatening and horrific text towards the casters, the events, and the participants. It's disgusting to watch, completely unprofessional, and something that has been brought up multiple times by the community with no concrete resolution. Either Blizzard finds it acceptable, Twitch finds it acceptable, or they haven't figured out how to do well in moderating live chats with thousands of people. Given their track record, I'm hesitant to be excited about the exclusivity. [1] - I am a big Counter-Strike: Global Offensive fan. I play a bit, but I vastly prefer to watch professional play. I got into the game a year ago or so, and that seemed to be a glorious time to spectate the game. Streams were virtually exclusively on Twitch, and every weekend it felt like there was a ($100k+ prize pool) tournament, and every week there were high quality pick-up/practice games between professional players being streamed. Of course (who can blame them?), YouTube Gaming wanted a piece of this pie. They cut some exclusive deals with a couple online leagues and tournament organizer, bringing a sizable chunk of the content with them to YouTube Gaming. However, the users DID NOT follow (and UX over on YT can be almost entirely blamed), and the ensuing fracturing of the community has seen CS:GO drop from consistently top 5 in Twitch games to regularly outside the top 10. The thing is, though, the missing viewership mostly didn't migrate to YouTube, instead just deciding to not watch at all. The appeal behind Twitch and CS:GO was that there was basically non-stop _very high_ quality content being streamed, and you didn't need to put in a single ounce of effort to find it. YouTube very much does not have that same user flow down, at all. And now (even though the position isn't particularly degraded), owing to the relative difficulty of finding tournaments on YouTube OR Twitch, I find myself watching a lot less. So goes the general vibe of the community. Sure, woe is us, 2 whole sources? But consider this: YouTube's discoverability is horrible, its UI plagued with reruns emblazoned with a red "LIVE NOW" that screams for your attention at first and later leaves you unwilling to trust any visuals on the site; Twitch, on the other hand, with its inability to pause / rewind / stream a smooth 1080p60 (hell, even 720p60 stutters 10x as much as YouTube's) leaves you comparatively upset about video quality when you watch there. So I guess my point is that Twitch clearly loses in the tech department to YouTube, but its benefits (more entertaining chat, better discoverability and UI/UX) are more than enough to make you a dedicated user when exclusivity is part of that package. It'll be interesting to see which side can overcome its issues to gain the advantage. Note: edits for readability have occurred over the 5 minutes following the posting of this comment Warning, slow links:[1]...[2]...[3]...[4][5]
http://hackerbra.in/news/1498006921
CC-MAIN-2018-51
refinedweb
6,887
62.58
29 August 2011 10:52 [Source: ICIS news] LONDON (ICIS)--Irene was downgraded to a post-tropical storm on Sunday night as it weakened over the US/Canada border, the National Hurricane Center said in its final advisory on the weather system. A tropical storm warning for the east coast of the ?xml:namespace> The Miami-headquartered weather centre issued its last advisory at 23:00 local time on Sunday (03:00 GMT Monday). At its height, Irene was a Category Three hurricane carrying 115mph winds, but it weakened as it approached the The storm hit Irene had caused 10 deaths along the
http://www.icis.com/Articles/2011/08/29/9488538/irene-begins-to-fade-out-over-uscanada-border-nhc.html
CC-MAIN-2014-41
refinedweb
103
55.78
A simple and fast read-only embedded key-value database Project description ConstDB is a very simple and fast read-only embedded key-value database. Keys consist of 64-bit integers or strings and values consist of arbitrary byte strings. Sample import constdb with constdb.create('db_name') as db: db.add(-2, b'7564') db.add(3, b'23') db.add(-1, b'66') with constdb.read('db_name') as db: assert db.get(-2) == b'7564' assert db.get(-1) == b'66' assert db.get(3) == b'23' Documenation ConstDB contains only two functions: create and read. create(filename) allows you to create a new ConstDB database. It takes a filename and returns a ConstDBWriter. A ConstDBWriter has two methods: - add(key, value): Adds a key-value pair to the database. The key must be a 64 bit integer or a string. The value must be a byte string. - close(): Finalize and close the database. read(filename) allows you to read an existing ConstDB database. It takes a filename and returns a ConstDBReader. A ConstDBReader has two methods: - get(key): Get a value from the database. The key must be a 64 bit integer or a string. Returns the value if the key is in the database. Returns None if the key is not found. - close(): Finalize and close the database. Requirements The only requirement for ConstDB is Python 3. 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/constdb/3.2.0/
CC-MAIN-2018-30
refinedweb
253
63.25
It's way past my bedtime, but any use of numpy/numarray that involves two nested for loops to step over each element is the wrong solution :) You need to figure out how to get rid of that inner for. That is what is slowing you down. Compare these two ways to multiply a 1000 element array by 100. The first one steps over the elements one at a time, multiplying each one in turn. The second multiplies the entire array at once. Which boils down to looping over 2000 rows, instead of 4,000,000 elements :) If I was more awake, I'd try to figure out how you can do that. But this should give you an idea of what arrays are useful for, and how to approach the problem. >>> def time_loop(num): ... a = arange(1000) ... b = zeros(1000) ... t = time.clock() ... for i in range(num): ... for i in range(len(a)): ... b[i] = a[i] * 100.0 ... print time.clock() - t ... >>> time_loop(100000) 59.7517100637 >>> def time_numeric(num): ... a = arange(1000) ... b = zeros(1000) ... t = time.clock() ... for i in range(num): ... b = a*100 ... print time.clock() - t ... >>> time_numeric(100000) 1.44588097091 On 10/13/05, Pujo Aji <ajikoe at gmail.com> wrote: > > I have code like this: > def f(x,y): > return math.sin(x*y) + 8 * x > > def main(): > n = 2000 > a = zeros((n,n), Float) > xcoor = arange(0,1,1/float(n)) > ycoor = arange(0,1,1/float(n)) > > for i in range(n): > for j in range(n): > a[i,j] = f(xcoor[i], ycoor[j]) # f(x,y) = sin(x*y) + 8*x > > print a[1000,1000] > pass > > if __name__ == '__main__': > main() > > I try to make this run faster even using psyco, but I found this still > slow, I tried using java and found it around 13x faster... > > public class s1 { > > /** > * @param args > */ > public static int n = 2000; > public static double[][] a = new double[n][n]; > public static double [] xcoor = new double[n]; > public static double [] ycoor = new double[n]; > > public static void main(String[] args) { > // TODO Auto-generated method stub > for (int i=0; i<n; i++){ > xcoor[i] = i/(float)(n); > ycoor[i] = i/(float)n; > } > > for (int i=0; i<n; i++){ > for (int j=0; j<n; j++){ > a[i][j] = f(xcoor[i], ycoor[j]); > } > } > > System.out.println(a[1000][1000]); > > } > public static double f(double x, double y){ > return Math.sin(x*y) + 8*x; > } > > } > > Can anybody help? > > pujo > > > _______________________________________________ > Tutor maillist - Tutor at python.org > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL:
https://mail.python.org/pipermail/tutor/2005-October/042220.html
CC-MAIN-2017-04
refinedweb
430
79.8
Closed Bug 669117 Opened 9 years ago Closed 9 years ago Necko memory cache needs an about:memory reporter Categories (Core :: Networking: Cache, defect) Tracking () mozilla8 People (Reporter: khuey, Assigned: njn) References (Blocks 1 open bug) Details (Whiteboard: [MemShrink:P2][inbound]) Attachments (1 file, 3 obsolete files) If is accurate this should be pretty easy. Whiteboard: [MemShrink] If there's anything else in Necko that uses reasonable amount of memory (eg. more than 1MB) it would be good to report that too. Here's a really hacky patch that I'm dumping here because it's 5pm and I'm stopping for the day. I've never before set foot in netwerk/, I fully admit to having no idea what I'm doing. How big do we expect the memory device to get? It started off tiny, after loading a few pages it's up to ~500KB. > How big do we expect the memory device to get? It depends on user preferences. By default, the size is computed by nsCacheProfilePrefObserver::MemoryCacheCapacity and maxes out at 30MB if the comments reflect reality. (In reply to comment #3) > > How big do we expect the memory device to get? > > It depends on user preferences. By default, the size is computed by > nsCacheProfilePrefObserver::MemoryCacheCapacity and maxes out at 30MB if the > comments reflect reality. Ok, 30MB is definitely worth tracking. Are there any other big memory users under network? Not that I can think of offhand... There's a network-related one that's really DOM: XHR. The data retrieved by XHR is stored in memory in many cases; we should add an XHR memory reporter. Whiteboard: [MemShrink] → [MemShrink:P2] Assignee: nobody → nnethercote Michal/Bjarne: can one of you take a look at the patch here? And please note that the patch is obviously crap and needs to be cleaned up, but confirmation that I'm measuring the right thing would be welcome :) (In reply to comment #6) > Michal/Bjarne: can one of you take a look at the patch here? |mTotalSize| is probably the correct value to use, yes. It is also the value reported in about:cache as "Storage in Use". The "Inactive storage" is storage used by entries currently not used on any page (iirc). A cleaner patch. Details: - I'm reporting "active" and "inactive" memory in the memory device. The former is mTotalSize - mInactivesize; the latter is mInactiveSize. The weird thing is that "active" was always zero on the small amount of testing I did. And that matched about:cache, which said: - Storage in use: 411 KiB - Inactive storage: 411 KiB So I don't understand what "in use" and "inactive" mean here. - The descriptions of the reporters should be more specific, but I don't really understand enough to make them so, due to the above. Attachment #543722 - Attachment is obsolete: true mInactiveSize is the sum of bytes allocated by entries that are currently not held by any http channel. An "active" entry means an entry being currently worked with which is very short, usually just the time from the load start to the load end, while a channel pushes or reads data to or from the cache entry, sets/reads headers. So, mTotalSize - mInactiveSize will mostly give you 0. IMO there is no reason to report bytes allocated by only the active entries, its not interesting. Comment on attachment 544399 [details] [diff] [review] patch, v2 (Very nicely formulated, Honza.) I'm not really the right person to review this since the changes related to the cache are trivial. Comment #10 confirms that you seem to be reporting relevant things. I'd suggest that someone familiar with the memory-reporting mechanism does the review. Just the one reporter now: network-memory-cache-device. It's a mouthful but about:cache uses "memory cache device" so it seems reasonable. Attachment #544399 - Attachment is obsolete: true Attachment #545595 - Flags: review?(khuey) Comment on attachment 545595 [details] [diff] [review] patch, v3 I'm going to rope in a Necko peer to take a look at this too. In particular: @@ -1100,16 +1110,18 @@ nsCacheService::Shutdown() // Make sure to wait for any pending cache-operations before // proceeding with destructive actions (bug #620660) (void) SyncWithCacheIOThread(); // deallocate memory and disk caches delete mMemoryDevice; mMemoryDevice = nsnull; + NS_UnregisterMemoryReporter(MemoryDeviceReporter); + MemoryDeviceReporter = nsnull; #ifdef NECKO_DISK_CACHE delete mDiskDevice; mDiskDevice = nsnull; #endif // !NECKO_DISK_CACHE #ifdef NECKO_OFFLINE_CACHE NS_IF_RELEASE(mOfflineDevice); makes me a bit uncomfortable (we should probably unregister the reporter before deleting the device.) Also, perhaps we should report as network/memory-cache-device in case we add other Necko reporters in the future? Attachment #545595 - Flags: review?(khuey) Attachment #545595 - Flags: review?(jduell.mcbugs) Attachment #545595 - Flags: review+ > (we should probably unregister the reporter > before deleting the device.) Good idea, I'll change. > Also, perhaps we should report as network/memory-cache-device in case we add > other Necko reporters in the future? I had that originally, but it looks silly and is unnecessarily verbose having an entry like this: ├───11,270,674 B (03.61%) -- network │ └──11,270,674 B (03.61%) -- memory-cache-device If we ever add any other network things, we can tree-ify it easily. (I've contemplated collapsing storage/sqlite/* into storage-sqlite/* for this reason, but never got around to it.) Comment on attachment 545595 [details] [diff] [review] patch, v3 Review of attachment 545595 [details] [diff] [review]: ----------------------------------------------------------------- Looks good. ::: netwerk/cache/nsCacheService.cpp @@ +1010,5 @@ > + KIND_HEAP, > + UNITS_BYTES, > + nsCacheService::MemoryDeviceSize, > + "Memory used by the network memory cache device.") > + Any reason we can't just refer to it as "network memory cache", i.e. does "device" add anything, really? @@ +1120,1 @@ > +1 on khuey's suggestion to move above deletion of mMemoryDevice. Attachment #545595 - Flags: review?(jduell.mcbugs) → review+ To be clear, I'd prefer that the listing show up in about:memory as "network-memory-cache" rather than "network-memory-cache-device" I was just trying to match the terminology in about:cache, but "network-memory-cache" is fine. And I'll remove "device" from the description, too. Thanks for the quick review! I'm just glad no-one suggested a name beginning with "netwerk" :P I got lots of xpcshell failures: "MemoryReporter_NetworkMemoryCache not thread-safe". This patch makes it thread-safe. This required some minor infrastructure changes in nsIMemoryReporter.idl. Attachment #545595 - Attachment is obsolete: true Attachment #546069 - Flags: review?(khuey) Comment on attachment 546069 [details] [diff] [review] patch, v4 Review of attachment 546069 [details] [diff] [review]: ----------------------------------------------------------------- ::: netwerk/cache/nsCacheService.cpp @@ +1935,5 @@ > > +PRInt64 > +nsCacheService::MemoryDeviceSize() > +{ > + return GlobalInstance()->mMemoryDevice->TotalSize(); Can mMemoryDevice be null? Do other callsites nullcheck? (In reply to comment #20) > > Can mMemoryDevice be null? It can -- allocation can fail in CreateMemoryDevice(). Good catch, I'll add a null check. Comment on attachment 546069 [details] [diff] [review] patch, v4 r=me with the null guard if necessary Attachment #546069 - Flags: review?(khuey) → review+ Whiteboard: [MemShrink:P2] → [MemShrink:P2][inbound] Status: NEW → RESOLVED Closed: 9 years ago Resolution: --- → FIXED Target Milestone: --- → mozilla8. (In reply to Jason Duell (:jduell) from comment #25) >. The heart of the reporter is this: size_t nsMemoryCacheDevice::TotalSize() { return mTotalSize; } so it should be working. I'll take a look on Monday. Oh wait, if you're viewing about:memory the network-memory-cache might be aggregated in one of the "N omitted" branches. Try about:memory?verbose which turns off the aggregation of small reports. Ah, right--I see it with ?verbose. Thanks!
https://bugzilla.mozilla.org/show_bug.cgi?id=669117
CC-MAIN-2020-45
refinedweb
1,233
57.27
I am sure you have built network graphs in python before using a special library known as Networkx. Have you ever wondered if there was a way to interact with graphs? Guess what?! There is a library named Pyvis which helps to improve the interactivity of network graphs in Python programming language. Also Read: NetworkX Package – Python Graph Library The Pyvis library enables visualization and adds interactivity to network graphs. The library is built on top of the powerful and mature library known as VisJS JavaScript. This allows fast and responsive interactions and extracts the network graphs in the form of low-level JavaScript and HTML. Installing the Pyvis library is simple and straightforward that can be done using the pip command in the command prompt of the system using the command below. Code Implementation Let’s now move on to the code implementation of the interactive network graphs using the Pyvis library in Python programming language. We will start off by importing all the necessary libraries/modules using the code snippet below. from pyvis import network as net from IPython.core.display import display, HTML import random We will start off by creating a network graph with only nodes and no edges between them. The creation of an empty graph can be done using the Network function which specifies the properties of the network graph inside it including the background color, heading, height, and width. Next, we will make use of the add_node function to add nodes to the network graph. We will be adding 10 nodes (from 1 to 10) and then convert the network graph into HTML format to add interactivity and save the HTML file as well. g_only_nodes = net.Network(height='600px',width='90%', bgcolor='white',font_color="red", heading="Networkx Graph with only Nodes") for i in range(1,11): g_only_nodes.add_node(i) g_only_nodes.show('Only_Nodes.html') display(HTML('Only_Nodes.html')) Have a look at what the network graph with only nodes looks like. The next step in the creation of network graphs is adding edges between the nodes. We will be adding random edges between random nodes. Have a look at the function for the same below. def generate_edge(): s = random.randint(1,10) d = random.randint(1,10) return (s,d) In the function, we will be generating random source and destination nodes pair using the random.randint function. We will be getting random nodes between 1 and 10. To make sure we have enough edges; we will be generating 20 random edges. To make sure that the same edge is not repeated again and again, we will be keeping a record of the pairs of (source, destination) nodes. Have a look at the code below. g = net.Network(height='600px',width='90%', bgcolor='white',font_color="red", heading="A Simple Networkx Graph") for i in range(1,11): g.add_node(i) i=0 chosen_set = [] while(i!=20): eg = generate_edge() if(eg[0]!=eg[1] and not (eg in chosen_set)): chosen_set.append(eg) g.add_edge(eg[0],eg[1]) i+=1 g.show('Simple_Network_Graph.html') display(HTML('Simple_Network_Graph.html')) After the addition of edges, we will have a network graph that looks something like the one below. Look how amazing the network graph turns out to be and how interactive the graph is! Conclusion Pyvis is a powerful python module for visualizing and interactively manipulating network graphs using Python programming language. I hope you were able to build the network graphs using the library and enjoyed interacting with the graphs. Thank you for reading! Happy coding! 😃 Also Read: Network Analysis in Python – A Complete Guide
https://www.askpython.com/python-modules/networkx-interactive-network-graphs
CC-MAIN-2022-33
refinedweb
600
65.32
I am trying to deploy an app that writes and reads png images with Flask. Locally I can run my script with no errors, except when I run it on my server. I deployed using this guide on DigitalOcean. It uses apache, wsgi and virtualenv. This an example of my code: from flask import Flask from flask import send_file from PIL import Image app = Flask(__name__) @app.route("/") def hello(): img = Image.new('RGB', (200, 100), (255, 255, 255)) img.save('output.png') return send_file('output.png', mimetype='image/png') if __name__ == "__main__": app.run() img.save('output.png') font = ImageFont.truetype("Archive.otf", 60) __init__.py img.save You need to use an absolute path, like /var/www/somedir/somefile. This is because Flask under Apache does not give Python a usable working directory. I would suggest making the path configurable.
https://codedump.io/share/QQGCcxNocU7O/1/how-to-read-and-write-files-with-flask-with-ubuntu-and-apache-server
CC-MAIN-2017-51
refinedweb
142
62.85
Testing JAX-RS Resources This article is part the JAX-RS Basics series: - Simple REST Demo With JAX-RS - HTTP Methods in JAX-RS - JAX-RS Param Annotations - Exception Handling in JAX-RS - JAX-RS Client API - Testing JAX-RS Resources (this article) Overview In the previous articles, we learnt different concepts about JAX-RS. It’s interesting see how many things we can actually do with this spec. However, it’s also important to prove that our code actually works. Today, we are going to take a look on testing: How to test the JAX-RS resources in Java? I’m using JUnit 4, Jersey, and Grizzly Server. More detail will be explained later on. After reading this article, you will understand: - How to set up a Grizzly Server for tests - How to create a HTTP request - How to assert response - Limits of API testing Set Up Grizzly Server for Tests Before creating any tests, we need to set up a server for hosting the JAX-RS resources. In my example, I use Grizzly server. In order to configure it, you need to define which JAX-RS Application you want to deploy; the URI where the server will be running; and actually start the server with these configuration properties. As for tear down, use shutdownNow() method to immediately shut down the HttpServer instance. public class BookResourceIT { private HttpServer server; @Before public void setUp() { ResourceConfig rc = ResourceConfig.forApplication(new ShopApplication()); URI uri = UriBuilder.fromUri("").port(8080).build(); server = GrizzlyHttpServerFactory.createHttpServer(uri, rc); } @After public void tearDown() { server.shutdownNow(); } ... } Why Grizzly Server? I choose Grizzly because it’s a lightweight server, and is actually being used by the Jersey Team for their tests. In reality, you might need to deploy other Java server: Jetty, Tomcat, WildFly, … It depends really on the context. In my daily work, we use Nuxeo Server (built on top of Tomcat). In my side projects, I use Jetty. Create a HTTP request Now the server is ready, we can write test. The first step is to create a HTTP request. The creation can be done using methods in Client API: Client#target(...). These methods: public class BookResourceIT { private WebTarget books; @Before public void setUp() { ... books = ClientBuilder.newClient().target(""); } @Test public void testGet() { Response response = books.path("1").request().get(); ... } } For more information about using JAX-RS Client API, see my other post: JAX-RS Client API. Assert Response Once the response is returned, you can assert it using JUnit. I think the most common use cases are assertions on the status code and the entity (response body). Assert HTTP status: Response r1 = books.path("1").request().get(); assertEquals(Status.OK.getStatusCode(), r1.getStatus()); Response r2 = books.path("2").request().get(); assertEquals(Status.NOT_FOUND.getStatusCode(), r2.getStatus()); Note that class javax.ws.rs.core.Response actually provides 2 similar methods for getting status: int getStatus() and StatusType getStatusInfo(). Personally, I prefer using getStatus() for assertion, because comparing numbers is easier than compare enum, thus less chance to fail. Assert HTTP body: Response r1 = books.path("1").request().get(); assertEquals("{\"id\":1,\"name\":\"Awesome\"}", r1.readEntity(String.class)); Response r2 = books.path("2").request().get(); assertEquals("", r2.readEntity(String.class)); Asserting other information are similar. Limits of Testing API While testing API looks really simple on this article, it is not in reality. Here’re some factors that you might consider: - The number input params of a resource method. A method might use form params, query params, path params, entity, header params, cookie params, etc for its logic. The number of parameters can change dramatically the complexity of preparation and the possible scenario to test. - The complexity of server setup. The complexity depends on number of layers on the backend, the business logic, the persistence, the frameworks used etc. The more complex it is, the harder to maintain and the slower to start. - REST layer is supposed to be simple. In theory, the REST layer is supposed to be simple. It should avoid having any complex logic and pass input values to business layer right after reception. Therefore, the test effort should be focus on business layer, where unit tests are easier to write and maintain. - Possible errors. When testing APIs, we often use a partial deployment of the server and it may not reflect to the real setup of the production environment. Firewall, proxy, authentication services, … many factors are not taken into account when testing APIs. Thus, possible errors might not be discovered by these tests. - Maintainability. The slowness of execution and the complexity of setup the server will introduce a big effort for maintaining these tests in the long term. Conclusion In this article, we’ve seen how to set up and tear down a Grizzly Server for testing JAX-RS resources. We learnt how to create a HTTP request and assert the response using JUnit 4. At the end, I also share some thoughts about the limits of testing API in reality. The entire JAX-RS series is written in TDD (Test Driven Development) way, you can visit my GitHub repository jaxrs-2.x-demo and search *IT.java to see how those integration tests are written. Hope you enjoy this article, see you the next time!
https://mincong.io/2018/12/18/testing-jax-rs-resources/
CC-MAIN-2020-34
refinedweb
871
57.87
Optimization Plugin, Version 1.1 The optimization plugin can be used to perform multidimensional minimization of functions. The plugin can use two different algorithms described in Numerical Recipes. The first is the downhill-simplex method due to Nelder and Mead, which is a slow, but failsafe method that is just walking downwards. It has the advantage of not requiring any derivatives. It's worth reading the according chapter in the recipes:-) The second method is a simulated annealing variant of that algorithm. Optimization plugin provids a convenient interface to the algorithms. You simply have to define a function to be optimized depending on a deliberate number of parameters. E.g. if you have some least squares error function depending on two parameters that returns a scalar then optimization will find the set of parameters that minimized that scalar. Similar to the atomselect command it returns and object through which you can configure and control the optimization. For each call a different unique namespace (+accessory procedures) is generated so the you can maintain several optimization projects at the same time. I have extended the algorithm so that you can define lower and upper bounds for the parameter search. Thus you can prevent the optimizer to try using values that won't make sense. Further you have the possibility to analyze the optimization. After the optimization completed (either by convergence or by max. iterations) you can request lists for the fitting parameters and the error function during the opt run or even plot these using multiplot. It is written completely in TCL but if the function to be optimized is some complicated thing written in C and wrapped in TCL you can to even expensive computations very fast. Thats because the optimization itself is actually mere bookkeeping and feeding the function with new parameters. Author:Jan Saam Institute of Biochemistry Charite Berlin Germany saam@charite.de Examples:First we have to define a function to optimize, in this case a 2 dimensional parabola: proc parabel2 {xy} {set x [lindex $xy 0]; set y [lindex $xy 1]; return [expr pow($x-1,2)+pow($y-3,2)]}Now we can set up an optimization problem. The return value is a unique handler used to control the optimization. Thus you can manage multiple problems at the same time. set opt [optimization -downhill -tol 0.01 -function parabel2]The simplex must consist of ndim+1 vertices, while ndim is the number of independent variables of your function. The initsimplex command can be used to automatically construct a simplex around a start value. $opt initsimplex {2 1} > {{2 1} {2.02 1} {2 1.01}} {5.0 5.0404 4.9601}Now we can start the optimization. The resulting optimal parameters and their corresponding function value are returned. set result [$opt start]The results can also be returned any time later using the following syntax: set result [$opt result]We can plot how the variables and function values developed during the optimization: $opt analyzeNow we set the tolerance to a lower value and start from the current vertex again: $opt configure -tol 0.000001 $opt startWhen we are done we can delete all the data $opt quit If -miny is specified the optimization finishes, if the function value gets below this boundary. Useful for optimizin error functions. set opt [optimization -simplex {{2 1} {4 1} {2 5}} -miny 0.1 -function parabel2] $opt start $opt quit Let's try it again but with parameter boundaries defined, i.e. the optimizer can vary the values only within the given range. Here the first parameter may vary between 0 and 10 the second one between -1 and 5. set opt [optimization -downhill -tol 0.01 -function parabel2] $opt configure -bounds {{0 10} {-1 5}} $opt initsimplex {2 1} $opt start $opt analyze $opt quit The next example is a 1D double well potential. The function f(x) = 2*x - 8*(x)**2 + (x)**4 has two minima and the starting point x=3.0 is on the slope to the higher minimum. Thus the downhill simplex will only find the local minimum, whereas simulated annealing can find the global optimum. proc doublewell {x} { return [expr 2.0*$x - 8*pow($x,2) + pow($x,4)] } set opt [optimization -annealing -tol 0.001 -function doublewell] $opt initsimplex 3.0 $opt startNow we reinitialize the simplex (starting at x=3.0 again) and try simulated annealing: $opt initsimplex 3.0 set [opt optimization -annealing -tol 0.0001 -T 25 -iter 20 -Tsteps 15 -function doublewell] $opt start $opt quitDepending on the values for the initial temperature T, the number of iterations per cycle iterand the number of temperature cycles Tstepsthe optimizer sould find the global minimum.
http://www.ks.uiuc.edu/Research/vmd/plugins/optimization/
CC-MAIN-2018-09
refinedweb
786
55.95
Niclas Hedhman wrote: > On Tue, Dec 9, 2008 at 11:53 PM, Gregg Wonderly <gregg@wonderly.org> wrote: > >> JavaSpace is an interface. That is the definition of a JavaSpace, plain and >> simple. > > No, that is incorrect. It is a semantic contract involving interfaces, > the now infamous entry classes, exceptions, remoteability, and > workflow (including an optional transactional workflow). JavaSpace is an interface, and thus it can be implemented, stubbed off and done with as you please, including the argument types, which can be replaced in your classpath, taken from the jsk-platform.jar or whatever meets your needs. You can create mirror copies in your own package, and use common techniques for just changing the import to your package etc. All of the things that the "spec" say, can be made to exist without the network implications etc. >> If you want to take outrigger and augment it with other APIs so that it can >> provide access to the space through other means, that's something to debate >> here. > > Right now, JavaSpaces API(!) is bound to Jini Entry API and Jini > Transaction API. To create a more generic Spaces API, both Entry and > Transaction should abstracted into two bits, the generic semantic > contract and the Jini-specific part (Entry may only be generic as it > is fairly simple). > > I don't see the above as neither complicated nor undesirable. Then create a new interface/class hierarchy and do it. The existing namespace does not keep you from doing this. Does outrigger work this way? No, it's a Jini service, not an in memory map. > For instance; Assume for a second that we have these implementations > in place, and that they are runtime swappable. In my code, I can now > have a much leaner Test setup, which are likely to execute a lot > faster and have less dependencies on the actual OS and network it is > running on. I fail to see how you can't implement JavaSpace as a test stub, please explain how it's not possible today. I've done it before, and implemented alternative versions for various reasons... > Opening up Spaces as a programming model (at local VM level) is > another benefit, and I disagree with those that "Well, you can whip > that up in a few hours on your own", and point out that "Yes, you can > do that with most things, such as String, HashMap, Logging and a > Inversion Of Control framework such as Spring." But we don't, because > it takes longer than a few hours in reality, and we have better things > to do if those things are 'just available for use' when I need them. > Look at Apache. How many utilities can you find here that are useful, > yet the basic implementation (when all the flexibility stuff has been > stripped off) can be done in a seemingly short (hours) time frame? My > guess is hundreds. This discussion is revolving around adding to that > tradition. I use java.util.concurrent.ConcurrentHashMap<<? extends Class>,Object> all the time to do things locally. As Wade described, this is at the core of Netbeans modularity. The functions that are defined in the JavaSpace interface are similar to the typical Map design, but they include the remoteness aspect that makes it possible to use them in either way. The java.util.Map interface can not be used in a remote application without augmentation for remoteness. >> Jini, needs to have a JavaSpace in the distribution, and adding more >> interfaces and complicating it, in that way, is what we should be under >> discussion, not "taking javaspaces out of jini". > > I agree that JavaSpaces in its current form (the distributed one > backed by Jini) which is not JavaSpaces, but outrigger...an implementation of the API... Really, we have both blitz and gigaspaces which can be substituted on the network for outrigger with zero changes to the application needed. It's all interfaces... > is and should be a central and integral part of River. > I would even like to see that it is expanded from the current 'single > node' to a full 'cluster' without single-point of failure, but that is > a different discussion. (In ASF terms; Spaces/JavaSpaces subproject > will stay in River until its mission and community is clear and > different enough to be its own project.) From a practicle perspective, you will always find pushback on making outrigger do clustering. There are things that clustering provides, but in the end, a clustered system is much more complex, much harder to manage and typically doesn't actually solve the problem that most people want in that having a seamless fail over and redundant copy of data will inject latency that is not always tolerable, especially in applications where the continued existence of the data is the key. Instead, the Jini lookup mechanism, and particularly the ServiceDiscoveryManager class are the trivial way to get failover without any added complexity to the system design. This is why Javaspaces scales infinitely in the master-worker pattern. The works just use discovery to find a javaspace. If there is work there, they do it. Gregg Wonderly
http://mail-archives.apache.org/mod_mbox/river-dev/200812.mbox/%3C493FE859.7040305@cox.net%3E
CC-MAIN-2018-30
refinedweb
852
62.07
Objects are better than primitives, often but not always At one extreme of programming paradigms there is an over-reliance on objects for every damn little thing, even when it would be much easier to just pass a primitive. Also wrapping primitives when there’s no good reason to do so (though sometimes that’s the result of carelessness rather than extremism). And at the other extreme we see an over-avoidance of objects, dumping all the program logic into a single essentially static main class, defining no other objects and using only the bare minimum of standard library objects needed to get the job done. The former is part of what gives Java a reputation for being bloated. You need one object to do one little task and next thing you know you’re importing ten different packages. And the latter, sometimes termed “primitive obsession,” can give a Java program an almost procedural flavor. It could even look like an example for an early chapter in a programming course, before objects are introduced. Of course you and I know better, and generally opt for the middle road. But I am not afraid to admit that once in a while I need a nudge away from either extreme. Here is a concrete example from an actual program I’m working on: an Algebraic Integer Calculator (source and tests available on GitHub). There is some simple though unfamiliar math here, but if you have a solid grasp of basic high school algebra, you should be able to follow along without any problem. This project grew out of my program to draw diagrams of prime numbers in imaginary quadratic integer rings. Diagrams like this one: This is drawn by the RingWindowDisplay class, which does use a single ImaginaryQuadraticRing object to hold some basic information about the particular number domain, and one or two ImaginaryQuadraticInteger to loop through the numbers in a given view. But a lot of the calculations are done with integer primitives, a few with floating point primitives. Most of these primitives are local variables, so I guess that’s fine. The capability to add and multiply arbitrary imaginary quadratic integers is not a capability that RingWindowDisplay needs at this point, but ImaginaryQuadraticInteger does provide functions for this purpose. Barring overflows, you can add and multiply any two ImaginaryQuadraticInteger objects (subtraction is very easily conceptualized as addition in reverse). There are more restrictions on dividing one ImaginaryQuadraticInteger object by another. For one thing, the divisor must not be 0. And for another, the dividend should be divisible by the divisor. If it’s not, ImaginaryQuadraticInteger.divides() will throw NotDivisibleException. Throwing an exception for something that happens all the time in math might seem like overkill. But this will still turn out to be an example of “primitive obsession.” I have debated with myself whether the NotDivisibleException is appropriate or not, and I have to come to the conclusion that it is because this exception can arise in different situations where there may be different ways to recover from non-divisibility. In some cases, you might just want an algebraic number rounded “down” to an algebraic integer. In other cases, you might want to know all the algebraic integers that immediately surround an algebraic number in the given domain. Okay, so how do you construct a NotDivisibleException to throw? In the older program, that exception had to deal with rounding numbers like 7/3 + (4√−5)/3. Those would be passed as a bunch of primitives. Something like 7, 4, 3, −5 in this example. In that order, if I recall correctly. Then NotDivisibleException would reconstruct the algebraic number 7/3 + (4√−5)/3 and figure out how to round it to an algebraic integer. In the Algebraic Integer Calculator project, NotDivisibleException will also need to be able to deal with numbers like 1/10 + (3∛2)/10 + 29(∛4)/10 and 1/7 + ζ₈/7 + i/7 + (ζ₈)³/7. I assume the denominators will always be the same, I could be wrong about that. But I am far more certain that there should be as many numerators as the pertinent algebraic degree indicates, no more, no less. Zeroes may be used as placeholders if needed, as in for example, to express 1/7 + (ζ₈)³/7 as 1/7 + 0/7 + 0/7 + (ζ₈)³/7. The exact order should probably go according to the power basis. Whatever order is chosen, it should always be the same, so that NotDivisibleException can correctly locate the algebraic number and round it to the correct algebraic integer. So then this new version of NotDivisibleException should be passed two arrays of integer primitives, one for the numerators and one for the denominators, right? And that’s what I did, even though I was aware of all the problems that opened up. What if someone tries to construct a NotDivisibleException with an array of three numerators and five denominators? Or what if the two arrays do match in length and they’re of the right length, but the array of denominators includes one or more 0s? In either eventuality, the NotDivisibleException constructor would throw an IllegalArgumentException. That seems like a terrible, rotten thing to do, to force you to deal with another exception when you’re trying to throw an exception. Though it’s no excuse for programmers who write overly vague exception catches. It wasn’t until last week that I finally realized I had a better answer practically under my nose. About a couple of months ago, I wrote a Fraction class in Java inspired by some examples in Scala for the Impatient by Cay Horstmann. So… what if instead of taking two arrays of integer primitives that might differ in length, the NotDivisibleException constructor takes a single array of Fraction objects? That way the NotDivisibleException constructor only needs to check that the array of fractions has the right length. There is no need to worry that there might be more numerators than denominators, nor vice-versa. And there is no need to worry that any of the denominators could be 0. The Fraction constructor should make sure that doesn’t happen. If that passes the relevant test in FractionTest, we don’t need to worry about it in NotDivisibleExceptionTest. The first step to implement this change was to bring Fraction and FractionTest into the Algebraic Integer Calculator project. Next, I rewrote NotDivisibleException to use Fraction. And then I gave NetBeans one or two minutes to do a background scan of the project so that it would flag what other files needed to be edited to account for the change. Obviously the first of those would be NotDivisibleExceptionTest… uh, oh, I may have missed an opportunity for test-driven development here. On the bright side, the change simplifies testConstructor. I placed Fraction in the fractions package, so the affected files need to import fractions.Fraction. So now there’s a little more overhead to take care of before you can throw a NotDivisibleException, but this is a rather small price to pay for not having to worry about misplacing numbers in an array of integer primitives. In this particular instance, using an array of objects has turned out to be much better than using two arrays of primitives. Of course here it is still possible to go to the other extreme. To construct a new Fraction, we could pass it two Long objects instead of two long primitives. Or worse, we could rewrite the Fraction constructor so that it takes one Pair<Long, Long>, and rewrite the NotDivisibleException constructor so that it takes an ArrayList<Fraction>. And worse still, we could implement our own Pair and ArrayList (although perhaps javafx.util.Pair might not quite be the 2-tuple I thought it was, so implementing our own Pair might not be such a bad idea after all). That could be considered over-engineering, since there doesn’t seem to be anything in the program requirements to indicate that we need to put in so much effort to avoid primitives. A more immediate concern for me is that in making the improvement described here I could cause another part of the program that was previously working correctly to now malfunction. Since I have tests for all the source files that were affected by the change, it suffices to run the tests to pinpoint if there’s anything that needs to be fixed. The only tests that failed were tests that were failing before the change. I shouldn’t let failing tests pile up like that, but that’s a discussion for another time. If there had been failing tests as a consequence of the change, they would have been very easy to fix. Certainly much easier to fix than problems in a program filled with global primitives whose purpose is not always clear. Sometimes an object isn’t the best solution to a particular problem. But at least when it comes to validating data passed from one part of the program to another, it’s usually better to pass a well-designed object than a bunch of “loose” primitives.
https://alonso-delarte.medium.com/objects-are-better-than-primitives-often-but-not-always-70b889976bd9
CC-MAIN-2021-21
refinedweb
1,526
51.89
Developing a JavaFX Hello World Application: Coding Examples In this topic, we transform the sample application created by IntelliJ IDEA into a very basic JavaFX Hello World application. In this way, we show basic coding assistance features provided by the IDE. (The sample application is created by IntelliJ IDEA automatically when you create a project for your JavaFX application development from scratch, see To create a project for JavaFX application development from scratch.) - Renaming the Controller class - Developing the user interface - Completing the code for the SampleController class - Running the application - Styling the UI with CSS Renaming the Controller class To adjust the sample application to your needs, you may want to start by renaming the files. To see how, let's perform the Rename refactoring for the class Controller. We'll rename this class to SampleController. You can use a different name if you like. - In the editor, place the cursor within the class name and select Refactor | Rename (alternatively, press Shift+F6). - Place the cursor in front of Controllerand type Sample. - Press Enter to indicate that you have completed the refactoring. Now, switch to sample.fxml in the editor and note that the value of the GridPanel fx:controller attribute has changed to "sample.SampleController". (Initially it was "sample.Controller".) In a similar way you can change the names of other files if necessary. Developing the user interface To show you how IntelliJ IDEA can help you write your code, let's implement a kind of Hello World JavaFX application. In the user interface (UI), we'll define a button which when clicked will display the text Hello World! To do that, we'll add the following two elements between the opening and closing <GridPane> tags in the file sample.fxml: <Button text= "Say 'Hello World'" onAction= "#sayHelloWorld"/> <Label GridPane. We suggest that you do everything by typing to see how code completion works. - Go to the end of the opening <GridPane>tag and press Enter to start a new line. - Type <Band select Button. - Type space, type t, and select text. - In a similar way, add the remaining code fragments. The resulting code will look something similar to this: As you see, sayHelloWorldis shown red and helloWorldis also highlighted. This means that IntelliJ IDEA cannot resolve the corresponding references. To resolve the issues, let's use the quick fixes suggested by IntelliJ IDEA. (In IntelliJ IDEA, it's a standard coding practice when you reference a field, method or class that doesn't yet exist and then use a quick fix to create the corresponding field, method or class.) Completing the code for the SampleController class Now we are going to define the field helloWorld in the SampleController class. We will also add the corresponding event handler method ( sayHelloWorld) that will set the text for the helloWorld label. When doing so, as already mentioned, we'll use the quick fixes suggested by IntelliJ IDEA. - In sample.fxml, place the cursor within helloWorld. Click the yellow light bulb or press Alt+Enter. - Select Create Field 'helloWorld'. IntelliJ IDEA switches to SampleController.javawhere the declaration of the field helloWorldhas been added. Note the red border around Label. You can edit the field type right away. We are not going to do that now, so press Enter to quit the refactoring mode. Also note the import statement that has just been added ( import javafx.scene.control.Label;) and the icon to the left of the field declaration. This is a navigation icon; click it to go back to sample.fxml. - Place the cursor within sayHelloWorldand press Alt+Enter. - Select Create Method 'void sayHelloWorld(ActionEvent)'. The corresponding method declaration is added to SampleController.java. - Press Shift+Enter to quit the refactoring mode and start a new line. - Type the following to set the text for the label: helloWorld.setText("Hello World!"); At this step, the code of the application is ready. Let's run the application to see the result. Running the application - To run the application, click on the toolbar or press Shift+F10. The application window now contains the Say 'Hello World' button. - Click this button to see that the text Hello World! is shown. - Close the application window. Styling the UI with CSS To complete the coding examples, let's change the appearance of the UI by adding a stylesheet and defining a couple of formatting styles in it. - In the file sample.fxml, add a reference to a (non-existing) CSS file sample.css. One way to do that is to add the stylesheetsattribute within the opening <GridPane>tag, e.g. stylesheets= "/sample/sample.css" - As before, use a quick fix to create the CSS file. - When the CSS file is created, add the following style definitions into it. .root { -fx-background-color: gold; } .label { -fx-font-size: 20;> } The first of the styles makes the background in the application window "gold" and the second one - sets the font size for the text Hello World!to 20 pixels. - Run the application again to see the result (Shift+F10). Now that you've brought the application to a reasonable state, you may want to package it. For corresponding instructions, see Packaging JavaFX Applications.
https://www.jetbrains.com/help/idea/2016.2/developing-a-javafx-hello-world-application-coding-examples.html
CC-MAIN-2018-13
refinedweb
865
58.48
Here are demonstrations of various bugs that have been fixed in Manuel. If you encounter a bug in a previous version of Manuel, check here in the newest version to see if your bug has been addressed. If a line of text matches both a “start” and “end” regular expression, no exception should be raised. >>>>> import manuel >>> document = manuel.Document(source) >>> import re >>> start = end = re.compile(r'^xxx$', re.MULTILINE) >>> document.find_regions(start, end) [<manuel.Region object at ...] The code-block handler didn’t originally allow reST options, so blocks like the one below would generate a syntax error during parsing. import manuel.codeblock m = manuel.codeblock.Manuel() manuel.Document(source).parse_with(m) While empty documents aren’t useful, they are still documents containing no tests, and shouldn’t break the test suite. >>> document = manuel.Document('') >>> document.source '\n' Anything put into the globs during a doctest run should still be in there afterward. >>> a 1 >>> b = 2 import manuel.doctest m = manuel.doctest.Manuel() globs = {'a': 1} document = manuel.Document(source) document.process_with(m, globs=globs) The doctest in the source variable ran with no errors. >>> six.print_(document.formatted()) And now the globs dictionary reflects the changes made when the doctest ran. >>> globs['b'] 2 At one point, because of the way manuel.doctest handles glob dictionaries, zope.testing.module didn’t work. We need a globs dictionary. >>> globs = {'foo': 1} To call the setUp and tearDown functions, we need to set up a fake test object that uses our globs dict from above. class FakeTest(object): def __init__(self): self.globs = globs test = FakeTest() Now we will use the globs as a module. >>> import zope.testing.module >>> zope.testing.module.setUp(test, 'fake') Now if we run this test through Manuel, the fake module machinery works. The items put into the globs before the test are here.>>> import fake >>> fake.foo 1 And if we create new bindings, they appear in the module too.>>> bar = 2 >>> fake.bar 2 import manuel.doctest m = manuel.doctest.Manuel() document = manuel.Document(source) document.process_with(m, globs=globs) The doctest in the source variable ran with no errors. >>> six.print_(document.formatted()) We should clean up now. >>> import zope.testing.module >>> zope.testing.module.tearDown(test) The unittest integration (manuel.testing) sets the debug attribute on Manuel objects. Manuel instances that result from adding instances together need to have the debug value passed to each Manuel instances that was added together. >>> m1 = manuel.Manuel() >>> m2 = manuel.Manuel() The debug flag starts off false... >>> m1.debug False >>> m2.debug False ...but if we set it add the two instances together and set the flag on on the resulting instance, the other one gets the value too. >>> m3 = m1 + m2 >>> m3.debug = True >>> m1.debug True >>> m2.debug True >>> m3.debug True Twisted’s testrunner, trial, makes use of the id method of TestCase instances in a way that requires it to be a meaningful string. For manuel.testing.TestCase instances, this used to return None. As you can see below, the manuel.testing.TestCase.shortDescription is now returned instead: >>> from manuel.testing import TestCase >>> m = manuel.Manuel() >>> six.print_(TestCase(m, manuel.RegionContainer(), None).id()) <memory> A (bad) feature of DocTestRunner (and its subclass DebugRunner) is that it will turn on “verbose” mode if sys.argv contains “-v”. This means that if you pass -v to a test runner that then invokes Manuel, all tests would fail because extra junk was inserted into the doctest output. That is, before I fixed it. Now, manuel.doctest.Manuel passes “verbose = False” to the DocTestRunner constructor which disables the functionality. We can ensure that the verbose mode is always disabled by creating test standins for DocTestRunner and DebugRunner that capture their constructor arguments. import doctest import manuel.doctest class FauxDocTestRunner(object): def __init__(self, **kws): self.kws = kws try: manuel.doctest.DocTestRunner = FauxDocTestRunner manuel.doctest.DebugRunner = FauxDocTestRunner m = manuel.doctest.Manuel() finally: manuel.doctest.DocTestRunner = doctest.DocTestRunner manuel.doctest.DebugRunner = doctest.DebugRunner Now, with the Manuel object instantiated we can verify that verbose is off for both test runners. >>> m.runner.kws['verbose'] False >>> m.debug_runner.kws['verbose'] False
http://pythonhosted.org/manuel/bugs.html
CC-MAIN-2013-20
refinedweb
696
62.04
Double-click on the RepeatingPanel inside the Data Grid. Drag-and-drop a Button into the end column. This will be the delete button for each item. Rename it button_delete. Clear the Button’s text, set its icon to fa:times and the foreground colour to theme:Secondary 500. Adding a delete button to the end column of our Data Grid. Now create a click event handler for your new delete button by clicking the blue arrows to the right of ‘click’ in the Events section: def button_delete_click(self, **event_args): """This method is called when the button is clicked""" anvil.server.call('delete_item', self.item['id']) get_open_form().raise_event('x-refresh') Run your app - you can now delete items from your external database using your web app. A cycle of deleting and re-adding an item in the database.
https://anvil.works/learn/tutorials/external-database/chapter-3/70-build-delete-ui.html
CC-MAIN-2020-10
refinedweb
138
74.59
These are chat archives for mirumee/saleor Hi everyone, I was wondering is the best way to use saleor for a project is to clone the current repository and modify it there? I was thinking of not using django's templating and instead use graphql and react for building a storefront. So I would get rid of "template" and all the npm stuff from the project. (Maybe just leave the stuff for the dashboard) There would be other modifications too, for example - I would want write integration of another payment gateway (Adyen) However, my concern is the moment I do that I would lose any new features, bug fixes and security fixes that saleor's development team releases. from django_prices_vatlayer.models import VAT VAT.objects.create( country_code='CA', data={'country_name': 'Canada', 'standard_rate': 10, 'reduced_rates': {}}, )
https://gitter.im/mirumee/saleor/archives/2019/03/22?at=5c94b49449fdaa0d81f7f20e
CC-MAIN-2019-30
refinedweb
134
50.16
#include <c4d_basetime.h> Cinema 4D uses a. If using 30 fps GetFrame() would return 15, but if using 24 fps it would return frame 12. Default constructor. Initializes the internal time value from a float value in seconds. Constructor will multiply the seconds by 1000.0 and store it as a fraction with 1000.0 as denominator; after this the fraction will be reduced to its lowest form. Initializes the internal time to the given fraction of z/n. Gets the time in seconds. Gets the numerator part of the internally stored time. Gets the denominator part of the internally stored time. Sets the numerator part of the internally stored time. Sets the denominator part of the internally stored time. Gets the number of frames equivalent to the time for the given number of Frames per Second. Quantizes the internally stored value so that it is a multiple of the given number of Frames per Second. Checks which is the largest between the time and t2. Multiplies t1 and t2. Divides t1 and t2. Adds t1 and t2. Subtracts t1 and t2. Equality operator. Checks if t1 and t2 are equal. Inequality operator. Checks if t1 and t2 are not equal. Less than operator. Checks if t1 is less than t2. Greater than operator. Checks if t1 is greater than t2. Less than or equal operator. Checks if t1 is less than or equal to t2. Greater than or equal operator. Checks if t1 is greater than or equal to t2.
https://developers.maxon.net/docs/CinewareSDK/html/classcineware_1_1_base_time.html
CC-MAIN-2020-24
refinedweb
251
79.77
Xmonad/Using xmonad in KDE From HaskellWiki Revision as of 22:14, 27 April 2008 Here's how to configure Xmonad to work with KDE. (so far) for xmonad 0.7 and KDE 3.5. 4 Before you begin Make sure that xmonad is installed. On most systems, you can just install the xmonad package. 5 Sample xmonad configuration for KDE As usual, place xmonad configuration in ~/.xmonad/xmonad.hs. The following sample configuration sets up xmonad to cooperate with the KDE desktop and panel; for more details about how this works, see the Gnome page. This configuration also does the following: - uses the Windows key instead of the Alt key as "mod" for xmonad (freeing up Alt for common emacs-style key bindings in applications) - causes certain applications to launch as floating windows - automatically sends certain applications to a specific desktop when they launch. import XMonad import XMonad.Hooks.ManageDocks import XMonad.Hooks.EwmhDesktops import qualified XMonad.StackSet as W main = xmonad $ defaultConfig { manageHook = manageHook defaultConfig <+> myManageHook , logHook = ewmhDesktopsLogHook , layoutHook = avoidStruts $ layoutHook defaultConfig , modMask = mod4Mask -- use the Windows button as mod } where myManageHook = composeAll . concat $ [ [manageDocks] , [ className =? c --> doFloat | c <- myFloats] , [ title =? t --> doFloat | t <- myOtherFloats] , [ className =? c --> doF (W.shift "2") | c <- webApps] , [ className =? c --> doF (W.shift "3") | c <- ircApps] ] myFloats = ["MPlayer", "Gimp"] myOtherFloats = ["alsamixer"] webApps = ["Firefox-bin", "Opera"] -- open on desktop 2 ircApps = ["Ksirc"] -- open on desktop 3 Note: To get the class name quoted strings displayed, usually capitalized. Thanks to everyone on #xmonad, especially sjanssen, for all the help in putting together this sample xmonad configuration for KDE.. If you compiled xmonad from source, it may be something like /home/$USER/bin/xmonad. xmonad keys, or use the mouse on the window itself. - Also as in Gnome, it is very important not to use the xmonad mod-shift-qkey to exit your session. Use the KDE menu or panel applet.. Then remove the above bullet.
http://www.haskell.org/haskellwiki/index.php?title=Xmonad/Using_xmonad_in_KDE&diff=20717&oldid=20716
CC-MAIN-2014-10
refinedweb
320
59.3
Jasper Reports - Java Beginners Jasper Reports Hi, I'm new to Jasper Reports. Please help me by giving a simple example of Jasper report generating. Thank You, Umesh .../), it is free and based o JasperReports. It lets you create sophisticated Open Source Reports Open Source Reports ReportLab Open Source ReportLab, since its early...; LinuxPlanet - Reports As organizations bring more and more open source software.... Decisions about whether or not to incorporate open source reports reports hi i want to create reports in my projects . plz give me some idea how to create reports in jsp Crystal Reports for Eclipse the same as you would any other data source Crystal Reports Web Project Wizard... Crystal Reports for Eclipse Crystal Reports for Eclipse is an Eclipse Plug Displaying empty pdf with jasper reports using spring framework Displaying empty pdf with jasper reports using spring framework Hi, I am working with spring jasper integration to generate the jasper reports... this i am getting the emptypage.Anything more i have to do.I am new to the jasper Jasper Assistant , a popular open-source reporting engine. It is built on top of the Eclipse's... JasperAssistant ? JasperAssistant opens for you the door to the best open-source reporting..., JavaBeans array or a custom data source. * Export and preview your reports in PDF Open Source Intelligence Chris Messina and I were talking about how open source principles could..... Source Metaverse Because he knows something about being at the whim of faceless Open Source Jobs from open source is not about Linux or Firefox, but about the forces that produced...? Your dedication? Then think about contributing to an open source software project...; All About Open Source Open source usually refers to a program in which Open Source E-mail support an open source alternative. Things are about to happen rather quickly...Open Source E-mail Server MailWasher Server Open Source MailWasher Server is an open-source, server-side junk mail filter package Open Source E-mail Server Open Source E-mail Server MailWasher Server Open Source MailWasher Server is an open-source, server-side junk mail filter package for businesses. MailWasher Server differs from other open-source server anti-spam reports creation reports creation hi................. how to create tabular format report in java swings????????????? Please visit the following link: Open Source Database Open Source Database Open Source... Source Java Database One$DB is an Open Source version of Daffodil... editions. Open-Source Database problem - XML jasper problem URGENT PROBLEM!!!!!!!!!!!!! how can we use a hash table in jasper reports to generate reports without using database connection directly but access data from the hash table what we needed for creation Open Source Accounting Software Open Source Accounting Software Open Source Accounting Software TurboCASH .7 is an open source accounting package that is free for everyone...). It is one of the world's first fully-featured open source accounts packages for small MIT Open Source MIT Open Source Open Source at MIT The goal of this project is to provide a central location for storing, maintaining and tracking Open Source... open-source story brings bloggers in Wouldn't you know it? I finally caught GPS the signal. Open Source Software for Learning about GPS Teaching...Open Source GPS Open Source GPSToolKit The goal of the GPSTk project is to provide a world class, open source computing suite to the satellite Open Source Browser ; Popular open source browser Firefox Just about... Open Source Browser Building an Open Source Browser One year ago -ages ago by Internet standards- Netscape released in open source Microsoft Open source those tools under open-source licenses. "And it's not just about developer tools... president of open-source affairs at Linux vendor Red Hat Inc., about meeting... about Microsoft. Microsoft open source Create Crystal reports with PHP Create Crystal reports with PHP I'm New to eclipse and php. I need to create a report using crystal report on php. is that possible. If it is, how could I install it to eclipse IDE. How to use Open Source Download Open Source Download Downloads - UNIX & Open Source A modification of the free/open source GNU Image Manipulation Program (GIMP), intended..., etc. remain available. The official AWeb Open Source how to create reports in swing java? how to create reports in swing java? how to create reports in swing java Open Source POS Open Source POS Open-source POS system This past weekend People's... out items on the world's first entirely free, open-source point-of-sale system... Source POS Project This project is to create an open-source Point of Sale Open Source Books about .NET. Open Source PKI Book This project.... Open Source and Linux One of our very first books was about... in a broader sense, the Open Source movement is about independent collaborative Why Open Source? Why Choose Open Source? Introduction Open source refers to a production and development system... behind the concept of open source software is that it enables rapid evolution Open Source Content Management money pit?" The article prodded me to learn more about open source CMSs...Open Source Content Management Introduction to Open Source Content Management Systems In this article we'll focus on how Open Source and CMS combine Open Source Exchange know about. Now, obviously, Martin is an expert on open source email systems and I...Open Source Exchange Exchange targeted by open-source group A new open-source effort dubbed How to Generate Reports in Java - Java Beginners How to Generate Reports in Java How to Display and Generate Reports in Java? Give Me Full Sample Code Hi Friend, What do you want to display on reports.Please elaborate it. Thanks Open Source Shopping Cart Open Source Shopping Cart Open Source Shopping carts software... portal then you can choose any of the good open source shopping cart software... is ready to go live. Choosing the right Open Source shopping cart is very open source help desk Open Source Help Desk Open Source Help Desk Software As my help desk... of the major open source help desk software offerings. I?m not doing...?s out there. The OneOrZero Open Source Task Management Creating Menu using GWT Creating Menu using GWT This example describes the Basics for building the Menu using GWT...;New",cmd); File.addItem("Open",cmd);   Open Source Java reports that you have recently said of Sun Microsystem's strategy "The open-source... about and executes its open-source strategy. That confusion is evident...Open Source Java Open Source Software in Java AspectJ Generating PDF reports - JSP-Servlet Open Source projects that provides deep information about open-source projects, including license... Open Source Project SOS (Support Open Source) is all about supporting free...; Open Source Project Management TechCrunch reports on activeCollab, an open Open Source DRM Open Source DRM SideSpace releases open source DRM solution SideSpace Solutions released Media-S, an open-source DRM solution. Media-S is format-independent, though the first release only supports the Ogg Vorbis open-source audio Linux Open Source Linux Open Source Building a Linux Network Appliance You..., and Mac OS X is still an unknown. Linux/Open Source Genuitec will link rival NetBeans with its Eclipse open source technologies Open Source Directory Open Source Directory Open Source Java Directory The Open Source Java...; Open Source Directory Services Apple's Open Directory... with open source directory Red Hat Directory Server began life as the Netscape source Creating Tree Structure using GWT Creating Tree Structure using GWT  ... Structure using GWT. The steps involved in Building the Tree Structure... open and close. Treeexample.java How to Create any type of Reports in Java - Java Beginners How to Create any type of Reports in Java Hello Sir ,How I can create any type of Reports like Crystal Reports etc(Student Result Report) in Java Application,plz Help Me Sir Open Source Web Page Certified Open Source Software certification mark and program. You can read about...Open Source Web Page The Open Source Page Open Source Initiative... is "Open Source." We also make copies of approved open source licenses here Open Source Knowlegde base Software Open Source Knowlegde base Software Knowledgebase Knowledge base... their software and collaborate with open source project developers. OpenCyc open source knowledge base and reasoning engine Open Source software written in Java . Means the open source software is all about freedom. Freedom of use...Open Source software written in Java Open Source Software or OSS... fee or royalty. What is Open Source? Open source Open Source Business Model Open Source Business Model What is the open source business model It is often confusing to people to learn that an open source company may give its... that open source companies do not generate stable and scalable revenue streams Open Source Movement . No, not Floss as what dentists nag you about, but Floss as in Free, Open Source, Libre.. Open Source e-commerce Open Source e-commerce Open Source Online Shop E-Commerce Solutions Open source Commerce is an Open... of an osCommerce online store. osCommerce combines Open Source solutions to provide a free Advertisements If you enjoyed this post then why not add us on Google+? Add us to your Circles
http://www.roseindia.net/tutorialhelp/comment/89735
CC-MAIN-2016-07
refinedweb
1,534
64.91
Hi, given that we have not heard back from you in 7 days, we will go ahead and close this Connect Issue. If you get a chance to review and provide the information requested earlier, you can go ahead and reactivate this issue. 1. Convert solution of VS 2008 to VS 2010 solution. VS 2008 solution projects has target framework - 3.5 2. Create new project at converted solution using VS 2010 3. Add project or dll reference to any older (converted) project with Target Framework 3.5 4. Compile solution or new project Get error: Error 3 The type or namespace name 'NAME_OF_OLDER_PROJECT' could not be found (are you missing a using directive or an assembly reference?) C:\Users\1\Documents\Visual Studio 2010\Projects\SEOTools_svn\MyNewProject\Program.cs 5 7 Please wait... I'm not sure that this is a bug - it is probably by design.
https://connect.microsoft.com/VisualStudio/feedback/details/510563/net-framework-4-0-assemblies-cannot-use-net-framework-3-5-assemblies
CC-MAIN-2017-17
refinedweb
148
66.13
Java string replace method returns the string replacing all the old char or CharSequence to a new char or CharSequence. At times, it is required to replace some characters in a String with a new character. It might also be required to change an entire sequence of characters with a new sequence of characters, i.e., replacing an old CharSequence with a new CharSequence. The java.lang.String.replace() method is a built-in method of the String class designed just for this purpose. Java String replace Java string replace() method returns the new string resulting from replacing all occurrences of old characters in the string with new characters. See the following figure. Syntax public String replace(char old, char new), Where old is the character to be replaced and new is the character to be inserted in its place. It returns a string by replacing every occurrence of old with new. Internal Implementation; } Example1.java: The following example demonstrates how the replace() method is used to change all occurrences of an old character with a new character. public class Example1 { public static void main(String[] args) { System.out.println("This program will replace all occurences of 's' with 'z'"); String s = new String("This is a demo string. This is s."); System.out.println(s); String s_new = new String(); s_new = s.replace('s', 'z'); System.out.println(s_new); } } Output This program will replace all occurrences of ‘s’ with ‘z’ This is a demo string. This is s. Thiz iz a demo ztring. Thiz iz z. Here, java replace() method is used to replace all occurrences of the old character ‘s,’ replaced with the new character ‘z’. Example2.java Since JDK 1.5, Java also allows replacing an entire CharSequence with a new one. The following example demonstrates such a case: public class Example2 { public static void main(String[] args) { String s = new String("He decided to go to New York."); System.out.println(s); String s2 = new String(); s2 = s.replace("New York", "Moscow"); System.out.println(s2); } } Output He decided to go to New York. He decided to go to Moscow. Here, the sequence “New York” gets replaced with “Moscow”. Multiple occurrences of a sequence can be replaced in the same way. The same is demonstrated in the next example. Example3.java public class Example3 { public static void main(String[] args) { String s = new String("I had a bike. But I sold the bike to get a new bike."); System.out.println(s); String s2 = new String(); s2 = s.replace("bike", "car"); System.out.println(s2); } } See the output. I had a bike. But I sold the bike to get a new bike. I had a car. But I sold the car to get a new car. Here, all occurrences of “bike” are replaced with “car” by using the replace() method. In conclusion, the java.lang.String.replace() method is used to replace all the occurrences of a character/sequence of characters with a new character/sequence of characters. Finally, String replace() Function In Java Tutorial is over. Recommended Posts Java String replaceAll function Java String getBytes() Example How To Convert String Characters To Lowercase Java String toCharArray() Example Java String indexOf() Example
https://appdividend.com/2019/10/18/java-string-replace-example-string-replace-function-in-java/
CC-MAIN-2019-47
refinedweb
535
68.97
Member 5 Points Jul 31, 2017 10:38 PM|Urvil Shah|LINK I have 2 class file stored in the User Control Folder which has namespace X and 1 class file in the App_code folder which has namespace Y and my Project is web site type project.I have my user control defined in the User Control folder. How can I use the namespace X and Y respectively in my User Control ? I tried using normally by 'using' keyword ,but it throws an error stating it could not be found. I also tried to keep the user control name space X so at least I can use namespace X but no luck. Contributor 6420 Points Aug 01, 2017 02:16 AM|Jean Sun|LINK Hi Urvil Shah, Please right click on the .cs file in the App_Code folder and check its properties. Make sure the "Build Action" is set to "Compile". Best Regards, Jean Member 5 Points Contributor 6420 Points Aug 04, 2017 06:54 AM|Jean Sun|LINK Hi Urvil Shah, Urvil ShahThank you for the reply, as I mentioned , my project is WebSite type Project and I don't have the Advanced Option stating Build Action. My project is website type too, it's strange that you don't have the Advanced Option stating Build Action. The build action should be available from various kinds of applications and various versions of VS. Could you please share your website code? So I can test it on my side. Or you can try reinstall the VS and try again. Best Regards, Jean 3 replies Last post Aug 04, 2017 06:54 AM by Jean Sun
https://forums.asp.net/t/2126175.aspx?How+To+Add+the+User+Defined+Name+Space+in+the+User+Control
CC-MAIN-2018-22
refinedweb
275
79.19
Load a sequence of PODs/objects from a config file. More... #include <vcl_algorithm.h> #include <vcl_istream.h> #include <vcl_iterator.h> #include <mbl/mbl_exception.h> Go to the source code of this file. Load a sequence of PODs/objects from a config file. Definition in file mbl_parse_sequence.h. Read a sequence of PODs from a stream. This function will read through a stream, and store the text found to a string. The function terminates correctly when it finds a matched closing brace, Alternatively, if there was no openning brace, it will terminate at the end of a stream. Other conditions will cause an exception to be thrown, and the stream's fail bit to be set Example: vcl_vector<unsigned> v; mbl_parse_sequence(vcl_cin, vcl_back_inserter(v), unsigned()); Definition at line 29 of file mbl_parse_sequence.h.
http://public.kitware.com/vxl/doc/release/contrib/mul/mbl/html/mbl__parse__sequence_8h.html
crawl-003
refinedweb
132
68.97
UWP-006 - Understanding Default Properties, Complex Properties and the Property Element… Bob tackles "the top of the page" where the XAML namespace declarations are generated by default in a new page template. He explains why schemas exist, how they help the produce and consumer of the XML to communicate, and more. Lesson source code: Full series source code: PDF: trying to save as uwp06Namespacesxxx.xx vs uwp07Namespacesxxx.xx using save as This is an incorrect video. Please change with the correct video. Regards I know microsoft schema links represent namespaces but apart from being a symbol, there is really no schema behind those links. So they seem to me like magic strings. The app compiles if they're there and complains if they're not. Hope we'll see their significance later in this series. I am loving the tutorials, rich in content and they are really informative! Thanks for the amazing tutorials. About 2:35 into this lesson, you mention that the namespace x: is now not included in the code because the default schema is used. However, I'm using a version of Visual Studio Community 2015 that I downloaded a couple of weeks ago and when I created the example you are using, the code generated included the x: namespace for both the button and the textblock. thnx for sharing your knowlege Possibly a stupid question, since XAML looks very similar to XML would it be possible to import a CSS document, for a overview of styling? Hi Bob I appreciate a lot your tutorials. I try to learn to tprogramm UWA's. Just a comment. there is a little mistake in the enumeration of your videos. The 06 you made twice, the 07 is actually the 8th video and the 08 doesn't exist. I took two days to find the error :-) I saved the vvideos on my laptop and I was missing the video number 8 ... best regards Jo @tvhong:They are there, as you proved by trying not to use them. As Bob explains in the video, they are not URLs as much as they are URIs, just "indicators" that point to valid URLs. In this case, private URLs. Obviously there is a lot that goes on behind the scenes with XAML ... one of those things is a way to access private websites ... websites not open to the general public via a web browser. As for their purpose, as Bob explains, the schemas are the rules that the compiler uses to change what we type in XAML format to the underlying C# code that is run in the background where we can't see it. And yes, it does seem like magic, doesn't it? :) - john Thanks for the great video tutorials Bob! Can anyone please help me? How to solve the problem that the downloaded code will show me "Can't find Type or namespace 'System' "? I'm having an issue where any example I open, even all those that have been sitting on my drive unused for months, open and say they can't find a file: [Failure] Could not find file 'C:\Users\shawn\Desktop\WhatIsXAML\WhatIsXAML\obj\ARM\Debug\App.g.i.cs'. I don't understand at all how to fix this, it's incredibly frustrating. That file isn't there in any sample. I just installed VS 2015 Community. amazing tutor thx!!! :) Good video, Thanks How come x:Class can be called when x itself is defined below that line?
https://channel9.msdn.com/Series/Windows-10-development-for-absolute-beginners/UWP-007-Understanding-XAML-Schemas-and-Namespace-Declarations
CC-MAIN-2018-22
refinedweb
582
73.68
Contents If you want to get more involved in the development of itools, or just to send patches from time to time, there are two things you need to know: Every software project, even the smallest one, will benefit from a Control Version System, and git is probably the best. For the instructions that follow in this chapter to work properly, you will need a recent version of git, 1.5 at least. The latest version of git can be downloaded from their web site: But if you use GNU/Linux, probably your distribution will include it. For example, to install git in a Gentoo [2] system type: $ sudo emerge dev-util/git For Debian [3] or Ubuntu [4] type: $ sudo apt-get install git-core git-doc git-email gitk Once git is installed, you should configure it. The only thing required is to give your full name and your email address: $ git config --global user.name "Luis Belmar-Letelier" $ git config --global user.email "luis@itaapy.com" The parameters set with the command git config are written to the configuration file .gitconfig, in the user’s home folder. It looks like this: [user] name = Luis Belmar-Letelier There are, however, other configuration variables that most people would like to define. Like for example to use colors: $ git config --global color.branch auto $ git config --global color.diff auto $ git config --global color.status auto If you are going to send patches by email, you also should define the variable sendemail.smtpserver: $ git config --global sendemail.smtpserver smtp.my-isp.com For the complete list of configuration variables, check the git config manual page: $ git config --help The user’s name and email address should be defined in the configuration file. But sometimes it may be useful to override this information for a short period of time; that can be done with some environment variables: $ export GIT_AUTHOR_NAME="Luis Belmar-Letelier" $ export GIT_COMMITTER_NAME="Luis Belmar-Letelier" $ export GIT_AUTHOR_EMAIL="luis@itaapy.com" $ cd ~/sandboxes $ git clone git://git.hforge.org/itools.git Initialized empty Git repository in /.../itools/.git/ remote: Counting objects: 22399, done. remote: Compressing objects: 100% (6091/6091), done. ... $ cd itools $ git status # On branch master nothing to commit (working directory clean) To see your local and remote branches use git branch, without and with the option -r respectively: # Local branches $ git branch * master # Remote branches $ git branch -r ... origin/0.15 origin/0.16 origin/0.20 ... origin/HEAD origin/master For now you only have one local branch called master, it is a branch of origin/master. Later we will see how to create new branches. The most basic thing you will want to do is to keep your branch up-to-date. This is done through a two step process, where the first one is to fetch the origin branches: $ git fetch origin ... Fetching refs/heads/0.15 from git://git.hforge.org/itools.git... Fetching refs/heads/0.16 from git://git.hforge.org/itools.git... Fetching refs/heads/0.20 from git://git.hforge.org/itools.git... ... This command updates your copy of the origin branches. Now you can ask what is the difference between your local branch master and the origin master branch: $ git log master..origin commit f4b64a9e49ed9ce66858ccd5461a0ef48a5870af Author: J. David Ibanez <jdavid@itaapy.com> Date: Thu Apr 5 11:57:57 2007 +0200 [xml] No more subclassing the Element class. commit 76698ec4bbea9f27447c2aee71c76af5a510efd9 Author: J. David Ibanez <jdavid@itaapy.com> Date: Wed Apr 4 19:26:13 2007 +0200 [xhtml,html] Now XHTML and HTML elements are the same... The output shows the new patches available (if your code is up-to-date the output will be empty). To synchronise with the trunk, use git rebase: $ git rebase origin First, rewinding head to replay your work on top of it... HEAD is now at f4b64a9... master Fast-forwarded master to origin. Now imagine that you want to work not in the master branch, but in the latest stable branch, 0.60 in this example. To do so you will have to create a new local branch based on 0.60, this is done with the command git branch: $ git branch 0.60 origin/0.60 Branch 0.60 set up to track remote branch refs/remotes/origin/0.60. $ git branch 0.60 * master To switch from one branch to another we use git checkout: $ git checkout 0.60 Switched to branch "0.60" $ git branch * 0.60 master As we have seen before to synchronize your 0.60 branch you will use git fetch and git rebase: # Fetch origin $ git fetch origin # Synchronize $ git checkout 0.60 $ git rebase origin/0.60 Now maybe you want to make some changes to itools. To use as an example, we are going to make some really useless changes: # Edit an existing file $ vi __init__.py ... # Add a new file $ vi USELESS.txt ... What have we done? Use git status to have an overview: $ git status # On branch 0.60 # Changed but not updated: # (use "git add <file>..." to update what will be committed) # # modified: __init__.py # # Untracked files: # (use "git add <file>..." to include in what will be committed) # # USELESS.txt no changes added to commit (use "git add" and/or "git commit -a") One thing the excerpt above shows is how important it is to read the output of the git commands, it will often tell what to do next. Before committing it is a good idea to double check the changes we have done, use git diff for this purpose: $ git diff diff --git a/USELESS.txt b/USELESS.txt new file mode 100644 index 0000000..ddb4b9a --- /dev/null +++ b/USELESS.txt @@ -0,0 +1 @@ +I was here! diff --git a/__init__.py b/__init__.py index 482b002..8a1ea48 100644 --- a/__init__.py +++ b/__init__.py @@ -16,8 +16,14 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA... +""" +This is itools. Period. +""" + + # Import from itools from utils import get_version, get_abspath +# The version __version__ = get_version(globals()) Now you must tell git what changes you want to commit, for this we use the git add command: $ git add __init__.py $ git add USELESS.txt $ git status # On branch 0.60 # Changes to be committed: # (use "git reset HEAD <file>..." to unstage) # # new file: USELESS.txt # modified: __init__.py # And now we can commit: $ git commit Created commit 612f41c: Add some useless comments. 2 files changed, 7 insertions(+), 0 deletions(-) create mode 100644 USELESS.txt The call to git commit will open your favourite text editor so you can add a sensitive description for your commit. We have seen the use of git add to add a new file or to tell that an existing file has been modified. There are other two commands you will need: To send your patches to be included in the main tree, the first step is always to synchronize: $ git fetch origin $ git rebase origin/0.60 ... If there have been new patches in the origin branch that conflict with your own patches, git rebase will fail, but it will give you instructions on how to address the issue. Read these instructions carefully, solve the conflicts and go ahead. Now you can check the patches you have done with git log: $ git log origin/0.60..0.60 commit 612f41cd3aa3f9dce0f0f54a55e46971d29e5ee8 Author: J. David Ibanez <jdavid@itaapy.com> Date: Wed Jun 27 15:50:45 2007 +0200 Add some useless comments. Everything is alright? Time to build the patches, with git format-patch: $ git format-patch origin/0.60 0001-Add-some-useless-comments.patch This call creates one file for every patch. Now you can send the patches. There are two ways: upload to bugzilla, or send by email. If there is an open issue in bugzilla for the bug or enhancement your patch addresses, it is best to attach the patch to that issue. If there is not, you may want to open one. The following figure shows the bugzilla‘s interface to attach a patch. Bugzilla‘s interface to attach a patch. To send a patch by email use the git send-email command: $ git send-email --to itools@hforge.org \ > 0001-Add-some-useless-comments.patch See the address to send the patches is the itools mailing list. You may also send the patch directly to me jdavid@itaapy.com. See below a summary of the git commands seen in this chapter: git add git branch git checkout git clone git commit git config git diff git fetch git format-patch git log git rebase git mv git rm git send-email git status For details about a command type: $ git <command> --help Footnotes
http://www.hforge.org/docs/git
CC-MAIN-2019-09
refinedweb
1,461
75.81
>>>>> "Grant" == Grant Likely <grant.likely@secretlab.ca> writes: Grant> On Thu, Jul 14, 2011 at 09:59:27PM +0200, Peter Korsgaard wrote: >> Change spi member of struct mcp23s08 to be a ops-specific opaque data >> pointer, and move spi specific knowledge out of mcp23s08_probe_one(). >> >> No functional change, but is needed to add i2c support. >> >> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> >> --- >> drivers/gpio/mcp23s08.c | 75 ++++++++++++++++++++++++++++++++-------------- >> static int __init mcp23s08_init(void) >> { >> - return spi_register_driver(&mcp23s08_driver); >> + int ret = 0; Grant> '= 0' is redundant.Will fix. >> + >> +#ifdef CONFIG_SPI_MASTER >> + ret = spi_register_driver(&mcp23s08_driver); >> + if (ret) >> + return ret; >> +#endif /* CONFIG_SPI_MASTER */ >> + >> + return ret; Grant> This change really belongs in the 3rd patch that adds the i2c Grant> registration.You can argue for both ways. With my approach the 3rd patch doesn'ttouch any of the spi stuff, but OK - I'll change.-- Bye, Peter Korsgaard
https://lkml.org/lkml/2011/7/15/61
CC-MAIN-2021-17
refinedweb
139
58.08
>>IMAGE.'" Now, if... (Score:5, Funny) ...only OpenBSD would catch up in every OTHER category... Re:Now, if... (Score:5, Insightful) ...only OpenBSD would catch up in every OTHER category... You can always port or build other software on OpenBSD. You can't really bring other operating systems up to OpenBSD security standards with just a compile or two. Make your pick: secure, or convenient. Re:Now, if... (Score:4, Funny) It's like saying "you can always port or build other software on GNU/Hurd". It's a broadly true statement, but a surprisingly meaningless one. Re: (Score:2) Who is porting things to Lunix except Lunix people? Who is porting things to Windows except Windows people? Notice a pattern here? Re: (Score:2) True, but kernel deficiencies cannot be fixed that way. Re:Now, if... (Score:4, Interesting) Secure By Default only seems obvious in retrospect. Remember when OSes like RedHat 5 and Windows 2000 automatically started a shitload of network services? No I don't need to run Finger or share my printers over HTTP. Predictably, they got owned before you could download the patches. Re:Now, if... (Score:5, Insightful) Still running default services and just hiding them behind a firewall is a stupid, not having them running at all is far more sensible. Re: (Score:2) you don't understand that these two are related. Chasing the latest trends all the time means you don't have time to check them in depth. Security very often is, first and foremost, simple. If you have one simple and one complex solution to a problem, in most cases the simple one will be more secure, because it is easier to find bugs, review the code, less likely to contain unexpected side-effects, etc. etc. Re: (Score:2) Because the SAME message has been randomly posted a bunch of times as replies to completely unrelated topics. I guess you are confirming that you at least spent the effort to copy and paste it? Bravo for you. But it's still spam. Re: Now, if... (Score:3, Informative) The openbsd installer is one of the fastest and easiest installers I have seen. I prefer the developers work on developing a secure and functional system then waste time making a pretty GUI for the people who have phobias of text interfaces, or can't be bothered to learn how to edit a text file. Re: (Score:2, Insightful) Complete aversion to documentation? Are you sure you're thinking of the OpenBSD folks? I think you might be confusing them with the Linux crowd. Re: (Score:2) Shit man, my fucking BIOS has a goddamn GUI these days I called, I want my 90s back. Dammit what on earth would you want a GUI-driven BIOS for? Probably depends on a mouse, even. Would not purchase. Re:Now, if... (Score:5, Insightful) What method could possibly be more convenient, simple, and appropriate than opening the file with your text editor of choice and deleting the line? What do you expect? Some bulky "management interface" to hold your hand while you take 10 times as long as necessary to do the simple task of *removing an entry from a text file*? What is wrong with you? Re: (Score:2) Re: (Score:3) Still storing personal SSH keys in plain text, by default, ... You mean like every other Unix utility out there? Oh please. Yes, every other unix does it like that, and Linux, too. However what is stored in plain text is the public key, there isn't anything wrong with that to begin with. Making it inaccessible by whatever means would defeat its purpose Re:Now, if... (Score:4, Funny) Indeed. You can have my public key. What are you going to do with it, grant me access to things? THE HORROR! Re: (Score:2) can anyone ever hope to be a bigger dick than Theo? Guess that means two categories. No, but fortunately most would be happy having a bigger dick that Theo. Yeah (Score:5, Funny) Good old Theo De Raadt. Half human, half cunt. Re: (Score:2) Re:Yeah (Score:5, Insightful) And usually right. Not really (Score:4, Informative) He's often "technically correct". What I mean is that OpenBSD is really secure in its default setup... because it doesn't do fuck-all. Security via turning off everything isn't really that impressive. When something is supposedly so much superior on a security front, yet seems to get very little usage, well, there's a reason. Also, even if you are right, you shouldn't be a dick about it. Perception matters in the world and if you want to persuade people to your position, you need some empathy. If you act like a jerk all the time, it puts people off and makes them dislike you, and thus not consider the content of your claims. Re:Not really (Score:5, Funny) Re: (Score:3) Having nothing running by default is just basic, if you want to open a service to the world then you should have to explicitly turn it on. Re:Not really (Score:4, Informative) Not having stuff running by default is not the only thing OpenBSD does. It has a crapload of features regarding security, starting with the very nice firewall, so please go educate yourself and then comeback. That system is perfect for production systems like web servers and proxy servers which is where I use it. Re:Not really (Score:5, Funny) He's often "technically correct". You are aware that that is the best kind of correct, right? Re:Not really (Score:5, Funny) Technically, yes. Re: (Score:3) Re: (Score:3) The majority of Dutch people are too nice and prefer to avoid violence, otherwise those rude dicks (and have quite a lot of them over here) would have been taught a quick and painful lesson in manners early on in life. It doesn't help that some go on to careers in television of publicly degrading their fellow humans for entertainment and setting a bad example. (And before you complain that television is the same everywhere, remember that Big Brother and the majority of those shitty talent shows that followed Re: (Score:2, Flamebait) The majority of Dutch people are too nice and prefer to avoid violence, otherwise those rude dicks (and have quite a lot of them over here) would have been taught a quick and painful lesson in manners early on in life. A little-known fact about the origins of WWII: Anne Frank wrote some pretty nasty stuff about Hitler in her diary, and word got out. Re:Yeah (Score:4, Interesting) Except Theo de Raadt is only Dutch in a very remote way: he is Canadian, and his parents emigrated to Canada from South Africa. So yeah, Dutch, sure - You probably don't know anything about him, right? Re: (Score:2) You don't know much about English, yet you're using it. emigrated to I really don't see the difference. Re: (Score:2) In my experience the Dutch have always seemed very direct, but I'm not offended by that, and they've also always appeared to be the friendliest nation on earth. (Although I can only admit to knowing about 20 nationalities we Re:Yeah (Score:5, Interesting) Let's start with the premise of TFA, which cites the article on Ars that was covered here a few days ago and was complete nonsense about the new random number infrastructure in FreeBSD. We are not moving away from using the hardware random number generator directly, we have never used the hardware random number generator. The new code that the Ars article was talking about is to allow the PRNG to be easily switched. In 10 we're shipping both Fortuna and Yarrow and the infrastructure allows more to be added. The code has been reviewed by two cryptographers that I know of and possibly others. Neither the old nor the new implementation is vulnerable to the attack against random number generators that was published a couple of months ago (Linux was the subject of the paper, not sure if OpenBSD was vulnerable). If Theo is going to make such remarks as this, he should think more carefully first: "Basically, it is 10 years of FreeBSD stupidity. They don't know a thing about security. They even ignore relevant research in all fields, not just from us, but from everyone." He'd be advised to take a look at the transactions for the IEEE Symposium on Security and Privacy over the last 10 years and see how many papers are describing techniques that were both originally implemented on FreeBSD and are now part of the default install. Let's take a look at the two systems, from a security perspective. Both FreeBSD use SSP and non-excutable stack by default, so I'll skip those. To begin with, OpenBSD features missing on FreeBSD: W^X enforcement. Definitely a nice idea, but it breaks some things (JITs mostly). The default memory map in FreeBSD is W^X, but it is possible to explicitly mmap() memory both writeable and executable. It's generally considered a bad idea though, and we don't ship any code that allows it. We permit third-party code to shoot itself in the foot if it really wants to and provide mitigation techniques to reduce the risk. Then there's ASLR. This is a pretty nice technique, which is currently not implemented on FreeBSD. We do support PIE, so it would not be a horrendously difficult thing to add, but current implementations (including OpenBSD) use a surprisingly small amount of entropy in the address layout and so don't provide as much mitigation as you'd hope (which, of course, Theo knows, because he's very familiar with 'relevant research'). This is especially true on 32-bit systems. And that's it for OpenBSD. Well, unless you want to count , but since that's vulnerable to a [openbsd.org] timing attack [watson.org] (still not fixed), which was published in the USENIX Workshop on Offensive Technologies, and Theo is aware of all 'relevant research' in security then it can't really still be there. Now let's look at FreeBSD security mechanisms: First up, jails [watson.org]. Jails are somewhere between a chroot and a VM: a shared kernel, but all of the global namespaces (filesystems, IP addresses, users) are separated and so you can completely isolate a service, such as a web browser, from the rest of the system. Scripts like ez-jail in the ports tree make it easy to set up lightweight service jails. Then there's the MAC framework [acm.org], which allows modular access control policies. This is used by a couple of FreeBSD derivatives: JunOS uses it to implement code signing, OS X and iOS use it for application sandboxing. You can also use it for traditional type enforcement policies, as in SELinux and a variety of other things. And then there's Capsicum [acm.org], which adds a capability model on top Quick Wiki Summary (Score:5, Insightful) "De Raadt has been criticized for having a somewhat abrasive personality..." Re:Quick Wiki Summary (Score:5, Funny) Note: That wiki summary was from the entry on "Understatement of the Year, 1996-2013 inclusive" Re:Quick Wiki Summary (Score:5, Funny) Re:Quick Wiki Summary (Score:4, Informative) Re: (Score:2) Linus a bit more restrained?? ROFLMAO as the young uns say today. He once called the OpenBSD developpers a bunch of masturbating monkeys, for crying out loud! I'll grant you that he is a bit funnier than Theo in his trolling, though. Re: (Score:2) Deathmatch with RMS. Re: (Score:2) "De Raadt has been criticized for having a somewhat abrasive personality..." Or... Theo has been praised for occasionally not being a (total) dick - especially when he's right. [ You say tomato... Perspective is everything. ] Re:Quick Wiki Summary (Score:5, Insightful) I've personally exchanged emails with De Raadt on the OpenBSD mailing list. Actually, he weighed in on a conversation which didn't initially involve him. He wa calm, helpful and polite and the discussion was a productive one. Why was this? I didn't start off by being extremely rude to him. Because I did my homework and found out as much as I reasonable could with my knowledge and skills. Expecting someone like that to hold my hand and do my homework for me for free no less is exceptionally rude. Somehow many people are too dumb and selfcentred to realise this. constructive criticism (Score:2) you're doing it wrong. Re:constructive criticism (Score:4, Insightful) Well, he did produce OpenBSD, which could be seen as constructive criticism in a sense (instead of just complaining, build something). But yeah, if you mean constructively criticizing things in text, that's not really his strong point. Framing the debate (Score:4, Informative) As usual: - Theo is a complete asshole, but also quite correct about most things. OpenBSD is rather behind the times in general, but very good at what it does do. And their stance on BSD license and making BSD tools is great. - FreeBSD really is stupid about some things. Let's take for instance their complete refusal to implement any strong security in their distribution chain. You can't verify their ISO's or packages back to their source in any way. Their repo is ancient svn, not git or monotone, so they have no signable hashes in their repos. There's no deterministic builds. etc. And when you bring it up, they just handwave about process and workflow as reasons to continue doing the same. FreeBSD is pretty damn good as an OS, but their standing on these things is BULLSHIT. Re:Framing the debate (Score:5, Interesting) How is OpenBSD any different in that regard? They rewrote CVS (OpenCVS) for heaven's sake, so they didn't have to move to SVN, let alone Git. And Git's hashes are not for the sake of security. Linus made that abundantly clear when he refused to allow SHA-2 to be used, even after people were able to manufacture a Git collision using SHA-1. People misunderstand what makes OpenBSD secure. OpenBSD is about being conservative and simple. Lots of the things they do seem backwards or antiquated. In this case, XORing your random bit streams is as conservative as you can get. And when Theo talks about following the research, it's not to jump on fancy new technology, but in tracking the evolution of software and cryptographic exploits and trying to preemptively get out of those paths. That's opposite of Linux and FreeBSD, where they're constantly chasing new features, new optimizations, and new technologies. Re:Framing the debate (Score:4, Informative). Re: (Score:2) The GP might be talking about this [lkml.org]. Re: (Score:3, Informative) But in the mail you link to, Linus was talking about collisions of the *first 7 characters* of the SHA1-Hash, not a full SHA1 collision. This is opnly important, because in many situations, git defaults to printing only the first 7 digits of the hash, not the full hash. It is *not* a SHA1-collision. Up to this date, there is no (public) known SHA1 collision, and there is no (public) known method to generate one within any reasonable time frame. Re: (Score:2) <FX: tumbleweed.swf> *And* even a collision would most likely not be a threat - as you have to get one of the colliding things approved. You can't just dick around with trailing spaces to get hashes to agree, or put random strings in comments, without reviewers noticing and rejecting it (however, I guess you could include some extra numbers in a lookup table that were subtly never used, but if they were to change between reviewed versions, that would be highly suspicious). What's ne Re: (Score:3), but git's structure does allow for some innate security because, if a colliding SHA1 hash is to show up... git looks at the new object, says "Huh, I already have that one." and just uses a reference to the original object instead. I'm Re: (Score:2) All you sign is the commit, i.e. a SHA1 hash. Re: (Score:2) It's perfectly standard to sign a secure hash, there's nothing unusual here. Re: (Score:2) And exactly how is being conservative and simple a problem with security? Re: (Score:2) Seems to me it means Linus understands tradeoffs in security and isn't willing to throw extra CPU time at a very narrow theoretical hole (sha1 gets broken without sha2 being broken as well) Re:Framing the debate (Score:5, Informative) Yeah the bit that struck me here was that Theo was relatively complimentary about Linux and Linux devs. eg mentioning Linux also did this stuff ages ago and that OpenBSD used some research from Ted Ts'o (and others) in their implementation. So the complaint wasn't about credit for who was first, just about how FreeBSD got a bunch of Snowden related media coverage for something practically everyone else did ages ago as if it was something new to worry about. Re: (Score:3) So the complaint wasn't about credit for who was first, just about how FreeBSD got a bunch of Snowden related media coverage for something practically everyone else did ages ago as if it was something new to worry about. FreeBSD may have a better marketing department than OpenBSD, but not as good as Ted Tso's, because Ted Tso is just awesome. Re: (Score:2) Re: (Score:2) Ted Tso is just awesome. I remember being here when ext4 was released, and there were some major performance issues. People hated on him like he was burning orphanages. Re: (Score:2) I'd take issue with your second point. All binary updates using freebsd-update are signed and that mechanism is used to distribute the signing keys for packages. When you do 'pkg install' on a recent FreeBSD system, it will bail if the packages don't match the signature. We also have a revocation system in place that allows us to easily revoke keys if the package building system is compromised. We just received a large grant from Google to work on package transparency, a mechanism akin to certificate tr And one more thing... (Score:2) Stay off his lawn! Apples and oranges (Score:2) I'm sure every OS-maker out there has something to learn from OpenBSD, but Theo De Raadt seems incapable of acknowledging that others may have different design criteria than OpenBSD. If they wish to support their customers and gain more business, Red Hat, Apple or Microsoft, for instance, cannot make security the only factor. They have to be quick at supporting some new hardware, provide ease-of-use features and add new features or be considered obsolete very quickly. The same goes for plenty of makers of h Hardware encryption is great, but in practice... (Score:3) The biggest security hole in any operating system is the same in every operating system - the source of ID-10-T and PEBKAC errors (Idiot, and Problem Exists Between Keyboard and Chair) - the OS can be totally secure and hardened, but if it allows users to do stupid stuff then it is still going to be vulnerable. Unless, of course, the system is totally locked down so that it resembles the IT version of a strait jacket, in which case users will spend as much time cursing the fact that the computer stops them working, and trying to get around your restrictions to see their lolcat pictures as they do actually working. Re:so letting the nsa hire someone (Score:5, Insightful) to write your ipsec, thats the definition of security. Exactly. The NSA is the one you are protecting yourself against . Why would you EVER trust any cryptographic primitives designed by them at all? Being able to fully trust the cryptographic primitives on a system is not a new thing though... those NSA guys have tainted so much everywhere simply because it is their job description to decrypt sensitive communications for the intelligence community. Microsoft anyone? Re: (Score:2, Interesting) First thing I do with security is look at who I am protecting against, and throw resources at the most common things first: 1: Web browser and add-on compromise is an issue... thus AdBlock, NoScript, and other things, not to mention running all Web browsers in a VM, jail, or sandbox. 2: Theft is common, so I encrypt all my HDDs. That way, Jack Meth-head who grabs a computer will get... hardware. No data is on the black market for blackmail or extortion. 3: Backups are protected on the cloud, because even Re:so letting the nsa hire someone (Score:5, Insightful) To play devil's advocate for a second (and from someone who is as opposed to the NSA's spying as anyone), they job is also to prevent adversarial spying on us. That presumably applies much more to government functions than day-to-day ones, but if, say, the military or state department actually follows the NSA's suggestions, there's a decent chance that those suggestions are pretty close to as good as it gets. Re: (Score:2) Re: (Score:2) The Air Force won't let the Marines fly the thing, because planes are for the Air Force (unless they land on a ship). I've often wondered why the USMC never let out an RFP to make a carrier-worthy A-10. Re: (Score:3) pretty sure they did but Navy shot it down?-D Re: (Score:2) I don't doubt that the NSA is highly skilled and that one would be wise to follow their suggestions for best practices. Certainly pay attention the NSA suite B. That being said, why on Earth would one trust a cryptographic primitive that the NSA was involved in creating? It reminds me of the scorpion and the frog crossing the river. The NSA is strongly compelled to compromise as much of the US communications infrastructure that they can, as well as the rest of the world. Those activities are in the furtheranc Re: (Score:2) Are you saying that NSA hasn't yet created enough havoc, that you wish the State Department and the Military to join NSA in making even more violations to our Constitutions ?? When he said suggestions (not examples), I think he meant something like the NSA's Information Assurance [nsa.gov] recommendations. Check it out, it's quite informative (+5 Informative). Re: (Score:2) I second that. Some of their guides are ooold, but look rock solid. That isn't too surprising, corporations and politicians never follow guidelines and probably wouldn't understand the NSA's anyway. So the risk of protecting their real opponents is nil. (If they were worried about terrorists, black hats, etc, that would be another matter.) Re: (Score:2) Re: (Score:3) If I didn't need more throughput than a single CPU can provide, I'd still be on OpenVPN for everything. It's easier to configure, significantly easier to manage, and rock fricking solid in the face of network unreliability - none of which I can say for IPSEC. Re: (Score:3) The lot is cast into the lap, but its every decision is from the LORD. God says, "do_you_get_a_cookie I_quit Venus application bring_it_on how's_the_weather." I don't know why people downvote you. We should just use your posts as a form of high entropy communication and use it for cryptography. No one can predict what you will say.... Re: (Score:2) Re: (Score:2, Informative) aaa.... everywhere? just cause you are living under a rock, doesnt mean that everybody else is. dunno what os you're using right now, but chances are pretty high you're using a tool/technology/library developed by one of these bsd's. windows - shitton of tools are taken verbatim from freebsd (network related) mac - is a freebsd 5 clone, with improvements made to it (plus a ui) and backported from the main release. they have on payroll a fair few of the freebsd folks. all of them (linux included): anything secu Re: (Score:2) Re: (Score:2) Of course they might share some stuff, but the parent post is talking about things like OpenSSH among others. Re:Do these projects OpenBSD, FreeBSD matter anywa (Score:4, Insightful) ...Why should I care? Where in the world is serious stuff being done on any of these platforms? Just asking... When it comes to security, De Raadt is like House [wikipedia.org] So I guess it matters if you care about security. Then again, since we don't really use secure software or systems, that point is kind of moot. Re:Do these projects OpenBSD, FreeBSD matter anywa (Score:4, Informative) Also, Mac OS X is essentially a fork of FreeBSD. The OS on all Juniper equipment is a modified version of FreeBSD. The Playstation 3 and 4 OS are both modified FreeBSD. Plus more [freebsd.org]. Re: (Score:3, Informative) Also, Mac OS X is essentially a fork of FreeBSD. Bull [wikipedia.org]-fucking [wikipedia.org]-shit [slashdot.org]. I know this is slashdot, but for fuck's sake you should still know better than that! And +5 informative too? What the fuck is wrong with you people? Re: (Score:3, Informative) Pedant fail. The basis for OS X was NeXTSTEP, and the basis for NeXTSTEP was BSD. Have you considered switching to fucking decaf? Then you might notice that operating systems are more than just a kernel. Re: (Score:2) PARTS of BSD, it's a Hybrid with XNU and it's part monolithic and microkernal and they've developed Darwin beyond all recognition from that point. To say it's FreeBSD or OpenBSD or your dad's BSD is to invite the wrath of people who drank too much coffee, and I think Odin. Because that's just the kind of thing that will get you punched in a mainframe computer center. Re: (Score:2) Don't get so upset -- it's a common mistake on Slashdot to mistake Scientology for XNU. Re: (Score:2) Re: (Score:2) More stable? Reliable? Secure? In all cases, anecdotes are not useful. Where's the evidence? Is it the license that matters? The license, pf, and a reputation for networking speed. Anecdotes do matter, though - Netflix works and is profitable, so if your use case is like Netflix's then FreeBSD probably will work for you. Speaking of anecdotes, a trend that I've noticed is that linux fans will tend to use FreeBSD when it makes sense in a particular application, and FreeBSD fans will tend to use linux when hell Re:Do these projects OpenBSD, FreeBSD matter anywa (Score:5, Interesting) One corp claimed to have over 10,000 VMs and paid RedHat for enterprise support for those VMs with a 5 year contract. They're still locked into contract, but they switched to FreeBSD because they can cut down their number of VMs by 30% and get the same performance. They also found it easier to manage FreeBSD. They're paying for that contract, but not using it. I bet that was a fun sell to management. Re: (Score:2) Have a look at their donations page [freebsdfoundation.org] Companies support this project because they are doing serious business with FreeBSD. Re: (Score:2) Where in the world is serious stuff being done on any of these platforms? Just asking... Firewall and NAS solutions are often based off of FreeBSD. See, for example, m0n0wall [m0n0.ch] and its derivatives, as well as the popular FreeNAS [freenas.org]. One big advantage of BSD for NAS applications is that it can support ZFS. (Linux attempts have been half-assed, largely due to licensing conflicts.) You really want ZFS if you are building a robust, reliable NAS device. Re: (Score:2) Re: (Score:2) Re: (Score:2) Re: (Score:2) Yes, they matter. Even if nobody in the world would be using OpenBSD, it would still be worth doing it, because it is living proof that a secure Unix-based OS is possible if only its makers can be arsed to give a fuck about security and do the hard and not always exciting work required for it. Re: (Score:2) Yeah, but working as an Internet server is easy. What do you need, a network card driver and some server software? That problem has been solved a long time ago and almost any OS can be used for the purpose. Now, give me a cool, fast, usable and bug-free desktop and we will start talking. Re: (Score:2) Working as an internet server is easy, sure, we've had Microsoft's IIS and Raspberry Pi's doing it. Working as a safe, stable, secure one is hard, and for that we have the BSD's. Re: (Score:2) Just to remind you, His Holiness Saint Jobs forbids reading about heretic technologies. Then maybe he should've fired the folks responsible for Apple's Internet connection, given that it was, at least as of 2011, quite possible to read, and post to, Slashdot from Apple's corporate network. Re: (Score:2) Yeah those lamerz at OpenBSD... From Wikipedia: Proprietary systems from several manufacturers are based on OpenBSD, including devices from Armorlogic (Profense web application firewall), Calyptix Security, GeNUA mbH, RTMX Inc,[5] and .vantronix GmbH.[6] Later versions of Microsoft's Services for UNIX, an extension to the Windows operating system which provides some Unix-like functionality, use much OpenBSD code included in the Interix interoperability suite, developed by Softway Systems Inc., which Microsoft Re: (Score:2) Re: (Score:2) You don't know anythin about OpenBSD, do you? Just read this and learn something: [openbsd.org] Re: (Score:2) RTFA. OpenBSD is using hardware crypto, but only to "stir" the bottom of the entropy pool. The real random-number generation is done internally by the OS, which is as it should be. OpenBSD has been one of the first free OS to use the CPU randomization functions starting with VIA C3, but, again, they do not trust these 100%, which is what you expect out of serious, professional paranoids. OpenBSD has a security errata page and an open security mailing list - it was the first open source OS to open its CVS to an
http://tech.slashdot.org/story/13/12/16/0121213/theo-de-raadt-says-freebsd-is-just-catching-up-on-security
CC-MAIN-2014-52
refinedweb
5,121
62.98
Beginners: please read this post and this post before posting to the forum. 0 Members and 1 Guest are viewing this topic.. #include "SoR_Utils.h" #include <avr/io.h> // include I/O definitions (port names, pin names, etc) In microcontroller it's not so easy. You don’t have screen to show output The LCD interface consumes many of the I/O pins. The. QuoteThe.Most LCDs today use the UART, so yeap you can normally use it. However, it appears the avr butterfly does not use the uart for the LCD . . .As for programming in C . . . try this compiler: my code to do the wavefront algorithm simulation using that compiler: should make sense if you stare at it for awhile . . . its well commented code . . .First just try compiling the code without changing anything. Then make changes here and there to see how the output changes. admin thats a pretty cool code. but I'm gona stick with hello world for now since I'm gonna be useing this mainly for robots, wouldnt it be better getting avr studio? Quotesince I'm gonna be useing this mainly for robots, wouldnt it be better getting avr studio?dev c++ can't compile for microcontrollers (at least to my knowledge).you must use gcc, which is what AVR Studio uses. The reason is that any advanced levels of C work for computers but not necessarily from mcu compilers. In the same vein it is likely that you will learn a lot from the BASIC languages and then use this knowledge for C development. A lot of C type things in books specialise in graphics and sound and computer i/0 - you dont actually need these and they are dependant on the computer platform that you are using. For MCU's it is only the very basic structures of the language. i will once i get teh $50 robot up and runningwith dev c++ i was able to compile and link the hello world, but couldnt execute it in xp nor vista nor cmd it just didnt do nothing
http://www.societyofrobots.com/robotforum/index.php?topic=2763.0
CC-MAIN-2017-34
refinedweb
346
73.17
You can click on the Google or Yahoo buttons to sign-in with these identity providers, or you just type your identity uri and click on the little login button. I noticed pylint doesn't handle well the case of: @property def foo(self): return self._bar.foo @foo.setter def foo(self, foo_val): self._bar.foo = foo_val Though it's a perfectly valid case syntax since python2.6 It says I defined foo twice, and doesn't understand the ".setter" syntax (Gives E1101 & E0102). Ticket #51222 - latest update on 2011/12/08, created on 2010/11/16 by Yoni Tsafir add comment - 2010/11/23 07:28
https://www.logilab.org/ticket/51222
CC-MAIN-2019-13
refinedweb
108
75.5
Creates a directory with a specified name and access mode. Syntax #include <prio.h> PRStatus PR_MkDir( const char *name, PRIntn mode); Parameters The function has the following parameters: name - The name of the directory to be created. All the path components up to but not including the leaf component must already exist. mode - The access permission bits of the file mode of the new directory if the file is created when PR_CREATE_FILEis on. - Caveat: The mode parameter is currently applicable only on Unix platforms. It may be applicable to other platforms in the future. - Possible values include the following: 00400. Read by owner. 00200. Write by owner. 00100. Search by owner. 00040. Read by group. 00020. Write by group. 00010. Search by group. 00004. Read by others. 00002. Write by others. 00001. Search by others. Returns - If successful, PR_SUCCESS. - If unsuccessful, PR_FAILURE. The actual reason can be retrieved via PR_GetError. Description PR_MkDir creates a new directory with the pathname name. All the path components up to but not including the leaf component must already exist. For example, if the pathname of the directory to be created is a/b/c/d, the directory a/b/c must already exist.
https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSPR/Reference/PR_MkDir
CC-MAIN-2020-05
refinedweb
199
62.95
25 September 2007 09:44 [Source: ICIS news] SINGAPORE (ICIS news)--Petrochemical Industries Co (PIC) will shut down its 120,000 tonne/year polypropylene (PP) plant in Shuaiba for a 49-day maintenance turnaround on 22 December, after the three-day Eid holidays, a source close to the company said on Tuesday. ?xml:namespace> The shutdown would be in line with the turnaround of its propylene feedstock supplier’s refinery, the source said. Kuwait National Petroleum Co (KNPC), which holds a 100% stake in PIC, produces 100,000 tonnes/year of propylene at its refinery in Shuaiba. “The shutdown will not have much impact on PP supply in the region, as NatPet’s PP plant at Yanbu will go on stream in December,” a trader said. PP supply in the ?xml:namespace> PIC has only just resumed full production at its PP plant after a 10-day outage which ended on 21 September. Saudi Polyolefins Co’s 450,000 tonne/year PP plant at Al-Jubail restarted two weeks ago after a 25-day scheduled maintenance.
http://www.icis.com/Articles/2007/09/25/9064673/kuwaits-pic-to-begin-pp-shutdown-in-december.html
CC-MAIN-2013-20
refinedweb
176
57
an implementation of a OPC UA stack fully written in javascript and nodejs @AndreasHeine Thanks for the feedback and advice. I always start reading the specification at the very beginning. More is in the document I have pointed out in my post. BTW It contains a namespace and a string should be `This structure contains a namespaceIndex and name fields" - but ok it could be recognized as a typo. For example, consider "Name" BrowseName - how to discover the correct namespace? In many UANodeSet files, I am analyzing, assuming that "Name" == "0:Name" (are equal) a lot of errors are a result if "Name" comes from the inheritance chain, i.e. are a member of a type defined in namespace 1, 2, ..... For example, look at the snippet that comes from a generated UANodeSet file I am using for testing purpose: I have got it from one of the contributors to my project. The question is if it compliant with the specification or not? If yes it means that "Name" in a derived instance is defined by OPC UA standard (is in the default namespace), if no thousands of errors like this will be reported. @AndreasHeine my goal is to make sure that the nodeset files will recv they true ns-index after importing them to the server! for all the servers is really true. How to prove that the behavior of servers will be similar or the same. To promote the reusability of the models we must be sure how to deal with that. @AndreasHeine What x must be in x:Name in a derived instance say defined in the namespace of index 2? I expect ` ,0 ,1 ,2`..
https://gitter.im/node-opcua/node-opcua?at=607018cc1f84d71853a791b6
CC-MAIN-2021-25
refinedweb
279
70.94
Detect car crash G force with accelerometer I know how to wake on accelerometer interrupt when sleeping but is it possible to detect a car crash or hard brake while a program is running? I assume that it would have to run in a separate thread (if that is even possible). @jcaron I'd like the value so I can assess how severe the force was before deciding how to act/report. Hard brake or collision for example. This code spits out (x,y,z): def acceleration(self): x = self.i2c.readfrom_mem(ACC_I2CADDR , ACC_X_L_REG, 2) self.x = struct.unpack('<h', x) y = self.i2c.readfrom_mem(ACC_I2CADDR , ACC_Y_L_REG, 2) self.y = struct.unpack('<h', y) z = self.i2c.readfrom_mem(ACC_I2CADDR , ACC_Z_L_REG, 2) self.z = struct.unpack('<h', z) _mult = self.SCALES[self.full_scale] / ACC_G_DIV return (self.x[0] * _mult, self.y[0] * _mult, self.z[0] * _mult) So I think I need to use a formula to calculate the g force from these values. I think @shaunix do you actually need to get the value, or do you just need to be sure it exceeds the given threshold? Have you read the accelerometer’s data sheet? It’s the best source of information on the subject, though it has a few errors IIRC. @jcaron So I managed to trigger the event but now I need to figure out how to return the G value. I'm using the LIS2HH12.py library found in the examples. acceleration() returns (x,y,z) and now I have to figure out how to get the G force. It is not clear to me how the G threshold that is passed is compared to the actual G force generated. I assume there is a calc in there somewhere but it is not obvious to me. That makes sense. Thanks for pointing me in the right direction. @shaunix You can probably just set up the accelerometer the same way as for wake up, and add a trigger on the pin going high. It should be much more efficient than constantly reading from the accelerometer just to detect if it goes over a threshold.
https://forum.pycom.io/topic/4802/detect-car-crash-g-force-with-accelerometer
CC-MAIN-2021-43
refinedweb
356
68.36
In a previous post we looked at the importance 🤓 of modeling content in Kentico Xperience and the impacts of that content modeling on our code. We asked the question "How well does our code match the content model? Especially, when working with optional or missing data." We saw that nullable reference types can help express that data is missing, but they aren't the only tool 🔨 at our disposal for handling or modeling missing data in our Kentico Xperience applications. In this post we're going to look at one of those alternative tools - the Null Object Pattern. 📚 What Will We Learn? - What are the problems with modeling our code using only nullable reference types - Implementing the Null Object Pattern with our Call To Action ImageViewModel - Where do we fall short with the Null Object Pattern? 🍃 A Refresher - Our Call To Action Let's quickly look back on our example Call To Action Page Type which represents our content model in code: public class CallToAction : TreeNode { public bool HasImage { ... } public string ImagePath { ... } public string ImageAltText { ... } } This Page Type has some optional content - the "Image" - which is represented by the three properties in the CallToAction class. If CallToAction.HasImage is true, then we expect ImagePath and ImageAltText to have values, if it is false, then we will ignore the values and act as though we have no Image for our Call To Action. Now, let's look again at our HomeController where we were trying to work with our Call To Action: { Path = cta.ImagePath, AltText = cta.AltText } : null }; return View(viewModel); } } We use a property, CTAPage, on our Home Page Type to find our Call To Action and then create our HomeViewModel with an optional Image: public class HomeViewModel { public string Title { get; set; } public ImageViewModel? Image { get; set; } } public class ImageViewModel { public string Path { get; set; } public string AltText { get; set; } } Since HomeViewModel.Image is nullable, our code models the true nature of this content 👏🏽 - it is optional and might not exist. When we go and render our HomeViewModel in the Razor View, we can ensure we account for this potentially missing content: @model HomeViewModel <h1>@Model.Title</h1> @if (Model.Image is not null) { <img src="@(Model.Image.Path)" alt="@(Model.Image.AltText)" /> } And with that, we've ensured that our code models the content accurately which means we are handling the business requirements and writing a more robust application 💪🏾. 🕳 The Problems with Null What Does Null Really Mean? Using null to model missing data is a great first step, but its a slightly awkward 🙃 tool sometimes because the C# that represents our content model isn't the only place we will find null in our codebase. This leads us to the following questions: - In our code, where is the value nullfound and what does it mean? - If I'm a new developer coming into this code base and I see a method returning a nullable value, do nullresults imply something I should expect? (Should I log/display an error or not?) - Is nulla normal value that represents the content model (intentionally missing) or is it the result of bad data (unintentionally missing)? When we think about the core types of C# as a language, null is not that different from int, bool, and string - they're all primitives and have no inherit meaning to the business concerns of an application. Relying on too many primitive types to represent our content model could be considered a case of primitive obession. The only thing that null tells us is 'There's nothing here' but it doesn't answer the question of 'why?' there's nothing. Null is a Special Case As we start to use nullable reference types in our code, we'll see that each time we come across a null value, we have to treat it as a special case. This is a good thing and helps us prevent NullReferenceExceptions at runtime. At the same time, our code becomes cluttered with these 'special cases'. An example of this can be seen using the code that populates our HomeViewModel: var viewModel = new HomeViewModel { Title = home.Fields.Title, Image = cta.HasImage ? new ImageViewModel { Path = cta.ImagePath, AltText = cta.AltText } : null }; We now have a HomeViewModel with an Image that is potentially null. If we want to set a default AltText we need to make sure we don't cause a NullReferenceException, so we guard 🛡 against that condition: if (viewModel.Image is object && string.IsNullOrWhiteSpace(viewModel.Image.AltText)) { viewModel.Image.AltText = "An image"; } Any time we want to perform some operations on the nullable property, we need to first ensure its not null, and for more complex View Models it's not hard to imagine examples with lots and lots of checks like this. We know this is a problem, but what's its cause 🤷🏼♀️? Nullable Reference Types are Unions Types The core issue is that null and ImageViewModel are two completely different types and using nullable reference types is really a way of creating a new type that the C# compiler can reason about. That new type is ImageViewModel or null (sometimes written as ImageViewModel | null). This is called a Tagged Union Type 🧐. Since these two types have different properties and methods (different 'shapes'), namely that null has no properties or methods, we have to check first to see which type we're actually working with. Talking about nullable reference types this way shows how glaring of a problem nullwas in C# before nullable reference types were added. The C# compiler treated the two types ImageViewModeland ImageViewModel | nullas the exact same type, despite the problems we've just shown this can cause! Ooof! 🤦🏻♂️ What we'd like to do is change that ImageViewModel | null type back into a plain old ImageViewModel, so its not as complex to work with, but also handle scenarios where the content is missing 🤔. 🧩 The Null Object Pattern Fortunately for us, there's a design pattern that does exactly what we are looking for, and it's called the Null Object Pattern. The Null Object Pattern lets us get rid of null, using the custom type we've already defined, while also handling the scenarios where we have no data to populate an instance of this type 😀. Creating a 'Null' ImageViewModel Looking at our ImageViewModel, we could implement the Null Object as follows: public record ImageViewModel(string Path, string AltText) { public static ImageViewModel NullImage { get; } = new ImageViewModel("", ""); public bool IsEmpy => this == NullImage; public bool IsNotEmpty => this != NullImage; } First, we change from a C# class to a C# 9.0 record (which you can read about in the Microsoft Docs) for reasons that will soon become apparent. We also add a public static property that is read-only (it only has a getter) and name it NullImage. This property is the same type as the enclosing class ( ImageViewModel), which means anywhere we need an ImageViewModel we can use NullImage. NullImage also has some default values for its properties, which means any interactions with it will behave how we would expect (it's not dangerous to operate on the way null is 😉). This is a key point of the Null Object Pattern - we want to represent the null special case using our type, which gets rid of the null, and we also want our null case to behave the same as all other cases so we don't have to guard against those scenarios everywhere 😅. Notice that by making the NullImage static and read-only, it's effectively a Singleton. This is another powerful feature because it lets us check if any ImageViewModel instance is the NullImage by performing a comparison. With C# record types, equality of objects is defined by the equality of the values in the those objects, not by the references to a spot in memory, like with C# classes 🤓. This means any ImageViewModel created with an empty string for both the Path and AltText will be 'equal' to the NullImage. var house = new ImageViewModel("/path/to/image.jpg", "A House"); Console.WriteLine(house == ImageViewModel.NullImage); // False var emptyImage = new ImageViewModel("", ""); Console.WriteLine(emptyImage == ImageViewModel.NullImage); // True Finally we create some convenience properties, IsEmpty and IsNotEmpty, on the ImageViewModel which compare the current instance to NullImage. If we need to modify the Title or AltText of objects we've created, we can use the C# record with syntax, which lets us clone an object into a new one while also selectively updating values 🧐: var image = new ImageViewModel("/path/to/image.jpg", "A"); var imageUpdated = image with { AltText = "A House" }; Console.WriteLine(image.AltText); // A Console.WriteLine(imageUpdated.AltText); // A House There's lots of different ways to write the ImageViewModeland add a "Null" object - inheretance with virtual methods, private backing fields - but those details are specific to the business domain, not the Null Object Pattern itself 👍🏿. Using our 'Null' ImageViewModel Now let's use our updated ImageViewModel in the HomeController:(cta.ImagePath, cta.AltText) : ImageViewModel.NullImage }; if (string.IsNullOrWhiteSpace(viewModel.Image.AltText)) { viewModel.Image = viewModel.Image with { AltText = "An Image" }; } return View(viewModel); } } We still have a conditional (as a ternary) checking if the Call To Action has an image, but we don't need to special case any interactions with the HomeViewModel.Image because in the case of missing content, we still have an instance of the ImageViewModel to work with 😎. Our Razor View can be updated as well to use the IsNotEmpty property: @model HomeViewModel <h1>@Model.Title</h1> @if (Model.Image.IsNotEmpty) { <img src="@(Model.Image.Path)" alt="@(Model.Image.AltText)" /> } By updating our code to model missing content in the ImageViewModel type itself, we remove the need to guard against NullReferenceExceptions and we can still conditionally render the content if it was intentionally missing from the Page Type data. 🏔 Where the Null Object Pattern Falls Short I'm a big fan of the Null Object Pattern because it encodes business logic into our types and classes, modeling our special cases but in a way that makes our code more robust and readable 🎉. However, there are still some places where this pattern isn't ideal 😑: - We have to remember to define the "Null" version of each type and ensure they have consistent naming (ex NullImage) across the application. - The convenience methods IsEmptyand IsNotEmptyalso need to be implemented. This could be done with a base class but then we need to remember to inherit from it. - Picking default values for stringproperties is pretty easy, but what about other types? Is 0always the best value for intproperties? What about falsefor bool? - Remember, we'd like to treat our "Null" case and normal case the same in as much of our code as possible. - Nested objects can get especially verbose since we'll want to continue our Null Object Pattern for all of those types as well. - The ImageViewModelhas started to become more complex because it handles both the modeling of the content and the special case of missing content. The overarching issue is that we've pushed the 'missing content' problem into the class, giving it more responsibility and complexity 😔. 🤨 Conclusion? Null reference types are a great way of exposing the hidden ⛅ null values that lurk within our code, bringing them out into the light of day 🌞 using the C# type system. They are our first step in battling the dreaded NullReferenceException and modeling code to match our content! However, null isn't a very ergonomic type to work with and doesn't represent our content very well - all it says is "There's nothing here". The Null Object Pattern lets us get rid of null completely by representing the 'missing content' in our classes, treating it as a special case that behaves the same as the normal cases. Unfortunately, the Null Object Pattern comes along with a bit of baggage that could be hard to maintain in larger applications. Nullable reference types and the Null Object Pattern are great tools to have in our toolbox, but as we will see there are even more ways to model missing content in our Kentico Xperience applications. In my next post on modeling missing data, we'll see how we can use a simple functional 👨🏽🔬 programming pattern called the 'Maybe' (or 'Option') to pull the representation of missing content out of our class, which simplifies it, while still avoiding a Union Type with null 😎. As always, thanks for reading 🙏! References - Kentico Xperience Design Patterns: Modeling Missing Data with Nullable Reference Types - The Special Case (Null Object) - C# Nullable Reference Types (Microsoft Docs) - Tagged Union Types - C# Null Object Pattern - The Singleton Pattern - C# 9.0 Record Types We've put together a list over on Kentico's GitHub account of developer resources. Go check it out! If you are looking for additional Kentico content, checkout the Kentico or Xperience tags here on DEV. Or my Kentico Xperience blog series, like: Top comments (0)
https://dev.to/seangwright/kentico-xperience-design-patterns-modeling-missing-data-with-the-null-object-pattern-3gn8
CC-MAIN-2022-40
refinedweb
2,148
51.28
Join devRant Search - "private" - Random guy : Well I'm not tracked on the internet, I use private tabs. Me : Well, I'm not sleeping with your mom, I use condoms9 - - - Another benefit of working from home: PRIVATE TOILET. One fucking toilet for 15 people is not enough.16 - Shouldn't a friend class be called a friends-with-benefits class, since it can touch their private members? 🤔🤔🤔10 - Today I saw this in our code base: private static final int THREE = 3; To do this: rating += THREE; I laughed, and cried a little.8 - - - Fleksy keyboard: We don't access your private information and upload it to the cloud! No, because I'm blocking your Internet access through a fucking root firewall.12 - Found a private api key on a github project. Created a pull request with key changed to “TH1S5HOULDB3SECR3T!iMBECIL5“ comment was “security fix“ i wonder if they accept3 - Just received my very first pull request on GitHub. Pull request: "Remove jquery as dependency". * Makes repo private *10 - Object oriented thinking. A boy tries to look at girl in a class. Girl : It's bad manners. Boy : No it's not. "MEMBERS OF THE SAME CLASS CAN ACCESS PRIVATE DATA".12 - - - Forgot the password of the private key used to login to all my vpn servers. Now I’ve got to generate a new one and deploy it everywhere again through this shitty control panel for every server fucking manually. 🤬29 - -.3 - - - Humans! The amount of sensitive, private, and secure information you can get just by asking someone for it is truly astounding.5 - - Group Project 1.Make a slack Channel. 2.Make a private repo 3.Give everyone access to do anything. 4. Wait for people to talk and commit code. 5...............R.I.P5 - - - So yesterday my girlfriend and me wanted to clean the apartment. We ended up coding on a private project all day long... but at least we put //FIXME notes all over our place. Let's see how today goes. ^^ - I feel reluctant to open my inbox as much as opening the door for an unexpected knock on a Sunday.7 - - - - - - - - Trying to extend 15 year old code. Found #define private public at the beginning of a sourcecode file.... Time to go home.8 - - For some reason my boss was amazed when I told him I don't have slack on any of my personal devices because I don't give a crap about his bullshit in my private time 🤔4 - Just got my 'student email address' from university! Now i can have free JetBrains account and access to github private repos 😍. Yay!11 - It works!! IT WORKS!!! IT MOTHERF@CKING WORKS!! My private program FINALLY WORKS, and DOES WHAT ITS SUPPOSED TO.... YAAAAAYYYY!!!4 - - - - This is just fucking awesome. Bought a domain name from a local registrar today and now my personal details like full name, phone number and exact address are nicely on whois. The cunts didn't even thing to ask me during registration if I want to make it private and there's no option to do that on their piss poor website. Oh well, tomorrow will be the day that I transfer my new domain away from them. Last time I ever do business with these shitcakes12 - - The problem with C++ is that all of your friends can see your private parts. That's not a problem, it's a feature!9 - - - - After the face reveal and the hand reveal... Let's do something spicier! 😉 Guys, post a pic of your "private member"... Gals, post a pic of your "closure"... If you know what I mean 😏 Mine's in the comments14 - Just solved two huge bugs in a private project without using Stack Overflow... Since when am I even able to do this? What happened to me?2 - - Why nobody uses public/private key authentication for ssh and disable password auth? Am I the only one around here doing this?15 - - I think for me game tester would be ideal job. On top of it if we get big screen, good sound system, couch and private cabin I guess then it will be the perfect one.7 - The public seems to be worried a lot on the Facebook "data breach" yet doesn't bat an eye on a bigger website that has already been selling private data for more than a decade. Google9 - - Coworker was told to shift code from private repo into company repo. She literally copy pasted all the files into the other repo. 😁👍6 - !rant Just managed to set up a laravel development server in my raspberry, with a fully functioning private git repo! (Not having a CS degree nor working in IT... I am very happy with this!)5 - What if the long term goal of @trogus and @dfox is to create a developer army, hell bent on the destruction of project managers and clients everywhere (except the cool ones). I mean I'm not saying it's a bad thing. Just wanted to... You know.... Raise some attention.3 - - I regularly want to send pictures from my work phone to my private one and I've got WhatsApp installed on my work phone but no way in hell it's getting on my private phone. Was thinking about how to exchange those images easily... I now have Signal on my work phone as well and I can chat with my private phone 😊38 - - Of course you can call me at 9 o'clock on a saturday morning to fix your f****** login problem! My private life is just a rumor!1 - /* MacOS source code Private and confidential */ void resumeFromSleep() { if (rand() > RAND_MAX / 2) { freezeSystem(); } else { reallyResumeFromSleep(); } }4 - Sometimes I wish devRant had private messaging feature. Then I see spammers and 12 year old script kiddies around here and I realize why we don't have it.2 - I've taken over a project with legacy code, this is one of the methods: private bool areEqual(string value1, string value2) { return value1 == value2; } Also, the opening brackets are on a new line10 - I am a PM for a private project with a few friends, I am also the main programmer.. Is this the reason I hate myself?3 - When you have over 10 years experience... and nothing to show for it due to closures, redesigns and private work. It’s not making my job hunt any easier - I shared public IP of a server to a fellow software engineer. He has ssh login access to that server. He needs private IP of the same server to run some script. He is asking me for private IP. Did he really graduate in computer science ? BTW, his development machine is a Linux machine. FML.9 - Just tried creating a private repo on Github and saw they're charging $7/month for private repos. So instead I just stood up a GitLab server on my Synology NAS.10 -.21 - JavaScript classes don't need private fields. JavaScript doesn't even need classes. STOP TRYING TO TURN JAVASCRIPT INTO JAVA.16 - GitLab vs GitHub Which one do u choose?! I personally prefer GitLab over GitHub. It's awesome and it's totally free for private repositories unlike GitHub's costly plans!26 - The satisfaction when your private project works as I thought from the beginning. I will have nice dreams this night3 - - - Using FireFox Dev edition: Me: Cool a new update, lets hit update and restart button. *two seconds later* Me: FUUUUUUUCK, I was using incognito and now all my tabs are gone -.-9 - - *takes Raspberry Pi* *creates private Wi-Fi network" *hides it in pencil case* *brings it to school* *chats with friends on network* HACKING 90004 - Sent another developer instructions for generating an SSH key pair and to send me the public key. He did so. There was a problem getting it to work. So, naturally, he emailed me the private key.1 - Asked my boss what a public and private key is. His response? Boss: A private key is the key to your house and a public key is a key to the toilets.3 - - - - *team worried about Slack conversations being tracked in the company* Solution: Shared text file over network. Edit and save it for private communication. Best idea ever?29 - - Some people tape up inputs like camera and mic to keep gov and hackers out of their private lives. Me, I'm an exhibitionist.1 - - - - So happy I found GitLab! Best feature is the integrated CI. No need to pay to have CI for private repositories for my hobby projects 👍14 - No IntelliJ, just because my API CLASS has an unused method, doesn't mean IT SHOULD BE MADE PRIVATE!2 - The most: „I go away from GitHub because Microsoft is shit“ I : „I dont use GitHub because I want free private repos“7 - - - Bought some new books. Hope they will help me in my private projects :D They are for 2 different projects btw.9 - PRIVATE - This is private, nothing here. seriously, there is nothing here. Do not click; I'm not kidding. Definitely no... [read more]3 - - Invited a colleague to my private bitbucket repo, he said I'm risking our company code to the public, then I removed him from AWS, left him alone with his ftp workflow. And he's a senior programmer. Fuck that idiot!2 - Embedding private encryption key in production javascript file and fetching third party session token client side.4 - Was going to though my old private repos to remove the unused ones. Looks like I wasn't happy about this particular one2 - *me calculating rsa* "aight.. Public key is 9 and n" *calculating private key* *recalculating cause I fucked up* *recalculating cause I'm retarded* *3rd recalculation* "ok, I figured out my private key is 9 (and n)" .... Wait a second.1 - you know you should go home when you write "public private foo()". it's public ... but private ... but still public I'M DONE FOR THE DAY5 - - - A dev posts a link to his website on a dev group I admin, first thing said site does is ask for my location. I look, no map not logically apparent reason for it, so I close the site. Ask they guy why he is asking for such private info and he responds to tell me that he does not think a person's exact location is that private, and if he really wanted it he would just use the IP address. Like how many fucking levels of dense is that.5 - Free Pivate Repos on Github everyone! Microsoft, what's your evil plan??? - - Switching back and forth between python and VBA for work and private projects is like being forced to use a walker during the day only to jump into the fastest Ferrari straight after work2 - Played around with my first pi yesterday and decided to create my own private git machine, pretty cool stuff🤓5 - New PM thinks it's a great idea to start micromanaging my team's (private) repo names. Can't wait to hear his opinions on our class and variable names! 😭3 - First week is over at my first job in Web development. Really happy about the salary and the company, can't wait to Monday! 😁 though I don't have much time to my private projects, that sucks.3 - - -> Contribute to Zulip's mobile app on github. -> Contribute to babel. -> Build 5 npm packages. -> Dive into Haskell. -> Have 100,000 ++s on devRant😁 -> Make a private project I built on github public.(still thinking about it).4 - Will there be someday a messenger on DevRant? I think it can be good to continue some discussion in private and get to know each other.7 - What if devRant was created by the NSA to make paranoid devs feel more comfortable and share some private information they wouldn't share on other social media? 🤔12 - - Can anyone tell me the difference between VPN and this proposed concept of Mr. Wang? “Your Private Browsing Isn’t as Incognito as You Want It to Be” - $category = 'Story'; Holy shit it finally worked I finally got a private server up and running for an old game, after countless forum posts and broken links (note the form isn't that active anymore since 2010) After finding a working server source you also need a client with the same version Even though this was a pet project, it feels good to finally complete it. I might even try to build some custom stuff into it6 - - 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.7 - Vendor: this innovative flight management system will completely change the way private aircraft operates, using our proprietary V8 on chip scrpting engine [...] Me: - - Thinking about buying a yearly VPN plan. Private Internet Access is cheaper but NordVPN has much better interface. ...9 - Copy my private ssh key to multiple machines so I only have to configure one key in github, gitlab, bitbucket etc10 - private String field; public void setField(String field) { field = field; } // I was wondering why didn't the value change3 - - I fucking hate pulling overtime because of deadlines. Already 4 hours overtime this week. Private life: zero. Frustrated!11 - Watch a privacy video. See how Google use all your datas. Switch on DuckDuckGo. Feel private. Can't find how to go home drunk. Switch to google.8 - - Why Netflix?? What's your problem if I have a private browsing habit? Your friend Amazon Prime doesn't complain about it!!7 - greetings from windscribe vpn! finally a free private vpn that gives you a reasonable amount of data ❤️ privacy10 - - - So is Gitlab still best free private repository manager? I vaguely remember something that they did few months ago thay made many angry13 - The Advent of Code is back on... Timezone doesn't help much with leaderboard in my case but I created a private one... join if you like, the code is: 414048-6ec978bd (to join:...) The advent is here: LETS FUCKING CODE!!!!7 - 1) Apply Vue.js to a real life project 2) Make a CMS for a private school (unluckily, they don't want a standard CMS) 3) Learning wisely of the mistakes I made this year with clients ("what if we added this?")1 - Is it a good idea to use Github or have a private local Git Server? I’ve heard Github now let’s people make private repositories for free so I was thinking of that but idk. What do you guys use?24 - wouldn't be here on GitHub everyday if it wasn't for these green tiles that attracts not only employers, but yourself. Wish the monthly was still a little bit cheaper for us outside the US.6 - Pushed to production with a debug message left in. Whoops, debug message includes the private key. Ummmm...2 - - Every one of my private projects "Lets hack together an abomination resembling the finished result and do the boring ground work later".1 - Github's unlimited private organization repos for $25 a month has made me rethink which co-workers actually need repository access.1 - - When you juggling between a technical conversation, a private conversation and one with your parents at the same time. I don't know what to feel anymore4 - - Pokémon GO should make an added feature to their website to mark off areas that people live or private property so that no one gets shot or worse.1 - - I'm thinking about starting my own blog, where I can post my research and/or opinions on... Though my private projects have a bad reputation I still think I might try one again and see if it works9 - 1.Pass my final tests (A levels -> i think thats the name of them in usa) 2.Get to university 3.Finish my private projects (at least few of them) 4.Learn more programming, electronics, ect. - firefox is so private that they have broken their developer tools, so that no one can debug the web pages.5 - Ok tomorrow I'm gonna kidnap one dev or two and I'm gonna release them only when I fully fucking understand how to fucking send an image to a private registry goddamnit - No documentation, even if it's for personal private projects. I still can't wrap my head around code I made 2 years ago...1 - - - Tarball of source code from a big manufacturer served on their open src page... They forgot to delete the .git subdir! Private keys and signing tools for everybody!!!! P.S It's fixed by now, don't get your hopes up :P1 - All my friends make fun of me because of a rumor I watch porn… I'm only on private for the dark theme…4 - - toilet.flusher.show() ... hmm ... not a UI issue. toilet.flush() Crash: "No function found" ... must be private, mother fu**** ... ... ... // ¯\_(ツ)_/¯ user.leaveFloater(true)1 - - - - Anyone else having their imaginary Project manager for your private projects, you do talk to when their are problems with the code invite anyone to give me suggestions on what services to use to keep my online stuff (email, files, others) more secure/ private. Also what's the best firewall for Android?8 - I am working on a multi user, high security, private data analytics Web app. I keep a Ganondorf ammibo on my desk to remind me that; one wrong link could ruin everything. - - - - Anyone out here started their programming interest by creating moding/ creating their own private WoW servers back in the day? Or any thing of such nature ? Mine interest was sparked by screwing around with mangos private wow server source. Way back in the day haha.6 - That moment when your predecessor was working on his private MacBook and you realize you're gonna have to compile and test this iOS app through an OSX virtual machine on a iPhone emulator2 - When you are bored and you don't know what to do :D. Starts an SSH Connection in your Private Home Server to change the settings of all installed Service7 - Not my worst but spent a few mins confused by this today: private String str; public myConstructor(String str){ str = this.str; }2 - Every person project cycle. 1.thinking 2.making bitbucket private repo 3.Making slack channel for contributors.4 Explaining the idea 5.the end. I seriously need to work after step 5 - Some old cool warning: "class X' only defines private constructors and has no friends" (using a singleton pattern implementation - Rant.6 - - - - - I just put my side project working with friends to Gitlab.com. Start to wondering why I was choosing between github and bitbucket while gitlab provides free private repo, free CI runners, and all other useful collaboration tools.9 - fellow dev thought he was being clever, hiding his private ssh keys inside image files on a public web server...2 -...4 - - - !rant I just realised my VPS ssh private key was in my servers web root for the last 4 months. Luckily nobody found it (hopefully).2 - Just would like to point out, if you really cared about keeping your information private you wouldn't use the internet at all... If someone wants your details, they will get it one way or another... - - Google Cloud Services can't be used by private individuals in the EU because their billing system isn't customized for tax differences between companies and private individuals (it's the exact same tax, just named differently - and the doings for the service providers control drivers are different). How can Google miss that market? Hello Amazon Glacier, hello AWS (maybe)...2 - I was wondering.... why are rants public? Shouldn't be better for DevRant's feed to be visible only to logged members?4 - I have to stop refactoring everything. 4 weeks on one of my private projects and I'm still on the same place. But I have refactored the code like 4-5 times now ...2 - So, not really a rant. The opposite in fact. With all this frustration about GDPR lately, GUESS WHAT FUCKING HAPPENED?! My domains (at one registrar so far) where all made private because of the law. GOOD DAY!2 - An ex client told me that her new software house wants the private key to access her virtual machine. The private key. I explained that she must send me a public key, but I didn't tell her that new guys she is working with don't know what are doing. Now I feel regret. - How to create a decent portfolio? I'm a mobile dev and almost all tye apps I developed are for private use inside companies.6 - Got two stars on one of my github project, i feel happy and sad, because it's now a private project on framagit :/ - - For private repos (<5 members): Bitbucket vs Gitlab I'd be glad to hear your opinions. btw: VSTS is out of the game. Crap.12 - - 1, someone breaks public/private key encryption 2, watch the world burn 3, people will understand that this rant is just a joke1 - - An actual function definition spotted in a plugin to migrate a membership DB from a spreadsheet into Wordpress: private function insert_member() { ... }1 - Note to self: Always do private domain registrations. I've been getting emails for about a week now asking i want custom development services for the domains I registered 😡2 - - That moment when you decide to build clean code and declare every variable as private or protected but then you have to change that later on anyways to public again because you're to lazy to create setters and getters.... :/2 - How do you keep a private life? I'm trying to focus on improving myself and here, Facebook(friends...) etc comes by -_- I'm really mad at myself.9 - Besides Owncloud and Gitlab, what's your favorite open source project to self-host on your own private server?2 - Hi. I learned to program when was playing EVE online about 7-8 years ago by writing simple private tool. Now I'm proud ex-pilot Android dev ^.^1 - That moment when the CTO rants about php and you ask them to name one of their grievances. And they say: "It doesn't support private properties." (┛✧Д✧))┛彡┻━┻ - - I suspect the creator of YAML to also run a private psychiatric hospital. I mean; meaningful spaces... Who comes up with that!?1 - - I prefer coding (at work ot private) with music, any good suggests what to hear today? (should be relaxing and not to much vocals, because they distract)13 - GitHub now offers unlimited private repos for its free plan users... Max contributors for those repos will be 3 which is expected. Queue Microsoft Haters 😂 - You know your private project gets bigger than expected, when you ditch any local stores with already created logic and head over to SQL starting to design the database. Guess this will be a longer journey than I anticipated...3 - How do you guys use Github as a portfolio? What I mean is that almost all of my more serious projects are on private repos, so most of my public stuff is mostly just junk.7 - Implementing IM in devRant so devs can connect with each other, and get some private space, discuss new ideas. Change the world...3 - When Github deletes your account because you've used "Malicious Code" in a private repo. (Chrome Password Reader). - Sometimes I want to chat in private with my rants friends here but unfortunately the dev rant there's no option for private messages. This is bad.7 - No classes at uni today means full day of just debugging my private Projects :D And lots of tea ofcourse!2 - So apparently friends have access to privates. Just some coding thoughts. Yes I'm talking about C++, not... Indeed, programmers are tiny Gods3 - So, I need to customize some shit for my company's app... Just discovered they somehow manage to call a protected method on an object stored in a field... I can't even... How does that even compile? And also, things neccessary for my subclass are private with no getter... private static final int ZERO = 0; private static final int ONE = 1; private static final int TWO = 2; What. The. Hell. Why? Damn Java. Though this is the programmer's fault, it does seem to favor this kind of shit.2 - From tomorrow, LinkedIn recruiters will be like: - I'm currently looking for "oldPieceOfShietTech" developers. Now it isn't listed on your profile, but found it amongst your private github repositories... - If GitHub now supports "unlimited" "free" "private" repos, how will they generate revenue? Does this mean advertising will be an issue with GitHub?3 - *Object oriented thinking* Once a boy was starting his classmates, Girl: it's bad, Boy: member of same class can access private member 😝😝3 - - Anyone ever thought about teaching or have taught private coding lessons? Seems to be some interest in my area just thinking out loud wondering if it could be an extra revenue stream for me..2 - The code I'm working in always has problems with stuff like "Object obj=new Object();" or "List stuff=new List;" without type specification, but now I found the summit: "private void methodName(Type parameter) *throws Exception*" - Trying different languages and techniques in my private time (and at work, if possible). Following a bunch of tech accounts on Twitter to have a steady tech feed. Watching pluralsight videos. Also, moving to a different job. - - Brave Browser introduced tor integration for private tabs.... Is security taking a toll when Tor network is accessed through not the actual Tor browser?2 - I just spent 6h to sort all my private documents : university stuff, financial stuff, my trades, devices etc etc... Totally worth. Being organized is so satisfying.. Finding everything you need in seconds:) - - The part I hate the most about working as a dev is writing the docs. The sad thing is that I need to do it on Friday (which is weekend here) as well for my private project (a python library) - When your biggest and best projects are private repos on gitlab and bitbucket and you can't directly link them in your resume since the person/startup you made them for want the source code be kept private.6 - Started to value digital properties over material ones. Examples: - Own code / Git-Repos - Own software / apps - Crisp images - Open source software - Private keys equal to real ones 😉 - Finally git started providing unlimited free private repos. Hope it won't start adding story like FB groups 🤣5 - I bought a new router for work yesterday, only a cheap thing as the old one gave up. The guys have got WiFi again and as it's dual band I've got my own private WiFi band. Winning!! - - Reasons, why I started programming: - Wanted to create own websites - Create useful tools for private use - STICKERZZZ - I now know enough about VPN my question now is where's Real Private Network?!? Is there any real private networks?!!!4 - Ok guys what do you prefer for private repos and why? GitHub, Bitbucket or Gitlab? I prefer now Gitlab because it offers (I think) 10GB of free storage while others only offer 1GB.11 - Fucking Fluent NHibernate with it's stupid fucking explicit empty constructors. WHY? JUST FUCKING USE THE DEFAULT CONSTRUCTOR YOU MONG LIBRARY!!! And also, why the holy fuck do my field setters need to be PROTECTED INSTEAD OF PRIVATE??? WHY THE FUCK? - I have set up my automation through a private GitHub repo. I know there is puppet, and salt, and Ansible. - Dear PHP creators. Why did you think having "static" overriding "private" was a good idea? I get that you won't have instances of a static value but private should still take precedence. - How do you guys perform program tests or build your test env? Like redirect writing sqls towords private tables whilst keeping reading sqls towords to general test tables - Error Message : No ClassToInherit class found. There must be a class which inherits from ClassToInherit in the namespace 'blah'. okay but there is a class in that namespace which inherits from ClassToInherit. I hate private frameworks. - - The awkward moment when someone tells you that they use your software but that's impossible because it's in private beta and your the only tester... - - - Amazing. Just got to know that we can create private repo's on github. At the cost of sacrificing pages.github.com8 - - Genuine 1 line function found in a production system: private bool NotExists(int typeId) { return !collection.Any(item => item.typeId == typeId) ? false : true; } I can't decide how many double negatives are involved here!1 - Anyone know of an app for traffic generation/speed test of private networks for Android? Want to see how my network's doing1 - - /*too lazy to convert times to Millis...*/ Private void day() { try { Do { meeting(); while (currentTime < 5pm); readAndRespond(email); readAndRespond(slack); readAndRespond(skype); } finally { realWork(); } } private void meeting() { Thread.sleep(30s); //I wish. }2 - - - Git starts merging changes to your private personal repository is scarier than seeing someone else in the mirror in the empty room - Yet another incident, private data of millions of Insta users leaked, what a world we live in! - I started using Go for private projects a few weeks ago.. now when I'm at work having to deal with a java monolith. 😩 - I counter balance my habit of working from home, by posting shitty memes and hentai in the grads private slack during work hours1 - Started messing around with a game called Runescape, as any other game it had a private server community which was quite big back in 2009ish.Learned alot of java there and some mysql. - Class cleanBullshit() { Function invokeAction(attr) { If(attr==='sarahah' ) friend.remove(); } } Class private mylife() { var per = new cleanBullshit(); per.invokeAction('sarahah'); } - - À test Class can not have any private method. That's a coding guide line. And if I ask why, the answer is... wait for it..... BECAUSE X and Y DECIDED THIS WITH Z LONG AGO... Agggghhhhhhhh.... - private boolean didWakeUpForNothing() { if (mathTutoring.isClosed()) { return true; } else { studyForExams(); } } private void studyForExams() { feelEmptyInside = cryInShower = true; }1 - - What service or setup do you guys recommend for a vpn? I’m thinking of setting one up to stream video from a streaming device. Just looking for some recommendations!5 - Nothing more secure than have 36 character length passwords mixing any kind of character in them and have them in a txt file inside my docs folder 🤯🤯🤫15 - - TypeScript has two levels of private values (at least in the beta): private foo = false; // Cannot be accessed outside the object in TypeScript #bar = false; // cannot be accessed outside the object in both TypeScript and JavaScript.2 - - - Thinking of working on a airbnb type marketplace but for private yachts and boats! Any input and backend ninjas wanting to jump on board?4 - - The moment you are in a IT room at school that is in it's own private network... and they still want you to make assignments / deliver assignments on their website. (which doesn't work on that network) - If you were working on a very interesting private project, are you scared to show it to people in case someone steals the idea? - - "Bruce Schneier never keeps the private key; he computes it when he needs it." I just knew about. Here is my first attempt. Hope it works. - - Top Tags
https://devrant.com/search?term=private
CC-MAIN-2020-10
refinedweb
5,293
73.78
Create a Draggable Opacity Changing Circle with Reanimated in React Native Drag animations are a perfect use case for Reanimated. In the React Native world this would usually have meant events for all drags being shot across the bridge. However that takes time, so responding and coordinating gestures may happen in a delayed fashion. With Reanimated and Gesture Handler we can construct responsive dragging animations that run only on the native side. So we're going to build a draggable item that adjust it's opacity and border width when you drag it certain directions and distances. Setup We're going to start with a setup that relies on PanGestureHandler. This will allow us to get a continuous stream of events and movements from a users touch. We'll define a maxPointers={1} to let the gesture handler know we only want a single touch at maximum to activate our handler. import React from "react"; import { StyleSheet, Text, View, Dimensions } from "react-native"; import Animated from "react-native-reanimated"; import { PanGestureHandler, State } from "react-native-gesture-handler"; const { width, height } = Dimensions.get("window"); export default class App extends React.Component { render() { return ( <View style={styles.container}> <PanGestureHandler maxPointers={1} > <Animated.View style={[ styles.box, ]} /> </PanGestureHandler> </View> ); } } const CIRCLESIZE = 70; const styles = StyleSheet.create({ container: { flex: 1, }, box: { backgroundColor: "tomato", marginLeft: -(CIRCLESIZE / 2), marginTop: -(CIRCLESIZE / 2), width: CIRCLESIZE, height: CIRCLESIZE, borderRadius: CIRCLESIZE / 2, borderColor: "#000" }, }); Setup Drag Values To hold onto the drag location from react native gesture handler we need to setup 2 Values. These we'll initialize with a 0 value. const { Value } = Animated; export default class App extends React.Component { dragX = new Value(0); dragY = new Value(0); render() {} } Setup Event Handler Next we need to setup an event handler to give to our PanGestureHandler and also provide it with all the animated values so that it will set the correct values on them. This means we need a new value which we'll call gestureState. We'll initialize it with a -1 because that's not any valid gesture state. Once any touch has been initiated it will go through a gesture phase. We can then use this later to know when the user has started and started moving the circle. We pass in our 3 animated values corresponding with the values of the gesture handler event. const { Value, event } = Animated; export default class App extends React.Component { dragX = new Value(0); dragY = new Value(0); gestureState = new Value(-1); onGestureEvent = event([ { nativeEvent: { translationX: this.dragX, translationY: this.dragY, state: this.gestureState, }, }, ]); } Now that we have an onGestureEvent setup we'll pass it into our PanGestureHandler. The onGestureEvent will be fired anytime there is a new gesture. That means we'll get a continuous stream from this callback for each time the user moves their finger. The state change handler is only fired when the gesture enters a new phase. <PanGestureHandler maxPointers={1} onGestureEvent={this.onGestureEvent} onHandlerStateChange={this.onGestureEvent} > Offsets We aren't done with animated values yet. We need to hold onto offsets for both x and y. The gesture event isn't reporting the position of the circle, it's reporting the positions of the gesture. If we just relied on our dragX and dragY for our location every time the user initiated a drag you would see a visible jump from the current position to the new dragX and dragY position. So for now we use the screen width and height, and initialize our offsets to be in the center of the screen. Once this is passed to the circle it will then be positioned in the center of the screen as well. export default class App extends React.Component { dragX = new Value(0); dragY = new Value(0); offsetX = new Value(width / 2); offsetY = new Value(height / 2); gestureState = new Value(-1); } Add in Draggability Now for adding drag functionality. Reanimated is declarative. Meaning we need to provide a bunch of rules for how the native side reacts when certain conditions are met. So we need to destructure a few more functions from animated. const { cond, eq, add, set, Value, event } = Animated; This transX is what will be provided to our Animated.View transform for the translateX position and like wise for the transY. Lets break it down. First off we have a cond. The condition function will take 3 arguments. The first is what decides gets returned. So in our case we're using eq(this.gestureState, State.ACTIVE) for our true/false. The eq will return whether or not this.gestureState has been updated to ACTIVE. When the gesture starts being dragged around this cond block knows to re-run and re-evaluate what the value of transX should be. So when the gestureState is active we will add our previous offsetX to our current dragX that is being updated from our PanGestureHandler. This isn't effecting either the offsetX or dragX values, it's just adding them together then returning that value to the cond which is being provided as the value of our translateX. So this is just a way to do a temporary drag operation that uses the old position and the new position. When the gestureState is no longer active, so the user has released that is when we save off the final value. We use the set method to save off the resulting value of our offsetX and current dragX and set the offsetX for the next drag situation. The final thing is that set will return whatever the value is, so our transX will hold onto the final value of offsetX + dragX and our circle will stay right where we left it. transX = cond( eq(this.gestureState, State.ACTIVE), add(this.offsetX, this.dragX), set(this.offsetX, add(this.offsetX, this.dragX)), ); The same goes for the Y direction. transY = cond( eq(this.gestureState, State.ACTIVE), add(this.offsetY, this.dragY), set(this.offsetY, add(this.offsetY, this.dragY)), ); Finally we wire up our transform on our Animated.View and we can now drag it around. <PanGestureHandler maxPointers={1} onGestureEvent={this.onGestureEvent} onHandlerStateChange={this.onGestureEvent} > <Animated.View style={[ styles.box, { transform: [ { translateX: this.transX, }, { translateY: this.transY, }, ], }, ]} /> </PanGestureHandler> Opacity on Drag Now if we want to add in effects for when the circle is dragged to certain locations we can accomplish that using interpolate. const { cond, eq, add, set, Value, event, interpolate, Extrapolate } = Animated; We setup our interpolate to always respond and react to our transY. Our inputRange will be the values that we expect our transY to be between. In our case we set it up to be between 0 and height of our screen. We then tell it that our outputRange will be between .1 and 1. So when transY is at 0. so the top of the screen, it will interpolate to .1. Then when the circle is dragged to the bottom of the screen the opacity value will be 1. opacity = interpolate(this.transY, { inputRange: [0, height], outputRange: [0.1, 1], }); Then we wire it up to the opacity of our Animated.View. <Animated.View style={[ styles.box, { opacity: this.opacity, transform: [ { translateX: this.transX, }, { translateY: this.transY, }, ], }, ]} /> BorderWidth on Drag The border width interpolation is the same as the opacity however we look at the transX and use the width of the screen instead. Our outputRange we've changed to 0 and 5. We use Extrapolate.CLAMP to indicate that we never want our output to be less than 0 or greater than 5 ever. borderWidth = interpolate(this.transX, { inputRange: [0, width], outputRange: [0, 5], extrapolate: Extrapolate.CLAMP }); Then we wire it up to the borderWidth of our circle. <Animated.View style={[ styles.box, { opacity: this.opacity, borderWidth: this.borderWidth, transform: [ { translateX: this.transX, }, { translateY: this.transY, }, ], }, ]} /> Ending There we have it. We have a purely native drag implementation. We can drag items around the screen and we've written conditions that will watch our translations and respond by adjusting opacity or border width.
http://brianyang.com/create-a-draggable-opacity-changing-circle-with-reanimated-in-react-native/
CC-MAIN-2018-43
refinedweb
1,333
58.89
How do you put strings into arrays Printable View How do you put strings into arrays First Create a char array.. then use a for loop to put chars into it.. Thus putting a string Example # include <iostream.h> main() { char name[20]; cout<<"Enter you name > "; for(int i=0;i<20;i++) { cin>>name[i]; } } So what happens in the above program is when a user enters a name example name as vasanth. V is stored in name[0], a in name[1] and so on.. the program increments the value of I. And then accepts a char from the user and stores it into the array name[i]. Where i increments +1 after every charater is entered.. Hope you got it... if your compiler supports STL the easy way is to vector containing instances string class. both the vector and string class are defined in STL. The "old fashioned", but still much used way, is to use a two dimensional array of char. char ArrayOfStrings[NumberOfStrings][MaximumPossibleLengthOfString]; Yea thats also a good idea..... another example of two different ways to read the same question.
http://cboard.cprogramming.com/cplusplus-programming/15444-strings-arrays-printable-thread.html
CC-MAIN-2015-48
refinedweb
187
75.91
Given a string, find the minimum number of characters to be inserted to convert it to palindrome. Before we go further, let us understand with few examples: - ab: Number of insertions required is 1 i.e. bab - aa: Number of insertions required is 0 i.e. aa - abcd: Number of insertions required is 3 i.e. dcbabcd - abcda: Number of insertions required is 2 i.e. adcbcda which is same as number of insertions in the substring bcd(Why?). - abcde: Number of insertions required is 4 i.e. edcbabcde Let the input string be str[l……h]. The problem can be broken down into three parts: 1. Find the minimum number of insertions in the substring str[l+1,…….h]. 2. Find the minimum number of insertions in the substring str[l…….h-1]. 3. Find the minimum number of insertions in the substring str[l+1……h-1]. Recursive Solution The minimum number of insertions in the string str[l…..h] can be given as: - minInsertions(str[l+1…..h-1]) if str[l] is equal to str[h] - min(minInsertions(str[l…..h-1]), minInsertions(str[l+1…..h])) + 1 otherwise C Java Python 3 # A Naive recursive program to find minimum # number insertions needed to make a string # palindrome import sys # Recursive function to find minimum # number of insertions def findMinInsertions(str, l, h): # Base Cases if (l > h): return sys.maxsize if (l == h): return 0 if (l == h – 1): return 0 if(str[l] == str[h]) else 1 # Check if the first and last characters are # same. On the basis of the comparison result, # decide which subrpoblem(s) to call if(str[l] == str[h]): return findMinInsertions(str, l + 1, h – 1) else: return (min(findMinInsertions(str, l, h – 1), findMinInsertions(str, l + 1, h)) + 1) # Driver Code if __name__ == “__main__”: str = “geeks” print(findMinInsertions(str, 0, len(str) – 1)) # This code is contributed by ita_c C# Output: 3 Dynamic Programming based Solution If we observe the above approach carefully, we can find that it exhibits overlapping subproblems. Suppose we want to find the minimum number of insertions in string “abcde”: abcde / | \ / | \ bcde abcd bcd <- case 3 is discarded as str[l] != str[h] / | \ / | \ / | \ / | \ cde bcd cd bcd abc bc / | \ / | \ /|\ / | \ de cd d cd bc c…………………. The substrings in bold show that the recursion to be terminated and the recursion tree cannot originate from there. Substring in the same color indicates overlapping subproblems. How to reuse solutions of subproblems? We can create a table to store results of subproblems so that they can be used directly if same subproblem is encountered again. The below table represents the stored values for the string abcde. a b c d e ---------- 0 1 2 3 4 0 0 1 2 3 0 0 0 1 2 0 0 0 0 1 0 0 0 0 0 How to fill the table? The table should be filled in diagonal fashion. For the string abcde, 0….4, the following should be order in which the table is filled: Gap = 1: (0, 1) (1, 2) (2, 3) (3, 4) Gap = 2: (0, 2) (1, 3) (2, 4) Gap = 3: (0, 3) (1, 4) Gap = 4: (0, 4) C Java Output: 3 Time complexity: O(N^2) Auxiliary Space: O(N^2) Another Dynamic Programming Solution (Variation of Longest Common Subsequence Problem) The problem of finding minimum insertions can also be solved using Longest Common Subsequence (LCS) Problem. If we find out LCS of string and its reverse, we know how many maximum characters can form a palindrome. We need insert remaining characters. Following are the steps. 1) Find the length of LCS of input string and its reverse. Let the length be ‘l’. 2) The minimum number insertions needed is length of input string minus ‘l’. C Java Output: 3 Time complexity of this method is also O(n^2) and this method also requires O(n^2) extra space. Related Article : Minimum number of Appends needed to make a string palindrome This article is compiled by Aashish Barnwal. Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above Recommended Posts: - Minimum insertions to form shortest palindrome - Minimum insertions to form a palindrome with permutations allowed - Minimum insertions to sort an array - Minimum number of deletions and insertions to transform one string into another - Rearrange characters to form palindrome if possible - Check if characters of a given string can be rearranged to form a palindrome - Check if a string can be rearranged to form special palindrome - Check if the characters in a string form a Palindrome in O(1) extra space - Form minimum number from given sequence - Minimum removal to make palindrome permutation - Minimum cost to convert string into palindrome - Minimum number of deletions to make a string palindrome - Minimum reduce operations to covert a given string into a palindrome - Minimum number of deletions to make a string palindrome | Set 2 - Minimum number of Appends needed to make a string palindrome
https://www.geeksforgeeks.org/minimum-insertions-to-form-a-palindrome-dp-28/
CC-MAIN-2019-04
refinedweb
840
59.23
Are you sure? This action might not be possible to undo. Are you sure you want to continue? ) The following information is being provided as a reminder for withholding tax requirements under IRC Section 1445 on “Dispositions of United States real property interests” by a foreign person or entity. A person who meets the substantial presence test (183 day rule per IRC Section 7701) or is considered a resident alien for income tax purposes is no longer considered to be a foreign person. A Form 8288 ("U.S. Withholding Return for Disposition by Foreign Persons of U.S. Real Property Interests"), is required to be filed by the Transferee (Buyer or Designated Agent) of the U.S. real property interest. In addition, Form 8288-A (“U.S. Withholding Statement on Disposition by Foreign Persons of U.S. Real Property Interest”) must be attached to Form 8288. The amount of tax required to be withheld and paid to the IRS by the buyer is 10% of the amount realized on the transfer, or, 35% of the gain recognized by a domestic corporation, domestic partnership, domestic trust or domestic estate. The tax on Form 8288 is due the IRS by the 20th day after the Date of Transfer. Penalty and Interest will be charged on late filed Forms 8288 (received after the 20th day from the date of transfer). An extension to file Form 8288 is permitted if the taxpayer is awaiting a response to their application for a withholding certificate. Upon receipt of an approved withholding certificate or rejection letter, the taxpayer has 20 days from the date on the certificate/letter to file Form 8288. If not filed by the extended date, penalties and interest will be charged. Under certain categories the Transferor (foreign person or entity) or Transferee can submit a Form 8288-B (“Application for Withholding Certificate for Disposition by Foreign Persons of U.S. Real Property Interests”), to request a reduction or elimination of withholding on a transfer of a USRPI. Refer to IRC Regulation 1.14453 for the different categories. The IRS has 90 days from receipt of a complete 8288-B application to respond th th to the request. If by the 45 day the IRS determines it will be unable to process the 8288-B by the 90 day, then the IRS will mail an interim letter to the originator of Form 8288-B. The regulations permit the transferor to request an Early Refund of the FIRPTA money upon receipt of a reduced or exempt withholding certificate when Form 8288 has been filed and paid. A refund can be made to the seller (transferor) of the property within the same year of transfer, so long as the return (Form 8288) has been filed, paid and has a withholding certificate attached. Under IRC Section 897(i), a foreign corporation that holds a U.S. real property interest, and under any treaty obligation is entitled to nondiscriminatory treatment with such interest, can elect to be treated as a domestic corporation for purposes of this section, section 1445 and 6039C. There is no requirement for filing Form 8288 once the election has been made and approved. Transfer. (I.e. Transfer done in 2000, then in 2001 transferor will file the 1040NR or 1120F)or of the income to identify it as being effectively connected income. NOTE: Please refer to IRS Publication 515 or 519 for further information.
https://www.scribd.com/document/373448/firpta
CC-MAIN-2018-26
refinedweb
570
53.41
Bean not working with JSP Charessa Reilly Ranch Hand Joined: May 26, 2011 Posts: 39 posted Jun 22, 2011 13:31:59 0 OK, maybe I'm oversharing, but I want to be thorough. Note I asked this question a different way using very different code. Here's my jsp file - myq.jsp <%@ pageChris Novish</jsp:attribute> </inq:displayCollection> Here's displayCollection.tag used by that jsp: <%@ tag <jsp:setProperty </jsp:useBean> ${irc.size} | ${irc.mgrid} Here's the java class IrCollection (used as a bean in the tag): package com.serco.inquire; import java.sql.*; import java.util.*; public class IrCollection { public ArrayList iRecords = new ArrayList<InquireRecord>(); public int size; public String mgrid; public irCollection() { super(); } public void populateCollection() { try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); String filename = "inquire.mdb"; String database = "jdbc:odbc:Driver={Microsof Access Driver (*.mdb)};DBQ="; database+= filename.trim() + ";DriverID=22;READONLY=true}"; Connection con = DriverManager.getConnection( database ,"",""); Statement s = con.createStatement(); s.execute ("SELECT * FROM inquiries WHERE manager = '" + this.mgrid + "'"); ResultSet rs = s.getResultSet(); int cur; while (rs.next()) { cur = rs.getRow()-1; InquireRecord localIR = new InquireRecord(); int curID = rs.getInt("ID"); localIR.setID(curID); String cursub = rs.getString("submitter"); localIR.setSubmitter(cursub); this.iRecords.add(cur, localIR); } con.close(); this.size = iRecords.size(); catch (Throwable e) { System.out.println(e); } } public int getSize () { return this.size; } public void setMgrid(String datum) { this.mgrid = datum; this.populateCollection(); } public String getMgrid() { return this.mgrid; } } and here's the InquireRecord java class used by IrCollection: package com.serco.inquire; public class InquireRecord { private int ID; private String submitter; public InquireRecord() { super(); } public InquireRecord(String asubmitter) { this.submitter = asubmitter; } public int getID(){ return this.ID; } public void setID(int datum) { this.ID = datum; } public String getSubmitter() { return this.submitter; } public void setSubmitter(String datum) { this.submitter = datum; } } The JSP does this: set the mgr variable, which is passes to the tag, the tag then creates an instance of IrCollection using that mgr variable. (Yes, putting that populateCollection() method call in the setMgrid() method is probably Bad Practice, but it works, usually). The IrCollection objects builds an ArrayList of InquireCollection objects from an Access database. It then sets it's size property based on how many InquireCollection instances it put into the ArrayList . Once that's all done, the tag spits out 2 things: The size property and the mgrid property. When I view the JSP, it gives me 0 for the size and Chris Novish for the mgrid. I think this could be one of the following: Not finding any matching records of the database Not actually executing the populateCollection() method some how forgetting the information it put into that ArrayList ? I"m sure there's another possibility, but I don't know. Here's what gets me. Here's a test class I made called TestCollection: package com.serco.inquire; import java.util.*; import java.text.*; public class TestCollection { public static void main(String[] args) { IrCollection myCollection = new IrCollection(); myCollection.setMgrid("Chris Novish"); System.out.println(myCollection.getSize()); System.out.println(myCollection.getMgrid()); } } if I run that I get a size of 4 and a mgrid of Chris Novish. Same data in, and it works as expected. So... why won't JSP do it? Paul Clapham Sheriff Joined: Oct 14, 2005 Posts: 19973 22 I like... posted Jun 22, 2011 13:40:04 0 You set the mgrid, then you do some JDBC stuff, then you set the size. So if you see mgrid being set but you don't see size being set, my guess is that some exception is thrown and then ignored between the two steps. Check wherever System.out is diverted to and look for stack traces there. Mike Zal Ranch Hand Joined: May 04, 2011 Posts: 144 I like... posted Jun 22, 2011 14:10:48 0 Your code never gets to perform the database execution. Here is what is happening in your code. You call the tag file with mgr attribute value set as "Chris Novish" Inside the tag file, the useBean tag creates a session scope bean with default values (zero length array, size = 0, and mgrid = null) The setProperty tag sets the value of the bean to mgrid to "Chris Novish" Immediately after, you print the size and mgrid properties which value the values 0 and "Chris Novish" Also, there is no reason to save the length of the array as an instance variables, just has getSize return the length of the iRecords array. Another big no-no, you should not have public instance variables. You should always follow the rules of encapsulation. OCJP6, OCWCD5 Charessa Reilly Ranch Hand Joined: May 26, 2011 Posts: 39 posted Jun 22, 2011 16:14:20 0 The setter for mgrid triggers the populateCollection() method which fills the ArrayList . I agree. Here's the link: subject: Bean not working with JSP Similar Threads passing a variable to a Bean's method Bean's "if" inconsistencies. Java Bean not functioning as expected. Cannot find a setter custom tag SetProperty: Mandatory attribute property missing All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter JForum | Paul Wheaton
http://www.coderanch.com/t/542747/JSP/java/Bean-working-JSP
CC-MAIN-2015-48
refinedweb
857
50.84
HI The PIC16F877A Projects are excellent study material. I reached up to the ADC project. Here I am facing some problems with GO_nDONE the compiler is throwing some error. Request your help. I am sending the code to u. I am trying to read an analogue signal and trying to diplay in LCD 16x2. also I dont know How to convert Float into String type kindly help I am not much familiar with c for most of my works I use VB. I am attaching the code and o/p below // PIC16F877A Configuration Bit Settings // 'C' source line config statements //. #define _XTAL_FREQ 20000000 #define RS RD2 #define EN RD3 #define D4 RD4 #define D5 RD5 #define D6 RD6 #define D7 RD7 #include <xc.h> #include "MyLCD.h"; channel bits __delay_ms(2)//Acqusition time for charge Hold capicitor GO_nDONE = 1;//Initializes A/D conversion LINE 40 ?????????????????? //ADCON0<2> = 1; while(GO_nDONE);// Wait for A/D conversion to complete //while(ADCON0<2>); return((ADRESH<<8)+ADRESL);//Returns Result } void main() { //*****I/O Configuration****// unsigned int a; int flag = 0;//For creating delay float adc = 0.0; float i = 0.0; char St; TRISC = 0x00;//Instruct the MCU that all pins of port C are out put PORTC = 0x00;//Initialize all pins to zero TRISD = 0x00;//Instruct the MCU that all pins of port D are out put PORTD = 0x00;//Initialize all pins to zero //*****End of I/O Configuration****// Lcd_Start(); ADC_Initialize(); while(1) { if(flag>=50)//wait till flag reaches 50 { adc = (ADC_Read(4)); i = adc*0.488281; //St = i; //St = St & " " & "V"; Lcd_Clear(); Lcd_Set_Cursor(1,1); Lcd_Print_String(i);//HOW CAN I CONVERT i TO STRING HERE ???????????????????????? line 71 flag = 0;//only if flag = 50 i will get the adc value } flag++;//Increment flag for each cycle } } THE COMPILER O/P make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf make[1]: Entering directory 'C:/MPLABXProjects/ADconversion.X' make -f nbproject/Makefile-default.mk dist/default/production/ADconversion.X.production.hex make[2]: Entering directory 'C:/MPLABXProjects/ADconversion.X' "C:\Program Files (x86)\Microchip\xc8\v1.38\bin\xc8.exe" --pass1 --chip=16F877A -Q -G --double=24 --float=24 --opt=default,+asm,+asmfile,-speed,+space,-debug --addrqual=ignore --mode=free -P -N255 --warn=-3 --asmlist -DXPRJ_default=default --summary=default,-psect,-class,+mem,-hex,-file --output=default,-inhx032 --runtime=default,+clear,+init,-keep,-no_startup,-osccal,-resetbits,-download,-stackcall,+clib --output=-mcof,+elf:multilocs --stack=compiled:auto:auto "--errformat=%f:%l: error: (%n) %s" "--warnformat=%f:%l: warning: (%n) %s" "--msgformat=%f:%l: advisory: (%n) %s" -obuild/default/production/ADconversion.p1 ADconversion.c MyLCD.h:34: warning: (371) missing basic type; int assumed ADconversion.c:40: error: (195) expression syntax ADconversion.c:71: error: (182) illegal conversion between types double -> pointer to unsigned char (908) exit status = 1 nbproject/Makefile-default.mk:100: recipe for target 'build/default/production/ADconversion.p1' failed make[2]: Leaving directory 'C:/MPLABXProjects/ADconversion.X' nbproject/Makefile-default.mk:84: recipe for target '.build-conf' failed make[1]: Leaving directory 'C:/MPLABXProjects/ADconversion.X' nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed make[2]: *** [build/default/production/ADconversion.p1] Error 1 make[1]: *** [.build-conf] Error 2 make: *** [.build-impl] Error 2 BUILD FAILED (exit value 2, total time: 6s) THANKS BAIJU Replies: 887 Hi Baiju, Welcome to circuitdigest forums. I am not sure how exactly does your librarey mylcd.h works. but you cannot print float values like this You have to break the varibale i from float type into char type by spliting it into numbers and then print these numbers. To give you an idea of how it is done I am pasting the code from my Thermometer project As can see here the varibale temp is of float type but to print the values in it we have convert it to int type by multiplying with 100 to remove the decimal number this resulting int value is stored in temp 1. Then temp 1 has to be split into characters that is it has four digits and each digit has to be stored in a varibale. This can be done by using the modulus and divide option as shown above where c1, c2, c3 and c4 has the four digits from temp 1. Not c1,c2,3c3 and c4 are still in type int Finally you can print them like you print any charectors as shown below With every variable we add +'0' to convert the int into char. and we also print a "." after printign two digits to make it appear like a decimal number. Hope you got the idea. Happy learnign ! You voted ‘up’ Replies: 5 Thank u Aswinth, I will try ur suggestion. but what about line 40 I have marked with ?????? GO_nDONE = 1; gives error Expression Syntax error 195 what to do with this error I tried by adding TRISA5 = 1; but didnt work. how can I solve it. LCD worked & Printed CIRCUIT DIGEST WORKING in the previous tutorial. Interfacing LCD with PIC Thanks BAIJU You voted ‘up’ Replies: 887 The compile time error is because of the semi-colon missin in your program the delay statement above the GOnDONE=1 is missing a semi-colon You voted ‘up’ Replies: 5 Thank u very much Aswinth, Its Working now. BAIJU You voted ‘up’ Replies: 5 Hi Aswinth, For the UART tutorial, I have maxim232 IC & my computer has a COM port. Can I connect to the comport TX RX instead of RS to USB converter? If yes, will the Hyper terminal help me for the communication? Is there any thing else that should be taken care of? Thanks in advance. Baiju. You voted ‘up’ Replies: 205 I am closing this thread since the original question was already answered. Please post as new thread if you have other questions. Thanks You voted ‘up’
https://circuitdigest.com/forums/embedded/solved-pic-problem-go-done-bit-adc
CC-MAIN-2019-26
refinedweb
974
56.76
0 Ok, so I have most of the code working but I've been up for over 24 hours and I just cannot seem to get the test score to come out. Here's my code, hopefully someone with fresh eyes can spot my error, I know it has to be something simple (it always is). #include <iostream> #include <fstream> #include <string> #include <iomanip> using namespace std; int main() { string filename; ifstream inFile, powFile; const int SIZE = 20; char firstArray[SIZE]; char secondArray[SIZE]; int missed, avg, total, count; missed = 0; avg = 0; total = 0; inFile.open("c:\\correctanswers.txt"); powFile.open("c:\\studentanswers.txt"); for (count = 0; count < SIZE; count++) inFile >> firstArray[count]; for (count = 0; count < SIZE; count++) powFile >> secondArray[count]; for (count = 0; count < SIZE; count++) { if (firstArray[count] != secondArray[count]) { cout << "Missed question #" << count; cout << " Students answer: " << secondArray[count]; cout << " Correct answer: " << firstArray[count] << endl; missed++; } else; } total = SIZE - missed; cout << "Number of correct answers: " << total << endl; avg = total / SIZE; //right in here i think cout << fixed << showpoint << setprecision(2); cout << "Percentage answered correctly: " << avg << "%" << endl; if (avg >= 70) cout << "The student passed the exam." << endl; else cout << "The student failed the exam." << endl; return 0; } Edited by __avd: Added [code] tags. Do wrap your programming code blocks within [code] ... [/code] tags
https://www.daniweb.com/programming/software-development/threads/330759/multiple-choice-exam-grading
CC-MAIN-2017-30
refinedweb
216
54.97
Efficient FIR realtime filter Project description An efficient finite impulse response (FIR) filter class written in C++ with python wrapper. The class offers also adaptive filtering using the least mean square (LMS) or normalised least mean square (NLMS) algorithm. Installation Linux If you want to install it via pip you first need to install the fir1 filter package: sudo add-apt-repository ppa:berndporr/usbdux sudo apt-get update sudo apt install fir1 sudo apt install fir1-dev - Then install the python package with pip:: - pip3 install fir1 Note that this will install from source so you need to have swig installed. You can also install from source: git clone cd fir1 cmake . make make install python3 setup.py install Windows The setup.py is alpha and needs to be tested. Usage Realtime filtering The filter is a realtime filter which always receives the values one by one so can process data as it comes in from an ADC converter. This is simulated here with the for loop: import fir1 b = signal.firwin(999,0.1) f = fir1.Fir1(b) for i in range(len(noisy_signal)): clean_signal[i] = f.filter(noisy_signal[i]) The constructor Fir1(b) receives the coefficients and then filtering is performed with the method filter(). LMS adaptive filter Please check the C++ code for examples and the main github page. The functions are identical. Project details Release history Release notifications Download files Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
https://pypi.org/project/fir1/1.3.0.7/
CC-MAIN-2019-39
refinedweb
254
65.22
Non-blocking QML - romsharkov Situation You either have a QObject derivative that exposes a Q_INVOKABLE method to QML, say myapi.myfunc.. or you have a pure JavaScript function myjsfunc defined in the QML code. In both you do some heavy calculations and/or (network) I/O. Problem First: both myapi.myfunc and myjsfunc are asynchronous and needs proper async handling Second: You don't want neither myapi.myfunc nor myjsfunc to block the event loop while it's executing Possible Solution Return a Promise object! and let the user define the handling on it. In QML/JavaScript you can then define some asynchronous logic this way: import "myfsfunc.js" as JsBusinessLogic SomeItem { onSomething: { myapi.myfunc(...) .then( function(firstResult) { //success! make another async call return JsBusinessLogic.myjsfunc(firstResult) }, function(err, msg) { //failure! myfunc returned an error } ) .then( function(secondResult) { //success! second call succeeded, EXIT }, function(err, msg) { //failure! second call returned an error } ) .catch(function() { //something went seriously wrong }) } } Meanwhile myjsfunc could look somewhat like this: function myjsfunc() { return new Promise(function(resolve, reject) { //do some heavy lifting... if(result == good) { resolve(result) return } reject("baaaad results, error!") }) } The promise object allows easy chaining of async operations and proper error and exception handling, but it still wont't change the fact that it's executed by the event loop and will inevitably block it, which ofcourse is unacceptable. Question So.... to make the async Promise non-blocking, I'd need to implement the Promise class in a way that uses a thread pool to execute the Promises in the background? This way when you call an invokable C++ method or a JS function both create and return a Promise object and exit! not blocking the loop any longer!, right?! The promise itself is then executed in a separate thread from the thread pool in the background. When it's finished its calculation and/or waiting for external resources it will run the JS handlers defined by then() or catch() in the event loop again, which won't block much. So did I correctly understand it? Would such kind of a Promise implementation work as described? Or is there probably an easier way? Thanks! P.S. You might ask me why I'm implementing parts of the business logic in pure JavaScript when JS is not meant to be used for this in Qt? Well... you see.. executing 3rd party C++ is not an option if you want to build a safe OS basis, that's why JavaScript does the logic, JavaScript is easily sandboxed by the QQmlEngine while C++ is extraordinary hard to sandbox. Also using JavaScript for logic like this is what it was eventually designed for.. it's a scripting language and I use it to glue low-level modules and APIs together, just in an asynchronous, non-blocking way. This is the kind of things you become Qt Champion for: P.S. Big up to the way you ask questions! - romsharkov This post is deleted! - romsharkov After a detailed research of various asynchronous techniques such as Promises, Futures, Tasks and Reactive Extensions we came with a new paradigm that solved all our asynchronous problems very elegantly: The Streams Paradigm It's inspired by the reactive approach, though superior in many aspects such as abstraction, abortion, resumables etc. It's a completely rethought way of writing declarative code, making complex asynchronous operations and transactions (and probably even concurrency) a piece of cake! Nearly everything can be represented, thus abstracted away by a stream.. - UI Elements - Sockets - Requests (HTTP etc.) - Calculations - the list goes on... This way streams become a consistent protocol of asynchronous and concurrent communication between various application components ranging from the UI frontend to the networked backend. We published the first beta release of a QML implementation with a working example aboard, be sure to check it out!
https://forum.qt.io/topic/79168/non-blocking-qml
CC-MAIN-2018-34
refinedweb
641
56.55
25215/discover-raspberry-s-ip Windows IoT Core device can be set as soft AP. When the Windows 10 IoT Device have access to the internet (e.g. through a wired LAN connection), it can share the Internet access with other devices connected to your device over the Wi-Fi SoftAP via Internet Connection Sharing (ICS). You can follow this tutorial to do this. IP cameras send the stream to another stream ...READ MORE You can access the list of clients ...READ MORE First, let me congratulate you on buying ...READ MORE It is possible, but you should understand ...READ MORE It can be done by making changes ...READ MORE Of course, you, can! That is, in ...READ MORE This can be achieved directly with Windows ...READ MORE Try something like this. #include "uip-ds6-nbr.h" #include "nbr-table.h" uip_ds6_nbr_t *nbr ...READ MORE You can understand the charge rates here:- ...READ MORE It appears you can now have multiple ...READ MORE OR Already have an account? Sign in.
https://www.edureka.co/community/25215/discover-raspberry-s-ip
CC-MAIN-2020-10
refinedweb
170
79.46
Trie Tree: A trie (from retrieval), is a multi-way tree structure useful for storing strings over an alphabet. It has been used to store large dictionaries of English (say) words in spelling-checking programs and in natural-language “understanding” programs. A trie tree uses the property that if two strings have a common prefix of length n then these two will have a common path in the trie tree till the length n. The structure for a node of trie tree is defined as struct node { bool end_string; struct node *next_char[26]; }; The end_string flag is set if there exists a string that ends at this node. The next_char[0-26] represents the next character of the string. The above check function can be modified to create a new function delete_node() that deletes a string present in the trie tree. Trie tree can be used to find minimum XOR between any two numbers in an array of integers. The code for trie tree is as follows: Implementation: #include <bits/stdc++.h> using namespace std; //each element in the trie tree struct node { bool end_string; struct node *next_char[26]; }; //to insert the string in the trie tree void insert(struct node *head, string str) { int i, j; for(i = 0;i < str.size(); ++i){ //if the child node is pointing to NULL if(head -> next_char[str[i] - 'a'] == NULL){ struct node *n; //initialise the new node n = new struct node; for(j = 0;j < 26; ++j){ n -> next_char[j] = NULL; } n -> end_string = 0; head -> next_char[str[i] - 'a'] = n; head = n; } //if the child node is not pointing to q else head = head -> next_char[str[i] - 'a']; } //to mark the end_string flag for this string head -> end_string = 1; } // to check is the string lies in trie tree bool check(struct node *head, string str) { int i; for(i = 0;i < str.size(); ++i){ if(head -> next_char[str[i] - 'a'] == NULL) return false; else head = head -> next_char[str[i] - 'a']; } //check if the end_string flag is 1 if(head -> end_string == 1) return true; else return false; } int main() { int n, m, i; //n = number of string's to be inserted in trie tree //m = number of string's to be checked in trie tree struct node *head; head = new struct node; //initialise the new node for(i = 0;i < 26; ++i){ head -> next_char[i] = NULL; } head -> end_string = 0; cin >> n; while(n--){ string str; cin >> str; insert(head, str); //to insert the string in the trie tree } cin >> m; //number of string's to be checked while(m--){ string str; cin >> str; if(check(head, str)) cout << "present\n"; else cout << "not present\n"; } return 0; } Time complexity: Insert operation takes a time of O(n) where n is the length of string to be inserted. Space complexity: The total space taken is O(n * 26) where n is the number of nodes in a tree.
http://www.crazyforcode.com/trie-data-structure-implementation/
CC-MAIN-2017-26
refinedweb
485
59.91
import "go.chromium.org/luci/common/sync/promise" var ( // ErrNoData is an error returned when a request completes without available data. ErrNoData = errors.New("promise: No Data") ) Generator is the Promise's generator type. Map is a map from some key to a promise that does something associated with this key. First call to Get initiates a new promise. All subsequent calls return exact same promise (even if it has finished). Get either returns an existing promise for the given key or creates and immediately launches a new. New instantiates a new, empty Promise instance. The Promise's value will be the value returned by the supplied generator function. The generator will be invoked immediately in its own goroutine.. Peek returns the promise's current value. If the value isn't set, Peek will return immediately with ErrNoData. Package promise imports 3 packages (graph) and is imported by 4 packages. Updated 2019-08-17. Refresh now. Tools for package owners.
https://godoc.org/go.chromium.org/luci/common/sync/promise
CC-MAIN-2019-35
refinedweb
160
51.65
Update: Much of this got much easier today with user defined procedures, like apoc.load.json, which add this kind of capability to Cypher directly.Neo4j’s query language Cypher supports loading data from CSV directly but not from JSON files or URLs. Almost every site offers some kind of API or endpoint that returns JSON and we can also query many NOSQL databases via HTTP and get JSON responses back. It’s quite useful to be able to ingest document structured information from all those different sources into a more usable graph model. I want to show here that retrieving that data and ingesting it into Neo4j using Cypher is really straightforward and takes only little effort. As Cypher is already pretty good at deconstructing nested documents, it’s actually not that hard to achieve it from a tiny program. I want to show you today how you can achieve this from Python, Javascript, Ruby, Java, and Bash. The Domain: Stack OverflowBeing a developer I love Stack Overflow; just crossed 20k reputation by only answering 1100 Neo4j-related questions :). You can do that too. That’s why I want to use Stack Overflow users with their questions, answers, comments and tags as our domain today. - What are the people asking or answering about Neo4j also interested in - How is their activity distributed across tags and between questions, answers and comments - Which kinds of questions attract answers and which don’t - Looking at my own data, which answers to what kinds of questions got the highest approval rates Stack Overflow APIStack Overflow offers an API to retrieve that information, it’s credential protected as usual, but there is the cool option to pre-generate an API-URL that encodes your secrets and allows you to retrieve data without sharing them. You can still control some parameters like tags, page size and page-number though. With this API-URL below, we load the last 10 questions with the Neo4j tag.)4W7vpy91PMYsKM-k9yzEsSC1_Uxlf The response should look something like this (or scroll to the far bottom). { "items": [{ "question_id": 24620768, "link": "", "title": "Neo4j cypher query: get last N elements", "answer_count": 1, "score": 1, ..... "creation_date": 1404771217, "body_markdown": "I have a graph....How can I do that?", "tags": ["neo4j", "cypher"], "owner": { "reputation": 815, "user_id": 1212067, .... "link": "" }, "answers": [{ "owner": { "reputation": 488, "user_id": 737080, "display_name": "Chris Leishman", .... }, "answer_id": 24620959, "share_link": "", .... "body_markdown": "The simplest would be to use an ... some discussion on this here:...", "title": "Neo4j cypher query: get last N elements" }] } Graph ModelSo what does the graph-model look like? We can develop it by looking at the questions we want to answer and the entities and relationships they refer to. We need this model upfront to know where to put our data when we insert it into the graph. After all we don’t want to have loose ends. Cypher Import StatementThe Cypher query to create that domain is also straightforward. You can deconstruct maps with dot notation map.keyand arrays with slices array[0..4]. You’d use UNWINDto convert collections into rows and FOREACHto iterate over a collection with update statements. To create nodes and relationships we use MERGEand CREATEcommands. My friend Mark just published a blog post explaining in detail how you apply these operations to your data. The JSON response that we retrieved from the API call is passed in as a parameter {json}to the Cypher statement, which we alias with the more handy dataidentifier. Then we use the aforementioned means to extract the relevant information out of the datacollection of questions, treating each as q. For each question we access the direct attributes but also related information like the owner or contained collections like tags or answers which we deconstruct in turn. WITH {json} as data UNWIND data.items as q MERGE (question:Question {id:q.question_id}) ON CREATE SET question.title = q.title, question.share_link = q.share_link, question.favorite_count = q.favorite_count MERGE (owner:User {id:q.owner.user_id}) ON CREATE SET owner.display_name = q.owner.display_name MERGE (owner)-[:ASKED]->(question) FOREACH (tagName IN q.tags | MERGE (tag:Tag {name:tagName}) MERGE (question)-[:TAGGED]->(tag)) FOREACH (a IN q.answers | MERGE (question)<-[:ANSWERS]-(answer:Answer {id:a.answer_id}) MERGE (answerer:User {id:a.owner.user_id}) ON CREATE SET answerer.display_name = a.owner.display_name MERGE (answer)<-[:PROVIDED]-(answerer) ) Calling Cypher with the JSON parametersTo pass in the JSON to Cypher we have to programmatically call the Cypher endpoint of the Neo4j server, which can be done via one of the many drivers for Neo4j or manually by POSTing the necessary payload to Neo4j. We can also call the Java API. So without further ado here are our examples for a selection of different languages, drivers and APIs: PythonWe use the py2neo driver by Nigel Small to execute the statement: import os import requests from py2neo import neo4j # Connect to graph and add constraints. neo4jUrl = os.environ.get('NEO4J_URL',"") graph = neo4j.GraphDatabaseService(neo4jUrl) # Add uniqueness constraints. neo4j.CypherQuery(graph, "CREATE CONSTRAINT ON (q:Question) ASSERT q.id IS UNIQUE;").run() # Build URL. apiUrl = "...." % (tag,page,page_size) # Send GET request. json = requests.get(apiUrl, headers = {"accept":"application/json"}).json() # Build query. query = """ UNWIND {json} AS data .... """ # Send Cypher query. neo4j.CypherQuery(graph, query).run(json=json) JavascriptFor JavaScript I want to show how to call the transactional Cypher endpoint directly, by just using the request node module. var r=require("request"); var neo4jUrl = (env["NEO4J_URL"] || "") + "/db/data/transaction/commit"; function cypher(query,params,cb) { r.post({uri:neo4jUrl, json:{statements:[{statement:query,parameters:params}]}}, function(err,res) { cb(err,res.body)}) } var query="UNWIND {json} AS data ...."; var apiUrl = "...."; r.get({url:apiUrl,json:true,gzip:true}, function(err,res,json) { cypher(query,{json:json},function(err, result) { console.log(err, JSON.stringify(result))}); }); JavaWith Java I want to show how to use the Neo4j embedded API to execute Cypher. import org.apache.http.*; import org.codehaus.jackson.map.ObjectMapper; import org.neo4j.graphdb.*; // somewhere in your application-scoped setup code ObjectMapper mapper = new ObjectMapper(); HttpClient http = HttpClients.createMinimal(); GraphDatabaseService db = new GraphDatabaseFactory().newEmbeddedGraphDatabase(PATH); // execute API request and parse response as JSON HttpResponse response = http.execute(new HttpGet( apiUrl )); Map json = mapper.readValue(response.getEntity().getContent(), Map.class) // execute Cypher String query = "UNWIND {json} AS data ...."; db.execute(query, singletonMap("json",json)); // application scoped shutdown, or JVM-shutdown-hook db.shutdown(); RubyUsing the neo4j-core Gem, we can talk to Neo4j Server or embedded (using jRuby) by just changing a single line of configuration. require 'rubygems' require 'neo4j-core' require 'rest-client' require 'json' QUERY="UNWIND {json} AS data ...." API = "...." res = RestClient.get(API) json = JSON.parse(res.to_str) session = Neo4j::Session.open session.query(QUERY, json: json) BashBash is of course most fun, as we have to do fancy text substitutions to make this work. #!/bin/bash echo "Usage load_json.sh '' import_json.cypher" echo "Use {data} as parameter in your query for the JSON data" JSON_API="$1" QUERY=`cat "$2"` # cypher file JSON_DATA=`curl --compress -s -H accept:application/json -s "$JSON_API"` POST_DATA="{\"statements\":[{\"statement\": \"$QUERY\", \"parameters\": {\"data\":\"$JSON_DATA\"}}]}" DB_URL=${NEO4J_URL-} curl -i -H accept:application/json -H content-type:application/json -d "$POST_DATA" -XPOST "$DB_URL/db/data/transaction/commit" Example Use-CasesHere are some simple example queries that I now can run on top of this imported dataset. To not overload this blog post with too much information, we’ll answer our original questions in Part 2. Find the User who was most active MATCH (u:User) OPTIONAL MATCH (u)-[:PROVIDED|ASKED|COMMENTED]->() RETURN u,count(*) ORDER BY count(*) DESC LIMIT 5 Find co-used Tags MATCH (t:Tag) OPTIONAL MATCH (t)<-[:TAGGED]-(question)-[:TAGGED]->(t2) RETURN t.name,t2.name,count(distinct question) as questions ORDER BY questions DESC MATCH (t:Tag)<-[r:TAGGED]->(question) RETURN t,r,question ConclusionSo as you can see, even with LOAD JSONnot being part of the language, it’s easy enough to retrieve JSON data from an API endpoint and deconstruct and insert it into Neo4j by just using plain Cypher. Accessing web-APIs is a simple task in all stacks and languages and JSON as transport format is ubiquitous. Fortunately, the unfortunately lesser known capabilities of Cypher to deconstruct complex JSON documents allow us to quickly turn them into a really nice graph structure without duplication of information and rich relationships. I encourage you to try it with your favorite web-APIs and send us your example with graph model, Cypher import query and 2-3 use-case queries that reveal some interesting insights into the data you ingested to content@neotechnology.com. Want to learn more about graph databases? Click below to get your free copy of O’Reilly’s Graph Databases ebook and start building better apps powered by graph technologies. Appendix: Stack Overflow Response { "items": [{ "answers": [{ "owner": { "reputation": 488, "user_id": 737080, "user_type": "registered", "accept_rate": 45, "profile_image": " ffa6eed1e8a9c1b2adb37ca88c07dede?s=128&d=identicon&r=PG", "display_name": "Chris Leishman", "link": "" }, "tags": [], "comment_count": 0, "down_vote_count": 0, "up_vote_count": 2, "is_accepted": false, "score": 2, "last_activity_date": 1404772223, "creation_date": 1404772223, "answer_id": 24620959, "question_id": 24620768, "share_link": "", "body_markdown": "The simplest would be to use an ... some discussion on this here:)", "link": "", "title": "Neo4j cypher query: get last N elements" }], "tags": ["neo4j", "cypher"], "owner": { "reputation": 815, "user_id": 1212067, "user_type": "registered", "accept_rate": 73, "profile_image": "", "display_name": "César García Tapia", "link": "" }, "comment_count": 0, "delete_vote_count": 0, "close_vote_count": 0, "is_answered": true, "view_count": 14, "favorite_count": 0, "down_vote_count": 0, "up_vote_count": 1, "answer_count": 1, "score": 1, "last_activity_date": 1404772230, "creation_date": 1404771217, "question_id": 24620768, "share_link": "", "body_markdown": "I have a graph that...How can I do that?", "link": "", "title": "Neo4j cypher query: get last N elements" }, { "tags": ["neo4j", "cypher"], "owner": { "reputation": 63, "user_id": 845435, "user_type": "registered", "accept_rate": 67, "profile_image": " 610458a30958c9d336ee691fa1a87369?s=128&d=identicon&r=PG", "display_name": "user845435", "link": "" }, "comment_count": 0, "delete_vote_count": 0, "close_vote_count": 0, "is_answered": false, "view_count": 16, "favorite_count": 0, "down_vote_count": 0, "up_vote_count": 0, "answer_count": 0, "score": 0, "last_activity_date": 1404768987, "creation_date": 1404768987, "question_id": 24620297, "share_link": "", "body_markdown": "I'm trying to implement a simple graph db for NYC subway................Thanks!\r\n", "link": "", "title": "Cypher query with infinite relationship takes forever" }], "has_more": true, "quota_max": 300, "quota_remaining": 205 } Keywords: bash Cypher Query java javascript json load json neo4j python ruby stack overflow. 9 Comments Solved it and it works well. There were 3 issues: 1. New lines in file containing Cyper queries were causing issues so I ended up with one gigantic line with spaces between commands. I guess Cypher parser expects this on the other side. 2. All JSON data needs to have escaped “. So I guess some data clean-up is needed before this JSON is used in BASH. I use my own JSON file I have cleaned up as pre-requisit. 3. Removed \” around $JSON_DATA in POST_DATA since data inside $JSON_DATA starts with { and no \” needed around. Spring Boot, the new convention-over-configuration centric framework from the Spring team at Pivotal, marries Spring’s flexibility with conventional, common sense defaults to make application development not just fly,but pleasant! Hello I am trying to compile the java example and but get an error on the following statement: HttpClient http = HttpClients.createMinimal(); After searching on the web I found the variable type could be CloseableHttpClient instead of HttpClient . but even with this change the list of imports and jars I supplied in the CLASSPATH do seem to be sufficient to resolve HttpClients.createMinimal() function. I added more imports without any more success to compile the code. import org.apache.http.impl.client.*; import javax.net.*; Any hint much appreciated. Bob Hi, I am trying to adjust the tutorial to the newer py2neo version. It seems the syntax has changed significantly and now the following line does not work anymore: neo4j.CypherQuery(graph, query).run(json=json) I have tried this: results = graph.cypher.run(query,json=json) However, it didn’t work and produced more errors. Any suggestions on how to change the code to adjust to the new syntax? Hi All, I am not sure whether this is the right place to ask this but had an urgent query so asking here and expecting some clue. I am using Neo4J 3.0.6 I need to get the JSON data for a relationship from my java code but unfortunately I am not getting now. Any pointer on this please. Regards, Abhijit Thank you for the intuitive StackOverflow example. Where is the distinction between “answered” and “edited” (or “asked” and “edited”) encoded? Best regards, Tanya thanks for the post! I’ve made a working demo project using the Javascript example the main contribution of this demo project is showing the auth header. The complete query and api link are also show, so that you can just run the script without any addition copy-pasting or guesswork 🙂 Hi, I was hoping you could help me. I have searched everywhere but have not found a way to traverse through the JSON file so that I can extract the values under “300xxxxx” (such as uid and pubdate) so that I can then load the key/value pairs in my graph. dataset: “result”: { “30073633”: { “uid”: “30073633”, “pubdate”: “2018 Aug 3”, “epubdate”: “2018 Aug 3” }, “30050740”: { “uid”: “30050740”, “pubdate”: “2018 May 24”, “epubdate”: “2018 May 24” }, } As you can see (for reasons I cannot control) this dataset is constructed in a redundant way. Do you know how I can basically “ignore” the 30073633 and 30050740 values and just extract the key value pairs inside that object or, alternatively, load it a variable property name/key onto my graph? Thanks!!! Upcoming Event Have a Graph Question? Reach out and connect with the Neo4j staff.Stack Overflow Community Forums Share your Graph Story? Hi there. I tried to make Bash example work with Neo4j 2.2.3 Community Edition from my MacBook Pro and it is not working. I get the following error from Neo4j: {“results”:[],”errors”:[{“code”:”Neo.ClientError.Request.InvalidFormat”,”message”:”Unable to deserialize request: Illegal unquoted character ((CTRL-CHAR, code 10)): has to be escaped using backslash to be included in string value\n at [Source: HttpInputOverHTTP@190a6a94; line: 1, column: 51]”}]} I trimmed JSON size to only 5 posts since was getting an error when using 100 that it was too big. Any idea? I am trying to do something else and this example is perfect example of what I need, so first need to get it working to move to my actual work. In my work for same concept: JSON that gets injected as parameter in Cypher query I get: {“errors”: [{“code”: “Neo.ClientError.Request.InvalidFormat”, “message”: “Unable to deserialize request: Unexpected character (‘e’ (code 101)): was expecting comma to separate OBJECT entries\n at [Source: HttpInputOverHTTP@6781a645; line: 1, column: 104]”}], “results”: []} where ‘e’ is just first character inside my JSON document.
https://neo4j.com/blog/cypher-load-json-from-url/
CC-MAIN-2018-43
refinedweb
2,452
55.24
High socket (IP and port) vhost context; understanding URL-to-filesystem namespace mapping; controlling the apache httpd daemon The release of apache httpd 2.4 3rd forward .php files (or URLs that contain the text .php somewhere in the request) Edit the configuration for a vhost of your choice, and add the following line to it: ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/path/to/your/documentroot/$1.) example Say you want to be able to conjure up the standard php info page listing all compiled-in and loaded extensions, and all runtime configuration options and script info. We first create a file, info.php, by running the following: echo "<?php phpinfo() ?>" > /var/www/info.php NOTE you may need to do this as root, depending on the permissions set on /var/www. - I assume /var/www is the documentroot of an existing vhost; this is the case on most major distributions.. In case you want. Don't forget to reload apache after making any changes to a vhost or other configuration file. Performance and Pitfalls mod_proxy_fcgi only supports network sockets ( Unix Caveat.
https://wiki.apache.org/httpd/PHP-FPM?action=diff&rev1=3&rev2=2
CC-MAIN-2016-50
refinedweb
184
57.67
getitimer(2) getitimer(2) NAME getitimer, setitimer - get/set value of interval timer SYNOPSIS #include <<<<sys/time.h>>>> int getitimer(int which, struct itimerval *value); int setitimer( int which, const struct itimerval *value, struct itimerval *ovalue ); DESCRIPTION. Implementations may place limitations on the timer value. To make sure that a process gets at least as much time as requested, the timer value is rounded up to the next timer tick (a timer tick is the smallest supported value). The timer value is rounded up to the next timer tick because, the timer will be initialize somewhere between timer ticks. If a setitimer() is followed by a getitimer() without a timer tick in between, it is possible that the value returned by getitimer() may be more than the initial value requested by setitimer() due to this rounding. An XSI-conforming implementation provides each process with at least three interval timers, which are indicated by the which argument: ITIMER_REAL Decrements in real time. A SIGALRM signal is delivered when this timer expires. Hewlett-Packard Company - 1 - HP-UX Release 11i: November 2000 getitimer(2) getitimer(2). The interaction between setitimer() and any of alarm(), sleep() or usleep() is unspecified. RETURN VALUE Upon successful completion, getitimer() or setitimer() returns 0. Otherwise, -1 is returned and errno is set to indicate the error. ERRORS recognized. SEE ALSO alarm(2), sleep(3C), ualarm(2), usleep(2), <signal.h>, <sys/time.h>. CHANGE HISTORY First released in Issue 4, Version 2. - 2 - Formatted: August 2, 2006 getitimer(2) getitimer(2) HP-UX EXTENSIONS DESCRIPTION A timer value is defined by the itimerval structure: struct itimerval { struct timeval it_interval; /* timer interval */ struct timeval it_value; /* current value */ }; Time values smaller than the resolution of the system clock are rounded up to this resolution. The machine-dependent clock resolution is 1/HZ seconds, where the constant HZ is defined in <sys/param.h>. Time values larger than an implementation-specific maximum value are rounded down to this maximum. The maximum values for the three interval timers are specified by the constants MAX_ALARM, MAX_VTALARM, and MAX_PROF defined in <sys/param.h>. On all implementations, these values are guaranteed to be at least 31 days (in seconds). Each time the ITIMER_PROF timer expires, the SIGPROF signal is delivered. Since this signal can interrupt in-progress system calls, programs using this timer must be prepared to restart interrupted system calls. Interval timers are not inherited by a child process across a fork(), but are inherited across an exec(). Three macros for manipulating time values are defined in <sys/time.h>: timerclear Set a time value to zero. timerisset Test if a time value is non-zero. timercmp Compare two time values. (Beware that >>>>= and <<<<= do not work with the timercmp macro.) The timer used with ITIMER_REAL is also used by alarm() (see alarm(2)). Thus successive calls to alarm(), getitimer(), and setitimer() set and return the state of a single timer. In addition, a call to alarm() sets the timer interval to zero. ERRORS getitimer() or setitimer() fail if any of the following conditions are encountered: [EFAULT] The value structure specified a bad address. Reliable detection of this error is implementation dependent. Hewlett-Packard Company - 1 - HP-UX Release 11i: November 2000 getitimer(2) getitimer(2) [EINVAL] A value structure specified a microsecond value less that zero or greater than or equal to one million. [EINVAL] which does not specify one of the three possible timers. EXAMPLES The following call to setitimer() sets the real-time interval timer to expire initially after 10 seconds and every 0.5 seconds thereafter: struct itimerval rttimer; struct itimerval old_rttimer; rttimer.it_value.tv_sec = 10; rttimer.it_value.tv_usec = 0; rttimer.it_interval.tv_sec = 0; rttimer.it_interval.tv_usec = 500000; setitimer (ITIMER_REAL, &&&&rttimer, &&&&old_rttimer); AUTHOR getitimer() was developed by the University of California, Berkeley. SEE ALSO alarm(2), exec(2), gettimeofday(2), signal(5). Hewlett-Packard Company - 2 - HP-UX Release 11i: November 2000
http://modman.unixdev.net/?sektion=2&page=setitimer&manpath=HP-UX-11.11
CC-MAIN-2017-17
refinedweb
654
56.96
Table of Contents - Table of Contents - Introduction - Naive way of testing code - What is Unit testing? - Getting your feet wet - Final notes - Further Reading Introduction Hey folks! So I kinda promised to someone I forgot who that I'll write a unit testing guide for this group. There must be hundreds of similar guides out there in the wild, but I feel like most of those I've seen are too short and doesn't really explain the rationale behind unit testing. I think unit testing is one of the most underrated skill that a programmer should learn and sadly it isn't taught in schools (in our country, at least). So here's my take on a (hopefully) gentle introduction to the world of automated testing. Anyway, enough with my babbling. Let's get right into it. Naive way of testing code When we first started learning programming, what we'd normally do is write code, run the program. Then conduct tests by entering some inputs hoping that the output is as we desired. If not, we go back writing our code again and fixing bugs. Well, there's nothing wrong with that. In fact, for your entire life as a programmer you'd be doing all these three things: 1) write code 2) run the program 3) test the behavior of your program Then repeat again But you won't always be writing simple console applications. Sooner or later, you'll find yourself doing repetitive tests with slightly varying inputs. In the real world where you'd be dealing with much much bigger and more complex software, doing those three things every time will be very time consuming. There will also be cases where you need to isolate your changes and just test a specific part rather than the whole system. What is Unit testing? So instead of running and testing your entire program every time you have to a change in your code, we can automate it by writing code to test our code. More specifically, write code that would test a single part of the system isolated from everything else. That's unit testing. An analogy For example, you are building a house and you need some light bulbs. So you go to the store and buy a light bulb. In order to make sure that the light bulb you just bought works, you need to test it. But the good thing about it is that it's independent of your house. You can test it by itself. No need to actually install it in your house and see if it lights up. Instead, you or the sales assistant can install it to a test bulb socket (found in most hardware or appliance stores) and see if it lights up. You are essentially testing a single unit of a light bulb which is meant to be part of your house (i.e. the entire system) under construction. Imagine if it wasn't possible to test the light bulb alone. You have to go back to your house first, finish building it, install the light bulbs and test if it actually switches on. Quite a hassle, isn't it? Getting your feet wet Prerequisites Before taking this guide, be sure that you are already familiar with Java language as I will not be going through the detail of compiling and running your Java program. Also be sure to have an internet connection as we will be downloading some tools, and libraries. This guide also assumes that you have an existing project where you want to add unit testing. If not, you can just copy-paste the Java files below and follow along. It's also worth noting that the guide, for now, is also written to suit MacOS or Linux users. But experienced Windows users may also want to try anyway (and let me know where it gets difficult! I'll make updates on this guide where necessary). Below is short list of everything you need: - Java 8 or higher (I'm using Java 8. But to follow this guide, it doesn't matter if you're using a newer version) - Favorite Code editor or IDE (I use IntelliJ IDEA myself, but you're free to use whatever you want) - Gradle build tool (download and follow the guide here) - in case you are already using Gradle, you may want to skip to this step and just add JUnit to your dependencies - Command Line (Shell or Command Prompt) - we'll be doing things from scratch, so having familiarity working in terminal is a great plus - this also makes this guide IDE-agnostic, meaning you don't have to be very dependent on a specific IDE just to make this work - if you're on Windows, you may opt to use WSL or the bash prompt that comes with Git (if you are already using one). A sample existing code Say we have an existing console application which accepts input of any length from the user and then our program outputs the reverse of the input. Classic problem. So we can implement this by writing the following: You might notice a "bug" here. That's intentional. We'll delve into that later At this point, your project structure should look similar to this. It's alright if you don't have the .idea folder or the *.iml file. Those are just IntelliJ IDEA generated files. Setting up the testing framework The testing framework that we're gonna use is JUnit. To add it in our project, we need a dependency manager such as Gradle. 💡 Dependency Manager The great thing about OOP is that it allows us to reuse somebody else's code. Those reusable pieces of code often mature enough that they can be standalone libraries or frameworks. They then get redistributed by various means, either by downloading the JAR files, as in the case of Java, or getting the source code and building it by yourself. These libraries or frameworks become the dependencies of your project. Some of these libraries/frameworks have dependencies of their own, so you also have to take care of them and add them to your project. But doing so multiple times over the duration of your project can be time-consuming, entails difficulties, and is a very repetitive processes. This is where dependency manager comes in. A dependency manager is a tool that helps you download libraries and/or frameworks, as well as their dependencies, to add to your project; while also keeping track of the version you are using for each. Some examples of popular dependency managers for Java projects are Gradle and Maven (which also functions as build tools). For further reading about dependency managers and what they can do, check out this article by Seun Matt in Medium If you have prepared the prerequisites listed earlier, you should have Gradle already installed in your system. To check, enter the following in your terminal and it should output a directory where you installed Gradle. $ which gradle Next, we need to turn our existing console application project into a Gradle project. Expand each step by clicking the drop-down then follow the instructions Go to your project directory In my case, my project is saved in Users/gerv/Source/HelloUnitTesting. I can use ~as short hand for my User home directory. $ cd ~/Source/HelloUnitTesting Initialize a Gradle project Simple enter the following command and follow the on-screen instructions to setup gradle for your project $ gradle init If you're confused, you can just follow the screenshot below. You might notice that my shell prompt is different. That's because I'm using zsh with oh-my-zsh, but that's a topic for another day. For now, think of that fancy arrow as the $sign you normally see. Run your first Gradle build $ gradle build Then you should see an output similar to this: You might notice that there are a bunch of files added to your project folder. These are files that are generated by gradle init and will be used by Gradle when building your project. You may happily ignore them for now, but I want to quickly introduce you to one of them, the build.gradle file. This is the file that contains the list of your dependencies and repositories (from which your dependencies will be downloaded). Take a quick look at it and notice that JUnit is already added; this because we picked JUnit earlier when we ran gradle init . You may also notice that main and test folders are added to the project. We will use them to reorganize our code. Separating source code and test code Gradle isn't smart enough to know that you already have existing code in your project, and assumes that you are starting a Gradle project from scratch. So it creates its own folders, package, the class named App.java with the main() method. After running gradle init , your project directory should look like this. But we already have ConsoleApplication.java and that serves as the main entry point of our application so we can just get rid of App.java. We also don't need the package HelloUnitTesting since we already have an existing one from before. Delete them as you normally would, or if you're like me and you like doing everything in terminal $ rm -r src/main/java/HelloUnitTesting $ rm -r src/test/java/HelloUnitTesting Then we need to reorganize our code and put them inside the main/java/ folder. To do this, you can either drag the com.gerv.guev (or whatever your existing package name is) to main/java/ or do it via terminal again $ mv src/com src/main/java/com If you're also using IntelliJ IDEA, you might notice that main/java is marked like a package even though it isn't. To make them appear like normal folders, simply right click on the src then point to Mark Directory As and pick Unmark as Sources Root. Then right click on java folder under main then Mark Directory As and pick Sources Root. Do the same thing with the java folder under test, but pick Test Sources Root. For the resources folder, mark them as Resources Root and Test Resources Root for main and test respectively. If you've carefully followed the instructions, your project directory should now look something like this: To quickly check if everything still works, run this and it should tell you "Build Successful". You may also want to try and run your program if it still works as before. $ gradle build If your gradle build is successful but your IDE is complaining (i.e. squiggly red lines, you can just reimport/reopen your project and hopefully your IDE recognizes that it's now a Gradle project. Quick Recap! That's a lot of things we've already covered. Here's what we've done so far: - turn our project into a Gradle project - add JUnit to our dependencies - Reorganize our project folders Writing your first unit test Now that we have finished setting up our project and its dependencies, we are now ready to write our unit test! Under the test/java folder, create a package com.gerv.guev or whatever package name you already used in your project. Then create a file named MyStringUtilitiesTest.java. You may copy the contents of the class for now, I'll explain what it does along the way. Then we are going to add a test method that actually does nothing. We're taking very small steps to make sure we're not making mistakes and everything is still working as it is. In the code above, @Test is an annotation that tells our compiler that the method that we just wrote is a test method. @Test annotation is located under the org.junit package (notice the import statement above). A method marked as a test method will be checked by the test runner if it satisfies some conditions we are expecting. In this case, the test should always pass because we told it to assert true which will always be true no matter what. The point of writing this the first time is to check if our unit testing framework was really set up correctly. After you've written one or if you're already familiar with the testing framework your are using, there's no need to write this one every time. To run the test, type in this command $ gradle test --tests="com.gerv.guev.MyStringUtilitiesTest.someUselessTest" In the command above, we are telling Gradle to run the test found in a fully qualified name. In this case we're telling it to specifically run someUselessTest() test method. A fully qualified name consists of the package name, class name, and method name. It represents the hierarchical location of your file or folder and should always be unique. But if you have multiple tests inside a class or package, you can just replace it with an asterisk (*) and it should still run $ gradle test --tests="com.gerv.guev.MyStringUtilitiesTest.*" Running the test and using the results to debug Now, let's replace that useless test with a real one to test our earlier code for reversing a string. Go ahead and run the test using the command mentioned earlier, and you should see an error similar to this > Task :test FAILED com.gerv.guev.MyStringUtilitiesTest > shouldReturn_ReverseString FAILED org.junit.ComparisonFailure at MyStringUtilitiesTest.java:14 3 actionable tasks: 1 executed, 2 up-to-date This tells us that our test failed. Gradle has a pretty neat way of telling this to us and generates an HTML report. Copy that file path and open it using your browser. From here it says: org.junit.ComparisonFailure: expected:<[olleh]> but was:<[????o]> on the first line of the stack trace. It tells us many things: - our input string was not reversed hence it is not equal to our expected output "olleh" - the actual result does not contain the correct characters or is probably empty. Instead, it's displaying multiple question marks. - The actual output has the same length as our expected output. It has 5 characters. - The last character "o" is still the last character in the actual output Don't fear the stack trace! Most beginners find the error messages in the stack trace intimidating, but it's actually quite easy to decipher. All you have to do is to read the first line to have a general idea of what caused the failure. If you still don't know at first glance what the error was, skim through the lines and look for your package and class ****then check the line number. In our example, it says: org.junit.ComparisonFailure: expected:<[olleh]> but was:<[????o]> then I skip lines until I see a familiar package name: at com.gerv.guev.MyStringUtilitiesTest.shouldReturn_ReverseString(MyStringUtilitiesTest.java:14) That tells us that there was a ComparisonFailure at line 14 of our MyStringUtilitiesTest class. Given those findings, we can check back our code to see what was wrong. Here's the current code now with comments. Can you spot what's wrong? From our original code, what we did is we took each letter of the input from left to right then transferring it to the new character array from right to left but we did not move the index. To fix this, we have to decrement the index for it to move from right to left. Now run your test again and it should give that sweet success gradle test --tests="com.gerv.guev.MyStringUtilitiesTest.*" BUILD SUCCESSFUL in 1s 3 actionable tasks: 2 executed, 1 up-to-date Suppose we are going to add features in our string utilities class, like detection of palindrome Then all we have to do is to write another unit test and run all of them. The beauty of unit tests is that you'll always have a proof that your older features are still working even after adding new ones. And there's no need to run your console application every time just to do a manual test. You may continue adding other tests, say a different input word or maybe an entirely different test, then run it as usual. I am leaving that as an exercise for you. Final notes We've barely scratched the surface of unit testing and there's a lot more to it than just testing inputs and outputs. We haven't even discussed yet its best practices but that's enough for now. I hope that you get the rough idea of how to use unit testing to your advantage. Further Reading - Parasoft has a quick guide on setting up JUnit and it even teaches how to use it without build tools like Gradle or Maven. Go check it out here - There are other excellent testing frameworks available for Java such as TestNG and Spock. I personally prefer Spock over JUnit because of some features and syntactic sugars. The caveat is it's written using Groovy which is a dynamically-typed language. It might be hard for beginners to quickly grasp it on top of understanding unit-testing. - For .NET users, there's XUnit as the de facto testing framework for .NET applications. It's (arguably) the successor of the older NUnit. For other languages, just try appending the first few letters of what ever language you're using then "-Unit". For example, JSUnit, PhpUnit, PyUnit, etc. - Some software development techniques such as Test-Driven Development (TDD) and Behavior-Driven Development (BDD) are anchored in the mastery of unit testing. These techniques will help you consciously develop features while also maintaining robustness of your system over time. - If you're an intermediate or advanced programmer, I strongly recommend that you read Martin Fowler's articles on Unit Testing, other levels of testing and the concept of self-testing code - Unit testing can also help you abstract away the layers of your application by using Test Doubles. You can read another Fowler's article here or the equally comprehensive blog of Mark Seeman at Microsoft. Discussion (0)
https://dev.to/gervg/step-by-step-introduction-to-unit-testing-in-java-3ae7
CC-MAIN-2022-27
refinedweb
3,036
70.33
This section describes how to unencapsulate the root disk in a Sun Cluster configuration. Perform this procedure to unencapsulate the root disk. Perform the following tasks: Ensure that only Solaris root file systems are present on the root disk. The Solaris root file systems are root (/), swap, the global devices namespace, /usr, /var, /opt, and /home. Back up and remove from the root disk any file systems other than Solaris root file systems that reside on the root disk. Become superuser on the node that you intend to unencapsulate. Move all resource groups and device groups from the node. Moves all resource groups and device groups Specifies the name of the node from which to move resource or device groups Determine the node-ID number of the node. Unmount the global-devices file system for this node, where N is the node ID number that is returned in Step 3. View the /etc/vfstab file and determine which VxVM volume corresponds to the global-devices file system. Remove from the root disk group the VxVM volume that corresponds to the global-devices file system. Do not store data other than device entries for global devices in the global-devices file system. All data in the global-devices file system is destroyed when you remove the VxVM volume. Only data that is related to global devices entries is restored after the root disk is unencapsulated. Unencapsulate the root disk. Do not accept the shutdown request from the command. See your VxVM documentation for details. Use the format(1M) command to add a 512-Mbyte partition to the root disk to use for the global-devices file system. Use the same slice that was allocated to the global-devices file system before the root disk was encapsulated, as specified in the /etc/vfstab file. Set up a file system on the partition that you created in Step 8. Determine the DID name of the root disk. In the /etc/vfstab file, replace the path names in the global-devices file system entry with the DID path that you identified in Step 10. The original entry would look similar to the following. The revised entry that uses the DID path would look similar to the following. Mount the global-devices file system. From one node of the cluster, repopulate the global-devices file system with device nodes for any raw-disk devices and Solstice DiskSuite or Solaris Volume Manager devices. VxVM devices are recreated during the next reboot. Reboot the node. Repeat this procedure on each node of the cluster to unencapsulate the root disk on those nodes.
http://docs.oracle.com/cd/E19528-01/819-0420/fmnrl/index.html
CC-MAIN-2016-18
refinedweb
435
65.32
Python's Context Dependent Syntax Soup: 「… in …」 And 「… not in …」 Python has these operators to check if a key exist in hash table or element exist in list: - ① x in list - ② x not in list note that ② is not necessary. It can simply be done with not (x in list). Now, the not operator has multiple meanings, depending on context. It compounds on syntax complexity. Now, not in is actually a operator. Having English words acting as operator and not function is bad enough, but now that operator is 2 words, separated by space! So, syntactically, it becomes not distinguishable from statements, or the tens of idiosyncratic syntax of C such as its “for”, “while”. note that the syntax … in … is similar to the form for … in …, and also the list comprehension syntax [… for … in …]. Each have completely different semantics. [see Why List Comprehension is Bad] this is the state of the affair of syntax soup. When you learn a language, there's little governing principle of what symbol can go where (as in formal language❕), instead, you learn by rote of what symbols or words can go where in what context means what. but, the k in d is itself idiotic. Python has a has_key() method for dictionary, which is in sync with the 20 other methods on dict. Method syntax is systematic and also informative of its meaning because of the name. Though, strangely, python decided to deprecate it, and in python 3, it's gone. [see Python: Dictionary] 2013-11-27 google plus discussion Here's another example. the python import statement syntax, is a prime example of context dependent semantics. witness: from aa import bb import cc in the above, the two import name have different meaning. Soup. Soup. It's All good Soup. Context Dependent Syntax - Lambda in Python 3000 - The Fate of Lambda in Python 3000 and Scheme v300 - Python, Lambda, Guido: is Language Design Just Solving Puzzles? - From Why Not Ruby to FCK Python, Hello Ruby - Docstring Convention: Python vs Emacs Lisp - Why Learn Lisp When There Are Perl and Python - FCK Python: String Methods, Functions, Slashes and Backslashes Python Syntax Suck - Why Python Lambda is Broken and Can't be Fixed - The Fate of Lambda in Python 3000 and Scheme v300 - Lambda in Python 3000 - Python, Lambda, Guido: is Language Design Just Solving Puzzles? - Python's Context Dependent Syntax Soup: 「… in …」 And 「… not in …」 - Python Syntax Problem: Comment and Backslash - Syntax Design: Python's Indentation vs Nesting
http://xahlee.info/comp/python_syntax_soup_in_and_not_in.html
CC-MAIN-2019-22
refinedweb
420
61.16
It's been a long time since I posted anything to the code snippets forum. This is just something I hacked out in C yesterday. I had started on a similar project for a stack-based RPN calculator months earlier, but the implementation was far more convoluted, and I did it completely wrong. Originally I had planned to push both the operands and the operators onto the stack. In reality, it only works if you push the operands onto the stack and the operators are commands to pop the stack and push the result onto the stack. This calculator only works with integers, because I was interested more in the structure of programming on the stack than in the details of converting between strings and floating point values. Also, unlike dc, I had it parse its input directly from the command line, because that was just faster. I haven't tested the program completely, so some parts (particularly subtraction and division) might be a bit wonky. Feel free to tell me if you find any bugs. Here's the code: #include <stdio.h> #include <ctype.h> #include <stdlib.h> struct stack_item { int value; struct stack_item *down; }; struct stack_item *top; struct stack_item *new; // Used for mallocing new structs for the stack void push( int ); int pop( void ); int add( void ); int sub( void ); int mul( void ); int idiv( void ); int main( int argc, char **argv ){ top = (struct stack_item *) malloc( sizeof( struct stack_item ) ); for( int i = 0; i < argc; i++ ){ if( isdigit( argv[i][0] ) ) push( atoi( argv[i] ) ); else if( argv[i][0] == '+' ) push( add() ); else if( argv[i][0] == '-' ) push( sub() ); else if( argv[i][0] == 'x' ) push( mul() ); // I have to use x because * will be interpreted as a wildcard by the shell. else if( argv[i][0] == '/' ) push( idiv() ); } printf( "%d\n", top->value ); return 0; } void push( int num ){ new = (struct stack_item *) malloc( sizeof( struct stack_item ) ); new->value = num; new->down = top; top = new; } int pop(){ struct stack_item *tmp_ptr = top; int tmp_val = top->value; top = top->down; free( tmp_ptr ); return tmp_val; } int add(){ return pop() + pop(); } int sub(){ return 0 - pop() + pop(); } int mul(){ return pop() * pop(); } int idiv(){ return 10000 / pop() * pop() * 10000; }
http://forum.codecall.net/topic/80647-an-rpn-calculator-in-c/
CC-MAIN-2019-43
refinedweb
367
63.53
-----Original Message----- From: Ryan Schmidt [mailto:subversion-2009d_at_ryandesign.com] Sent: Wednesday, December 16, 2009 4:48 PM To: DEVELA Brent Cc: 'users_at_subversion.apache.org' Subject: Re: Permission Denied Error on Pre-commit Java hook On Dec 15, 2009, at 23:35, DEVELA Brent wrote: > Ryan Schmidt wrote: > >> On Dec 15, 2009, at 04:14, DEVELA Brent wrote: >> >>>. >> >> How is your repository served -- via apache? or svnserve? As what user is that process running? Does that user have permission to write to the place where your jar is creating its file? >> > Thanks for the reply, My repository is served via apache and the user running it is www-data. And yes, the user does have rights in the folder. Here's the code I'm trying to run with the contents of the output.txt file from the python code. > > Python code: > > import os > output = os.popen(log_cmd, 'r').read() > ofile = open('/tmp/output.txt','w') > ofile.write(output) > ofile.close() > > JAVA code: > > package integrationtestscript; > > import com.ibatis.common.jdbc.ScriptRunner; > import java.io.*; > import java.sql.SQLException; > import com.mysql.jdbc.ConnectionImpl; > > public class App { > public static void main(String[] args) { > > try { > System.out.println("Hello World!"); > > File f; > f=new File("/tmp/myfile.txt"); > if(!f.exists()){ > f.createNewFile(); > System.out.println("New file \"myfile.txt\" has been created to the current directory"); > } > > System.out.println("Exit"); > System.exit(0); > } catch (Exception ex) { > System.out.println(ex.getMessage()); > } > } > } > > Contents of /tmp/Output.txt after execution as a pre-commit hook. > > Hello World! > Permission denied So the Python hook script can run, can call the Java code, and can write its output to /tmp/output.txt. But the Java code cannot create /tmp/myfile.txt. Does /tmp/myfile.txt already exist, and if so, are its permissions and ownership such that www-data can write to it? Another possibility: is SELinux enabled? If so, you may need to configure additional things. Ryan, Your solution worked. I changed the ownership of the file. It's running smoothly now. I did not have to configure SELinux because it was not installed in the first place. Thank you very much! Thanks, Brent Received on 2009-12-16 10:17:46 CET This is an archived mail posted to the Subversion Users mailing list.
http://svn.haxx.se/users/archive-2009-12/0302.shtml
CC-MAIN-2016-22
refinedweb
380
62.04
JavaFX drawing performance hi,? Regards, Peter The hand drawing prototype listed below: <br /> package test.draw;</p> <p>import javafx.ui.*;<br /> import javafx.ui.canvas.*;<br /> import java.lang.System;</p> <p>var drawing = new Polyline();</p> <p>{<br /> drawing.stroke = Color.RED;<br /> }</p> <p>Frame {<br /> title: "Polyline test"<br /> width: 500<br /> height: 500</p> <p> content:<br /> Canvas {<br /> content: bind drawing</p> <p> onMousePressed: function(event) {<br /> insert [event.x, event.y] into drawing.points;<br /> }</p> <p> onMouseReleased: function(event) {<br /> System.out.println("number of lines: " + sizeof drawing.points);<br /> }</p> <p> onMouseDragged: function(event) {<br /> insert [event.x, event.y] into drawing.points;<br /> }<br /> }</p> <p> visible: true<br /> }<br /> yes, I would have expected so. I have slightly modified the code to "improve" the drawing speed, however, it seems to be as slow as the first version. here the new code comes: [code] package test.draw; import javafx.ui.*; import javafx.ui.canvas.*; import java.lang.System; var layers: Polyline[]; Frame { title: "Polyline test" width: 500 height: 500 content: Canvas { var drawing: Polyline var numLines: Integer content: bind layers onMousePressed: function(event) { drawing = new Polyline(); drawing.stroke = Color.RED; insert drawing into layers; insert [event.x, event.y] into drawing.points; } onMouseReleased: function(event) { numLines += sizeof drawing.points; System.out.println("number of lines: " + numLines); } onMouseDragged: function(event) { insert [event.x, event.y] into drawing.points; } } visible: true } [/code] There is an issue at. You might want to add to that. In my case, my temporary work around was to draw my own Polyline as an image. But that runs into aliasing issues. In general, any graphical object or even images that have samples that crowd the number of pixels will need anti-aliasing filters, which would be compute-intensive for interactive scenarios. It is often faster to draw 10 polylines with 100 points each, than to draw 1 polyline with 1000 points.
https://www.java.net/node/678278
CC-MAIN-2014-15
refinedweb
324
53.58
Eclipse Community Forums - RDF feed Eclipse Community Forums Parsing Heap Dump Error in MAT <![CDATA[Hello, I am using Windows 7 64Bit. I have Eclipse Eclipse Platform Version: 3.6.2 Build id: M20110210-1200 I have MAT version 1.2. I have a simple code that dumps heap public class Main { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub List<String> list = new ArrayList<String>(); while (1<2){ list.add("OutOfMemoryError soon"); } } } When I tried to open in MAT, I am getting below An internal error occurred during: "Parsing heap dump from 'D:\workspace\8032.hprof'". allocLargeObjectOrArray: [J, size 695654576 THank you for your help. Mustafa]]> Mustafa Cayci 2012-07-24T00:15:46-00:00 Re: Parsing Heap Dump Error in MAT <![CDATA[Hi Mustafa, I am not able to reproduce the exact symptoms you are seeing. Can you provide some more details: - What JVM version are you using with your Eclipse to run the test which produces the dump? - What maximum heap size (-Xmx) are you using for your test application? - What is the size of the .hprof dump which is written when your test application goes OutOfMemory? - How much physical memory do you have available on your test machine? Have you tried increasing the available heap size for Memory Analyzer (in the file MemoryAnalyzer.ini) change the entry -Xmx1024m to -Xmx4G or larger depending on the amount of memory available on your system. Regards Jonathan.]]> Jonathan Lawrence 2012-07-25T12:31:27-00:00
http://www.eclipse.org/forums/feed.php?mode=m&th=367963&basic=1
CC-MAIN-2015-40
refinedweb
252
66.64
! 20111210 [ncurses.git] / NEWS.1829 2011/12/10 20:04:44 20111210 49 + modify configure script to check if thread library provides 50 pthread_mutexattr_settype(), e.g., not provided by Solaris 2.6 51 + modify configure script to suppress check to define _XOPEN_SOURCE 52 for IRIX64, since its header files have a conflict versus 53 _SGI_SOURCE. 54 + modify configure script to add ".pc" files for tic- and 55 tinfo-libraries, which were omitted in recent change (cf: 20111126). 56 + fix inconsistent checks on $PKG_CONFIG variable in configure script. 57 58 20111203 59 + modify configure-check for etip.h dependencies, supplying a temporary 60 copy of ncurses_dll.h since it is a generated file (prompted by 61 Debian #646977). 62 + modify CF_CPP_PARAM_INIT "main" function to work with current C++. 63 64 20111126 65 + correct database iterator's check for duplicate entries 66 (cf: 20111001). 67 + modify database iterator to ignore $TERMCAP when it is not an 68 absolute pathname. 69 + add -D option to tic, to show the database locations that it could 70 use. 71 + improve description of database locations in tic manpage. 72 + modify the configure script to generate a list of the ".pc" files to 73 generate, rather than deriving the list from the libraries which have 74 been built (patch by Mike Frysinger). 75 + use AC_CHECK_TOOLS in preference to AC_PATH_PROGS when searching for 76 ncurses*-config, e.g., in Ada95/configure and test/configure (adapted 77 from patch by Mike Frysinger). 78 79 20111119 80 + remove obsolete/conflicting fallback definition for _POSIX_SOURCE 81 from curses.priv.h, fixing a regression with IRIX64 and Tru64 82 (cf: 20110416) 83 + modify _nc_tic_dir() to ensure that its return-value is nonnull, 84 i.e., the database iterator was not initialized. This case is needed 85 to when tic is translating to termcap, rather than loading the 86 database (cf: 20111001). 87 88 20111112 89 + add pccon entries for OpenBSD console (Alexei Malinin). 90 + build-fix for OpenBSD 4.9 with gcc 4.2.1, setting _XOPEN_SOURCE to 91 600 to work around inconsistent ifdef'ing of wcstof between C and 92 C++ header files. 93 + modify capconvert script to accept more than exact match on "xterm", 94 e.g., the "xterm-*" variants, to exclude from the conversion (patch 95 by Robert Millan). 96 + add -lc_r as alternative for -lpthread, allows build of threaded code 97 in older FreeBSD machines. 98 + build-fix for MirBSD, which fails when either _XOPEN_SOURCE or 99 _POSIX_SOURCE are defined. 100 + fix a typo misc/Makefile.in, used in uninstalling pc-files. 101 102 20111030 103 + modify make_db_path() to allow creating "terminfo.db" in the same 104 directory as an existing "terminfo" directory. This fixes a case 105 where switching between hashed/filesystem databases would cause the 106 new hashed database to be installed in the next best location - 107 root's home directory. 108 + add variable cf_cv_prog_gnat_correct to those passed to 109 config.status, fixing a problem with Ada95 builds (cf: 20111022). 110 + change feature test from _XPG5 to _XOPEN_SOURCE in two places, to 111 accommodate broken implementations for _XPG6. 112 + eliminate usage of NULL symbol from etip.h, to reduce header 113 interdependencies. 114 + add configure check to decide when to add _XOPEN_SOURCE define to 115 compiler options, i.e., for Solaris 10 and later (cf: 20100403). 116 This is a workaround for gcc 4.6, which fails to build the c++ 117 binding if that symbol is defined by the application, due to 118 incorrectly combining the corresponding feature test macros 119 (report by Peter Kruse). 120 121 20111022 122 + correct logic for discarding mouse events, retaining the partial 123 events used to build up click, double-click, etc, until needed 124 (cf: 20110917). 125 + fix configure script to avoid creating unused Ada95 makefile when 126 gnat does not work. 127 + cleanup width-related gcc 3.4.3 warnings for 64-bit platform, for the 128 internal functions of libncurses. The external interface of courses 129 uses bool, which still produces these warnings. 130 131 20111015 132 + improve description of --disable-tic-depends option to make it 133 clear that it may be useful whether or not the --with-termlib 134 option is also given (report by Sven Joachim). 135 + amend termcap equivalent for set_pglen_inch to use the X/Open 136 "YI" rather than the obsolete Solaris 2.5 "sL" (cf: 990109). 137 + improve manpage for tgetent differences from termcap library. 138 139 20111008 140 + moved static data from db_iterator.c to lib_data.c 141 + modify db_iterator.c for memory-leak checking, fix one leak. 142 + modify misc/gen-pkgconfig.in to use Requires.private for the parts 143 of ncurses rather than Requires, as well as Libs.private for the 144 other library dependencies (prompted by Debian #644728). 145 146 20111001 147 + modify tic "-K" option to only set the strict-flag rather than force 148 source-output. That allows the same flag to control the parser for 149 input and output of termcap source. 150 + modify _nc_getent() to ignore backslash at the end of a comment line, 151 making it consistent with ncurses' parser. 152 + restore a special-case check for directory needed to make termcap 153 text files load as if they were databases (cf: 20110924). 154 + modify tic's resolution/collision checking to attempt to remove the 155 conflicting alias from the second entry in the pair, which is 156 normally following in the source file. Also improved the warning 157 message to make it simpler to see which alias is the problem. 158 + improve performance of the database iterator by caching search-list. 159 160 20110925 161 + add a missing "else" in changes to _nc_read_tic_entry(). 162 163 20110924 164 + modify _nc_read_tic_entry() so that hashed-database is checked before 165 filesystem. 166 + updated CF_CURSES_LIBS check in test/configure script. 167 + modify configure script and makefiles to split TIC_ARGS and 168 TINFO_ARGS into pieces corresponding to LDFLAGS and LIBS variables, 169 to help separate searches for tic- and tinfo-libraries (patch by Nick 170 Alcock aka "Nix"). 171 + build-fix for lib_mouse.c changes (cf: 20110917). 172 173 20110917 174 + fix compiler warning for clang 2.9 175 + improve merging of mouse events (integrated patch by Damien 176 Guibouret). 177 + correct mask-check used in lib_mouse for wheel mouse buttons 4/5 178 (patch by Damien Guibouret). 179 180 20110910 181 + modify misc/gen_edit.sh to select a "linux" entry which works with 182 the current kernel rather than assuming it is always "linux3.0" 183 (cf: 20110716). 184 + revert a change to getmouse() which had the undesirable side-effect 185 of suppressing button-release events (report by Damien Guibouret, 186 cf: 20100102). 187 + add xterm+kbs fragment from xterm #272 -TD 188 + add configure option --with-pkg-config-libdir to provide control over 189 the actual directory into which pc-files are installed, do not use 190 the pkg-config environment variables (discussion with Frederic L W 191 Meunier). 192 + add link to mailing-list archive in announce.html.in, as done in 193 FAQ (prompted by question by Andrius Bentkus). 194 + improve manpage install by adjusting the "#include" examples to 195 show the ncurses-subdirectory used when --disable-overwrite option 196 is used. 197 + install an alias for "curses" to the ncurses manpage, tied to the 198 --with-curses-h configure option (suggested by Reuben Thomas). 199 200 20110903 201 + propagate error-returns from wresize, i.e., the internal 202 increase_size and decrease_size functions through resize_term (report 203 by Tim van der Molen, cf: 20020713). 204 + fix typo in tset manpage (patch by Sven Joachim). 205 206 20110820 207 + add a check to ensure that termcap files which might have "^?" do 208 not use the terminfo interpretation as "\177". 209 + minor cleanup of X-terminal emulator section of terminfo.src -TD 210 + add terminator entry -TD 211 + add simpleterm entry -TD 212 + improve wattr_get macros by ensuring that if the window pointer is 213 null, then the attribute and color values returned will be zero 214 (cf: 20110528). 215 216 20110813 217 + add substitution for $RPATH_LIST to misc/ncurses-config.in 218 + improve performance of tic with hashed-database by caching the 219 database connection, using atexit() to cleanup. 220 + modify treatment of 2-character aliases at the beginning of termcap 221 entries so they are not counted in use-resolution, since these are 222 guaranteed to be unique. Also ignore these aliases when reporting 223 the primary name of the entry (cf: 20040501) 224 + double-check gn (generic) flag in terminal descriptions to 225 accommodate old/buggy termcap databases which misused that feature. 226 + minor fixes to _nc_tgetent(), ensure buffer is initialized even on 227 error-return. 228 229 20110807 230 + improve rpath fix from 20110730 by ensuring that the new $RPATH_LIST 231 variable is defined in the makefiles which use it. 232 + build-fix for DragonFlyBSD's pkgsrc in test/configure script. 233 + build-fixes for NetBSD 5.1 with termcap support enabled. 234 + corrected k9 in dg460-ansi, add other features based on manuals -TD 235 + improve trimming of whitespace at the end of terminfo/termcap output 236 from tic/infocmp. 237 + when writing termcap source, ensure that colons in the description 238 field are translated to a non-delimiter, i.e., "=". 239 + add "-0" option to tic/infocmp, to make the termcap/terminfo source 240 use a single line. 241 + add a null-pointer check when handling the $CC variable. 242 243 20110730 244 + modify configure script and makefiles in c++ and progs to allow the 245 directory used for rpath option to be overridden, e.g., to work 246 around updates to the variables used by tic during an install. 247 + add -K option to tic/infocmp, to provide stricter BSD-compatibility 248 for termcap output. 249 + add _nc_strict_bsd variable in tic library which controls the 250 "strict" BSD termcap compatibility from 20110723, plus these 251 features: 252 + allow escapes such as "\8" and "\9" when reading termcap 253 + disallow "\a", "\e", "\l", "\s" and "\:" escapes when reading 254 termcap files, passing through "a", "e", etc. 255 + expand "\:" as "\072" on output. 256 + modify _nc_get_token() to reset the token's string value in case 257 there is a string-typed token lacking the "=" marker. 258 + fix a few memory leaks in _nc_tgetent. 259 + fix a few places where reading from a termcap file could refer to 260 freed memory. 261 + add an overflow check when converting terminfo/termcap numeric 262 values, since terminfo stores those in a short, and they must be 263 positive. 264 + correct internal variables used for translating to termcap "%>" 265 feature, and translating from termcap %B to terminfo, needed by 266 tctest (cf: 19991211). 267 + amend a minor fix to acsc when loading a termcap file to separate it 268 from warnings needed for tic (cf: 20040710) 269 + modify logic in _nc_read_entry() and _nc_read_tic_entry() to allow 270 a termcap file to be handled via TERMINFO_DIRS. 271 + modify _nc_infotocap() to include non-mandatory padding when 272 translating to termcap. 273 + modify _nc_read_termcap_entry(), passing a flag in the case where 274 getcap is used, to reduce interactive warning messages. 275 276 20110723 277 + add a check in start_color() to limit color-pairs to 256 when 278 extended colors are not supported (patch by David Benjamin). 279 + modify setcchar to omit no-longer-needed OR'ing of color pair in 280 the SetAttr() macro (patch by David Benjamin). 281 + add kich1 to sun terminfo entry (Yuri Pankov) 282 + use bold rather than reverse for smso in sun-color terminfo entry 283 (Yuri Pankov). 284 + improve generation of termcap using tic/infocmp -C option, e.g., 285 to correspond with 4.2BSD (prompted by discussion with Yuri Pankov 286 regarding Schilling's test program): 287 + translate %02 and %03 to %2 and %3 respectively. 288 + suppress string capabilities which use %s, not supported by tgoto 289 + use \040 rather than \s 290 + expand null characters as \200 rather than \0 291 + modify configure script to support shared libraries for DragonFlyBSD. 292 293 20110716 294 + replace an assert() in _nc_Free_Argument() with a regular null 295 pointer check (report/analysis by Franjo Ivancic). 296 + modify configure --enable-pc-files option to take into account the 297 PKG_CONFIG_PATH variable (report by Frederic L W Meunier). 298 + add/use xterm+tmux chunk from xterm #271 -TD 299 + resync xterm-new entry from xterm #271 -TD 300 + add E3 extended capability to linux-basic (Miroslav Lichvar) 301 + add linux2.2, linux2.6, linux3.0 entries to give context for E3 -TD 302 + add SI/SO change to linux2.6 entry (Debian #515609) -TD 303 + fix inconsistent tabset path in pcmw (Todd C. Miller). 304 + remove a backslash which continued comment, obscuring altos3 305 definition with OpenBSD toolset (Nicholas Marriott). 306 307 20110702 308 + add workaround from xterm #271 changes to ensure that compiler flags 309 are not used in the $CC variable. 310 + improve support for shared libraries, tested with AIX 5.3, 6.1 and 311 7.1 with both gcc 4.2.4 and cc. 312 + modify configure checks for AIX to include release 7.x 313 + add loader flags/libraries to libtool options so that dynamic loading 314 works properly, adapted from ncurses-5.7-ldflags-with-libtool.patch 315 at gentoo prefix repository (patch by Michael Haubenwallner). 316 317 20110626 318 + move include of nc_termios.h out of term_entry.h, since the latter 319 is installed, e.g., for tack while the former is not (report by 320 Sven Joachim). 321 322 20110625 323 + improve cleanup() function in lib_tstp.c, using _exit() rather than 324 exit() and checking for SIGTERM rather than SIGQUIT (prompted by 325 comments forwarded by Nicholas Marriott). 326 + reduce name pollution from term.h, moving fallback #define's for 327 tcgetattr(), etc., to new private header nc_termios.h (report by 328 Sergio NNX). 329 + two minor fixes for tracing (patch by Vassili Courzakis). 330 + improve trace initialization by starting it in use_env() and 331 ripoffline(). 332 + review old email, add details for some changelog entries. 333 334 20110611 335 + update minix entry to minix 3.2 (Thomas Cort). 336 + fix a strict compiler warning in change to wattr_get (cf: 20110528). 337 338 20110604 339 + fixes for MirBSD port: 340 + set default prefix to /usr. 341 + add support for shared libraries in configure script. 342 + use S_ISREG and S_ISDIR consistently, with fallback definitions. 343 + add a few more checks based on ncurses/link_test. 344 + modify MKlib_gen.sh to handle sp-funcs renaming of NCURSES_OUTC type. 345 346 20110528 347 + add case to CF_SHARED_OPTS for Interix (patch by Markus Duft). 348 + used ncurses/link_test to check for behavior when the terminal has 349 not been initialized and when an application passes null pointers 350 to the library. Added checks to cover this (prompted by Redhat 351 #707344). 352 + modify MKlib_gen.sh to make its main() function call each function 353 with zero parameters, to help find inconsistent checking for null 354 pointers, etc. 355 356 20110521 357 + fix warnings from clang 2.7 "--analyze" 358 359 20110514 360 + compiler-warning fixes in panel and progs. 361 + modify CF_PKG_CONFIG macro, from changes to tin -TD 362 + modify CF_CURSES_FUNCS configure macro, used in test directory 363 configure script: 364 + work around (non-optimizer) bug in gcc 4.2.1 which caused 365 test-expression to be omitted from executable. 366 + force the linker to see a link-time expression of a symbol, to 367 help work around weak-symbol issues. 368 369 20110507 370 + update discussion of MKfallback.sh script in INSTALL; normally the 371 script is used automatically via the configured makefiles. However 372 there are still occasions when it might be used directly by packagers 373 (report by Gunter Schaffler). 374 + modify misc/ncurses-config.in to omit the "-L" option from the 375 "--libs" output if the library directory is /usr/lib. 376 + change order of tests for curses.h versus ncurses.h headers in the 377 configure scripts for Ada95 and test-directories, to look for 378 ncurses.h, from fixes to tin -TD 379 + modify ncurses/tinfo/access.c to account for Tandem's root uid 380 (report by Joachim Schmitz). 381 382 20110430 383 + modify rules in Ada95/src/Makefile.in to ensure that the PIC option 384 is not used when building a static library (report by Nicolas 385 Boulenguez): 386 + Ada95 build-fix for big-endian architectures such as sparc. This 387 undoes one of the fixes from 20110319, which added an "Unused" member 388 to representation clauses, replacing that with pragmas to suppress 389 warnings about unused bits (patch by Nicolas Boulenguez): 390 391 20110423 392 + add check in test/configure for use_window, use_screen. 393 + add configure-checks for getopt's variables, which may be declared 394 as different types on some Unix systems. 395 + add check in test/configure for some legacy curses types of the 396 function pointer passed to tputs(). 397 + modify init_pair() to accept -1's for color value after 398 assume_default_colors() has been called (Debian #337095). 399 + modify test/background.c, adding commmand-line options to demonstrate 400 assume_default_colors() and use_default_colors(). 401 402 20110416 403 + modify configure script/source-code to only define _POSIX_SOURCE if 404 the checks for sigaction and/or termios fail, and if _POSIX_C_SOURCE 405 and _XOPEN_SOURCE are undefined (report by Valentin Ochs). 406 + update config.guess, config.sub 407 408 20110409 409 + fixes to build c++ binding with clang 3.0 (patch by Alexander 410 Kolesen). 411 + add check for unctrl.h in test/configure, to work around breakage in 412 some ncurses packages. 413 + add "--disable-widec" option to test/configure script. 414 + add "--with-curses-colr" and "--with-curses-5lib" options to the 415 test/configure script to address testing with very old machines. 416 417 20110404 5.9 release for upload to 418 419 20110402 420 + various build-fixes for the rpm/dpkg scripts. 421 + add "--enable-rpath-link" option to Ada95/configure, to allow 422 packages to suppress the rpath feature which is normally used for 423 the in-tree build of sample programs. 424 + corrected definition of libdir variable in Ada95/src/Makefile.in, 425 needed for rpm script. 426 + add "--with-shared" option to Ada95/configure script, to allow 427 making the C-language parts of the binding use appropriate compiler 428 options if building a shared library with gnat. 429 430 20110329 431 > portability fixes for Ada95 binding: 432 + add configure check to ensure that SIGINT works with gnat. This is 433 needed for the "rain" sample program. If SIGINT does not work, omit 434 that sample program. 435 + correct typo in check of $PKG_CONFIG variable in Ada95/configure 436 + add ncurses_compat.c, to supply functions used in the Ada95 binding 437 which were added in 5.7 and later. 438 + modify sed expression in CF_NCURSES_ADDON to eliminate a dependency 439 upon GNU sed. 440 441 20110326 442 + add special check in Ada95/configure script for ncurses6 reentrant 443 code. 444 + regen Ada html documentation. 445 + build-fix for Ada shared libraries versus the varargs workaround. 446 + add rpm and dpkg scripts for Ada95 and test directories, for test 447 builds. 448 + update test/configure macros CF_CURSES_LIBS, CF_XOPEN_SOURCE and 449 CF_X_ATHENA_LIBS. 450 + add configure check to determine if gnat's project feature supports 451 libraries, i.e., collections of .ali files. 452 + make all dereferences in Ada95 samples explicit. 453 + fix typo in comment in lib_add_wch.c (patch by Petr Pavlu). 454 + add configure check for, ifdef's for math.h which is in a separate 455 package on Solaris and potentially not installed (report by Petr 456 Pavlu). 457 > fixes for Ada95 binding (Nicolas Boulenguez): 458 + improve type-checking in Ada95 by eliminating a few warning-suppress 459 pragmas. 460 + suppress unreferenced warnings. 461 + make all dereferences in binding explicit. 462 463 20110319 464 + regen Ada html documentation. 465 + change order of -I options from ncurses*-config script when the 466 --disable-overwrite option was used, so that the subdirectory include 467 is listed first. 468 + modify the make-tar.sh scripts to add a MANIFEST and NEWS file. 469 + modify configure script to provide value for HTML_DIR in 470 Ada95/gen/Makefile.in, which depends on whether the Ada95 binding is 471 distributed separately (report by Nicolas Boulenguez). 472 + modify configure script to add -g and/or -O3 to ADAFLAGS if the 473 CFLAGS for the build has these options. 474 + amend change from 20070324, to not add 1 to the result of getmaxx 475 and getmaxy in the Ada binding (report by Nicolas Boulenguez for 476 thread in comp.lang.ada). 477 + build-fix Ada95/samples for gnat 4.5 478 + spelling fixes for Ada95/samples/explain.txt 479 > fixes for Ada95 binding (Nicolas Boulenguez): 480 + add item in Trace_Attribute_Set corresponding to TRACE_ATTRS. 481 + add workaround for binding to set_field_type(), which uses varargs. 482 The original binding from 990220 relied on the prevalent 483 implementation of varargs which did not support or need va_copy(). 484 + add dependency on gen/Makefile.in needed for *-panels.ads 485 + add Library_Options to library.gpr 486 + add Languages to library.gpr, for gprbuild 487 488 20110307 489 + revert changes to limit-checks from 20110122 (Debian #616711). 490 > minor type-cleanup of Ada95 binding (Nicolas Boulenguez): 491 + corrected a minor sign error in a field of Low_Level_Field_Type, to 492 conform to form.h. 493 + replaced C_Int by Curses_Bool as return type for some callbacks, see 494 fieldtype(3FORM). 495 + modify samples/sample-explain.adb to provide explicit message when 496 explain.txt is not found. 497 498 20110305 499 + improve makefiles for Ada95 tree (patch by Nicolas Boulenguez). 500 + fix an off-by-one error in _nc_slk_initialize() from 20100605 fixes 501 for compiler warnings (report by Nicolas Boulenguez). 502 + modify Ada95/gen/gen.c to declare unused bits in generated layouts, 503 needed to compile when chtype is 64-bits using gnat 4.4.5 504 505 20110226 5.8 release for upload to 506 507 20110226 508 + update release notes, for 5.8. 509 + regenerated html manpages. 510 + change open() in _nc_read_file_entry() to fopen() for consistency 511 with write_file(). 512 + modify misc/run_tic.in to create parent directory, in case this is 513 a new install of hashed database. 514 + fix typo in Ada95/mk-1st.awk which causes error with original awk. 515 516 20110220 517 + configure script rpath fixes from xterm #269. 518 + workaround for cygwin's non-functional features.h, to force ncurses' 519 configure script to define _XOPEN_SOURCE_EXTENDED when building 520 wide-character configuration. 521 + build-fix in run_tic.sh for OS/2 EMX install 522 + add cons25-debian entry (patch by Brian M Carlson, Debian #607662). 523 524 20110212 525 + regenerated html manpages. 526 + use _tracef() in show_where() function of tic, to work correctly with 527 special case of trace configuration. 528 529 20110205 530 + add xterm-utf8 entry as a demo of the U8 feature -TD 531 + add U8 feature to denote entries for terminal emulators which do not 532 support VT100 SI/SO when processing UTF-8 encoding -TD 533 + improve the NCURSES_NO_UTF8_ACS feature by adding a check for an 534 extended terminfo capability U8 (prompted by mailing list 535 discussion). 536 537 20110122 538 + start documenting interface changes for upcoming 5.8 release. 539 + correct limit-checks in derwin(). 540 + correct limit-checks in newwin(), to ensure that windows have nonzero 541 size (report by Garrett Cooper). 542 + fix a missing "weak" declaration for pthread_kill (patch by Nicholas 543 Alcock). 544 + improve documentation of KEY_ENTER in curs_getch.3x manpage (prompted 545 by discussion with Kevin Martin). 546 547 20110115 548 + modify Ada95/configure script to make the --with-curses-dir option 549 work without requiring the --with-ncurses option. 550 + modify test programs to allow them to be built with NetBSD curses. 551 + document thick- and double-line symbols in curs_add_wch.3x manpage. 552 + document WACS_xxx constants in curs_add_wch.3x manpage. 553 + fix some warnings for clang 2.6 "--analyze" 554 + modify Ada95 makefiles to make html-documentation with the project 555 file configuration if that is used. 556 + update config.guess, config.sub 557 558 20110108 559 + regenerated html manpages. 560 + minor fixes to enable lint when trace is not enabled, e.g., with 561 clang --analyze. 562 + fix typo in man/default_colors.3x (patch by Tim van der Molen). 563 + update ncurses/llib-lncurses* 564 565 20110101 566 + fix remaining strict compiler warnings in ncurses library ABI=5, 567 except those dealing with function pointers, etc. 568 569 20101225 570 + modify nc_tparm.h, adding guards against repeated inclusion, and 571 allowing TPARM_ARG to be overridden. 572 + fix some strict compiler warnings in ncurses library. 573 574 20101211 575 + suppress ncv in screen entry, allowing underline (patch by Alejandro 576 R Sedeno). 577 + also suppress ncv in konsole-base -TD 578 + fixes in wins_nwstr() and related functions to ensure that special 579 characters, i.e., control characters are handled properly with the 580 wide-character configuration. 581 + correct a comparison in wins_nwstr() (Redhat #661506). 582 + correct help-messages in some of the test-programs, which still 583 referred to quitting with 'q'. 584 585 20101204 586 + add special case to _nc_infotocap() to recognize the setaf/setab 587 strings from xterm+256color and xterm+88color, and provide a reduced 588 version which works with termcap. 589 + remove obsolete emacs "Local Variables" section from documentation 590 (request by Sven Joachim). 591 + update doc/html/index.html to include NCURSES-Programming-HOWTO.html 592 (report by Sven Joachim). 593 594 20101128 595 + modify test/configure and test/Makefile.in to handle this special 596 case of building within a build-tree (Debian #34182): 597 mkdir -p build && cd build && ../test/configure && make 598 599 20101127 600 + miscellaneous build-fixes for Ada95 and test-directories when built 601 out-of-tree. 602 + use VPATH in makefiles to simplify out-of-tree builds (Debian #34182). 603 + fix typo in rmso for tek4106 entry -Goran Weinholt 604 605 20101120 606 + improve checks in test/configure for X libraries, from xterm #267 607 changes. 608 + modify test/configure to allow it to use the build-tree's libraries 609 e.g., when using that to configure the test-programs without the 610 rpath feature (request by Sven Joachim). 611 + repurpose "gnome" terminfo entries as "vte", retaining "gnome" items 612 for compatibility, but generally deprecating those since the VTE 613 library is what actually defines the behavior of "gnome", etc., 614 since 2003 -TD 615 616 20101113 617 + compiler warning fixes for test programs. 618 + various build-fixes for test-programs with pdcurses. 619 + updated configure checks for X packages in test/configure from xterm 620 #267 changes. 621 + add configure check to gnatmake, to accommodate cygwin. 622 623 20101106 624 + correct list of sub-directories needed in Ada95 tree for building as 625 a separate package. 626 + modify scripts in test-directory to improve builds as a separate 627 package. 628 629 20101023 630 + correct parsing of relative tab-stops in tabs program (report by 631 Philip Ganchev). 632 + adjust configure script so that "t" is not added to library suffix 633 when weak-symbols are used, allowing the pthread configuration to 634 more closely match the non-thread naming (report by Werner Fink). 635 + modify configure check for tic program, used for fallbacks, to a 636 warning if not found. This makes it simpler to use additonal 637 scripts to bootstrap the fallbacks code using tic from the build 638 tree (report by Werner Fink). 639 + fix several places in configure script using ${variable-value} form. 640 + modify configure macro CF_LDFLAGS_STATIC to accommodate some loaders 641 which do not support selectively linking against static libraries 642 (report by John P. Hartmann) 643 + fix an unescaped dash in man/tset.1 (report by Sven Joachim). 644 645 20101009 646 + correct comparison used for setting 16-colors in linux-16color 647 entry (Novell #644831) -TD 648 + improve linux-16color entry, using "dim" for color-8 which makes it 649 gray rather than black like color-0 -TD 650 + drop misc/ncu-indent and misc/jpf-indent; they are provided by an 651 external package "cindent". 652 653 20101002 654 + improve linkages in html manpages, adding references to the newer 655 pages, e.g., *_variables, curs_sp_funcs, curs_threads. 656 + add checks in tic for inconsistent cursor-movement controls, and for 657 inconsistent printer-controls. 658 + fill in no-parameter forms of cursor-movement where a parameterized 659 form is available -TD 660 + fill in missing cursor controls where the form of the controls is 661 ANSI -TD 662 + fix inconsistent punctuation in form_variables manpage (patch by 663 Sven Joachim). 664 + add parameterized cursor-controls to linux-basic (report by Dae) -TD 665 > patch by Juergen Pfeifer: 666 + document how to build 32-bit libraries in README.MinGW 667 + fixes to filename computation in mk-dlls.sh.in 668 + use POSIX locale in mk-dlls.sh.in rather than en_US (report by Sven 669 Joachim). 670 + add a check in mk-dlls.sh.in to obtain the size of a pointer to 671 distinguish between 32-bit and 64-bit hosts. The result is stored 672 in mingw_arch 673 674 20100925 675 + add "XT" capability to entries for terminals that support both 676 xterm-style mouse- and title-controls, for "screen" which 677 special-cases TERM beginning with "xterm" or "rxvt" -TD 678 > patch by Juergen Pfeifer: 679 + use 64-Bit MinGW toolchain (recommended package from TDM, see 680 README.MinGW). 681 + support pthreads when using the TDM MinGW toolchain 682 683 20100918 684 + regenerated html manpages. 685 + minor fixes for symlinks to curs_legacy.3x and curs_slk.3x manpages. 686 + add manpage for sp-funcs. 687 + add sp-funcs to test/listused.sh, for documentation aids. 688 689 20100911 690 + add manpages for summarizing public variables of curses-, terminfo- 691 and form-libraries. 692 + minor fixes to manpages for consistency (patch by Jason McIntyre). 693 + modify tic's -I/-C dump to reformat acsc strings into canonical form 694 (sorted, unique mapping) (cf: 971004). 695 + add configure check for pthread_kill(), needed for some old 696 platforms. 697 698 20100904 699 + add configure option --without-tests, to suppress building test 700 programs (request by Frederic L W Meunier). 701 702 20100828 703 + modify nsterm, xnuppc and tek4115 to make sgr/sgr0 consistent -TD 704 + add check in terminfo source-reader to provide more informative 705 message when someone attempts to run tic on a compiled terminal 706 description (prompted by Debian #593920). 707 + note in infotocap and captoinfo manpages that they read terminal 708 descriptions from text-files (Debian #593920). 709 + improve acsc string for vt52, show arrow keys (patch by Benjamin 710 Sittler). 711 712 20100814 713 + document in manpages that "mv" functions first use wmove() to check 714 the window pointer and whether the position lies within the window 715 (suggested by Poul-Henning Kamp). 716 + fixes to curs_color.3x, curs_kernel.3x and wresize.3x manpages (patch 717 by Tim van der Molen). 718 + modify configure script to transform library names for tic- and 719 tinfo-libraries so that those build properly with Mac OS X shared 720 library configuration. 721 + modify configure script to ensure that it removes conftest.dSYM 722 directory leftover on checks with Mac OS X. 723 + modify configure script to cleanup after check for symbolic links. 724 725 20100807 726 + correct a typo in mk-1st.awk (patch by Gabriele Balducci) 727 (cf: 20100724) 728 + improve configure checks for location of tic and infocmp programs 729 used for installing database and for generating fallback data, 730 e.g., for cross-compiling. 731 + add Markus Kuhn's wcwidth function for compiling MinGW 732 + add special case to CF_REGEX for cross-compiling to MinGW target. 733 734 20100731 735 + modify initialization check for win32con driver to eliminate need for 736 special case for TERM "unknown", using terminal database if available 737 (prompted by discussion with Roumen Petrov). 738 + for MinGW port, ensure that terminal driver is setup if tgetent() 739 is called (patch by Roumen Petrov). 740 + document tabs "-0" and "-8" options in manpage. 741 + fix Debian "lintian" issues with manpages reported in 742 743 744 20100724 745 + add a check in tic for missing set_tab if clear_all_tabs given. 746 + improve use of symbolic links in makefiles by using "-f" option if 747 it is supported, to eliminate temporary removal of the target 748 (prompted by) 749 + minor improvement to test/ncurses.c, reset color pairs in 'd' test 750 after exit from 'm' main-menu command. 751 + improved ncu-indent, from mawk changes, allows more than one of 752 GCC_NORETURN, GCC_PRINTFLIKE and GCC_SCANFLIKE on a single line. 753 754 20100717 755 + add hard-reset for rs2 to wsvt25 to help ensure that reset ends 756 the alternate character set (patch by Nicholas Marriott) 757 + remove tar-copy.sh and related configure/Makefile chunks, since the 758 Ada95 binding is now installed using rules in Ada95/src. 759 760 20100703 761 + continue integrating changes to use gnatmake project files in Ada95 762 + add/use configure check to turn on project rules for Ada95/src. 763 + revert the vfork change from 20100130, since it does not work. 764 765 20100626 766 + continue integrating changes to use gnatmake project files in Ada95 767 + old gnatmake (3.15) does not produce libraries using project-file; 768 work around by adding script to generate alternate makefile. 769 770 20100619 771 + continue integrating changes to use gnatmake project files in Ada95 772 + add configure --with-ada-sharedlib option, for the test_make rule. 773 + move Ada95-related logic into aclocal.m4, since additional checks 774 will be needed to distinguish old/new implementations of gnat. 775 776 20100612 777 + start integrating changes to use gnatmake project files in Ada95 tree 778 + add test_make / test_clean / test_install rules in Ada95/src 779 + change install-path for adainclude directory to /usr/share/ada (was 780 /usr/lib/ada). 781 + update Ada95/configure. 782 + add mlterm+256color entry, for mlterm 3.0.0 -TD 783 + modify test/configure to use macros to ensure consistent order 784 of updating LIBS variable. 785 786 20100605 787 + change search order of options for Solaris in CF_SHARED_OPTS, to 788 work with 64-bit compiles. 789 + correct quoting of assignment in CF_SHARED_OPTS case for aix 790 (cf: 20081227) 791 792 20100529 793 + regenerated html documentation. 794 + modify test/configure to support pkg-config for checking X libraries 795 used by PDCurses. 796 + add/use configure macro CF_ADD_LIB to force consistency of 797 assignments to $LIBS, etc. 798 + fix configure script for combining --with-pthread 799 and --enable-weak-symbols options. 800 801 20100522 802 + correct cross-compiling configure check for CF_MKSTEMP macro, by 803 adding a check cache variable set by AC_CHECK_FUNC (report by 804 Pierre Labastie). 805 + simplify include-dependencies of make_hash and make_keys, to reduce 806 the need for setting BUILD_CPPFLAGS in cross-compiling when the 807 build- and target-machines differ. 808 + repair broken-linker configuration by restoring a definition of SP 809 variable to curses.priv.h, and adjusting for cases where sp-funcs 810 are used. 811 + improve configure macro CF_AR_FLAGS, allowing ARFLAGS environment 812 variable to override (prompted by report by Pablo Cazallas). 813 814 20100515 815 + add configure option --enable-pthreads-eintr to control whether the 816 new EINTR feature is enabled. 817 + modify logic in pthread configuration to allow EINTR to interrupt 818 a read operation in wgetch() (Novell #540571, patch by Werner Fink). 819 + drop mkdirs.sh, use "mkdir -p". 820 + add configure option --disable-libtool-version, to use the 821 "-version-number" feature which was added in libtool 1.5 (report by 822 Peter Haering). The default value for the option uses the newer 823 feature, which makes libraries generated using libtool compatible 824 with the standard builds of ncurses. 825 + updated test/configure to match configure script macros. 826 + fixes for configure script from lynx changes: 827 + improve CF_FIND_LINKAGE logic for the case where a function is 828 found in predefined libraries. 829 + revert part of change to CF_HEADER (cf: 20100424) 830 831 20100501 832 + correct limit-check in wredrawln, accounting for begy/begx values 833 (patch by David Benjamin). 834 + fix most compiler warnings from clang. 835 + amend build-fix for OpenSolaris, to ensure that a system header is 836 included in curses.h before testing feature symbols, since they 837 may be defined by that route. 838 839 20100424 840 + fix some strict compiler warnings in ncurses library. 841 + modify configure macro CF_HEADER_PATH to not look for variations in 842 the predefined include directories. 843 + improve configure macros CF_GCC_VERSION and CF_GCC_WARNINGS to work 844 with gcc 4.x's c89 alias, which gives warning messages for cases 845 where older versions would produce an error. 846 847 20100417 848 + modify _nc_capcmp() to work with cancelled strings. 849 + correct translation of "^" in _nc_infotocap(), used to transform 850 terminfo to termcap strings 851 + add configure --disable-rpath-hack, to allow disabling the feature 852 which adds rpath options for libraries in unusual places. 853 + improve CF_RPATH_HACK_2 by checking if the rpath option for a given 854 directory was already added. 855 + improve CF_RPATH_HACK_2 by using ldd to provide a standard list of 856 directories (which will be ignored). 857 858 20100410 859 + improve win_driver.c handling of mouse: 860 + discard motion events 861 + avoid calling _nc_timed_wait when there is a mouse event 862 + handle 4th and "rightmost" buttons. 863 + quote substitutions in CF_RPATH_HACK_2 configure macro, needed for 864 cases where there are embedded blanks in the rpath option. 865 866 20100403 867 + add configure check for exctags vs ctags, to work around pkgsrc. 868 + simplify logic in _nc_get_screensize() to make it easier to see how 869 environment variables may override system- and terminfo-values 870 (prompted by discussion with Igor Bujna). 871 + make debug-traces for COLOR_PAIR and PAIR_NUMBER less verbose. 872 + improve handling of color-pairs embedded in attributes for the 873 extended-colors configuration. 874 + modify MKlib_gen.sh to build link_test with sp-funcs. 875 + build-fixes for OpenSolaris aka Solaris 11, for wide-character 876 configuration as well as for rpath feature in *-config scripts. 877 878 20100327 879 + refactor CF_SHARED_OPTS configure macro, making CF_RPATH_HACK more 880 reusable. 881 + improve configure CF_REGEX, similar fixes. 882 + improve configure CF_FIND_LINKAGE, adding add check between system 883 (default) and explicit paths, where we can find the entrypoint in the 884 given library. 885 + add check if Gpm_Open() returns a -2, e.g., for "xterm". This is 886 normally suppressed but can be overridden using $NCURSES_GPM_TERMS. 887 Ensure that Gpm_Close() is called in this case. 888 889 20100320 890 + rename atari and st52 terminfo entries to atari-old, st52-old, use 891 newer entries from FreeMiNT by Guido Flohr (from patch/report by Alan 892 Hourihane). 893 894 20100313 895 + modify install-rule for manpages so that *-config manpages will 896 install when building with --srcdir (report by Sven Joachim). 897 + modify CF_DISABLE_LEAKS configure macro so that the --enable-leaks 898 option is not the same as --disable-leaks (GenToo #305889). 899 + modify #define's for build-compiler to suppress cchar_t symbol from 900 compile of make_hash and make_keys, improving cross-compilation of 901 ncursesw (report by Bernhard Rosenkraenzer). 902 + modify CF_MAN_PAGES configure macro to replace all occurrences of 903 TPUT in tput.1's manpage (Debian #573597, report/analysis by Anders 904 Kaseorg). 905 906 20100306 907 + generate manpages for the *-config scripts, adapted from help2man 908 (suggested by Sven Joachim). 909 + use va_copy() in _nc_printf_string() to avoid conflicting use of 910 va_list value in _nc_printf_length() (report by Wim Lewis). 911 912 20100227 913 + add Ada95/configure script, to use in tar-file created by 914 Ada95/make-tar.sh 915 + fix typo in wresize.3x (patch by Tim van der Molen). 916 + modify screen-bce.XXX entries to exclude ech, since screen's color 917 model does not clear with color for that feature -TD 918 919 20100220 920 + add make-tar.sh scripts to Ada95 and test subdirectories to help with 921 making those separately distributable. 922 + build-fix for static libraries without dlsym (Debian #556378). 923 + fix a syntax error in man/form_field_opts.3x (patch by Ingo 924 Schwarze). 925 926 20100213 927 + add several screen-bce.XXX entries -TD 928 929 20100206 930 + update mrxvt terminfo entry -TD 931 + modify win_driver.c to support mouse single-clicks. 932 + correct name for termlib in ncurses*-config, e.g., if it is renamed 933 to provide a single file for ncurses/ncursesw libraries (patch by 934 Miroslav Lichvar). 935 936 20100130 937 + use vfork in test/ditto.c if available (request by Mike Frysinger). 938 + miscellaneous cleanup of manpages. 939 + fix typo in curs_bkgd.3x (patch by Tim van der Molen). 940 + build-fix for --srcdir (patch by Miroslav Lichvar). 941 942 20100123 943 + for term-driver configuration, ensure that the driver pointer is 944 initialized in setupterm so that terminfo/termcap programs work. 945 + amend fix for Debian #542031 to ensure that wattrset() returns only 946 OK or ERR, rather than the attribute value (report by Miroslav 947 Lichvar). 948 + reorder WINDOWLIST to put WINDOW data after SCREEN pointer, making 949 _nc_screen_of() compatible between normal/wide libraries again (patch 950 by Miroslav Lichvar) 951 + review/fix include-dependencies in modules files (report by Miroslav 952 Lichvar). 953 954 20100116 955 + modify win_driver.c to initialize acs_map for win32 console, so 956 that line-drawing works. 957 + modify win_driver.c to initialize TERMINAL struct so that programs 958 such as test/lrtest.c and test/ncurses.c which test string 959 capabilities can run. 960 + modify term-driver modules to eliminate forward-reference 961 declarations. 962 963 20100109 964 + modify configure macro CF_XOPEN_SOURCE, etc., to use CF_ADD_CFLAGS 965 consistently to add new -D's while removing duplicates. 966 + modify a few configure macros to consistently put new options 967 before older in the list. 968 + add tiparm(), based on review of X/Open Curses Issue 7. 969 + minor documentation cleanup. 970 + update config.guess, config.sub from 971 972 (caveat - its maintainer put 2010 copyright date on files dated 2009) 973 974 20100102 975 + minor improvement to tic's checking of similar SGR's to allow for the 976 most common case of SGR 0. 977 + modify getmouse() to act as its documentation implied, returning on 978 each call the preceding event until none are left. When no more 979 events remain, it will return ERR. 980 981 20091227 982 + change order of lookup in progs/tput.c, looking for terminfo data 983 first. This fixes a confusion between termcap "sg" and terminfo 984 "sgr" or "sgr0", originally from 990123 changes, but exposed by 985 20091114 fixes for hashing. With this change, only "dl" and "ed" are 986 ambiguous (Mandriva #56272). 987 988 20091226 989 + add bterm terminfo entry, based on bogl 0.1.18 -TD 990 + minor fix to rxvt+pcfkeys terminfo entry -TD 991 + build-fixes for Ada95 tree for gnat 4.4 "style". 992 993 20091219 994 + remove old check in mvderwin() which prevented moving a derived 995 window whose origin happened to coincide with its parent's origin 996 (report by Katarina Machalkova). 997 + improve test/ncurses.c to put mouse droppings in the proper window. 998 + update minix terminfo entry -TD 999 + add bw (auto-left-margin) to nsterm* entries (Benjamin Sittler) 1000 1001 20091212 1002 + correct transfer of multicolumn characters in multirow 1003 field_buffer(), which stopped at the end of the first row due to 1004 filling of unused entries in a cchar_t array with nulls. 1005 + updated nsterm* entries (Benjamin Sittler, Emanuele Giaquinta) 1006 + modify _nc_viscbuf2() and _tracecchar_t2() to show wide-character 1007 nulls. 1008 + use strdup() in set_menu_mark(), restore .marklen struct member on 1009 failure. 1010 + eliminate clause 3 from the UCB copyrights in read_termcap.c and 1011 tset.c per 1012 1013 (patch by Nicholas Marriott). 1014 + replace a malloc in tic.c with strdup, checking for failure (patch by 1015 Nicholas Marriott). 1016 + update config.guess, config.sub from 1017 1018 1019 20091205 1020 + correct layout of working window used to extract data in 1021 wide-character configured by set_field_buffer (patch by Rafael 1022 Garrido Fernandez) 1023 + improve some limit-checks related to filename length in reading and 1024 writing terminfo entries. 1025 + ensure that filename is always filled in when attempting to read 1026 a terminfo entry, so that infocmp can report the filename (patch 1027 by Nicholas Marriott). 1028 1029 20091128 1030 + modify mk-1st.awk to allow tinfo library to be built when term-driver 1031 is enabled. 1032 + add error-check to configure script to ensure that sp-funcs is 1033 enabled if term-driver is, since some internal interfaces rely upon 1034 this. 1035 1036 20091121 1037 + fix case where progs/tput is used while sp-funcs is configure; this 1038 requires save/restore of out-character function from _nc_prescreen 1039 rather than the SCREEN structure (report by Charles Wilson). 1040 + fix typo in man/curs_trace.3x which caused incorrect symbolic links 1041 + improved configure macros CF_GCC_ATTRIBUTES, CF_PROG_LINT. 1042 1043 20091114 1044 1045 + updated man/curs_trace.3x 1046 + limit hashing for termcap-names to 2-characters (Ubuntu #481740). 1047 + change a variable name in lib_newwin.c to make it clearer which 1048 value is being freed on error (patch by Nicholas Marriott). 1049 1050 20091107 1051 + improve test/ncurses.c color-cycling test by reusing attribute- 1052 and color-cycling logic from the video-attributes screen. 1053 + add ifdef'd with NCURSES_INTEROP_FUNCS experimental bindings in form 1054 library which help make it compatible with interop applications 1055 (patch by Juergen Pfeifer). 1056 + add configure option --enable-interop, for integrating changes 1057 for generic/interop support to form-library by Juergen Pfeifer 1058 1059 20091031 1060 + modify use of $CC environment variable which is defined by X/Open 1061 as a curses feature, to ignore it if it is not a single character 1062 (prompted by discussion with Benjamin C W Sittler). 1063 + add START_TRACE in slk_init 1064 + fix a regression in _nc_ripoffline which made test/ncurses.c not show 1065 soft-keys, broken in 20090927 merging. 1066 + change initialization of "hidden" flag for soft-keys from true to 1067 false, broken in 20090704 merging (Ubuntu #464274). 1068 + update nsterm entries (patch by Benjamin C W Sittler, prompted by 1069 discussion with Fabian Groffen in GenToo #206201). 1070 + add test/xterm-256color.dat 1071 1072 20091024 1073 + quiet some pedantic gcc warnings. 1074 + modify _nc_wgetch() to check for a -1 in the fifo, e.g., after a 1075 SIGWINCH, and discard that value, to avoid confusing application 1076 (patch by Eygene Ryabinkin, FreeBSD bin/136223). 1077 1078 20091017 1079 + modify handling of $PKG_CONFIG_LIBDIR to use only the first item in 1080 a possibly colon-separated list (Debian #550716). 1081 1082 20091010 1083 + supply a null-terminator to buffer in _nc_viswibuf(). 1084 + fix a sign-extension bug in unget_wch() (report by Mike Gran). 1085 + minor fixes to error-returns in default function for tputs, as well 1086 as in lib_screen.c 1087 1088 20091003 1089 + add WACS_xxx definitions to wide-character configuration for thick- 1090 and double-lines (discussion with Slava Zanko). 1091 + remove unnecessary kcan assignment to ^C from putty (Sven Joachim) 1092 + add ccc and initc capabilities to xterm-16color -TD 1093 > patch by Benjamin C W Sittler: 1094 + add linux-16color 1095 + correct initc capability of linux-c-nc end-of-range 1096 + similar change for dg+ccc and dgunix+ccc 1097 1098 20090927 1099 + move leak-checking for comp_captab.c into _nc_leaks_tinfo() since 1100 that module since 20090711 is in libtinfo. 1101 + add configure option --enable-term-driver, to allow compiling with 1102 terminal-driver. That is used in MinGW port, and (being somewhat 1103 more complicated) is an experimental alternative to the conventional 1104 termlib internals. Currently, it requires the sp-funcs feature to 1105 be enabled. 1106 + completed integrating "sp-funcs" by Juergen Pfeifer in ncurses 1107 library (some work remains for forms library). 1108 1109 20090919 1110 + document return code from define_key (report by Mike Gran). 1111 + make some symbolic links in the terminfo directory-tree shorter 1112 (patch by Daniel Jacobowitz, forwarded by Sven Joachim).). 1113 + fix some groff warnings in terminfo.5, etc., from recent Debian 1114 changes. 1115 + change ncv and op capabilities in sun-color terminfo entry to match 1116 Sun's entry for this (report by Laszlo Peter). 1117 + improve interix smso terminfo capability by using reverse rather than 1118 bold (report by Kristof Zelechovski). 1119 1120 20090912 1121 + add some test programs (and make these use the same special keys 1122 by sharing linedata.h functions): 1123 test/test_addstr.c 1124 test/test_addwstr.c 1125 test/test_addchstr.c 1126 test/test_add_wchstr.c 1127 + correct internal _nc_insert_ch() to use _nc_insert_wch() when 1128 inserting wide characters, since the wins_wch() function that it used 1129 did not update the cursor position (report by Ciprian Craciun). 1130 1131 20090906 1132 + fix typo s/is_timeout/is_notimeout/ which made "man is_notimeout" not 1133 work. 1134 + add null-pointer checks to other opaque-functions. 1135 + add is_pad() and is_subwin() functions for opaque access to WINDOW 1136 (discussion with Mark Dickinson). 1137 + correct merge to lib_newterm.c, which broke when sp-funcs was 1138 enabled. 1139 1140 20090905 1141 + build-fix for building outside source-tree (report by Sven Joachim). 1142 + fix Debian lintian warning for man/tabs.1 by making section number 1143 agree with file-suffix (report by Sven Joachim). 1144 + continue integrating "sp-funcs" by Juergen Pfeifer (incomplete). 1145 1146 20090829 1147 + workaround for bug in g++ 4.1-4.4 warnings for wattrset() macro on 1148 amd64 (Debian #542031). 1149 + fix typo in curs_mouse.3x (Debian #429198). 1150 1151 20090822 1152 + continue integrating "sp-funcs" by Juergen Pfeifer (incomplete). 1153 1154 20090815 1155 + correct use of terminfo capabilities for initializing soft-keys, 1156 broken in 20090509 merging. 1157 + modify wgetch() to ensure it checks SIGWINCH when it gets an error 1158 in non-blocking mode (patch by Clemens Ladisch). 1159 + use PATH_SEPARATOR symbol when substituting into run_tic.sh, to 1160 help with builds on non-Unix platforms such as OS/2 EMX. 1161 + modify scripting for misc/run_tic.sh to test configure script's 1162 $cross_compiling variable directly rather than comparing host/build 1163 compiler names (prompted by comment in GenToo #249363). 1164 + fix configure script option --with-database, which was coded as an 1165 enable-type switch. 1166 + build-fixes for --srcdir (report by Frederic L W Meunier). 1167 1168 20090808 1169 + separate _nc_find_entry() and _nc_find_type_entry() from 1170 implementation details of hash function. 1171 1172 20090803 1173 + add tabs.1 to man/man_db.renames 1174 + modify lib_addch.c to compensate for removal of wide-character test 1175 from unctrl() in 20090704 (Debian #539735). 1176 1177 20090801 1178 + improve discussion in INSTALL for use of system's tic/infocmp for 1179 cross-compiling and building fallbacks. 1180 + modify test/demo_termcap.c to correspond better to options in 1181 test/demo_terminfo.c 1182 + continue integrating "sp-funcs" by Juergen Pfeifer (incomplete). 1183 + fix logic for 'V' in test/ncurses.c tests f/F. 1184 1185 20090728 1186 + correct logic in tigetnum(), which caused tput program to treat all 1187 string capabilities as numeric (report by Rajeev V Pillai, 1188 cf: 20090711). 1189 1190 20090725 1191 + continue integrating "sp-funcs" by Juergen Pfeifer (incomplete). 1192 1193 20090718 1194 + fix a null-pointer check in _nc_format_slks() in lib_slk.c, from 1195 20070704 changes. 1196 + modify _nc_find_type_entry() to use hashing. 1197 + make CCHARW_MAX value configurable, noting that changing this would 1198 change the size of cchar_t, and would be ABI-incompatible. 1199 + modify test-programs, e.g,. test/view.c, to address subtle 1200 differences between Tru64/Solaris and HPUX/AIX getcchar() return 1201 values. 1202 + modify length returned by getcchar() to count the trailing null 1203 which is documented in X/Open (cf: 20020427). 1204 + fixes for test programs to build/work on HPUX and AIX, etc. 1205 1206 20090711 1207 + improve performance of tigetstr, etc., by using hashing code from tic. 1208 + minor fixes for memory-leak checking. 1209 + add test/demo_terminfo, for comparison with demo_termcap 1210 1211 20090704 1212 + remove wide-character checks from unctrl() (patch by Clemens Ladisch). 1213 + revise wadd_wch() and wecho_wchar() to eliminate dependency on 1214 unctrl(). 1215 + continue integrating "sp-funcs" by Juergen Pfeifer (incomplete). 1216 1217 20090627 1218 + update llib-lncurses[wt] to use sp-funcs. 1219 + various code-fixes to build/work with --disable-macros configure 1220 option. 1221 + add several new files from Juergen Pfeifer which will be used when 1222 integration of "sp-funcs" is complete. This includes a port to 1223 MinGW. 1224 1225 20090613 1226 + move definition for NCURSES_WRAPPED_VAR back to ncurses_dll.h, to 1227 make includes of term.h without curses.h work (report by "Nix"). 1228 + continue integrating "sp-funcs" by Juergen Pfeifer (incomplete). 1229 1230 20090607 1231 + fix a regression in lib_tputs.c, from ongoing merges. 1232 1233 20090606 1234 + continue integrating "sp-funcs" by Juergen Pfeifer (incomplete). 1235 1236 20090530 1237 + fix an infinite recursion when adding a legacy-coding 8-bit value 1238 using insch() (report by Clemens Ladisch). 1239 + free home-terminfo string in del_curterm() (patch by Dan Weber). 1240 + continue integrating "sp-funcs" by Juergen Pfeifer (incomplete). 1241 1242 20090523 1243 + continue integrating "sp-funcs" by Juergen Pfeifer (incomplete). 1244 1245 20090516 1246 + work around antique BSD game's manipulation of stdscr, etc., versus 1247 SCREEN's copy of the pointer (Debian #528411). 1248 + add a cast to wattrset macro to avoid compiler warning when comparing 1249 its result against ERR (adapted from patch by Matt Kraii, Debian 1250 #528374). 1251 1252 20090510 1253 + continue integrating "sp-funcs" by Juergen Pfeifer (incomplete). 1254 1255 20090502 1256 + continue integrating "sp-funcs" by Juergen Pfeifer (incomplete). 1257 + add vwmterm terminfo entry (patch by Bryan Christ). 1258 1259 20090425 1260 + continue integrating "sp-funcs" by Juergen Pfeifer (incomplete). 1261 1262 20090419 1263 + build fix for _nc_free_and_exit() change in 20090418 (report by 1264 Christian Ebert). 1265 1266 20090418 1267 + continue integrating "sp-funcs" by Juergen Pfeifer (incomplete). 1268 1269 20090411 1270 + continue integrating "sp-funcs" by Juergen Pfeifer (incomplete). 1271 This change finishes merging for menu and panel libraries, does 1272 part of the form library. 1273 1274 20090404 1275 + suppress configure check for static/dynamic linker flags for gcc on 1276 Darwin (report by Nelson Beebe). 1277 1278 20090328 1279 + extend ansi.sys pfkey capability from kf1-kf10 to kf1-kf48, moving 1280 function key definitions from emx-base for consistency -TD 1281 + correct missing final 'p' in pfkey capability of ansi.sys-old (report 1282 by Kalle Olavi Niemitalo). 1283 + improve test/ncurses.c 'F' test, show combining characters in color. 1284 + quiet a false report by cppcheck in c++/cursesw.cc by eliminating 1285 a temporary variable. 1286 + use _nc_doalloc() rather than realloc() in a few places in ncurses 1287 library to avoid leak in out-of-memory condition (reports by William 1288 Egert and Martin Ettl based on cppcheck tool). 1289 + add --with-ncurses-wrap-prefix option to test/configure (discussion 1290 with Charles Wilson). 1291 + use ncurses*-config scripts if available for test/configure. 1292 + update test/aclocal.m4 and test/configure 1293 > patches by Charles Wilson: 1294 + modify CF_WITH_LIBTOOL configure check to allow unreleased libtool 1295 version numbers (e.g. which include alphabetic chars, as well as 1296 digits, after the final '.'). 1297 + improve use of -no-undefined option for libtool by setting an 1298 intermediate variable LT_UNDEF in the configure script, and then 1299 using that in the libtool link-commands. 1300 + fix an missing use of NCURSES_PUBLIC_VAR() in tinfo/MKcodes.awk 1301 from 2009031 changes. 1302 + improve mk-1st.awk script by writing separate cases for the 1303 LIBTOOL_LINK command, depending on which library (ncurses, ticlib, 1304 termlib) is to be linked. 1305 + modify configure.in to allow broken-linker configurations, not just 1306 enable-reentrant, to set public wrap prefix. 1307 1308 20090321 1309 + add TICS_LIST and SHLIB_LIST to allow libtool 2.2.6 on Cygwin to 1310 build with tic and term libraries (patch by Charles Wilson). 1311 + add -no-undefined option to libtool for Cygwin, MinGW, U/Win and AIX 1312 (report by Charles Wilson). 1313 + fix definition for c++/Makefile.in's SHLIB_LIST, which did not list 1314 the form, menu or panel libraries (patch by Charles Wilson). 1315 + add configure option --with-wrap-prefix to allow setting the prefix 1316 for functions used to wrap global variables to something other than 1317 "_nc_" (discussion with Charles Wilson). 1318 1319 20090314 1320 + modify scripts to generate ncurses*-config and pc-files to add 1321 dependency for tinfo library (patch by Charles Wilson). 1322 + improve comparison of program-names when checking for linked flavors 1323 such as "reset" by ignoring the executable suffix (reports by Charles 1324 Wilson, Samuel Thibault and Cedric Bretaudeau on Cygwin mailing 1325 list). 1326 + suppress configure check for static/dynamic linker flags for gcc on 1327 Solaris 10, since gcc is confused by absence of static libc, and 1328 does not switch back to dynamic mode before finishing the libraries 1329 (reports by Joel Bertrand, Alan Pae). 1330 + minor fixes to Intel compiler warning checks in configure script. 1331 + modify _nc_leaks_tinfo() so leak-checking in test/railroad.c works. 1332 + modify set_curterm() to make broken-linker configuration work with 1333 changes from 20090228 (report by Charles Wilson). 1334 1335 20090228 1336 + continue integrating "sp-funcs" by Juergen Pfeifer (incomplete). 1337 + modify declaration of cur_term when broken-linker is used, but 1338 enable-reentrant is not, to match pre-5.7 (report by Charles Wilson). 1339 1340 20090221 1341 + continue integrating "sp-funcs" by Juergen Pfeifer (incomplete). 1342 1343 20090214 1344 + add configure script --enable-sp-funcs to enable the new set of 1345 extended functions. 1346 + start integrating patches by Juergen Pfeifer: 1347 + add extended functions which specify the SCREEN pointer for several 1348 curses functions which use the global SP (these are incomplete; 1349 some internals work is needed to complete these). 1350 + add special cases to configure script for MinGW port. 1351 1352 20090207 1353 + update several configure macros from lynx changes 1354 + append (not prepend) to CFLAGS/CPPFLAGS 1355 + change variable from PATHSEP to PATH_SEPARATOR 1356 + improve install-rules for pc-files (patch by Miroslav Lichvar). 1357 + make it work with $DESTDIR 1358 + create the pkg-config library directory if needed. 1359 1360 20090124 1361 + modify init_pair() to allow caller to create extra color pairs beyond 1362 the color_pairs limit, which use default colors (request by Emanuele 1363 Giaquinta). 1364 + add misc/terminfo.tmp and misc/*.pc to "sources" rule. 1365 + fix typo "==" where "=" is needed in ncurses-config.in and 1366 gen-pkgconfig.in files (Debian #512161). 1367 1368 20090117 1369 + add -shared option to MK_SHARED_LIB when -Bsharable is used, for 1370 *BSD's, without which "main" might be one of the shared library's 1371 dependencies (report/analysis by Ken Dickey). 1372 + modify waddch_literal(), updating line-pointer after a multicolumn 1373 character is found to not fit on the current row, and wrapping is 1374 done. Since the line-pointer was not updated, the wrapped 1375 multicolumn character was written to the beginning of the current row 1376 (cf: 20041023, reported by "Nick" regarding problem with ncmpc 1377). 1378 1379 20090110 1380 + add screen.Eterm terminfo entry (GenToo #124887) -TD 1381 + modify adacurses-config to look for ".ali" files in the adalib 1382 directory. 1383 + correct install for Ada95, which omitted libAdaCurses.a used in 1384 adacurses-config 1385 + change install for adacurses-config to provide additional flavors 1386 such as adacursesw-config, for ncursesw (GenToo #167849). 1387 1388 20090105 1389 + remove undeveloped feature in ncurses-config.in for setting 1390 prefix variable. 1391 + recent change to ncurses-config.in did not take into account the 1392 --disable-overwrite option, which sets $includedir to the 1393 subdirectory and using just that for a -I option does not work - fix 1394 (report by Frederic L W Meunier). 1395 1396 20090104 1397 + modify gen-pkgconfig.in to eliminate a dependency on rpath when 1398 deciding whether to add $LIBS to --libs output; that should be shown 1399 for the ncurses and tinfo libraries without taking rpath into 1400 account. 1401 + fix an overlooked change from $AR_OPTS to $ARFLAGS in mk-1st.awk, 1402 used in static libraries (report by Marty Jack). 1403 1404 20090103 1405 + add a configure-time check to pick a suitable value for 1406 CC_SHARED_OPTS for Solaris (report by Dagobert Michelsen). 1407 + add configure --with-pkg-config and --enable-pc-files options, along 1408 with misc/gen-pkgconfig.in which can be used to generate ".pc" files 1409 for pkg-config (request by Jan Engelhardt). 1410 + use $includedir symbol in misc/ncurses-config.in, add --includedir 1411 option. 1412 + change makefiles to use $ARFLAGS rather than $AR_OPTS, provide a 1413 configure check to detect whether a "-" is needed before "ar" 1414 options. 1415 + update config.guess, config.sub from 1416 1417 1418 20081227 1419 + modify mk-1st.awk to work with extra categories for tinfo library. 1420 + modify configure script to allow building shared libraries with gcc 1421 on AIX 5 or 6 (adapted from patch by Lital Natan). 1422 1423 20081220 1424 + modify to omit the opaque-functions from lib_gen.o when 1425 --disable-ext-funcs is used. 1426 + add test/clip_printw.c to illustrate how to use printw without 1427 wrapping. 1428 + modify ncurses 'F' test to demo wborder_set() with colored lines. 1429 + modify ncurses 'f' test to demo wborder() with colored lines. 1430 1431 20081213 1432 + add check for failure to open hashed-database needed for db4.6 1433 (GenToo #245370). 1434 + corrected --without-manpages option; previous change only suppressed 1435 the auxiliary rules install.man and uninstall.man 1436 + add case for FreeMINT to configure macro CF_XOPEN_SOURCE (patch from 1437 GenToo #250454). 1438 + fixes from NetBSD port at 1439 1440 patch-ac (build-fix for DragonFly) 1441 patch-ae (use INSTALL_SCRIPT for installing misc/ncurses*-config). 1442 + improve configure script macros CF_HEADER_PATH and CF_LIBRARY_PATH 1443 by adding CFLAGS, CPPFLAGS and LDFLAGS, LIBS values to the 1444 search-lists. 1445 + correct title string for keybound manpage (patch by Frederic Culot, 1446 OpenBSD documentation/6019), 1447 1448 20081206 1449 + move del_curterm() call from _nc_freeall() to _nc_leaks_tinfo() to 1450 work for progs/clear, progs/tabs, etc. 1451 + correct buffer-size after internal resizing of wide-character 1452 set_field_buffer(), broken in 20081018 changes (report by Mike Gran). 1453 + add "-i" option to test/filter.c to tell it to use initscr() rather 1454 than newterm(), to investigate report on comp.unix.programmer that 1455 ncurses would clear the screen in that case (it does not - the issue 1456 was xterm's alternate screen feature). 1457 + add check in mouse-driver to disable connection if GPM returns a 1458 zero, indicating that the connection is closed (Debian #506717, 1459 adapted from patch by Samuel Thibault). 1460 1461 20081129 1462 + improve a workaround in adding wide-characters, when a control 1463 character is found. The library (cf: 20040207) uses unctrl() to 1464 obtain a printable version of the control character, but was not 1465 passing color or video attributes. 1466 + improve test/ncurses.c 'a' test, using unctrl() more consistently to 1467 display meta-characters. 1468 + turn on _XOPEN_CURSES definition in curses.h 1469 + add eterm-color entry (report by Vincent Lefevre) -TD 1470 + correct use of key_name() in test/ncurses.c 'A' test, which only 1471 displays wide-characters, not key-codes since 20070612 (report by 1472 Ricardo Cantu). 1473 1474 20081122 1475 + change _nc_has_mouse() to has_mouse(), reflect its use in C++ and 1476 Ada95 (patch by Juergen Pfeifer). 1477 + document in TO-DO an issue with Cygwin's package for GNAT (report 1478 by Mike Dennison). 1479 + improve error-checking of command-line options in "tabs" program. 1480 1481 20081115 1482 + change several terminfo entries to make consistent use of ANSI 1483 clear-all-tabs -TD 1484 + add "tabs" program (prompted by Debian #502260). 1485 + add configure --without-manpages option (request by Mike Frysinger). 1486 1487 20081102 5.7 release for upload to 1488 1489 20081025 1490 + add a manpage to discuss memory leaks. 1491 + add support for shared libraries for QNX (other than libtool, which 1492 does not work well on that platform). 1493 + build-fix for QNX C++ binding. 1494 1495 20081018 1496 + build-fixes for OS/2 EMX. 1497 + modify form library to accept control characters such as newline 1498 in set_field_buffer(), which is compatible with Solaris (report by 1499 Nit Khair). 1500 + modify configure script to assume --without-hashed-db when 1501 --disable-database is used. 1502 + add "-e" option in ncurses/Makefile.in when generating source-files 1503 to force earlier exit if the build environment fails unexpectedly 1504 (prompted by patch by Adrian Bunk). 1505 + change configure script to use CF_UTF8_LIB, improved variant of 1506 CF_LIBUTF8. 1507 1508 20081012 1509 + add teraterm4.59 terminfo entry, use that as primary teraterm entry, rename 1510 original to teraterm2.3 -TD 1511 + update "gnome" terminfo to 2.22.3 -TD 1512 + update "konsole" terminfo to 1.6.6, needs today's fix for tic -TD 1513 + add "aterm" terminfo -TD 1514 + add "linux2.6.26" terminfo -TD 1515 + add logic to tic for cancelling strings in user-defined capabilities, 1516 overlooked til now. 1517 1518 20081011 1519 + regenerated html documentation. 1520 + add -m and -s options to test/keynames.c and test/key_names.c to test 1521 the meta() function with keyname() or key_name(), respectively. 1522 + correct return value of key_name() on error; it is null. 1523 + document some unresolved issues for rpath and pthreads in TO-DO. 1524 + fix a missing prototype for ioctl() on OpenBSD in tset.c 1525 + add configure option --disable-tic-depends to make explicit whether 1526 tic library depends on ncurses/ncursesw library, amends change from 1527 20080823 (prompted by Debian #501421). 1528 1529 20081004 1530 + some build-fixes for configure --disable-ext-funcs (incomplete, but 1531 works for C/C++ parts). 1532 + improve configure-check for awks unable to handle large strings, e.g. 1533 AIX 5.1 whose awk silently gives up on large printf's. 1534 1535 20080927 1536 + fix build for --with-dmalloc by workaround for redefinition of 1537 strndup between string.h and dmalloc.h 1538 + fix build for --disable-sigwinch 1539 + add environment variable NCURSES_GPM_TERMS to allow override to use 1540 GPM on terminals other than "linux", etc. 1541 + disable GPM mouse support when $TERM does not happen to contain 1542 "linux", since Gpm_Open() no longer limits its assertion to terminals 1543 that it might handle, e.g., within "screen" in xterm. 1544 + reset mouse file-descriptor when unloading GPM library (report by 1545 Miroslav Lichvar). 1546 + fix build for --disable-leaks --enable-widec --with-termlib 1547 > patch by Juergen Pfeifer: 1548 + use improved initialization for soft-label keys in Ada95 sample code. 1549 + discard internal symbol _nc_slk_format (unused since 20080112). 1550 + move call of slk_paint_info() from _nc_slk_initialize() to 1551 slk_intern_refresh(), improving initialization. 1552 1553 20080925 1554 + fix bug in mouse code for GPM from 20080920 changes (reported in 1555 Debian #500103, also Miroslav Lichvar). 1556 1557 20080920 1558 + fix shared-library rules for cygwin with tic- and tinfo-libraries. 1559 + fix a memory leak when failure to connect to GPM. 1560 + correct check for notimeout() in wgetch() (report on linux.redhat 1561 newsgroup by FurtiveBertie). 1562 + add an example warning-suppression file for valgrind, 1563 misc/ncurses.supp (based on example from Reuben Thomas) 1564 1565 20080913 1566 + change shared-library configuration for OpenBSD, make rpath work. 1567 + build-fixes for using libutf8, e.g., on OpenBSD 3.7 1568 1569 20080907 1570 + corrected fix for --enable-weak-symbols (report by Frederic L W 1571 Meunier). 1572 1573 20080906 1574 + corrected gcc options for building shared libraries on IRIX64. 1575 + add configure check for awk programs unable to handle big-strings, 1576 use that to improve the default for --enable-big-strings option. 1577 + makefile-fixes for --enable-weak-symbols (report by Frederic L W 1578 Meunier). 1579 + update test/configure script. 1580 + adapt ifdef's from library to make test/view.c build when mbrtowc() 1581 is unavailable, e.g., with HPUX 10.20. 1582 + add configure check for wcsrtombs, mbsrtowcs, which are used in 1583 test/ncurses.c, and use wcstombs, mbstowcs instead if available, 1584 fixing build of ncursew for HPUX 11.00 1585 1586 20080830 1587 + fixes to make Ada95 demo_panels() example work. 1588 + modify Ada95 'rain' test program to accept keyboard commands like the 1589 C-version. 1590 + modify BeOS-specific ifdef's to build on Haiku (patch by Scott 1591 Mccreary). 1592 + add configure-check to see if the std namespace is legal for cerr 1593 and endl, to fix a build issue with Tru64. 1594 + consistently use NCURSES_BOOL in lib_gen.c 1595 + filter #line's from lib_gen.c 1596 + change delimiter in MKlib_gen.sh from '%' to '@', to avoid 1597 substitution by IBM xlc to '#' as part of its extensions to digraphs. 1598 + update config.guess, config.sub from 1599 1600 (caveat - its maintainer removed support for older Linux systems). 1601 1602 20080823 1603 + modify configure check for pthread library to work with OSF/1 5.1, 1604 which uses #define's to associate its header and library. 1605 + use pthread_mutexattr_init() for initializing pthread_mutexattr_t, 1606 makes threaded code work on HPUX 11.23 1607 + fix a bug in demo_menus in freeing menus (cf: 20080804). 1608 + modify configure script for the case where tic library is used (and 1609 possibly renamed) to remove its dependency upon ncurses/ncursew 1610 library (patch by Dr Werner Fink). 1611 + correct manpage for menu_fore() which gave wrong default for 1612 the attribute used to display a selected entry (report by Mike Gran). 1613 + add Eterm-256color, Eterm-88color and rxvt-88color (prompted by 1614 Debian #495815) -TD 1615 1616 20080816 1617 + add configure option --enable-weak-symbols to turn on new feature. 1618 + add configure-check for availability of weak symbols. 1619 + modify linkage with pthread library to use weak symbols so that 1620 applications not linked to that library will not use the mutexes, 1621 etc. This relies on gcc, and may be platform-specific (patch by Dr 1622 Werner Fink). 1623 + add note to INSTALL to document limitation of renaming of tic library 1624 using the --with-ticlib configure option (report by Dr Werner Fink). 1625 + document (in manpage) why tputs does not detect I/O errors (prompted 1626 by comments by Samuel Thibault). 1627 + fix remaining warnings from Klocwork report. 1628 1629 20080804 1630 + modify _nc_panelhook() data to account for a permanent memory leak. 1631 + fix memory leaks in test/demo_menus 1632 + fix most warnings from Klocwork tool (report by Larry Zhou). 1633 + modify configure script CF_XOPEN_SOURCE macro to add case for 1634 "dragonfly" from xterm #236 changes. 1635 + modify configure script --with-hashed-db to let $LIBS override the 1636 search for the db library (prompted by report by Samson Pierre). 1637 1638 20080726 1639 + build-fixes for gcc 4.3.1 (changes to gnat "warnings", and C inlining 1640 thresholds). 1641 1642 20080713 1643 + build-fix (reports by Christian Ebert, Funda Wang). 1644 1645 20080712 1646 + compiler-warning fixes for Solaris. 1647 1648 20080705 1649 + use NCURSES_MOUSE_MASK() in definition of BUTTON_RELEASE(), etc., to 1650 make those work properly with the "--enable-ext-mouse" configuration 1651 (cf: 20050205). 1652 + improve documentation of build-cc options in INSTALL. 1653 + work-around a bug in gcc 4.2.4 on AIX, which does not pass the 1654 -static/-dynamic flags properly to linker, causing test/bs to 1655 not link. 1656 1657 20080628 1658 + correct some ifdef's needed for the broken-linker configuration. 1659 + make debugging library's $BAUDRATE feature work for termcap 1660 interface. 1661 + make $NCURSES_NO_PADDING feature work for termcap interface (prompted 1662 by comment on FreeBSD mailing list). 1663 + add screen.mlterm terminfo entry -TD 1664 + improve mlterm and mlterm+pcfkeys terminfo entries -TD 1665 1666 20080621 1667 + regenerated html documentation. 1668 + expand manpage description of parameters for form_driver() and 1669 menu_driver() (prompted by discussion with Adam Spragg). 1670 + add null-pointer checks for cur_term in baudrate() and 1671 def_shell_mode(), def_prog_mode() 1672 + fix some memory leaks in delscreen() and wide acs. 1673 1674 20080614 1675 + modify test/ditto.c to illustrate multi-threaded use_screen(). 1676 + change CC_SHARED_OPTS from -KPIC to -xcode=pic32 for Solaris. 1677 + add "-shared" option to MK_SHARED_LIB for gcc on Solaris (report 1678 by Poor Yorick). 1679 1680 20080607 1681 + finish changes to wgetch(), making it switch as needed to the 1682 window's actual screen when calling wrefresh() and wgetnstr(). That 1683 allows wgetch() to get used concurrently in different threads with 1684 some minor restrictions, e.g., the application should not delete a 1685 window which is being used in a wgetch(). 1686 + simplify mutex's, combining the window- and screen-mutex's. 1687 1688 20080531 1689 + modify wgetch() to use the screen which corresponds to its window 1690 parameter rather than relying on SP; some dependent functions still 1691 use SP internally. 1692 + factor out most use of SP in lib_mouse.c, using parameter. 1693 + add internal _nc_keyname(), replacing keyname() to associate with a 1694 particular SCREEN rather than the global SP. 1695 + add internal _nc_unctrl(), replacing unctrl() to associate with a 1696 particular SCREEN rather than the global SP. 1697 + add internal _nc_tracemouse(), replacing _tracemouse() to eliminate 1698 its associated global buffer _nc_globals.tracemse_buf now in SCREEN. 1699 + add internal _nc_tracechar(), replacing _tracechar() to use SCREEN in 1700 preference to the global _nc_globals.tracechr_buf buffer. 1701 1702 20080524 1703 + modify _nc_keypad() to make it switch temporarily as needed to the 1704 screen which must be updated. 1705 + wrap cur_term variable to help make _nc_keymap() thread-safe, and 1706 always set the screen's copy of this variable in set_curterm(). 1707 + restore curs_set() state after endwin()/refresh() (report/patch 1708 Miroslav Lichvar) 1709 1710 20080517 1711 + modify configure script to note that --enable-ext-colors and 1712 --enable-ext-mouse are not experimental, but extensions from 1713 the ncurses ABI 5. 1714 + corrected manpage description of setcchar() (discussion with 1715 Emanuele Giaquinta). 1716 + fix for adding a non-spacing character at the beginning of a line 1717 (report/patch by Miroslav Lichvar). 1718 1719 20080503 1720 + modify screen.* terminfo entries using new screen+fkeys to fix 1721 overridden keys in screen.rxvt (Debian #478094) -TD 1722 + modify internal interfaces to reduce wgetch()'s dependency on the 1723 global SP. 1724 + simplify some loops with macros each_screen(), each_window() and 1725 each_ripoff(). 1726 1727 20080426 1728 + continue modifying test/ditto.c toward making it demonstrate 1729 multithreaded use_screen(), using fifos to pass data between screens. 1730 + fix typo in form.3x (report by Mike Gran). 1731 1732 20080419 1733 + add screen.rxvt terminfo entry -TD 1734 + modify tic -f option to format spaces as \s to prevent them from 1735 being lost when that is read back in unformatted strings. 1736 + improve test/ditto.c, using a "talk"-style layout. 1737 1738 20080412 1739 + change test/ditto.c to use openpty() and xterm. 1740 + add locks for copywin(), dupwin(), overlap(), overlay() on their 1741 window parameters. 1742 + add locks for initscr() and newterm() on updates to the SCREEN 1743 pointer. 1744 + finish table in curs_thread.3x manpage. 1745 1746 20080405 1747 + begin table in curs_thread.3x manpage describing the scope of data 1748 used by each function (or symbol) for threading analysis. 1749 + add null-pointer checks to setsyx() and getsyx() (prompted by 1750 discussion by Martin v. Lowis and Jeroen Ruigrok van der Werven on 1751 python-dev2 mailing list). 1752 1753 20080329 1754 + add null-pointer checks in set_term() and delscreen(). 1755 + move _nc_windows into _nc_globals, since windows can be pads, which 1756 are not associated with a particular screen. 1757 + change use_screen() to pass the SCREEN* parameter rather than 1758 stdscr to the callback function. 1759 + force libtool to use tag for 'CC' in case it does not detect this, 1760 e.g., on aix when using CC=powerpc-ibm-aix5.3.0.0-gcc 1761 (report/patch by Michael Haubenwallner). 1762 + override OBJEXT to "lo" when building with libtool, to work on 1763 platforms such as AIX where libtool may use a different suffix for 1764 the object files than ".o" (report/patch by Michael Haubenwallner). 1765 + add configure --with-pthread option, for building with the POSIX 1766 thread library. 1767 1768 20080322 1769 + fill in extended-color pair two more places in wbkgrndset() and 1770 waddch_nosync() (prompted by Sedeno's patch). 1771 + fill in extended-color pair in _nc_build_wch() to make colors work 1772 for wide-characters using extended-colors (patch by Alejandro R 1773 Sedeno). 1774 + add x/X toggles to ncurses.c C color test to test/demo 1775 wide-characters with extended-colors. 1776 + add a/A toggles to ncurses.c c/C color tests. 1777 + modify test/ditto.c to use use_screen(). 1778 + finish modifying test/rain.c to demonstrate threads. 1779 1780 20080308 1781 + start modifying test/rain.c for threading demo. 1782 + modify test/ncurses.c to make 'f' test accept the f/F/b/F/</> toggles 1783 that the 'F' accepts. 1784 + modify test/worm.c to show trail in reverse-video when other threads 1785 are working concurrently. 1786 + fix a deadlock from improper nesting of mutexes for windowlist and 1787 window. 1788 1789 20080301 1790 + fixes from 20080223 resolved issue with mutexes; change to use 1791 recursive mutexes to fix memory leak in delwin() as called from 1792 _nc_free_and_exit(). 1793 1794 20080223 1795 + fix a size-difference in _nc_globals which caused hanging of mutex 1796 lock/unlock when termlib was built separately. 1797 1798 20080216 1799 + avoid using nanosleep() in threaded configuration since that often 1800 is implemented to suspend the entire process. 1801 1802 20080209 1803 + update test programs to build/work with various UNIX curses for 1804 comparisons. This was to reinvestigate statement in X/Open curses 1805 that insnstr and winsnstr perform wrapping. None of the Unix-branded 1806 implementations do this, as noted in manpage (cf: 20040228). 1807 1808 20080203 1809 + modify _nc_setupscreen() to set the legacy-coding value the same 1810 for both narrow/wide models. It had been set only for wide model, 1811 but is needed to make unctrl() work with locale in the narrow model. 1812 + improve waddch() and winsch() handling of EILSEQ from mbrtowc() by 1813 using unctrl() to display illegal bytes rather than trying to append 1814 further bytes to make up a valid sequence (reported by Andrey A 1815 Chernov). 1816 + modify unctrl() to check codes in 128-255 range versus isprint(). 1817 If they are not printable, and locale was set, use a "M-" or "~" 1818 sequence. 1819 1820 20080126 1821 + improve threading in test/worm.c (wrap refresh calls, and KEY_RESIZE 1822 handling). Now it hangs in napms(), no matter whether nanosleep() 1823 or poll() or select() are used on Linux. 1824 1825 20080119 1826 + fixes to build with --disable-ext-funcs 1827 + add manpage for use_window and use_screen. 1828 + add set_tabsize() and set_escdelay() functions. 1829 1830 20080112 1831 + remove recursive-mutex definitions, finish threading demo for worm.c 1832 + remove a redundant adjustment of lines in resizeterm.c's 1833 adjust_window() which caused occasional misadjustment of stdscr when 1834 softkeys were used. 1835 1836 20080105 1837 + several improvements to terminfo entries based on xterm #230 -TD 1838 + modify MKlib_gen.sh to handle keyname/key_name prototypes, so the 1839 "link_test" builds properly. 1840 + fix for toe command-line options -u/-U to ensure filename is given. 1841 + fix allocation-size for command-line parsing in infocmp from 20070728 1842 (report by Miroslav Lichvar) 1843 + improve resizeterm() by moving ripped-off lines, and repainting the 1844 soft-keys (report by Katarina Machalkova) 1845 + add clarification in wclear's manpage noting that the screen will be 1846 cleared even if a subwindow is cleared (prompted by Christer Enfors 1847 question). 1848 + change test/ncurses.c soft-key tests to work with KEY_RESIZE. 1849 1850 20071222 1851 + continue implementing support for threading demo by adding mutex 1852 for delwin(). 1853 1854 20071215 1855 + add several functions to C++ binding which wrap C functions that 1856 pass a WINDOW* parameter (request by Chris Lee). 1857 1858 20071201 1859 + add note about configure options needed for Berkeley database to the 1860 INSTALL file. 1861 + improve checks for version of Berkeley database libraries. 1862 + amend fix for rpath to not modify LDFLAGS if the platform has no 1863 applicable transformation (report by Christian Ebert, cf: 20071124). 1864 1865 20071124 1866 + modify configure option --with-hashed-db to accept a parameter which 1867 is the install-prefix of a given Berkeley Database (prompted by 1868 pierre4d2 comments). 1869 + rewrite wrapper for wcrtomb(), making it work on Solaris. This is 1870 used in the form library to determine the length of the buffer needed 1871 by field_buffer (report by Alfred Fung). 1872 + remove unneeded window-parameter from C++ binding for wresize (report 1873 by Chris Lee). 1874 1875 20071117 1876 + modify the support for filesystems which do not support mixed-case to 1877 generate 2-character (hexadecimal) codes for the lower-level of the 1878 filesystem terminfo database (request by Michail Vidiassov). 1879 + add configure option --enable-mixed-case, to allow overriding the 1880 configure script's check if the filesystem supports mixed-case 1881 filenames. 1882 + add wresize() to C++ binding (request by Chris Lee). 1883 + define NCURSES_EXT_FUNCS and NCURSES_EXT_COLORS in curses.h to make 1884 it simpler to tell if the extended functions and/or colors are 1885 declared. 1886 1887 20071103 1888 + update memory-leak checks for changes to names.c and codes.c 1889 + correct acsc strings in h19, z100 (patch by Benjamin C W Sittler). 1890 1891 20071020 1892 + continue implementing support for threading demo by adding mutex 1893 for use_window(). 1894 + add mrxvt terminfo entry, add/fix xterm building blocks for modified 1895 cursor keys -TD 1896 + compile with FreeBSD "contemporary" TTY interface (patch by 1897 Rong-En Fan). 1898 1899 20071013 1900 + modify makefile rules to allow clear, tput and tset to be built 1901 without libtic. The other programs (infocmp, tic and toe) rely on 1902 that library. 1903 + add/modify null-pointer checks in several functions for SP and/or 1904 the WINDOW* parameter (report by Thorben Krueger). 1905 + fixes for field_buffer() in formw library (see Redhat Bugzilla 1906 #310071, patches by Miroslav Lichvar). 1907 + improve performance of NCURSES_CHAR_EQ code (patch by Miroslav 1908 Lichvar). 1909 + update/improve mlterm and rxvt terminfo entries, e.g., for 1910 the modified cursor- and keypad-keys -TD 1911 1912 20071006 1913 + add code to curses.priv.h ifdef'd with NCURSES_CHAR_EQ, which 1914 changes the CharEq() macro to an inline function to allow comparing 1915 cchar_t struct's without comparing gaps in a possibly unpacked 1916 memory layout (report by Miroslav Lichvar). 1917 1918 20070929 1919 + add new functions to lib_trace.c to setup mutex's for the _tracef() 1920 calls within the ncurses library. 1921 + for the reentrant model, move _nc_tputs_trace and _nc_outchars into 1922 the SCREEN. 1923 + start modifying test/worm.c to provide threading demo (incomplete). 1924 + separated ifdef's for some BSD-related symbols in tset.c, to make 1925 it compile on LynxOS (report by Greg Gemmer). 1926 20070915 1927 + modify Ada95/gen/Makefile to use shlib script, to simplify building 1928 shared-library configuration on platforms lacking rpath support. 1929 + build-fix for Ada95/src/Makefile to reflect changed dependency for 1930 the terminal-interface-curses-aux.adb file which is now generated. 1931 + restructuring test/worm.c, for use_window() example. 1932 1933 20070908 1934 + add use_window() and use_screen() functions, to develop into support 1935 for threaded library (incomplete). 1936 + fix typos in man/curs_opaque.3x which kept the install script from 1937 creating symbolic links to two aliases created in 20070818 (report by 1938 Rong-En Fan). 1939 1940 20070901 1941 + remove a spurious newline from output of html.m4, which caused links 1942 for Ada95 html to be incorrect for the files generated using m4. 1943 + start investigating mutex's for SCREEN manipulation (incomplete). 1944 + minor cleanup of codes.c/names.c for --enable-const 1945 + expand/revise "Routine and Argument Names" section of ncurses manpage 1946 to address report by David Givens in newsgroup discussion. 1947 + fix interaction between --without-progs/--with-termcap configure 1948 options (report by Michail Vidiassov). 1949 + fix typo in "--disable-relink" option (report by Michail Vidiassov). 1950 1951 20070825 1952 + fix a sign-extension bug in infocmp's repair_acsc() function 1953 (cf: 971004). 1954 + fix old configure script bug which prevented "--disable-warnings" 1955 option from working (patch by Mike Frysinger). 1956 1957 20070818 1958 + add 9term terminal description (request by Juhapekka Tolvanen) -TD 1959 + modify comp_hash.c's string output to avoid misinterpreting a null 1960 "\0" followed by a digit. 1961 + modify MKnames.awk and MKcodes.awk to support big-strings. 1962 This only applies to the cases (broken linker, reentrant) where 1963 the corresponding arrays are accessed via wrapper functions. 1964 + split MKnames.awk into two scripts, eliminating the shell redirection 1965 which complicated the make process and also the bogus timestamp file 1966 which was introduced to fix "make -j". 1967 + add test/test_opaque.c, test/test_arrays.c 1968 + add wgetscrreg() and wgetparent() for applications that may need it 1969 when NCURSES_OPAQUE is defined (prompted by Bryan Christ). 1970 1971 20070812 1972 + amend treatment of infocmp "-r" option to retain the 1023-byte limit 1973 unless "-T" is given (cf: 981017). 1974 + modify comp_captab.c generation to use big-strings. 1975 + make _nc_capalias_table and _nc_infoalias_table private accessed via 1976 _nc_get_alias_table() since the tables are used only within the tic 1977 library. 1978 + modify configure script to skip Intel compiler in CF_C_INLINE. 1979 + make _nc_info_hash_table and _nc_cap_hash_table private accessed via 1980 _nc_get_hash_table() since the tables are used only within the tic 1981 library. 1982 1983 20070728 1984 + make _nc_capalias_table and _nc_infoalias_table private, accessed via 1985 _nc_get_alias_table() since they are used only by parse_entry.c 1986 + make _nc_key_names private since it is used only by lib_keyname.c 1987 + add --disable-big-strings configure option to control whether 1988 unctrl.c is generated using the big-string optimization - which may 1989 use strings longer than supported by a given compiler. 1990 + reduce relocation tables for tic, infocmp by changing type of 1991 internal hash tables to short, and make those private symbols. 1992 + eliminate large fixed arrays from progs/infocmp.c 1993 1994 20070721 1995 + change winnstr() to stop at the end of the line (cf: 970315). 1996 + add test/test_get_wstr.c 1997 + add test/test_getstr.c 1998 + add test/test_inwstr.c 1999 + add test/test_instr.c 2000 2001 20070716 2002 + restore a call to obtain screen-size in _nc_setupterm(), which 2003 is used in tput and other non-screen applications via setupterm() 2004 (Debian #433357, reported by Florent Bayle, Christian Ohm, 2005 cf: 20070310). 2006 2007 20070714 2008 + add test/savescreen.c test-program 2009 + add check to trace-file open, if the given name is a directory, add 2010 ".log" to the name and try again. 2011 + add konsole-256color entry -TD 2012 + add extra gcc warning options from xterm. 2013 + minor fixes for ncurses/hashmap test-program. 2014 + modify configure script to quiet c++ build with libtool when the 2015 --disable-echo option is used. 2016 + modify configure script to disable ada95 if libtool is selected, 2017 writing a warning message (addresses FreeBSD ports/114493). 2018 + update config.guess, config.sub 2019 2020 20070707 2021 + add continuous-move "M" to demo_panels to help test refresh changes. 2022 + improve fix for refresh of window on top of multi-column characters, 2023 taking into account some split characters on left/right window 2024 boundaries. 2025 2026 20070630 2027 + add "widec" row to _tracedump() output to help diagnose remaining 2028 problems with multi-column characters. 2029 + partial fix for refresh of window on top of multi-column characters 2030 which are partly overwritten (report by Sadrul H Chowdhury). 2031 + ignore A_CHARTEXT bits in vidattr() and vid_attr(), in case 2032 multi-column extension bits are passed there. 2033 + add setlocale() call to demo_panels.c, needed for wide-characters. 2034 + add some output flags to _nc_trace_ttymode to help diagnose a bug 2035 report by Larry Virden, i.e., ONLCR, OCRNL, ONOCR and ONLRET, 2036 2037 20070623 2038 + add test/demo_panels.c 2039 + implement opaque version of setsyx() and getsyx(). 2040 2041 20070612 2042 + corrected xterm+pcf2 terminfo modifiers for F1-F4, to match xterm 2043 #226 -TD 2044 + split-out key_name() from MKkeyname.awk since it now depends upon 2045 wunctrl() which is not in libtinfo (report by Rong-En Fan). 2046 2047 20070609 2048 + add test/key_name.c 2049 + add stdscr cases to test/inchs.c and test/inch_wide.c 2050 + update test/configure 2051 + correct formatting of DEL (0x7f) in _nc_vischar(). 2052 + null-terminate result of wunctrl(). 2053 + add null-pointer check in key_name() (report by Andreas Krennmair, 2054 cf: 20020901). 2055 2056 20070602 2057 + adapt mouse-handling code from menu library in form-library 2058 (discussion with Clive Nicolson). 2059 + add a modification of test/dots.c, i.e., test/dots_mvcur.c to 2060 illustrate how to use mvcur(). 2061 + modify wide-character flavor of SetAttr() to preserve the 2062 WidecExt() value stored in the .attr field, e.g., in case it 2063 is overwritten by chgat (report by Aleksi Torhamo). 2064 + correct buffer-size for _nc_viswbuf2n() (report by Aleksi Torhamo). 2065 + build-fixes for Solaris 2.6 and 2.7 (patch by Peter O'Gorman). 2066 2067 20070526 2068 + modify keyname() to use "^X" form only if meta() has been called, or 2069 if keyname() is called without initializing curses, e.g., via 2070 initscr() or newterm() (prompted by LinuxBase #1604). 2071 + document some portability issues in man/curs_util.3x 2072 + add a shadow copy of TTY buffer to _nc_prescreen to fix applications 2073 broken by moving that data into SCREEN (cf: 20061230). 2074 2075 20070512 2076 + add 'O' (wide-character panel test) in ncurses.c to demonstrate a 2077 problem reported by Sadrul H Chowdhury with repainting parts of 2078 a fullwidth cell. 2079 + modify slk_init() so that if there are preceding calls to 2080 ripoffline(), those affect the available lines for soft-keys (adapted 2081 from patch by Clive Nicolson). 2082 + document some portability issues in man/curs_getyx.3x 2083 2084 20070505 2085 + fix a bug in Ada95/samples/ncurses which caused a variable to 2086 become uninitialized in the "b" test. 2087 + fix Ada95/gen/Makefile.in adahtml rule to account for recent 2088 movement of files, fix a few incorrect manpage references in the 2089 generated html. 2090 + add Ada95 binding to _nc_freeall() as Curses_Free_All to help with 2091 memory-checking. 2092 + correct some functions in Ada95 binding which were using return value 2093 from C where none was returned: idcok(), immedok() and wtimeout(). 2094 + amend recent changes for Ada95 binding to make it build with 2095 Cygwin's linker, e.g., with configure options 2096 --enable-broken-linker --with-ticlib 2097 2098 20070428 2099 + add a configure check for gcc's options for inlining, use that to 2100 quiet a warning message where gcc's default behavior changed from 2101 3.x to 4.x. 2102 + improve warning message when checking if GPM is linked to curses 2103 library by not warning if its use of "wgetch" is via a weak symbol. 2104 + add loader options when building with static libraries to ensure that 2105 an installed shared library for ncurses does not conflict. This is 2106 reported as problem with Tru64, but could affect other platforms 2107 (report Martin Mokrejs, analysis by Tim Mooney). 2108 + fix build on cygwin after recent ticlib/termlib changes, i.e., 2109 + adjust TINFO_SUFFIX value to work with cygwin's dll naming 2110 + revert a change from 20070303 which commented out dependency of 2111 SHLIB_LIST in form/menu/panel/c++ libraries. 2112 + fix initialization of ripoff stack pointer (cf: 20070421). 2113 2114 20070421 2115 + move most static variables into structures _nc_globals and 2116 _nc_prescreen, to simplify storage. 2117 + add/use configure script macro CF_SIG_ATOMIC_T, use the corresponding 2118 type for data manipulated by signal handlers (prompted by comments 2119 in mailing.openbsd.bugs newsgroup). 2120 + modify CF_WITH_LIBTOOL to allow one to pass options such as -static 2121 to the libtool create- and link-operations. 2122 2123 20070414 2124 + fix whitespace in curs_opaque.3x which caused a spurious ';' in 2125 the installed aliases (report by Peter Santoro). 2126 + fix configure script to not try to generate adacurses-config when 2127 Ada95 tree is not built. 2128 2129 20070407 2130 + add man/curs_legacy.3x, man/curs_opaque.3x 2131 + fix acs_map binding for Ada95 when --enable-reentrant is used. 2132 + add adacurses-config to the Ada95 install, based on version from 2133 FreeBSD port, in turn by Juergen Pfeifer in 2000 (prompted by 2134 comment on comp.lang.ada newsgroup). 2135 + fix includes in c++ binding to build with Intel compiler 2136 (cf: 20061209). 2137 + update install rule in Ada95 to use mkdirs.sh 2138 > other fixes prompted by inspection for Coverity report: 2139 + modify ifdef's for c++ binding to use try/catch/throw statements 2140 + add a null-pointer check in tack/ansi.c request_cfss() 2141 + fix a memory leak in ncurses/base/wresize.c 2142 + corrected check for valid memu/meml capabilities in 2143 progs/dump_entry.c when handling V_HPUX case. 2144 > fixes based on Coverity report: 2145 + remove dead code in test/bs.c 2146 + remove dead code in test/demo_defkey.c 2147 + remove an unused assignment in progs/infocmp.c 2148 + fix a limit check in tack/ansi.c tools_charset() 2149 + fix tack/ansi.c tools_status() to perform the VT320/VT420 2150 tests in request_cfss(). The function had exited too soon. 2151 + fix a memory leak in tic.c's make_namelist() 2152 + fix a couple of places in tack/output.c which did not check for EOF. 2153 + fix a loop-condition in test/bs.c 2154 + add index checks in lib_color.c for color palettes 2155 + add index checks in progs/dump_entry.c for version_filter() handling 2156 of V_BSD case. 2157 + fix a possible null-pointer dereference in copywin() 2158 + fix a possible null-pointer dereference in waddchnstr() 2159 + add a null-pointer check in _nc_expand_try() 2160 + add a null-pointer check in tic.c's make_namelist() 2161 + add a null-pointer check in _nc_expand_try() 2162 + add null-pointer checks in test/cardfile.c 2163 + fix a double-free in ncurses/tinfo/trim_sgr0.c 2164 + fix a double-free in ncurses/base/wresize.c 2165 + add try/catch block to c++/cursesmain.cc 2166 2167 20070331 2168 + modify Ada95 binding to build with --enable-reentrant by wrapping 2169 global variables (bug: acs_map does not yet work). 2170 + modify Ada95 binding to use the new access-functions, allowing it 2171 to build/run when NCURSES_OPAQUE is set. 2172 + add access-functions and macros to return properties of the WINDOW 2173 structure, e.g., when NCURSES_OPAQUE is set. 2174 + improved install-sh's quoting. 2175 + use mkdirs.sh rather than mkinstalldirs, e.g., to use fixes from 2176 other programs. 2177 2178 20070324 2179 + eliminate part of the direct use of WINDOW data from Ada95 interface. 2180 + fix substitutions for termlib filename to make configure option 2181 --enable-reentrant work with --with-termlib. 2182 + change a constructor for NCursesWindow to allow compiling with 2183 NCURSES_OPAQUE set, since we cannot pass a reference to 2184 an opaque pointer. 2185 2186 20070317 2187 + ignore --with-chtype=unsigned since unsigned is always added to 2188 the type in curses.h; do the same for --with-mmask-t. 2189 + change warning regarding --enable-ext-colors and wide-character 2190 in the configure script to an error. 2191 + tweak error message in CF_WITH_LIBTOOL to distinguish other programs 2192 such as Darwin's libtool program (report by Michail Vidiassov) 2193 + modify edit_man.sh to allow for multiple substitutions per line. 2194 + set locale in misc/ncurses-config.in since it uses a range 2195 + change permissions libncurses++.a install (report by Michail 2196 Vidiassov). 2197 + corrected length of temporary buffer in wide-character version 2198 of set_field_buffer() (related to report by Bryan Christ). 2199 2200 20070311 2201 + fix mk-1st.awk script install_shlib() function, broken in 20070224 2202 changes for cygwin (report by Michail Vidiassov). 2203 2204 20070310 2205 + increase size of array in _nc_visbuf2n() to make "tic -v" work 2206 properly in its similar_sgr() function (report/analysis by Peter 2207 Santoro). 2208 + add --enable-reentrant configure option for ongoing changes to 2209 implement a reentrant version of ncurses: 2210 + libraries are suffixed with "t" 2211 + wrap several global variables (curscr, newscr, stdscr, ttytype, 2212 COLORS, COLOR_PAIRS, COLS, ESCDELAY, LINES and TABSIZE) as 2213 functions returning values stored in SCREEN or cur_term. 2214 + move some initialization (LINES, COLS) from lib_setup.c, 2215 i.e., setupterm() to _nc_setupscreen(), i.e., newterm(). 2216 2217 20070303 2218 + regenerated html documentation. 2219 + add NCURSES_OPAQUE symbol to curses.h, will use to make structs 2220 opaque in selected configurations. 2221 + move the chunk in lib_acs.c which resets acs capabilities when 2222 running on a terminal whose locale interferes with those into 2223 _nc_setupscreen(), so the libtinfo/libtinfow files can be made 2224 identical (requested by Miroslav Lichvar). 2225 + do not use configure variable SHLIB_LIBS for building libraries 2226 outside the ncurses directory, since that symbol is customized 2227 only for that directory, and using it introduces an unneeded 2228 dependency on libdl (requested by Miroslav Lichvar). 2229 + modify mk-1st.awk so the generated makefile rules for linking or 2230 installing shared libraries do not first remove the library, in 2231 case it is in use, e.g., libncurses.so by /bin/sh (report by Jeff 2232 Chua). 2233 + revised section "Using NCURSES under XTERM" in ncurses-intro.html 2234 (prompted by newsgroup comment by Nick Guenther). 2235 2236 20070224 2237 + change internal return codes of _nc_wgetch() to check for cases 2238 where KEY_CODE_YES should be returned, e.g., if a KEY_RESIZE was 2239 ungetch'd, and read by wget_wch(). 2240 + fix static-library build broken in 20070217 changes to remove "-ldl" 2241 (report by Miroslav Lichvar). 2242 + change makefile/scripts for cygwin to allow building termlib. 2243 + use Form_Hook in manpages to match form.h 2244 + use Menu_Hook in manpages, as well as a few places in menu.h 2245 + correct form- and menu-manpages to use specific Field_Options, 2246 Menu_Options and Item_Options types. 2247 + correct prototype for _tracechar() in manpage (cf: 20011229). 2248 + correct prototype for wunctrl() in manpage. 2249 2250 20070217 2251 + fixes for $(TICS_LIST) in ncurses/Makefile (report by Miroslav 2252 Lichvar). 2253 + modify relinking of shared libraries to apply only when rpath is 2254 enabled, and add --disable-relink option which can be used to 2255 disable the feature altogether (reports by Michail Vidiassov, 2256 Adam J Richter). 2257 + fix --with-termlib option for wide-character configuration, stripping 2258 the "w" suffix in one place (report by Miroslav Lichvar). 2259 + remove "-ldl" from some library lists to reduce dependencies in 2260 programs (report by Miroslav Lichvar). 2261 + correct description of --enable-signed-char in configure --help 2262 (report by Michail Vidiassov). 2263 + add pattern for GNU/kFreeBSD configuration to CF_XOPEN_SOURCE, 2264 which matches an earlier change to CF_SHARED_OPTS, from xterm #224 2265 fixes. 2266 + remove "${DESTDIR}" from -install_name option used for linking 2267 shared libraries on Darwin (report by Michail Vidiassov). 2268 2269 20070210 2270 + add test/inchs.c, test/inch_wide.c, to test win_wchnstr(). 2271 + remove libdl from library list for termlib (report by Miroslav 2272 Lichvar). 2273 + fix configure.in to allow --without-progs --with-termlib (patch by 2274 Miroslav Lichvar). 2275 + modify win_wchnstr() to ensure that only a base cell is returned 2276 for each multi-column character (prompted by report by Wei Kong 2277 regarding change in mvwin_wch() cf: 20041023). 2278 2279 20070203 2280 + modify fix_wchnstr() in form library to strip attributes (and color) 2281 from the cchar_t array (field cells) read from a field's window. 2282 Otherwise, when copying the field cells back to the window, the 2283 associated color overrides the field's background color (report by 2284 Ricardo Cantu). 2285 + improve tracing for form library, showing created forms, fields, etc. 2286 + ignore --enable-rpath configure option if --with-shared was omitted. 2287 + add _nc_leaks_tinfo(), _nc_free_tic(), _nc_free_tinfo() entrypoints 2288 to allow leak-checking when both tic- and tinfo-libraries are built. 2289 + drop CF_CPP_VSCAN_FUNC macro from configure script, since C++ binding 2290 no longer relies on it. 2291 + disallow combining configure script options --with-ticlib and 2292 --enable-termcap (report by Rong-En Fan). 2293 + remove tack from ncurses tree. 2294 2295 20070128 2296 + fix typo in configure script that broke --with-termlib option 2297 (report by Rong-En Fan). 2298 2299 20070127 2300 + improve fix for FreeBSD gnu/98975, to allow for null pointer passed 2301 to tgetent() (report by Rong-en Fan). 2302 + update tack/HISTORY and tack/README to tell how to build it after 2303 it is removed from the ncurses tree. 2304 + fix configure check for libtool's version to trim blank lines 2305 (report by sci-fi@hush.ai). 2306 + review/eliminate other original-file artifacts in cursesw.cc, making 2307 its license consistent with ncurses. 2308 + use ncurses vw_scanw() rather than reading into a fixed buffer in 2309 the c++ binding for scanw() methods (prompted by report by Nuno Dias). 2310 + eliminate fixed-buffer vsprintf() calls in c++ binding. 2311 2312 20070120 2313 + add _nc_leaks_tic() to separate leak-checking of tic library from 2314 term/ncurses libraries, and thereby eliminate a library dependency. 2315 + fix test/mk-test.awk to ignore blank lines. 2316 + correct paths in include/headers, for --srcdir (patch by Miroslav 2317 Lichvar). 2318 2319 20070113 2320 + add a break-statement in misc/shlib to ensure that it exits on the 2321 _first_ matched directory (report by Paul Novak). 2322 + add tack/configure, which can be used to build tack outside the 2323 ncurses build-tree. 2324 + add --with-ticlib option, to build/install the tic-support functions 2325 in a separate library (suggested by Miroslav Lichvar). 2326 2327 20070106 2328 + change MKunctrl.awk to reduce relocation table for unctrl.o 2329 + change MKkeyname.awk to reduce relocation table for keyname.o 2330 (patch by Miroslav Lichvar). 2331 2332 20061230 2333 + modify configure check for libtool's version to trim blank lines 2334 (report by sci-fi@hush.ai). 2335 + modify some modules to allow them to be reentrant if _REENTRANT is 2336 defined: lib_baudrate.c, resizeterm.c (local data only) 2337 + eliminate static data from some modules: add_tries.c, hardscroll.c, 2338 lib_ttyflags.c, lib_twait.c 2339 + improve manpage install to add aliases for the transformed program 2340 names, e.g., from --program-prefix. 2341 + used linklint to verify links in the HTML documentation, made fixes 2342 to manpages as needed. 2343 + fix a typo in curs_mouse.3x (report by William McBrine). 2344 + fix install-rule for ncurses5-config to make the bin-directory. 2345 2346 20061223 2347 + modify configure script to omit the tic (terminfo compiler) support 2348 from ncurses library if --without-progs option is given. 2349 + modify install rule for ncurses5-config to do this via "install.libs" 2350 + modify shared-library rules to allow FreeBSD 3.x to use rpath. 2351 + update config.guess, config.sub 2352 2353 20061217 5.6 release for upload to 2354 2355 20061217 2356 + add ifdef's for <wctype.h> for HPUX, which has the corresponding 2357 definitions in <wchar.h>. 2358 + revert the va_copy() change from 20061202, since it was neither 2359 correct nor portable. 2360 + add $(LOCAL_LIBS) definition to progs/Makefile.in, needed for 2361 rpath on Solaris. 2362 + ignore wide-acs line-drawing characters that wcwidth() claims are 2363 not one-column. This is a workaround for Solaris' broken locale 2364 support. 2365 2366 20061216 2367 + modify configure --with-gpm option to allow it to accept a parameter, 2368 i.e., the name of the dynamic GPM library to load via dlopen() 2369 (requested by Bryan Henderson). 2370 + add configure option --with-valgrind, changes from vile. 2371 + modify configure script AC_TRY_RUN and AC_TRY_LINK checks to use 2372 'return' in preference to 'exit()'. 2373 2374 20061209 2375 + change default for --with-develop back to "no". 2376 + add XTABS to tracing of TTY bits. 2377 + updated autoconf patch to ifdef-out the misfeature which declares 2378 exit() for configure tests. This fixes a redefinition warning on 2379 Solaris. 2380 + use ${CC} rather than ${LD} in shared library rules for IRIX64, 2381 Solaris to help ensure that initialization sections are provided for 2382 extra linkage requirements, e.g., of C++ applications (prompted by 2383 comment by Casper Dik in newsgroup). 2384 + rename "$target" in CF_MAN_PAGES to make it easier to distinguish 2385 from the autoconf predefined symbol. There was no conflict, 2386 since "$target" was used only in the generated edit_man.sh file, 2387 but SuSE's rpm package contains a patch. 2388 2389 20061202 2390 + update man/term.5 to reflect extended terminfo support and hashed 2391 database configuration. 2392 + updates for test/configure script. 2393 + adapted from SuSE rpm package: 2394 + remove long-obsolete workaround for broken-linker which declared 2395 cur_term in tic.c 2396 + improve error recovery in PUTC() macro when wcrtomb() does not 2397 return usable results for an 8-bit character. 2398 + patches from rpm package (SuSE): 2399 + use va_copy() in extra varargs manipulation for tracing version 2400 of printw, etc. 2401 + use a va_list rather than a null in _nc_freeall()'s call to 2402 _nc_printf_string(). 2403 + add some see-also references in manpages to show related 2404 wide-character functions (suggested by Claus Fischer). 2405 2406 20061125 2407 + add a check in lib_color.c to ensure caller does not increase COLORS 2408 above max_colors, which is used as an array index (discussion with 2409 Simon Sasburg). 2410 + add ifdef's allowing ncurses to be built with tparm() using either 2411 varargs (the existing status), or using a fixed-parameter list (to 2412 match X/Open). 2413 2414 20061104 2415 + fix redrawing of windows other than stdscr using wredrawln() by 2416 touching the corresponding rows in curscr (discussion with Dan 2417 Gookin). 2418 + add test/redraw.c 2419 + add test/echochar.c 2420 + review/cleanup manpage descriptions of error-returns for form- and 2421 menu-libraries (prompted by FreeBSD docs/46196). 2422 2423 20061028 2424 + add AUTHORS file -TD 2425 + omit the -D options from output of the new config script --cflags 2426 option (suggested by Ralf S Engelschall). 2427 + make NCURSES_INLINE unconditionally defined in curses.h 2428 2429 20061021 2430 + revert change to accommodate bash 3.2, since that breaks other 2431 platforms, e.g., Solaris. 2432 + minor fixes to NEWS file to simplify scripting to obtain list of 2433 contributors. 2434 + improve some shared-library configure scripting for Linux, FreeBSD 2435 and NetBSD to make "--with-shlib-version" work. 2436 + change configure-script rules for FreeBSD shared libraries to allow 2437 for rpath support in versions past 3. 2438 + use $(DESTDIR) in makefile rules for installing/uninstalling the 2439 package config script (reports/patches by Christian Wiese, 2440 Ralf S Engelschall). 2441 + fix a warning in the configure script for NetBSD 2.0, working around 2442 spurious blanks embedded in its ${MAKEFLAGS} symbol. 2443 + change test/Makefile to simplify installing test programs in a 2444 different directory when --enable-rpath is used. 2445 2446 20061014 2447 + work around bug in bash 3.2 by adding extra quotes (Jim Gifford). 2448 + add/install a package config script, e.g., "ncurses5-config" or 2449 "ncursesw5-config", according to configuration options. 2450 2451 20061007 2452 + add several GNU Screen terminfo variations with 16- and 256-colors, 2453 and status line (Alain Bench). 2454 + change the way shared libraries (other than libtool) are installed. 2455 Rather than copying the build-tree's libraries, link the shared 2456 objects into the install directory. This makes the --with-rpath 2457 option work except with $(DESTDIR) (cf: 20000930). 2458 2459 20060930 2460 + fix ifdef in c++/internal.h for QNX 6.1 2461 + test-compiled with (old) egcs-1.1.2, modified configure script to 2462 not unset the $CXX and related variables which would prevent this. 2463 + fix a few terminfo.src typos exposed by improvments to "-f" option. 2464 + improve infocmp/tic "-f" option formatting. 2465 2466 20060923 2467 + make --disable-largefile option work (report by Thomas M Ott). 2468 + updated html documentation. 2469 + add ka2, kb1, kb3, kc2 to vt220-keypad as an extension -TD 2470 + minor improvements to rxvt+pcfkeys -TD 2471 2472 20060916 2473 + move static data from lib_mouse.c into SCREEN struct. 2474 + improve ifdef's for _POSIX_VDISABLE in tset to work with Mac OS X 2475 (report by Michail Vidiassov). 2476 + modify CF_PATH_SYNTAX to ensure it uses the result from --prefix 2477 option (from lynx changes) -TD 2478 + adapt AC_PROG_EGREP check, noting that this is likely to be another 2479 place aggravated by POSIXLY_CORRECT. 2480 + modify configure check for awk to ensure that it is found (prompted 2481 by report by Christopher Parker). 2482 + update config.sub 2483 2484 20060909 2485 + add kon, kon2 and jfbterm terminfo entry (request by Till Maas) -TD 2486 + remove invis capability from klone+sgr, mainly used by linux entry, 2487 since it does not really do this -TD 2488 2489 20060903 2490 + correct logic in wadd_wch() and wecho_wch(), which did not guard 2491 against passing the multi-column attribute into a call on waddch(), 2492 e.g., using data returned by win_wch() (cf: 20041023) 2493 (report by Sadrul H Chowdhury). 2494 2495 20060902 2496 + fix kterm's acsc string -TD 2497 + fix for change to tic/infocmp in 20060819 to ensure no blank is 2498 embedded into a termcap description. 2499 + workaround for 20050806 ifdef's change to allow visbuf.c to compile 2500 when using --with-termlib --with-trace options. 2501 + improve tgetstr() by making the return value point into the user's 2502 buffer, if provided (patch by Miroslav Lichvar (see Redhat Bugzilla 2503 #202480)). 2504 + correct libraries needed for foldkeys (report by Stanislav Ievlev) 2505 2506 20060826 2507 + add terminfo entries for xfce terminal (xfce) and multi gnome 2508 terminal (mgt) -TD 2509 + add test/foldkeys.c 2510 2511 20060819 2512 + modify tic and infocmp to avoid writing trailing blanks on terminfo 2513 source output (Debian #378783). 2514 + modify configure script to ensure that if the C compiler is used 2515 rather than the loader in making shared libraries, the $(CFLAGS) 2516 variable is also used (Redhat Bugzilla #199369). 2517 + port hashed-db code to db2 and db3. 2518 + fix a bug in tgetent() from 20060625 and 20060715 changes 2519 (patch/analysis by Miroslav Lichvar (see Redhat Bugzilla #202480)). 2520 2521 20060805 2522 + updated xterm function-keys terminfo to match xterm #216 -TD 2523 + add configure --with-hashed-db option (tested only with FreeBSD 6.0, 2524 e.g., the db 1.8.5 interface). 2525 2526 20060729 2527 + modify toe to access termcap data, e.g., via cgetent() functions, 2528 or as a text file if those are not available. 2529 + use _nc_basename() in tset to improve $SHELL check for csh/sh. 2530 + modify _nc_read_entry() and _nc_read_termcap_entry() so infocmp, 2531 can access termcap data when the terminfo database is disabled. 2532 2533 20060722 2534 + widen the test for xterm kmous a little to allow for other strings 2535 than \E[M, e.g., for xterm-sco functionality in xterm. 2536 + update xterm-related terminfo entries to match xterm patch #216 -TD 2537 + update config.guess, config.sub 2538 2539 20060715 2540 + fix for install-rule in Ada95 to add terminal_interface.ads 2541 and terminal_interface.ali (anonymous posting in comp.lang.ada). 2542 + correction to manpage for getcchar() (report by William McBrine). 2543 + add test/chgat.c 2544 + modify wchgat() to mark updated cells as changed so a refresh will 2545 repaint those cells (comments by Sadrul H Chowdhury and William 2546 McBrine). 2547 + split up dependency of names.c and codes.c in ncurses/Makefile to 2548 work with parallel make (report/analysis by Joseph S Myers). 2549 + suppress a warning message (which is ignored) for systems without 2550 an ldconfig program (patch by Justin Hibbits). 2551 + modify configure script --disable-symlinks option to allow one to 2552 disable symlink() in tic even when link() does not work (report by 2553 Nigel Horne). 2554 + modify MKfallback.sh to use tic -x when constructing fallback tables 2555 to allow extended capabilities to be retrieved from a fallback entry. 2556 + improve leak-checking logic in tgetent() from 20060625 to ensure that 2557 it does not free the current screen (report by Miroslav Lichvar). 2558 2559 20060708 2560 + add a check for _POSIX_VDISABLE in tset (NetBSD #33916). 2561 + correct _nc_free_entries() and related functions used for memory leak 2562 checking of tic. 2563 2564 20060701 2565 + revert a minor change for magic-cookie support from 20060513, which 2566 caused unexpected reset of attributes, e.g., when resizing test/view 2567 in color mode. 2568 + note in clear manpage that the program ignores command-line 2569 parameters (prompted by Debian #371855). 2570 + fixes to make lib_gen.c build properly with changes to the configure 2571 --disable-macros option and NCURSES_NOMACROS (cf: 20060527) 2572 + update/correct several terminfo entries -TD 2573 + add some notes regarding copyright to terminfo.src -TD 2574 2575 20060625 2576 + fixes to build Ada95 binding with gnat-4.1.0 2577 + modify read_termtype() so the term_names data is always allocated as 2578 part of the str_table, a better fix for a memory leak (cf: 20030809). 2579 + reduce memory leaks in repeated calls to tgetent() by remembering the 2580 last TERMINAL* value allocated to hold the corresponding data and 2581 freeing that if the tgetent() result buffer is the same as the 2582 previous call (report by "Matt" for FreeBSD gnu/98975). 2583 + modify tack to test extended capability function-key strings. 2584 + improved gnome terminfo entry (GenToo #122566). 2585 + improved xterm-256color terminfo entry (patch by Alain Bench). 2586 2587 20060617 2588 + fix two small memory leaks related to repeated tgetent() calls 2589 with TERM=screen (report by "Matt" for FreeBSD gnu/98975). 2590 + add --enable-signed-char to simplify Debian package. 2591 + reduce name-pollution in term.h by removing #define's for HAVE_xxx 2592 symbols. 2593 + correct typo in curs_terminfo.3x (Debian #369168). 2594 2595 20060603 2596 + enable the mouse in test/movewindow.c 2597 + improve a limit-check in frm_def.c (John Heasley). 2598 + minor copyright fixes. 2599 + change configure script to produce test/Makefile from data file. 2600 2601 20060527 2602 + add a configure option --enable-wgetch-events to enable 2603 NCURSES_WGETCH_EVENTS, and correct the associated loop-logic in 2604 lib_twait.c (report by Bernd Jendrissek). 2605 + remove include/nomacros.h from build, since the ifdef for 2606 NCURSES_NOMACROS makes that obsolete. 2607 + add entrypoints for some functions which were only provided as macros 2608 to make NCURSES_NOMACROS ifdef work properly: getcurx(), getcury(), 2609 getbegx(), getbegy(), getmaxx(), getmaxy(), getparx() and getpary(), 2610 wgetbkgrnd(). 2611 + provide ifdef for NCURSES_NOMACROS which suppresses most macro 2612 definitions from curses.h, i.e., where a macro is defined to override 2613 a function to improve performance. Allowing a developer to suppress 2614 these definitions can simplify some application (discussion with 2615 Stanislav Ievlev). 2616 + improve description of memu/meml in terminfo manpage. 2617 2618 20060520 2619 + if msgr is false, reset video attributes when doing an automargin 2620 wrap to the next line. This makes the ncurses 'k' test work properly 2621 for hpterm. 2622 + correct caching of keyname(), which was using only half of its table. 2623 + minor fixes to memory-leak checking. 2624 + make SCREEN._acs_map and SCREEN._screen_acs_map pointers rather than 2625 arrays, making ACS_LEN less visible to applications (suggested by 2626 Stanislav Ievlev). 2627 + move chunk in SCREEN ifdef'd for USE_WIDEC_SUPPORT to the end, so 2628 _screen_acs_map will have the same offset in both ncurses/ncursesw, 2629 making the corresponding tinfo/tinfow libraries binary-compatible 2630 (cf: 20041016, report by Stanislav Ievlev). 2631 2632 20060513 2633 + improve debug-tracing for EmitRange(). 2634 + change default for --with-develop to "yes". Add NCURSES_NO_HARD_TABS 2635 and NCURSES_NO_MAGIC_COOKIE environment variables to allow runtime 2636 suppression of the related hard-tabs and xmc-glitch features. 2637 + add ncurses version number to top-level manpages, e.g., ncurses, tic, 2638 infocmp, terminfo as well as form, menu, panel. 2639 + update config.guess, config.sub 2640 + modify ncurses.c to work around a bug in NetBSD 3.0 curses 2641 (field_buffer returning null for a valid field). The 'r' test 2642 appears to not work with that configuration since the new_fieldtype() 2643 function is broken in that implementation. 2644 2645 20060506 2646 + add hpterm-color terminfo entry -TD 2647 + fixes to compile test-programs with HPUX 11.23 2648 2649 20060422 2650 + add copyright notices to files other than those that are generated, 2651 data or adapted from pdcurses (reports by William McBrine, David 2652 Taylor). 2653 + improve rendering on hpterm by not resetting attributes at the end 2654 of doupdate() if the terminal has the magic-cookie feature (report 2655 by Bernd Rieke). 2656 + add 256color variants of terminfo entries for programs which are 2657 reported to implement this feature -TD 2658 2659 20060416 2660 + fix typo in change to NewChar() macro from 20060311 changes, which 2661 broke tab-expansion (report by Frederic L W Meunier). 2662 2663 20060415 2664 + document -U option of tic and infocmp. 2665 + modify tic/infocmp to suppress smacs/rmacs when acsc is suppressed 2666 due to size limit, e.g., converting to termcap format. Also 2667 suppress them if the output format does not contain acsc and it 2668 was not VT100-like, i.e., a one-one mapping (Novell #163715). 2669 + add configure check to ensure that SIGWINCH is defined on platforms 2670 such as OS X which exclude that when _XOPEN_SOURCE, etc., are 2671 defined (report by Nicholas Cole) 2672 2673 20060408 2674 + modify write_object() to not write coincidental extensions of an 2675 entry made due to it being referenced in a use= clause (report by 2676 Alain Bench). 2677 + another fix for infocmp -i option, which did not ensure that some 2678 escape sequences had comparable prefixes (report by Alain Bench). 2679 2680 20060401 2681 + improve discussion of init/reset in terminfo and tput manpages 2682 (report by Alain Bench). 2683 + use is3 string for a fallback of rs3 in the reset program; it was 2684 using is2 (report by Alain Bench). 2685 + correct logic for infocmp -i option, which did not account for 2686 multiple digits in a parameter (cf: 20040828) (report by Alain 2687 Bench). 2688 + move _nc_handle_sigwinch() to lib_setup.c to make --with-termlib 2689 option work after 20060114 changes (report by Arkadiusz Miskiewicz). 2690 + add copyright notices to test-programs as needed (report by William 2691 McBrine). 2692 2693 20060318 2694 + modify ncurses.c 'F' test to combine the wide-characters with color 2695 and/or video attributes. 2696 + modify test/ncurses to use CTL/Q or ESC consistently for exiting 2697 a test-screen (some commands used 'x' or 'q'). 2698 2699 20060312 2700 + fix an off-by-one in the scrolling-region change (cf_ 20060311). 2701 2702 20060311 2703 + add checks in waddchnstr() and wadd_wchnstr() to stop copying when 2704 a null character is found (report by Igor Bogomazov). 2705 + modify progs/Makefile.in to make "tput init" work properly with 2706 cygwin, i.e., do not pass a ".exe" in the reference string used 2707 in check_aliases (report by Samuel Thibault). 2708 + add some checks to ensure current position is within scrolling 2709 region before scrolling on a new line (report by Dan Gookin). 2710 + change some NewChar() usage to static variables to work around 2711 stack garbage introduced when cchar_t is not packed (Redhat #182024). 2712 2713 20060225 2714 + workarounds to build test/movewindow with PDcurses 2.7. 2715 + fix for nsterm-16color entry (patch by Alain Bench). 2716 + correct a typo in infocmp manpage (Debian #354281). 2717 2718 20060218 2719 + add nsterm-16color entry -TD 2720 + updated mlterm terminfo entry -TD 2721 + remove 970913 feature for copying subwindows as they are moved in 2722 mvwin() (discussion with Bryan Christ). 2723 + modify test/demo_menus.c to demonstrate moving a menu (both the 2724 window and subwindow) using shifted cursor-keys. 2725 + start implementing recursive mvwin() in movewindow.c (incomplete). 2726 + add a fallback definition for GCC_PRINTFLIKE() in test.priv.h, 2727 for movewindow.c (report by William McBrine). 2728 + add help-message to test/movewindow.c 2729 2730 20060211 2731 + add test/movewindow.c, to test mvderwin(). 2732 + fix ncurses soft-key test so color changes are shown immediately 2733 rather than delayed. 2734 + modify ncurses soft-key test to hide the keys when exiting the test 2735 screen. 2736 + fixes to build test programs with PDCurses 2.7, e.g., its headers 2737 rely on autoconf symbols, and it declares stubs for nonfunctional 2738 terminfo and termcap entrypoints. 2739 2740 20060204 2741 + improved test/configure to build test/ncurses on HPUX 11 using the 2742 vendor curses. 2743 + documented ALTERNATE CONFIGURATIONS in the ncurses manpage, for the 2744 benefit of developers who do not read INSTALL. 2745 2746 20060128 2747 + correct form library Window_To_Buffer() change (cf: 20040516), which 2748 should ignore the video attributes (report by Ricardo Cantu). 2749 2750 20060121 2751 + minor fixes to xmc-glitch experimental code: 2752 + suppress line-drawing 2753 + implement max_attributes 2754 tested with xterm. 2755 + minor fixes for the database iterator. 2756 + fix some buffer limits in c++ demo (comment by Falk Hueffner in 2757 Debian #348117). 2758 2759 20060114 2760 + add toe -a option, to show all databases. This uses new private 2761 interfaces in the ncurses library for iterating through the list of 2762 databases. 2763 + fix toe from 20000909 changes which made it not look at 2764 $HOME/.terminfo 2765 + make toe's -v option parameter optional as per manpage. 2766 + improve SIGWINCH handling by postponing its effect during newterm(), 2767 etc., when allocating screens. 2768 2769 20060111 2770 + modify wgetnstr() to return KEY_RESIZE if a sigwinch occurs. Use 2771 this in test/filter.c 2772 + fix an error in filter() modification which caused some applications 2773 to fail. 2774 2775 20060107 2776 + check if filter() was called when getting the screensize. Keep it 2777 at 1 if so (based on Redhat #174498). 2778 + add extension nofilter(). 2779 + refined the workaround for ACS mapping. 2780 + make ifdef's consistent in curses.h for the extended colors so the 2781 header file can be used for the normal curses library. The header 2782 file installed for extended colors is a variation of the 2783 wide-character configuration (report by Frederic L W Meunier). 2784 2785 20051231 2786 + add a workaround to ACS mapping to allow applications such as 2787 test/blue.c to use the "PC ROM" characters by masking them with 2788 A_ALTCHARSET. This worked up til 5.5, but was lost in the revision 2789 of legacy coding (report by Michael Deutschmann). 2790 + add a null-pointer check in the wide-character version of 2791 calculate_actual_width() (report by Victor Julien). 2792 + improve test/ncurses 'd' (color-edit) test by allowing the RGB 2793 values to be set independently (patch by William McBrine). 2794 + modify test/configure script to allow building test programs with 2795 PDCurses/X11. 2796 + modified test programs to allow some to work with NetBSD curses. 2797 Several do not because NetBSD curses implements a subset of X/Open 2798 curses, and also lacks much of SVr4 additions. But it's enough for 2799 comparison. 2800 + update config.guess and config.sub 2801 2802 20051224 2803 + use BSD-specific fix for return-value from cgetent() from CVS where 2804 an unknown terminal type would be reportd as "database not found". 2805 + make tgetent() return code more readable using new symbols 2806 TGETENT_YES, etc. 2807 + remove references to non-existent "tctest" program. 2808 + remove TESTPROGS from progs/Makefile.in (it was referring to code 2809 that was never built in that directory). 2810 + typos in curs_addchstr.3x, some doc files (noticed in OpenBSD CVS). 2811 2812 20051217 2813 + add use_legacy_coding() function to support lynx's font-switching 2814 feature. 2815 + fix formatting in curs_termcap.3x (report by Mike Frysinger). 2816 + modify MKlib_gen.sh to change preprocessor-expanded _Bool back to 2817 bool. 2818 2819 20051210 2820 + extend test/ncurses.c 's' (overlay window) test to exercise overlay(), 2821 overwrite() and copywin() with different combinations of colors and 2822 attributes (including background color) to make it easy to see the 2823 effect of the different functions. 2824 + corrections to menu/m_global.c for wide-characters (report by 2825 Victor Julien). 2826 2827 20051203 2828 + add configure option --without-dlsym, allowing developers to 2829 configure GPM support without using dlsym() (discussion with Michael 2830 Setzer). 2831 + fix wins_nwstr(), which did not handle single-column non-8bit codes 2832 (Debian #341661). 2833 2834 20051126 2835 + move prototypes for wide-character trace functions from curses.tail 2836 to curses.wide to avoid accidental reference to those if 2837 _XOPEN_SOURCE_EXTENDED is defined without ensuring that <wchar.h> is 2838 included. 2839 + add/use NCURSES_INLINE definition. 2840 + change some internal functions to use int/unsigned rather than the 2841 short equivalents. 2842 2843 20051119 2844 + remove a redundant check in lib_color.c (Debian #335655). 2845 + use ld's -search_paths_first option on Darwin to work around odd 2846 search rules on that platform (report by Christian Gennerat, analysis 2847 by Andrea Govoni). 2848 + remove special case for Darwin in CF_XOPEN_SOURCE configure macro. 2849 + ignore EINTR in tcgetattr/tcsetattr calls (Debian #339518). 2850 + fix several bugs in test/bs.c (patch by Stephen Lindholm). 2851 2852 20051112 2853 + other minor fixes to cygwin based on tack -TD 2854 + correct smacs in cygwin (Debian #338234, report by Baurzhan 2855 Ismagulov, who noted that it was fixed in Cygwin). 2856 2857 20051029 2858 + add shifted up/down arrow codes to xterm-new as kind/kri strings -TD 2859 + modify wbkgrnd() to avoid clearing the A_CHARTEXT attribute bits 2860 since those record the state of multicolumn characters (Debian 2861 #316663). 2862 + modify werase to clear multicolumn characters that extend into 2863 a derived window (Debian #316663). 2864 2865 20051022 2866 + move assignment from environment variable ESCDELAY from initscr() 2867 down to newterm() so the environment variable affects timeouts for 2868 terminals opened with newterm() as well. 2869 + fix a memory leak in keyname(). 2870 + add test/demo_altkeys.c 2871 + modify test/demo_defkey.c to exit from loop via 'q' to allow 2872 leak-checking, as well as fix a buffer size in winnstr() call. 2873 2874 20051015 2875 + correct order of use-clauses in rxvt-basic entry which made codes for 2876 f1-f4 vt100-style rather than vt220-style (report by Gabor Z Papp). 2877 + suppress configure check for gnatmake if Ada95/Makefile.in is not 2878 found. 2879 + correct a typo in configure --with-bool option for the case where 2880 --without-cxx is used (report by Daniel Jacobowitz). 2881 + add a note to INSTALL's discussion of --with-normal, pointing out 2882 that one may wish to use --without-gpm to ensure a completely 2883 static link (prompted by report by Felix von Leitner). 2884 2885 20051010 5.5 release for upload to 2886 2887 20051008 2888 + document in demo_forms.c some portability issues. 2889 2890 20051001 2891 + document side-effect of werase() which sets the cursor position. 2892 + save/restore the current position in form field editing to make 2893 overlay mode work. 2894 2895 20050924 2896 + correct header dependencies in progs, allowing parallel make (report 2897 by Daniel Jacobowitz). 2898 + modify CF_BUILD_CC to ensure that pre-setting $BUILD_CC overrides 2899 the configure check for --with-build-cc (report by Daniel Jacobowitz). 2900 + modify CF_CFG_DEFAULTS to not use /usr as the default prefix for 2901 NetBSD. 2902 + update config.guess and config.sub from 2903 2904 2905 20050917 2906 + modify sed expression which computes path for /usr/lib/terminfo 2907 symbolic link in install to ensure that it does not change unexpected 2908 levels of the path (Gentoo #42336). 2909 + modify default for --disable-lp64 configure option to reduce impact 2910 on existing 64-bit builds. Enabling the _LP64 option may change the 2911 size of chtype and mmask_t. However, for ABI 6, it is enabled by 2912 default (report by Mike Frysinger). 2913 + add configure script check for --enable-ext-mouse, bump ABI to 6 by 2914 default if it is used. 2915 + improve configure script logic for bumping ABI to omit this if the 2916 --with-abi-version option was used. 2917 + update address for Free Software Foundation in tack's source. 2918 + correct wins_wch(), which was not marking the filler-cells of 2919 multi-column characters (cf: 20041023). 2920 2921 20050910 2922 + modify mouse initialization to ensure that Gpm_Open() is called only 2923 once. Otherwise GPM gets confused in its initialization of signal 2924 handlers (Debian #326709). 2925 2926 20050903 2927 + modify logic for backspacing in a multiline form field to ensure that 2928 it works even when the preceding line is full (report by Frank van 2929 Vugt). 2930 + remove comment about BUGS section of ncurses manpage (Debian #325481) 2931 2932 20050827 2933 + document some workarounds for shared and libtool library 2934 configurations in INSTALL (see --with-shared and --with-libtool). 2935 + modify CF_GCC_VERSION and CF_GXX_VERSION macros to accommodate 2936 cross-compilers which emit the platform name in their version 2937 message, e.g., 2938 arm-sa1100-linux-gnu-g++ (GCC) 4.0.1 2939 (report by Frank van Vugt). 2940 2941 20050820 2942 + start updating documentation for upcoming 5.5 release. 2943 + fix to make libtool and libtinfo work together again (cf: 20050122). 2944 + fixes to allow building traces into libtinfo 2945 + add debug trace to tic that shows if/how ncurses will write to the 2946 lower corner of a terminal's screen. 2947 + update llib-l* files. 2948 2949 20050813 2950 + modify initializers in c++ binding to build with old versions of g++. 2951 + improve special case for 20050115 repainting fix, ensuring that if 2952 the first changed cell is not a character that the range to be 2953 repainted is adjusted to start at a character's beginning (Debian 2954 #316663). 2955 2956 20050806 2957 + fixes to build on QNX 6.1 2958 + improve configure script checks for Intel 9.0 compiler. 2959 + remove #include's for libc.h (obsolete). 2960 + adjust ifdef's in curses.priv.h so that when cross-compiling to 2961 produce comp_hash and make_keys, no dependency on wchar.h is needed. 2962 That simplifies the build-cppflags (report by Frank van Vugt). 2963 + move modules related to key-binding into libtinfo to fix linkage 2964 problem caused by 20050430 changes to MKkeyname.sh (report by 2965 Konstantin Andreev). 2966 2967 20050723 2968 + updates/fixes for configure script macros from vile -TD 2969 + make prism9's sgr string agree with the rest of the terminfo -TD 2970 + make vt220's sgr0 string consistent with sgr string, do this for 2971 several related cases -TD 2972 + improve translation to termcap by filtering the 'me' (sgr0) strings 2973 as in the runtime call to tgetent() (prompted by a discussion with 2974 Thomas Klausner). 2975 + improve tic check for sgr0 versus sgr(0), to help ensure that sgr0 2976 resets line-drawing. 2977 2978 20050716 2979 + fix special cases for trimming sgr0 for hurd and vt220 (Debian 2980 #318621). 2981 + split-out _nc_trim_sgr0() from modifications made to tgetent(), to 2982 allow it to be used by tic to provide information about the runtime 2983 changes that would be made to sgr0 for termcap applications. 2984 + modify make_sed.sh to make the group-name in the NAME section of 2985 form/menu library manpage agree with the TITLE string when renaming 2986 is done for Debian (Debian #78866). 2987 2988 20050702 2989 + modify parameter type in c++ binding for insch() and mvwinsch() to 2990 be consistent with underlying ncurses library (was char, is chtype). 2991 + modify treatment of Intel compiler to allow _GNU_SOURCE to be defined 2992 on Linux. 2993 + improve configure check for nanosleep(), checking that it works since 2994 some older systems such as AIX 4.3 have a nonworking version. 2995 2996 20050625 2997 + update config.guess and config.sub from 2998 2999 + modify misc/shlib to work in test-directory. 3000 + suppress $suffix in misc/run_tic.sh when cross-compiling. This 3001 allows cross-compiles to use the host's tic program to handle the 3002 "make install.data" step. 3003 + improve description of $LINES and $COLUMNS variables in manpages 3004 (prompted by report by Dave Ulrick). 3005 + improve description of cross-compiling in INSTALL 3006 + add NCURSES-Programming-HOWTO.html by Pradeep Padala 3007 (see). 3008 + modify configure script to obtain soname for GPM library (discussion 3009 with Daniel Jacobowitz). 3010 + modify configure script so that --with-chtype option will still 3011 compute the unsigned literals suffix for constants in curses.h 3012 (report by Daniel Jacobowitz: 3013 + patches from Daniel Jacobowitz: 3014 + the man_db.renames entry for tack.1 was backwards. 3015 + tack.1 had some 1m's that should have been 1M's. 3016 + the section for curs_inwstr.3 was wrong. 3017 3018 20050619 3019 + correction to --with-chtype option (report by Daniel Jacobowitz). 3020 3021 20050618 3022 + move build-time edit_man.sh and edit_man.sed scripts to top directory 3023 to simplify reusing them for renaming tack's manpage (prompted by a 3024 review of Debian package). 3025 + revert minor optimization from 20041030 (Debian #313609). 3026 + libtool-specific fixes, tested with libtool 1.4.3, 1.5.0, 1.5.6, 3027 1.5.10 and 1.5.18 (all work except as noted previously for the c++ 3028 install using libtool 1.5.0): 3029 + modify the clean-rule in c++/Makefile.in to work with IRIX64 make 3030 program. 3031 + use $(LIBTOOL_UNINSTALL) symbol, overlooked in 20030830 3032 + add configure options --with-chtype and --with-mmask-t, to allow 3033 overriding of the non-LP64 model's use of the corresponding types. 3034 + revise test for size of chtype (and mmask_t), which always returned 3035 "long" due to an uninitialized variable (report by Daniel Jacobowitz). 3036 3037 20050611 3038 + change _tracef's that used "%p" format for va_list values to ignore 3039 that, since on some platforms those are not pointers. 3040 + fixes for long-formats in printf's due to largefile support. 3041 3042 20050604 3043 + fixes for termcap support: 3044 + reset pointer to _nc_curr_token.tk_name when the input stream is 3045 closed, which could point to free memory (cf: 20030215). 3046 + delink TERMTYPE data which is used by the termcap reader, so that 3047 extended names data will be freed consistently. 3048 + free pointer to TERMTYPE data in _nc_free_termtype() rather than 3049 its callers. 3050 + add some entrypoints for freeing permanently allocated data via 3051 _nc_freeall() when NO_LEAKS is defined. 3052 + amend 20041030 change to _nc_do_color to ensure that optimization is 3053 applied only when the terminal supports back_color_erase (bce). 3054 3055 20050528 3056 + add sun-color terminfo entry -TD 3057 + correct a missing assignment in c++ binding's method 3058 NCursesPanel::UserPointer() from 20050409 changes. 3059 + improve configure check for large-files, adding check for dirent64 3060 from vile -TD 3061 + minor change to configure script to improve linker options for the 3062 Ada95 tree. 3063 3064 20050515 3065 + document error conditions for ncurses library functions (report by 3066 Stanislav Ievlev). 3067 + regenerated html documentation for ada binding. 3068 see 3069 3070 20050507 3071 + regenerated html documentation for manpages. 3072 + add $(BUILD_EXEEXT) suffix to invocation of make_keys in 3073 ncurses/Makefile (Gentoo #89772). 3074 + modify c++/demo.cc to build with g++ -fno-implicit-templates option 3075 (patch by Mike Frysinger). 3076 + modify tic to filter out long extended names when translating to 3077 termcap format. Only two characters are permissible for termcap 3078 capability names. 3079 3080 20050430 3081 + modify terminfo entries xterm-new and rxvt to add strings for 3082 shift-, control-cursor keys. 3083 + workaround to allow c++ binding to compile with g++ 2.95.3, which 3084 has a broken implementation of static_cast<> (patch by Jeff Chua). 3085 + modify initialization of key lookup table so that if an extended 3086 capability (tic -x) string is defined, and its name begins with 'k', 3087 it will automatically be treated as a key. 3088 + modify test/keynames.c to allow for the possibility of extended 3089 key names, e.g., via define_key(), or via "tic -x". 3090 + add test/demo_termcap.c to show the contents of given entry via the 3091 termcap interface. 3092 3093 20050423 3094 + minor fixes for vt100/vt52 entries -TD 3095 + add configure option --enable-largefile 3096 + corrected libraries used to build Ada95/gen/gen, found in testing 3097 gcc 4.0.0. 3098 3099 20050416 3100 + update config.guess, config.sub 3101 + modify configure script check for _XOPEN_SOURCE, disable that on 3102 Darwin whose header files have problems (patch by Chris Zubrzycki). 3103 + modify form library Is_Printable_String() to use iswprint() rather 3104 than wcwidth() for determining if a character is printable. The 3105 latter caused it to reject menu items containing non-spacing 3106 characters. 3107 + modify ncurses test program's F-test to handle non-spacing characters 3108 by combining them with a reverse-video blank. 3109 + review/fix several gcc -Wconversion warnings. 3110 3111 20050409 3112 + correct an off-by-one error in m_driver() for mouse-clicks used to 3113 position the mouse to a particular item. 3114 + implement test/demo_menus.c 3115 + add some checks in lib_mouse to ensure SP is set. 3116 + modify C++ binding to make 20050403 changes work with the configure 3117 --enable-const option. 3118 3119 20050403 3120 + modify start_color() to return ERR if it cannot allocate memory. 3121 + address g++ compiler warnings in C++ binding by adding explicit 3122 member initialization, assignment operators and copy constructors. 3123 Most of the changes simply preserve the existing semantics of the 3124 binding, which can leak memory, etc., but by making these features 3125 visible, it provides a framework for improving the binding. 3126 + improve C++ binding using static_cast, etc. 3127 + modify configure script --enable-warnings to add options to g++ to 3128 correspond to the gcc --enable-warnings. 3129 + modify C++ binding to use some C internal functions to make it 3130 compile properly on Solaris (and other platforms). 3131 3132 20050327 3133 + amend change from 20050320 to limit it to configurations with a 3134 valid locale. 3135 + fix a bug introduced in 20050320 which broke the translation of 3136 nonprinting characters to uparrow form (report by Takahashi Tamotsu). 3137 3138 20050326 3139 + add ifdef's for _LP64 in curses.h to avoid using wasteful 64-bits for 3140 chtype and mmask_t, but add configure option --disable-lp64 in case 3141 anyone used that configuration. 3142 + update misc/shlib script to account for Mac OS X (report by Michail 3143 Vidiassov). 3144 + correct comparison for wrapping multibyte characters in 3145 waddch_literal() (report by Takahashi Tamotsu). 3146 3147 20050320 3148 + add -c and -w options to tset to allow user to suppress ncurses' 3149 resizing of the terminal emulator window in the special case where it 3150 is not able to detect the true size (report by Win Delvaux, Debian 3151 #300419). 3152 + modify waddch_nosync() to account for locale zn_CH.GBK, which uses 3153 codes 128-159 as part of multibyte characters (report by Wang 3154 WenRui, Debian #300512). 3155 3156 20050319 3157 + modify ncurses.c 'd' test to make it work with 88-color 3158 configuration, i.e., by implementing scrolling. 3159 + improve scrolling in ncurses.c 'c' and 'C' tests, e.g., for 88-color 3160 configuration. 3161 3162 20050312 3163 + change tracemunch to use strict checking. 3164 + modify ncurses.c 'p' test to test line-drawing within a pad. 3165 + implement environment variable NCURSES_NO_UTF8_ACS to support 3166 miscellaneous terminal emulators which ignore alternate character 3167 set escape sequences when in UTF-8 mode. 3168 3169 20050305 3170 + change NCursesWindow::err_handler() to a virtual function (request by 3171 Steve Beal). 3172 + modify fty_int.c and fty_num.c to handle wide characters (report by 3173 Wolfgang Gutjahr). 3174 + adapt fix for fty_alpha.c to fty_alnum.c, which also handled normal 3175 and wide characters inconsistently (report by Wolfgang Gutjahr). 3176 + update llib-* files to reflect internal interface additions/changes. 3177 3178 20050226 3179 + improve test/configure script, adding tests for _XOPEN_SOURCE, etc., 3180 from lynx. 3181 + add aixterm-16color terminfo entry -TD 3182 + modified xterm-new terminfo entry to work with tgetent() changes -TD 3183 + extended changes in tgetent() from 20040710 to allow the substring of 3184 sgr0 which matches rmacs to be at the beginning of the sgr0 string 3185 (request by Thomas Wolff). Wolff says the visual effect in 3186 combination with pre-20040710 ncurses is improved. 3187 + fix off-by-one in winnstr() call which caused form field validation 3188 of multibyte characters to ignore the last character in a field. 3189 + correct logic in winsch() for inserting multibyte strings; the code 3190 would clear cells after the insertion rather than push them to the 3191 right (cf: 20040228). 3192 + fix an inconsistency in Check_Alpha_Field() between normal and wide 3193 character logic (report by Wolfgang Gutjahr). 3194 3195 20050219 3196 + fix a bug in editing wide-characters in form library: deleting a 3197 nonwide character modified the previous wide-character. 3198 + update manpage to describe NCURSES_MOUSE_VERSION 2. 3199 + correct manpage description of mouseinterval() (Debian #280687). 3200 + add a note to default_colors.3x explaining why this extension was 3201 added (Debian #295083). 3202 + add traces to panel library. 3203 3204 20050212 3205 + improve editing of wide-characters in form library: left/right 3206 cursor movement, and single-character deletions work properly. 3207 + disable GPM mouse support when $TERM happens to be prefixed with 3208 "xterm". Gpm_Open() would otherwise assert that it can deal with 3209 mouse events in this case. 3210 + modify GPM mouse support so it closes the server connection when 3211 the caller disables the mouse (report by Stanislav Ievlev). 3212 3213 20050205 3214 + add traces for callback functions in form library. 3215 + add experimental configure option --enable-ext-mouse, which defines 3216 NCURSES_MOUSE_VERSION 2, and modifies the encoding of mouse events to 3217 support wheel mice, which may transmit buttons 4 and 5. This works 3218 with xterm and similar X terminal emulators (prompted by question by 3219 Andreas Henningsson, this is also related to Debian #230990). 3220 + improve configure macros CF_XOPEN_SOURCE and CF_POSIX_C_SOURCE to 3221 avoid redefinition warnings on cygwin. 3222 3223 20050129 3224 + merge remaining development changes for extended colors (mostly 3225 complete, does not appear to break other configurations). 3226 + add xterm-88color.dat (part of extended colors testing). 3227 + improve _tracedump() handling of color pairs past 96. 3228 + modify return-value from start_color() to return OK if colors have 3229 already been started. 3230 + modify curs_color.3x list error conditions for init_pair(), 3231 pair_content() and color_content(). 3232 + modify pair_content() to return -1 for consistency with init_pair() 3233 if it corresponds to the default-color. 3234 + change internal representation of default-color to allow application 3235 to use color number 255. This does not affect the total number of 3236 color pairs which are allowed. 3237 + add a top-level tags rule. 3238 3239 20050122 3240 + add a null-pointer check in wgetch() in case it is called without 3241 first calling initscr(). 3242 + add some null-pointer checks for SP, which is not set by libtinfo. 3243 + modify misc/shlib to ensure that absolute pathnames are used. 3244 + modify test/Makefile.in, etc., to link test programs only against the 3245 libraries needed, e.g., omit form/menu/panel library for the ones 3246 that are curses-specific. 3247 + change SP->_current_attr to a pointer, adjust ifdef's to ensure that 3248 libtinfo.so and libtinfow.so have the same ABI. The reason for this 3249 is that the corresponding data which belongs to the upper-level 3250 ncurses library has a different size in each model (report by 3251 Stanislav Ievlev). 3252 3253 20050115 3254 + minor fixes to allow test-compiles with g++. 3255 + correct column value shown in tic's warnings, which did not account 3256 for leading whitespace. 3257 + add a check in _nc_trans_string() for improperly ended strings, i.e., 3258 where a following line begins in column 1. 3259 + modify _nc_save_str() to return a null pointer on buffer overflow. 3260 + improve repainting while scrolling wide-character data (Eungkyu Song). 3261 3262 20050108 3263 + merge some development changes to extend color capabilities. 3264 3265 20050101 3266 + merge some development changes to extend color capabilities. 3267 + fix manpage typo (FreeBSD report docs/75544). 3268 + update config.guess, config.sub 3269 > patches for configure script (Albert Chin-A-Young): 3270 + improved fix to make mbstate_t recognized on HPUX 11i (cf: 3271 20030705), making vsscanf() prototype visible on IRIX64. Tested for 3272 on HP-UX 11i, Solaris 7, 8, 9, AIX 4.3.3, 5.2, Tru64 UNIX 4.0D, 5.1, 3273 IRIX64 6.5, Redhat Linux 7.1, 9, and RHEL 2.1, 3.0. 3274 + print the result of the --disable-home-terminfo option. 3275 + use -rpath when compiling with SGI C compiler. 3276 3277 20041225 3278 + add trace calls to remaining public functions in form and menu 3279 libraries. 3280 + fix check for numeric digits in test/ncurses.c 'b' and 'B' tests. 3281 + fix typo in test/ncurses.c 'c' test from 20041218. 3282 3283 20041218 3284 + revise test/ncurses.c 'c' color test to improve use for xterm-88color 3285 and xterm-256color, added 'C' test using the wide-character color_set 3286 and attr_set functions. 3287 3288 20041211 3289 + modify configure script to work with Intel compiler. 3290 + fix an limit-check in wadd_wchnstr() which caused labels in the 3291 forms-demo to be one character short. 3292 + fix typo in curs_addchstr.3x (Jared Yanovich). 3293 + add trace calls to most functions in form and menu libraries. 3294 + update working-position for adding wide-characters when window is 3295 scrolled (prompted by related report by Eungkyu Song). 3296 3297 20041204 3298 + replace some references on Linux to wcrtomb() which use it to obtain 3299 the length of a multibyte string with _nc_wcrtomb, since wcrtomb() is 3300 broken in glibc (see Debian #284260). 3301 + corrected length-computation in wide-character support for 3302 field_buffer(). 3303 + some fixes to frm_driver.c to allow it to accept multibyte input. 3304 + modify configure script to work with Intel 8.0 compiler. 3305 3306 20041127 3307 + amend change to setupterm() in 20030405 which would reuse the value 3308 of cur_term if the same output was selected. This now reuses it only 3309 when setupterm() is called from tgetent(), which has no notion of 3310 separate SCREENs. Note that tgetent() must be called after initscr() 3311 or newterm() to use this feature (Redhat Bugzilla #140326). 3312 + add a check in CF_BUILD_CC macro to ensure that developer has given 3313 the --with-build-cc option when cross-compiling (report by Alexandre 3314 Campo). 3315 + improved configure script checks for _XOPEN_SOURCE and 3316 _POSIX_C_SOURCE (fix for IRIX 5.3 from Georg Schwarz, _POSIX_C_SOURCE 3317 updates from lynx). 3318 + cosmetic fix to test/gdc.c to recolor the bottom edge of the box 3319 for consistency (comment by Dan Nelson). 3320 3321 20041120 3322 + update wsvt25 terminfo entry -TD 3323 + modify test/ins_wide.c to test all flavors of ins_wstr(). 3324 + ignore filler-cells in wadd_wchnstr() when adding a cchar_t array 3325 which consists of multi-column characters, since this function 3326 constructs them (cf: 20041023). 3327 + modify winnstr() to return multibyte character strings for the 3328 wide-character configuration. 3329 3330 20041106 3331 + fixes to make slk_set() and slk_wset() accept and store multibyte 3332 or multicolumn characters. 3333 3334 20041030 3335 + improve color optimization a little by making _nc_do_color() check 3336 if the old/new pairs are equivalent to the default pair 0. 3337 + modify assume_default_colors() to not require that 3338 use_default_colors() be called first. 3339 3340 20041023 3341 + modify term_attrs() to use termattrs(), add the extended attributes 3342 such as enter_horizontal_hl_mode for WA_HORIZONTAL to term_attrs(). 3343 + add logic in waddch_literal() to clear orphaned cells when one 3344 multi-column character partly overwrites another. 3345 + improved logic for clearing cells when a multi-column character 3346 must be wrapped to a new line. 3347 + revise storage of cells for multi-column characters to correct a 3348 problem with repainting. In the old scheme, it was possible for 3349 doupdate() to decide that only part of a multi-column character 3350 should be repainted since the filler cells stored only an attribute 3351 to denote them as fillers, rather than the character value and the 3352 attribute. 3353 3354 20041016 3355 + minor fixes for traces. 3356 + add SP->_screen_acs_map[], used to ensure that mapping of missing 3357 line-drawing characters is handled properly. For example, ACS_DARROW 3358 is absent from xterm-new, and it was coincidentally displayed the 3359 same as ACS_BTEE. 3360 3361 20041009 3362 + amend 20021221 workaround for broken acs to reset the sgr, rmacs 3363 and smacs strings as well. Also modify the check for screen's 3364 limitations in that area to allow the multi-character shift-in 3365 and shift-out which seem to work. 3366 + change GPM initialization, using dl library to load it dynamically 3367 at runtime (Debian #110586). 3368 3369 20041002 3370 + correct logic for color pair in setcchar() and getcchar() (patch by 3371 Marcin 'Qrczak' Kowalczyk). 3372 + add t/T commands to ncurses b/B tests to allow a different color to 3373 be tested for the attrset part of the test than is used in the 3374 background color. 3375 3376 20040925 3377 + fix to make setcchar() to work when its wchar_t* parameter is 3378 pointing to a string which contains more data than can be converted. 3379 + modify wget_wstr() and example in ncurses.c to work if wchar_t and 3380 wint_t are different sizes (report by Marcin 'Qrczak' Kowalczyk). 3381 3382 20040918 3383 + remove check in wget_wch() added to fix an infinite loop, appears to 3384 have been working around a transitory glibc bug, and interferes 3385 with normal operation (report by Marcin 'Qrczak' Kowalczyk). 3386 + correct wadd_wch() and wecho_wch(), which did not pass the rendition 3387 information (report by Marcin 'Qrczak' Kowalczyk). 3388 + fix aclocal.m4 so that the wide-character version of ncurses gets 3389 compiled as libncursesw.5.dylib, instead of libncurses.5w.dylib 3390 (adapted from patch by James J Ramsey). 3391 + change configure script for --with-caps option to indicate that it 3392 is no longer experimental. 3393 + change configure script to reflect the fact that --enable-widec has 3394 not been "experimental" since 5.3 (report by Bruno Lustosa). 3395 3396 20040911 3397 + add 'B' test to ncurses.c, to exercise some wide-character functions. 3398 3399 20040828 3400 + modify infocmp -i option to match 8-bit controls against its table 3401 entries, e.g., so it can analyze the xterm-8bit entry. 3402 + add morphos terminfo entry, improve amiga-8bit entry (Pavel Fedin). 3403 + correct translation of "%%" in terminfo format to termcap, e.g., 3404 using "tic -C" (Redhat Bugzilla #130921). 3405 + modified configure script CF_XOPEN_SOURCE macro to ensure that if 3406 it defines _POSIX_C_SOURCE, that it defines it to a specific value 3407 (comp.os.stratus newsgroup comment). 3408 3409 20040821 3410 + fixes to build with Ada95 binding with gnat 3.4 (all warnings are 3411 fatal, and gnat does not follow the guidelines for pragmas). 3412 However that did find a coding error in Assume_Default_Colors(). 3413 + modify several terminfo entries to ensure xterm mouse and cursor 3414 visibility are reset in rs2 string: hurd, putty, gnome, 3415 konsole-base, mlterm, Eterm, screen (Debian #265784, #55637). The 3416 xterm entries are left alone - old ones for compatibility, and the 3417 new ones do not require this change. -TD 3418 3419 20040814 3420 + fake a SIGWINCH in newterm() to accommodate buggy terminal emulators 3421 and window managers (Debian #265631). 3422 > terminfo updates -TD 3423 + remove dch/dch1 from rxvt because they are implemented inconsistently 3424 with the common usage of bce/ech 3425 + remove khome from vt220 (vt220's have no home key) 3426 + add rxvt+pcfkeys 3427 3428 20040807 3429 + modify test/ncurses.c 'b' test, adding v/V toggles to cycle through 3430 combinations of video attributes so that for instance bold and 3431 underline can be tested. This made the legend too crowded, added 3432 a help window as well. 3433 + modify test/ncurses.c 'b' test to cycle through default colors if 3434 the -d option is set. 3435 + update putty terminfo entry (Robert de Bath). 3436 3437 20040731 3438 + modify test/cardfile.c to allow it to read more data than can be 3439 displayed. 3440 + correct logic in resizeterm.c which kept it from processing all 3441 levels of window hierarchy (reports by Folkert van Heusden, 3442 Chris Share). 3443 3444 20040724 3445 + modify "tic -cv" to ignore delays when comparing strings. Also 3446 modify it to ignore a canceled sgr string, e.g., for terminals which 3447 cannot properly combine attributes in one control sequence. 3448 + corrections for gnome and konsole entries (Redhat Bugzilla #122815, 3449 patch by Hans de Goede) 3450 > terminfo updates -TD 3451 + make ncsa-m rmacs/smacs consistent with sgr 3452 + add sgr, rc/sc and ech to syscons entries 3453 + add function-keys to decansi 3454 + add sgr to mterm-ansi 3455 + add sgr, civis, cnorm to emu 3456 + correct/simplify cup in addrinfo 3457 3458 20040717 3459 > terminfo updates -TD 3460 + add xterm-pc-fkeys 3461 + review/update gnome and gnome-rh90 entries (prompted by Redhat 3462 Bugzilla #122815). 3463 + review/update konsole entries 3464 + add sgr, correct sgr0 for kterm and mlterm 3465 + correct tsl string in kterm 3466 3467 20040711 3468 + add configure option --without-xterm-new 3469 3470 20040710 3471 + add check in wget_wch() for printable bytes that are not part of a 3472 multibyte character. 3473 + modify wadd_wchnstr() to render text using window's background 3474 attributes. 3475 + improve tic's check to compare sgr and sgr0. 3476 + fix c++ directory's .cc.i rule. 3477 + modify logic in tgetent() which adjusts the termcap "me" string 3478 to work with ISO-2022 string used in xterm-new (cf: 20010908). 3479 + modify tic's check for conflicting function keys to omit that if 3480 converting termcap to termcap format. 3481 + add -U option to tic and infocmp. 3482 + add rmam/smam to linux terminfo entry (Trevor Van Bremen) 3483 > terminfo updates -TD 3484 + minor fixes for emu 3485 + add emu-220 3486 + change wyse acsc strings to use 'i' map rather than 'I' 3487 + fixes for avatar0 3488 + fixes for vp3a+ 3489 3490 20040703 3491 + use tic -x to install terminfo database -TD 3492 + add -x to infocmp's usage message. 3493 + correct field used for comparing O_ROWMAJOR in set_menu_format() 3494 (report/patch by Tony Li). 3495 + fix a missing nul check in set_field_buffer() from 20040508 changes. 3496 > terminfo updates -TD 3497 + make xterm-xf86-v43 derived from xterm-xf86-v40 rather than 3498 xterm-basic -TD 3499 + align with xterm patch #192's use of xterm-new -TD 3500 + update xterm-new and xterm-8bit for cvvis/cnorm strings -TD 3501 + make xterm-new the default "xterm" entry -TD 3502 3503 20040626 3504 + correct BUILD_CPPFLAGS substitution in ncurses/Makefile.in, to allow 3505 cross-compiling from a separate directory tree (report/patch by 3506 Dan Engel). 3507 + modify is_term_resized() to ensure that window sizes are nonzero, 3508 as documented in the manpage (report by Ian Collier). 3509 + modify CF_XOPEN_SOURCE configure macro to make Hurd port build 3510 (Debian #249214, report/patch by Jeff Bailey). 3511 + configure-script mods from xterm, e.g., updates to CF_ADD_CFLAGS 3512 + update config.guess, config.sub 3513 > terminfo updates -TD 3514 + add mlterm 3515 + add xterm-xf86-v44 3516 + modify xterm-new aka xterm-xfree86 to accommodate luit, which 3517 relies on G1 being used via an ISO-2022 escape sequence (report by 3518 Juliusz Chroboczek) 3519 + add 'hurd' entry 3520 3521 20040619 3522 + reconsidered winsnstr(), decided after comparing other 3523 implementations that wrapping is an X/Open documentation error. 3524 + modify test/inserts.c to test all flavors of insstr(). 3525 3526 20040605 3527 + add setlocale() calls to a few test programs which may require it: 3528 demo_forms.c, filter.c, ins_wide.c, inserts.c 3529 + correct a few misspelled function names in ncurses-intro.html (report 3530 by Tony Li). 3531 + correct internal name of key_defined() manpage, which conflicted with 3532 define_key(). 3533 3534 20040529 3535 + correct size of internal pad used for holding wide-character 3536 field_buffer() results. 3537 + modify data_ahead() to work with wide-characters. 3538 3539 20040522 3540 + improve description of terminfo if-then-else expressions (suggested 3541 by Arne Thomassen). 3542 + improve test/ncurses.c 'd' test, allow it to use external file for 3543 initial palette (added xterm-16color.dat and linux-color.dat), and 3544 reset colors to the initial palette when starting/ending the test. 3545 + change limit-check in init_color() to allow r/g/b component to 3546 reach 1000 (cf: 20020928). 3547 3548 20040516 3549 + modify form library to use cchar_t's rather than char's in the 3550 wide-character configuration for storing data for field buffers. 3551 + correct logic of win_wchnstr(), which did not work for more than 3552 one cell. 3553 3554 20040508 3555 + replace memset/memcpy usage in form library with for-loops to 3556 simplify changing the datatype of FIELD.buf, part of wide-character 3557 changes. 3558 + fix some inconsistent use of #if/#ifdef (report by Alain Guibert). 3559 3560 20040501 3561 + modify menu library to account for actual number of columns used by 3562 multibyte character strings, in the wide-character configuration 3563 (adapted from patch by Philipp Tomsich). 3564 + add "-x" option to infocmp like tic's "-x", for use in "-F" 3565 comparisons. This modifies infocmp to only report extended 3566 capabilities if the -x option is given, making this more consistent 3567 with tic. Some scripts may break, since infocmp previous gave this 3568 information without an option. 3569 + modify termcap-parsing to retain 2-character aliases at the beginning 3570 of an entry if the "-x" option is used in tic. 3571 3572 20040424 3573 + minor compiler-warning and test-program fixes. 3574 3575 20040417 3576 + modify tic's missing-sgr warning to apply to terminfo only. 3577 + free some memory leaks in tic. 3578 + remove check in post_menu() that prevented menus from extending 3579 beyond the screen (request by Max J. Werner). 3580 + remove check in newwin() that prevents allocating windows 3581 that extend beyond the screen. Solaris curses does this. 3582 + add ifdef in test/color_set.c to allow it to compile with older 3583 curses. 3584 + add napms() calls to test/dots.c to make it not be a CPU hog. 3585 3586 20040403 3587 + modify unctrl() to return null if its parameter does not correspond 3588 to an unsigned char. 3589 + add some limit-checks to guard isprint(), etc., from being used on 3590 values that do not fit into an unsigned char (report by Sami Farin). 3591 3592 20040328 3593 + fix a typo in the _nc_get_locale() change. 3594 3595 20040327 3596 + modify _nc_get_locale() to use setlocale() to query the program's 3597 current locale rather than using getenv(). This fixes a case in tin 3598 which relies on legacy treatment of 8-bit characters when the locale 3599 is not initialized (reported by Urs Jansen). 3600 + add sgr string to screen's and rxvt's terminfo entries -TD. 3601 + add a check in tic for terminfo entries having an sgr0 but no sgr 3602 string. This confuses Tru64 and HPUX curses when combined with 3603 color, e.g., making them leave line-drawing characters in odd places. 3604 + correct casts used in ABSENT_BOOLEAN, CANCELLED_BOOLEAN, matches the 3605 original definitions used in Debian package to fix PowerPC bug before 3606 20030802 (Debian #237629). 3607 3608 20040320 3609 + modify PutAttrChar() and PUTC() macro to improve use of 3610 A_ALTCHARSET attribute to prevent line-drawing characters from 3611 being lost in situations where the locale would otherwise treat the 3612 raw data as nonprintable (Debian #227879). 3613 3614 20040313 3615 + fix a redefinition of CTRL() macro in test/view.c for AIX 5.2 (report 3616 by Jim Idle). 3617 + remove ".PP" after ".SH NAME" in a few manpages; this confuses 3618 some apropos script (Debian #237831). 3619 3620 20040306 3621 + modify ncurses.c 'r' test so editing commands, like inserted text, 3622 set the field background, and the state of insert/overlay editing 3623 mode is shown in that test. 3624 + change syntax of dummy targets in Ada95 makefiles to work with pmake. 3625 + correct logic in test/ncurses.c 'b' for noncolor terminals which 3626 did not recognize a quit-command (cf: 20030419). 3627 3628 20040228 3629 + modify _nc_insert_ch() to allow for its input to be part of a 3630 multibyte string. 3631 + split out lib_insnstr.c, to prepare to rewrite it. X/Open states 3632 that this function performs wrapping, unlike all of the other 3633 insert-functions. Currently it does not wrap. 3634 + check for nl_langinfo(CODESET), use it if available (report by 3635 Stanislav Ievlev). 3636 + split-out CF_BUILD_CC macro, actually did this for lynx first. 3637 + fixes for configure script CF_WITH_DBMALLOC and CF_WITH_DMALLOC, 3638 which happened to work with bash, but not with Bourne shell (report 3639 by Marco d'Itri via tin-dev). 3640 3641 20040221 3642 + some changes to adapt the form library to wide characters, incomplete 3643 (request by Mike Aubury). 3644 + add symbol to curses.h which can be used to suppress include of 3645 stdbool.h, e.g., 3646 #define NCURSES_ENABLE_STDBOOL_H 0 3647 #include <curses.h> 3648 (discussion on XFree86 mailing list). 3649 3650 20040214 3651 + modify configure --with-termlib option to accept a value which sets 3652 the name of the terminfo library. This would allow a packager to 3653 build libtinfow.so renamed to coincide with libtinfo.so (discussion 3654 with Stanislav Ievlev). 3655 + improve documentation of --with-install-prefix, --prefix and 3656 $(DESTDIR) in INSTALL (prompted by discussion with Paul Lew). 3657 + add configure check if the compiler can use -c -o options to rename 3658 its output file, use that to omit the 'cd' command which was used to 3659 ensure object files are created in a separate staging directory 3660 (prompted by comments by Johnny Wezel, Martin Mokrejs). 3661 3662 20040208 5.4 release for upload to 3663 + update TO-DO. 3664 3665 20040207 pre-release 3666 + minor fixes to _nc_tparm_analyze(), i.e., do not count %i as a param, 3667 and do not count %d if it follows a %p. 3668 + correct an inconsistency between handling of codes in the 128-255 3669 range, e.g., as illustrated by test/ncurses.c f/F tests. In POSIX 3670 locale, the latter did not show printable results, while the former 3671 did. 3672 + modify MKlib_gen.sh to compensate for broken C preprocessor on Mac 3673 OS X, which alters "%%" to "% % " (report by Robert Simms, fix 3674 verified by Scott Corscadden). 3675 3676 20040131 pre-release 3677 + modify SCREEN struct to align it between normal/wide curses flavors 3678 to simplify future changes to build a single version of libtinfo 3679 (patch by Stanislav Ievlev). 3680 + document handling of carriage return by addch() in manpage. 3681 + document special features of unctrl() in manpage. 3682 + documented interface changes in INSTALL. 3683 + corrected control-char test in lib_addch.c to account for locale 3684 (Debian #230335, cf: 971206). 3685 + updated test/configure.in to use AC_EXEEXT and AC_OBJEXT. 3686 + fixes to compile Ada95 binding with Debian gnat 3.15p-4 package. 3687 + minor configure-script fixes for older ports, e.g., BeOS R4.5. 3688 3689 20040125 pre-release 3690 + amend change to PutAttrChar() from 20030614 which computed the number 3691 of cells for a possibly multi-cell character. The 20030614 change 3692 forced the cell to a blank if the result from wcwidth() was not 3693 greater than zero. However, wcwidth() called for parameters in the 3694 range 128-255 can give this return value. The logic now simply 3695 ensures that the number of cells is greater than zero without 3696 modifying the displayed value. 3697 3698 20040124 pre-release 3699 + looked good for 5.4 release for upload to (but see above) 3700 + modify configure script check for ranlib to use AC_CHECK_TOOL, since 3701 that works better for cross-compiling. 3702 3703 20040117 pre-release 3704 + modify lib_get_wch.c to prefer mblen/mbtowc over mbrlen/mbrtowc to 3705 work around core dump in Solaris 8's locale support, e.g., for 3706 zh_CN.GB18030 (report by Saravanan Bellan). 3707 + add includes for <stdarg.h> and <stdio.h> in configure script macro 3708 to make <wchar.h> check work with Tru64 4.0d. 3709 + add terminfo entry for U/Win -TD 3710 + add terminfo entries for SFU aka Interix aka OpenNT (Federico 3711 Bianchi). 3712 + modify tput's error messages to prefix them with the program name 3713 (report by Vincent Lefevre, patch by Daniel Jacobowitz (see Debian 3714 #227586)). 3715 + correct a place in tack where exit_standout_mode was used instead of 3716 exit_attribute_mode (patch by Jochen Voss (see Debian #224443)). 3717 + modify c++/cursesf.h to use const in the Enumeration_Field method. 3718 + remove an ambiguous (actually redundant) method from c++/cursesf.h 3719 + make $HOME/.terminfo update optional (suggested by Stanislav Ievlev). 3720 + improve sed script which extracts libtool's version in the 3721 CF_WITH_LIBTOOL macro. 3722 + add ifdef'd call to AC_PROG_LIBTOOL to CF_WITH_LIBTOOL macro (to 3723 simplify local patch for Albert Chin-A-Young).. 3724 + add $(CXXFLAGS) to link command in c++/Makefile.in (adapted from 3725 patch by Albert Chin-A-Young).. 3726 + fix a missing substitution in configure.in for "$target" needed for 3727 HPUX .so/.sl case. 3728 + resync CF_XOPEN_SOURCE configure macro with lynx; fixes IRIX64 and 3729 NetBSD 1.6 conflicts with _XOPEN_SOURCE. 3730 + make check for stdbool.h more specific, to ensure that including it 3731 will actually define/declare bool for the configured compiler. 3732 + rewrite ifdef's in curses.h relating NCURSES_BOOL and bool. The 3733 intention of that is to #define NCURSES_BOOL as bool when the 3734 compiler declares bool, and to #define bool as NCURSES_BOOL when it 3735 does not (reported by Jim Gifford, Sam Varshavchik, cf: 20031213). 3736 3737 20040110 pre-release 3738 + change minor version to 4, i.e., ncurses 5.4 3739 + revised/improved terminfo entries for tvi912b, tvi920b (Benjamin C W 3740 Sittler). 3741 + simplified ncurses/base/version.c by defining the result from the 3742 configure script rather than using sprintf (suggested by Stanislav 3743 Ievlev). 3744 + remove obsolete casts from c++/cursesw.h (reported by Stanislav 3745 Ievlev). 3746 + modify configure script so that when configuring for termlib, programs 3747 such as tic are not linked with the upper-level ncurses library 3748 (suggested by Stanislav Ievlev). 3749 + move version.c from ncurses/base to ncurses/tinfo to allow linking 3750 of tic, etc., using libtinfo (suggested by Stanislav Ievlev). 3751 3752 20040103 3753 + adjust -D's to build ncursesw on OpenBSD. 3754 + modify CF_PROG_EXT to make OS/2 build with EXEEXT. 3755 + add pecho_wchar(). 3756 + remove <wctype.h> include from lib_slk_wset.c which is not needed (or 3757 available) on older platforms. 3758 3759 20031227 3760 + add -D's to build ncursew on FreeBSD 5.1. 3761 + modify shared library configuration for FreeBSD 4.x/5.x to add the 3762 soname information (request by Marc Glisse). 3763 + modify _nc_read_tic_entry() to not use MAX_ALIAS, but PATH_MAX only 3764 for limiting the length of a filename in the terminfo database. 3765 + modify termname() to return the terminal name used by setupterm() 3766 rather than $TERM, without truncating to 14 characters as documented 3767 by X/Open (report by Stanislav Ievlev, cf: 970719). 3768 + re-add definition for _BSD_TYPES, lost in merge (cf: 20031206). 3769 3770 20031220 3771 + add configure option --with-manpage-format=catonly to address 3772 behavior of BSDI, allow install of man+cat files on NetBSD, whose 3773 behavior has diverged by requiring both to be present. 3774 + remove leading blanks from comment-lines in manlinks.sed script to 3775 work with Tru64 4.0d. 3776 + add screen.linux terminfo entry (discussion on mutt-users mailing 3777 list). 3778 3779 20031213 3780 + add a check for tic to flag missing backslashes for termcap 3781 continuation lines. ncurses reads the whole entry, but termcap 3782 applications do not. 3783 + add configure option "--with-manpage-aliases" extending 3784 "--with-manpage-aliases" to provide the option of generating ".so" 3785 files rather than symbolic links for manpage aliases. 3786 + add bool definition in include/curses.h.in for configurations with no 3787 usable C++ compiler (cf: 20030607). 3788 + fix pathname of SigAction.h for building with --srcdir (reported by 3789 Mike Castle). 3790 3791 20031206 3792 + folded ncurses/base/sigaction.c into includes of ncurses/SigAction.h, 3793 since that header is used only within ncurses/tty/lib_tstp.c, for 3794 non-POSIX systems (discussion with Stanislav Ievlev). 3795 + remove obsolete _nc_outstr() function (report by Stanislav Ievlev 3796 <inger@altlinux.org>). 3797 + add test/background.c and test/color_set.c 3798 + modify color_set() function to work with color pair 0 (report by 3799 George Andreou <gbandreo@tem.uoc.gr>). 3800 + add configure option --with-trace, since defining TRACE seems too 3801 awkward for some cases. 3802 + remove a call to _nc_free_termtype() from read_termtype(), since the 3803 corresponding buffer contents were already zeroed by a memset (cf: 3804 20000101). 3805 + improve configure check for _XOPEN_SOURCE and related definitions, 3806 adding special cases for Solaris' __EXTENSIONS__ and FreeBSD's 3807 __BSD_TYPES (reports by Marc Glisse <marc.glisse@normalesup.org>). 3808 + small fixes to compile on Solaris and IRIX64 using cc. 3809 + correct typo in check for pre-POSIX sort options in MKkey_defs.sh 3810 (cf: 20031101). 3811 3812 20031129 3813 + modify _nc_gettime() to avoid a problem with arithmetic on unsigned 3814 values (Philippe Blain). 3815 + improve the nanosleep() logic in napms() by checking for EINTR and 3816 restarting (Philippe Blain). 3817 + correct expression for "%D" in lib_tgoto.c (Juha Jarvi 3818 <mooz@welho.com>). 3819 3820 20031122 3821 + add linux-vt terminfo entry (Andrey V Lukyanov <land@long.yar.ru>). 3822 + allow "\|" escape in terminfo; tic should not warn about this. 3823 + save the full pathname of the trace-file the first time it is opened, 3824 to avoid creating it in different directories if the application 3825 opens and closes it while changing its working directory. 3826 + modify configure script to provide a non-empty default for 3827 $BROKEN_LINKER 3828 3829 20031108 3830 + add DJGPP to special case of DOS-style drive letters potentially 3831 appearing in TERMCAP environment variable. 3832 + fix some spelling in comments (reports by Jason McIntyre, Jonathon 3833 Gray). 3834 + update config.guess, config.sub 3835 3836 20031101 3837 + fix a memory leak in error-return from setupterm() (report by 3838 Stanislav Ievlev <inger@altlinux.org>). 3839 + use EXEEXT and OBJEXT consistently in makefiles. 3840 + amend fixes for cross-compiling to use separate executable-suffix 3841 BUILD_EXEEXT (cf: 20031018). 3842 + modify MKkey_defs.sh to check for sort utility that does not 3843 recognize key options, e.g., busybox (report by Peter S Mazinger 3844 <ps.m@gmx.net>). 3845 + fix potential out-of-bounds indexing in _nc_infotocap() (found by 3846 David Krause using some of the new malloc debugging features 3847 under OpenBSD, patch by Ted Unangst). 3848 + modify CF_LIB_SUFFIX for Itanium releases of HP-UX, which use a 3849 ".so" suffix (patch by Jonathan Ward <Jonathan.Ward@hp.com>). 3850 3851 20031025 3852 + update terminfo for xterm-xfree86 -TD 3853 + add check for multiple "tc=" clauses in a termcap to tic. 3854 + check for missing op/oc in tic. 3855 + correct _nc_resolve_uses() and _nc_merge_entry() to allow infocmp and 3856 tic to show cancelled capabilities. These functions were ignoring 3857 the state of the target entry, which should be untouched if cancelled. 3858 + correct comment in tack/output.c (Debian #215806). 3859 + add some null-pointer checks to lib_options.c (report by Michael 3860 Bienia). 3861 + regenerated html documentation. 3862 + correction to tar-copy.sh, remove a trap command that resulted in 3863 leaving temporary files (cf: 20030510). 3864 + remove contact/maintainer addresses for Juergen Pfeifer (his request). 3865 3866 20031018 3867 + updated test/configure to reflect changes for libtool (cf: 20030830). 3868 + fix several places in tack/pad.c which tested and used the parameter- 3869 and parameterless strings inconsistently, i.e., in pad_rin(), 3870 pad_il(), pad_indn() and pad_dl() (Debian #215805). 3871 + minor fixes for configure script and makefiles to cleanup executables 3872 generated when cross-compiling for DJGPP. 3873 + modify infocmp to omit check for $TERM for operations that do not 3874 require it, e.g., "infocmp -e" used to build fallback list (report by 3875 Koblinger Egmont). 3876 3877 20031004 3878 + add terminfo entries for DJGPP. 3879 + updated note about maintainer in ncurses-intro.html 3880 3881 20030927 3882 + update terminfo entries for gnome terminal. 3883 + modify tack to reset colors after each color test, correct a place 3884 where exit_standout_mode was used instead of exit_attribute_mode. 3885 + improve tack's bce test by making it set colors other than black 3886 on white. 3887 + plug a potential recursion between napms() and _nc_timed_wait() 3888 (report by Philippe Blain). 3889 3890 20030920 3891 + add --with-rel-version option to allow workaround to allow making 3892 libtool on Darwin generate the "same" library names as with the 3893 --with-shared option. The Darwin ld program does not work well 3894 with a zero as the minor-version value (request by Chris Zubrzycki). 3895 + modify CF_MIXEDCASE_FILENAMES macro to work with cross-compiling. 3896 + modify tack to allow it to run from fallback terminfo data. 3897 > patch by Philippe Blain: 3898 + improve PutRange() by adjusting call to EmitRange() and corresponding 3899 return-value to not emit unchanged characters on the end of the 3900 range. 3901 + improve a check for changed-attribute by exiting a loop when the 3902 change is found. 3903 + improve logic in TransformLine(), eliminating a duplicated comparison 3904 in the clr_bol logic. 3905 3906 20030913 3907 > patch by Philippe Blain: 3908 + in ncurses/tty/lib_mvcur.c, 3909 move the label 'nonlocal' just before the second gettimeofday() to 3910 be able to compute the diff time when 'goto nonlocal' used. 3911 Rename 'msec' to 'microsec' in the debug-message. 3912 + in ncurses/tty/lib_mvcur.c, 3913 Use _nc_outch() in carriage return/newline movement instead of 3914 putchar() which goes to stdout. Move test for xold>0 out of loop. 3915 + in ncurses/tinfo/setbuf.c, 3916 Set the flag SP->_buffered at the end of operations when all has been 3917 successful (typeMalloc can fail). 3918 + simplify NC_BUFFERED macro by moving check inside _nc_setbuf(). 3919 3920 20030906 3921 + modify configure script to avoid using "head -1", which does not 3922 work if POSIXLY_CORRECT (sic) is set. 3923 + modify run_tic.in to avoid using wrong shared libraries when 3924 cross-compiling (Dan Kegel). 3925 3926 20030830 3927 + alter configure script help message to make it clearer that 3928 --with-build-cc does not specify a cross-compiler (suggested by Dan 3929 Kegel <dank@kegel.com>). 3930 + modify configure script to accommodate libtool 1.5, as well as add an 3931 parameter to the "--with-libtool" option which can specify the 3932 pathname of libtool (report by Chris Zubrzycki). We note that 3933 libtool 1.5 has more than one bug in its C++ support, so it is not 3934 able to install libncurses++, for instance, if $DESTDIR or the option 3935 --with-install-prefix is used. 3936 3937 20030823 3938 > patch by Philippe Blain: 3939 + move assignments to SP->_cursrow, SP->_curscol into online_mvcur(). 3940 + make baudrate computation in delay_output() consistent with the 3941 assumption in _nc_mvcur_init(), i.e., a byte is 9 bits. 3942 3943 20030816 3944 + modify logic in waddch_literal() to take into account zh_TW.Big5 3945 whose multibyte sequences may contain "printable" characters, e.g., 3946 a "g" in the sequence "\247g" (Debian #204889, cf: 20030621). 3947 + improve storage used by _nc_safe_strcpy() by ensuring that the size 3948 is reset based on the initialization call, in case it were called 3949 after other strcpy/strcat calls (report by Philippe Blain). 3950 > patch by Philippe Blain: 3951 + remove an unused ifdef for REAL_ATTR & WANT_CHAR 3952 + correct a place where _cup_cost was used rather than _cuu_cost 3953 3954 20030809 3955 + fix a small memory leak in _nc_free_termtype(). 3956 + close trace-file if trace() is called with a zero parameter. 3957 + free memory allocated for soft-key strings, in delscreen(). 3958 + fix an allocation size in safe_sprintf.c for the "*" format code. 3959 + correct safe_sprintf.c to not return a null pointer if the format 3960 happens to be an empty string. This applies to the "configure 3961 --enable-safe-sprintf" option (Redhat #101486). 3962 3963 20030802 3964 + modify casts used for ABSENT_BOOLEAN and CANCELLED_BOOLEAN (report by 3965 Daniel Jacobowitz). 3966 > patch by Philippe Blain: 3967 + change padding for change_scroll_region to not be proportional to 3968 the size of the scroll-region. 3969 + correct error-return in _nc_safe_strcat(). 3970 3971 20030726 3972 + correct limit-checks in _nc_scroll_window() (report and test-case by 3973 Thomas Graf <graf@dms.at> cf: 20011020). 3974 + re-order configure checks for _XOPEN_SOURCE to avoid conflict with 3975 _GNU_SOURCE check. 3976 3977 20030719 3978 + use clr_eol in preference to blanks for bce terminals, so select and 3979 paste will have fewer trailing blanks, e.g., when using xterm 3980 (request by Vincent Lefevre). 3981 + correct prototype for wunctrl() in manpage. 3982 + add configure --with-abi-version option (discussion with Charles 3983 Wilson). 3984 > cygwin changes from Charles Wilson: 3985 + aclocal.m4: on cygwin, use autodetected prefix for import 3986 and static lib, but use "cyg" for DLL. 3987 + include/ncurses_dll.h: correct the comments to reflect current 3988 status of cygwin/mingw port. Fix compiler warning. 3989 + misc/run_tic.in: ensure that tic.exe can find the uninstalled 3990 DLL, by adding the lib-directory to the PATH variable. 3991 + misc/terminfo.src (nxterm|xterm-color): make xterm-color 3992 primary instead of nxterm, to match XFree86's xterm.terminfo 3993 usage and to prevent circular links. 3994 (rxvt): add additional codes from rxvt.org. 3995 (rxvt-color): new alias 3996 (rxvt-xpm): new alias 3997 (rxvt-cygwin): like rxvt, but with special acsc codes. 3998 (rxvt-cygwin-native): ditto. rxvt may be run under XWindows, or 3999 with a "native" MSWin GUI. Each takes different acsc codes, 4000 which are both different from the "normal" rxvt's acsc. 4001 (cygwin): cygwin-in-cmd.exe window. Lots of fixes.
http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blob;f=NEWS;hb=cba932f979e14e49b63e06715e80f64d9ffe6e5e
CC-MAIN-2022-40
refinedweb
29,928
66.44
NAME SYNOPSIS DESCRIPTION RETURN VALUE SEE ALSO pmemlog_tell(), pmemlog_rewind(), pmemlog_walk() - checks current write point for the log or walks through the log #include <libpmemlog.h> long long pmemlog_tell(PMEMlogpool *plp); void pmemlog_rewind(PMEMlogpool *plp); void pmemlog_walk(PMEMlogpool *plp, size_t chunksize, int (*process_chunk)(const void *buf, size_t len, void *arg), void *arg); The pmemlog_tell() function returns the current write point for the log, expressed as a byte offset into the usable log space in the memory pool. This offset starts off as zero on a newly-created log, and is incremented by each successful append operation. This function can be used to determine how much data is currently in the log. The pmemlog_rewind() function resets the current write point for the log to zero. After this call, the next append adds to the beginning of the log. The pmemlog_walk() function walks through the log plp, from beginning to end, calling the callback function process_chunk for each chunksize block of data found. The argument arg is also passed to the callback to help avoid the need for global state. The chunksize argument is useful for logs with fixed-length records and may be specified as 0 to cause a single call to the callback with the entire log contents passed as the buf argument. The len argument tells the process_chunk function how much data buf is holding. The callback function should return 1 if pmemlog_walk() should continue walking through the log, or 0 to terminate the walk. The callback function is called while holding libpmemlog(7) internal locks that make calls atomic, so the callback function must not try to append to the log itself or deadlock will occur. On success, pmemlog_tell() returns the current write point for the log. On error, it returns -1 and sets errno appropriately. The pmemlog_rewind() and pmemlog_walk() functions return no value. libpmemlog(7) and The contents of this web site and the associated GitHub repositories are BSD-licensed open source.
https://pmem.io/pmdk/manpages/linux/master/libpmemlog/pmemlog_tell.3/
CC-MAIN-2022-05
refinedweb
324
60.04
Chomp is a fast monadic-style parser combinator library designed to work on stable Rust. It was written as the culmination of the experiments detailed in these blog posts: For its current capabilities, you will find that Chomp performs consistently as well, if not better, than optimized C parsers, while being vastly more expressive. For an example that builds a performant HTTP parser out of smaller parsers, see http_parser.rs. Add the following line to the dependencies section of your Cargo.toml: [dependencies] chomp = "0.3.1" Parsers are functions from a slice over an input type Input<I> to a ParseResult<I, T, E>, which may be thought of as either a success resulting in type T, an error of type E, or a partially completed result which may still consume more input of type I. The input type is almost never manually manipulated. Rather, one uses parsers from Chomp by invoking the parse! macro. This macro was designed intentionally to be as close as possible to Haskell's do-syntax or F#'s computation expressions, which are used to sequence monadic computations. At a very high level, usage of this macro allows one to declaratively: In other words, just as a normal Rust function usually looks something like this: fn f() -> (u8, u8, u8) { let a = read_digit(); let b = read_digit(); launch_missiles(); return (a, b, a + b); } A Chomp parser with a similar structure looks like this: fn f<I: U8Input>(i: I) -> SimpleResult<I, (u8, u8, u8)> { parse!{i; let a = digit(); let b = digit(); string(b"missiles"); ret (a, b, a + b) } } And to implement read_digit we can utilize the map function to manipulate any success value while preserving any error or incomplete state: // Standard rust, no error handling: fn read_digit() -> u8 { let mut s = String::new(); std::io::stdin().read_line(&mut s).unwrap(); s.trim().parse().unwrap() } // Chomp, error handling built in, and we make sure we only get a number: fn read_digit<I: U8Input>(i: I) -> SimpleResult<I, u8> { satisfy(i, |c| b'0' <= c && c <= b'9').map(|c| c - b'0') } For more documentation, see the rust-doc output. #[macro_use] extern crate chomp; use chomp::prelude::*; #[derive(Debug, Eq, PartialEq)] struct Name<B: Buffer> { first: B, last: B, } fn name<I: U8Input>(i: I) -> SimpleResult<I, Name<I::Buffer>> { parse!{i; let first = take_while1(|c| c != b' '); token(b' '); // skipping this char let last = take_while1(|c| c != b'\n'); ret Name{ first: first, last: last, } } } assert_eq!(parse_only(name, "Martin Wernstl\n".as_bytes()), Ok(Name{ first: &b"Martin"[..], last: "Wernstl".as_bytes() })); Licensed under either of at your option. Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions. File an issue here on Github or visit gitter.im/m4rw3r/chomp.
https://recordnotfound.com/chomp-m4rw3r-149
CC-MAIN-2019-04
refinedweb
482
52.9
title: ‘Aggressively testing Django form validation (This Old Pony #58)’ layout: newsletter published: true date: ‘2018-08-07T10:45:00.000Z’ This week I wanted to write a little bit about a library I’ve mentioned before, Hypothesis, as well as the property-based testing methodology behind it. It can be a little challenging figuring how to adapt this to Django projects, or whether its even worth it, but I want to share one place where it really shines and that’s testing form validation. I want to explain property based testing by first explaining the mechanics. Property testing kind of like table testing on steroids, but with randomized data. Table testing, or parameterized testing, is the use of a table or list of records used to parametrize a single test, i.e. where there the mechanics of the test don’t change, only the values tried. For example, you might have a number of test methods that each test a different known value for a function and known expected result. These tests all do the same thing, so can be collapsed into one method that is parameterized on the data[0]. With property based testing the input values are generated by the test framework. For our purposes right now they might as well be random. “Lot of good that does” you might say, and if you’re testing _specific result values _then you’re right, it’s not very good. E.g. if you wanted to test the various values (range) of a function across it’s domain you’d have to know the result of the function at each point. But what if you all you needed to test was a property of the function for certain parameters or combinations of parameters? Like, for any value in such and such a range, the result is _always _positive? Or, if any of such and such selected values are included, then the result is _always _False? In a very cursory nutshell, that’s how property testing works. And for form validation, where we have a True/False result, it works marvelously. Here’s the scenario. You’re building a website for a brewery with an international audience and way too much investment in their outsourced legal department. They’ve got to have one of those little birthday prompts on their website and this one also includes a country and state/province selection. The user’s age is checked against the legal drinking age in their selected locale. The list of legal drinking ages is stored in the app in a Python dictionary, including country and states as nested values. legal\_drinking\_ages = { "CA": { "BC": 19, "QC": 18, }, "US": 21, ... } There are three fields in the form: (1) birthdate, a date field, then (2) country, a choices field, and (3) state/province. It’s not critical how the latter is populated, but we’ll assume it’s dynamically populated from data sourced from the app. The brewery’s legal department is _adamant _that no one be allowed to sneak through to view the website because the form didn’t correctly match them. And they couldn’t get data for every state/province just yet either, so in the absence of specific data for a country the oldest legal drinking age has to be used. Now let’s be honest, this isn’t the world’s trickiest form to test. We can think of a few boundary values and test those[1]. Or… or we could just have the computer cleverly generate a bunch of data and throw it at the form allowing us to test a few known conditions. This means we write one test and even if in this case it looks a little overkill we can be very confident in the result. Consider this pseudocode since I’m neither writing it in a proper editor nor writing the benefit of getting the argument names correct. from hypothesis import given from hypothesis import strategies as st @given( st.dates(min=date(1890, 1, 1), max=date(2020, 1, 1)), st.choices(sampled\_from=master\_countries\_list), st.choices(sampled\_from=master\_states\_list) ) def test\_form\_valid(dob, country, state): try: max\_age = legal\_drinking\_ages[country][state] except KeyError: max\_age = legal\_drinking\_ages[country] if any([dob \< date(1900, 1, 1), # arbitrary 'too old' date (date.today() - dob).years \< max\_age,]): assert not MyForm(dob, country, state).is\_valid() else: assert MyForm(dob, country, state).is\_valid() This test will run using Hypothesis’ default number of example runs, which is 100. That means this one test will be run 100 times, each with different values. And they’re not all random! Hypothesis will seek edge values values and remember across test runs which values were used before. The upshot is that sometimes even for what you think is a straightforward function you find some weird but unfortunately possible scenario which you hadn’t previously accounted for. The utility of this kind of testing is most obvious in forms with custom clean methods, especially those with clean methods for the entire form. Once you’re in the business of testing form validation logic across different combinations of data you’re basically in the business of writing tons of test methods. And to be clear, this kind of testing doesn’t solve every testing problem, and it’s not always clear how to implement even when it could. But when you can implement it, and when it does make sense, it’s like showing up a playground basketball tournament with the Dream Team[2]. Assertively yours, Ben P.s. I failed to check the “max age” for a country condition, but that’s what you get for writing and thinking about code in a WYSIWYG editor. [0] The library formerly known as nose-parameterized: [1] Boundary-value testing:–this-old-pony-54/ [2] Wow, 1992!
https://wellfire.co/this-old-pony/aggressively-testing-django-form-validation--this-old-pony-58/
CC-MAIN-2019-18
refinedweb
985
61.87
- C# without Generics - Introducing Generic Types - Constraints - Generic Methods - Generic Internals - Summary As your projects become more sophisticated, you will need a better way to reuse and customize existing software. To facilitate code reuse, especially the reuse of algorithms, C# includes a feature called generics. Just as methods are powerful because they can take parameters, classes that take type parameters have significantly more functionality as well, and this is what generics enable. Like their predecessor, templates, generics enable the definition of algorithms and pattern implementations once, rather than separately for each type. However, C# implements a type-safe version of templates that differs slightly in syntax and greatly in implementation from its predecessors in C++ and Java. Note that generics were added to the runtime and C# with version 2.0. C# without Generics I will begin the discussion of generics by examining a class that does not use generics. The class is System.Collections.Stack, and its purpose is to represent a collection of objects such that the last item to be added to the collection is the first item retrieved from the collection (called last in, first out, or LIFO). Push() and Pop(), the two main methods of the Stack class, add items to the stack and remove them from the stack, respectively. The declarations for the Pop() and Push() methods on the stack class appear in Listing 11.1. Example 11.1. The Stack Definition Using a Data Type Object public class Stack { public virtual object Pop(); public virtual void Push(object obj); // ... } Programs frequently use stack type collections to facilitate multiple undo operations. For example, Listing 11.2 uses the stack class for undo operations within a program which simulates the Etch A Sketch game. Example 11.2. Supporting Undo in a Program Similar to the Etch A Sketch Game using System; using System.Collections; class Program { // ... public void Sketch() { Stack path = new Stack(); Cell currentPosition; ConsoleKeyInfo key; // New with C# 2.0 do { // Etch in the direction indicated by the // arrow keys that the user enters. key = Move(); switch (key.Key) { case ConsoleKey.Z: // Undo the previous Move. if (path.Count >= 1) { currentPosition = (Cell)path.Pop(); Console.SetCursorPosition( currentPosition.X, currentPosition.Y); Undo(); } break ; case ConsoleKey.DownArrow: case ConsoleKey.UpArrow: case ConsoleKey.LeftArrow: case ConsoleKey.RightArrow: // SaveState() currentPosition = new Cell( Console.CursorLeft, Console.CursorTop); path.Push(currentPosition); break ; default: Console.Beep(); // New with C#2.0 break ; } } while (key.Key != ConsoleKey.X); // Use X to quit. } } public struct Cell { readonly public int X; readonly public int Y; public Cell(int x, int y) { X = x; Y = y; } } The results of Listing 11.2 appear in Output 11.1. Using the variable path, which is declared as a System.Collections.Stack, you save the previous move by passing a custom type, Cell, into the Stack.Push() method using path.Push(currentPosition). If the user enters a Z (or Ctrl+Z), then you undo the previous move by retrieving it from the stack using a Pop() method, setting the cursor position to be the previous position, and calling Undo(). (Note that this code uses some CLR 2.0-specific console functions as well.) Example 11.1. Although the code is functional, there is a fundamental drawback in the System.Collections.Stack class. As shown in Listing 11.1, the Stack class collects variables of type object. Because every object in the CLR derives from object, Stack provides no validation that the elements you place into it are homogenous or are of the intended type. For example, instead of passing currentPosition, you can pass a string in which X and Y are concatenated with a decimal point between them. However, the compiler must allow the inconsistent data types because in some scenarios, it is desirable. Furthermore, when retrieving the data from the stack using the Pop() method, you must cast the return value to a Cell. But if the value returned from the Pop() method is not a Cell type object, an exception is thrown. You can test the data type, but splattering such checks builds complexity. The fundamental problem with creating classes that can work with multiple data types without generics is that they must use a common base type, generally object data. Using value types, such as a struct or integer, with classes that use object exacerbates the problem. If you pass a value type to the Stack.Push() method, for example, the runtime automatically boxes it. Similarly, when you retrieve a value type, you need to explicitly unbox the data and cast the object reference you obtain from the Pop() method into a value type. While the widening operation (cast to a base class) for a reference type has a negligible performance impact, the box operation for a value type introduces nontrivial overhead. To change the Stack class to enforce storage on a particular data type using the preceding C# programming constructs, you must create a specialized stack class, as in Listing 11.3. Example 11.3. Defining a Specialized Stack Class public class CellStack { public virtual Cell Pop(); public virtual void Push(Cell cell); // ... } Because CellStack can store only objects of type Cell, this solution requires a custom implementation of the stack methods, which is less than ideal.
http://www.informit.com/articles/article.aspx?p=605369&rll=1
CC-MAIN-2015-18
refinedweb
874
57.06
UFDC Home myUFDC Home | Help | RSS <%BANNER%> TABLE OF CONTENTS HIDE Section A: Main Section B: Regional News Section B: Editorial/Opinion Section B: Classified Ads Section B: Regional News conti... 27,43 Related Items Preceded by: Starke telegraph Table of Contents Section A: Main page A 1 page A 2 page A 3 page A 4 page A 5 page A 6 page A 7 page A 8 page A 9 page A 10 Section B: Regional News page B 1 page B 2 page B 3 Section B: Editorial/Opinion page B 4 page B 5 Section B: Classified Ads page B 6 page B 7 page B 8 Section B: Regional News continued page B 9 page B 10 Section C: Features and Sports page C 1 page C 2 page C 3 page C 4 page C 5 page C 6 page C 7 page C 8 page C 9 page C 10 Full Text ,T'he Sweetest Strawberries This Side Of q-leaven USPS 062700 Three Sections Starke, Florida USPS 062-700 Three Sections Starke, Florida - B--:A2 -g S IS ~ S Conference center project a go after all By MARK J. CRAWFORD Telegraph Staff Writer Following a sometimes tense, sometimes riotously funny exchange of viewpoints on a proposed convention center for Bradford County, the measure squeaked by on a 3-2 vote. The proposal was rejected earlier this month by an equally narrow margin. Commissioner Ross Chandler sponsored a return of the topic to the Oct. 20 agenda-in-order- to hear additional information, then voted with John Cooper and John Wayne Hersey to allow the Tourism Development Council to move forward with the property purchase, stipulating firmly that the property would be put -.up for sale immediately if county taxpayers were-ever in danger of having to subsidize the ownership or operation of the convention center. Saying he was better able to answer lingering questions about the $370,000 property purchase and renovation,*TDC Director Ron Lilly reiterated .the main benefits of a convention center-the economic impact of the tourism it would generate and its presence as a community and civic center serving a large number of citizens. Since being denied the opportunity to move forward just three weeks ago, the TDC has been able to garner an impressive amount of support for the convention center. Lilly pointed to letters from organizations with ties to TDC's membership, including the North Florida Regional See CENTER, p. 3A 126th Year 13th Issue 50 CENTS HARVEST HIqHLlqHTS...H It's looking a lot like fall around Bradford County and feeling a lot like winter. There are pumpkin scenes all over the county, including a pumpkin extravaganza at the First United Methodist Church in Starke. Selling the pumpkins is a fundraiser for the church and all shapes and sizes, like those below, can be found. Street talk dominates meeting By MARK J. CRAWFORD drivers to avoid left-hand turns By MARK J. CRAWFORD under any circumstances. Telegraph Staff Writer When S.R. 100 was recently resurfaced and restriped, a Some won't like the double yellow line was painted decision, but the Florida and a left-hand turn removed Department of Transportation on 100 at Monroe Street will be removing the traffic (turning toward CVS and signal at Call Street at U.S. Winn-Dixie). 301. Police Chief Gordon Smith The signal has been set to has noted in the past that flash for some time to help DOT's data show fewer move traffic through, Starke, accidents-at the-intersection although it has made exiting since the signal was set" to Call Street and making a left- flash, presumably since fewer hand turn south next to people are making the turn. impossible, at least at certain The functioning of the signal times-of-theday. has been an ongoing issue. For Commissioner Carolyn years the city commission Spooner said the lack of a complained that the light at signal at that intersection has Call Street was. not made turns more dangerous. synchronized with the light at Starke Police Department S.R. 100, and that it was Major Jeff Johnson said there contributing to traffic backups won't be a restriction on in the city. making those left-hand turns. Removal of the signal could but DOT is tryifig to encourage ..b"-parqt-.-of.,,an ., timated $829,000 project to resurface 301 for one mile from S.R. 100 heading north. Bids on that project are scheduled to be opened next month. Johnson said work at the intersection of Call Street and 301 will change the look approaching the intersection from both east and west on Call Street. Spooner suggested DOT's decision could be reversed, but -Johnson -said DOT.. seemed dead set on removing the light. The imminent construction of a Walgreens at that intersection, strongly influenced the decision, he said. An increase in traffic to that site when the store opens would only increase the number of left-hand turns attempted at that intersection. The impact of Walgreens to' downtown traffic was also raised at a recent workshop on parking. The possibility of reversing the directions of two one-way streets-Walnut and Thompson-was raised again,. but a decision will likely wait until after Walgreens opens. Some did feel that the signal at S.R. 100 and Walnut would be better used if traffic could go north on that street. Vehicles exiting Walgreens on Call Street could also make a right- hand turn on Call and go around the block to get to the, sigiials t 100 and 301........ As for parking enforcement downtown, signs will be taken up and new signs, particularly highlighting the presence of the city parking lots, will be installed. The problem of people parking too long in on- street parking places, however, seemed to be one created by certain business owners, ahd See STREET, p. 4A Local Guard to help with Wilma By MARCIA-MILLER Telegraph Staff Writer Starke's 631" Maintenance Battalion is part of the overall National Guard response to Hurricane Wilma and was mobilized Monday morning. The local troops pulled out of the. armory on Edwards Road at about 9:30 a.m. Monday, heading for a preliminary staging area in the Orlan-d viciTrity. .-....... Also on the road were Special Forces troops from Camp Blanding who will be assisting in search and rescue efforts. As soon as the storm had cleared the area on Monday, the initial wave of Guardsmen, dubbed "Task Force 164," moved forward into the "Red Zone"-Charlotte County and areas south of there. The 631st was still en route at that time, so the local unit was not a part of that initial team, but they were on their way to join the rescue and recovery effort. According to Lt. Col. Ron Tittle, director of public affairs See GUARD, p. 4A 8 qualify in Lawtey election By LINDSEY KIRKLAND Telegraph Staff Writer After qualifying was held last week, ,eight people turned in the proper paper- work to run,for office in the city of Lawtey. Four of these candidates are running for one. of three council seats. They are Wayne Massey, George Shuford, Jeanette Phillips and Walter Howard. I This is a citywide elec- tion, so anyone. in. the city can run for any available council seat. Voters can also vote on all council -positions come election day. These council seats are now held by Spurgeon Massey, Wayne Massey and Jimmie Scott. The chief of police spot is also up for grabs. M,M. "Butch", Jordan, who cur- rently holds this position, and-Jerry Feltner qualified. Current City Clerk Lisa Harley will have to run against Carlton Jones for her position in the Dec. 6 elec- tion. On election day, the polls will be open from 7 a.m. to 7 p.m. at the Tatum Brothers Park on Park Street. Teen Court making a comeback inBadford County By MARK J. CRAWFORD TelegraphbStaff Writer Teen court is returning to Bradford County. The ordinance approved unanimously by the county commission last week also enacted the program's funding mechanism by imposing a $3 surcharge-against each guilty or no contest plea in county or circuit court processes for a violation of criminal law or municipal or county ordinance and against anyone who pays a fine or civil penalty for traffic code ,violations, including cases in which adjudication is withheld pending attendance of a driver improvement course. In order for a teen to be eligible for teen court, he or she must be a first-time offender involved, in a misdemeanor case. Referrals to the program come from the. State Attorney's Office, the Department __of Juvenile Justice, the sheriffs office, juvenile court judges and the school system. Other precursors include an interview with the defendant and at least' one parent as well as an admission of guilt. Teen court juries are made up of students enrolled in the school district's criminal justice program and previous defendants. Those referred to the program because of a crime incur community service hours, write letters of apology to victims and essays on the dangers of their crime, pay restitution, participate in peer circle sessions and submit to a drug screening at their own cost. According to Ryan Brannan, failure to accomplish any of these steps sends the case back to the referring authority where they will be subject to rurmner disciplinary action. Judge Elzie Sanders and his judicial assistant, Sharon Coston, recently approached Brannan about bringing a teen court program to Bradford. Brannan has successfully established such-a program in Baker County. Bradford's teen court program will be administrated by Brannan through Baker County Teen Court Inc. Judge Sanders had high praise for teen court programs, saying that an educational approach to juvenile crime was a worthwhile endeavor. See TEEN, p. 4A For crime, socials and editorials, see Regional News section. For sports, see Features and Sports section. III|||||I||III| Deadline noon Tuesday before publication 904-964-6305 (phone) 904-964-8628 (fax) 6 89076 6369 2 Thursday, October 27, . ----- ~ Page2A' TELEGRAPH Oct. 27, 2005 .Funderburk chosen to head road dept. "5ii:. Sr. Airman Justin Adkins and Spc. Melissa Oehl share smiles while at the Camp Haywood laundry station as Florida Army and Air National Guard troops continue preparing local schools for occupancy, as well as providing limited medical support, to the Bay St. Louis and Waveland, Miss., areas, which were devastated by Hurricane Katrina. (Photo by Staff Sgt. Bill Nicholls, 202nd RED HORSE Squadron, Camp Blanding, Fla.) Blanding unit assists with Katrina support Battalion,' Pensacola, felt there By STAFF SGT. BILL were several differences NICHOLLS-- between the services. 202id RED HORSE "The Air Force is -more comfortable. The tents are all The Air Corps separated air-conditioned. They provide from the U.S. Army to become great meals for us. There are the present-day U.S. Air Force points where w -can take in 1947; but today, Army and showers. Lots of times with 'Air are joining forces more the Army-you use what and more, in peace and war. you've got," In post-Katrina Mississippi, Toler also enjoyed several Army Guard units "Charlie's," the base M,W.R. - teamed 'with the 202nd RED-. (morale, -wel fare and HORSE Squadroli of the recreation) tent, which comes Florida Air National Guard, to complete with cold sodas, hot remove debris and install coffee, snacks, a small library, portable classrooms for local and satellite television. schools "I come in here to relax, and Housed at Camp Haywood get my mind away from work. (named in honor of a 202nd It's as close to home as airman who died of cancer in possible." September), Air Guard Soldiers and airmen have accommodations are getting been working hard to get local good reviews., schools up and running by Staff Sgt.-Dalton Staples is November,^ but extended with* "Charlie" Company, tst emergency deployments, heat, Battalion, 265" ,Air Defense humidity and workload can all Artilery -Daytona Beach:. take-, a .toHl- Copfortablek "Thisisikejbeing.inahotel to- lodging is an advanta-e. us'.r'- -. '. according "to1 ',Staff TSgt.>' Staples said Camp Haywood Raymond Sadler, 269t' contrasts sharply with an air. Engineering Company, Live defense assignment: "If we're "Normally, we'd be out in a on a 'live' mission, sometimes 7rl o we go two to three days general purpose medium without a shower." tent-no electricity, no Some soldiers enjoyed the lights-just out in the field in a air conditioning and hot G.P. medium. Here, you've showers,, while Spc. Melissa got Air Force tents with the air Oehl. (161" Medical Battalion, conditioning. .This is sweet.- Camp Blanding) appreciated The only thing better than this the laundry station. would be a hotel." "I love these washers and With civilian contractors and dryers! I wasn't sure what it the U.S. Army Corps of would be like, when we Engineers taking on more arrived, so I brought a lot of recovery projects, all soldiers stuff-but this is great!" -and airmen in Camp Haywood The eye of Hurricane are scheduled to return to Katrina came ashore inBay Florida by late October. The Saint Louis hon Aug.29 By- tent city will be dismantled.. Sept. 3 RED HORSE ai. rm: en All tents, vehicles and service Sept. 3, RED HORSE airmen e wie n to base. were erecting Camp Haywood. members will returnto base. a 500-person tent city to house The only evidence that soldiers and airmen assisting in Florida Guardsmen served in recovery effor. Bay Saint. Louis will be reco cry edtorts. functioning classrooms, and' a Sp. Cedric Toler, "Bravo grateful school district. company, 140' --Signal Rug hooking classes set at Watson Center Traditional rug hooking _.classes aWill be held at the.- cWats6n Center.-in- Keystone Heights beginning Wednesday; Nov.; 2; and 'running each Wednesday from 6-8 p.m. Registration fee for the course is $52. First-time rug, hookers will also need a materials kit that costs approxiniately $70. Rug hooking is an American art that began 'around 1840. Examples of this early art are on display 'in the Smithsonian and the two people who will be leading ,this, course, Rion Gabel arid Kay Whitman, have also taught rug hooking there. They are volunteering their' services as instructors. For more information on the class,...contact Santa Fe Community College (904) 964-5382. LB church sets Harvest Party Oct. 30 The First Baptist Church of Lake Butler will be hosting a Harvest Party on Sunday, Oct. 30, from 5-7 p.m. atthe church on S.R. 100. The chttrch will host this, free event that will include a. multitude of games like ring toss, the "Jump for Jesus" moonwalk, face painting,, duck pond, ring toss, basketball shoot, horseback riding, bingo, hayrides and much more. Free food will be provided- -rfor those in attendance By MARK J. CRAWFORD Telegraph Staff Writer Paul Funderburk was chosen to head the county road department last '-eek, following the resignation of Len Moore and an additional term of advertisement. County Manager Jim Crawford made the recommendation to the county commission after-screening 11 applications. Only five applicants metathe minimum qualifications for the job, and Funderburk rose to the top of those. Funderburk moved to Bradford County around 10 years ago .and worked at Thompson Repairs Inc. of Jacksonville for the past 15. There he served as chairman of the board and co-owner, managing employees, and equipment, daily operations, sales, materials and Subscription R $26.00 per yea $18.00 six mor Nrabforb Countp elegrapb: Cliff Smelley Advertising: Kevin Miller r: Don Sams SDarlene Douglass nths Tvpesetting rJoalyce Graham Outside Trade Area: $26:00 per year: Nwsper Prod.' $1300 six months classified Adv. Bookkee'lpn: Earl W. Ray Ramona Petry Kathi Cone purchasing, quoting jobs, and billing. During that time, he helped grow the company from $120,000 to $1.5 million in annual revenues. . He began his career as an apprentice machinist in 1964 at Parker and Mick Welding and Machine Works in Jacksonville. He went on to be a purchasing agent and was later promoted to vice president. After 24 years at Parker and Mick, he spent a two-year period as a sales representative for Besco Inc. where he was responsible for sales in the turbine rebuilding division, calling on power plants and paper mills. He also scheduled 24-hour crews and oversaw the completion of jobs. Funderburk says he's a goal- oriented individual with, proven leadership ability who works well under pressure. He was educated at Jones College in Jlacksonville, where he received a bachelor's degree in accounting with a minor in. -business administration. The job as road superintendent is similar to the work he has performed in the past, he said, and it offers him an opportunity to work near his home. His family lives here with him, including his wife, Anita, and their two grown children, Paul Jr. and Kim Mann. He is a grandfather six times over. His community service' includes past work as a church deacon, a YMCA board director, a coach of Pop Warner football and Little League baseball, and as Worshipful Master of a Masonic lodge. He is also a licensed real estate agent, and he served as company clerk in the Florida Army National Gifard from 1965-1971. Funderburk was scheduled to go 'to wdrk with the road department this week. Paul Funderburk was recently named the new head of the Bradford County Road Department. Jordan announces election bid Lawtey Police Chief M.M. "Butch" Jordan is announcing a bid for re- election to his post. Enter Christmas parade now lEnter your group or orgdaizi'alion in IFe" Slrle". Christmas Parade before Ith,- walkirng._groups, etc. For each entry, the name of a contact person, a phone number and mailing address must be submitted. Enritry forms are available at the North Florida Regional Chamber of Commerce on the corner of Call and Walnut streets. No candy ma, be thrown from any vehicle. Candy imay be handed -out.. by people walking alongside the entry,. No live Santas should "be' displayed on any entry. since the "real" Santa wil' be riding ' on the firetruck at the rear of the parade. The parade will be Held rain or shine. ," Participants can call Steve Futch, parade chairman. at (904) 964-6200) for more information. Entr.ies-,can 'call the chamber at (904) 964-5:278 on Friday, Dec. 9, to fird out their parade lineup numbers. (The following is an announcement of intention to run for public office which was submitted by the candidate.) I humbly announce my intention to run for re-election as your chief of police in the great city of Lawtey. I have been married for 48 years and I am ihe father of five children, all of whom attended and graduated from gshools here in Lawtey and Bradford County. I have resided in Lawtey for-over 43 years, I have proudly served-in law enforcement for 45 years and provided service to . Lawtey as your chief of police for 43 years. During my career I have obtained hundreds of hours of training to include both mandatory and elective training. And, as a result of my lengthy tenure as the chief of police of Lawtey, and by virtue of being an elected official, by Florida State Statute, I am exempt' of any re-training requirements that are mandatory of most other law enforcement officers. I am honored to have attained this status. I have been the chief of police of Lawtey since May 'of 1961 and was later elected chief of police in December of 1961. I attended the first ever Police Academy. in.the state of Florida. Prior to being honored to serve the citizens of Lawtey as your chief of police, I served as a police officer in the city of Starke. I am duly qualified as well as certified as a ,law: enforcement officer and as chief of police. -I have respectfully held office as your police chief emphasizing public safety as my number- one priority, which is evident. .by several facts I would like to See JORDAN, p. 3A "Our Best Care For Your -, U Best Friend" First 'Bam-Bam" Visit .m Rain" * 8-wk-old male bulldog mix. FREE 10-wk-old mille tabby kitten. Dewormed/vaccinated Neg. for leukemia/aids. Puppy iS available for adoptionthrough BC Animal Control. 964-5400. Gracefully Growing Learning Center Our Family Invites Your Family To Come Grow With tUS! -Home-Cooked Meals Open 6 am to 6 pm. 1 yr old thru Pre-school ENROLL NOW andGet 2nd Week FREE! (Call for details) &Im _' 4. .1 J Breakfast, Lunch& Snacks provided -New teaching techniques *l J *Low teacheri/student ratio 100%open doorpolicyto parents Secure Child pick-up Web Cam / Security Cameras Coming Soon! ". Hwy 301 North Starke, FL (Next to Chevron Station just before BC Fairgrounds) Bradford Food'"- Panyly Wa J for, Hur r ,Bradford Ecumaenical Mintistrfies, Inc.! RET INED BY THE FOOD PANTRY. A COPY OF THE OFFICIAL REGISTRATION AND FINANCIAL INF i(MATION MAY BE OBTAINED FROM THE DIVISION OF CONSUMER SERVICES BY CALLING 1-80( 35-7352 TOLL-FREE WITHIN THE STATE. REGISTRATION DOES NOT IMPLY ENDORSEMENT APPROVAL, OR RECOMMENDATION BY THE STATE. 2+ Acres Deepwater Marsh Lot $149,900 3+ Acres Oversized Deepwater Lot $224,900 45 min from Jacksonville/15 min from St. Simon's Call today for appointment Excellent Financing available 1-877-AOCEAN .0 II~I -r -- ---- ~- n I Oct. 27,2005 TELEGRAPH Page3A CENTER Continued from p. 1A Chamber of Commerce, the city of Starke, the Bradford County School Board, the Altrusa Club, Kiwanis Club and Woman's Club. Several of the organizations noted their ability to book events at the center, and some like the city of Starke can offer in-kind services to the ongoing maintenance of the facility. It was the Bradford County Economic Development Authority, however, that offered to support the- convention center with a portion of its own revenue from state racetrack taxes and its venture with Austin Michael Internet Solutions should TDC not be able to pay the bills incurred by the center. The development authority would be the buffer between this project and the need for the commission to support it with funds from county taxpayers. Grant funds would also become available once the county owns the property. Capital City Bank's Jeff Oody and architect Spyros Drivas were on hand to discuss their roles in the project. Oody talked about the bank's decision to finance the project and why it made sense. For one thing, the $370,000 purchase price compared to the $710,000 appraised value puts the loan-to-value figure at 51 percent. When the appraised value increases as a result of planned improvements in the property, the loan-to-value figure drops to around 42 percent, Oody said. In short, the property could be sold at a "price that more than covers the loan taken out to purchase the property. On looking' at TDC's ability to repay the loan, the bank looked at general expenses like insurance and utilities, first from the perspective of the convention center. never being rented out. TDC would have an average of $4,300 generated by bed taxes to commit to those expenses and the debt service on the center. Oody calculated expenses at around $5,000 each month, meaning TDC would.have. on average 86 cents to pay for every $1 of expense incurred by the facility. That's not enough to pay-for everything, but also not enough to discourage the bank. "I kind of looked at this as a start-up business. I'd love to have a start-up business that made 86 cents day one that- it started up," Oody said, adding most small businesses have losses for the first three years. Typically with a nonprofit, organization like TDC, banks look for dollar-for-dollar coverage of debt service, he said, and this convention center, would have the capability to generate more than the $700 difference and surpass that dollar-for-.dollar ratio. If $2,500 to $3,000 each month as has been estimated, TDC would have $1.75 to pay back every $1 in expense incurred without touching the revenue offered by the development authority or the' unspent TDC revenue that has accumulated over two years.. Speaking to other concerns, Drivas agreed with the seemi-ngly unanimous perception that the 10,000 square-foot former church at 1610 N. Temple Ave. chosen t o house the convention center is an ugly building, but he said improvements to the facade Should accompany work on the | interior. It is a solid metal Building, stronger, than some Wooden structures, he added; The slope of the sidewalk would have to be corrected to stop water from flowing into the building, but other than very "minor" improvements, Drivas said it could be a' functional facility. The topic came right back to money, with Chairman Doyle Thomas asking about TDC escrowing funds from the unspent revenue it now has to pay for mortgage and other costs should there be a revenue shortfall down the line, and Cooper suggested six months worth of mortgage payments be escrowed. Hersey asked if the use of chamber of commerce services by the TDC would result in the chamber asking the county for more .money. Lilly said TDC already has an arrangement whereby it is paid for its services, and future revenue from the convention center would pay additional costs. Commissioner Eddie Lewis said the county would still be responsible if all other revenue sources were exhausted. Lilly said the property would be sold before that point. Chandler's wasn't the only shift witnessed during the meeting. Lawtey City Councilman Marvin Rosier, previously opposed to the project, told the commissioners they would be "stupid" not to support the project after Oody's presentation. "This money can't be used for anything else can it? And according to his figures, you can't lose on it," Rosier said, although he suggested destroying the current building and starting over. "By the way, if it fails, we can always put a Sonny's Barbecue down there," he said, receiving an outburst of laughter. But another Lawtey son, Tom Tatum, said Rosier had been sold a pipe dream and insisted taxpayers' money would be wrapped up id :the project. "Everybody talks a ibig game, but it's like anything else you've ever done in your life. When it really gets down to it, it will be you all (paying for it)," Tatum said, predicting he'd be back in a year to say he told them so. Rosier .returned to the podium to say he appreciated Tatum, but said Tatum's mind was made up when, he walked into the building. "If you listen to what Mr. Oody and other people tell you, you'd be foolish not to go with it. Only a fool can't change his mind," Rosier said to even more laughter. Lewis spoke passionately about growth and the need for the county to grow in stages. "You don't build a convention center and build around it. You build and then the convention center will come," he said. He also didn't like the idea that one more project was focused on Starke at the expense of the rest of the county. If the project fails, it would be the entire county paying for it, he said. Rosier asked Lewis what good the TDC funds were doing anyone since they can only be used for projects promoting tourism. "This money is laying there, it's not doing anybody any good. What are we going to do with it?" he asked. Lewis and Thomas both suggested the funds could be. 'used to promote festivals and' softball tournaments. Chandler called them on it,, however, saying no one coming to the county to a softball tournament spends the night or spends their money in the county. This time it was Chandler getting the laughs. "If we've got to build an EMS station in Brooker and Lawtey off of softball tournaments, -it's going to be 30 more years before you get it-or 50 more years, and you and I won't be around to see it Mr. Rosier," Chandler said. "Eddie, now you know me and you are brothers, but let's (not) jump on that horse, because he won't ride." "But, brother," Lewis said, going along with Chandler, "could you think of anything else that I could have said at- that point?" "I appreciate you always come up with a rabbit out of your hat," Chandler said in reply. At Chandler's insistence, the motion made by Cooper to purchase the property and proceed with the project included a provision that the property be sold immediately if TDC can't pay for the project with its own revenue. Six months worth of mortgage payments from the $125,000 the TDC has set aside will be placed in escrow and will be used to make those payments if the conference center isn't. successful and has to be placed back on the market. Chandler joined Cooper and Hersey in approving the motion. Thomas and Lewis maintained their opposition, although, following the vote, Lewis offered the use of his equipment if TDC needed it in the rehabilitation of the property. "And I will help you get the pink paint off (the building)," Lewis said to both laughter and applause. JORDAN Continued from p. 2A relate. Primarily, the Lawtey Police Department proudly demonstrates by statistics that we have one of the lowest traffic crash incidents of any' city comparable to our population and department size. Secondly, the crime rate within the city limits of Lawtey is lower than most other cities of comparable size, a direct result of efforts to ensure that all citizens are provided effective law enforcement, with the safety of, all citizens regardless of race,' creed, or financial status in the community, the intended services of a professional law enforcement agency. I have accomplished this consistently during my tenure as your police chief time and again, with 'no additional burden on the taxpayers of Lawtey. For example, I have added eight additional officers over the past 24 months, again, without cost to the citizens of Lawtey. As your chief of police, I have ensured that not only are our citizens ensured the aggressive and professional services to protect our children at or near one of the busiest highways in the state, my officers and I have responded and professionally handled all reported crimes in our city efficiently and in a timely manner, often times with the professional assistance always provided by the Bradford County Sheriffs Office when needed. My continued concerns and desires as your chief of police have been and will continue t o be public safety at the highest' level for the citizens of' Lawtey. It is with honor that me and my officers, all of which seek to serve you with pride and respect, can honestly go about the tasks that face our great community and city with the safety "of all citizens as their primary concern. Regardless of the needs you have from your police chief, I will always diligently strive to serve you and your family in an effort that any family man or woman would expect to be served as a public official in the capacity of chief of police. Don't be misled by anything less than what our great citizens of Lawtey deserve from their chief of police and his staff. Please don't forget and re-elect M.M. Jordan, chief of police of Lawtey, with your continued expectation of public safety as a requirement and not a promise. As always, I can be reached at 352-745- 1869 or 964-6161. Thank You Correction An, Oct. 6 story on the increase in fuel costs stated that JEA raised its rate 11.5 percent as of Oct. I and that JEA customers would see additional fuel cost increases. This was incorrect. The 11.5 percent increase was an adjustment in JEA's rate for fuel, not its base rate. JEA has not raised its base rate for more than 14 years. We 'apologize for the mistake. Nominate a Woman of Distinction Santa Fe Community College is honoring outstanding women from Alachua 'and Bradford counties..A distinguished panel of judges representing both counties will select the Women 'of Disctinction and Woman of Promise, who will be honored at the annual SFCC Women of Distinction Luncheon on Tuesday, March 7, 11:30 a.m.- 1:30 p.m., at the Tower Club at the Village, .Nominees for the Womeri of Distinction should have demonstrated unique achievements in business, "industry, science,.erivironment, medicine, education, government, social servicess . human rights, history,' sports. agriculture or humanities in Alachua or Bradford. Nominess for the Woman of Promise should be 16-21 years of age and have demonstrated character, achievement and leadership. 004782-3161 Open 7 days/week 6 a.m.-8:30 p.m. Nominations must be 15ostmarked by Nov. 28, 2005. Mail -to: Women's History Month Committee, c/o Patsy Frenchman, Santa Fe Community. College, 3000 N.W. 831d St., Gainesville, FL 32606. For a nomination form, call (352) 395-5270. Correction An Oct. 19 story on the Bradford County 4-H program . indicated the phone number to call 'for more information was (904) 964-6299. The number is actually (904) 966-6299-. The Telegraph apologizes for any inconvenience this error may have caused. MBCA sets awards banquet The Melrose Business and Community Association will hold its annual officer installation and awards banquet'on Friday, Nov. 4, at Trinity Episcopal parish hall on S.R. 26 in Melrose, The banquet will begin at 6 p.m. and all MBCA members are invited to attend. For more information or for reservations, please call (352) 475-1413., or call Project Leader, Kaye Rogers in Keystone at (352) 4734800.; Contact her ;via *e_, mail at minel616@yahoo. comn. Quilt show set in Trenton The Springhouse Quilter's Guild of Trenton is hosting a "Treasures from Home" quilt show Friday and Saturday, Nov. 11-12, at the United Methodist Church in Trenton. On Friday, the show runs from 9 a.m. to 8 p.m. and on Saturday it runs from 9 a.m. to 3 p.m. Admission is a $3 donation. More. than 130 quilts and quilt-related items will be shown and judged. Door prizes, demonstrations, a gift shop and box lunches will be available. For more information, call Lois Scott (352) 463-2207, Anna Gilliam (352) 463-7922 or Cheryl Watson (352) 472-4619. Lions kick off Toys for Tykes holiday campaign The Starke Lions Club has announced the kickoff of its 2005 Toys for Tykes holiday campaign. The volunteer service organization is seeking cash donations from businesses and ,individuals throughout Bradford County as well as volunteers to collect and distribute brand new toys on Saturday, Dec. 17, at the Bradford County Fairgrounds. "Last year the Starke Lions distributed nearly $8,000 ofi new, unwrapped toys to more than.200 children in Bradford County with 100 percent of all donated monies staying in Starke," said Lions member Chuck Slater. "Last year's success was a tribute to community involvement and support." -In October, any 1Bradford County family that would like to benefit from the toy campaign should sign up at the local county assistance office. The deadline for signup is Dec. 2, although Slater said no one will be turned away. To volunteer for Toys for Tykes, in sted individuals or representatives from local businesses can attend the next Lions Club meeting. Meetings are held at noon on the first and third Monday of,' each- month .at Western Steer. Otherwise contact Lions Club President Angel Hill at (904) 964-7574. Corner ef US-301a CR-125 wtey I .BUSINESS & SERVE ICEt , Hot Dogs* Sandwiches NOW OPEN I H O M E E P A I R Ir (;Ulfa B RESERVE YOUR TURKEY& HAM FOR THANKSGIVINGI! i We'll dff tkawoft f uat... LAWTEY SUPERMAfRHET IILr ~ ~s I II 1 ~3 I I I John :1 y'-" l'g 4A TEl I IRAP'H Oct. 27, 2005 . ' t,7 Members of the volleyball team arwe H*ianh i.,, Loi i .,J. Katie Moody, Amber Mattox, Diamond Hutson, Vania lhir.:, ,i' 1 Aos .jd .+-' Jones. Leaders are Glenda Perrish and Alicia -i;. . Northside fields ir I' A a:b' 1- I teams Nprthside Christian Academy recently formed its first boy'- t. .tl jll team and girl's volleyball team. The mascot for the school is the Crusader. The Crusaders have played Creekside of Otter Creek, West Meadows of West 0 Jh I I Ia ,I '. fjsaL tcfs \cI lacr 6i icc of 13ikhin on F'i:ay, N\,1 i U Noithsidc Baptist I lit altic is invitecd artd( I c,111111nvares av~ .\ailab~le 1.'I pmhxII Library staff is cuiin up for Halloween .: ', .. - - ,- "'- ; ,. *' '. '' ! ,^ . .- +" * . - GUARD Continued from p. 1A for the Florida National Guard, there are actually three task forces in operation in southern Florida. Task Force 164 will operate in Southwest Florida, Task Force 53 will operate in Southeast Florida and Task Force 50 will operate in the Florida Keys, Monroe County and Miami-Dade. While it was initially thought that Miami-Dade was the hardest hit, the storm caused severe damage, across the entire southern tip of Florida. According to Tittle, the, Guard's advance team moved first into some of the damaged areas while the storm was still raging further south. This advance team surveyed the damaged areas, beginning in Collier County. Lt. Col. Kevin Steverson of the -'3 Battali6n, 265'h' Air Defense Artillery Reciment, led that initial task I.ILC lie said- those early hours were spent setting up a staging area from which Guard personnel could work' to help victims. The task force would .also establish points of distribution from which 'ice, water and MREs (Meals, Ready to Eat) could be provided-always a primary need from the very beginning of a recovery effort. According to Tittle, the Guard will also likely be providing traffic control, security patrols with local law enforcement and search and rescue. In previous hurricane response efforts, the Guard has also provided equipment and personnel to assist with cleaning up debris. Tittle said there were 3,500 Guardsmen on duty in South Florida on Tuesday and another 3,500 were on alert -and ready to join the effort as they are needed. Hurricane Wilma came ashore at daybreak on Monday as a Category 3 storm with winds up to 125 mph. The storm weakened to a Category 2, with winds up to 105 mph, as it moved across the state. It poured eight inches of rain onto -the Miami-Dade area, six inches onto the Naples area and three onto the Fort Lauderdale area. Some six million people were estimated to be without power on Monday. TEEN Continued from p. 1A The proposed budget is around $32,600, but would be limited to the amount actually collected through the $3. surcharge, Attorney, Terry Brown said there are other ordinances for which the commission can impose the surcharge, such as tickets written by wildlife officers. Additional surcharges may be imposed in the future to support the program. In other business: By resolution, the county commission clarified its policy on reimbursing employees for mileage costs entailed in the use of their personal vehicles. The reimbursement rate is now set at I cent per. mile less than the federal mileage rate. The previous policy was 35 cents or I cent less than the federal mileage rate, whichever was less. The federal mileage rate is currently 48.5 cents per mile if no government vehicle is available, 28.5 cents if such a vehicle is available. Last month, three of five Starke city commissioners The Bradford County Public Library staff has been busy carving and painting, their pumpkins for its annual "'Pumpkin Dicuatiiy display. The pumpkins will be displayed from Oct. 24-31. Also che.ckt ...l",ULiayvood books" display at, tih' lBMr.or moan inforrnmtir Nr'rmki ca.l 9bu4-6400 o., visit n he ivpi;-bsi a i, nI., ... -'' t e ks, ,, I Ii Robbins. Diane Gaskins. EII- vi .. ,..-.; ,, ; . Homeowners wtE money worries may qualify for low-interest loans LOANS: Direct lender loosens its req- ments? Financial problems? Medical uirements for homeowners who n eed bills? IRS liens?It does? matter! money now. If ou ame a homeowner withsufficient lHaw youbeen turned down for loan? equityheresanexcellent chanceou reason? Are youpaying morethan10% hours. interest on amn other loans or creditcads? You can findout r the phor and e q n. n ; d .... freeoPfchilr-e-if ou'quali Honey Lan uil t,.u v..er tile phkli,:', d ,,, h e n e.)U Le erc pen obligation if )ouqualify. thefLDept o FinancialServices.Open Highaeditcarddel?Less-than-perfect 7days'aweek .or Nour comenience credit? Self employed? Late house pay- 1-800-700-1242 ext.214 Lawtey school reunion is set for Nov. 5 Anyone %ho attended a Lawtey school (Lav'e.' .LJu,-Io High. Lawtey ElemernIar. .' Late. Comnimunit, School), their farnmill and friends are in' ited to a reunion on Saturday, Nov. 5, at 6 p.m. The reunion is a, covered dish supper at the Starke Golf and Country Club, 15501 NE 14th Ave. in Starke. Biead and beverages will be provided. Call (904) 782-3690 or (904) 782-3674 for additional infirrim tionr. Local student could win $10,000 savings bond Comminilder D.' id l'cace of the Veterjns of reri-,ni Wars :i\'F\\ I Post 1 lilh iM ( lll, announced the ,L ek-.f1 of this year's VFW and. Ladies .l u\ili.,\ P.i.,,,' .. Per F .u' Compenletit I Studenrit n ,riaile' 6.S in this aren hae the 1"pp..,rl nir, t,,l CnmprcLC in [he VF\" ';a lnl-l i C S 'l 11et[ ollu ad X i II S Hk s a l I 11.o l I and t\ .-rN i cL L-21 1. i~. I tr- Itn the "sPen Es~sax Corn~ ~S[Udents are invited to -,,%rite a 4-,1" word essay oina dpatri-otic thenme. Ap i rim r 'rr -#u i'his year's theme is "Who Are Today' Patriots." Deadline for student entries is Tuesday, Nov. 1. Interested students and i[ccher should contact their local- VFW Post" #1016 by phone at (904) 368- 0447 or write to the post- at 540 Bay St., Starke, FL' -2(r-'l, for.more information. 5rr---= -~-~ .afl -. ". ~t __ ___ __ __ I. '- As seen FOR STRUCITURF Sf-IEMENTS, on T.V. ANNUITIES ind Wi PAYOUTS 800) 794 7310 SJ.G, Wentworth means CASH NOW for trciured Settlemnunts ' """""mom `2u SmartStyle FAMILY HAIR SALON t A Full Service Salon with ProPessional Hair Care Produces For All Your Needs. GRANDOPENING 3+ Acres Deept.water Ocean Access Lot from just $240 per month! * 45 min from Jacksonville/15 min from St. Simoosn' .Call today fra,,uiilmenert Excellent Financing available *rn:Mnh., p, ...' ..t ) ;i L3,aede ci r 5i,.9.O purchase p.ri(e '.a: 1,.', '':... ,, r. -rn ,.| v q9:,', 5 910 fran.ed 19'r l .ed F- a r.. :r,.'-. .:f,.g i ri. fee. fic 3 ,.ri. 35 monthly p ., *, I. ,:,l 'I)-4.' i ...ith ii,-a! pa.niirt of 153 910. C 1i .. i. .. r-re rr... bt ,'l. it l ... y. 'I:. CEA * CAPTAIN'S m ICE CREAM' AD ARE1" S$UBS IrEBONI .L PIZHZ -IP I 'fj I ;, /eaduccdIce 6et m Pr .Sm all i(.o ( ,,, f(mii e.......25 Sm ari ll S lJfir .......................... 75 Bananall Split. .. .. ',L99 "EVERY MONDAY" BUY ANY 10. 16' SUPREME PIZZA AT REG. PRICE... GET A 6.16" PEPPERONI PIZZA FOR FREE! US-301 & CR-225 W, Lawtey '904-7 2-1177 , '~u._ .. i m LOCATED IN WAL*MART (904) 964-7651 14500 US Hwy 301 S. Starke, FL For Employment; Opportunities Call 1-877-789-9545;sbyle.com Please join us Wednesday, October 26th and Thursday, October 27thl I WOMM it u 4 d increased the city's mileage reimbursement rate to 35 cents per mile, seeing a need for an increase given fuel prices but feeling the federal rate was too high. Commissioners Carolyn Spooner and Larry Davis voted against the increase -to 35 cents, feeling even that amount was too high. STREET Continued from p.1A their employees who've been using those spots themselves. BobKat's Kathryn Ford said all of the business owners needed to learn to get along and support one another-to treat each other like they would want to be treated. In other street news, the city will explore the installation of speed humps after Jimmy Epps approached the board to say some type of speed control device was necessary on Wilson Road. AdditionallN. Commissioner Wilbur Waters asked about the possibility of adding sigitage forbidding tractor-trailer drivers from using Jake brakes in the city. A Jake brake is an add-on engine brake that series as an alternative to slowing and stopping semi trailers. resulting in less wear and tear on the normal braking system. But their use also results in an, explosive sound from the exhaust system that, according to Waters, is disturbing to residents .who li\e along highways like S.R. 100 and S.R. 16. Other communities have signs forbidding the use of Jake brakes. There was some question as to whether or not the city could enforce the ban and ticket violators without its own ordinance, and an answer-, for that question will be researched. I\ Oct. 27, 2005 TELEGRAPH Page 5A Age appropriate programs are available for children at the Bradford County Public Library Shown at a recent Family Storytime at the Bradford County Public Library are: left photo: Kaylee Tabet, Linda Buie, Chance Buie, Ella Dinkins; and right photo, Summer Joy Atteberry, Janie Chatham, Graham Green and Ethel G. White. The 45-minute program is for preschoolers and is held on Tuesdays at 10 a.m. It features books, stories, poems, songs and a craft activity. Mother Goose Time on Thursday at 10 a.m. is a 20-minute program with rhymes, finger plays and music for babies up to two years old with their adults. For more information please call the Library at 964-6400. I-- Students posed with Chuck E. Cheese including Dee Strong, Cameron Gaskins, Kalie Maginnis and Dawson Rosier. Hurricane items provide rewards The kindergarten, first and second grade classes at Northside Christian Academy recently traveled to Orange Park for a rewards party. The classes won a collection com- petitin .for hurricane relief items. Surplus commodities to be distributed The Spwannee River Economic Council, Inc. announced that the U.S. Dept. of Agriculture surplus commodities will be distributed to eligible area residents from 8:30 a.m. 3:30 p.m. on Thursday, Nov. 10, and Friday, Nov. 11, at 104-4 L.M. Gaines. Blvd. in Starke. Any household whose maximum gross'income is less that, age, sex or handicap. Starke Elementary announces TKs for Oct. Starke Elementary School has announced its Kiwanis Terrific Kids for Qctober 2005. They are (I-r): first row, Cheyenne Oschner, Shianne Cassels, Lindzie Gray, Cedric Tompkins, James Cavin, Zavien Collins, Jamescya Pringle, Jamie Mosley, Shaylie Yates; second row, Taylor Rehberg, Shelby Skelly, Brandon Rhue, Eric Moses, Jaterica Cruger, Christin Hopkins, Dejah Atwood, Cheyenne Garrison; third row, Victoria Hill, Amanda Hall, Katie Griffis, Michael Monnier, Cody Griffis, Brandon McDaniel and Leah Bryant. A/ison Zodd Jftapp Sweet 16 Students donated clothing, water'and food to the children who were in the path of Hurricane Katrina. More than 20 students enjoyed the reward of a trip to Chuck E. Cheese. :., [CHURCH First United Methodist Grace Baptist Church will Church on N. Walnut St. is celebrate homecoming on hosting a pumpkin patch Sunday, Nov. 6, with guest, Monday-Saturday, 9 a.m:-7 speaker Justin Griffis. Services at p.m.; Sunday, 1-7 p.m. 10:30 a.m.; lunch at noon; Pumpkins and gourds from $3- singing to follow featuring the $15. Singing Evangelists and more. Mt. Moriab UMC will The church is on 100A, Griffis celebrate its usher anniversary Loop. Call 964-5656. on Friday, Nov. 4, at 7 p.m. The A free fish fry for SREC public is invited. Esther Kelly is seniors ardi other friends who pastor. wish to attend will be held at the Raiford Calvary Temple home of Kelly Tucker in Lawtey Church of God will have itson Saturday, Nov. 12, starting at homecoming Sunday, Oct. 30- 10a.m. Follow signsfor Nov. 4. Sun. 11 a.m. 6 p.m.; directions. Mon.-Fri. 7:30 p.m., revival Cowboy Church of Lawtey will with Evangelist Curtis Teague. have Bible study on Thursday, First CommunityChurch of Oct. 27, a 7:15 p.m. at 7:15 at First Community Church of Bay T &eo S 1 Brooker on Tetstone Ave. will Bay Tack & Feed on US-301 in hold special services Oct. 28-30 Lawtey.. featiu, ing: Friday, 7 p.m. Steve Pine Level Baptist Church will Huichlieson; Saturday, 7 p.m. host Evangelist James Lyman in and Sunday, 6 p.m., Betty all its services on Sunday, Nov. Herrington from Soperton, Ga .6. He will speak in Sunday and Sunday 11 a.m. Danny School at 9:45 am, the morning Tyler of Worthington Springs. service at 11 a.m., and the The public is invited', evening service at 7 p.m. All are The Oddfellow Cemetery Inc. invited. will hold its regular meeting The Bradford Gospel Monday, Nov. 7, 5 p.m. at Allen Ensemble will have a benefit Chapel A.M.E. Church in the concert on Saturday, Nov. 5, 6 Fellowship Hall. p.m. at the Bradford County All Bradford Count. pastors fairgrounds in Starke. Out of are invited to join the Santa Fe town guests will perform as well Community College Andrews as local talent. For information Conitertea ollegeAndcall (904) 9644893 or (904) Center team on Tue.. No 964-6737. 8, 7-8 p.m. to discuss and share ideas on how the community First Baptist Church of can be better served b\ ,hee Raiford invites the public to its tIw groups. Call tiu4 I 964- fall festival S:aturday, Oct. 29,3- 5382 to RSVP by Monday, Oct. 6p.m. Free games and food. 31. Annual health fair offers free screenings The fourth annual Union Couni\ Heith Fair will be held Friday, Nov. 18, from 9 a.m. until 1 p.m. at the Lake Builer Communit\ Center. ', More than 25 vendors will be present offering free health screenings including. blood sugIar. blood pressure, bone density and more. There will be free food and prizes., The Union County Health Fair is sponsored by Lake Butler Hospital and Surgery Center and Florida Council on Crime and Delinquency. For more information, call (386 4 NO6-T323 WORTHi NOTING] The Lawtey Recreation Ihaurr meets on the second Tl,,f'do of the month at 7 p.m. 138 E. Call St, Starke, FL 904/964-4420 2 Slizabith, Alaita aitd rapis LordyLordy, He's way Past 40... SWe think it's Nifty that Our Pastor is Turning "50"! '1 j| appIyS birth4y tto 6ary ti'! r FROM YOUR CHURCH FAMILY AT BETHEL BAPTIST CHURCH You choose the CD term! From 3 to 8 months From 9 to 17 months MERCANTILE BANK .* 'A 'r.i blh f l bania pm mTt lk. I Starke 606 West Madison Street (9041 964-9696 Marnba FODIC w arinm o iSMe ' JAnr cl P agel eMa (AP I 'aW e ate W( date ol purlcatonand slub~ct to change wthout nollce. Muniren epeng 1 de 2ept Z000. Fe may redore earnings. Penalty for early co w trawal. IH moPOMWm SW AP . Statement of Ownership, Managemont, and Circulatlon I. PIMbofTh 2.-IP hoelNuw*. ft UgOlD& Bradford County Telegraph 016121- 171010 'Oct. 20,2005 Weekly 52 $26.00 7. CP.tsMV.aAfdWn.m. "0f1toPihlmdE. MUod n (Smo cat,8a*WA.4) CowPme P.O. Drawer A, Starke, FL 32091, Bradford County MWN" (904) 964-6305 P.O. Drawer A. Starke, FL 32091-9998 P FulNam P4Nw CM ft bkAghdM dW Perw. 66w, Meage Ed o h0 MWndU John M. Miller, P.O. Drawer A. Starke. FL 32091-9998 Mark Crawford, P.O. Drawer A. Starke, FL 32091-9998 M MleEdOr .O aw MW StIre FL 3ad2 9 John M. Miller, P.O. Drawer A, Starke. FL 32091-9998 1gA.hw UWA 'iz",l O NW* rOw, wewDaYem'.rm" John M. and Anne Miller P.O. Drawer A. Stoarnke, L32091-"98 None 1The1, 6kb.. (FM, MI nM'*Mwblsdft dmC dwk C~ooe 13. cm PaiT6, l.14. imeO*D4dfwO MeMIO Dots BOW Bradford County Telegraph Sept, 29, 2005 15. .~ AmW ft eePW6. h kmow. Sp.oftgho. I F w w dih w"DUringPrwok,613 M, -. Pt *.dPdrF1tv o wPio i o. ToW xwf.P(dmIO 5750 5800 11) FP i I .d~bKAP-%W"334 334 P~jd,(2)Po Kt bW$*Sm. a31 668 668 (3)==utOfoN*k PA st m4562 4247 (A) 00w Omm MAW Pd llwooa(,USPS YO Pdw~t P*OWCWAM5564 5249 DWUm1)o~~c"WWW 16 16 IWW (2) bhnmtededWO.,,'354I 18 18 D#k) (3) OVIc"mOSldd IhtO furit* P*$500 'To~totdMouVtkp41( 55% 5283 152 517 loi(wp145 MWA) 5750) 5800 I.f~ P4m O.MAw P= Ocsbm' 147%97% weol~ o WWIt.29.ON 1 ;-4===ol~o 4.wrl~A*eworoP~ o, I 1 t Page 6A TELEGRAPH Oct. 27, 2005 FUMC pumpkins have arrived By LINDSEY KIRKLAND Telegraph Staff Writer It's that time of year again when the First United Methodist Church of Starke transforms their church property into a pumpkin patch. The pumpkins, which are grown by the Navajo in New Mexico, arrived at the church on Oct. 17. They will be sold from 9 a.m. to 7 p.m., Monday through Saturday, and 1-7 p.m. on Sunday at the church. The pumpkin patch will stay open until they sell out or Oct. 31, whichever comes first. Pumpkins vary in size, but can cost anywhere from $3- $13. Mini pumpkins are 50 cents to $1. Stickers for children and paste-on faces, for those who do no wish to carve their pumpkins, are available. Pumpkins, however, aren't the only thing popping up in this patch. Fancy gourds, swan gourds and "Frankenstein's hat" gourds are also available. Prices start at 50 cents for fancy gourds and can be as high as $5 for other varieties. The church's pumpkin patch proceeds will be used toward its youth and music departments. Red Ribbon Week Oct. 24-31 By LINDSEY KIRKLAND Telegraph Staff Writer If you have ever wanted to show that you have taken a stand against drugs, Red Ribbon Week is the perfect time to do it. Red Ribbon Week started Sunday and will last to Monday, Oc,t. 31, as part of Red Ribbon Month (October). The Bradford County Juvenile Justice Shared Services Council will be sponsoring "Red Ribbon Just Say No to Drugs!" activities at Bradford Middle School during the week. The council is asking local businesses to help support these activities by donating $25 or more. Red ribbons which can be displayed at the business, will be given to businesses who donate Checks should be made out to Communities In Schools. If you're not a business, you can wear a ribbon to show support or get involved in the activities that your child's school provides. The Red Ribbon Campaign was originally started 20 years ago when a DEA agent was killed by drug traffickers. A red ribbon has since been known as a symbol of intolerance against drug use and as a way to promote a drug-free nation. Bradford County Juvenile Justice Shared Services Council is located at 611 North Orange Street in Starke and can be contacted by phone at (904) 966-6815 or (904) 964- 7776. LEGALS PUBLIC NOTICE The Joint' Commissicorn on Accreditation of HealthCare Organizations will conduct an accreditation survey of Shands S Starke Hospital on- November 21-22, 2005. The purpose of the survey will be to evaluate the critical access hospital's s for relevance to Ire accreditation y process. Requests lor a public information interview must be made in writing and should be sent to the s Joint Commission no later than five F working days before the survey begins. The request must also indicate the nature of the information to be provided at the interview. Such Requests should be addressed: Division of Accreditation Operations Office of Quality Monitoring Joint Commission on Accreditation of Healthcare Organizations. One Renaissance Boulevard Oakbrook Terrace, IL 60181 t OR Faxed to 630/792-5636 OR. E-mailed to complaint@jcaho.org The Joint Commission's Office of Quality Monitoring will acknowledge I in writing or by telephone requests received.10 days before'the survey ... begins. An account representative will contact the individual'requesting Sthe putdic information interview prior to survey, indicating the location, date, and time of the interview and the name of the surveyor who will conduct the interview. This notice is posted in accordance With .the Joint Commission's requirements and may not be removed before the survey is complete. S Date Posted: October 20,2005 10/13 5tchg.11/17 NOTICE OF PUBLIC SALE ED'S AUTOMOTIVE, LLC gives. Notice of Foreclosure of Lien and Intent to sell these vehicles on 11/01/2005, 8-00 a.m. at 2163 N Temple Ave., Starke. FL 32091-1966. t pursuant to subsecton 713.78 ol Ihe Florida Statutes. ED'S AUTOMOTIVE, LLC reserves the right to accept or reject any and/or all bids. JAACL1 1 LOL7202617 1990 ISUZU. 10/20 2tchg.,'10/27 t IN THE CIRCUIT COURT OF THE EIGHTH JUDICIAL CIRCUIT IN AND FOR BRADFORD COUNTY, FLORIDA CASE NO. 05-CA-277 Florida's Click It or Ticket, campaign brings attention to the needless deaths that occur on our roadways each year during the Thanksgiving holiday because motorists fail to use their safety belts. The Lawtey Police Department is joining law enforcement agencies across the state in an effort to save lives this holiday season by -reminding everyone to buckle up. This traffic safety initiative will run Nov- 18-30 and will' include the b'.'sy Thanksgiving holiday travel period. kt-k qff-;the Click It or Tic er..campaign. the Lawrev Polie" Department % ill launch h its second "Don't Be a Sucker" campaign. Throughout the month of November, you will see officers at different intersections of Lawtey passing out suckers to motorists who adhere to safety belt laws. The department will also be conducting driver license and vehicle inspection checkpoints throughout the month of November on Lake Street just west of the city limits and on Madison Street (C.R. 225) at Grove Street. Officers will concentrate Iheir enforcement actions on vehicles being operated with faulty or unsafe equipment such as defective lighting, bad brakes, worn tires, unlawful tint, etc. Special attention will be directed.to drivers who violate driver license and seat belt laws set forth by the state of Florida. Additionally, the Thanksgiving holiday period is one of the hea' iest traveled times across the, U.S. The result is a significant increase in traffic crashes. Last year in Florida alone, during the same time period, as this year's campaign, 77 people died in motor vehicle-related crashes. and over half of those fatalities were not using their safety) belts. Thanksgiving is a joyous holiday, but it is also one o61 the deadliest on our roadways. Too many people are Being killed in traffic crashes because they just didn't take a few seconds to put on their safety belt. Children and young adults learn best by example, and we all need to make sure they see the right example. 'During th6emost recent Click It or Ticket Florida mobilization, held earlier this year over the Memorial' Day holiday period, state and local law enforcement agencies issued almost 37,000 safety belt citations. Although law enforcement agencies across the state participate in the Click It or Ticket Florida mobilizations because the initiative heightens safety belt use awareness surrounding times of the .year with high traffic-related death rates, these agencies enforce the safety belt law every day because they know it is a matter of life or death. The Click It or Ticket Florida enforcement and education campaign sends a clear message that safety belts and child :safety seats when used properly save lives. Fortunately, Lawtey has not had a traffic-related fatality in many years and, according to 'LPD Major Nathan Blom, this can be attributed to the strict .enforcement of traffic violations. The Lawtey Police Department and .law enforcement agencies across the state, with support from the Florida Department of Transportation,- are joining together to remind everyone this holiday season to click it or you will receive a ticket. MORTGAGE ELECTRONIC REGISTRATION SYSTEMS, INC. Plaintiff, V. JERRY D. ROBBINS; YVONNE G. ROBBINS;; WASHINGTON MUTUAL FINANCE, Defendants. NOTICE OF SALE Notice is hereby given that, pursuant to the Final Judgment of Foreclosure dated October 12, 2005 in this cause, I will sell the property situated in BRADFORD County, Florida described as:. ROAQ NO. 1.00 WITH THE SOUTH LINE OF SAID N 1/2 OF THE SE 1/4 AND RUN N 88056'40" W ALONG THE SOUTH LINE OF SAID N 1/2 OF SE 1/4 A DISTANCE OF 325.03 FEET; THENCE RUN S 89030'50" W 65.0 FEET TO THE POINT OF BEGINNING; .THENCE RUN N 05-24'42" W 30.11 FEET TO AN IRON PIPE; THENCE CONTINUE N 0524'42" W 226.96 FEET TO AN IRON' PIPE; THENCE RUN S. 80'56 PIPE ON THE SOUTHERLY RIGHT-OF-WAY LINE. OF SEABOARD .COAST LINE RAILROAD; THENCE RUN N 6901'30 W ALONG SAID RIGHT OF WAY LINE 212.0 FEET TO AN IRON PIPE; THENCE RUN S 87*57'35" W 15.0 FEET TO AN IRON PIPE; THENCE S 0203'10" E 464.03-.FEET TO AN IRON PIPE; THENCE CONTINUE S 02*03WIDE MOBILE HOME, VIN NOS. GAFLL35A03882HS AND GAFLL35B03882HS, TITLE NOS. 0061235676 AND 0061235684. a/k/a 3473 SE 144th Street, Starke, FL32091 .at public sale. to the highest and best 'bidder, for cash, at the east front door, Florida, at 11:00 o'clock a.m.. on Nov. 14, 2005.';, , Dated at Starke, Florida this 12th day of October, 2005. Ray Norman Clerk of the Circuit Court By: Carol Williams Deputy Clerk Douglas C. Zahm, P.A. 18830 U.S, Hwy 19 N., #300 Clearwater, FL 33764 727) 536-4911 phone 727) )" 10/202tch. 10/27NORMAN CLERK OF THE CIRCUIT COURT BRADFORD COUNTY, FLORIDA By: Carol Williams Deputy Clerk Persons with disabilities requesting reasonable accommodations to participate in the proceeding should contact (904) 966-6280. 10of pleadings. WITNESS my hand and the seal of this court on Oct. 18, 2005. CLERK OF COURT By: Carol Williams Deputy Clerk 10/20 4tpd.11/10 LEGAL NOTICE A workshop luncheon for attendees'. IN THE CIRCUIT COUF JUDICIAL CIRCUIT C IN AND FOR E CASE NO.: 04-20 IN RE: The Estate of WILLIAM A. MUCCI, Deceased NOTICE O0 ADMINISTRATE The administration of tl WILLIAM A. MUCCI, de Number .04-2005-CP pending in 'the Circui Bradford County, Proba the address of which i 779,Starke, FL 32091, the addresses of the representative and th representative's attorney below: ALL INTERESTED PER NOTIFIED THAT: All persons on whom th served who have obje challenge the validity of qualifications of the representative, venue, oi of this Court are required objections with this Co, DEMANDS, AND OBJECTIONS NOT SO FILED WILL BE FOREVER BARRED. The date of the first publication of this Notice is Oct. 20; 2005. Attomey for Personal Representative: WILLIAM K. GORDON, ESQ., Fla. Bar #0146958 303 State Road 26 Melrose, FL 32666 S(352) 475-1357:, Personal Representatives: SONIA B. MUCCI 3268 Reading Road Watkins Glen, NY 14891 10/202tchg. 10/27 NOTICE OF INTENTION TO REGISTER FICTITIOUS NAME Pursuant to, Section 865.09, Florida Statutes, notice is hereby given that the undersigned, Ralph Steven Varnum, 10059 S. Lane Ave., Hampton. FL 32044, sole owner, doing business under the firm name of Straight Line Welding Inc.. 10059 S. Lane Ave., Hampton, FL 32044, intends to register said fictitious name under the aforesaid statute. Dated this 25th day of October, 2005 in Bradford County; S, 10/271tWpd ADVERTISEMENT OF SALE NOTICE IS HEREBY GIVEN that the undersigned intends to se!l the personal property described below to enforce, a lien imposed on said property under the Florida Self Storage Facility Act Statutes (83.801- 83.809). The undersigned will be sold at public sale by competitive bidding on the 9th day of November, 2005, at 12 noon, on the premises where said property has been storage and which are located at Santa Fe Storage, 1630 N. Temple Ave., Starke, Florida, County of Bradford, the state of Florida, the following: William Wisham, Unit#K-10 Tracy Hankerson, Unit# B-26 Angela Jenkins, Unit# D-11 Willie Robinson, Unit #G-29, Angelica Batterson, Unit # K-5 Sherri Rosebeck, Unit# G-2 Danie Morgan, Unit# F-15 10/27 2tchg. 11/3 NOTICE OF PROPOSED iATE OFIUn 'n ORDINANCE BV CITY COMMISSION STARKE, FLORIDA NOTICE IS HEREBY GIVEN that the . proposed Ordinance. wnose htle " 10/20 ltchg. hereinafter appears, will be orougnt up for' final reading and possible .., RT EIGHTH adoption on November 15, 2005, at )F FLORIDA the City Commission Meeting BRADFOFRD commencing at 7.00 p.m., in City COUNTY Hall, 209 North Thompson Street, b05-CP-0089 Starke, Florida. A copy of said Ordinance may be inspected by any member of the public at the office of the City Clerk in the City Hall, F Starke, Florida. On the date above- rION mentioned, all interested parties may he estate of appear and be heard with respect to ceased, File this proposed Ordinance. -0089, is ORDINANCE NO.: 0450 it Court of AN. ORDINANCE OF THE CITY - ite Division COMMISSION OF STARKE " s P.O. Box FLORIDA, ANNEXING THE-' names and PROPERTY LOCATED AT 14500- personal U.S. HIGHWAY 301 SOUTH IN- e personal BRADFORD COUNTY. FLORIDA.'- aresetonn INTO THE CITY OF STARKE, . FLORIDA; AND PROVIDING FOR - [SONS ARE AN EFFECTIVE DATE. r- By TERENCE M BROWN- his notice is BROWN & BROLING.- ections that City Attomey - the will, the 486 North Temple Avenue personal Post Office Box 40 jurisdiction Starke, Flonda 32091 d to file their (904)964-8272/FAX:964-3796'. urt WITHIN 10/27 itchg,: ... . -- i, 'l, DEC to meet Oct. 31 The Bradford County Democratic Executive Committee (DEC) will meet Monday, Oct. 31, at 5:30 p.m. at the Santa Fe Community College Andrews Center board room on the corner of U.S. 301 and Call Street in Starke. Discussion will include the upcoming Florida Democratic Convention. All interested democrats are invited to attend. The. Bradford DEC represents Democratic voters in Bradford County and the group currently has openings for committee representatives in several precincts., For more information, contact, Chairperson Judy Becker at (904) 782-3502. Auxiliary hosts bazaar The Shands at Starke Auxiliary will be h6sting. Preparing for growth in BC I Is Bradford County prepared for smart, sustainable growth? A workshop hosted by the Tri- County Community Awareness Group will discuss future growth in Bradford County. The workshop is set for Monday, Oct. 31, from 5:30- 6:30 p.m. at the Santa Fe Community College Andrews Center Cultural Building on. Call Street near the railroad tracks. Speakers will include Scott Koons of the North Central Florida Regional Planning Council, Starke City Manager Ken Sauer and Bradford County Manager' Jim Crawford. Lawtey PD participates in seatbelt safety drive 9 ; 5 I82" I cm~m~m~m~m~m~m~m~m~m~m~m~m~m~m~m~m~m~m~m ' . a.~ n*r, Oct. 27, 2005 TELEGRAPH Page 7A ABOVE: Order up! James Blanton, of Brooker Pest Control, grills hamburgers for Brooker festival goers. RIGHT: C.J. Burgin, 2, looks as if he's just been plucked fresh from the pumpkin patch at the fall festival. McKenzie Bradley, Matthew Wynne, John Dehoff and Wyatt Parish ride in the Brooker Elementary School fall festival parade as part of the Ellis family float. RIGHT: Jeff- Gordon and' Dale Earnhaidt Jr., a.k.a. Dallin and Gavin Woods, worked up an appetite from racing around the; Starke Elementary festival., LEFT: "Race to the Ring Toss" seems to not interest r Jasmanique Pringle, 2, but she wins a drink for her sister Latasha Smith anyway. Pringle was one of many children who enjoyed the Starke Elementary Fall Festival recently. LEFT: Parent Felicia Hales counts out change to a ticket buyer the Southside Elementary School Fall Festival. RIGHT: A snow cone is enough.to cheer about for 7-year-old Deja Shy, whop is in-secpnd grade. "Al~t-i s-olb s3'Be.' ? In her mom's booth,'Sabrina Crawford paints a decoration on the face of. Jasmine James, 6. National* Anime *49 - SMinutes Unlimited Mobile-to-Mobile Minutes, Unlimited Nights & Weekends Limited time offer! Additional charges apply. See below." igt at7p m h m fo free Camera Phones Buy One Get One FREE :Southside first-grader Blake Reddish, 6, shows his pitching skills for the bean bag toss. JTHE LOAN CORPORATION Home of the 1.45% Asset Manager Loan"W i* Cut Your Mortgage Payment In Halft ;JWith ObUgadtion Approval-Relliance or Purchase Loans Call Toll Free 800-957-7622 1: Sm&tted tmg vcnew madUIi n t e dk. Ei n o itlde i ,7%.a |0 ur' Cash Row' based approach to financing real estate will demonstrate to you the power the right loan can have in allowing you to build wealth .equity ) at an accelerated rate. : Most people finance real estate the same way they would [cars or other derecirting assets, Real estate is different because it ,oes up in value and needs to be financed differently to minimize your, 'rrw.-.i payrnl ril Learn more rout! tr.o secrets of a "Cash Flow" based, rather than the tradJon al "Amortizatiorf based financing approach.,. Your home is 'most likely your biggeo't asset and needs an "Asset Manager" loan to orpIrrize your debt "-ar..' e r-yr .,Call today and we illi reveal the secrets the wealthy have known for yearsl Ni get 1 FREE | Camera with flash il, Speakerphone AudlovoxCDM8910 get 1 FREE * Camera/Video * Speakerphone LG AX5000 come and get your love Wtltel wireless With 2-year service agreement on both lines. Limited time offer. While supplies last. alltel.com 1-800-alltel9 Alitel Retail Stores lAuthorized Agents~ Equipment & promotional offers at these locations may vary. Alachus The Marketplace (Express) Ocali usi le Bellevlew ComCenrl m Ocals Storke ITret . U.S. Hwy. 441 & Main St. 4138 N.W 16!h Blvd. 2606 S.W. 19th Ave. Rd. u os. ComnCentral 3521|372.8005 l Boop N Phorei CornCentral Molile Tbleplo 1386) 462-1553- (352)491.2530 (352)237.3434 13816 719-1111 13521)307-0226 K (st0 Ciar Cellular4)964-77 Chlefland Lake City 4980 E. Silver Springs Blvd. Lake City Chiefland 32331-3444 S edld3 7021 NW. 140th St. 2750 U.Hwy,90W. 1352) 236.2163 (352) 237-7945, ComCentral ClAII Cell-AlII 13521)400170 (386) 61-0300 Ocala (352)490.6170 omControl 135t230-4200 (352)245-3798 Starke ainesville (3 6l705-505Il NTohli t0 Proud Sponsor of: Galnesville iU vOak 1252 S. Walnut BeepersNPhonies (3itlN d Butler Plaza 206 White Ave. (904)964-3977 135231Beepers N Phones , 362 f&W, Archer Rd. (386) 362-8000 1352)331-3511 1352) 491.2500 'Coverge may not he available in all areas. See Aitel for details. "Fedite, sate add local taxes apply. In addition. Alltel charges a Regulatory Cost Recovery Fee (currently 56c), a Telecom Conneotlvlty Fe I0 (aftllly 0h6)1 1O1TIa& ato Univetsal vicel fund IeM (0blh vary by customer usagel, end a 911 fee of up to $1S.i (where 911 service Is available). These additional fees may not be taxes o 1vtiflt-ftqWI I iti t! a ,ntlot hgia Ctel irae Promo Ional minutes apply within the National Freedom ceiling area. See coverage map at stores or altelcom f or details, Usaad0 ide 01 yur alP nli ii etead.oramig, rvutlUt& loog-dltiance charges. Plan Details: Mobile-to-Moblle Minutes apply to calls between AItel wireless customers that begl uin ov rpluu' oly Ogf uyu CiiO Iftatlu, 411 voice mitl ) oe8 excluded. Nights are Mon-Thurs 9:00pm-5:59am. Weekends are Fri 9:00pm-Mon 5:59am. 2 LinUses for $75: 1000 anytime mmwiten althl O 4w lflit t aOog ao i hiIarhals b at 7 pm, end and at 5:59 am. Phone Promotone: Phones available at sale prices to new customers and eligibe existing customers. Contact Altl tiot H@1 "Itlh loefermelet" lolti ime offer at participating locations. While supplies last. Credit approval & approved handset required. $20 non-refundable aOtiva to "illl .ei F ro.a titII t M y apply er h.t Offers are subject to the Altel Terms & Conditions for Communications Services available at any Alltel store or allial.com. PAC-MAN wm W NBflB l|i A ll ii roveFd. All product u& 0id marks referenced are the names, trade names, trademarks & logos of their respective owners. I~~u love a great, deal?~:( 1-11 Page 8A TELEGRAPH Oct. 27, 2005 Brian Davis and his three-year-old son, Michael, stroll through the store's produce section. 1- 0 (Mn Danny, Campbell entertains himself by playing one of the video game systems set up for customers. r 4~4~7 - j.~ '4'~ - '~ A K I ABOVE: Those in attendance were treated to free pastries. RIGHT: WEAG's Chuck Kramer enjoys his treat. Matthew Webb, 4, and Cierra Webb, 6, get an autographed poster from members of the Jacksonville Jaguars Roar cheerleading squad. Starke Mayof Steve Futch (left) talks to Sylvia Tatum During the tour. Starke Police Chief Gordon Smith (left) and Investigator Barry Warren (right) accept a check ir) the amount of $3,000 for Peaceful Paths from Wal-Mart Supercenter manager Brian Jackson. Jackson also presented checks to the Altrusa International of Starke,"the sARC of Bradford County, the Bradford County Faith Community and Communities in Schools. Warren said Mid-Atlantic Milling Inc. has also pledged $1,000 a month for 12 months to support Peaceful Paths. One man can completely change the character of a country, and the industry of its people, by, dropping a single seed in fertile soil. -John C. Gifford . Hey Mom... Let us assist you in planning your child's party. Outdoor Tables Special Menus & Party Favors Call for Information: (904) 964-4678 Hot Dogs* Sandwiches Ice Cream & More OPEN 11 A.M.-9 P.M. 1(lbe meetingng Jouse DOWNTOWN STARKE IN THE 1888 BUILDING Corner Of Thompson & Call Streets * Electronic sort * 300-sheet paper drawer * 50 sheet multipurpose tray ,. processor * Optional duplex * Monocomponent technology ... * CLong life components " 140 CALL RUSTY FOR INFORMATION THE OFFICE SHOP 20-YEARS EXPERIENCE ON ALL OFFICE MACHINE REPAIRS (904) 110 W. Call St., Starke, FL FAX: 964-5764 t us quote your et oner... (904) 364-6905 C4: $ Wfim , "' - I Yfsa~ t laFf' 44( Oct. 27,2005 TELEGRAPH Page9A Taking Care of Business " ftP IJ 01 WELCOME NEW MEMBERS PO Drawer B, Waldo, FL 32694 Fax: (352) 468-2482 (352) 468-1001 cityofwaldo@waldo-fl.com HBlED E5 sI/ITmnlrTI IIC. -j PORTABLE RESTROOMS .. Weddings Job Site. ab __. L__--- .i2--W..,--I-^- -S Specialevns Scotty aylor 2865-C Blanding Blvd. Middleburg, FL 32068 EeUtIV81S *cilicefte A special "Thank You" to Trinity Mortgage for hosting the October Lunch and Learn. ,.tt al treet,.. EDq-MZ-NZ7I EFRM EU'I-17-DBtl CELL' The Doran Jason Group OF FLORIDA 10C. 3155 NW 82nd Ave., Ste. 101 Miami, FL 33122 YOU ARE IN CONTROL OF BRADFORD COUNTS FUTURE! Are you prepared for smart, sustainable growth? We hope to see you at the workshop hosted by the Tri-County Community Awareness Group. 'Date: Oct. 31,2005 Time: 5:30-6:30 p.m. Location: Speakers: Santa Fe Community College Andrews Cultural Center 201 E. Call St., Starke Scoft Koons Regional Planning Council Ken Sauer City Manager, Starke James Crawford Bradford County Manager Wi)ere West Call Street between Bay and Broadway streets Friday, Nov. 25 From 4-8 p.m. Jomt for t)e Joibap Great Food Live Entertainment Gift Vendors Raffles Auctions Beautiful Decorations Moonwalk Air Trampoline- Professional Photos With Santa by Brenda Thornton Holiday Season Calendar Main Street Starke, Inc. November 15 Board of Directors Meeting Main Street Office December 2 Town Meeting S9a.m. Main Street Office December 9 Christmas Tree Lighting, 6 p.m. Wainwright Park December 10 City of Starke Christmas Parade 3 p.m. December 10-15 Christmas Decoration Contest Residents and Storefronts Welcome Applications at Main Street Starke, Inc. 100 E. Call Street, Starke Call MAIN STREET STARKE, INC. for further information (904) 964-5278 "Home for the Holidays" is an event'for the whole family with proceeds used toward the beautification of West Call Street. This event is hosted by Main Street Starke, Inc., Results Fitness Center, Denmark Furniture and Bradford Family Dentistry. MARK YOUR CALENDAR BASH When:, Where: Time: Thursday, Nov. 3 New River Solid Waste 5-7 p.m. RAIFORD BRADFORD COUNTY TOURISM DEVELOPMENT COUNCIL When: Time: Where: Friday, Nov. 4 Noon NFRCC Boardroom STARKE LUNCH AND LEARN When: Monday, Nov. 7 Time: Noon Where: Shoney's STARKE RIBBON CUTTING When: Wednesday, Nov. 9 Time: 11:30 a.m.-1 p.m. Where: Lake City Community College Sleary hours L'oeu'res will be serv-ed LAKE CITY BRADFORD COUNTY DEVELOPMENT AUTHORITY When: Thursday, Nov. 10 Time:, Noon Where: NFRCC Boardroom STARKE BASH When: Thursday, Nov. 10 Where: Windsor Manor 602 E. Laura St. Time: 5-7 p.m. STARKE -1-- Page 10A TELEGRAPH Oct. 27, 2005 RlIiiu:: 94 HURRY, OFFERS END OCTOBER 31, 2005. Class-exclusive PowerFoldT third-row seat Best-in-class interior space Best-in-class hip room OTAL CASH BACK "TOTAL CASH BACK FOR72 MONTHS* COULD MEAN OVER 11, 500 IN FINANCE SAVINGS Best-selling truck for 28 years running Best-in-class towing capacity and payload ***** NHTSA Frontal Crash Test Rating+ ....'AMi S rUCASH BACK FOR 72 MONTH S* COULD MEAN OVER 10,300 IN FINANCE SAVINGS SEE YOUR LOCAL SOUTHERN FORD DEALER S -- f6irdvehicles.com 'Not all buy .. ;f for F..,r(d crediti t APR, Siviryjs based on financing a 2005 Ford F-160 SuperCrew 4x2 Lariat with 5.4L EFI V8 engine PEP 508A at 8.5',. APR average; 2005 Expedition 4%2 LJnitg with 5,4L 3V SOHC V8 PEP 500A at 7.8% APR average vs. 0.0% APR for 72 months at $13.89 per month, per $1,000 financed with $0 down. Take new retail ,i'/; torf frem i@ a took by 1 u(/3 1/05, See dealer for residency restrictions and complete details. +Government star ratings are part of the National Highway Traffic Safety Administratforpn r'ir ( f,',; Now Car Assessment Program (NCAP). y, I i *Section B: Thursday, October27,-2005------- News from Bradford County, Union County and the Lake Region area Pumpkin Escape brings Halloween fun this Saturday The festival's haunted house will also be open Thursday and Friday By CLIFF SMELLEY Telegraph Staff Writer Candy, costume and -paupkin-carving contests, a haunted- house .and .even chances to win two used automobiles. It's all part of the 11h annual Great Pumpkin Escape, which will be held Saturday, Oct..29. in downtown Starke. The festival, which takes place on Call, Thompson and Walnut streets, is open 5-9 p.m., with candy being handed out to children 6-8 p.m. American Legion Post 56 and Town and Country Ford Mercury of Starke will each be holding drawings in which the lucky winners will walk away. make that drive away, with a used-car. . People will also have the opportunity to take a whack at a car with a sledgehammer. courtesy of Town and Country Ford Mercury. The "Crash and $Bash" offers people one hit with the sledgehammer for $1 or 10 hits for $5. -- All proceeds from the Crash and Bash, and Town and Country's drawing for the used car ($5 per entry), will benefit the -Breast Cancer Foundation in the niame -of Town and Country employee Tammy Boone, a cancer survivor. A haunted house, sure to provide some goosebumps and thrills, will be set up adjacent to the Starke- Post Office 6n Walnut, Street and be open from 5-9 p.m. The haunted house will also be open on Thursday, Oct. 27, andTrida). Oct. 28, 7-9 p.m. Admission io the haunted tduate is $S for children aid $3 for adults. This year's costume contest, which will be held at the stage adjacent to the Santa Fe Community Cofege Andrew s Center, begins at 6:30 p.m.. followed by judging at 7 p.m. The Santa Fe stage will also feature perfromances by the E-uropeanRal.ly school Bike Fest starts Thursday By CLIFF SMELLEY Telegraph Staff Writer It has hosted big eventsJin the past, but next week will be a new k venture, for the European Rally and Performance Driving School when it combines four different-types of racing to make up October Bike Fest 2005, which will be held Thursday-Sunday, Oct. 27-30. The event will be comprised of super moto; mini moto, pocket bike and scooter races, with open practice and official practice days scheduled for Oct. 27-28,. followed by qualifying heats on Oct. 29 and finals on Oct. 30. "What we're trying to do is -put ill -these single-day and two-day events that we've had over the past year or two together in one weekend and make it like a festival," said Ivor' Wigham, owner of the school. Wigham said it appears as if the event is going to draw participants from a 500-mile radius and he hopes those participants wind up racing in front of a larger crowd than they're used to. Pocket bike racers;for example, are not used to large crowds, Wigham said. "They normally race in front of 60 or 70-otherL competitors along with families and friends. They don't really race in front of a proper crowd or spectators," Wigham said. Still, for a first-time event, Wigham does not want to set his expectations too high. He is simply hoping for nice weather ald" a -reasonable amount of See FEST, p. 10B band Steel Country and a dance contest. A stage set up on Thompson Street will feature performances by various local bands. o - Entries for the pumpkin carving contest' should be submitted by. 3 p.m. at the Thompson Street display area. Name, age, phone number and address must be submitted with pumpkins. Booths, manned-by-various - businesses and community organizations, will line the streets of downtown Starke, offering children the chance to play games, at a charge of anywhere from 10 cents to $1, .and win prizes. There will be pony rides and "bounces," and the Cattyshack Ranch will be present with its live Tigers. Both Bobkat's and The Olde Meeting House restaurants will be open during the Great Pumpkin Escape and the Florida Twin Theater will have special showings all evening with a $4 admission. For more information about this year's Great Pumpkin Escape, please call Connie Stocker at (904) 806-4191. 2004 CHEVY CAVALIER 4-DOO 2002 FORD F-150 XLT #P1171 Air Conditioning, Automatic Transmission, #P1183 V8 Engine, Automatic Transmission, Air Conditioning, Power Power Steering & Brakes, AM/FM Stereo & More! Windows Locks Mirrors, AM/FM Stereo w/CD, Fiberglass Cap & More. ; CUPO : ; COUPOINli I Page 2B TELEGRAPH, TIMES & MONITOR--B-SECTION Oct. 27, 2005 CRIME - Recent arrests in Bradford, Clay or Union The following individuals were arrested recently by local law enforcement officers 'in Bradford, Clay (Keystone Heights area) or Union County: Timothy Allen Fugatt, 29, of Lawtey was arrested Oct. 19 by Bradford Investigator M.L. McKenzie for grand theft. Fugatt is charged with removing equipment from a work truck owned by Florida Cable Co. while he was an employee, Investigator McKenzie said. Fugatt moved prior to leaving the company without giving his new address to Florida Cable. Items valued at approximately $1,906.90 and $577.99 in cash were taken from the truck, Investigator McKenzie said. A $5,000 surety bond was posted for his release from custody. . Jermaine Thomas, 19, of Keystone Heights was arrested Oct. 18 by Clay Detective Jerry Bay for dealing in stolen property. Thomas is charged with selling a stolen television to a pawn shop for $400. The television valued at $1,711 and several other items were stolen from a residence in Keystone on July 5. Thomas used his own driver's license in the transaction, Detective Bay said. Theresa Marie Moore, 47, of Worthington Springs was arrested Oct. 18 by Union Deputy Brett Handley for domestic aggravated assault. Moore is charged with attempting to run over the victim with a pickup truck following a verbal argument. Bond was set at $5,000. Sheryl Ann McKeown, 35, of Keystone Heights was arrested Oct. 20 by Clay Deputy T. Dampier for attempting, to obtain a controlled substance by fraud. A female called in a prescription for Tylenol #3 (codeine) to the- CVS pharmacy. When the doctor's office was contacted, it was verified the prescription was fraudulent. McKeown arrived at CVS and attempted to pick up the medication. She was questioned, admitted to calling in the prescription and was arrested, Deputy Dampier said. Stacey Nicole Bailey, 23, of Lawtey was arrested. Oct. 19 by Starke Sgt. William Brown for uttering a forged instrument and petit theft. Bailey is charged with receiving $127.15 from the victim, knowing the dn, -afed ait wsm not ,the nersonf on the check, Sgt. Bro Bond was set at $5,00( was also charged with driving while license suspended knowingly. Phelim Jared Berry, 18, of Melrose was arrested Oct. 23 by Clay Deputy John A. Murphy for grand theft and possession of drug paraphernalia. Berry is charged with stealing two tires and rims from the victim's vehicle with the intent to replace two flat tires on his disabled car, Deputy Murphy said. When he found they did not fit his vehicle, he hid them in a wooded area, Deputy Murphy said. A marijuana pipe was found on the- floor board of Berry's vehicle. Travis Aldridge, 20,, of Starke was arrested Oct. 20 by Bradford Depuity Mann for possession sale of controlled substance. Bond was set at $15,000. Wandarda Ray, 25, of Melrose was arrested Oct. 20 by Starke Officer Paul King for criminal mischief. A $5,000 surety bond was posted for Ray's release from custody. Mary Stephens, 51, of Lawtey was arrested Oct. 20 by Bradford Deputy Robert Lyons for disorderly intoxication. Bond was set at $1,000. l- .sad. Kimberly Nichole Padgett, wn said. 25, of Starke was arrested Oct. 0. Bailey 20 by Starke Sgt. Kevin D. Mueller for dealing in stolen property. Padgett is charged with selling items to a local --pawn shop for $40. The items were miscellaneous jewelry stolen from a residence on Sept. 25. Padgett knew or should have known the items were stolen, Sgt. Mueller-said. She was released from custody after a $10,000 surety bond' ,; was posted. Padgett was additionally charged by Clay County with possession -of OUR drug paraphernalia. She posted TINE a $217 cash bond on the CIPE charge. Christopher Pressley, 31, of / Starke was arrested Oct. 23 by Clay deputies for violating an injunction for protection. Of. Stephen Dale Cornett, 42, of S RifoTkfas arf6sted'O6Y22 ly ITEO, Starke Officer J.W. Hooper for possessidron of prescription' medication without a prescription. Cornett had a Percocet tablet and two Xanex in a small bottle, Officer Hooper said. He did not have a prescription for the drugs, Officer Hooper said. A $15,000 surety bond was posted for his release. Tasha Johnson, 21, of Starke was arrested Oct. 20 by Starke Officer Keith Parker for assault and trespass after warning. Police responded to a call at the T.H.E. Apts. where Johnson was threatening and bothering the victim. She had been ordered to say away from the apartments, Officer Parker said. Johnson was additionally charged on warrants with violation .of probation aggravated battery and failure to appear petit theft. Total bond was set at $9,000. Velma Jene Covington, 48, of Starke was arrested Oct. 22 by Officer Hooper for possession' of drug paraphernalia. A metal tube with residue was found. in Covington's possession during a traffic stop just after midnight, Officer Hooper said. A $1,000. surety bond' was posted for her release from custody. Phillip Carl Heavrin, 19, of Keystone Heights was arrested Oct. 21 by Clay Deputy T. Strickland for disorderly intoxication. Heavrin was seen kicking a fence and swearing at the football game.. He smelled strongly of an alcoholic beverage. When asked to leave he punched a sign in- the parking lot several times and was taken into custody,'Deputy Strickland said. Jason Lemay, 23, of Lake Butler was arrested. Oct' 18 by probation officers on a warrant .from Suwannee for violation of probation. A $5,000 surety bond was posted for his release from custody, Tracy Thompson, 27, of Keystone Heights was arrested Oct. 20 by Clay deputies on a warrant for indirect criminal contempt. * Joshua Libby, 19, of Starke was arrested Oct. 18 by Bradfird Sgt. ,J. iser.fo' failure to appear fleemig, attempting to elude. Bond. as set at $10,000. Angela Sweat, 39, of Starke was arrested Oct. 18 by Starke Officer Danny Brown for Randall Pass, 49, of Keystone Heights was, arrested Oct. 19 by Clay deputies on a warrant for worthless check. Betty Roperti, 44, of Lawtey was arrested Oct. 19 by Clay deputies on a warrant for indirect contempt worthless checks. Malcolm Newby, 18, of Starke was arrested Oct. 20 by Baker deputies for failure to appear battery and criminal mischief. Bond was set at $5,000. Michael. Smith, 39, of Alachua was arrested Oct. 20 by Alachua deputies on a Bradford warrant for failure to appear possession of drug paraphernalia. He was released on his own recognizance. Geoffrey Parrish, 31, of Lake Butler was arrested Oct. 21 by probation officers for violation of probation possession of drug paraphernalia from Alachua. A $ 1,000 surety bond was posted for his release from custody. 'Victoria Starlin, 21, of Brooker was arrested Oct. 20 by probation officers on. a Union warrant for violation of probation grand theft. She was released after a $5,000 surety bond was posted. Stephen McBride, 39, of Keystone Heights was arrested Oct. 22 by Clay deputies on a warrant for violation of probation possession of cocaine. William Ward, 41, of Keystone Heights was arrested Opt. 23 by Clay deputies on a warrant for cruelty to animals. Traffic Mathew Grant, 21,'of Starke was arrested Oct. 18 by-Starke Officer Matt Watson for driving while license suspended or revoked (DWLS). Bond was set at $500. Grant was released on his own recognizance by Judge David Giant. Benjamin Jacobson, 30, of Keystone Heights was arrested Oct. 21 by Bradford 'Deputy David Young for DWLS with knowledge. A $500 cash bond wa' post' for riis release'from" Pearl VanEchteld, 45, of Keystone Heights was arrested Oct. 21 by Clay deputies for DWLS habitual. violation of probation Bradford warrant for failure to worthless check from Jerry Nelson Isom, 39, of appear DWLS and possession Columbia. Bond was set at Keystone Heights was arrested of drug paraphernalia. Bond $484.19. Oct. 23 by Clay Deputy T.W. was set at $4,000. Smart stioS .. FAMILY HAIR SALON A Full Service Salon with ProPessional Hair Care Products For All Your Needs. __ GRANDOPENING'-i FUL S]ERV&~IC~ E] LOCATED IN WAL*MART" SArmicnvit a, (904) 964-7651 14500 US Hwy 301 S. Starke, FL For Employment Opportunities Call 1-877-789-9545;s;gle.com Please join us Wednesday, October 26th and Thursday, October 27th! AUTOIZD TOLOE GOOYEA & EDLNE: TIE6ELE O 4AL NW CHRYSLER / DODGE / JEEP 8:00-5:00 MON FRI 8:00 1:00 SAT 14 E SERVICE ALL MAKES & MODELS 99MADE WITH ST. AUGUST SECRET RE Worth the Driv'e 480 S. U.S. HWY. 17, SAN MA (4 miles S of bridge in Palatka) 386-325-1871 Roper as a habitual traffic offender DWLS knowingly (eight suspensions). Roger Hartley, 40, of Starke was arrested Oct. 18 by Clay deputies for DWLS. Andrew Garnett, 33, of Keystone Heights was arrested Oct. 15 by Clay deputies for DWLS and no motorcycle endorsement. James Higginbotham, 30, of Ft. McCoy was arrested Oct. 19 by Bradford Deputy Lee Garnto for violation of probation escape and felony DWLS and driving under the influence (DUI) with injuries. Henry Lawrence, 25, of Jacksonville was arrested Oct. 18 by Bradford Deputy Lori Jestes for failure to appear violation of probation DWLS and violation of, probation possession cannabis from Baker County. Bond was set at $4,000. Joseph White, 22, of Hawthorne was arrested Oct. 18 by Putnam deputies for failure to appear DWLS (two counts). White was released after surety bonds totaling $.1,220 were posted. Theodore Frank-Hunter Jr., 38, of Jacksonville was arrested Oct. 21 by Jackson ille officers on a warrant from Bradford for failure to appear violation of probation no valid driver's license. Bond was set at $5,000. Ronald Wood, 45, of Starke - was arrested Oct. 20 by Bradford Deputy D.E. Cannon on- a warrant from Charlotte County for violation of probation DUI. A $1,000 cash bond was posted for his release from custody. Michael Clark Devitt, 42, of Keystone Heights was arrested Oct. 22 by Clay Deputy S.J. Abrahamsen for failure to appear DWLS from Columbia County with bond set at $1,500. Jeffrey Baldlinelli, 23, of Hawthorne was arrested Oct. 17 by Alachua d,epupies on a, Bradford warrant for violation of probation DWLS. Bond was set at $4,b00. Elijah Tisdale, 37, of Orlando. was arrested Oct. 17 by Orange deputies on a IL~I~II~L~III Oct. 27, 2005 TELEGRAPH, TIMES & MONITOR-B-SECTION Page 3B Mr. and Mrs. Thomas Bradley Hapner Storms and Hapner are wed On Oct. 8, 2005, Jacquelyn Lorraine Storms and Thomas Bradley Hapner were married at Ft. Hood in Killeen, Texas. The bride was given in mar- riage by her father Christopher Storms. Chad Hapner was best man. A. reception followed the ceremony in Phantom Warrior Club at Ft. Hood. The wedding cake was white chocolate and raspberry. The groom's cake had a Florida Gator theme. The bride graduated, from BIRTHS A d. Savannah Jackson Savannah Jackson Scott R Jackson and Dr. Jennifer L. Brown-Jackson announce the birth of their daughter, Savannah Reece Jackson, on July 10, 2005, in the Women's. Center at North Florida Regional Medical Center in Gainesville. Sa%.annah ,.eighed 6 pounds, andI 1P5'ounces, and measured" 19 inches in length. She joins a three-year-old sister, Madison Lee Jackson. Grandparents are Lynne Jackson of Atlantic Beach, and the late Bob Jackson; and Marvin and Judy Brown of Starke. Great grandmother is Nita B. McRae of Starke. Jude Hanson, Brent and Malena Hanson of Starke announce the birth of their son, Jude Walker Hanson, on Sept. 30, 2005. Jude weighed 7 pounds and measured 20Y2 inches in length. He joins brothers Elijah and Simon Hanson. Ellison High School. and, Central Texas in Killeen. The groom graduated from Keystone Heights High School and currently is serving in the U.S. Army. He will deploy to Kuwait in November. A local reception for the couple will be held on Saturday, Oct. 29, 2005, in the Melrose Lodge on Palmetto Avenue from 1.2 noon' until 2 p.m. All family and friends are invited. Paternal grandparents are Garry and'Mary Hanson of Lawtey. Paternal great-grandmother is Katherine Fugatt of Lawtey. Maternal grandparents are Larry and Linda Roberts of Brooker. Maternal great-grandmother is Vera Nugent of Starke. Colby Wade King Colby King Chelsea Lynn and Donnie King III of Starke announce the birth of their son, Colby Wade'King, on Oct. 1"5, 2005, at Alachua General Hospital in Gainesville. Colby weighed 8 pounds, 1 ounce and measured 20 inches in length. He joins a brother Hunter J. King. Maternal grandparents are Dee and John Miller of Starke. Maternal great-grandparents are Lottie Miller of Starke, Clifford and Mary Miller of Florahome. Paternal grandparents are Donald and Tammy King of Starke. Paternal great-grandparents are Raye Thomas of Starke, Betty-' and Pastor Leon Minchew of Starke, Betty and Brian Wyatt of Starke and Eugene and. Pat Dean of Jacksonville. Lindsey Leigh Traylor and Joshua Evan Nichols Traylor and Nichols to wed Norman and Debbie Traylor of Brooker announce the upcoming marriage of their daughter, Lindsey Leigh Traylor of Brooker, to Joshua Evan Nichols of Brooker, son of Debi and Tim Burke of Starke. The bride-elect is a graduate of Santa Fe Community College (SFCC) dental hygiene program. She is employed by Exceptional Dentistry. The groom-elect is a graduate of SFCC's EMT program. He is currently attending Ocala Fire' School. - The wedding will be held at 4 p.m. on Saturday, Nov. 19, 2005, at Eagle Harbor Golf Club in Fleming Island. A reception will follow the ceremony. Invitations were mailed. Kellie Kitchens and James Davis Kitchens and Davis to wed NOv. 12 Dennis and Dorothy Kitchens of Starke announce Brooke Bunch was first place winner. Jarrett Shadd was Cheyenne Spratlin was runner up at the Raiford 1st place winner for the Post Office. Lawtey Post Office. Winners of Sweetest Pumpkin contest announced On Oct. 22, Raiford and Lawtey post offices co-hosted Hersh'eys Sweetest Pumpkin contest for area children, The contest was open to children ages 6-12 and was held at the Raiford Post Office. Children brought their own pumpkins and the post office supplied candy, glue and other decorating material. the upcoming marriage of their daughter, Kellie Kitchens, to James "Jimmy" Davis, son of Gary and Ann Davis of Starke. The bride-elect is a graduate of Bradford High School (BHS) and is employed by Clarksille Refrigerated Lines in Macclenny. .The -groQm-elect graduated frgom ,BHS and works for Jacksonville Fire Rescue. The wedding will take place at 6:30.p.m. on Saturday, Nov. 12, 2005, in the Chapel "at Camp Blanding. A reception will immediately follow the ceremony. Family and friends are invited. Host a chamber BASH... If you., are interested.,,in hgsing-a Busippess andc S.cipl Hour (BASH) for the North Florida Regional Chamber of Commerce, call (904) 964- 5278. One winner and one runner up was selected. The winners each receive a Hershey's stuffed bear, either a large "hugs" bear or a small "kiss" bear. USPS grand prize winner will. receive a digital camera and will be selected from local post office entries. On or about Dec, 21, postal headquarters will * Auto Accidents * Work Injuries * Headaches * Neck and Back Pain select the winner. Winners will also0be entered in "The Hershey's national con- test" with the chance to win $10,000. Hershey's national contest began or Aug, I and ends Nov. 30. To enter the Hershey's national contest, go to or come by the Raiford post office Dr. Virgil A. Berry CHIROPRACTIC PHYSICIAN Hwy. Cal230, Stae 964801 Hwy. 230, Starke WLMT SOUTEL EVECARE General Eye Care & Surgery EYE EXAMS* CATARACT SURGERY* GLAUCOMA MACULAR DEGENERATION DIABETES LASERS GLASSES Eduardo M. Bedoya, MD Board Certified, American Board of OphthalMology ' Medicare, Medicald, Armed, Blue Crou/Blue Shield & other Insurance accepted. Se habla espanol. 620 E. Main St., Lake Butler 386-496-2928 CUTTING BAILING SALES DELIVERY pd K(# Kim Hayes 904-964-3585 rdh58@earthlink.net ohol making your life iTT pr6bleml 125% loans available Florida Credit Union STA 1371 S All residents of Alachua, Bradford, Citrus, Columbia, Gilchrist, Levy, Marion, South Clay, Suwannee or Union counties can join Florida CU. *Sulect to credit oapmt l M~ iuflIIm tn mo d ii 0B1 0 F6inty l ,malinatno m lay o required to obtain he loan. Minimum loan is $1 ,00O there F(U pai 3 losing tosts Estimated closing ,rsts for loans . b ,wec n ti,. 000an'd 11, ,Ifre l tli t l tl, iiii YaIII lolt d n Illlertisi d hfiI n will be e l inIhl ed based on youi r E dilt h ;ltu I andl tie pl; ,pp blp loan-Io-value atiu oEx' m in'da Ciedit Union loans not llgl OINe '",01 ,' I I ,itl t liT-o ARKE LOCATION . Walnut Street (904) 964-1427 LENDER -- Dale & Owners Is ale Lmf me J Editorial/Opinion Thursday, October 27, 2005 Page 4B Iraq and the press: Are we getting the truth? Are news writers, photographers, newscasters, et al., providing Americans with straight news as it unfolds in Iraq, or --.do-we-get-versions'colored with personal views, prejudices and opinions, slanted by the individual or the organization to which he reports? Sometimes news lies in what is being omitted, rather than what is included. Can a professional news person file a report without revealing personal views or prejudices? Do reporters shape stories to fit readers' (or listeners') views and opinions? Have we lost a portion of our national integrity? There are many agendas being pushed, with the war in Iraq being used as a vehicle to further personal agendas, some of which may be unrelated to the Iraq war or any war. It is an ,unpopular war by any standard, but some people have chosen inappropriate means for venting their objections and/or frustration. The war in Iraq is unlike anything we have ever encountered in battle. A few have compared it to Vietnam, but in that tropical country we faced a very different terrain from the arid conditions of Iraq, and the enemy was distinguishable by physiology, whereas the enemy in Iraq looks exactly as his counterpart, the supporters of the allies. Aside from their brutality, the two conflicts have little in common. The Iraq war splits Americans along the fault line of politics, reflecting the closeness of the presidential elections in 2000 and 2004. Men and women of my generation remember that President Franklin D. Roosevelt, darling of the Democrats, had many bitter detractors, but their numbers were so small as to be ineffective in upsetting his-programs. When the United States entered World War II, Roosevelt's critics were silenced because the American public saw the engagement as a "good war," with "bad" guys arrayed against the "good" guys. The current administration has never enjoyed majority support for its use of force to attain its ends. Sergeant Major Wayne Wynn, a Bradford County native and BHS graduate (1968), with 38 years of military service that includes tours of duty in Vietnam and Iraq, is concerned that news reports are often inaccurate, for whatever reason, and fail to convey the bigger picture. A major concern for Wynn is the reporters' propensity to take words and sentences out of context, altering the meaning of what is being said. "Reporters are all over the place" he says, embedded with the troops. They go out on patrols with squads to observe and report activities and are warned to find cover when shooting begins. Wynn has no problem with reporters being on an assignment and compliments them on seeking cover at appropriate times, but he has a problem when they interview individual soldiers. He says an interview may take 15 or 20 ininutes, but when broadcast, only one sentence will be aired. The one sentence being used does,not accurately relate the s ~ierQ a n. opinion or description of the action. It is selected to further the agenda of the reporter or his sponsor. Wynn says American soldiers will abandon their own positions to protect, or keep from drawing fire toward, women and children, but Iraqi soldiers will use women and children as human shields in combat situations. Pictures of bodies are sometimes shown as being victims of American fire, when actually the fire came from Iraqi sources. Life is cheap in the M_ ideastand danger-lurks in e\ery bush and crevice. Roadside bombings are reported daily, and they represent .a serious and deadly threat to Americans, but the Iraqi people are reporting the location of bombs prior to their being detonated, thus saving many lives. Early on, the Iraqis.did not trust Americans, and "saw nothing, and reported nothing," but the situation is changing. Iraqi children, (always sent by their parents) report to military authorities the locatiort of roadside Wake up Dear Editor: The debate is really heating up over displaying the cross. While all of the writers make some good points a lot of their beliefs however are founded on a lifetime of misleading information. While reading your letters it's as if we're on the Titanic, -we're in the, process of sinking but the captain hasn't informed anyone yet so life'goes' on as usual, eating, drinking and debating over what song the band should play next. Mr. Southern is correct, people do need to hear the truth. The scriptures say the truth shall make you free. It's a process not an incident and, yes, the truth does offend a lot of people. Jesus said that 'he would be a rock of offense and a stumbling block to many. This is true in the churches also. On the other hand, Mr. Bransford is correct, the Bible doesn't instruct us to place crosses on towers or in our yards or anywhere else. We are instructed to pick up our cross and bear it (spiritual endurance), The cross is a' means of execution, a place to die, It's where we lay down our own lusts, desires, traditions and opinions and exchange. them for God's truths and desires. It's a place of repentance. You'If find it difficult to carry all this other baggage while holding your' As for Christians or anyone else for that matter defending ?he constitution or using it to defend their belief well you're a hundred years too late. Unlike the word,of God which never changes, the constitution has been amended, reinterpreted and side stepped until it is hardly worth the effort it took to create it, The constitution says no direct tax shall be laid upon the people yet we have the IRS. The constitution says that congress is to coin money and regulate the value thereof, and -no state shall make anything but gold and silver coin a .tender in payment of debts, yet we have the federal reserve. Like federal, express there's nothing federal about the fed and there's nothing for us in reserve. It's owned by a group of international banksters who' bought off the government in 1913 which, by the way, is the same year the income tax began being phased in. Coincidence? Not hardly. The tax was imposed to pay, the loans with interest that government was now going to " need to function. , We were told in school the income tax was enacted to finance World War I, yet the war didn't begin until 1914 and the U.S. did not become involved until April of 1917. Woodrow Wilson called the federal reserve act the most -heinous act ever perpetrated on a people, yet he signed it into law. The constitution says excessive bail shall not be required, nor excessive fines imposed, nor cruel and unusual punishment inflicted, yet bails- are so high that most citizens are forced to borrow or use a bondsman, and the fines so high monthly payment plans are instituted, and daily we see images of police beating citizens around this nation, and if it's not caught on tape very few are ever charged. These are not a few bad officers but rather a change in unwritten policy and attitude. Maybe the citizens should adopt some zero tolerance policies, The constitution says there are to be no unreasonable searches of persons, houses, papers andeffects without a, warrant sworn by oath or affirmation described the place bombs, and receive a small stipend ($10) for the information. Sometimes the information is false, a ruse to pick up a few dollars. Bombs are often placed near Ifraqi-i homes and when detonated, blow away part of the house. Homeowners are now cooperating with Americans to expose bombs and save their homes. The reluctance to cooperate with Allied troops is based on fear of reprisal by Iraqi henchmen (for lack of a better term). In cities, such as Baghdad, these henchmen rise to power through intimidation and force and establish fiefdoms over which they exercise control. They rule by fear. To protect themselves and their families, Iraqis have learned to "see nothing,", avoiding the wrath of -the iron-fisted -henchmen, in- whose territories they live. Iraq was then a nation ruled by fear at every leel, from .the precinct to the royal. palace of Saddam Hussein, This growing cooperation by the Iraqi public goes unreported',yet -it may be, the best news in recent months. Iraqis are a hostile, violent .people, ready to resort to fisticuffs to settle disputes. When Wynn arrived in Iraq, a gasoline shortage caused long lines (up to a mile) at gas pumps. Fighting in the line and at the pumps was commonplace. Black markets flourished, and gas was often sold and resold two or more times before being used. The price at the pump was -$3 per gallon and increased by a dollar each time it changed hands. Drivers of gasoline tankers would stop along the roads and sell gas, then claim to have been hijacked. Fear breeds anger and anger breeds hostility. A case in point is reflected in the lack of highway courtesy. Near Ramadi three highways came together in a traffic circle. Fender-benders are common, and usually settled by fistfights. Apparently there is little or no automotive insurance and frustration is satisfied on the spot. ' SWhen Americans arrived aud began searching homes, they found large caches of moneyS many thousands of dollars in Iraqi and American funds. It is this money that is largely funding expenditures for renovation of Iraqi buildings, utilities and other uses not generally found in military budgets and expedites a sea change in relations. Schools are being rebuilt and Iraqi students are returning; Mosques are being renovated and utilities returned to service. Many good things are going on outside military activities, but are not being reported. In prewar Iraq, propane gas was. the primary fuel for' cooking, but during the gas shortage, there was also a propane shortage, and Iraqis living near rivers and streams began cutting trees for fuel. That situation has changed; tree-cutting, has been curtailed. River bottom land is used for growing food, and Iraq is almost self-sufficient in production of meat and vegetables. Kurds, a nomadic people living on the arid plains and mountains of northern Iraq. tending g9ats and sheep in riuch the same waN as. was done at the time oftChrist; are most Sunni Muslims. They represent about i23 percent"-f the'Iracji' population, and in spite of being Sunnis, are severely persecuted by Iraqis, Iranians and Turks. "We are winning the war," says Wynn, "but it will take time as we gain the confidence .and trust of the people." A democratic and stable government in Iraq will serve the interests of the free world and cool the fervor of Middle Eastern governments and people to hold the free world hostage to petroleum products. The lives of nearly 2,000 men and women have brought us to this time and place in history, and to quit the battle at this point in time would be to waste those lives. Let us stay the course and complete the job in order that these men and women will not have died in vain. By Buster Rahn, Editorial Writer to be searched and the person or things to be seized, yet how often do we see local law enforcement with folks stopped for some traffic violation going through these peoples' belongings. You can't even enter the courthouse without being subjected to an illegal search, while inside sit judges who have. sworn an oath to uphold the constitution. - I've only scratched the surface but can't you see how ludicrous it is for a Christian to be defending or using for a defense the constitution. 'A Christian's life is supposed to be based on truth, the thing most people fail to realize is the Christian religion, is not the most practiced religion in the U.S. or anywhere else. The, most practiced religion is nationalism, which, like Catho,l icism-, and protestantism, seeks to ,control the minds of its followers' through deceptive doctrines and practices. For instance if a flag is depictive of the ruling and reigning authority in the place which it is displayed, then what are American flags doing in the churches and upon your altars. Shouldn't God be at least allowed to' rule,. in the churches? They are there because of 501C3 laws which in reality is Jesus incorporated, not Jesus Christ. It is a marriage between church and state, which not only violate God's law, it is another violation of your constitution. Congress shall make no law respecting an establishment of religion. Psalm 74:4 Thine enemies roar in the midst of thy congregations; they set up their ensigns foi signs. The word ensign means flag, more symbolism, And as for a Christians pledging their allegiance to the flag, the word Christian means follower of Jesus Christ. Your allegiance can be to him onl). Didn't Jesus say no man can serve two masters, under God being in the pledge is not the issue. That's smoke to mask the real issue. Why are atheists outraged at the sight of a cross while Christians are not in the least alarmed at corporate symbols on their altars. Weren't Shadrach, Meshach and Abednego thrown into the fiery furnace for refusing to engage in just such idolatry? Christians' are supposed to be united as one in Christ not divided into our different denominations, which literally means divide the nations (another prophecy fulfilled), We have been divided to the point where no one seems to know what or who to believe. Keep in mind the division is by design -, divide and conquer. The lines have been drawn where will you stand? If you choose Christ, the path is simple. First you must repent which simply means a change of mind, the unwilling become the willing, willing to accept whatever God requires of you. His yoke is easy. Secondly, you must be baptized in the name of Jesus Christ for the remission, of sins, Acts 2:38, Acts 4:12, Acts 8:16, Acts 10:48, Acts 19:5 and Matthew 28:19. When you have obeyed God you shall receive the gift of the Holy Ghost. And you will know without a doubt when this happens. You cannot have your sins remitted -by being baptized repeating the titles father, son and Holy Ghost as some teach; it won't-fly. You can't bake a cake by repeating the directions, you must follow the directions. I am a father and I am a son, but I can't sign my checks father or son. It isn't legal. Same thing you must use the name of the Lord. The practice of baptizing in titles. began at the council of Nicea in 325 AD nearly 300 years Reader 'takes aim' at Monitor ed tor ,- DearEditor: . In response to your "KH resident takes aim..." article I must submit this letter,.in rebuttal to some incorrect statements that you made in the article. 1. You say in paragraph 2. the KAA.A.declined to discuss renewing the contract until 2010 when the current .lease runs out." This is an untrue statement. I have listened to the tape of the KAA meeting of Sept. 21, where Scott Roberts informs the rest of the board of the reset of the rental rate to $4 per acre and the Keystone Sportman's Club (KSC) request to extend the lease for another 20. years. Mr. Canady then asks if the terms are the same, Mr. Roberts says they are and then Mr. Canady says they will. talk about the extension at another meeting. No one ever said as you say "... the KAA ...declined to discuss renewing the contract until 2010 when the current lease runs out." If you will take the time to listen to the tape as I have you will hear the true discussion. :2. You said "Valldejuli.... suggested the property's rental market value at $5,000 per acre might otherwise reap an annual rental revenue of $7,000,000." I said no such thing if you will read the written copy of my presentation to the city council which is also on tape where I said the asset value might be $7,000,000. I specifically said, "I am not here to quibble .about that rate, although it represents a very low rent for property that is worth at least $5,000 per acre, (and if you multiply 1,400 acres times $5,000 you see we are dealing -a $7,000,000 asset), since most realtors now are telling me with the recent appreciation in prices, vacant land acreage is now selling upwards of $10,000 to $15,000 per acre or more. Even if we take the conservative price of $5,000 per acre, $4 per acre per year represents a rental rate of only .08 percent, not even 1/10th of a percent of its market value. But be that as it may, that was the favorable lease that the City and the KSC signed in 1990. I have repeatedly said let the KSC alone in the enjoyment of their highly favorable lease ever since my written response to a report produced by Bruce Harvin and Bob Canady in June 2004." 3. You said, "Valldejuli ended his council presentation after the last apostle died. You will not find in the scriptures where the apostles ever baptized anyone anyway other than in the name of Jesus Christ. The doctrine of the trinity was conceived at this council * and states there are three coequal, coeternal, coexisting persons in the Godhead. the Bible does not.say Jesus was in the Godhead, it says the Godhead was in Him Col. 2:9. Titus 12:10-11. For there are many unruly and vain talkers and deceivers ... whose mouths must be stopped, who subvert whole houses, teaching things which they ought ,not, for filthy lucre's sake (dirty money). I believe it was Mrs. Warren who quoted a fool has said in his heart there is no God, but it is also written that it is better to be a drunkard than be deceived which is where most religious people are today. I' don't doubt anyone's experience with God but keep in mind:Judas had three and a half years of experiences with the Lord and died lost. Don't take my word on these issues investigate for yourself, work out your own salvation ... but for the unbeliever there is nothing more convincing than watching two thousand year old prophecies ,come to pass in amazing detail. Daniel spoke of a nation depicted as eagle's wings (USA) come out of a lion (Great Britain), another nation Depicted as a bear (Russia) and another as a four headed leopard (Germany). The multiple heads tell how many times the nation rises to power. Remember Hitler's third Reich. Germany is rising now for the fourth time, and just unveiled their new line of leopard tanks, said to be superior to any in the world today. These are the nations that will be in power just prior to the return of Christ. Are you ready? Michael Cole Graham our hearts." Really? then why are you making such a fuss about the symbol possibly being removed? God isn't in it. And Norma Greene why have Mr. Bevill move to Texas and "leave us alone"? I could swear that George Bush is from Texas and you can't find a stauncher Christian. She says Mr. Bevill is "trying to force us to live minus our religious beliefs." No he is not. He is trying to get a cross removed from a water tower. Here again, where does it say in your Bible to go and place See LETTER, p. 6B II by asking the city... to revoke any renegotiated contract that extended the life of the Sportsman's Club tenancy." This too is a fabrication as the written and tape record shows that I wrote and said, "Accordingly, I respectively submit the following example of a possible ordinance to consider for passage this day: We the City Council of Keystone Heights hereby state and direct that the Keystone Airport Authority be stopped from changing in any way the current lease due to expire in 201,0 between the City of Keystone Heights and the Keystone Sportsman's Club signed and dated June 25, 1990." I. never asked the city council to revoke any renegotiated contract of any kind. 4. Then you state "However, by then, any extension of the club's lease had already been turned down." This again is not true. Again if you will listen to the KAA meeting tape of Sept. 21, 2005, Chairman Canady simply deferred the discussion to a later date, no conclusions were ever made to approve or deny the 20 year extension and that is why I brought the issue up before the city council on Sept. 27, 2005 since the KSC requested the 20 year extension and the KAA was indeed considering it. Mr. Editor, your untruthful statements border on libelous since the public believes that what appears in the Monitor is indeed true. I trust, in the interest of factual journalism and professional ethics. you will do the right thing and print this letter and formally retract these untruthful statements. John A. Valldejuli Keystone Heights, FL Dissidents want to enjoy freedoms without cost Dear Editor: Mr. Rahn's "War is Hell" is straight on and to the point, which any of us who have served would agree" with completely. But I'm afraid he, Si. "'preaching to tl iechoir." Because the problem with anti-war individuals and political dissidents without military experience is that they want to enjoy the freedoms of this country without having to get their .own feet wet. Therefore, they don't, understand that if they were placed in that young man's shoes, at that time, at that place, they probably would have done the exact same thing. And you never hear them mention the "atrocities" of the enemy. They don't even understand that if it were not for our World War II veterans and all of those who lost their lives in that war, we would now .be saluting a German flag instead of our own and that if we don't quell this Muslim terrorism, we will all be bowing to Allah. Robert E. Bransford _Starke Why should Christians have more rights? Dear Editor: I'm sorry, but you really have to laugh at some of the absurdities that come from the mouths of Christians. You quoted Jeff Stockdale, a Madison Street Baptist minister, as saying of the demonstration at the tower, "it kind of goes back to marching around Jericho." So one would assume, using his logic, that he wants the water tower to fall down, bringing the cross down with it. Or did I misread the Bible about Jericho? Didn't the walls come tumbling down? - And poor Phyllis Warren says in her last letter that "God is not in the symbol, He is in Oct. 27, 2005 TELEGRiAPH, TIMES& MONITOR--B-SECTION Page 5B Jessie Coleman STARKE Jessie Bryant Coleman. 83, of Starke died Thursday, Oct. 20, 2005, at E.T. York Hospice Care Center in Gainesville following an extended illness. Born in Lumber City, Ga., Mr. Coleman moved to Starke in 1945. He was a contractor in the construction business and was a member of Starke Church of God for more than 40 years. He served in the U.S. Army during World War I1. -Mr. Coleman is survived by: his wife of 60 years Alice Coleman of Starke; a daughter Barbara Kirkland of Keystone Heights; three sisters, Editha Pittman of Jacksonville, Ruth Pope of Lumber City and Louise 'Harvill of Vidalia, Ga.; a brother Howard Coleman of Starke; two grandchildren and two great- grandchildren. He was preceded in death by a daughter and.son- in-law Pat and Alfred "Al" Waddell. Funeral services for Mr. Coleman were Oct. 22, 2005 in Starke Church of God with the Rev. David Pleasant officiating and the Rev. Robert Johnson assisting. Interment followed in Crosby Lake Cemetery under.the care of Archie Tanner Funeral Home of Starke. Julia George BEAUFORD, S.C. Julia "Julie" Elizabeth Walker George, 57, died Tuesday, Oct. 18, 2005, at her residence on Dataw Island in Beaufort. Born Jan. 12. 1948, Mrs. George was raised in Keystone Heights and attended Keystone 'Elementary, Bradford\ High School and St. Johns River Junior College She was a talented painter who had achieved a unique style which she portrayed in her landscape paintings of the South Carolina low country. Mrs. George is survived by: her husband, Al E. George of Dataw, Island; a sister Linda W. Wharton of Keystone Heights; and two nieces, Katherine W. Davis and Laura W. Richardson, both of Keystone Heights. She was preceded in death by her parents Mr. and Mrs. R. Lindsay Walker and a brother, R. Veazy Walker, all of Keystone Heights. A private memorial service Was held Oct. 21, 2005 at Sea Island Presbyterian Church 'in Beaufort with 'the Rev.. Steve Keeler conducting the services. Memorial contributions may be made to Friends of Carolina Hospice of Beaufort, 1110 13th Street, Port Royal, SC 29935. Ella Gockley LAKE BUTLER Ella Nora "Jackie" Gockley, 70, of Lake Butler died Saturday, Oct. 22, 2005, at Kindred Hospital North Florida in Green Cove Springs following an extended illness. Born in Blackshear, Ga., Mrs. Gockley lived in Starke before moving to Lake Butler 15 years ago. She was a LPN retiring from Windsor Manor due to ill health. Mrs. Gockley is survived by: her husband Robert Gockley of Lake Butler: four sons, Joe Bedford and Earl Bedford, both of Keystone Heights, Carl Bedford of Waldo and Dale Bedford of Starke; a step-son Danny Bedford of Homosassa; two daughters, Pam Harper and Tonya Martin, both of Melrose; a brother Buddy Aspinwall of South Carolina; a sister Susie Wilson of Brunswick, Ga.; 12 grandchildren and two great- grandchildren. She was preceded in death by two husbands, Joe Bedford Sr. and Jimmy Martin. Visitation was Oct.. 25, 2005. Burial will be at a later date in Crosby Lake Cemetery under the care of Archie Tanner Funeral Home of Starke. Frank Salvonik KEYSTONE HEIGHTS - Frank Salvonik, 84, of Keystone Heights died Monday, Oct. 3, 2005, at his residence. Born in Neffs, Ohio on Dec. 5, 1920, Mr. Salvonik moved to Keystone Heights in 1972 from Green Cove Springs where he was a carpenter. He attended Keystone United Methodist Church and served in the U.S. Navy during world War II and the Korean War. He was a member of Melrose Lodge #89, Shriner, Scottish Rite and Morocco Temple. Mr. Salvonik is survived by: a son Frank Salvonik; two sisters Mary and Barbara Muller; two grandchildren and one great- grandchild. Graveside services for Mr. Salvonik were Oct. 8, 2005 in Decoy Cemetery in Green Cove Springs under the care of Jones Funeral Home of Keystone Heights. Memorial contributions may be made to Hospice of the Lakes or the American Cancer Society. The family of the late Naomi Jenkins send thanks for your expressions of love and gratitude shown and extended to our family during our time of bereavement. Your kindness, thoughts, visits, flowers, most needed prayers,' and other contributions meant so much and were deeply appreciated. Special thanks to Bradford 'Terrace staff, Starke Dialysis Center and staff, Haile Funeral Home staff, True Vine Ministry, Mt. Zion A.M.E. Church, Macedonia Freewill Baptist Church, class of 1967 RJE High School, ministers, friends, coworkers andfamilyfor your acts of kindness and assistance at a needed time. Again, thank you and may God richly bless each of you. The McCray and Jenkins family Sf Tree Service and Timber Company IFREE ESTIMATES 24-Hr. Emergency Servicel Removal Topping Trimming * Stump Grinding Storm Damage i~, fsd 4 J d Savirt 8ag Sawi'/itg CoIuies RED STARLING BRADFORD RESIDENT 352-485-2197 352-745-6503 Oil Prices at record levels! Flooringl,,ics, te ot ngain- Beat the increase today! Dearfriends, past year has seen a number of industry wide price increases on many flooring products. The iooo store buying power of Carpet One has helped us to leverage minimal price effects on our assortment of flooring choices. Our suppliers have just recently notified us that yet another industry wide flooring price increase will take effect November-lndustry wide price increases that will save you money, whatever your budget is. Shop us today for the selection, value and expert installation that only Carpet One can deliver. Sincerely, President/Manager TEAL TILE CARPET ONE PS. To make iteasierforyou to have the perfect floors foryour home, hurry in today and make No Payments, with No Interest if paid by anuaryoo*. *O.A.C. eesSlmtfMi,U I Unique Warranties Exclusive Brands Personal Service Certified Installation I TEAL TILE CARPET ONE 131 N. Cherry Street, Starke, FL 904 964-7423. "200For free m e arpnd financing pre-approval visit CarpetOneom. For free measure and financing pre-approval visit CarpetOme.com. S.R. 100 crash is fatal A 67-year-old Live Oak man died Sunday afternoon after his vehicle overturned on S.R. 100. Larry Thomas Snider, driving 'a 1997 vehicle, was westbound on S.R. 100 when, for unknown reasons, the vehicle drifted off the roadway onto the northbound grassy shoulder, Florida' Highway Patrol Cpl. David Bazinet said. The vehicle rotated counter- clockwise, travelling across the roadway and onto the southbound grassy ditch, Cpl. Bazinet said. The vehicle overturned onto its roof before coming to final rest, Cpl. Bazinet said. The crash occurred at 5:32 p.m. Union rescue responded, but Snider was fatally injured in the Oct. 23 crash, Cpl. Bazinet said. Cherish all your happy moments: they make a fine cushion for old age. -Christopher Morley "When You gay It With Flowers It's Beautifully Said" Si, I~i irce4 l l I J#/ias t Florist Golf & Country Club A Hlloesen Party Friday, Oct. 28 5:30-9 p.m. Costume Parade Booths Hay Ride Ted's Music $5/Person- Kids under 12 FREE. Heavy hors d'oeuvres 1 > 904-964-5441 I SR-230 E (2 miles east of US-301) Starke I SUNSHINE HOME CENTER erF e 1-866-964-1817 4w 64I7711f %9"-' ............ ..... . (904) 9647711 Open 7 days a week' 218N. TpetAve. 17940 U.S. 301 N. Starke, FL Tina a- '- Mike Tina Crews Mike Biggs Service Manager Parts Manager ,, y ... "Easy tire tips to help keep your car on the road!" aite literally, they stand between yMOu Sad the road. 'ires are the only part, of your car that makes direct contact with t e asphalt, therefore it's vitally i f rtaNt that they are n top shape \m, evAery time you take to the road. Yet, they're one 4f the too worn for the road and help guide you to the best auto repairs that car owners need to be replaced. To be tire for your money. put off the most. After all, as extra sure, make an appoint- Price Tires, can be long as they're not com- ment with Tina to check the expensive. You should actu- pletely bald, you'll get tires for wear. ally determine how much around OK, right?. TIRE SHOPPING TIPS you're willing to spend WRONG! All tires are not created before you start shopping so The more worn your tire equal. The quality and han- that you'll know what, to treads, the less traction you dling capabilities can vary look for when comparing, will have on the road. Over significantly from one set of different tires. Also, com- time, this may have a nega- tires to another. It's import- pare installation prices and tive effect on your car's fuel ant for your car as well as warranties before making efficiency, as you're forced your wallet to. do a little your final purchase. to output more power- and homework before you make Ride and handling It burn more gas to cover a purchase. Here are a few may sound elementary, but the same distance. Worn easy criteria to look for. take a few moments to do tires are also dangerous. If Tread life The first research or ask Tina to find the treads are reduced by too attribute you'll have to out if there is any difference much, water will not be able research is how long the tires in the smoothness of the ride to pass through freely and will last. between one set of tires and may even cause hydroplan- Compare different types another. If you have the ing or slipping across the and brands of tires and make choice between two identi- water's surface. sure to use the same compar- cally priced tires with the DON'T CROSS THE ison factor for each. For same tread life and traction, LINE example, compare mileage a more comfortable ride can So, how do you know or lifespan for each tire. be a factor in your final when it's time to replace Traction --- This is decision. your vehicle's tires? Here's a another important factor. Let Style and appearance - simple rule of thumb: don't Tina know how much trac- Finally, check that the tires cross the line. Most, tires tion you need from your blend well with the rest 'of have a tread wear indicator tires. your vehicle. This is chiefly built into them a line that The grip factor will vary an aesthetic decision, and the runs across the tread face, for winter tires, performance weight you attribute to this which is 2/32 higher than the tires and all-season tires. criterion will have a lot to do base tread. If your tires are, Once you know what kind of with how much you care worn past that line, they are traction you need, Tina can about your car's appearance. IT-----------OD----- -~r -1"7! r --0 --- gOffer good a thru 12/31/05 vroet StarkSpecial Starting at 4 NEW TIRES MOUNTED & BALANCED (including Rotations for Life) +tax1 -- --- -w -m i -- --- -- -U- OBITUARIES: .2 c FP*EE FOOD! HAV ZOE E I u rmiirI TE Elr tint r sAt v i a I I Page 6B TELEGRAPH, TIMES & MONITOR--B-SECTION Oct. 27, 2005 LETTER Continued from p. 4B crosses on a water tower as part of your belief? Rachel Mosley says this country was founded on "God." Rachel, you need to go back to school and take a comprehensive history lesson. Doug Southern says that "God created man to have free will." But the King James version of the Bible I have says everything is according to the will of God. Which is it, Doug? It can't be both ways. But logic always does escape the Christian mind, doesn't it? No, Mitchell Brown, you are right. No earthly factory generates "all that light" from the stars. It's called nebular power, and no factory stops the oceans and seas from swallowing up the land. However, with global warming and inherent weather changes if you live long enough, you will see a great deal of the land being swallowed up, rainbow or no rainbow. And all of those good Christians talk about "their rights." What about the right of the non-Christians in this country? The latest polls show there are some 30 million people in this country who belong to no religion that's 14 percent of the U.S. population. And that's the conclusion of religion experts who compared results of the national survey of religious identification, conducted in 1990, and the American religious identification survey which in 2001 sought to update the earlier poll it went from 8 percent in 1990 to 14 percent in 2001. And of the 190 million or so that are left, there are Christians, Jews, Muslims, Buddhists, satanists, witches, etc. So why should the Christians have more rights that anyone else? Robert E. Bransford Starke Reader: Let the light of the cross shine in your hearts Dear Editor: I would like to take this- time to publicly thank you Mr. Beville for causing an open interest in the cross. People like you and your atheist organization, along with the ACLU do the ground work for God, Every time you or they (ACLU) tries to stop, remove or dismantle something with a Christian symbolism in it, all you do is cause it to spread even the more. You are doing the same work that was done during the time when Christianity first started in Antioch. Every time one of the disciples or apostles, started a new Christian work along came the antagonist and run the Christians out of town, all they did then and all you are doing now is helping the word of God get promoted a little farther down the road. The ACLU does our "groundwork" for us. If you study Scripture you will see that there is a pattern to Israel's history. They would stray from God's Law become idolatrous, and then give themselves to sin. God would send a prophet, who would remind them of the Commandments and warn of God's judgment. Israel would be humbled, and turn back to the Lord. The church needs to be awakened, the church needs to repent, the church needs to get back on their knees and call out to a gracious and loving God, church, do not allow this man to make you mad, let his action to dismantle the cross turn your heart to God in full repentance and let your light so shine before men. A light that shineth in the darkness will always put out the darkness. Our country has strayed from God's Law. Like Israel, we have become idolatrous. Our "image" of God has been shaped into nothing more than a benevolent father figure, whom we call on in time of need. When the need has passed, we put our mute and convenient god back on the shelf ... until we need him again. God is now calling the Church to do the work of His Old Testament prophets. Each of us must learn to, "break up the law" as Moses did when Israel danced naked around the golden calf. We must thrust the Commandments and the Cross at the feet of an idolatrous and sinful nation, and show them that they have broken the Commandments into a thousand pieces and- have shown even less respect to the Cross. We need to know, how. to open up the spiritual nature of each. commandment and reveal (not only that God requires truth in the inward parts), but also that He will judge the world "in righteousness"-by the holy requirements of His law. We need to let the light of the cross shine in our hearts and let this world see Jesus in our hearts. When the United States understands the perfection required by God, and that "the law works wrath," they will see their need to flee to the safety of the savior. God's ways certainly are'not the same as ours. The negatives of lion's dens, pharaoh's, fiery furnaces, Red seas, and the depressing antics of anti- Christian organizations become positive and exciting instruments, when God decides to fulfill His wonderful purposes through them. Rave on ACLU, rave on Mr. Beville, all yob are doing is helping spread the gospel and causing Christians to stop, pay attention and take action. Phyllis Warren Raiford IsMr. Bevill a blessing or a curse to Starke? Dear Editor: In reference to your article concerning the cross on the water tower in Starke. I would like to suggest that Mr. Lon Bal-Bel-veal, or however he chooses to spell it this week, finds something more productive to do w money and life ( the Katrina and Rit There are many and a lot of work t help this country the future in a posi Destruction and a glue that wil together and make Think about it, you a blessing or your dear city? I am sure the ho volunteers. Couple W to thank Samarita Dear Editor: We feel that th sharing with our friends. It has caused us to renew faith in mankind. A few weeks ago we had cashed our weekly check at the bank. Then we were on to do a little shopping at Wal-Mart, Food Lion and then on to Winn-Dixie to finish for the day. Well low -and behold we found out that we had misplaced our money. In the mean time we arranged to get the bill paid. Then in a saddened state of mind, we tried to figure just what had happened to our money. The last place we remembered the money was at Food Lion. We placed a call back to the store and talked to the manager and explained our loss. We asked if anyone had turned anything in and he said that in fact a lady had reported former Texas resident Dear Editor: In regards to Norma Greene who wrote the letter about Mr.: Bevill moving to Texas with the other atheists. I was born and raised in Texas. My mom. and dad took us to church all' the time. I was brought up in a' Christian home. You have no right to talk about Texas that way. I am offended. There are a lot of Christians in Texas. You need to get the facts before you talk about something that you don't know,, anything about. You need to apologize to me and the rest of the Texans who live here in Florida. I could not just' let this pass by and not say anything. Adraka Thornton S:^ .964-6305 [ 1 Classified Ads where one call does it all! 496-226 pu Vt UI yvu Ut, I 40 Notices advpr-- WANTED: CARS AND 7082 ext #1005. trucks, running or not. CLASSIFIED ADVERTIS- Must be complete. $100 ING should be submitted and up. Call 904-964- to the Starke office in 5405, 904-263-8933 or writing & paid in advance 904-964-2432. unless credit has already 88 MAZDA EXT CAB been established with pickup, 5 spd, cold ac, this office. A $3.00 SER- need possible head gas- VICE CHARGE-will be ket, but runs great, added to all billings to $1755. Also 94 Chevy cover postage & han- Lumina Van, cold.-ac, dling. THE CLASSIFIED needs transmission work STAFF CANNOT BE $650. Call904-964-4111. HELD RESPONSIBLE FOR MISTAKES IN 1993 GMC SIERRA pick L -,s5EiagSral 2r4 uCl Glean, intbtor, ha$ ADVERTISINGSTAKEN transmission leak, $1200 . OVER THE .PHONE. OBO. Call 904-964- Deadline is Tuesday at 3631. 1.2 noon prior to that PARTS FOR A 97 Dodge, Thursday's publication, good 3.5 motor and Minimum charge is $8.00 transmission. 92 Chevy, for the first 20 words, 96 Mitsubishi, 2 wheel then 20 cents per word utilitytrailer, riding mower thereafter, and more. Call 904-964- 41 Auctions 6443. AUCTION EVERY Thurs- 1995 MONTE CARLO, AUCTION EVERY Thurs- white, power windows & day & Saturday night, at whiDL, pns good, $1600.wer windows & 6551 NW CR 225, Call 904-364-6690 or Starke. Starts 7:00pm. 904-964-6220, ask for Will take new and used Amy. items for consignment, y '. sold 1 piece at a time 43 RV's & ABMO 000 1542, AUMO Campers 0001153. 99 TRAILHARBOR, 26ft1, 42 Motor full kitchen, sleeps 6, Vehicles -queen bed, AC, water heater, bathroom w/ tub/ shower, sink & flush tol- let,, double propane bottles, electric tongue lift, stereo/radio/CD sys- tem and.more. $5999 call 352-473-0479 2002 COACH, 26 Ft with slide out, $13000 firmly Call 904-966-0765. "FALL BLOW OUTI ALL motorhomes, TT & 5th wheels on sale. Full parts & service dept! Call 386- 758-8661. 44 Boats & ATV's i 14' r 1987 iGLASS' STREAMER. ; Suzuki 75HP. troniing molor lsh finder., galvanizea Irailer Reduced Ko $2500 Cali 904-533-9391 after 6pm BASS BOAT. 90 HP Johnson trailer gooa condition low hours $4000 Call 352-473. 9407 FOUR WHEELER 95 Honda 300, $1500 Call 904-964-3359 (home) or S352-745-2506 (cell) NEW HONDA 350 Rancher ES. 4 wheeler. no miles 14650 Firm Call 904-796 0129. 47 Commercial Property FOR LEASE OR sale. Ideal location 2 parcels 2800 SOFT building with of- fice, bam,ask jkf.jhrip. DOWNTOWN STARKE '! profea ,i',nal office, f,:,r rent Conference room kitchen utilies and more provided Call 904-964- 2616 PROFESSIONAL OFFICE space adjacent to Ihe courthouse, lease start- ing at $300 per month Two 12) offices available sizes are 13'6 x 13'9 and 12'x 13'6' Call 904- 964-4111 48 Homes For Sale OWNER FINANCING Brano new construction site ouil home. 3BRi 2BA. large wooded 2,'3 acre lot. Keystone Heights area. $1995 down. Call 352-692- 4343. 411.com. Home Fo ae CalHee. GAINESVILLE 5BR/4BA, ' 3000 sq ft, block home on 6 acres with shop building, steal It at $275,000 Call 352-422- 0642 ......... HOMES OF MERIT '3BR' 2BA DW, 28x56 with AC Susan McKnight ReaillOi Safe 'ith me...No "BULL" (352) 745-8066 Cell suzequer@yahoo.com (386) 462-4020 office (386) 462-3848 Fax PO Box 520, Alachua, FL 32616 H RIZON Out of Area Classifieds our 4th Generation." "Quality and Service is not expensive... It's Priceless." FLEETWCQD. cHampion Wt Wolti Larsis Hanmebuild) Commercial* Residential Industrial New Construction. -- ! 612 Collins PI. Starke, FL 32091 William Tyler (352) 224-8579 Owner (352) 235-2975 Announcements OCTOBER BEAD FESTS October 29th, 30th Ft Myers, Clarion Hotel. Announcing Palm Beach Gardens November 4th, 5th & 6th Amara Shrine Temple. Bead, PMC, & Wire Wrapping Classes available. Info at. com or (866)667-3232. Is Stress Ruinin* Your Life? Read DIANETICS. Auction-Mannolia Plantation, 5900+/- acres, hear Albany, GA. Income producing,, hunting preserve, abundant water, irrigated rowcrops, pecan orchards. Saturday, November 26, 10 a.m. Rowell Auctions, Inc. (800)323-8388 www. rowellauctions.com GAL AU-C002594. AUCTION THUR. 11/10/05 At 2:00PM Yellowstone River Frontage Properties & Private Hunting Island - Glendive, Montana. +/- 386 Acres Irri ated, World Class Game Hunting, Fishing. Contact: Kick 406)485- 2548 (406)9391632.. . Building Materials METAL ROOFING SAVE $$$ Buy Direct From Manufacturer. 20 colors in stock with all Accessories. Quick turn around! DeKvery Available Toll Free (888)393-0335. Business Opportunities ALL CAS CANDY ROUTE Do ,you earn $800/day? 30 Machines, Free Cand All' for $9,995. (888)629-9968 B62000033. CALL US: We will not be undersoldl LEARN TO MAKE YOUR Annual Income a Monthly Income. Training, No Experience Necessary. $49.95 Start up. Calf Futures, Inc. (800)515-3372. A CASH COW1 90 VENDING MACHINE UNITS/ YOU OK LOCATIONS ENTIRE BUSINESS $10,670 HURRY I (800)836-3464 #802428. LOCAL VENDING ROUTE. Soda, snacks, candy, juices, water, great equip, and services, financing available w/$7 500 down. Call 877) 843-8726. 1B02002-037. DATA ENTRY. 'Work from anywhere. Flexible Hours. $$ Great Pay $$ Personal Computer Required. .Serious 0Inqiries Only. (800)873- Serious entrepreneur? THIS is it. Most powerful' compensation plan on the planet. No selling. Not MLM. Proven way to earn a VERY substantial income. Call: '(800)775- 0723. Health' OXYGEN USERS: Enjoy freedoti!l Travel without canisters, Oxlife's lightweight, Oxygen concentrators run off your car & in your home. U.S.A.- made Warranteed (800)780-2616. Hel Wanted ). ROAD RULES Ten immediate openings for 'the sharpest people to represent sports fashion & news publications. Must be money motivated, start immediately, paid daily. (866)891-3673 DELIVER FEMA RV's FOR PAY I A NATIONAL RV delivery service has immediate needs for qualified contractors to deliver "new" RV trailers from factories and dealers to Hurricane relief sites. This a great way for you to help the victims, Please log on today: m. Driver- NOW HIRING QUALIFIED DRIVERS for Central Florida Local & National OTR positions. Food grade tanker, no hazmaT, no pumps, great benefits, competitive pay & new equipment. Need 2 years experience. Call Bynum Transport for your opportunity today. (800)741-7950. KNOWLEDGEABLE HORSE people needed. Become an independent agent for Horse supplement company dea er recruitment and product sales. Commissions based program. Contact Sarah, (8T7)788-4448 or equineinfo@ihvets.com. ACT NOW DRIVERS- Flatbed, Bulk-Tank and Refrigerated Divisions. Performance based pay. Experienced Operators. Independent Contractors or Company Drivers. CDL Instruction Program available. (800)771- 6318. www:primeinc.com. , $600 WEEKLY Working through the government part-time. No Experience. A lot of O0"ortunities. (800)493- 368Code J-14. MOVIE EXTRAS ACTORS & MODELS Make $75-$250/day: All ages and faces wanted! No .exp.. Required. FT/PT! (800)851-9048. Now Hiring for 2005 Postal Positions $17.50- $59.00+/hr. Full Benefits/Paid Training and Vacations No Experience, Necessary (800)584-1775 Reference # 5600. $500 Signing Bonusl An exciting opportunity! Travel tle USA with our young co-ed team. Personality a must! Enthusiastic, motivated, able to travel. Call Robbie, (877)787-4386. S/E & 3-State Run: T/T Drivers. HOME WEEKENDS. Mileage Pay, .Benefits 401K. Trainees Welcome. Miami area- exp. req. 21 min age/Class-A CDL Cypress Truck Lines (EM)545-1351, Help Wanted/Sales $5,500 Weekly Goal Potential If someone did it, so can you! 2-3 confirmed appointments daily benefits Available... Call Catherine McFarland (888)563-3188. Leoal Services DIVORCE$275- $350*COVERS children, etc. Only one signature required! *Excludes govt. fees! Call. SComputer & Financial aid ir qualify. (866)858- . 2121 ch.com. GIGANTIC MIRRORS! Jobsite ,Leftovers!' (7) 48" x .100" x 1/4" at $115.00 'reach; (9) 72" X 100" x 1/4" at $165.00 each. Will deliver can install. Everything MUST GO! Call Now! (888)306-9046. Real Estate Ellijay, GA (N. of Atanta) 1.'5-3 AC. Tracts Level with mountain view and trout stream access. Starting @ $29,000 Call (706)636-2040. NEW LOG CABIN-NC Mountains. New shell on secluded mountain site. $89,900. Hardwood forest. Great fall colors. Paved road. Near parks & lakes. Acreage & financing available. (828)247- 0081. LAKEFRONT LOG HOME, $99,900. Lake Cumberland, KY. New Authentic 2400 square foot- Available 10/29/05. Jamestown Area. (800)770-9311, Ext.822. BEAUTIFUL NORTH CAROLINA, ESCAPE THE HEAT IN THE COOL BEAUTIFUL PEACEFUL MOUNTA I N S OF WESTERN NC. Homes, Cabins, Acreage & Investments. Cherokee Mountain Realty GMAC Real Estate, Murphy nrealtyIE'S Gated Waterfront Community Riverfront and Mountain Views Available, Prices, Starting Low as $46,900. Final Phase Limited Lots Call Now! No Closing Costs Buy Direct From Developer SAVE THOUSANDS $$$' (800)559-3095. eXt 327 *Some restrictions apply.' North Carolina Gated Lakefront Community 1.5 acres plus, 90 miles of shoreline. Never before offered with 20% pre-development , discounts -90% financing. Call (800)709- 5253. East Alabama Mountain Property For Sale One hour west of Atlanta in Piedmont, AL Great for enjoyment or investment 19.5 acres-$6,142 down $510/Monthl. Information Call Glenn (850)545-4928. GEORGIA PROPERTIES AVAILABLE NOW RESIDENTIAL, COMMERCIAL, FARM & TIMBER TRACTS PRICED TO SELL VISIT PEACH STATE AT or Call (866)300-7653. GRAND OPENING? Lakefront Acreage from $69,900. SAVE $10,000 Nov 5th & 6th. Spectacular new waterfront community on one of largest & cleanest mountain lakes in America'! Large, estate- size deepwater parcels, gorgeous woods, panoramic views. Paved roads, county water, utilities. Low financing. Call now (800)564-5092 'X 266. NC MOUNTAIN CABIN on mountain top, view, trees, waterfall & large public lake nearby. 2 bedrooms, I bath, $99,900 owner (866)789- 8535. TENNESSEE LAKESIDE ACREAGE New community. I+ acre homesites from the 30's. Private boat slips- limited availability. Lake access/boat ramp. Close to downtown Chattanooga. (866)292- 5769, ASHEVILLE NC AREA- MOUNTAIN $1 OK dollars gets it. Call. Richard at 352-795- 3676. HOME FOR. SALE, 3BR/" 1BA, appliances in-; cluded all electric, front - porch, back porch, car-' port, concrete, utility at- ' tached. REDUCED TO-. $169,000. Call 904-964-, 5914. OPEN HOUSE- SATUR- 'DAY, October 22,1 pm to 5pm Waterfront property at 707 SE 53ra Ave. Key- stone Heights Exquisile custom home with Span- .ish Tile floors. gourmtel chef': kitchen,.J l .?rigth fielastone fireplace & A ,. ACREAGE. 1+ acre riverfront, mountain view and wooded homesites from the $50s. Gated community with custom lodge & .river walk. (866)292-5762. . NC MOUNTAIN PROPERTY, 2 Private communities with hardwood trees, views, creeks and river and lake access. Swim, fish, hike.: Lots from $20,000 to $85,000. (800)699-1289 or om. Serene Mountain Golf Homesite $342, monlh Breathtaking views Upscalegol fcommuni) set amid- Dye designed 18 hole course in Carolina Mountains. Near Asheville NC. A sanctioned Golf Digest Schools teaching facility I Call toll-free (866)334- 3253 X 974 om Price: $69,900; 10% down, balance financed at 4.94% fixed, 24 month balloon, OAC. EAST TENNESSEE PROPERTIES FOR SALE- Sold and financed by owner. Log Homes, Lots & Acreage near Pigeon Forge Gatlinburg. Call Ricky Bryant(423)623 2537 GA Waterfront Pre- Construction condos include top amenities marina, 4-% financing Call (914)232-5100. WESTERN NC MOUNTAINS- Extraordinary Home Sites in Gated Fall Branch Estates. Wooded Lots, Panoramic Mountain Views, From $60k. Current phase: Pre-Construction pricing. (877)774-3437. Steel Buildings BUILDING SALE! "Last Chancel" 20x26 Now $3995. 25x30, $5700. 30x40, $8300. 40x60, $12900 Many Others. Meets 140 M.P.H. Higher available. One end included. Pioneer (800)668-5422. STi-Couny Classifieds Bradford Union Clay Reach over 20,500 Readers Every Week! INDEX "T1 Classified Advertising should be paid in advance unless credit has already been established with the newspaper. A $3.00 service charge will be added to all billing to cover postage and handling. All ad, placed by phone arc rcad back to he a crtiscr at the time of placement. However the classified staff cannot be held responsible or mistakes in classified advertising taken by phone. The necvspapcr reserves the right to correctly classify and edit all copy or to reject or cancelany advertisements at any time. Only standard abbrevations will bh accepted. 'ith his time, finding some money in the like helping parking lot. ta victims). She left her name and phone good causes number. We contacted her and' o be done to explained what had happened: move into She said to come on by and tive way. straighten everything out. strife are not We tried to reward the lady.,: 11 hold us for her honesty. But she would us strong. not accept any reward. Mr. B., are We appreciated the money * a curse to being found and returned but not nearly as mich as finding spital needs out that a stranger would go out of the way to do the right M. Aldridge thing. Melrose In closing we would like to thank Barbara Balkcom for her. vantS honesty and integrity. good Iva and X.M. Smith 900o Starke in Greene letter . tro offends Oct. 27, 2005 TELEGRAPH, TIMES & MONITOR-B-SECTION Page 7B Classified Ads So 964-6305 - where one call does it a473- 221496-2261M screened porch, en- closed courtyard,plus much more. Call Maria Jones at 352-473-4816 or toll free at 1-888-244- 0973 at Watson Realty Corp' for more informa- tion.-485- 2832. Well kept, great starter home, large back deck, all electric appli- ances included. 2006, 4+2 FOR $39,995 includes 2 mini decks, AC, skirting, setup and delivery. Ocala Factory Specials. Hurry before the sale ends! Call Rod at 352-373-5428. USED 28X52 GREAT cordition,like new, in- cludes popular options like plywood floors. Dropped on your prop- erty for only $21,500. Call Matt. at 352-375- 3408. BRAND NEW 2006 Fleetwood 32x56, 4 + 2, loaded for $46,995 set- up and delivery included for a short time only! Call Rod at 352-378-60 24. 1989 USED SINGLEWIDE 2 + 2 w Glamour bath setup & delivery for $9995. Call Marion at 352-378-1008. USED 28 X 561982 model in QOC. sna1.pe o0r $4995 Call Malt at 352-373- 542-3. DO YOU OWN LANe or have largee down pay- ment? But no one will fi- nance you on a new manufactured home. I have a special program available. Call Matt to qualify at 352-376-1008. 50 For Rent 386-496-3067, 678-438- 6828 or 678-438-2865, for more information. SECLUDED LOT FOR CAMPER, for rent. Well, septic, and power pole for electric in country. Call after 7pm, 352-468- 2684.. FOR RENT; 14x70 mobile home, 2BR/2BA, A/C, heat, $550 per month. A security deposit plus first and last months rent is required. Call 904-964- 8431 or 352-745-1189. 2BR/1BA, AC, DISH- WASHER, on 1 acre. $475 month. Call 386- 871-3833.+ acres, 20 min to Starke off of SR 218 /301. $650 plus de- Sposit. Call 904-237-2833. STARKE 2BR/1.5BA SWMH on 1/2 acre lot, $400 month plus deposit. Call 352-235-1386. 2BR/1BA HOUSE, CH/A, sizeable living room, out- skirts of Keystone Hgts. No pets, credit report re- quired. $550 rent, $650 security deposit, Carroll Rentals & Management, Inc. 352-473-1025. Please call to inquire, other units may be avail- able. 52 Animals & Pets HORSE BEDDING-shav- ings, for sale, delivered by small dump truck. Call 386-431-1536, 904-966- 9312, 352-538-5564 or 386-431-9230. AKC LAB PUPPIES, health certificates. Yellow $375, black $300. Call 352- 235-0797 or 352-235- 0803. 53 A Starke Yard Sales MULTI FAMILY yard sale, 601 W Call St. Thurs, Fri & Sat, All day! WEST ON 16, 1/4 MILE past Morgan Road on right. Look for signs. Sat- urday only, 8am til ? 3 MILES SOUTH ON 301, just past Town & Coun- try Ford on left. Big yard sale Saturday only, 8am til ? GIANT YARD SALE, Fri & Sat, 9am to ? Tools, clothes, fishing stuff, re- frigerator, washer & dryer and small appli- ances. Main Street in Brooker. SATURDAY ONLY! 9AM to ? 223rd St, Lawtey. From Starke, turn left on CR225, then left on 200A, Right on 223rd; look for signs. Clothes and odds & ends. 53 B Keystone Yard Sales FRI & SAT, 8AM TO 2PM, at 6414 Bowden Ave, HighRidge Estates, resi- dential side. Misc items lots of plus size clothing items. Some new jew- elry, furniture, tools & many other items. Can- cel if rain. HUGE REMODELING sale, all kinds of items. Saturday only 671 SW Orange Ave, Keystone. 53 C Lake Butler Yard Sales SATURDAY, 8AM TO 4PM., 11609NESR121, north of Hardees 1.5 miles. Clothes, nic nacs & more. 55 Wanted LAND WANTED 25 to 250 acres, some wetlands okay. Must close before 12/15/2005. Fair price paid. Call 904-608-5239. WANTED: 49 PEOPLE to lose weight! While earn- ing money NewYou.com or http:// 57 For Sale KENMORE WASHER and' dryer, new type $100 and up each, electric stove, written guarantee, free local delivery. For' appointments, call 904-- 964-8801. BED-QUEEN orthopedic, Pillowtop mattress and oox Name brand, new ,n plastic, with warranty. Can deliver. Sacrifice, $140. Call 352-372- 8588. I BED-KING SIZE Pillowtop -- Mg~ R-rollig ;dW&'(J I o I(V ,, n.3p52-. i.L.IVE 'CHRISTMAS TREES. Purchase a tree today before your wallet is tapped from the holidays. You can pick them up any time In De- cemberl Red cedars, lo- cally grown in Starke. 1,134 sq ft. home, 3BR/2BA, brand new home on 1/3 acre lot in Keystonre Heights. Open floor plan Blinds throughout. \nc\ludi0 $112,900 \0nd\ Financing available with only $1,995 down. INFORMATION/DIRECTIONS AT I>TT1'!13521692-4343^ SHERRIE'S CLEANING Clean Your House Before The Holidays! Honest Reliable Dependable Christian Based Licensed & Insured #024973 : 352-468-3786 0 WANTED Small or Large Parcels With or Without Homes . ^Call Glen Lourcey eytone Ha2-485uling1818 Keystone Hauling & Handyman *PnasRq~ar *PreffimWashin *-YarcknRWos*1 Service, LLC --w*Treeftim&Raonti *SfteuennUp oFkvwvrdForS*i *FkwM~sdas- Owner: Kerry Whitford SVoice TTY-Aoess 1-800545-1833, Lxt. 381 0 STARKE CITY LOT Large city lot (162'x136') adjacent to Courthouse. Zoned for attorney office, title company, insurance office, real estate office & other professional businesses. Owner will divide. $70,000 SMITH & SMITH REALTY 415 East Call Street Starke, FL 904-964-9222 Ask for Sheila Daugherty IVANHOE Ivanhoe Financial, Inc. Lie sed Sortag Lede Re-finance and Purchases FHA VA Conventional ~ 100% Financing Available - ~ New Construction - Home Improvement Loans DID YOU KNOW? Call Today! Call Today! JennyW Mann Suzanerdon YOU m OiquallftIfor Down- Mortgageonn PamentAssistance. Receive $5.000 io $16,000 for a family of 1 8 whose income is 16,500 75,000. Call Us Today... Let Us Explain More! I~ -4)96440 lIo I .09 ACRES with a stocked catfish pond. Three storage sheds and a carport. $79,500. Toll Free 1-866-964-4202 1107 S. Walnut Street US 301 South Starke, FL (Located behind Bradford County Eye Center) I MLS#264955 . I---- 0 4 0 LAr UI'F11S I 1 "I LL JD"IVU) !11I fn LUJI OF CHARM. Home has great front porch and large eat-in kitchen on a large city lot. $9,900. -- r_ ~I I I a I I I I Limited supply, prices vary depending upon size choose. 5 foot to 12 foot. NON refundable deposit required. Call 904-626-3357 leave message all calls will be returned. LAWNMOWERS and trail- ers for sale. Call anytime 904-964-4118. 42X60 BUTCHER Block& White table & 4 chairs, $200, washer & dryer, $50 each, hydabed $100. Call 904-964- 7180. VINTAGE KITCHEN table 1940's enamel top. Pull out drawer on side, leafs that extended on both sides, very good condi- tion. $150 OBO. Call 352-473-9793. 2 AXLE TRAILER 7'X12' steel deck, 1 brake axle & lights $650 OBO. Call 9373 NW CR 225; Starke, Fl, 904-964- 5672.-94-3704. PARALEGAL SERVICES: Assistance ,th self-help court forms and other document preparation. Notary. Call 386-462- 8545 for an appoint- ment. HOUSECLEANING, TIME is precious, don't waste yours! Call Ultimate Maid at 904-964-8740 TUTORING, FLORIDA Certified Teacher, 18 yrs exp teaching. High School English also will tutor in History, math (el- ementary & Jr high level) Negotiable, reasonable fees. Call 904-782-3849 please leave message if no answer. HOUSE OR OFFICE CLEANING services. Honest and dependable. Reasonable rates, flex- ible schedule. Call Leisa Jackson at 386-661- 2238 or 904-229-8967. LAWN CLIPPERS. We mow, blow,.edge & trim. Reasonable rates, no contract Free estimates Call Tom at 904-964- 5019 or 352-235-4350. MILLERS TREE SER- VICE, free estimates, li- censed and insured, 20 years experience. Call 904-796-0129. LADIES AT HOME THERAPY, licensed Florida massage profes- sional for 12 years.Save gas! Call Karin Michele at 352-473-3725. Refer- ences, MA 55 LARGE LOCAL, PROFIT- ABLE, vending company for sale. We have ten routes for sale, purchase any or all: Will provide training and guidance to put you on the road to success.Investment re- quired serious inquiries only. Call 904-966-6600. ~(( Y~ LI]~I ~~1 ~vlYI]~~I;~IIY:I [II: [safowease ~ I I Page 8B TELEGRAPH, TIMES & MONITOR--B-SECTION Oct. 27, 2005 Cl Sifted Ad S 964-6305 Classified AdS where one call does it all!,47221 65 Help Wanted:// clickba nk. net/ ?countrymom/sponline. SHOP HELP NEEDED, full time 40 hours week. Ap- ply in person at U S Body Soprce, 1.5 miles South of Hampton on CR 325. CARE GIVER 2 years experience working with elderly or disabled cli- ents. 2 or 3 days per week. Su-EI's Retire- ment Home, Hampton. Phone 352-468-2619. HELPER TO WORK IN home repair & painting. Call 352-475-1596, leave message. EXPERIENCED PARTS person needed. Small engine knowledge re- quired. Must be com- puter literate. Full time, mature, hard worker. In- terviewing nowl Call or see Bob at Ace Lawn & Garden Center, 101 Commercial Circle, Key- stone Heights, 352-473- 4001. TRUCK DRIVERS NEEDED, earnings po- tential $800- $1000/wk. Co. Provided CDL train- ing for those who qualify. School grads & exp driv- ers welcome. .Call Renee at 866-374-0764. NEEDED DRIVER- Class A CDL driver to haul equipment. Must be able to operate Equip. Fax resume to 904-275-3292 or call 904-275-4960. EOE. NEEDED MECHANIC' fome more, be home more carrier." Call 7days/week $$$ 800-626-49.15 $$$. JACKSONVILLE SHEET metal Co. is seeking press break operators and NC operators, day & night shifts. Benefits, pay based on exp. Call 904-783-6640 or fax re- sume to 904-783-2966. RESIDENTIAL HOUSE- KEEPER -experienced working with elderly tesi. dents n retirement com. munity 5days.40 hour, 7.30am to 4pm, some -overtime may be re- quired. Occasional ,weekends and holiday work. 1 year exp pre- ferred. Rate negotiable. Good benefits. Apply Penney Retirement Corfmunily 904-284 8200 or 800-628 3 38 Drug Free Workplace & EOE. BAY POINTE NURSING Center ha3 [he following positions: FT LPN/RN 11pm-7am, PTActivities Assistant, PT Dietary Aide Apply ir person to 587 SE Ermine Ave Lake City, FL 32025. 386-752-7800. THE COLUMBIA County Sheriffs office is accept-. ing applications ror Irne loilow.ng positions LPN, (parl-time). COMMUNi CATIONS OFFICER, DETENTION DEPUTY, . and SCHOOL CROSS- ING GUARDS (part- time). All applicants must have a high school di- ploma or its equivalent. All deputies must be Florida State certified. The C.C.S.O is an EOE employer. Applications may be obtained at the Columbia County Sherriff's Office Opera- tions Center at 4917 East US Highway 90 or on-line at sheriff.com. PLANT NURSERY, part- time help needed. No exp necessary. Apply in person, SR 16 west in Starke. Call 904-964- 8055. GROUNDS KEEPER AT Camp Blanding, $17,214 annually plus state benefits. https://- peoplefirst.myflorida.com. KING HOUSE INN RES- TAURANT now taking applications for servers, prep cooks, grill cooks, and one kitchen, super- visor. Experience pre- ferred, but not necessary. Full time and parttime positions available. Please come by 105 SE 1st Ave, Lake Butler, for an application or call 386-496-8295 for more information, RESIDENTIAL FRAM- ERS, full time positions available. Experience a plus. Benefits, after 90 days, include health in- surance, holidays, vaca- tion, etc. Apply in person at Park of the Palms, Inc. 706 Plam Circle, Key- stone. 352-473-6100 ext 300. AVON REPS WANTED! Need extra $ for christmas or entire year. Good pay. Fun and ben- efits. Call Maggie at 352- 473-9307. LPN'S, RN'S & CNA'S needed for all shifts. Top pay! Call 866-485-4220 or 904-221-3151. COOKS POSITION avail- able. Quality food prep and banquet food prep experience required. Good working condi- tions. Excellent benefits. Apply Penney Retire- ment Community 800- 638-3138 or 904-284- 8200 Drug Free Work- place & EOE. Call and ask for Annette. EQUIPMENT OPERA- TOR, Bradford County is currently accepting ap- plications for two (2) OPS positions for equip- ment operators for oper- ating heavy equipment, and other duties that may be assigned from time to time. All appli- cants must have a valid Florida Drivers License, CDL (Class B) preferred. Salary will be based on the applicants qualifica- tions. Applications may be turned in or mailed to the Bradford County Road Department at 812 B N Grand Street, Starke, Fl 32091. The deadline for accepting applications is 4:00 pm, Thursday, November 10, 2005. Application forms may be picked up at the Road department. Equal Opportunity Employer. FULLTIME (32 HRS/WK) experienced dental as- sistant for friendly rural clinic. Please fax resume to ACORN Clinic at 352- 485-1961. 1998 JEEP CHE'ROKEE Sport 4x4, red, auto- matic, tilt, power win- dows/locks, new tires, cold AC, AM/FM CD player 123,000 miles, great condition. $4999. Call 904-964-6832. PROGRAM MANAGER to oversee management of 3 ICF/MR group homes located in Lake City and Starke. requires BA de- gree and at least 2 years experience working with individuals with develop- mental disabilities. Full time position, good ben- efits. EOE apply at 1110 B NW 8th Ave, Gainesville or fax 352- 372-0139, or e-mail dtalley@rescare.com. DRIVER-ALL NEW KLLM. Home 7-10 days. $.40 plus $.03. No HZMT, No NYC, EOE, CDLA< 866- 357-7351. UNDERGROUND utilities/ pipe foremen w/laborers.! Full benefits package. Dry bulk and flatbed po- sitions available at our Newberry terminal. Commercial Carriers 866-300-8759.. Shands Healthcare Coor- dinator, Marketing Com- munication and Public Relations, Manages marketing communica- tions activities to pro- mote Shands Health Care and its rural com- munity hospitals to key target audiences to sup- port strategies that en- hance system prefer- ence and usage. Re- quires bachelor's degree in Marketing, Communi- cations, Public Relations or related area and a MERCANTILE BANK %W takeyour banking personal. Excellent Cqompensation! Exceptional Benefits! Just for Starters: .Tuition Reimbursement -Scholarship Grants *Dependent Care Contributions *Medical *Dental *Vision ,401K *Vacation . AVAILABLE POSITIONS Full-time. and Part-time TELLERS in Lake Butler Qualified candidates apply online:. www bankmercantile.comrn 300 West Main St. (386) 496-2101 DriversCOMPAN Reioa /HomeWeekl PRITCHETT TRUCKING $1,000 Sign On Bonus! We have immediate positions for both local and regional. Day or night shift available. 401K, Health Ins., Paid Vacation, Performance and Safety Bonus.. Great Company Recruiter available Sat A.M. and Sun all da HEAVY EQUIPMENT OPERATOR TRAINING FOR EMPLOYMENT Bulldozers, Backhoes, Loaders, Dump Trucks, Graders, Scrapers, Excavators. Next Class: Nov. 14th Train in Florida -National Certification -Financial Assistance -Job Placement Assistance 800-383-7364 Associated Training Services minimum of two to three years of direct experi- ence in planning and coordinating advertising and public relations ini- tiatives and special events, preferably in healthcare or a geo- graphically dispersed setting. Must have knowledge of communi- cations and public rela- tions within a diverse or- ganization, strong orga- nizational and planning skills, excellent commu- nication skills (both writ- ten and verbal) and the ability to work well with physicians, corporate executives, healthcare professionals and the general public. Qualified candidates should apply on line at .org, Job # 24630. EOE M/F/D/V DFW DRIVER DEDICATED re- gional, Coastal Trans- port, Home every week- end guaranteed 65% preloaded/pretarped, average $818-$896 week. Part time opening available Jacksonville, FI Terminal. CDL-A re- quired 877-428-5627. BRADFORD COUNTY Clerk of Courts Informa- tion Technology Special- ist. Bradford County Clerk of the Courts is accepting resumes and completed County Em- ployment Applications to work as an IT Specialist in the Clerk of Courts Office. Resumes and applications will be re- ceived until 4:00 p.m., November 15, 2005. Ap- plications may be ob- tained in the Office of the Clerk, Bradford County Courthouse, 945 North Temple Avenue, Starke, Florida. Job location is in Starke Florida. DU- TIES INCLUDE: Under minimal supervision, in- dividual Is responsible for supporting end user computing and telecom- munication needs. Re- sponsible for the instal- lation and support of cor- porate workstation hard- ware and software at all County locations. Assist IT Manager in the Instal- lation and support of net- works, servers, commu- nications and new soft- ware. Coordinates or assists with projects to, evaluate, purchase and install new hardware and software. Regular con- tact with employees at all levels throughout the County, vendors, audi- tors and other subsidiar- ies. Performs other re- lated duties as required. MINIMUM REQUIRE- MENTS: High school graduate or equivalent, with a preference for ad- ditional training and edu- cation in computer tech- nology or related field. Minimum of 3 years re- cent experience support- ing personal computers or servers in a Microsoft Windows environment with advanced skills sup- porting Microsoft appli- cations. Industry certifi- cations are desirable, but not required. Must possess good trouble- shooting and problem solving skills, have a good working knowl- edge of PC hardware, excellent verbal and writ- ten communication skills and a positive attitude toward customer ser- vice. (A comparable amount of training, edu- cation or experience can be substituted for the minimum qualifications. Resumes may be emailed to cthurow@bradford-co- fla.org. Fax number: 904-964-4454. 65 BRADFORD COUNTY Public Library, full time circulation clerk. Must be available for varying hours. Must work every DUCT MECHANIC NEEDED V Must have experience Must be able to pass background check & drug test V Must have valid drivers license V, Full-time or Part-time Please apply in person at: 0 Touchstone Heating and Air, Inc. 490 S.E. 3rd Ave. Lake Butler, FL Monday and Thursday evenings and every Sat- urday. $8/ hour. Job de- scription and applica- tions at Clerk of Court's office, County Court- house. Applications close at 9am, Nov 10, 2005. EOE. EXPERIENCED CON- CRETE finishers wanted to work in Gainesville area. Call 352-376-53'14 -Mon Fri, 8am to 5pm. CONSTRUCTION HELP wanted, full time and part time, day & night shifts available. Call 904-966-2024. DAIRY I-ARM LABUU'-- ERS, hardworking de- pendable transportation, shift work, holidays- & weekends. For more in- formation call 386-462- 1016. SALES CONSULTANT, Farmers Furniture has an immediate opening. for sales consultant, Po- sition offers competitive' compensation and ben,.. efits package. Apply in person at Farmers Fur- niture, 835 WWalnut St,: Starke. Only candidates, selected for an interview will be contacted. EOE. r---- -- a -a i dacage New,Valdosta Terminal 10 Immediate Openings GRET Pay GREAT Benefits - ,GREAT Hometime 6 Mo. T/T Experience & Class A CDL Req'd. Transport System, Inc. Call Doug today at:. 1-800-587-1964 . epestransport.com Side Boom Operator and CDL-A Driver/LaborerI , Major railroad emergency services' company seeks experienced Side. Boom Operator ,and CDL-A Driver/Laborer in Starke 'area.: ; Applicants should have CDL-A-: license and excellent mechanical.i' Town and Country Ford-Mercury Sales Help Wanted WE NEED YOU! Due to increased sales, we have openings for sales people. ExperiencE preferred but not necessary. We trail success. We offer: Competitive commission plan F&I commission Weekly pay Hospitalization/Health Care Call now for an appointment. Ask for Chris or Nick. 904-964-7200 TOWN&COUNTRY V1 ' .I I I Success requires a foundation built on values... Integrity Professionalism Relationships Balance Passion Mercintile Bonk is a dwg-free Workplace, EOE VI/F/D/V Employcr .---~ at ----- -~III I I Oct. TELEGRAPH, TIMES & MONifOR--B-SECTION Page 9B FROM THE COURTS: Circuit court finals in Bradford Appearing before Judge David A. Giant on Oct. 4, the following defendants received final disposition in their cases: Amanda N. Kicklighter pled no contest possession of controlled substance and possession of legend drugs without prescription; two years drug offender probation, $20 a month cost of supervision. Donald Joe Hemdon pled no contest violation of probation burglary of conveyance; i'obation revoked, 18 months Deartment of Corrections (DOC), 187 days credit time seiwed. _Kenneth Lee Hill pled no contest violation of probation uiftering a forged instrument; pIobation revoked, 180 days county jail with 137 days credit, restitution reduced to civil judgment. I -Ted Edgar Manning Jr. admitted violation of probation grand theft; probation revoked, 365 days county jail with 184 days credit. -Ike Norman Pernell found guilty violation of probation possession and sale of dc.trolled substance; probation revoked, two years DOC. Christopher O'Brian Risby found guilty multiple cases of violation of probation burglary df a conveyance; probation revoked, 38 months DOC with 268 days credit. Sharon Warren admitted violation of probation worthles,, check: probation revoked, 30 months DOC with SO das credit. Thomas Br'on Kelley pled no contest violation of proba.bn fel cy di.izt *hipe license suspemiied or revo ed iD%1.LSL. habir-al.i cfadtler avccation. yC10r ;-ITlJ. two years duw r&- r Chrti.opher JcI~s~ Young p!ed guityv %iation of probation robber. second degree no weapon; probation revoked, 10 years probation, random drug testing, $20 per month. Change of plea Sept. 27 Jay Benny Baker pled no contest DWLS permanently revoked; 90 days county jail, $20 per month court costs, two years probation. Ann Thompson pled no contest possession of more than 20 grams of cannabis and possession of drug paraphernalia; two years drug offender probation, $20 per month cost of supervision. Shawn D. Warren found guilty burglary of an unoccupied dwelling (structure), petit theft; three years probation, Phoenix House custody, DNA sample, $410 court costs, $20 a month restitution, $20 a month supervision costs. Tremaine Alvin Byrd pled no contest violation of probation robbery second degree no weapon; 25 months DOC with 89 days credit time served. Michael Eugene Sawyer pled no contest violation of probation possession of more that 20 grams of cannabis; two years drug offender probation, 90 days county jail, $20 a month costs. John Ewing pled no contest improper tag; 17 days county jail with credit. Tammy Teresa Minx pled no contest -possession of a controlled substance; two years drug offender probation, $410 court costs. Christopher Ghastain pled no contest uttering a forgery; three years probation, $6,000 restitution, no contact with victims, court costs reduced, $20 a month costs. Mario Lavon Hankerson pled no contest possession of controlled substance; probation re\ oked. court costs reduced, 25 months DOC, 61 days credit ." r".'e A.?r\ed.. ' Vocara Williams pled ,no contest violation of probation g-n:J theft auto, 275 days county jail. Pre trial conference ., Shelton Lerendy Dell Jr. pled no contest possession of cocaine; 366 days DOC, 109 days credit time served, $20 a month cost of supervision. Mario Lavon Hankerson pled no contest sale of cocaine; 25 months DOC with 61 days credit time served. Glen D. Magyari pled no contest sale of controlled substance; 18 months DOC, 32 months drug offender probation, $20 a month cost of supervision, $435 investigative costs. Ahnna Bulcken found guilty violation of .probation possession of controlled substance; 210 days county jail, two years drug offender probation, $20 per month cost of supervision. Lester Wannis Walker found guilty violation of probation battery and violation of: injunction for protection; probation revoked, 364 days county jail. Sept. 13 Christina Lee Lacey pled no contest welfare fraud; four years probation, $20 per month supervision, $1,190 restitution. Altina Lenora Robinson pled no contest felony battery; three years probation, anger management, 90 days county jail, no contact with victim, $50 restitution, $396 court costs, $20 per month cost of supervision, DNA.' Joseph K. Fine pled no contest grand theft; three years drug offender probation, $609.29 restitution, $396 court costs, $20 per month. Trial status conference Isaiah Pernell pled no contest introduction of contraband into county jail, possession of controlled substance; 18 months DOC with 22 days credit. Vera Jean Rodgers pled no contest possession of cocaine; 366 days DOC with 22 days credit. Glen Dewayne Burch pled no contest violation of probation possession of controlled substance; 270 days county jail. Change of plea Jason Soloman Barr pled no contest possession of controlled substance; 42 months probation, $20 a month costs. Randy Allen Chesser pled contest fraudulent use of cr card (four counts); three ye probation, make restitution full ($10,000), $20 a mo costs. Michael Daughtry pled contest grand theft worthless check; three ye probation, 93 days county with credit, restitution, $2( month costs. Edward Joe Padgett pled contest welfare fraud; two ye probation, court col restitution. Tariano Andre Perry pled contest battery felony; 60 d county jail, $20 a month co costs, attend and comply Batterers Intervention wit 30 days of release. James L. Strickland pled contest violation of probat resisting arrest with violent battery, escape; probate revoked, 13 months DOC. William D. Fletcher pled contest possession of coca and drug paraphernalia; t years drug offender probate? 120 dayS county jail, $2( month court costs. Geneva Bennett Prevatt p no contest violation probation DWLS felony; 2 da s county jail with ti sered 220 days. Edwin Lamar Rowland p no contest theft of media equipment $300 or more; 3 days DOC, 147 days credit time served. Rachel Kay Tillman pled contest introduction contraband into county jY no edit ears in nth no and ears jail 0 a no ears sts, no lays )urt lete hin no ion ice, 366 days DOC with 159 days credit time served. Bradford students arrested last week for fighting Three female Bradford students were removed from a school bus last week. Two 13-year-olds and one I l-year-old were involved in a fight on the bus as it was leaving school Oct. 19. Police were called to the situation on the bus. The bus stopped at the intersection of. U.S. 301 and S.R. 16 and the juveniles were removed, according to Officer David Bukowski. The three were charged with disrupting a school function and taken into custody. They were later released to their guardians, Officer Bukowski said. Two Bradford Middle School students were arrested at the alternative school after they struck an instructor. When teachers attempted to break up a fight between the students, the teacher was hit by the students. The 13-year-old and a 14- year-old were charged with battery on a school employee and disruption of school activity, according to Officer David Bukowski. They were later released, one to a guardian and one to juvenile justice officers. ion ------------ - no Da-V is Line ,I Now Open inside the INew Walmart SuperCenterl )led . of me led ical 66 Pink Nr White Nails Acrylic Nails for Gel Nails -Nail Art Spa Manicure Spa Pedicure w/roller no massage chair of (904) 964-7878 Mon-Sat 10-8* Sun 12-6 ail; I Happy I stnniversay SOUTHERN PROFESSIONAL TITLE SERVICES First and foremost, we want to thank God for allowing us to open this business and for making our first year so successful. We also thank the Realtors, Brokers, and I Lenders -for -theirtoby.l sUfot Tho our clierits r' ' we say thank you for taking a chance on a new company and for your repeat business and your REMEMBER...You have a choice when it comes to title companies, so the next time you Since 1979, Hospice of the Lakes has been the area's expert in end-of-life care. HOSPICE OFp THE LAKES H AVEIN Tooay we are Haven Hospice of-care professionals who care for them. Paietsan fmiie wthth ame co psint caea lay.Frm r We've changed our name `"""'^ Page 10B TELEGRAPH, TIMES & MONITOR-B-SECTION Oct. 27, 2005 National Weatherizati Day October is National En Awareness Month and Sun Oct. 30, has been designate National Weatherization The state of Florida 3n iergy nday, ed as Day. has FEST Continued from p. 1B races to offer the public. If he breaks even or makes a little bit of money, then he will look at Bike Fest as an annual event. "We're hoping we're going to get a good response," Wigham said. Of the different types of racing that will be on display,' Wigham said he finds the super moto races the most interesting. The riders and their bikes ride on a track consisting of asphalt and gravel, along with -jumps. Racing on two different types of surfaces prevents the riders from equipping their bikes with tires that work predominantly well on either asphalt or gravel. "The bike has to be set up for both types of surfaces," Wigham said. Mini motos, as their name suggests, are scaled-down versions of off-road motorcycles. Then there are the pocket bikes, which are even smaller. Wigham said the pocket bikes usually appeal to people. "It looks really unusual when you've got a guy who's like 5'10" riding what looks like a toy, but the toys do 60die a bit of a death in Europe probably 20 years ago and it's now being resurrected. That's going to be our smallest group of racers, but it's an interesting one with a lot of history." There will also be a motorcycle concourse at the ,.event, as well 'as vendors and food, which is being provided by Johnny's Barbecue of Keystone. Spectators may purchase one-day ($15, $10 in advance), two-day ($20, $15 in advance) or four-day ($25, $20 in advance) passes. Children under five are admitted free. For more information, please call (352) 473-0068 or 1-o g o n t o..., juggler, and mu.li more, D.-. per, ,nie hour prior to show time with face painting. cotton candy, popcorn and soft drinks available, administered.he-Weathe ,at -afito ad-sonig- Assistance Program since its Suwannee, Taylor, and Union inception in 1976, and counties. nationwide, more than 5.5 A few of the success stories million homes have been include a client that had weatherized. This day has been weatherization repairs done to designated to provide her home, which included a recognition of the state of new door and a window reverse Florida Weatherization cycle heat unit. She quoted in, a Program that provides funds to letter saying "that by having very low and low-income the doors installed so well and families to help reduce energy the heat pump unit so air proof bills and to provide a more and tight that I won't lose any comfortable and safe home. heat or cool air in the coming Suwannee River Economic months and that her electric Council, inc. Weatherization bill will reflect this. Program provide home repairs to homes in Bradford, Clay, Another client that had Columbia, Dixie' Gilchrist,. All of these homes had-air filtration and health and safety, issues before repairs were done. I For more information, contact the Suwannee River Economic Council, Inc. office in your area. Fear Injection 2005 willgive dose of horror Come visit the Hotel Transylvania at Fear Injection 2005, Theatre Santa Fe's Halloween offering at Santa Fe Community -C-oHege:- - Santa Fe Community College theater students are creating a hotel that is not for the faint hearted. In fact, this hotel and its staff will scare you out of your wits. Stranded 50 years ago, the guests and staff are seeking revenge, doomed for eternity, to wander the Hotel Transylvania, forever. Visit Hotel Transylvania from 9 p.m. to midnight Friday and Saturday, Oct. 28 and .29, in Building E room 129 (the Black Box Studio). Admission is $5 for adults; SFCC and-UF students ju-, S3. with student ID; kids under 12 T accompanied by an adult are free. For more information, call Audrey Couprie at (941) 323- 2866. fl*flSATiR FAOIHU UFY _ _~i----------~ -c- ----Ir: Section C: Thursday, October 27, 2005 Telegraph Times Monitor Indians defeat Chiefland, advance to semifinals By CLIFF SMELLEY Telegraph Staff Writer It was a little bit of a struggle in the first game, but the Keystone Heights High School volleyball team would go on to sweep the match anyway, defeating visiting Chiefland 26-24, 25-11, 25-15 in a Class 3A regional quarterfinal match on Oct. 25. The win advances the Indians (27-1) to the regional semifinals on Saturday, Oct. 29. Keystone will host either defending state champion Lake Highland Prep (22-5) or Trinity Catholic (15-13) at 2 p.m. Keystone led 13-9 in the first game when Chiefland got a couple of aces from Rhashetta Smith and scored six consecutive points to take Operattoni Gratitude to help our service men and women around the world," said Breck SloanDs and DVDs. For a complete list of needed items, consumers can visit or. "Througi--." Lawtey will. Hampton, Brooker meet Nov. 8 The Hampton City Council and the Brooker City Council meet on the second Tuesday of .each month at 7. p.m at their respc-tive city halls. The next meetings will take- place on Nov. 8. These meetings are open to the public. For information or to receive an agenda, call (352) 468-1201 for Hampton and (352) 485-1022 for Brooker. two-point lead. Chiefland (19-6) built its lead to 21-18, but the Indians scored four straight points with Autumn Lindsey serving, to retake the lead. The game was tied at 24-all when Keystone forced sideout. The Indians then got the win on a kill by Mallorie Wasik. It was an easier time for Keystone in the second game. The Indians scored nine consecutive points with Jessica Visit Us At Our -V, wt. Brand- New Location 15000 HWY 3011 sOUii: Ford serving to build a 15-4 Keystone built a 21-9 lead in lead. the third game of the match Kills by Wasik and Jessica before finally recording the 25- Whitfield, would later give 15 win on a kill by Wasik. Keystone a 24-10 lead before Waasik finished the match ,WhTrfietd -scored-thegame with 16 kills and eight service winner on a kill. points -Jessic-a--Ford. recorded 39 assists, 12 service points and three blocks, while Brenda Ward had a career-high 10 kills. Whitfield had six kills and four blocks, Lindsey had nine points and Cassandra Bruey had eight digs. Back a BYSLtIa at. 5 ~ -; as pat MM ,,.0AE... 05 FORD FREESTAR SE 05 DODGE DAKOTA QUAD CAB 04 DODGE RAM 1500 QUAD CAD 04 NISSAN TITAN CREW CAB 03 CHRYSLER 300M 05 DODGE RAM 1500 QUAD CAB 05 FORD EXPEDITION ,Jl0.O [J06kiNPa.]LS. . 04 JEEP LIBERTY SPORT 02 JEEP LIBERTY SPORT 03 DODGE DAKOTA QUAD CAB 03 DODGE 1500 QUAD CAB 04 FORD F-150 XLT 04 FORD FOCUS LX 'Dealer retains all rebates, w.a.c., 72 mos @ 7.59%. (904)964.3200 TOLL FREE 4x2, 39,432 miles $15,580 'a2, bunl ll 1 IU SLT 4X4,52,034 miles 1$17,400 eLT 91 2 "R E, 5,114U 91 MilesMIZU1 4x4,23,662 miles $17,589 A.nn.r 1 -12 mlla m e s .I IRA A07 mline its Ga PIonUeer Machinery j US 301 15000 US 301 SOUTH in STARKE, FL 7-passenger, 36,565 miles............$15,995 SLT, 26,033 miles $17,990 SLT, 48,217 miles $16,984 SE, 11,352 miles $24,900 Special Edition, 32,858 miles...........$17,645 SLT, 42,719 miles $17,6842 Eddie Bauer, 25,606 miles...........$27,900 _LAwaymIalts 49L84 le..s,, ,.R,.aL. .IU4.4!JI M11858 I I I a~ I *i* nGi L ""9 i^ll "^^ SLI, kis 4IA I ~'~gF~r~OEN,.CGE I R~L I I1 Page 2C TELEGRAPH, TIMES & MONITOR--C-SECTION Oct. 27,'2005 Trick or treat? Not at this house By CLIFF SMELLEY Telegraph Staff Writer Trick or treaters will be hitting the streets of Starke soon, but Jacquelyn Totura is not expecting to hand out much candy. Children, it seems, do not like her house. "Kids just avoid this house," Totura said. "I think it looks quite attractive. It just looks a little ominous." Totura said neighborhood' children have told her they have seen strange people looking out the windows of the house when Totura and her husband, John, are not there. The house, it seems, has a reputation of being haunted, Some home owners may laugh off such accusations, but Totura will not dispute what the children say, "There's deiiniiel, some .spooky stuff going on here," . Tootur. said. .. Pictures o*the Wallsof the htuse ,i straightened, only to become crooked later, even :lht1,, no train on the nearby tneks goe. by. Photographs tkena isid, the house tend to show anomalies. Lights turn themselves on and off. Unexplainable noises are often *"We'll be upstairs and you'll hear, 'Crash! Barn! Boom!' The sounds are unbelievable," Tmj'ura said, "We'll just go dashing downstairs and there's nothing out of place." Then there are the "spirits," as Totura calls them. She and her husband have seen four different spirits in the house: a little girl of about 2 or 3, a woman in a long, flowing gown, a Confederate soldier and Gladys Moody, the previous occupant of the house who is now deceased. And yes, Totura knows that a lot of people reading this will be skeptical. She did not believe in ghosts either. ' She recalls the first time she walked into the house, accompanied by a 11 0-pounqd Doberman pinscher named "Bones"-a trained attack dog that accompanied Totura when she was an investigator for the state. Bones, upon entering the house, looked at. the stairs and grovRed-~'tt'rawsaid'it was at", leas si,.e.eks,, afterward before sfe coitrd get- Bones to go upstairs, and that entailed practically dragging him up the stairs. Bones sensed something in the house and so did Totura's husband, who, when he was her fiance, remarked how weird the house felt when he first entered it.- " Totura, however, still wrestled with her beliefs after witnessing things in the house she couldn't explain. _.:Y-ou want to say .to ... yourself, 'WelL.you're'just ai blasted nut,' for even letting your brain think it," she said. "I guess you feel like kind of a traitor to your faith or your religion to even entertain the thought.7" Now, however, Totura believes and is willing to tell. anyone about it. She mdy even Vt you sleep 9ver so you can understandd what she's talking Obout. Totura even keeps pads f paper and pencils handy so i4ose who do spend the night 4an jot down anything weird tley may see, hear or feel Touring the night. "Anybody who spends the light in this house has an experience she said. J Totura's husband had quite n experience one night. He 1Ild his wife that he got out of ed and walked over to the window, where he saw spirits Boating outside. Then he had ie sensation of flying across e room, as if he was being ulled back into bed by 9mething. At that time, Totura, still an I 'U / I- / 4. . Jacquelyn Totura stands on the staircase in her house. She said a lot of "activity" takes place on the stairs. unbeliever, told her husband he was just dreaming. "You'll never convince him in a million years (of that)," she said. Totura's grandchildren have had their experiences in the house, as well. That includes some rather bizarre incidences on the staircase. The stairs are steep, and Totura has remarked to. herself, while looking downstairs from the second floor, that a fall down those stairs would kill someone. "Both of our grandchildren have fallen down the stairs without a scratch," Totura said. "I saw one of them with my own eyes. It was like she flew downstairs, belly first. She just landed at my feet, laughing." Totura's granddaughter asked her, "Did you see her, Gram?" When Totura asked who, her granddaughter replied, "That girl." "That girl" does not have a name, but Totura has named the other spirits. The woman is called "Flo" because of the way she flows through the house, and the soldier is called "Bob" because of the way he moves when he walks. Totura has seen both Bob and Flo at the upstairs window where her husband had his experience. Bob has also been viewed walking through the downstairs room and stopping to look out the. front door or the windows at the front of the house. . "If :i''here and I s'ee Bob and I look at him, just about the time I see him he's gone," Totura said, "He's like vapor.", A popular hangout for Flo is an upstairs bedroom that has a stain on the floor underneath the carpet that cannot be removed. Through research, Totura knows that one of the house's, former occupants, a Mrs. Meacham, died in the house during childbirth. She thinks the stain on the floor is blood, and she also thinks she knows See HOUSE, p. 6C Jacquelyn Totura says she and her husband are not the only ones who occupy their house on Adkins Street in Starke. The Toturas have seen four "spirits" in the house, though they have proven themselves to be quite harmless. Cl A-- C, A-- 'C' c', Ghouls and ghastly delights await visitors at the Keystone Heights Jaycees' Haunted Trail. Keystone Jaycees are hosting 'Haunted The Jaycees' Haunted Trail runs Thursday, Friday and Saturday, Oct. 27, 28, and 29. Local ghouls take Sabbath night off Oct. 30, when evil powers have no sway, but they rise again on Halloween night, Monday, Oct. 31. The entry fee is $6. This year the event features a smoke machine with a fog- generating capacity of 20,000 cubic feet per minute. It takes approximately 20 to Trail' 30 minutes to complete the trail which features over 50 Jaycees and their families. The Haunted Trail is one of the group's biggest fund- raisers each year. Proceeds usually go toward Thanksgiving baskets. Adults must accompany small children on The Haunted Trail. Babes in arms are not appropriate, but will not be turned away. And parental discretion is definitely advised. CVlslt us on-line .t) P-10:1-CIAZU Starts Fri., Oct. 28 Antonio Banderas in THE LEGEND OF 'ZORRO cR-R Fri. 7:00, 9:15 Sat. 5:30, 8:00 'Sun. 4:50, 7:05 Wed. Thurs., 7:15 Now Showing Dwayne "The Rock" Johnson in mi0, SFri. 7:05, 9:15 " Sat. 5:45, 8:15 Sun. 5:00, 7:10 Wed. Thurs., 7:30 Vl-2300 o Built-in speakerphone > Sprint PCS Vision' enabled SMS Text Messaging enabled Buy One, Get One FREEL $29.99 REG S189.99 SAVE $349.99 on TWO Instantly." Offer requires activation on a new line of service with Sprinm PCS Vision and a two-year sunscriberagrqeirrenL Sprint together with NEXTEL rW I ,' I .. l .C .E 1265 By Motorola* o Built-in Nexmel.Walkle-Talklie > Built-in Speakerphone > Web and e-mail enabled ) CPS enabled Buy One, Get One FREE. $49.99 REG. S199.99 SAVE $349.99 on TWO Instantly. Offer requires actlvaTion an a new 'line of service with Nextel Da3a Service and a two-year subscr;tiev agreement. g66-CELL HJ~'JJ^^J=meT Coverage. wde plan ftatub'servoe'sari3d phone 0viab.Iily Wry rt~ w~oFi'NaIlorrnnid! 5p'.rl P3SNelworl, 'earcies on 2 M 'fill-i p:p'.,y FOCUS Ne,:i~iInai~e~,eirrate, ovea' M3mlrl~lor, people rkrfi Tand .0i'd Irnap~rlySub eJ m v'.ed ajp~roial See sieOf.80 Pl'iIT IorSu iLry Irir aiCIrt Phone Offers. Lopire 11112 10" or *ht uppleslis Lt? iioneoffe'tr rquire altiai Sprlin? PCS 'i.m ora' 'vM dldIa Lr'vrw.e %I, P-cripfici IS ID $2105morehi pe' pro ir, tS VIsloIlleptei dit a seivjcela fbee tar atev'nor Ih after wrilcr mrvovil.) Oalpe AlIII .po31j L'itn ~'es caweed -I u'-Ir8rII. ) im, %rt'il jl, np,,.:trj-nr',rolrviriat90ASPPINT.I Additional PepSib arlalion teepi"ohowe S ISO pririPlCS or S2Oflte.luled, I I Ir. nil Ia'Irjr. n F% Jf i'd ,'nrif I,, Fri. eI FoJa iJ col ~,,fme0110r.aa pr 'it iNeiWIAll ri' F,v'it, nl' ed lll, tfie rul ~', md i,,gi. 'V." AI I ,rJfe,,lt l.. I It.cFt~ n.r 0' 1 d 'I EI6Ji'datel'uie IN~-rk-, a'ir ,idt ojil I. uSv-I,"' ei elMC OP. A dr-d lt'nSiyucU %I the U. Iiw, I&T,,dem'.r. Cr,v A ~I I Pi-a pdi'ILQ'ldu~to' t 1rim,e ppmvryof' :he t ite 'pnhet oe arue'il IIi'1I-. re ,edvi - i .ii m i m m i i l l l m Get the phones and plans you've been looking for with the new Sprint. Now you have more choice and flexibility than with any other i wireless company. I Bu -e Gt -6 FEE K'jbot i' KjbooI Kjboio K ubo> h < bo ) 'jbl, Hunting for a new , utility vehicle? 4502NW.13th-Street I inGainesville S OPEN:W S t y S. BIGenough to do it RIGHT. Smallenough to CARE! ams(mGn Jmioto 5uo R uo l- s ' =11 MIT - - - r II --- Oct. 27, 2005 TELEGRAPH, TIMES & MONITOR-C-SECTION Page 3C Night Out Under the Stars teaches space science by the light of the moon Under the Stars program. huee in the night ,,k\. By MARCIA MILLER The telescopes provided startling John TinNler. BIMS science teach Telegraph Staff Writer views of a .moon that was already, See STARS page It's very easy to teach astronomy to young -. people when your classroom is the heavens and the overhead projector is powered by the light of - the full moon. -' Bradford Middle School students and " their families participated in a hands- on demonstration Oct. *.. . 17 that allowed them to . gaze at the moon and other planets through .: ;- large telescopes during ,,. the school's Night Out ABOVE: Teacher Becky Burkett looks on while Mitch Dubolsky focuses the telescope. FAR LEFT: (L-R) Emily Frederick, Laura Frederick and Allen Clemons look up into the night sky. LEFT: Allen Clemons examines star charts that tell where the various constellations can be found. CENTER: (L-R) Viewing the video on astronomy are Laura, T.J., Sarah, Emily and Grace Frederick. See STARS, p. 5C Antoinette Davis, Dennis Jackson, Kashondra McCallum, Brienna Davis, Wendy Burton and Alisa Thomas wait patiently for a chick to finally come out of his egg. Students hatch chicks as part of 4-H program Third- and fifth-grade students :n Bradford Counit recently learned all about eggs and even hatched their o'.n chicks as part of a 4-H after- school program. , The Yes to Science after- school program, comprised of 27 students, began when 71 eggs were placed in incubators. All students participated in the embryology clinic and started by talking about the structure of an egg and the function of the different parts. They then each experimented with their own eggs by breaking, them open and labeling each structure. The students, in groups, then made their own omelets and learned about the nutrition of the egg. Other group activities %ere conducted to learn the development of the egg over the 2 l-da\ incubation period. Each of the groups reported back and, as a whole, tried to determine what the chick would look like on the 14th day. Students were really excited to, see, that their conclusions were correct. On the '21" day, students watched chicks hatch from the eggs and learned about how to care for the ,chicks. At the end of the clinic, the students made brooders to take their chicks home in and on Oct. 18, the students finally got to do so with approval from their ,parents. The Yes to Science after- schbol program is funded through a grant from USDA's Marquil Reed, Dequan Blount, Kayla Patterson and Eddie Allen hold their chicks carefully as they are taught how to take care of them once they get home. Children, Youth and Families See CHICKS, p. 8C Handi-House Portable Buildings 12'l16' Building OnlyV2,250 GREAT PRICES ON ALL SIZES 6'x8' up to 24'x50' 12 MONTHS SAME AS CASH BA CEIT N POB.:fl! . . I PLUS ... WE BEAT ANY COMPETITOR'S Wl 0 S. US-301, Starke (904 . 167 :_, '. . '99 VOLVO V-70 '97 CHEVY GEO PRISM '00 TOYOTA 4-RUNNER Loaded, Leather 7,995 4 c, Auto, Loadedl 3 950 4 c, Auto, Loaded 8,995 Sunroof, Xtra Cleanil Xtra Cleanl, '399 Down' "G Sa CASH!* SHARPI! '299 DoWn' ,,..11 Fir"' g VV VVUL vUL uIivIv .LI VS Ato,3d Seat 9,995 L6ADE6 NIM a l ..... . ILVERADO $8,995 '399 Down* '97 DODGE HI-TOP CONV. '89 JEEP WRAN FULLY LOADED! 7,995 6c, Sharp TV, VCR,etc. Only 86k miles! '!" .I,' '95 PONTIAC TRANS AM Converl, VS. Auto, $8,995 Leather, Sharp! *'399 Down* 7500 N.E. F( iirb'i L. E LI% L RE JL $69,995 WRITTEN OFFER! ) 964-3330 jx [.. .-0 - '99 FORD MUSTANG V6, A, Loard *6,995 SHARPIII '99 FORD EXPLORER SPORT Auto. V6,CD, $6,995 sHa Ail 5 9Wa 500 '99 OLDS AURORA VS. At, Loa 9,995" ether,,Lo *7,995 Only 65k miles! '399 Down' Ok il399 Down*e UKE NE MI! '399 Down Cars Inc rs Inc. Visit Our New Website Waldo Rd. m Cennhnlnc,. )k/1 CI rCIlln Ull*CK ML (352) 375-CARS (2277) HOUr-.S: Mon- 9-6 Sat 9-2 *Plu- lb MIR & till FINANCING ARRANGED Many More Clean Vehicles to Choose From Most al major credit cards accepted with 90 Day 3,000 mile FREE Warranty HOURS: Mon-Fri 9-6 Sat 9-2 R HORS Mo-r 9-6 "II SatY 9-2P i- rn -MM3 - I I Page 4C TELEGRAPH, TIMES & MONITOR-C-SECTION Oct. 27, 2005 indlanS hut out Rams, stay alive in playoff chase By ARNIE HARRIS LRM Staff Writer Thanks in large part to the., hard-nosed running of Michael Williams and Greg Taylor, an unyielding defense and the kicking leg of Michael - McLeod, the Keystone Heights football team was able to blank the visiting Interlachen Rams 6-0 on Oct.21 and remanin-n lH the hunt for a playoff berth. The Indians (5-3, 2-2 in District 3-2A) are now in the. position of being in partial control of their postseason . destiny. This Friday, Keystone ' must defeat Ribault and ,.. S Bradford must lose to -West Nassau for the Indians.to finish as district runners-up. A stubborn defense against -: Interlachen helped put the Indians in that position.. - JKceystone--over--&Hqwedr--g.r' -, Rams within field-goal range during the course of the game. Interlachen (3-6; 1-3)proved. Keystone defenders (from to be unwilling accomplices in prt of a unit that has not the loss by committing numerous turnovers, ps well as costly penalties, one of which field goals-the first for 32 nullified a 65-yard touchdown yards at 11:53 of the second reception. quarter and the other at the Things got started off on a halftime whistle for 28 yards. sour note for the Indians when. A highlight of that second running back Wil Breton scoring drive was Taylor's 34- sustained a shoulder injury on yard scamper to the Rams' 30. the first series of the game. Otherwise, the second Except for a brief appearance quarter unfolded as a comedy\ in the second half, when-he of errors as the Rams aggravated the injury. Bretorin committed three turnovers, two sat out the rest ofthe game. of which were fumbles. As if Picking up the slack were caught up in the spirit of Williams and Taylor, whose giving, the Indians rushing moved the baJl deep reciprocated by having two enough into Rams' territory t ,.passes intercepted. set up McLeod for hi, two Keystone, despite starting in foot line. On fourth down, Keystone head coach Chuck Dickinson, somewhat controversially, chose to go for the touchdown rather than what would have been a high- percentage chip shot of a field- goal attempt by McLeod. A successful kick, with 2:36 remaining in the game, would have all but put the Rams out of the game. As it turned out, the Rams held tough and kept ball carrier Taylor out of their end zone. Dickinson defended his decision, saying that more things could have potentially gone wrong with a field-goal attempt and, if it failed, Interlachen would have begun its final series from the 20, instead of the one-foot line. Dickinson's confidence in left) Jack Taylor, Tony Hamner and Nick Salsbery are allowed a touchdown in two games. good field position on two drives in the second half. \as unable to get the ball int, the red zone. Interlacheri remnaied just a touchdown away from taking the lead a.s McLeod missed two field goal attempts After the second missed kick. the Rams silenced the crestfallen hometown faithful %when quarterback Josh McCo\ found recei er Kendall Nichols open on a crossing pattern. Nichols raced past the Indian defenders on his way to the end zone for a 65-yard - touchdown. Howe'.er. much to the relielt of the team and fans. [nterlachen .-.as flagged for an illeal block to the back. which, i 'LcouLpled v. ith an unp,,rt.nijanlike .rnduct call. set the Ram:s back t their ov.n 4,s To add insult to inlur,. the Ran-,. fumbled ti.o pla\s later and the ball as recovered b\ Kc .tone' Jacob Elliott on the opponent's -41. Carries bt \\illiam and t,'.o consecutive personal fouls committed by :the Rams' defense eventually moved the Indians to the one- Keystone to play crucial game Friday .......--- -.'-"'- Trojans as a "pass-oriented By ARNIE HARRIS. team predominantly," that LRM Staff Writer possess greatly skilled athletes. "They use all kinds of The Keystone Heights complicated pass routes and Indians will be traveling -to can score on you in a hurry if Jacksonville to play Ribault, they have the chance," Friday. Oct.28, f9r a, game Dickinson said. which hits .'enormous The Trojans are most sitmi f~ea'. e es when quarterback 1oy %4.- ls"-..ve "oh6oks up with BMdiiMA Z 61; Z Weat ,esoai'ess Hakeem Johnson. Nassau, then Keystone Rashad Coleman and Chris clinches the rtunner-up Summers. __postseason-hetIh-in- Dij~rir.t Nonetheless, Ribault's 2A and a trip to theplayoffs,"' "overall offense has put up -However, if. the: Ribal1t anemic numbers this season, Trojans win, that honor. w, .-I averaging less than 200 yards belong to them .. and scoring a total of only 83 Even a Keystone win. will not put them in the playoffs.if,. Bradford defeas West Nasau, I which will put the Trn. 4es in postseason play.. Ribault has air at y All The C o improved upon its di&sm.l 9I record of last yr.'. .Th- W without All t Trojans are now3-.5 nd t, .o u ARl I the district. --', Kystone' Palm H Dickinson ecrib the NOWb Il~mi owl points in eight games The rushing game has been virtually- non-e\istent for the Trojans, who average approximately 60 yards per game on the ground. Ribault's other area of weakness has been its run defense. Most opponents hase averaged six .ards per carr. and approximatelN 275 yards on the ground Another team liability is the tendency to turn the ball o'er. %which the Trojans did at least three times in four of their games, including si times against West Nassau and fi'e times against Bolles mforts he Costs lator Homes IN LAKE CITY Last week, Ribault defeated Bradford 21-20-despite exhibiting the aforementioned weaknesses-after trailing 20- 15 at the half. $10,700 i M ,1,1A iIiNTi TV his defense proved justified, as the Indians stepped up and kept Interlachen pinned on its own one-yard line. The- Rams were forced to punt and 'the Indians ran the clock out. Score by Quarter IHS: 0 0 0 0-0 KHHS: 0 6 0 0-6 Scoring Summary K: McLeod 32 FG K: McLeod 34 FG Team Statistics I First Downs 7 Rushes/Yds. 16-26 Passing Yds. 36 Passes 4-12-1 Fumbles-Lost 3-3 Penalties 8-75 K 13 39-143 36 4-11-2 1-0 3-25 ** Kind looks, kind words, kind acts and warm handshakes- these are secondary means of grace when men are in trouble and are fighting their unseen battles. -John Hall !E04- - 410 """"e DOWNTOWN STARKE IN THE 1888 BUILDING Corner Of Thompson & Call Streets -... .- -, - *;-;* I B~'." **--** 1J'7. 02 CENTURY S$79,900 AI. ll,, iLixil ilT'Ti'i7 .letter Built Than Site Buil Homes S lrcnwccd lomes "JUST PAST 1-75 ON THE RIGHT 4109 Hwy. 90W 386-754-8844 ,Lake City, FL 386-754-8844 01 EXPEDITION 1441A $14,800 Sales hours: Mon-Thurs 8:30-7:00 Fri 8:30-6:00 Sat 9:00-4:00 Service hours: Mon-Fri 7:30-5:30 S 03 ESCALADE 900,A $30,500 HYBRID CHEVY SILVERADO LS 1\\0es21,00 352-378-5301 800-535-4608 2001 NW 13th St. Gainesville, FL PERU SCRElJM FOR ICE CREWm! Hot Dogs Sandwiches NOW OPEN! OPEN 11 A.M.-9 P.M. (lbme Jiceting I.ouse I'i BRA,, SI IO N N , Cadillac Saab |I.I I 'ilA 04ALERO SEDAN b] Oct. 27, 2005 TELEGRAPH, TIMES & MONITOR--C-SECTION Page : 1 ". ;- lwRi I A~ ~ S ~ ~ r flL-~ The dealership's new home is on U.S. 301 South, next to Pioneer Machinery. Same town, different location By CLIFF SMELLEY Telegraph Staff Writer People who have driven by the Beck Chrysler Dodge Jeep of Starke dealership on U.S. 301 and S.R. 100 may have noticed something-it's not there anymore. Oh, the buildings are there, but-there are no signs of people or cars. So what happened? The dealership has just moved to its new location, which is off, of U.S. 301 South next to Pioneer Machinery. "We moved before the building was completely finished," said Hal Magee, general manager. "We wanted to get down to the new location and get settled in. We'll finish as we go." Magee said approximately $2.5 million was spent on the 17,200-square-fo.ot facility, which sits on 6.5 acres. The main advantage of the new facility is that it consolidates everything in one location, Magee said. At the dealership's former location, vehicles were located across a small street from the sales office and the service department was located across S.R. 100. "It's going to be an absolutely amazing dealership," Magee said. "For us, getting everything under one roof is a big plus. It makes us much more efficient." That is why, even though a lot of money was spent on this project, customers can still save money at Beck as opposed to going out of the area to buy a vehicle, Magee said. "Every dealer pays the'same for a car, whether they're buying one. or 100," Magee said. "The thought that they can go to a larger dealership in a metro area and save money is really a false thought. We have lower overhead and we pass those savings on to our customers." Planning for a new facility began approximately three years ago when Beck Auto Sales purchased the dealership from Clayton Revels. Now that the project is complete-well, mostly complete-Magee is excited about the future. I'm very, very excited about ,the potential to grow with. Starke," Magee said. "We feel that our production should double at this new location. We'll make people good deals to make sure that happens. If they'll just come down and give us a chance, I feel -that we'll earn their business." I _ i.;,!.ity leads to strength and not to weakness. It is the form of self-respect to admit mistakes and to make amends for them. -John J. McCloy Play OurFootball Cont t RULES OF THE C Zrkis week s winner s Vikk" Crawford of~4wtq,' SYour Dodge TrWOk Headquarers Bradford at West Nassau 904-964-3200 Corner Hwy. 100 & 301 1-800-788-3001 Starke Philadelphia at Denver 2 miles south of Starke on US-301 904-964-7200 Web address: www,TownandCountr Ford co m SAWYER GOAS Wendell Davis, District Manager Kansas City at San Diego US-301 S, Hampton Just 1/2 Mile South of the (352) 468-1500 Gate Station At 301 & 18 1-800-683-1005 ( MR.AutoA XPRENTAX INSURANCE D. Sabrina L. Roberts 737 S. Walnut St. AGENT Starke Ole Miss at (904)964 337 Auburn (904) 54 33 1. Anyone, except Telegraph employees and their immediate families, is will win. The ihe picks the most games correctly ill w in $100 welcome to enter. One entry per person per week please. Persons cash. winning one week are not eligible to win again for at least three 4. In case oi ,olal points scored in the GATOR game each week, weeks. ... is the tie.bh .i i ' i.c fill in the points you think will he scored by the 2. When picking up winnings, the winner will have his or her photograph GATORS wand i ii opponent, combined, in the tie breaker blank. (For taken for the paper. instance, if ia' .. i the GATORS game was GATORS 19, opponent,- 3. Entry must be on an official form from the Telegraph and submitted to 7, the. corrc I be 26 points.) one of our offices: 131 W. Call St., Starke, 150 W. Main St.. Lake Butler 5. Decision 'l ,'i. e!Cis is final. A second tie breaker willbe used, if or 7382 SR-21 N, Keystone Heights before 4 p.m. each Friday for that necessary. Rce-,!i. i he tabulated on Tuesday and winners notified by week's games. Fill in all the blanks with the name of the team you think telephone. i)%r 'i to list a phone number where you can be-reached. SPORTING CHANCE Keystone at Ribault . 211 S. ORANGE ST.. STARKE 964-7434 Little- CQ, :S 207 Orange St. $599 spire Spires Family "Hometown Proud" Pharmacy Florida vs. Georgia Inc. 386-496-3361 386-496-2970 610 SW 1st St., Lake Butler Visit and contact us at: spiresiga.com 0 Capital City I NBank Arizona at Dallas '50 N Temple Ave. Starke, FL 32091 904) 964-7050 405 S. Lawrence Blvd. Keystone Heights, FL 32656 (352) 473-4952 Trinity Catholic at Union Cu.n', LARGE I-TOrP '. All Day % . , TrinityMortgagcFL.cmn Tampa Bay at San Franoscc. 11) Edworg-d% IRd Sin rke 90i KIRBY LASER AN' " EMBROIDERY ENGRAVING ',. ' Lfeen Ba, at CCiru , S( / /I/ '. ./\K il, hl,'JjE-i ori, ,-PEr i 395 W. Main St., Suile C Lake Butler, FL 32054 Phc' '~ Cs Comm : I ':) 'State11 No cut-off time on il. Miarvlanrd at FSU STARK f , 811 S. Walimi[ Si. -- 9 j0 'ZZA IJENRNINSINSD LATUIl 'Call today, blow your eletric bil away." S(877)2294180 (35M2)73-9744 Jacksonville at St. Louis Locally Owned 8 Operated AND NOW ... PAINTING TOO! Bradford Pre-Schoo Owner: Linda Bryant 7t Souie f9T7 Chld c, re for age5s& up The FIRST da3 are .n iowq with secuny cameras for ihe added saleiy of your child Miami at New Orleans- Open MONDAY-FRIDAY 407 W. Washington St., Starke* '.' ii.- brd..,, .rd Hil. Sg h.- c,. .... 964-4361 9LE CITING Whispering aks "BRAND NEW" ' COMMUNITY APARTMENTS Washington at NY Giants qG-3792 900 S Water St. 0 ""00 36-3796 Starke 904-368-0007 * ITI 904-964-7830)] E '. , Southern Prol i Title Services , L'FR.v hE.R II i.1 l,-nuil: s llh Purdue at Penn St. . Lake Butler Sia. 35 SW 4th Ave. sie. 5 819 W. M :Mhan St. 386-496-0089 )041 I(; 72 S t r f pir,' a, t T ero n-.. JacKson SBuilding Supply Proiudly sni,i our rwmmuNly for wrr 48 years! Texas at Oklahoma St. Jones Funeral Home HOSPITAL EQUIPMENT MONUMENTS *PRE-NEED PLANS .s ".. Dedicated Service For Over 88 'ears STAKE (.ySTONE HtEIGHTS 964- 00 ft Minnesota at 176 9646200 MCarolina 473-31 www LRMonitorcom Steve & Cindy Futcht i.f. OWNERS Serving AiTFaiths ww.UCrimesonline.com Lake Butler 145 SW 6th Ave. '496-3079 rfl CO(, HAY E - ELECTRIC AND AIR COND)', " SHwy 301 S., Starke' (904) : 44 Buffalo at *" New England Oklahoma at ,iP; I. New England Nebraska rC.,o, .. c El .lm .i l 1 Jakson Building Sply Hayes Electri ' Jones Funeral Home , CapitalCityBank Sawyer Gas . Trinity Mortgage Jennings Insulation Mr. Auto Little Caesars Sporting Chance Bradford Pre-School Town and Country Ford Weighless Weight Loss Center Community State Bank Kirby Laser Needle The Office Shop Spires Grocery Beck of Starke Sonny's Restaurant Chevrolet of Starke Western Steer Whispering Oaks .- Southern Professional Tile Service Bradford County Telegraph TIEBREAKER SCORE: Name: This $2.5 million, 17,200-square-foot facility is the new home of Beck Chrysler Dodge Jeep of Starke. '.1 ii ~ t;'. 8 - - -- ., . [,VOA4hVljWA(* John 3; 16 RS .ed from p. 3C S..anizer of the event, the second time the i.. s planned a Night rm! 'ra. S. going to try to do ,.: these each semester," .,nsler. "Later in their S be able to focus : n the stars and the i ions." :.in focus Oct. 17 was ,. i. full moon and the Venus and Mars were ". t easilyy visible to the r ,s. ['insler said the of light put out by the; S. : n made xieming the .' ficult, so another night planned for viewing i t ,,tellations. Fe Community professor Van S .. ,. assisted with ', 1-'- the event and ;. a equipment like es, star charts and :: i of planetary systems. '.nts were able to view Si .Xionstrations on the planets, examine charts, and models and then view the planets themselves through the telescopes. Part of the lesson involved instructions on how'scientists can measure the light given off by a planet to .determine what type of gas makes up the atmosphere. When it was time for a break, students, enjoyed moon pies and RC Colas. "One reason we do this is just that it's cool," said Tinsler. "Everyone likes looking through the telescopes. The bigger reason is that it's a way to teach science education standards in a way, that is very real to the student." Tinsler said the lesson also serves as a humbling experience for students and teachers alike. "It really puts the earth and our place in the universe in perspective," said Tinsler. "When you look at the stars, you realize the distances involved and it just blows your mind." ',, Tinsler said plans are to add activities to the Night .Out each time it occurs. , ]i~~ 'Y)B 4 3 Page 6C TELEGRAPH, TIMES & MONITOR--C-SECTION Oct. 27, 2005 Keystone sweeps Interlachen, wins district title By CLIFF SMELLEY Telegraph Staff Writer Keystone Heights continued its dominance of district opponents, defeating Interlachen 3-0 (25-10, 25-8, 25-11) to win the District 6-3A championship on Oct. 20 in Keystone. "It feels good," said Keystone head coach Scott Conkling, who has not won a district title since 2002. It was the first such By CLIFF SMELLEY Telegraph Staff Writer The Bradford High School volleyball team could not pull off two upsets in a row, losing to Santa Fe in the District 3-4A championship match, which was played at Middleburg High School on Oct. 21. Santa Fe, the state's 10th- ranked .team, defeated the Tornadoes 3-1 (25-21, 25-18, 24-26, 25-11). Bradford made it to the championship match by defeating host team Middleburg 3-2 (27-25, 16-25, 25-10, 21-25, 15-13) on Oct. 18. , Bradford head coach Matt Moore said the Tornadoes were nervous at the start of the match and did not 'play particularly well throughout the match. "Santa Fe came out and took it right to us," Moore said. "They've beaten us three times (now), so it's probably appropriate to say they're a better ball club and worthy of being the district champ." It was a different performance in the district semifinal match against Middleburg. Moore said his team played with confidence and a defensive adjustment, which took away Middleburg's tip opportunities at the net, that seemed to affect the match. "Once we did that, it seemed our confidence grew and Middleburg's confidence diminished," Moore said. "(Middleburg) was really Health and wellness fair at SFCC Santa Fe Community College 's Health and Wellness Fair will highlight the college's medical programs such as nursing and respiratory care while also offering free health screenings to the general public. The fair will be held from 10 a.m. to noon on Thursday, Nov. 3., in Building R Room I at' the Northwest campus. Staff from 16 SFCC programs will showcase course work that leads to richly rewarding health care careers with tremendous demand for employment. Faculty, students and advisers will be present to discuss pathways to meet your professional goals. Representatives from Santa Fe's Career Resources and Financial Aid departments will also be on hand for advisement, Participants can examine their own health status at no championship experienced by any of the current players with the exception of senior setter Jessica Ford, who was brought up from junior varsity late in the 2002 season. Ford was the server early in the first and second games of the match as the Indians were able to build big leads over Interlachen in no time. Keystone scored seven points with Ford serving to build a 9-2 lead in the first game. Brenda Ward contributed two kills during Mallorie Wasik goes up for a kill in Keystone's win over Interlachen in the District 6- 3A champion- ship match. Wasik finished the match with 13 kills. that stretch. It would be Ford and Ward who helped the Indians close out the game. Up 22-10, Ford served up two straight, aces before Ward's tip over the net gave the Indians the winning point. The second game was tied at 2-all when the Indians scored nine points with Ford serving. She had two aces during that run and Mallorie Wasik added Kierra Mosley had 30 assists to help lead Bradford to a win over. Middleburg in the District 3- 4A semifinals. shaken throughout the match." Middleburg held a 13-11 lead in the final game of the match-two points away from winning.,Moore said he called timeout at that point and when play resumed, the host Broncos lined up incorrectly, giving a point to Bradford. "That really rattled them," Moore said. Tosha Newman, who had 21 kills, 13 digs, six service aces and four blocks, was key during the fifth game, Moore cost. Cardiac and vascular ultrasound, blood pressure checks, bone density and osteoporosis screenings for women, and pulmonary function testing will be available, all for free. The Health and Wellness Fair is open to the entire community. For more information, contact Scott-Fortner at (352) 395-5733. HOUSE Continued from p. 2C Flo's true identity. "I think she's Mrs. Meacham," Totura said, "This is where she's always at," Moody, who worked for the Bradford County Tldci,:ipih has been spotted in several places iliroutihliiii the house, and she passes jud;rfimeiF on any renovations 'Iotura and her husband mi.ike. "Every time do something to the house she approves of, she gives me a thumbs up," ,Totura said, said. Newman was suffering from leg cramps, but. she did not leave the court. ' "She continued to play excellent volleyball and provided, us with leadership," Moore said. Kierra Mosley had 30 assists and six aces in the match, while Samantha Stocker had 13 digs and Jachael Nichols had 11 kills and five blocks. Bradford advanced to the district semifinals by defeating Baker County in four games. A lot of people would probably be a little unnerved at sharing a house with spirits, but it does not bother Totura. She said the spirits are harmless, though one of them can be a little mischievous. "Flo will mess with you a little bit," Totura said. "She'll come zooming at you." Totura has lived in the house 20 years and she says she does not want to leave. "I'm going to be here for the rest of my life, right here in this house,"' she said. But will she also be there beyond then, joining Bob, Flo, Gladys Moody and the child on the stairs? Maybe one day in the future she will be peeking out the window at the neighborhood children. The basic test of freedom is perhaps less in what we are free to do than In what we are free not to do. -Erla Hoffr" two kills. Keystone would score four points behind their next server, Wasik, to go up 16-3. The game ended when Michelle Houser recorded an ace. Interlachen managed to keep the third game a little closer as Keystone rotated several players in and out of the game. The Indians led 10-8 when they scored seven straight points with Noel Bartley serving. The Indians scored seven straight points with Autumn Lindsey serving to close out *the match. Wasik and Jessica Whitfield had three and two kills, respectively, during that stretch, including Wasik's kill for match point. Wasik finished with 13 kills, eight points and three digs, while Ford had 26 assists, 20" points, six aces and three digs. Ward almost reached double, figures in kills with' nine. Whitfield and Houser had seven and five kills, respectively. The 3-0 win was the Indiaris' ninth sweep of a district opponent this season (Keystone's second scheduled match against Union County ' was a-forfeit win) and their 26 ' win overall through 27 matches. - "At the start of the season I never would've dreamed we would be 26-1," Conkling said. District play may not have been much of a challenge, but 14 of the Indians' wins have come against larger schools, including Santa Fe, a top-10 team in Class 4A, and Fleming Island, which is just outside of the top 10 in Class 5A. Conkling credits, his team's success this season to the players' hard work as well as a determined attitude. He admitted there were times during a couple of matches, against Buchholz, Nease and Santa Fe, when he thought his team would not walk off the court as winners. The team did earn wins in those matches and Conkling said it was because -the players refused to give up. "I've been really proud of them," Conkling said. or all your ala 4k Paeant Veeds Bridol Flower Girl Dresses Proms Tuxedos Gowns 212 East Call Street Starke, FL 32091 (904) 964-3100 -- rues.Fri 10.6-Sat 1I0-5 ww. nesimpletloe net .- DIRECTV i',.". PIY" - THE CHANNELS YOU W AT THE PRICE YOU NEED. __-l-C I, Af('\'(* _ ~~P.Y- 0Mwe~- mHE gm= "t (3 oh!Full XamC . %I' __m wh--E'EL 0~i~ ~ ~ ~~ ~j '..--'U, J -ieomr sorilrv- The Keystone Heights volleyball team won its first district championship since 2002. Pictured above are: (back row, from left) Lori Albritton, Noel Bartley, < Michelle Houser, Tysee Williams, MaIlorie Wasik, Kim Russell, Katie Taylor, coach Scott Conkling, (front row) Brenda Ward, Autumn Lindsey, Donna Wheeler' (sitting in front with trophy), Jessica Whitfield, Cassandra Bruey and Jessica Ford. Tornadoes finish as runners-up to Santa Fe J & R Overhead METAL SALE 36 inch wide metal in various colors. CUT TO LENGTH. 352-473-7417 ACT NOW AND GET OVER 155 ALL DIGITAL-QUALITY CHANNELS FOR ONLY 09 9 ASK HOW TO UPGRADE SM*. 9 ONE ROOM TO A FREE 3 9 T" DIRECT DVR TODAY Sra FOR THE FIRST 4 MONTHS en a i. FOR THE FIRST 4 MONTHS Offers end ll/0K5. Just purchase TOTAL CHOICE" PLUS package and DVR service. New residential customers M. DIRECTV haIt te, pegrom ing and DVR service sold separately. Add $4.99/mo. for separate programming on 2nd and eacdi ddotioal I-. ,- '' Oct. 27, 2005 TELEGRAPH, TIMES & MONITOR--C-SECTION Page 7C Tigers lock up playoff berth with 34-26 win 4 Tigers and Celtics will play for district title By JAMES REDMOND Times Staff Writer On Friday night, the Union County Tigers traveled to Gainesville to face district opponent P.K. Yonge with just one thing in mind-to get a win and assure themselves of a spot in the playoffs. A' combination of special teams play, offensive ball control and the defense's ability to make a stop all contributed to a 34-26 win for the Tigers that clinched at least the runner-up spot in District 4-2B. Union head coach Buddy Nobles said it felt good to know the Tigers will return to the playoffs and gave credit to the people who got them there. "It feels good for the kids," Nobles said. "They're the ones that earned it." : The Tigers (5-2, 3-0 in District 4) scored .,arly and often. The first score of the game came with less than two minutes gone in the first quarter. Atier .the Tigers' defense forced'the Blue Wave to go three-and-out, senior Rodencia Austin took a punt back 55 yards for Union's first score. It wa Austin's second puift return fpor. a. ltuchdo". n thi, season. lnion's ensuing extra-point attempt was blocked after a bad snap,. hp\ever, and the Tigers led 6-0. :,. oth teams had possession of !the ball before:-'the next score of the contest. The Blue, WTve had a high snap that the Tigers recovered, but they were unable to convert on a fouIrth-and-seven play. 'P.K. Yonge (4-3, 1-2), with the! ball back, would tie the game. On the first play from scrimmage, Blue Wave quarterback Mark Williams would scamper 50 yards for a touchdown. A'personal foul by the Blue Wave made the extra poilt:a 35-)ard anempt. which h warno good. ' Union senior running back C.J. Spiller, after returning the ensuing kickoff 22 yards, got the run he had been looking forward to for two weeks. With 6:21 left in the first quarter, Spiller broke off a 6- yard run that sent him over the 1,000-yard mark for the season. The run came on the heels of the announcement that Spiller was invited to play in the Jan. 7 U.S. Army All-American Bowl. A press conference was held at Union- County High School on Qct. 20 to announce Spiller's invitation. Spiller and junior Josh Mitchell would be the workhorses for the remainder of the drive. After Spiller's 6- yard run, Mitchell had a run of 15 yards. Spiller, after an incomplete pass and an illegal procedure penalty, carried the ball for ,another 15 yards before Mitchell capped the drive by taking the ball 39 yards into the end zone. Spiller's run on the two-point conversion gave the Tigers a 14-6 lead. P.K. Yonge, helped by a penalty for running into the kicker, would drive down the field late in the second quarter. Williams once again called his own number and went 46 yards for a touchdown with 2:30 remaining in the half. The two-point conversion failed, leaving the'Tigers up by two. It did not take the Tigers long to increase that lead again. Spiller, knowing how to make a tackler miss, took the ensuing kickoff 99 yards for a score. The extra point gave the Tigers a 21-12 halftime lead. The entire crowd got a real surprise just after the second- half kickoff. University of Florida head coach Urban Myer graced the Union sideline with his presence. While he -was cordial to everyone who approached him, See TIGERS, p.-8C C.J. Spiller (right) is pictured with Sgt. Brooker T. Robinson, a U.S. Army recruiter in Lake City, during Spiller's selection to the All-American Bowl. Spiller invited to playing ,All- American Bowl By JAMES REDMOND Times Staff Writer On Oct. 20, Union County High School senior C.J. Spiller got an invitation to one of the biggest games a high school football player could ever play in. The U.S. Army informed Spiller that he, along with only 77 other high school players from around the country, has been invited to play in the U.S. Army All-American Bowl. The game will be played Saturday, Jan. 7, at 1 p.m. in the Alamodome in San Antonio, Texas. The game will be broadcast on NBC. A press conference was held in the Union County High School Athletic Center to make the announcement. During the event, Spiller, as he always does, thanked others for his success both on and off" the field. "Fjrst of all I'd like to thank GOd; m l'I and iOhej.. coach (B'uddy) Nobles," Spiller said. "Without them, I would not be here today." He went on to say that he was very humbled by the experience and was thankful for the opportunity. He also gave a shout out to the rest of his teammates. "You :know I love you guykI," 'Spiller said to a group of senior Tiger players sitting in orin'thigannouncement. "It's because'of all of you that I'm here." Nobles- said the invitation meant a lot to both the, program and the school. "It's not very often you get a player that gets a chance like this," Nobles said. "Our team and Lake Butler will benefit from the opportunity." . Nobles also recognized .the seniors in the room. "You all know that this not only says a lot about C.J., but it says a lot about you guys as well," Nobles said. "This See SPILLER, p. 9C By CLIFF SMELLEY Telegraph Staff Writer It will not only be a game between two top-10 teams, but a game that will determine who the District 4-2B champion will be when seventh-ranked Union County' hosts top-ranked Ocala Trinity Catholic Friday, Oct. 28, at 7:30 p.m. In the Celtics (9-0, 3-0 in District 4), the Tigers are facing a team thattappears, on paper, to be an unstoppable juggernaut. Trinity, coached by former University of Florida.. quarterback Kerwin Bell, has steamrolled through every opponent this season. Fellow District 4 member Newberry is the only team that has scored on the Celtics, who have outscored their opponents 493-6. . Trinity's district wins have come by scores of 43-0 over P.K. Yonge, 51-0 over Chiefland and 58-6 over Newberry. Union defeated those teams by scores of 34-26 (P.K. Yonge), 28-0 (Chiefland) and 40-0 (Newberry). Most of the Celtics' non- district games have been against Class 3A schools with the exception of Class 2B The Villages and Class IB Arlington Country Day. One of those 3A schools was Suwannee, which Trinity defeated 41-0. Another was a 5-2 New Port Richey Gulf team that the Celtics defeated 66-0 last week. In that win last week, the Trinity defense yielded just 82 yards, including 25 yards rushing on 24 carries. Defensive back Glen Stanley had one of the team's two interceptions, which he returned 45 yards for a touchdown. Quarterback John. Brantley Jr. completed 11-of-I16 passes for 196 yards and four touchdowns in just a little over a half before sitting out the remainder of the game. Wide receiver Dion Lecorn, who had a 19-yard touchdown reception, caught four passes for 67 yards. Running back Bradley Grant rushed for '102 yards on 11 carries and had touchdown runs of six and 15 yards. Running .back Chris Allen rushed for 71 yards on six carries and had touchdown runs of 18 and 41 yards. In district games, Brantley has completed 43-of-68 passes for 671 yards and 12 touchdowns. Different running backs and receivers have stepped up in those district games. Allen and Grant rushed for 88 and 92 yards, respectively, in the win over Newberry, while Rudell Small rushed for 113 yards against P.K. Yonge. Tight end Lex Peek had three receptions for 60 yards against Chiefland and four receptions for 45 yards and three touchdowns against" Newberry. Lecorn had -.176- and 119-yard efforts ji2Jii.lt P.K. Yonge and Newberry, respectively, scoring two touchdowns in each of those games. Trinity compiled an 8-3 record last year in .Class A, defeating Warner Christian 40- 10 in the regional quarterfinals before losing 29-28 to North Florida Christian in the semifinals. Now, after breezing through its schedule up to this point, the Celtics are eyeing the state's top prize.. "State champions.. We'll beat any team in the state," Lecorn was quoted as saying in the Ocala Star-Banner. "We want it. It's our time." The trouble with the rat race is that even if you win, you're still a rat. ., -..:- .. ..T.n .. ..-.. giv the youth group of your choice $10 ,% fY rc0c Fm--------- -------------- m- I Subscriber name: SMailing address: :City: . State: Zip: Phone: Newspaper: Please give a check for $10 to: Pleae g a h~k or $0 to * uWm Page 8C TELEGRAPH, TIMES & MONITOR--C-SECTION Oct. 27, 2005 Tornadoes hurt playoff chances with loss to Ribault By CLIFF SMELLEY Telegraph Staff Writer A win would have locked up a playoff berth, but instead the Bradford Tornadoes need a little help to qualify for the postseason after their 21-20 loss to visiting Ribault on Oct. 21. The Tornadoes (3-5), with Bolles' win over West Nassau, would have been the District 6-3A runner-up if they had beaten Ribault (3-5, 2-2 in District 6). Instead, Bradford, which is 2-2 in district play, must now beat West Nassau this Friday and hope Keystone *Heights defeats Ribault in order to finish in second place and earn a regional berth. Bradford head coach Chad Bankston was at a loss for words following his team's performance against Ribault. All he could say was, "They just.outplayed us." The Tornadoes got off to a slow start, falling behind 9-0, but took a 20-15 halftime lead, scoring all of their points in the second quarter. However, Bradford's offense, which went three-and- out on its first three drives of the second half, was held to less than 80 yards in the second half. It was not until the fourth quarter that the Tornadoes even threatened to score again. Runs by Dejor Hill and, James Jamison netted 44 yards and gave Bradford a first down touchdown. Bradford's extra- point attempt was no good, making the score 15-14. Harris gave the Tornadoes their only lead of the game when he scored on a 73-yard run with 1:59 left in the half. That put Bradford up 20-15. Petteway's pass on the two- point conversion was incomplete. Bradford's defense came out at the start of the second half and forced Ribault to go three- and-out, but the Trojans scored on their next possession when Rashad Coleman caught a 20- yard pass from Everett. That capped the scoring at the 5:33 mark of the third quarter. Score by Quarter RHS: 9 6 6 BHS: 0 20 0 0-21 0-20 Scoring Summary R: Swain 1 run (kick failed) R: 27 FG by Neavins B: Harris 58 run (Jamison run) R: Summers 16 pass from Everett (run failed) B: Jamison 78 kickoff return (kick failed) B: Harris 73 run (pass failed) R: Coleman 20 pass from Everett (kick blocked) '. A -- - Bradford's Ramon Smith (right) pressures Ribault quarterback Brad Swain. at the Ribault 40 early in the fourth quarter. The Tornadoes gained just 2 yards on the next two plays and quarterback J.R. Petteway's pass to running back Rob Harris on third down was tipped away by Ribault's Brad Swain. Bradford punted on fourth down. Bradford drove past the 50 on its next possession, as well., Harris had a 16-yard run to the Ribault 37 and a 9-yard run by Hill later gave the Tornadoes a first down at the 26. Ribault's defense, -however, stiffened and forced the Tornadoes into a fourth-and-12 situation with 2:34 remaining in the game. Petteway's pass to Jamison in the end zone was just out of reach. Jamison finished the night with 93 yards on 17 carries, but it was Harris, in his second game back from injury, who sparked the Tornadoes' offense. Harris, who gained 136 yards on six carries, took a handoff from Jamison and sprinted away from the Ribault defense for a 42-yard touchdown at the 7:25 mark of the second quarter. Jamison's run on the two-point conversion was good, which pulled the Tornadoes within 9- 8. Ribault answered the score. Swain, who alternated at quarterback with Chris Everett, scrambled for what seemed like a full minute, eluding four Bradford defenders, before completing a .25-yard pass. The Trojans then gained two consecutive first do\~nr. because of Bradford penalties, including a 15-yard unsportsmanlike conduct call. The Trojans capped the drive when Everett hooked up with Chris Summers for a 16- yard touchdown. Swain mishandled the snap on the ensuing extra-point attempt and he was dropped by Bradford linebacker Marcus Wilson, leaving the Trojans up 15-8 with 4:51 to play in, the first half. Jamison pulled the Tornadoes back within one on the ensuing kickoff, which he returned 78 yards for a, CHICKS Continued from p. 3C at Risk initiative and is administered by the University of Florida/ Bradford County 4- H Youth Development Program. The program is for third- through fifth-graders and focuses on homework and tutoring, teambuilding, and science-related, hands-on activities to enhance what is already taught in the classroom. Throughout the school year, children enrolled in this program will learn about foods and nutrition, plant, science, aerospace and much more. They will also have an, opportunity to be involved in several community service projects. ,Yes to Science meets Monday-Thursday from 2:30- 5 p.m. at Church of God by Faith on Old Lawtey Road. 4-H is the youth development program of the University of Florida's Cooperative Extension Service and provides educational, hands-on activities in a safe, caring and nurturing environment. This and other 4- H activities are open to all youth ages 5-18, regardless of sex, race, religion, disability or national origin. For more information about 4-H, please call the Bradford County Extension Service at (904) 966-6224. BHS travels to play Warriors Friday Trick or treat spot in the playoffs. those games. scored two touchdowns on set Oct. 29. By CLIFF SMELLEY The Warriors started off 3-1 Defensively, the Warriors runs of five and 24 yards by To coincide with the Great Telegraph Staff Writer this season, but have won just yielded 171 yards per game .Nelson, but the Warriors had Pumpkin Escape in downtown Bradford must win to keep hopes of a playoff berth alive. The same-could have been said for West Nassau, but having to forfeit a win this season has the Warriors playing only for pride when they host the Tornadoes on Friday, Oct. 28, in Callahan at 7:30 p.m. West Nassau (4-4, 1-3 in District 6-3A): would have been tied with Bradford for second place in the district if its 20-19 win over Interlachen on Oct. 14 "had counted. Instead, a West Nassau player reentered the game after being ejected, which caused the Florida High School Athletic Association to award Interlachen'a 1-0 win. Their playoff hopes are out the window, but the Warriors, with a win, can prevent Bradford from going as well. Bradford must beat West Nassau, and Keystone Heights must beat Ribault in order for the Tornadoes to finish as district runners-up and earn a TIGERS Continued from p. 7C it was clear to see, with his hands on his knees, he was there to take in the game. He spoke with many of the Tiger players, including Spiller. It turns out Myer showed up just in time for what would prove to be the Tigers' best drive of the season. Union. after receiving the opening kickoff, showed the type of ball-control .offense it is capable of. The drive consisted of 21 plays that ate up 10:47. The Tigers were able to convert several fourth-and- short situations to keep the drive alive. Spiller capped the drive when he dove into the end zone from two yards out for a 27-12 lead. The Blue Wave attempted to rally in the fourth quarter. A 12-yard quarterback keeper for a score brought the Wave within eight points, but the Tigers tacked on a score to ensure the victory. Spiller would find pay dirt from 41 yards out on a fake punt attempt. The extra point split the uprights, giving the Tigers a 34-19 lead. P.K. Yonge made one last attempt to dig out of its holeI Another quarterback keeper, of 65 yards, resulted in a score with less than a minute left to play. The Tigers were able to run out the clock, following the kickoff. Score by Quarter UCHS: 14 7 6 7-34 PKY: 6 6 0 14-26 Scoring Summary U: Austin 55 punt return (kick one game since-a 21-14 win over a Fernandina Beach team that defeated Bradford 13-12 to start the season. In that game, the West Nassau defense had four interceptions, including one that was returned 25 yards for a touchdown by Derek Bradley. West Nassau's defense has a total of 19 turnovers on the season .. ,, . "O' oeinise, the Warriors" return senior running back Marcellus Nelson. Nelson averaged 177 yards per game in the Warriors' first three games, but then suffered an ankle injury. He has averaged just 61 yards per game in the Warriors' last three games. In district play, the Warriors have also lost to Keystone (15-, 0) and Bolles (42-0). Their lone district win was 42-19 over Ribault. Against those three teams, West Nassau rushed foran a average of 176 yards .per game and had 73 passing yards per game. Quarterback Austin Janney completed 20-of-34 passes in failed) P; Williams 50 run (kick failed) .U: Mitchell 39 run (Spiller run) P: Williams 46 run (pass failed) U: Spiller 99 kickoff return (de Castro kick) U: Spiller 2 run (kick failed) P: Williams 12 run (Hager kick) U: Spiller 41 run (de Castro kick) P: Maddox 65 run (Hager kick) rushing in those three games and 165 yards per' game passing. Last season, Bradford took a 20--12 win over the Warriors. Bradford's offense struggled in that game, especially after the ejection of quarterback Drew Jackson. The Tornadoes gained just 50 yards and two first downs after that. The defense, however, rose to the challenge.'West Nassau more opportunities, starting all but two of their second-half possessions on Bradford's side of the 50. West Nassau had 258 yards' of offense compared to Bradford's 125, but 'the Warriors turned the ball over three times. One of those turnovers was an interception that Bradford defensive lineman Japan Ruisc returned 30 yards for a toni'ihdown CD Alternative St,6 year, 6.750 guaranteed 4O/* 2nd-3r" year, LIC. #2318 05/0 33-month CD Special? q.529 APY* Call us today! M.-F. 9-8, Sat. 9-5 Florida (904) 964-1427 =Credit Union All residents of Alachua, Bradford, Cilrus Cliumbia, Gilchrist, levy, Marion, South Clay, Suwannee. and Urnion counties can join lioriud Credit Union, Starke Office: 1371 S. Walnut Street, Suite 1600 wwwflcu.org *Deposits are federally insured by NCUA,.a US Government Agency, for up i, $100 00O adi>,i,,i ,'.sunIn' f lor 1. I1. $250,000 is provided by Excess Share Insurance, a wholly owned sub .ijiary of Amrii.an Snare Isurjnco, the narolln largest private deposit Insurer. Ask us for details,.'" A (i ) nii..mum open.nr i d ,g.l ei d n a I ul 5j.ii .1a n 9 ui Ai required for membership. Annual Percentage Yield ;AP1) ellfe:..ve d J803 O.' O AP, .,uirTe iniir..si rm,m.r., on deposit until maturity. Minimum deposit of $10,,)0 rIeauri l ru al Perlaiy I ,e I u:0.0i, '- " certificate withdrawal, which may reduce earning; Olfer i.U r.uihrr, e h.iii,i r ,'.i J__ . Starke, the Starke City Commission has designated Saturday, Oct. 29; as the official night to trick or treat in the city. SWhndows by LsaIDc.7 Lisa Tatum, Design Consultant Shutters, Binds, Shades, CustmI Window and Home Treatments .. "COMMIVICIAL &RESIDIITIAL C al today fo your free to-hOTOe st rates. @' 904-'782-1230 or 888-782-12371 Wholesale Prices To You! Exclusive Cybersleeper Pillowtop Sets OPENING SPECIAL Limited Quantity FIRST 50 CUSTOMERS ONLY! QUEEN $ OO KING$l SETS 399 SETS$699., *Some ektra special deluxe mattresses may be higher. 'Nationally advertised as seen on internet and television. Motion free sleep, memory foam top. i |r ti llI1 :1I I]I]I1[! WIN 2-pc. set.....$89 TWIN 2-pc. set.....$39 FULL 2-pc. set..'.$129 FULL 2-pc. set.....$49 QUEEN 2-pc. set $..149 QUEEN 2-pc. set....$89 KING 3-pc. set._,$189 KING 3-pc. set...'.$99 Tell your friends and enemies (make a friend). WEVIE OPENED A STORE IH MIDDLEBURG BETWEEN PUBLIC & ACE. W'VE O A Mlddleburg: 904-282-1200 904-964-3888 Open Mon.-Sun. 9 a.m.-5:30 p.m. FOR AFTER-HOURS APPOINTMENT, JUST CALL 7 DAYS/WEEK. Family Fall Festival Monday, October 31st 6:00-8:30 p.m. Bradford Middle School Gym Sponsored by Madison Street Baptit Church *No Cosiim PisIe* Oct. 21 ,ELEGRAPH, TIMES & MON|, UR--C-SECTION Page 9C --- ." W',*i 'w w, i"5>' ..Bt -- a "ga W ~ali'>'-ii ,.-''*'(^. * .41I .-The Bradford Midale School girls' ross country team is comprised of: (front row, from left) Natali Powell, Nicole Miller, Emilie Meng, Ashley Sutherland, Samantha Steffan, Christina Jordan, Mehgan Perry, (middle row) Hannah Ricker, Rosa London, Synteia Postway, Shelby Ashley, Sarah Swords, Heather Harris, Caitlin Wade, Krystal Cornwall, (back row) Brandi Jordan, coach John Loper and coach Jeff Ledger. -The Bradford Middle School boys' cross country team is comprised of: (front row, From left) Demetri Postway, Brett Purdy, Travis Ledger, David Weeks, Robert Proctor, Dyllan Bradley, (middle row) Don Hewitt, Sean Andrews, Terry Puckett, Dustin Padgett, Ryan McKeown, Michael Ricks, (back row) coach John Loper.and -coach Jeff Ledger. Not pictured: Ryan Brown and Kelvin Jenkins. ,: SPILLER Continued from p. 7 opportunity is because of you guys." :Nobles received a special invitation as well. .-Spiller's mother, Patricia Val-kins. said she was excited fo? her sn.. "lThei is a great opportunity for C.J. and I'm very happy for h:im," Watkins said. Spiller was chosen from mfi6re than one million nominees the game received from all over the country. That pool was narrowed to just 400 AARP offers driving classes -The next AARP driving classes for seniors will be offered in Gainesville on Nov. 10-11 and 15-16 at I p.m. before being cut down to the final 78. Several ,qIthpr, ppiyers 'frbowFlorida have been.iio'ited to play, including quarterback Tim Tebow of Nease High School. . The bowl, now in its fifth year, has a rich history of turning out Division I college prospects.. Players who have. participated in the game include Adrian Peterson (University -of Oklahoma), Reggie Bush (University of Sourthern California), Chris Leak (University of Florida) and Andre Caldwell (UF). The bowl has a week of events that lead up to the big Classes. cost $10 and there are no tests. Two-day, four-hour classroom instruction refines driving skills and develops defensive driving techniques. The three-year certificate qualifies graduates for an auto insurance discount. For more, information, call (352) 333- 3036. game. These include a chicken-eatinmgontest, a visit to a children's hospital, a skills competition, pep rally and river parade. Many awards will be handed out during the event. One highlight is the Parade All- American High School Football Player of the Year. As the award's title states, it is handed out to the top high - school football player in the country. It was announced at the press conference that Spiller was in the running for the award. Only four athletes have been selected as finalists. For more information about the bowl, you can visit www. allamericanbowls.com. TERRY NUTT ,. ,c..ft-\.. Members of the Bradford High School boys' and girls' cross country teams are: (front row, from left) Courtney Cragg, Katrina Steffan, Tracey Ledger, Shruti Desai, (back row) coach John Loper, Chris Underhill, Sam Osborn, Josh Moore and coach Jon Alexander. Not pictured: Emma Sheppard. . Steffan sets BMS record Bradford Middle School and Bradford High School teams wrap up regular season By CLIFF SMELLEY Telegraph Staff Writer Samantha Steffan now owns the Bradford Middle School girls' cross country record after posting a personal-record (PR) time of 23:48 at a meet hosted by Buchholz High School that closed the season for both Bradford girls' and boys' teams. Ashley Sutherland broke the previous school record as well, finishing the race with a PR of 24:13. Nicole Miller and Natali Powell had PR times of 24:37 and 26:04, respectively, while Christina Jordan had a PR. of 26:14. Also competing for the Bradford girls' team were: Heather Harris (27:15, PR), Synteia Postway (28:43, PR), Rosa London (29:05, PR), Caitlin Wade (30:19, PR), , Krystal Cornwall (30:49), Mehgan Perry (31:58, PR) and Sarah Swords (37:25)... .The,.boys',.team, was, led, by., Robert Proctor's time of 20:21. Ryan McKeown had a PR of 22:48 and Terry Puckett had a PR of 24:17. David Weeks and Brett Purdy had times of 25:29 and 25:33, respectively. The remaining Bradford boys' results were: Travis Ledger (25:46), Dyllan Bradley (25:51), Dustin Padgett (26:50), Sean Andrews (26:56, PR) and Demetri Postway (30:09, PR). Bradford High School runners also competed at the - ,.ZTR's Buchholz meet. 'Chris Underhill and-Sam Osborn ran times of 18:54 and 21:02 for the boys, while Courtney Cragg led the girls with a time of 25:35. Also competing for the girls were Emma Sheppard, who had a PR of 28:49, Tracey Ledger, who had a time of 31:54, and Shruti Desai, who had a PR of 32:23. Coach John Loper said he and fellow 'coaches Jon Alexander and Jeff Ledger were extremely happy with all of the runners' performances this year as they continue to build up the programs at both the middle school and high school. "Our kids should be commended for all the hard work they've done," Loper said. A handful of patience is worth more than a bushel of brains. -Dutch proverb Owner: Richard Barrick We Welcome David Tomlinson former) of Corbell's Tire & Ser' ice pirCiured a hrid nlechani Dafnni Barnrck * Oil Changes * Tune-ups * Brakes * Air Conditioning * Tires. * Transmissions * Computer Diagnostics Certified Mechanics (3861431-1185 U^^^r 12670 NE SR-121, Raiford S ile il l\ Doibt.- Ef,.:..' I mile S of Raiford P.O. NEW KIO TRACTORS 21 HP to 65 HP d 9,800 North Florida Music & Sound 1640-B South Walnut Street Starke, FL 32091 !III .904-964-2926 -^ northflmusic@earthlink.net-- CRYSTAL'S ORIGINALS * Fine Art * Custom Jewelry * Unique Gems 5021-D NW 34th St Gainesville, Fl 372-4484 2P9O9O 24541 US Hwy 301 North Lawtey, FL 1953 Ford Jubilee w/5' Cutter .... 3,800 Mitsubishi D2300 Tractor.........$3,500 (904) 782-1130 TRACOR SPPL RV I ~ i hi I I-~LE~ .;. .. L Ufff Page 10C TELEGRAPH, TIMES & MONITOR--C-SECTION Oct. 27, 2005 -~% 1 We're here to help you button up your Holiday Wish List. We've got great deals on all the hot electronics they've been asking for this year. Game systems, DVD players, phones or computers ... your new Wal-Mart Supercenter has what you're looking for, and at our great Every Day Low Prices. Drop in and visit us to see all the products we've got to help you wrap up your holiday shopping. yStarke 14500 Highway 301 South .0.1y .10H:t 2005 WAL-MART STORES, INC. ul 1E"RCN Contact Us | Permissions | Preferences | Technical Aspects | Statistics | Internal | Privacy Policy © 2004 - 2011 University of Florida George A. Smathers Libraries.All rights reserved. Acceptable Use, Copyright, and Disclaimer Statement Powered by SobekCM
http://ufdc.ufl.edu/UF00027795/00043
CC-MAIN-2017-47
refinedweb
43,766
75
to get the CSQ Dear sir/mam, Could anyone please help me how can I get the CSQ of my network signal and how would I know that my board is connected the network? How can run the AT commands. Waiting for your positive reply. radhe @radheshyam0508 You can always write a python script which contains all the commands you want, and store that on the device. @robert-hh said in to get the CSQ: lte.send_at_command("ATH") Hey sorry Robert I am asking you more questions. Now I want to know that can I send all the AT command using the python code. I don't want to send it manually. Is it possible that i can upload the AT command code with the connection establish code? @radheshyam0508 It respond to AT commands when NOT in data state. You could also try to send lte.send_at_command("+++") and then, after a few seconds lte.send_at_command("ATH") These are the historic commands to terminate a data session. @robert-hh said in to get the CSQ: lte.deinit() So when does it reply to AT commands? When it is in DATA state or other state? @radheshyam0508 Yould you try lte.deinit()? It is funny that the modem is in the data state, if you did not attach or connect. Typically it is in the data state after connecting. @robert-hh said in to get the CSQ: lte.send_at_cmd("AT+CSQ") Hello robert, after giving the AT command I got this error... "OSError: LTE modem is in data state, cannot send AT commands" Could you please help me how can I rectify it. I already disconnect and reconnect the module and try to send the AT commands but again I got the same error. Thanks @radheshyam0508 Look at the example in the documentation: which is similar to my little script I posted before. After connection, I tried a simple connection link to a PC I had set up as the server: data_client = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # ip_address="84.147.45.246" port_number = 4567 data_client.connect((ip_address, port_number)) while True: msg = input("New message") if msg == "q": break data_client.send(msg + "\r\n") data_client.close() I lost somehow the code of the matching "server", but it was minimal. I may have type that on-the-fly at a Python REPL. @robert-hh sorry, but How would i know that my device is connected? @radheshyam0508 Once the device is attached and connected, you can use the usual socket mechanism to communicate. @robert-hh said in to get the CSQ: lte.attach() lte.send_at_cmd("AT+CSQ") Thanks a lot Robert, Could you please send me the code for connecting the fipy NB-IoT module to the network. Because there is no tutorial or example code for NB-IoT. Thanks a lot for your help and support @radheshyam0508 You could try this: from network import LTE lte=LTE() lte.attach() lte.send_at_cmd("AT+CSQ") Returns for me: '\r\n+CSQ: 25,99\r\n\r\nOK\r\n' lte.isattached() returns the attach status. A typical small test script would be: # from network import LTE import time import socket start = time.ticks_ms() lte = LTE() print("\nModem started, time needed (s): ", time.ticks_diff(time.ticks_ms(), start)/1000) start = time.ticks_ms() lte.attach(band=8, apn="iot.1nce.net") while not lte.isattached(): time.sleep(0.5) print(".", end="") print("\nAttached!, time needed (s): ", time.ticks_diff(time.ticks_ms(), start)/1000) start = time.ticks_ms() lte.connect() # start a data session and obtain an IP address while not lte.isconnected(): time.sleep(0.5) print("-", end="") print("Connected!, time needed (s): ", time.ticks_diff(time.ticks_ms(), start)/1000)
https://forum.pycom.io/topic/5102/to-get-the-csq/12?lang=en-US
CC-MAIN-2020-29
refinedweb
608
68.67
Animations help improve the feel of a website or web app and this often leads to better user experience. We can use animations during different events: during page transitions, while scrolling and of course during mounting and unmounting of components in component-based frameworks or libraries such as React. In this article, you’ll learn how to trigger animations/transitions during the mounting and unmounting stages of your React component using React Transition Group. According to the React Transition Group Documentation, it’s not an animation library and I agree with this. It simply exposes transition stages, manages classes and performs other useful functions which make it easy to trigger animations during mounting and unmounting. This “pseudo-library” consists of 4 components, three of which we will use in this article. Let’s get started! The Transition Component According to the documentation: The Transition component lets you describe a transition from one component state to another over time with a simple declarative API. Most commonly it’s used to animate the mounting and unmounting of a component, but can also be used to describe in-place transition states as well. You’ll want to use the Transition component when you need to animate the mounting and unmounting of a component using styling in JavaScript. If you want to use CSS styling, you should use the CSSTransition component which we’ll look into next. Once again, according to the docs: By default the Transition component does not alter the behavior of the component it renders, it only tracks “enter” and “exit” states for the components. It’s up to you to give meaning and effect to those states. Now, we will demonstrate how the Transition Component tracks the different states of a component. First, let’s create a new React project. Once that is done, we’ll need to install React Transition Group. With npm: $ npm install react-transition-group --save Or using Yarn: $ yarn add react-transition-group Now that you have it installed, we need to create a new component. I’ll call mine AComponent. Note that I will be writing all my code in one file: app.js. Once you have your empty component ready, import the Transition component from react-transition-group. import { Transition } from 'react-transition-group'; Now that we’ve it imported, we can use it in our component. The Transition component takes a function as a child and this function returns whatever markup we want to apply animations to. The function also has an argument called state. This state argument tells us the present state of our component such as entering, entered, exiting and exited. Now that we understand that, let us write some code. App.js const AComponent = ({ in: inProp }) => ( <Transition in={inProp} timeout={500}> {state => ( <div> I am {state} </div> )} </Transition> ); As you can see, the Transition component takes in two props - an in prop and a timeout prop. There are other props some of which we will look into later. For now, let’s discuss these two props: - The value of the in prop is a boolean (true or false). If the value is true, our component will enter the entering state; if it is false, our component will enter the exited state. We will set this using state soon. - The timeout prop defines the duration for each transition. You can assign it just one value if you want to set the same duration for all transitions. By transitions, I mean appear, enter, and exit. You can also assign different time duration to each transition like this: timeout={{ appear: 500, enter: 300, exit: 500, }} Now that we have written our component, let us use it in our App component. In our App component, we will create a button which will be used to toggle the value of the in prop between true and false. To do that, we’ll make use of the useState hook. First of all, we need to import the useState hook from React: App.js import React, { useState } from 'react'; Once that is done, let’s create a new state: const [entered, setEntered] = useState(false); We can write our button element as follows: App.js <button onClick={() => { setEntered(!entered); }} > Toggle Entered </button> This button will toggle the value of the in prop. Now let us use AComponent in our App component App.js function App(){ const [entered, setEntered] = useState(false); return ( <div > <AComponent in={entered} /> <button onClick={() => { setEntered(!entered); }} > Toggle Entered </button> </div> ); } Now, once you run your React app, you should see a text with “I am exited”. This is because we set the initial value of our state variable, entered, to false. Clicking the button should change the text to “I am entering” and then to “I am entered”. Clicking again should change the text to “I am exiting” and then to “I am exited”. You should now understand how tracking state with the Transition component works. By now, you have probably noticed whenever a component exits, it doesn’t unmount. You change this by adding the unmountOnExit prop to the Transition component like this: App.js const AComponent = ({ in: inProp }) => ( <Transition in={inProp} timeout={500} unmountOnExit> {state => ( <div> I am {state} </div> )} </Transition> ); Now, the component should actually be unmounted upon reaching the “exited” stage. Since we now understand how tracking of state works, we should be able to apply styles during mounting and unmounting. Now let’s make AComponent scale up in size in during mounting. We need to change the initial value of entered to true. We also need to define some default styles and set the different styles during each state of the component. First of all, let us define our default styles: App.js const defaultStyle = { transition: `transform 200ms, opacity 200ms ease`, opacity: 1 }; Now let’s define the different styles for each state: App.js const transitionStyles = { entering: { transform: 'scale(0.5)', opacity: 0 }, entered: { transform: 'scale(2.0)', opacity: 1}, exiting: { opacity: 0 }, exited: { opacity: 0 } }; Normally, AComponent would move right into the entered state without passing through the entering state on first mount. To change that, we need to add a prop called appear to the Transition component used in AComponent. We also want to use a different time duration for each state. We’ll set appear to 100ms and enter and exit to 300ms. Finally, we want to apply the default and transition styles to the div element returned from the child function of the Transition Component. AComponent should look like this now: App.js const AComponent = ({ in: inProp }) => ( <Transition in={inProp} timeout={{ appear: 100, enter: 300, exit: 300 }} appear unmountOnExit > {state => ( <div style={{ ...defaultStyle, ...transitionStyles[state] }} > I am {state} </div> )} </Transition> ); Now when you run your app, the text should scale up in size during mounting and scale down before vanishing during unmounting with a nice transition. The CSSTransition Component This transition is very similar to the Transition but it uses CSS transitions instead of JavaScript styles. With the CSSTransition component, you have more control over the different states of your component. CSSTransition appends different classes during different states to your defined base class names. This allows you to style your component differently during each state. Using CSSTransition, we’re going to create a component which renders a text that rotates in during mounting and rotates out during unmounting. It’s a simple demonstration but it shows how CSSTransition works. Let us begin by importing the CSSTransition component. App.js import { Transition, CSSTransition } from 'react-transition-group'; After that’s done, we need to create a new component which I will call Gator. Gator will return a CSSTransition component whose child will be the markup of our component. We want our CSSTransition component to transition on first mounting so we will add the appear prop. We also want our component to actually leave the DOM after reaching the exiting stage so we will add the unmountOnExit prop. For our timeout prop, we want to set 0 milliseconds for the appear state, 0 milliseconds for the enter state and 300 milliseconds for the exit state. Since CSSTransition uses all the props from the Transition component, we also have to set an in prop. The value of this in prop will be destructured from the props object and aliased as inProp. In addition to the other props we have seen in the Transition component, CSSTransition also has a classNames prop which is used to define the base class name. We will set this to “roll”. This means several classes like “roll-appear”, “roll-appear-active” and so on will be applied to our component depending on the state of the component. According to the docs: CSSTransition applies a pair of class names during the appear, enter, and exit states of the transition. The first class is applied and then a second *-active class to activate the CSS transition. After the transition, matching *-done class names are applied to persist the transition state. Now, Gator should look like this: App.js const Gator = ({ in: inProp }) => { return ( <CSSTransition unmountOnExit in={inProp} timeout={{ appear: 0, enter: 0, exit: 300 }} classNames='roll' appear > <div>Gator</div> </CSSTransition> ); }; Since we’re going to be using CSS transitions, we obviously need to write CSS. I’ll be writing my CSS in my App.css file. We want the div containing the text “Gator” to rotate 720 degrees and scale up in size during mounting. Firstly, we need to set the initial opacity which we want to be 0: App.css .roll-appear{ opacity:0; } .roll-enter{ opacity:0; } Now we need to set the styles for the element after it has been mounted. The component will transition from the initial styles to this style: App.css .roll-enter-done{ transform: rotate(720deg) scale(3); opacity:1; transition: transform 1000ms, opacity 1000ms; } We also want the component to rotate out and scale down in size during unmounting. So let’s define the style at the beginning of the exit state. This will be similar to the styles applied by .roll-enter-done: App.css .roll-exit{ transform: rotate(720deg) scale(3); opacity:1; } Let’s define the styles during exiting before the component gets unmounted: App.css .roll-exit-active{ transform:rotate(0deg) scale(1); opacity: 0; transition: transform 1000ms, opacity 1000ms; } Now let us replace AComponent in our App component with Gator. We will also set the value of the in prop to entered. App.js function App() { const [entered, setEntered] = useState(true); return ( <div > <Gator in={entered} /> <button onClick={() => { setEntered(!entered); }} style={{ marginTop: '10rem' }} > Toggle Entered </button> </div> ); } Finally, we can run our app to see if the transition worked. If you followed all the steps, the div should rotate 720 degrees in and scale up in size and rotate back to zero degrees while scaling down in size during unmounting. The TransitionGroup Component The last component I want to discuss in this article is the TransitionGroup component. There is not much to say about this component except that it manages a set of transition components, like a group of Transition or CSSTransition components. An example of where you would use this component is in a TodoList component for animating the creation and deletion of todo items. Conclusion We’ve finally come to the end of this article. I trust you’ve learned how React Transition Group works and how flexible you can be with it. If you need more information about React Transition Group, you can always visit the documentation here.
https://alligator.io/react/react-transition-group/
CC-MAIN-2020-34
refinedweb
1,920
54.42
Recursive React Components Often times, particularly when dealing with complex nested data, React developers need to re-think the way they're structuring their component trees. In certain cases, when the data requires it, component trees can't be rendered in an iterative fashion, instead React developers must rely on recursion to display their data. In this article, I’ll dive into how to build React components recursively, and some of the unique challenges that can arise when doing so. This blog post is a written version of a talk I gave as part of our February 2019 meetup. What is Recursion? Recursion is a method of solving a problem where the solution depends on solutions to smaller instances of the same problem. Whenever I think of recursion, I often conjure up the image of Russian nesting dolls. In a set of Russian nesting dolls, each doll is nested in another and they all look identical. This is often the case with recursive problems. They’re composed of a series of smaller and smaller problems each nested in the other, but the problems themselves are identical. A good example of a problem with a recursive solution is the factorial function. When calculating a factorial, you take a number and multiply it by the factorial of that number minus one. This process continues until you reach the number 1, the base case. If we wanted to write a factorial function, that function would need to call itself in order to calculate the factorial. Let’s take a look at a factorial function in JavaScript and break down exactly what’s happening. function factorial(n) { // base case if (n === 1) { return 1; } // recursive call return n * factorial(n - 1); } factorial(5); // 120 All recursive functions like the one above have two parts, the base case and the recursive call. The recursive call is when the function calls itself. In the case of the factorial function, we’re returning the result of multiplying n by the result of calling factorial of n - 1. The base case is the final step in the recursive chain, it’s where we’re returning an actual value instead of the result of another recursive function call. In the factorial function, the base case is when n is equal to 1. This is a fairly standard recursive function. Functions like this are commonly used in software all around the world. Recursion in React One of the cool things about React is that React components are essentially functions which return JSX. Therefore, just like with any other functions, React components can be recursive. function MyComponent({ prop1 }) { return ( // base case {prop1 !== 0 && // recursive call return n * factorial(n - 1); } ) } Above we have an example of a recursive React component. If you look closely, you’ll see that just like with the factorial function, we have a recursive call and a base case. Here, the recursive call is when the component renders itself, passing in a modified version of the props it received. The base case is a conditional check to determine whether it should render itself again or stop. This, in a nutshell is how recursion is done in the context of React components. Just like with the factorial function, special care needs to be taken with constructing the base case so you don’t end up in a situation where you’re recursing forever. Now that we have an understanding of how it works, let’s take a look at a situation where recursion in React may be necessary. Recursion Use Case As with most things in a front end app, the use cases are determined by the data. Therefore, whether or not a recursive component is necessary will depend largely on the data you’re attempting to display. A good example of a time when recursion is necessary is when dealing with a data set which is identically and arbitrarily nested. Suppose we’re building a front end application for an online pizza ordering app. In the app, we want to allow users to select which toppings they want on their pizza. Above we have a screenshot of this pizza ordering app. Toppings are selected using this nested checkbox component. When you select a topping, there may be more specific options to choose from in that same category. In this case, when you select Chicken, you can also choose between Buffalo and BBQ chicken, and in Buffalo chicken you can select Mild or Hot, and the type of pepper. Depending on the toppings structure, we will have an arbitrary number of options for each topping, and we want to be able to display this in React. To understand how this will work with recursion, let’s take a look at the data that we might get back from the server about these toppings. [ { name: 'Pepperoni', id: 'pepperoni-id', subOptions: [ { name: 'Spicy', id: 'spicy-id', subOptions: [], }, ], }, { name: 'Chicken', id: 'chicken-id', subOptions: [ { name: 'Buffalo', id: 'buffalo-id', subOptions: [ { name: 'Mild', id: 'mild-id', subOptions: [], }, ... ]; This data is organized in a nested structure. Each topping option has three fields: name, id, and subOptions. The name and id fields are self explanatory, but the subOptions field is more complex. The subOptions field is an array of topping options each identical to their parent option, which represent more specific topping choices. We can represent the toppings data in this structure because, thanks to the subOptions field, the topping choices can be arbitrarily nested. Challenges with Recursion in React Suppose we wanted to implement this toppings component in React. Because the toppings data is arbitrarily nested, and we won’t know exactly how many nested toppings we need to display up front, we’ll want to use a recursive component. In order to implement this recursively, we’ll need to keep a few things in mind. Specifically, there are three distinct challenges we will face in implementing the component. The first challenge is managing the component’s state. As the user goes through and selects their toppings, and specifically as they select further and further nested sub-options, we’ll need a way of keeping track of what they’re selecting. This is generally a straightforward process if we’re not using a recursive component, but in a situation where the component is going to be rendering itself an arbitrary number of times, it could easily become difficult to keep track of the state. The second challenge is notifying a parent component of changes to its child components. When we render components recursively, a component's children will be instances of itself. Therefore, when designing props and callbacks, we’ll need to keep in mind the fact that the component will essentially be interacting with a copy of itself. Finally, the third challenge is keeping styling consistent. We’ll want the component to look good and act responsively even if it’s rendering itself. Therefore, styles must be set up in such a way where we don’t run into any nesting problems. React Implementation While there are several ways you could implement this component in React, it’s clear that this problem lends itself really well to a recursive solution. I’ve implemented this component in a recursive way in the following CodePen: See the Pen Recursive React Presentation by Mike (@mikedane94) on CodePen. In the provided video I’ll walk you through exactly how this works, how the above mentioned challenges were addressed, and give you an idea of how similar component can be implemented. Next Steps Using React in your application? Join our Slack and chat with us in the #react channel! Looking for React consulting? We can help! Book a free consultation and we will look at your app, ask questions, evaluate potential issues, spend some time auditing it, and provide you with a report of our recommendations—at no cost.
http://brianyang.com/recursive-react-components/
CC-MAIN-2019-39
refinedweb
1,312
53.1
The Python interpreter has a number of functions and types built into it that are always available. They are listed here in alphabetical order. Return the absolute value of a number. The argument may be an Return True if any element of the iterable is true. If the iterable is empty, return False. Equivalent to: def any(iterable): for element in iterable: if element: return True return False As repr(), return a string containing a printable representation of an object, but escape the non-ASCII characters in the string returned by repr() using \x, \u or \U escapes. This generates a string similar to that returned by repr() in Python 2. Convert an integer number to a binary string. The result is a valid Python expression. If x is not a Python int object, it has to define an __index__() method that returns an integer. Convert a value to a Boolean, using the standard truth testing procedure. If x is false or omitted, this returns False; otherwise it returns True. bool is also a class, which is a subclass of int (see Numeric Types — int, float, complex). Class bool cannot be subclassed further. Its only instances are False and True (see Boolean Values).. See also Binary Sequence Types — bytes, bytearray, memoryview and Bytearray Objects., and Bytes and Bytearray Operations. Return True if the object argument appears callable, False if will be raised if i is outside that range. exec() or eval(). source can either be a normal string, a byte. The argument optimize specifies the optimization level of the compiler; the default value of -1 selects the optimization level of the interpreter as given by -O options. Explicit levels are 0 (no optimization; __debug__ is true), 1 (asserts are removed, __debug__ is false) or 2 (docstrings are removed too). This function raises SyntaxError if the compiled source is invalid, and TypeError if the source contains null bytes. Note When compiling a string with multi-line code in 'single' or 'eval' mode, input must be terminated by at least one newline character. This is to facilitate detection of incomplete and complete statements in the code module. Changed in version 3.2: Allowed use of Windows and Mac newlines. Also input in 'exec' mode does not have to end in a newline anymore. Added the optimize parameter.__', '__name__', 'struct'] >>> dir(struct) # show the names in the struct module [ | nan numeric_string ::= [sign] numeric_value Here floatnumber will be raised. For a general Python object x, float(x) delegates to x.__float__(). If no argument is given, 0.0 is returned. Examples: >>> float('+1.23') 1.23 >>> float(' -12345\n') -12345.0 >>> float('1e-003') 0.001 >>> float('+1E6') 1000000.0 >>> float('-Infinity') -inf The float type is described in Numeric Types — int, float, complex.Error exception is raised if the method is not found or if either the format_spec or the return value are not strings. AttributeError object’s with custom __hash__() methods, note that hash() truncates the return value based on the bit width of the host machine. See __hash__() for details.. Convert an integer number to a lowercase hexadecimal string prefixed with “0x”, for example: >>> hex(255) '0xff' >>> hex(-42) '-0x2a' If x is not a Python int object, it has to define an __index__() method that returns an integer. See also int() for converting a hexadecimal string to an integer using a base of 16. Note To obtain a hexadecimal string representation for a float, use the float.hex() method. x to an integer, or return 0 if no arguments are given. If x is a number, return x.__int__(). For floating point numbers, this truncates towards zero. If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance. Return true if the object argument is an instance of the classinfo argument, or of a (direct, indirect or virtual)Error exception is raised. object must be a callable object. The iterator created in this case will call object with no arguments for each call to its __next__() method; if the value returned is equal to sentinel, StopIteration will) Return the length (the number of items) of an object. The argument may be a sequence (string, tuple or list) or a mapping (dictionary). Rather than being a function, list is actually a mutable sequence type, as documented in Lists and Sequence Types — list, tuple, range.). Return a “memory view” object created from the given argument. See Memory Views). Retrieve the next item from the iterator by calling its __next__() method. If default is given, it is returned if the iterator is exhausted, otherwise StopIteration is raised. Return a new featureless object. object is a base for all classes. It has the methods that are common to all instances of Python classes. This function does not accept any arguments. Convert an integer number to an octal string. The result is a valid Python expression. If x is not a Python int object, it has to define an __index__() method that returns an integer. Open file and return a corresponding file object. If the file cannot be opened, an OSError objects, though any error handling name that has been registered with codecs.register_error() is also valid. The standard names are: newline controls how universal newlines mode). A custom opener can be used by passing a callable as opener. The underlying file descriptor for the file object is then obtained by calling opener with (file, flags). opener must return an open file descriptor (passing os.open as opener results in functionality similar to passing Changed in version 3.3: The opener parameter was added. The 'x' mode was added.: IOError used to be raised, it is now an alias of OSError. FileExistsError is now raised if the file opened in exclusive creation mode ('x') already exists. Given a string representing one Unicode character, return an integer representing the Unicode code point of that character. For example, ord('a') returns the integer 97 and ord('\u2020') returns 8224. This is the inverse of chr().. Whether output is buffered is usually determined by file, but if the flush keyword argument is true, the stream is forcibly flushed. Changed in version 3.3: Added the flush keyword argument.. Rather than being a function, range is actually an immutable sequence type, as documented in Ranges and Sequence Types — list, tuple, range.). Return the floating point value number rounded to ndigits digits after the decimal point. If ndigits is omitted, it defaults to zero. Delegates to number.__round__(ndigits). number.. Return a str version of object. See str() for details. str is the built-in string class. For general information about strings, see Text Sequence Type — str.(). Rather than being a function, tuple is actually an immutable sequence type, as documented in Tuples and Sequence Types — list, tuple, range.: ... a = 1 ... >>> X = type('X', (object,), dict(a=1)) See also Type Objects. Return the __dict__ attribute for a module, class, instance, or any other object with a __dict__ attribute. Objects such as modules and instances have an updateable __dict__ attribute; however, other objects may have write restrictions on their __dict__ attributes (for example, classes use a dictproxy to prevent direct dictionary updates). Without an argument, vars() acts like locals(). Note, the locals dictionary is only useful for reads since updates to the locals dictionary are ignored. Note This is an advanced function that is not needed in everyday Python programming, unlike importlib.import_module(). This function is invoked by the import statement. It can be replaced (by importing the builtins module and assigning to builtins.__import__) in order to change semantics of the import statement,(), [], 0) The statement import spam.ham results in this call: spam = __import__('spam.ham', globals(), locals(), [], 0)'], 0)
https://docs.python.org/3.3/library/functions.html
CC-MAIN-2015-11
refinedweb
1,293
67.35
Using Spark SQL Spark SQL lets you query structured data inside Spark programs using either SQL or using the DataFrame API. For detailed information on Spark SQL, see the Spark SQL and DataFrame Guide. This example demonstrates how to use sqlContext.sql to create and load two tables and select rows from the tables into two DataFrames. The next steps use the DataFrame API to filter the rows for salaries greater than 150,000 from one of the tables and shows the resulting DataFrame. Then the two DataFrames are joined to create a third DataFrame. Finally the new DataFrame is saved to a Hive table. - At the command line, copy the Hue sample_07 and sample_08 CSV files to HDFS: $ hdfs dfs -put HUE_HOME/apps/beeswax/data/sample_07.csv /user/hdfs $ hdfs dfs -put HUE_HOME/apps/beeswax/data/sample_08.csv /user/hdfswhere HUE_HOME defaults to /opt/cloudera/parcels/CDH/lib/hue (parcel installation) or /usr/lib/hue (package installation). - Start spark-shell: $ spark-shell - Create Hive tables sample_07 and sample_08: scala> sqlContext.sql("CREATE TABLE sample_07 (code string,description string,total_emp int,salary int) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\t' STORED AS TextFile") scala> sqlContext.sql("CREATE TABLE sample_08 (code string,description string,total_emp int,salary int) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\t' STORED AS TextFile") - In Beeline, show the Hive tables: [0: jdbc:hive2://hostname.com:> show tables; +------------+--+ | tab_name | +------------+--+ | sample_07 | | sample_08 | +------------+--+ - Load the data in the CSV files into the tables: scala> sqlContext.sql("LOAD DATA INPATH '/user/hdfs/sample_07.csv' OVERWRITE INTO TABLE sample_07") scala> sqlContext.sql("LOAD DATA INPATH '/user/hdfs/sample_08.csv' OVERWRITE INTO TABLE sample_08") - Create DataFrames containing the contents of the sample_07 and sample_08 tables: scala> val df_07 = sqlContext.sql("SELECT * from sample_07") scala> val df_08 = sqlContext.sql("SELECT * from sample_08") - Show all rows in df_07 with salary greater than 150,000: scala> df_07.filter(df_07(| +-------+--------------------+---------+------+ - Create the DataFrame df_09 by joining df_07 and df_08, retaining only the code and description columns. scala> val df_09 = df_07.join(df_08, df_07("code") === df_08("code")).select(df_07.col("code"),df_07.col("description")) scala> df_09.show()The new DataFrame looks like: +-------+--------------------+ | code| description| +-------+--------------------+ |00-0000| All Occupations| |11-0000|Management occupa...| |11-1011| Chief executives| |11-1021|General and opera...| |11-1031| Legislators| |11-2011|Advertising and p...| |11-2021| Marketing managers| |11-2022| Sales managers| |11-2031|Public relations ...| |11-3011|Administrative se...| |11-3021|Computer and info...| |11-3031| Financial managers| |11-3041|Compensation and ...| |11-3042|Training and deve...| |11-3049|Human resources m...| |11-3051|Industrial produc...| |11-3061| Purchasing managers| |11-3071|Transportation, s...| |11-9011|Farm, ranch, and ...| |11-9012|Farmers and ranchers| +-------+--------------------+ - Save DataFrame df_09 as the Hive table sample_09: scala> df_09.write.saveAsTable("sample_09") - In Beeline, show the Hive tables: [0: jdbc:hive2://hostname.com:> show tables; +------------+--+ | tab_name | +------------+--+ | sample_07 | | sample_08 | | sample_09 | +------------+--+ The equivalent program in Python, that you could submit using spark-submit, would be: from pyspark import SparkContext, SparkConf, HiveContext if __name__ == "__main__": # create Spark context with Spark configuration conf = SparkConf().setAppName("Data Frame Join") sc = SparkContext(conf=conf) sqlContext = HiveContext(sc) df_07 = sqlContext.sql("SELECT * from sample_07") df_07.filter(df_07.salary > 150000).show() df_08 = sqlContext.sql("SELECT * from sample_08") tbls = sqlContext.sql("show tables") tbls.show() df_09 = df_07.join(df_08, df_07.code == df_08.code).select(df_07.code,df_07.description) df_09.show() df_09.write.saveAsTable("sample_09") tbls = sqlContext.sql("show tables") tbls.show() Instead of displaying the tables using Beeline, the show tables query is run using the Spark SQL API.. Performance and Storage Considerations for Spark SQL DROP TABLE PURGE The PURGE clause in the Hive DROP TABLE statement causes the underlying data files to be removed immediately, without being transferred into a temporary holding area (the HDFS trashcan). Although the PURGE clause is recognized by the Spark SQL DROP TABLE statement, this clause is currently not passed along to the Hive statement that performs the "drop table" operation behind the scenes. Therefore, if you know the PURGE behavior is important in your application for performance, storage, or security reasons, do the DROP TABLE directly in Hive, for example through the beeline shell, rather than through Spark SQL. The immediate deletion aspect of the PURGE clause could be significant in cases such as: If the cluster is running low on storage space and it is important to free space immediately, rather than waiting for the HDFS trashcan to be periodically emptied. If the underlying data files reside on the Amazon S3 filesystem. Moving files to the HDFS trashcan from S3 involves physically copying the files, meaning that the default DROP TABLE behavior on S3 involves significant performance overhead. If the underlying data files contain sensitive information and it is important to remove them entirely, rather than leaving them to be cleaned up by the periodic emptying of the trashcan. If restrictions on HDFS encryption zones prevent files from being moved to the HDFS trashcan. This restriction primarily applies to CDH 5.7 and lower. With CDH 5.8 and higher, each HDFS encryption zone has its own HDFS trashcan, so the normal DROP TABLE behavior works correctly without the PURGE clause.
https://docs.cloudera.com/documentation/enterprise/5-10-x/topics/spark_sparksql.html
CC-MAIN-2019-47
refinedweb
854
50.53
NAME Changes - Apache mod_perl changes logfile CHANGES all changes without author attribution are by Doug MacEachern Also refer to the Apache::Test changes log file, at Apache-Test/Changes - 2.0.9 June 18, 2015 Add note to README about MP_INLINE problem when building with GCC 5. [Niko Tyni <ntyni@debian.org>] Fix t/api/aplog.t for apr-1.5.2. [Steve Hay] Note that Perl 5.22.x is currently not supported. This is logged as CPAN RT#101962 and will hopefully be addressed in 2.0.10. [Steve Hay] Fix unthreaded build, which was broken in 2.0.9-rc2. [Steve Hay] Remove PerlInterpScope. This has not been working properly with threaded MPMs with httpd-2.4.x and the use-case of this directive was questionable. [Jan Kaluza] Allow running the test suite with httpd-2.4.x when mod_access_compat is not loaded. [Steve Hay] Add support for Apache httpd-2.4.x. [Torsten Foertsch, Jan Kaluza, Steve Hay, Gozer] Don't call modperl_threaded_mpm() et al. from XS code. Fixes Debian Bug #765174. [Niko Tyni <ntyni@debian.org>]@gmail.com>] Fix the build with VC++ and dmake (rather than nmake) on Windows. The Makefile generated by Apache2::Build uses shell commands for the manifest file, but neglected to tell dmake to use the shell. [Steve Hay] Don't write an 'rpm' target into the Makefile on Windows. It isn't relevant on Windows, and the (hard-coded, not MakeMaker-generated) recipe group has syntax which dmake doesn't understand. [Steve Hay] -] - 2.0.7 June 5, 2012 Fix breakage caused by removal of PL_uid et al from perl 5.16.0. Patch from rt.cpan.org #77129. [Zefram] - 2.0.6 April 24, 2012 Preserve 5.8 compatibility surrounding use of MUTABLE_CV [Adam Prime] Move code after declarations to keep MSVC++ compiler happy. [Steve Hay] Adopt modperl_pcw.c changes from httpd24 branch. [Torsten Foertsch] Pool cleanup functions must not longjmp. Catch these exceptions and turn them into warnings. [Torsten Foertsch] Fix a race condition in our tipool management. See Patch submitted by: SalusaSecondus <salusa@nationstates.net> Reviewed by: Torsten Foertsch Ensure that MP_APXS is set when building on Win32 with MP_AP_PREFIX, otherwise the bundled Reload and SizeLimit builds will fail to find a properly configured Test environment. [Steve Hay] Fix a few REFCNT bugs. Patch submitted by: Niko Tyni <ntyni@debian.org> Reviewed by: Torsten Foertsch Correct the initialization of the build config in ModPerl::MM. The global variable was only being set once on loading the module, which was before Apache2::BuildConfig.pm had been written, leading to cwd and MP_LIBNAME being unset when writing the Reload and SizeLimit makefiles. [Steve Hay] Discover apr-2-config from Apache 2.4 onwards. [Gozer] Apache 2.4 and onwards doesn't require linking the MPM module directly in the httpd binary anymore. APXS lost the MPM_NAME query, so we can't assume a given MPM anymore. Introduce a fake MPM 'dynamic' to represent this. [Torsten Foertsch, Gozer] Perl 5.14 brought a few changes in Perl_sv_dup() that made a threaded apache segfault while cloning interpreters. [Torsten Foertsch] PerlIOApache_flush() and mpxs_Apache2__RequestRec_rflush() now no longer throw exceptions when modperl_wbucket_flush() fails if the failure was just a reset connection or an aborted connection. The failure is simply logged to the error log instead. This should fix cases of httpd.exe crashing when users press the Stop button in their web browsers. [Steve Hay] Fixed a few issues that came up with LWP 6.00: - t/response/TestAPI/request_rec.pm assumes HTTP/1.0 but LWP 6 uses 1.1 - t/api/err_headers_out.t fails due to a bug somewhere in LWP 6 - t/filter/TestFilter/out_str_reverse.pm sends the wrong content-length header [Torsten Foertsch] Bugfix: Apache2::ServerUtil::get_server{description,banner,version} cannot be declared as perl constants or they won't reflect added version components if Apache2::ServerUtil is loaded before the PostConfig phase. Now, they are ordinary perl functions. [Torsten Foertsch] Check for the right ExtUtils::Embed version during build [Torsten Foertsch] Take a lesson from rt.cpan.org #66085 and pass LD_LIBRARY_PATH if mod_env is present. Should prevent test failures on some platforms. [Fred Moyer] - 2.0.5 February 7, 2011] ->, Fred Moyer <fred@redhotpenguin.com>] Make $r->the_request() writeable [Fred Moyer <fred@redhotpenguin.com>] fix ModPerl::RegistryCooker::read_script to handle all possible errors, previously there was a case where Apache2::Const::OK was returned on an error. [Eivind Eklund <eeklund@gmail.com>]>] Prevent Apache2::PerSections::symdump() from returning invalid httpd.conf snippets like 'Alias undef' [Philip M. Gollucci <pgollucci@p6m78g.com>] Require B-Size 0.9 for Apache2::Status which fixes Can't call method "script_name" on an undefined value [Philip M. Gollucci <pgollucci@p6m78g.com>] >] Fixes to get bleed-ithread (5.9.5+) to comile again. [Philip M. Gollucci <pgollucci@p6m7g8.com>] - 2.0.3 November 28, 2006 Prevent things in %INC that are not stat() able from breaking Apache2::Status 'Loaded Modules' under fatal warnings. [Philip M. Gollucci <pgollucci@p6m7g8.com>] When using MP_AP_PREFIX on WIN32 make sure that its a valid directory. [Nikolay Ananiev <ananiev@thegdb.com>] Fix bug concerning 'error-notes' having no value on errordocument redirect. [Guy Albertelli II <guy@albertelli.com>] Multi-line $PerlConfig is now working [Gozer] PerlOptions None was previously incorrectly reported as invalid inside <VirtualHost> or <Directory> blocks. [Philip M. Gollucci] Require B::Size 0.07 and B::TerseSize 0.07 for Apache2::Status [Philip M. Gollucci] Apache2::Status was expecting B::TerseSize to return an op count for things that it didn't causing requests like to cause 405s [Philip M. Gollucci] Updates for Win32 to allow building and testing on Apache/2.2: - use httpd.exe as the Apache binary name when installing apxs - use new apr library names (libapr-1.lib and libaprutil-1.lib) [Randy Kobes] Make sure that additional library paths are included in the build flags so that mod_perl will use the same versions of libraries that APR does. [Mike Smith <mike@mailchannels.com>] Added $r->connection->pnotes, identical to $r->pnotes, but for the entire lifetime of the connection [Geoffrey Young, Gozer] Fixed problems with add_config() and thread-safety: [Gozer] - $s->add_config is not allowed anymore after server startup - $r->add_config can only affect configuration for the current request, just like .htaccess files do Make sure that LIBS and other MakeMaker command line flags are not ignored by the top level Makefile.PL and xs/APR/APR/Makefile.PL [Stas] Corrected a typo that would cause the corruption of $), the effective group id as Perl sees it [Gozer] Added support for httpd-2.2's new override_opts in Apache2::Access. Calls to add_config() now accept an override_opts value as the 4th argument. [Torsten Foertsch <torsten.foertsch@gmx.net>, Gozer] Fix 'PerlSwitches +inherit' that got broken somewhere along the way to 2.0. You can also use 'PerlOptions +InheritSwitches' for the same result. [Gozer] Add perl API corresponding to User and Group directives in httpd.conf: Apache2::ServerUtil->user_id and Apache2::ServerUtil->group_id [Stas] Apache2::Reload now first unloads all modified modules before trying to reload them. This way, inter-module dependencies are more likely to be correctly satisfied when reloaded [Javier Uruen Val <juruen@warp.es>, Gozer] $r->add_config() can now take an optionnal 3rd argument that specifies what pseudo <Location $path> the configuration is evaluated into [Torsten Foertsch <torsten.foertsch@gmx.net>] remove -DAP_HAVE_DESIGNATED_INITIALIZER and -DAP_DEBUG from MP_MAINTAINER mode to avoid collisions [Joe Orton] Back out r280262 which was causing Apache2::Reload to misbehave. [JT Smith <jt@plainblack.com>] Perl_do_open/close fixes to make mod_perl 2.0 compile with blead-perl@25889+ (5.9.3+) [Stas] Added Apache2::PerlSections->server, returning the server into which the <Perl> section is defined [Gozer] Require B::Size and B::TerseSize v0.06 for Apache2::Status options StatusTerse and StatusTerseSize which has now been updated to support the new mod_perl2 api post RC5. [Philip M. Gollucci] When using Apache2::PerlSections->dump, the configuration would print out in the correct order, but when the configuration was passed off to Apache the ordering was lost. [Scott Wessels <swessels@usgn.net>] - 2.0.2 - October 20, 2005 add :proxy import tag to Apache2::Const which exposes new constants PROXYREQ_NONE, PROXYREQ_PROXY, and PROXYREQ_REVERSE [Geoffrey Young] $0 Fixes : [Gozer] - Setting $0 works on Linux again - HP-UX and *BSDes show the correct process name instead of '-e' Fix a critical but trivial bug that would cause MP_MAINTAINER=1 or MP_TRACE=1 builds to fail if not building against a threaded APR. Functions such as apr_os_thread_current() would not be linked in, but were expected to be. [Philip M. Gollucci] Add the output of ldd(unix/cygwin) and otool -L (darwin) for httpd to the mp2bug report script. [Philip M. Gollucci] Prevent tools such as Apache2::Status's Loaded Modules screen from displaying erroneous information about mod_perl.pm being loaded. [Stas, Philip M. Gollucci] Correctly set the version of ModPerl::MethodLookup, previously, it was not set because of the way it was Generating via ModPerl::WrapXS. [Philip M. Gollucci] Improve the detection of whether or not we are in an mp2 build tree. This allows usage of ExtUtils::MakeMaker options such as PREFIX to not break the probe of mp2 build trees. [Stas, Philip M. Gollucci] Add support for the newer Smaps (/proc/self/statm) on Linux systems that support it (i.e. linux-2.6.13-rc4-mm1) to accurately count the amount of shared memory. [Torsten Foertsch <torsten.foertsch gmx.net>] On cygwin some dlls might happen to be with identical base addresses and if you try to load both of them you'll get an error and you'll have to use the rebase utility to fix them. this fix should prevent this. [Nikolay Ananiev <ananiev@thegdb.com>] Fix an undefined warning in DSO builds when not using MP_APXS. [Nikolay Ananiev <ananiev@thegdb.com>] When running Makefile.PL with the MP_MAINTAINER=1 option add -Wdeclaration-after-statement if we are using gcc version 3.3.2 or higher and its not already part of the ccopts. [Philip M. Gollucci, Gozer] Several fixes to Apache2::Status [Philip M. Gollucci] When using Apache2::Reload and ReloadDebug is set to 'On', sort the output alphabetically [Philip M. Gollucci] croak in case a filter returns DECLINED after calling $f->read (as it is not supposed to happen) [Stas] another round of cygwin fixes [Nikolay Ananiev <ananiev@thegdb.com>] Multiple fixes to make mod_perl 2.0 work with blead-perl (5.9.3+) [Stas] t/modules/reload.t would fail if run more than 3 times, breaking smokes [Gozer] filter flushing now doesn't croak on connection reset (ECONNRESET/ECONNABORTED), but just logs the event on the 'info' level. [Stas] RPM Friendly builds : [Gozer] - make dist tarballs can now be built directly into RPMs with rpmbuild - Added a new target 'make rpm' to directly build rpms from a checkout - 2.0.1 - June 17, 2005 B::Terse has problems with XS code, so adjust Apache::Status to eval {} the code doing Syntax Tree Dump: syntax and execution order options [Stas] Fix a broken regexp in Apache2::Build::dir() on win32 that would incorrectly attempt to fully-qualify paths like c:/some/path [Nikolay Ananiev <ananiev@thegdb.com>] Fix the "No library found" warnings when building on win32 without apxs and MP_AP_PREFIX [Nikolay Ananiev <ananiev@thegdb.com>] The pure-perl ModPerl::Util::unload_package implementation was accidently deleting sub-stashes [Gozer] If running Makefile.PL unnatended (STDIN isn't a terminal or MP_PROMPT_DEFAULT=1), break out of potentially infinite prompt loops [Gozer] fix ModPerl::TestReport used by t/REPORT and mp2bug to use ExtUtils::MakeMaker's MM->parse_version to get the interesting packages version number, w/o trying to load them (which may fail if the environment is not right) [Stas] fix a bug in ModPerl::RegistryCooker: now stripping __(END|DATA)__ only at the beginning of the line [Stas] APR::Base64 : [Torsten Foertsch <torsten.foertsch@gmx.net>] - fix encode_len() to return the length without accounting for the terminating '\0' as the C API does. - fix encode() to create the string of the correct length (previously was creating one too many) in mod_perl callbacks merge error-notes entries rather than store just the newest error [Mark <mark@immermail.com>] Expose Apache2::Const::EXEC_ON_READ (added to the :override group) [Stas] Fix a bug in custom directive implementation, where the code called from modperl_module_config_merge() was setting the global context after selecting the new interpreter which was leading to a segfault in any handler called thereafter, whose context was different beforehand. [Stas] - 2.0.0 - May 20, 2005. [Nikolay Ananiev <ananiev@thegdb.com>] When compiling a static mod_perl and MP_AP_CONFIGURE="--with-apr=/some/path" argument is given, Apache will use the apr-config at the given path, but mod_perl was using the default at "srclib/apr/.libs". Fix that [Nikolay Ananiev <ananiev@thegdb.com>] Show MP_APU_CONFIG as an argument to Makefile.PL in the Usage menu. [Nikolay Ananiev <ananiev@thegdb.com>]. [Nikolay Ananiev <ananiev@thegdb.com>] - 1.999_23 - May 3, 2005 fix Apache2::Build::dynamic_link_MSWin32 to generate a new line after dynamic_link code in Makefile [Nikolay Ananiev <ananiev@thegdb.com>] fix a warning in Apache2::Build::build_config() when building with MP_STATIC_EXTS=1 [Nikolay Ananiev <ananiev@thegdb.com>] improving DSO support on cygwin. The problem with cygwin is that it behaves like windows (it's a posix layer over windows after all). That's why we need to supply all symbols during linking time just like on win32, by adding -lapr-0 -laprutil-0 and -lhttpd. On windows, Apache supplies all the three libraries and it's easy to link, but on cygwin apache doesn't play nice and doesn't supply libhttpd. This change adds libapr and libaprutil. [Nikolay Ananiev <ananiev@thegdb.com>] improve the diagnostics when detecting mp2 < 1.999022, tell the user which files and/or dirs need to be removed [Stas] restore the DESTDIR support partially nuked by the apache2 rename branch [Torsten Förtsch <torsten.foertsch gmx.net>] add APR::Status to provide functions corresponding to the APR_STATUS_IS_* macros of apr_errno.h, especially those composites like APR_STATUS_IS_EAGAIN(s) which are satisfied by more than one specific error condition. Presently only APR_STATUS_IS_EAGAIN is provided [Randy Kobes] fix the generation of the manpages for .pm files from sub-projects like ModPerl-Registry (previously was creating manpage files like .::ModPerl::PerlRun.3) [Stas] fix the pod2man'ification part of 'make install' (using POD2MAN_EXE instead of POD2MAN Makefile macro) [Stas] - 1.999_22 - April 14, 2005 ******************** IMPORTANT ******************** this version of mod_perl is completely incompatible with prior versions of mod_perl, both 1.XX and 1.99_XX. Please read the below changes carefully. *************************************************** remove MP_INST_APACHE2 installation option and Apache2.pm - all mod_perl related files will now be installed so they are visible via standard @INC. also, refuse to install over mod_perl 2 versions less than 1.999_22. [Geoffrey Young] s/Apache::/Apache2::/g and s/mod_perl/mod_perl2/g in all module APIs. so, Apache::RequestRec is now Apache2::RequestRec, Apache::compat is now Apache2::compat, and so on. [joes] move all Apache:: constants to Apache2::Const and all APR:: constants to APR::Const. for example, Apache:OK is now Apache2::Const::OK and APR::SUCCESS is now APR::Const::SUCCESS. [Geoffrey Young] add $ENV{MOD_PERL_API_VERSION} as something that clearly distinguishes which mod_perl version is being used at request time. [Geoffrey Young] rename Apache->request() to Apache2::RequestUtil->request(), and Apache->server() to Apache2::ServerUtil->server() [Geoffrey Young] fix Apache2::Status which was bailing out on trying to load modules with dev versions like 2.121_02 [Stas] When parsing Makefile.PL MP_* options, handle correctly the MP_FOO=0 entries [Philip M. Gollucci <pgollucci@p6m7g8.com>] init the anonsub hash for base perl and each vhost +Parent (previously was init'ed only for the base perl) [Stas] fix a bug when a non-threaded perl is used and anonymous sub is pushed at the server startup (the CV wasn't surviving) [Stas] Make sure that CPAN shell doesn't triple over usage of $ExtUtils::MakeMaker::VERSION [Randy Kobes] Apache2::RequestRec->new now sets $r->request_time [Stas] remove CGI.pm and Apache::Request dependencies from Apache2::Status since they weren't used at all [Geoffrey Young] Fixes for Apache2::Reload's touchfile feature (return Apache2::Const::OK instead of 1) [Chris Warren <chwarren@cisco.com>] cygwin fixes: [Nikolay Ananiev <ananiev@thegdb.com>] - doesn't like XS wrapper starting with 'static' - need to compile everything with -DCYGWIN ModPerl::RegistryCooker API change: s/rewrite_shebang/shebang_to_perl/ the new API now returns the string to prepend before the rest of the script, instead of rewriting the content, which is both faster and doesn't mislead the perl debugger [Dominique Quatravaux <dom@idealx.com>] Starting from ExtUtils::MakeMaker 6.26 went back to pm_to_blib target from pm_to_blib.ts introduced in 6.22, so needed to fix the glue_pod target, so install will work correctly [Stas] Syntax errors in <Perl> sections were not correctly caught and reported. [Gozer] when building mp2 EU::MM looks into Apache-Test/MANIFEST and complains about the missing Apache-Test/META.yml (which is indeed not included in the modperl package due to the PAUSE problems of dealing with more than one META.yml. Solution: Exclude Apache-Test/MANIFEST from mod_perl distribution package. [Stas] ModPerl::Registry no longer checks for -x bit (we don't executed scripts anyway), and thus works on acl-based filesystems. Also replaced the -r check with a proper error handling when the file is read in. [Damon Buckwalter <buckwad@gmail.com>] Apache2::RequestUtil::slurp_filename now throws an APR::Error exception object (before it was just croaking). [Stas] fix APR::Error's overload of '==' (it was always returning true before), and add the corresponding '!=' [Stas] if $r->document_root was modified, restore it at the end of request [joes] Apache2::ServerRec method which set the non-integer fields in the server_rec, now copy the value from the perl scalar, so if it changes or goes out of scope the C struct is not affected. Using internal perl variables to preserve the value, since using the server pool to allocate the memory will mean a memory leak [Stas] add the escape_url entry in the ModPerl::MethodLookup knowledgebase [Stas] Apache2::SubProcess::spawn_proc_prog now can be called in a void context, in which case all the communication std pipes will be closed [Stas] fix a bug in $r->document_root, which previously weren't copying the new string away [Stas] introduce a new build option MP_AP_DESTDIR to aid package builders direct the Apache-specific files to the right place. [Cory Omand <Cory.Omand@Sun.COM>] Fix bug in modperl_package_clear_stash() segfaulting when encountering declared but not yet defined subroutines. [Steve Hay <steve.hay@uk.radan.com>, Gozer] win32 needs PERL_SYS_INIT3/PERL_SYS_TERM calls [Steve Hay <steve.hay@uk.radan.com>] Fix broken MP_STATIC_EXTS=1 build. [Gozer] Perl -Duse64bit fix. Pointers can't just be generically casted from/to IVs. Use PTR2IV/INT2PTR instead. [Gozer] Perl -Duse64bit fix. apr_size_t pointers can't just be generically casted from/to UVs. Use PTR2UV/INT2PTR instead. [Gozer] fix a bug in Apache2::Build::dir: If the right directory isn't found in the for loop $dir still contains a > value, so the ||= has no effect. [Nick Wellnhofer <wellnhofer@aevum.de>] - 1.999_21 - January 22, 2005 PerlPostConfigRequire was trying to detect missing files early on, but without searching thru @INC, causing false negatives. Better off skipping that check and leave it to modperl_require_file() to report problems with finding the file. [Patrick LeBoutillier <patrick.leboutillier@gmail.com>, Gozer] add a perl bug workaround: with USE_ITHREADS perl leaks pthread_key_t on every reload of libperl.{a,so} (it's allocated on the very first perl_alloc() and never freed). This becomes a problem on apache restart: if the OS limit is 1024, 1024 restarts later things will start crashing [Gisle Aas <gisle@ActiveState.com>, Stas] on Irix mod_perl.so needs to see the libperl.so symbols, which requires the -exports option immediately before -lperl. [Gordon Lack <gml4410@ggr.co.uk>] pool arguments to startup and connection callbacks must be blessed into APR::Pool and not Apache::Pool class [joes] Make PerlSetEnv, PerlPassEnv and %ENV in PerlRequre, PerlModule, PerlConfigRequire and PerlPostConfigRequire affect each other, so a change in one of these is immediately seen in the others. [Pratik <pratiknaik gmail.com>, Stas] - 1.999_20 - January 5, 2005 the autogenerated modules (and some implemented in xs/ modules) are now getting the same version number as $mod_perl::VERSION (the exception are APR modules which get 0.009_000 for now). [Stas] until we figure out how to tell PAUSE index about versions of the autogenerated modules, create a fake module which lists all the autogenerated modules and their versions and include that in the distro. [Stas] moving to the triplet version notation, which requires us to bump 1.99 => 1.999 so 1.999020 (mp2) > 1.29 (mp1). [Stas] Now we are gong to have: $mod_perl::VERSION : "1.099020" int $mod_perl::VERSION : 1.09902 $mod_perl::VERSION_TRIPLET: 1.99.20 <Perl> and PerlPostConfigRequires were leaking some memory at startup. Use parms->temp_pool instead of parms->pool for temporary memory allocations. [Gozer] deal with a situation where an object is used to construct another object, but it's then auto-DESTROYed by perl rendering the object that used it corrupted. the solution is to make the newly created objects refer to the underlying object via magic attachment. only objects using objects that have DESTROY are effected. This concerns some of the methods accepting the custom APR::Pool object (not native pools like $r->pool). [Stas] Adjusted: - APR::Brigade: new - APR::Finfo: stat - APR::IpSubnet: new - APR::Table: copy, overlay, make - APR::ThreadMutex: new - APR::URI: parse - Apache::RequestUtil: new - APR::Pool: new - APR::BucketAlloc: new APR::Bucket::alloc_create moved to APR::BucketAlloc::new APR::Bucket::alloc_destroy moved to APR::BucketAlloc::destroy [Stas] prefork handlers optimisation: don't dup the handler struct unless this is a threaded-mpm [Stas] speed up the 'perl Makefile.PL' stage [Randy Kobes]: - reduce the number of calls to build_config() of Apache::Build within ModPerl::BuildMM - cache the results of the calls to apxs_cflags, apxs_extra_cflags, and apxs_extra_cppflags in Apache::Build - in apxs of Apache::Build, return a cached result only when defined move ModPerl::Util::exit() into mod_perl.so, since it needs to work, even if ModPerl::Util wasn't loaded [Stas] - 1.99_19 - December 23, 2004 $r->hostname is now writable [Gozer] Static build with a Perl without ithreads and a non-threaded MPM would segfault on startup. Caused by a bug in perl's perl_shutdown() code. Fixed in Perl 5.8.2, so it's now a build requirement [Gozer] replace the added in 1.99_17 code on resetting/restoring PL_tainted, with explicit reset before and after each each callback. This solves a complicated tainting issues caused when perl exception object is thrown. rgs suggested that it should be safe, similar to perl's own pp_nextstate which says: /* Each statement is presumed innocent */ [Stas] New configuration directives: [Gozer] - PerlConfigRequire Just like PerlRequire, but _always_ triggers an immediate interpreter startup - PerlPostConfigRequire A delayed form of PerlRequire, that waits until the post_config phase before require'ing files fix a warning in Apache::Status [John Williams <williams tni.com>] Ignore Apache-Test/META.yml in distribution tarballs until PAUSE is capable of handling multiple META.yml files in one distro [Gozer] modperl_exports.c now wraps all exported functions in a #ifndef function_name wrapper to help in weeding out functions that only make sense for certain Perl configurations (perlio, threads) (which also fixes static build against perlio-disabled perls, like 5.6.x) [Gozer] for make test, skip configuring fastcgi if it's found in the global httpd.conf, as it causes crashes in the test suite [Stas] fix Makefile.PL arguments parser to support more than one MP_foo option on the same line (including .makepl_args.mod_perl2 file) [Stas] fix compilation issues in ModPerl::Util::current_perl_id (on some builds newSVpvf can't be resolved but Perl_newSVpvf works just fine). [Stas, Markus Wichitill <mawic@gmx.de>] fix APR::Error::str to return a lexical variable, rather than a string. This function is called by SvTRUE in modperl_errsv() via overload and on win32 (and randomly on linux) causes crashes via: "Attempt to free temp prematurely" warning, where this 'temp' is the string returned by this function. Making it a lexical variable before returning it, resolves the problem. [Steve Hay] fix META.yaml s/private/no_index/ (to hide the bundled Apache-Test from PAUSE indexer) [Randy Kobes] - 1.99_18 - December 12, 2004 Fix x86_64 warnings in modperl_restart_count_*, due to casting between integers and pointer types [Joe Orton] open_logs and post_config handlers require the Apache::OK return code or the server aborts, so we need to log an error in case the handler didn't fail but returned something different from Apache::OK [Stas] new function ModPerl::Util::current_perl_id() which returns something like (.e.g 0x92ac760) (aTHX) under threaded mpm and 0 under non-threaded perl (0x0). Useful for debugging modperl under threaded perls. [Stas] make sure that modperl's internal post_config callback, which amongst other things, cloning perl interpreters is running as modperl_hook_post_config_last APR_HOOK_REALLY_LAST, which ensures that user's post_config callbacks are run before the cloning. now the code from config phase's startup.pl can be safely moved to the post_config phase's equivalent. [Stas] Further sync with libapr constants changes: [Stas] - the constants APR::(READ|WRITE|CREATE|APPEND|TRUNCATE|BINARY|EXCL|BUFFERED|DELONCLOSE) now have a prefix APR::FOPEN_ and moved group s/filemode/fopen/ - constants from the fileprot group moved to the fprot group and the prefix has changed: from APR::FILEPROT_ to APR::FPROT_ - this also fixes the import of APR_EXCL as an error constant $r->print() and tied print() now return 0E0 (zero but true) when the call was successful but for zero bytes. [Geoffrey Young] a new function Apache::ServerUtil::server_shutdown_cleanup_register to register cleanups to be run at server shutdown. [Stas] $bb->cleanup is no more segfaulting (was segfaulting due to a broken prototype in APR, and consequently invalid XS glue code) [Randy Kobes, Stas] make sure that ABSPERLRUN and ABSPERLRUN are defined in src/modules/perl/Makefile (needed by win32 build) [Stas] For static builds, mod_perl header files were being installed into apache's source tree instead of where apache installed it's own headers [Gozer] modperl_threads_started() wasn't working under static worker build, due to MP_threads_started static variable not being reset on restart. Now resetting it. [Stas] @INC shrinking efforts: [Stas] 1) when adding $ServerRoot don't add the trailing / (as it ends up twice when added by A-T w/o trailing /) 2) add $ServerRoot/lib/perl only if it actually exists For static builds, we now run 'make clean' in httpd's source tree before running ./configure if the source tree has been configured before [Gozer] Apache::SizeLimit ported [Perrin Harkins <perrin elem.com>] create a new subpool modperl_server_user_pool (from modperl_server_pool), which is used internally by Apache::ServerUtil::server_restart_register. This ensures that user-registered cleanups are run *before* perl's internals cleanups are run. (previously there was a problem with non-threaded perls which were segfaulting on user cleanups, since perl was already gone by that time). [Stas] Starting from ExtUtils::MakeMaker 6.22 it no longer generates pm_to_blib target, but pm_to_blib.ts, so needed to fix the glue_pod target, so install will work correctly [Stas] Apache::RequestUtil : $r->child_terminate() implemented for non-threaded MPMs. [Gozer] new API Apache::ServerUtil::restart_count() which can be used to tell whether the server is starting/restarting/gracefully restarting/etc. Based on this feature implement $Apache::Server::Starting and $Apache::Server::ReStarting in Apache::compat [Stas] Apache::Resource ported to mp2 [Stas] If none of MP_APXS, MP_AP_PREFIX and MP_USE_STATIC were specified when configuring Makefile.PL, we now prompt for APXS path first and only if that fails ask for MP_AP_PREFIX. This is a requirement to get 'make test' find httpd. [Stas] Dynamically prompt and add MP_INST_APACHE2=1 when installing on systems with mod_perl 1 preinstalled. [Stas] fix the logging call in RegistryCooker [Lars Eggert <lars.eggert netlab.nec.de>] fix $r->filename in Apache::compat to update the finfo struct (which is how it worked in mp1) [Stas] enclose all occurences of eval_* with ENTER;SAVETMPS; ... FREETMPS;LEAVE; previously things just happened to work, due to external scopes which was not very reliable and some change could introduce obsure bugs. [Stas] in case a native apache response filter is configured outside the <Location> block with PerlSet*Filter directive, make sure that mod_perl doesn't try to add it as connection filter (previously was logging an error like: [error] a content filter was added without a request: includes) [Stas] replace the slow implementation of anon handlers using B::Deparse, with per-interpreter cache of compiled CODE refs (sort of emulating named subroutines for anonymous handlers) [Stas]. avoid segfaults when a bogus $r object is used [Stas] Remove magicness of PerlLoadModule and implement Apache::Module::add() for modules that implement their own configuration directives [Gozer] Apache::Connection::remote_ip is now settable (needed to set the remote_ip record based on proxy's X-Forwarded-For header) [Stas] Fix Modperl::Util::unload_package() [Gozer] - Mistakenly skipping small entries of size 2 and less - Leave entries from other packages alone $filter->remove now works with native (non-modperl) filters + test [Torsten Förtsch <torsten.foertsch gmx.net>] - 1.99_17 - October 22, 2004 Implement Apache->unescape_url_info in Apache::compat and drop it from the official API for CGI::Util::unescape() as a suggested replacement [Gozer] fix xs_generate to croak on duplicate entries in xs/maps files [Christian Krause <chkr plauener.de>] Workaround a possible bug in Perl_load_module() [Gozer] Fix a problem building with non-GNU make (can't make target dynamic in xs/APR/aprext) [Gozer] escape HTML in dumped variables by Apache::Status [Markus Wichitill <mawic@gmx.de>] $r->document_root can now be changed when safe to do so [Gozer] APR::Bucket->new now requires an APR::BucketAlloc as its first argument. New subs added: APR::Bucket::setaside, APR::Bucket::alloc_create, APR::Bucket::alloc_destroy, APR::Brigade::bucket_alloc. [joes] reimplement APR::Pool life-scope handling, (the previous implementation had problems) [joes] make sure that Apache::Filter::read, APR::Socket::recv, Apache::RequestIO::read, APR::Brigade::flatten, and APR::Bucket::read all return tainted data under -T [Stas] tag the custom pools created by mod_perl for easier pools debug [Joe Orton] fix a bug in non-ithreaded-perl implementation where the cached compiled CODE refs of httpd.conf-inlined one-liner handlers like: PerlFixupHandler 'sub { use Apache::Const qw(DECLINED); DECLINED }' didn't have the reference count right. [Stas] per-server PerlSetEnv and PerlPassEnv values are properly added to %ENV when only a per-directory handler is configured. [Geoffrey Young] resolve several 'Use of uninitialized value in...' warnings in Apache::Status [Stas]. make install and static build now correctly installs mod_perl as well as the statically built apache [Gozer] if some code changes the current interpreter's tainted state to on, the return value from the handler callback will be tainted, and we fail to deal with that. So revert to coercing any return value, but undef (a special case for exit()). to IV, so that tainted values are handled correctly as well. [Stas] make sure that each handler callback starts with a pristine tainted-ness state, so that previous callback calls won't affect the consequent ones. Without this change any handler triggering eval or another function call, that checks TAINT_PROPER, will crash mod_perl with: "Insecure dependency in eval while running setgid. Callback called exit." farewell message [Stas] make sure that 'make distclean' cleans all the autogenerated files [Stas] $r->log_reason has been ported and moved out of Apache::compat [Gozer] APR::OS::thread_current renamed APR::OS::current_thread_id and now returns the actual thread_id instead of an object that needed to be dereferenced to get at the thread_id [Gozer] change a bunch of the APR:: constants to have a better prefix (APR::FILETYPE_* and APR::FILEPROT_). libapr will be changed soon too [Stas] Generate modperl_exports.c for static builds to prevent the linker from stripping needed but unused symbols [Gozer] Add .libs/ as part of the library search path when building against httpd's source tree [Gozer] In the static build, run make in httpd's srclib/ early to have generated files present at mod_perl configure time [Gozer] When searching for ap(r|u)-config in httpd's source tree, search into srclib/apr-util as well as srclib/apr [Gozer] Remove APR::Finfo::pool as it has no use to us [Stas] get PerlSetVar and PerlAddVar multi-level merges to (finally) work properly. [Rici Lake <rici ricilake.net>] MP_AP_BUILD configure option removed. Now implicit when MP_USE_STATIC is specified [Gozer] Apache::Module $mod->version() and $mod->minor_version() renamed to $mod->ap_api_major_version() and $mod->ap_api_minor_version for clarity [Gozer] Apache::Log changes: [Stas] - moved to compat: Apache::warn, Apache->warn, Apache::Server->warn, Apache::Server::warn - re-enabled $r->warn - removed support for Apache::ServerRec->warn (Apache::ServerRec::warn is still there) Apache::Directive conftree() changed from class method to regular subroutine [Gozer] Apache::Module top_module() and get_config() as class methods added to Apache::compat for backwards compatibility [Gozer] Apache::Module top_module() and get_config() changed from class methods to regular subroutines [Gozer] Added Apache::CmdParms::add_config() to work around a memory leak discovered with <Perl> sections in .htaccess files [Gozer] Added ModPerl::Util::unload_package() to remove a loaded package as thoroughly as possible by clearing it's stash. [Gozer] fix Apache->request($r) to be set-able even w/: PerlOptions -GlobalRequest [Stas] Add Apache::Reload->unregister_module() to explicitely remove a module from Apache::Reload's monitoring list [Gozer] introduce a custom modperl error message for failing filter handlers (previously 'unknown error' coming from rc=500 was logged) [Stas] Fix Apache::Log methods/functions to log into the vhost's error_log file (if there is one). ( $s->log->*, $s->log_error, $s->log_serror, Apache::ServerRec::warn, etc.). Apache::ServerRec can now export its warn function to override CORE::warn [Stas] Fix $s->log->*, $s->log_error and $s->log_serror to again log into the vhost's error_log file (if there is one). [Stas] $s->log->warn and other $s->log->foo are now logging to the right vhost server and not the global one. modperl_sv2server_rec was broken. [Stas] Fix a glue_pod make target bug, when .pm file doesn't exist, e.g. ThreadMutex.pm is not created on unless $apr_config->{HAS_THREADS} [Stas] Introduce APR::Socket::poll to poll a non-blocking socket [Ken Simpson <ksimpson@larch.mailchannels.com>] Fix the error message when the minimal required httpd version is not satisfied [Pratik <pratiknaik@gmail.com>] Fix interactive prompting at perl Makefile.PL, when no APXS or MP_AP_PREFIX were provided. now asking for an alternative location if the suggested choices weren't selected. [Stas] Added APR::URI->rpath method. Returns the path of an uri minus path_info, if any. [Gozer] moved Apache::current_callback() to ModPerl::Util::current_callback where it belongs [Gozer] modperl_perl_module_loaded() fixed to use %INC to determine if a module is loaded instead of checking for the existence of a stash [Gozer] fix the modperl build, where httpd has been built against separate installations of apr-util and apr, where apr-util has been installed with a different includedir to apr. [Joe Orton] $Apache::Server::SaveConfig is now $Apache::PerlSections::Save [Geoffrey Young] - 1.99_16 - Aug 22, 2004 Fix a compilation problem breaking 1.99_15 (sv_copypv was added in perl 5.7.3) [Jason Woodward <woodwardj@jaos.org>] Added $r->content_languages in Apache::RequestRec [Gozer] APR::Bucket: add delete() and destroy() methods [Stas] - 1.99_15 - Aug 20, 2004 replace the memory allocation for modperl filter handlers to use a temporary subpool of the ap_filter_t object. previously using perl's safemalloc had problems on win32 (randomly my_perl == NULL) [Stas] Disable Apache::HookRun::run_create_request -- it's already run internally by Apache::RequestRec->new [Stas] Update Apache::RequestRec->new() to initialize members of request_rec which were added some time ago (without it we were getting segfaults in the new pseudo_http test. [Stas] Apache::CmdParms->limited member replaced by is_method_limited() method [Gozer] Apache::Module changes [Gozer] - readwrite => readonly: cmds, next, name, module_index, minor_version, version - removed: remove_module ensure that a sub-dir Apache-Test exists in the source distro (this is a requirement, since the test suite relies on the particular Apache-Test version distributed with the mod_perl source) [Stas] combine handler resolving failure error with the actual error, so there is only one logged entry [Stas] pod manpages are now glued to all .pm files for which .pod exists at 'make install' phase [Stas] Apache::RequestIO::sendfile() now indicates which file it has failed to open on failure. [Stas] fix Apache::SubRequest's methods: lookup_file, lookup_uri, lookup_method_uri to default the last argument to r->proto_output_filters (no request filters for the subrequest) and not r->output_filters->next as it was before (one filter was getting skipped and the rest of the filters were applied *twice*). [Stas] Apache::CmdParms changes [Gozer] - readwrite => readonly: override, limited, directive, pool, temp_pool, server, path, cmd, context, err_directive - removed: limited_xmethods, xlimited, config_file, err_directive Fix a bug in APR::Bucket->new when a passed argument was of type PADTMP [Stas] Apache::Connection changes [Stas, "Fred Moyer" <fred /about/ taperfriendlymusic.org>] - readwrite => readonly: pool, base_server, local_addr, remote_addr, remote_ip, remote_host, aborted, local_ip, local_host, id, conn_config, sbh, bucket_alloc - removed: logname Move check_cmd_context from Apache::Command to Apache::CmdParms. [Gozer] Add :context group of constants for check_cmd_context(). NOT_IN_VIRTUALHOST, NOT_IN_LIMIT, NOT_IN_DIRECTORY, NOT_IN_LOCATION, NOT_IN_FILES, NOT_IN_DIR_LOC_FILE & GLOBAL_ONLY [Gozer] Removed Apache::Command method soak_end_container [Gozer] Removed Apache::Module methods (dynamic_load_handle and find_module_name) [Gozer] All Apache::Command methods are now read-only [Gozer] Removed Apache::Command methods (func and cmd_data) [Gozer] Removed Apache::Directive methods (data & walk_config) [Gozer] All Apache::Directive methods are now read-only [Gozer] Filters should not reset $@ if it was already set before invocation [Gozer] Apache::compat server_root_relative now correctly handles absolute paths like ap_server_root_relative does [Gozer] Fix a bug in <Perl> sections with multiple aliases in a virtualhost container. [Gozer] PerlModule, PerlRequire, Perl and <Perl> is now supported in .htaccess. They will run for each request. [Gozer] removed support for httpd 2.0.46. httpd 2.0.47 is now the minimum supported version. [Geoffrey Young] Static builds for httpd >= 2.0.51 available. With the new MP_AP_BUILD option, configure and compile an httpd with mod_perl statically linked in [Gozer] Apache::RequestRec methods changes [Stas] - readwrite => readonly: connection, canonical_filename, header_only, main, next, prev, pool, per_dir_config, request_config, proto_num, protocol, request_time, server, the_request, unparsed_uri - removed: remaining - this method is not needed if the deprecated $r->client_block methods aren't used, (use $r->read $r->instead) canonical_filename - it's a private member The func Apache::SubProcess::spawn_proc_prog is now a method: $r->spawn_proc_prog [Stas] Apache::Process methods (pool, pconf and short_name) are now read-only [Stas] ($r|$c|$s)->server_root_relative were removed. Now only an explicit and somewhat deprecated function API remains: Apache::ServerUtil::server_root_relative($pool, $path); it's too easy to cause memory leak with this method, and it's inefficient as it duplicates the return value, to avoid potential segfaults if the pool it was allocated from gets destroyed and the value is attempted to be used. Instead of this method use the equivalent: File::Spec->catfile(Apache::ServerUtil::server_root, $fname); [Stas] $r->psignature now lives in the package it belongs to: Apache::RequestUtil (previously lived in Apache::ServerUtil). [Stas] A few functions moved namespace from Apache:: to Apache::ServerUtil:: (to make it easier to find the container of the function): [Stas] - exists_config_define - server_root - get_server_built - get_server_version fix an old outstanding bug in the APR::Table's TIE interface with each()/values() over tables with multi-values keys. Now the produced order is correct and consistent with keys(). Though, values() works correctly only with perl 5.8.x and higher. [Joe Schaefer] require Perl 5.6.1, 5.6.0 isn't supported for a long time, but we weren't aborting at the Makefile.PL stage [Stas] Apache::RequestUtil::method_register($s->process->pconf, 'FOO'); is now $s->method_register('FOO'). Apache::RequestUtil::add_version_component($s->process->pconf, 'BAR/0.1'); is now $s->add_version_component('BAR/0.1'). [Stas] Remove $Apache::Server::StrictPerlSections. Now, all <Perl> sections errors are fatal by default and cause server startup to abort on error. [Gozer] Fix ($r|$filter|$bucket)->read() functions to run the set magic logic, to handle cases when a passed buffer to fill is not a regular scalar. [Stas] Apache::ServerRec accessors changes: [Stas] - readonly accessors: process, next, is_virtual, module_config, lookup_defaults and addrs - readwrite accessors with the exception of threaded mpms, where the accessors are writable only before the child_init phase (i.e. before threads are spawned): server_admin, server_hostname, port, error_fname, error_log, loglevel, timeout, keep_alive_timeout, keep_alive_max, keep_alive, names, wild_names, limit_req_line, limit_req_fieldsize, limit_req_fields, and path supports a new type of struct accessor, which is just like read/write one, but doesn't allow write access starting at the ChildInit phase under threaded mpm (to avoid thread-safely issues) [Stas] In order to be consistent with Apache::RequestRec, Apache::Server is now Apache::ServerRec and all methods/functions from Apache::Server now live in Apache::ServerRec. [Stas] Use a context-specific Perl_load_module() instead of load_module(), to avoid the problem with 'load_module' symbol resolution on certain platforms, where for some reason it doesn't get resolved at compile time to Perl_load_module_nocontext [Stas] Make it possible to disable mod_perl for the base server, but enable it for the virtual hosts [Stas] Removed the deprecated path argument to $r->add_config() [Gozer] Created a META.yml for CPAN and friends, including Apache-Test as a private resource to keep CPAN from installing mod_perl when a user just wants Apache::Test [Gozer] Moving HTTP specific functions get_status_line, method_register from Apache:: to Apache::RequestUtil:: to match their container [Stas] Adjust the list of mod_perl header files installed into the Apache2 include/ directory, made necessary from the renaming and refactoring arising from the decoupling of APR and APR::* from mod_perl.so. Also include modperl_apr_perlio.h under xs/APR/PerlIO/ in the list of such files installed [Stas, Randy Kobes] $r->read()/READ now throw exceptions [Stas] $r->rflush now returns nothing (was always returning APR::SUCCESS before) [Stas] bug reports generating code: [Stas] - add (apr|apu)-config linking info - show the full path to the config file used to get the data for the report The APR and APR::* family of modules can now be used without having to load mod_perl.so. On *nix, this is done by compiling the needed functions from the appropriate sources used to build mod_perl.so into APR.so, and then arranging for APR::* to 'use APR ()'. On Win32, a static library of needed functions is built, and APR/APR::* then link into this library [Stas, Joe Schaefer, Randy Kobes] APR::RequestIO::sendfile() now flushes any buffered output before sending the file contents out. If the return status is not checked and an error happens it'll throw an exception. Fix offset handling. [Stas] Registry: remove the misleading prefix "$$: $class:" in the logged error message, since not only registry errors will get logged if $@ is set [Stas] change t/REPORT to suggest to post bug reports to the modperl users list, to be consistent with the documentation [Stas] amd64 fixes [Joe Schaefer <joe+gmane@sunstarsys.com>] - use IV insteaf of int where a pointer is used - mpxs_APR__Bucket_new needs to use apr_size_t/off_set_t types APR::Socket::recv() now returns the length of the read data [Stas] APR::Bucket's read() returns "" instead of undef when there is no data to read. [Stas] fix a bug in Registry handlers, where the same error was logged twice and potentially a wrong error code returned [Stas] Apache::RequestIO: print(), printf(), puts(), write(), rflush() throw an exception on failure [Stas] Apache::SubRequest: run() throw an exception on failure [Stas] Apache::Filter: [Stas] - remove unneeded methods: remove_input_filter() and remove_output_filter(), fputs() - frec() accessor is made read-only - fflush(), get_brigade() and pass_brigade() now throw exceptions if called in the void context - read, print() and puts() throw an exception on failure Apache::FilterRec: [Stas] - remove the next() accessor since it's not used by Apache at the moment - name() is made read-only APR::URI: [Stas] - removed accessors o is_initialized() (internal apr_uri flag) o dns_looked_up() and dns_resolved() (they are not used by apache/apr) - all remaining accessors now accept undef value, which unsets the field Extended WrapXS code to support a new type of accessor: char * which accepts undef to set the C pointer to NULL and as such unset the member of the struct. [Stas] Exception error messages now include the error id along with the error message (as they did in first place). [Stas] $r->finfo now accepts APR::Finfo object as an optional argument. [Stas] APR::Finfo [Stas] - change stat() to return finfo - make all field accessors readonly ARP::password_validate is now ARP::Util::password_validate [Stas] APR::IpSubnet::new() now throws APR::Error exception (not returning rc) [Stas] rename package APR::NetLib -> APR::IpSubnet to match the class name [Stas] APR::BucketType: [Stas] - name is readonly APR::Brigade [Stas] - destroy() now throws APR::Error exception (not returning rc) - rename empty => is_empty - added the method cleanup() - flatten() now returns the number of bytes read (and passed the buffer by the argument) and throws APR::Error exception APR::Bucket: [Stas] - read() now returns the length of the read data and throws APR::Error exception (not returning rc). The returned scalar is now TAINTED. - type->name now has a module APR::BucketType - type(), length(), start(), data() are now all readonly - new() fix a bug in offset handling - 1.99_14 - May 21, 2004 APR::SockAddr::port() accessor is now read-only [Stas] APR::Pool now has destroy() and clear() available [Stas] now logging the errors happening in pool cleanup callbacks [Stas] use the new Apache-Test attribute -minclient in the test suites. Now along with the default maxclients = minclients+1, we no longer should get 'server reached MaxClients setting' errors. [Stas] new API for APR::Socket recv() and send() + updated tests [Stas] add infrastructure for new ModPerl::Const constants and the first constant ModPerl::EXIT. [Stas] re-implement ModPerl::Util::exit to use exception objects, so it's possible to detect exit called in eval context and call it again outside the eval context. [Stas] add the perl interface for the new exception handling code (mod_perl, apache and apr methods will now throw exceptions with $@ being an object). New class APR::Error was added, to handle the exception objects with overload methods. Also added confess and croak equivalents of Carp's methods, since at the moment the Carp's ones don't work as is. The following perl and C methods have been renamed: modperl_apr_strerror => modperl_error_strerror APR::strerror => APR::Error::strerr [Stas] set the 'error-notes' table to the error message on HTTP_INTERNAL_SERVER_ERROR [Stas] fix the apxs build function to not handle empty lookups as errors [Randy Kobes, Steve Hay] fix type casting problems in the io functions [Stas] add support for libgtop 2.5.0+ (maintenance mode) [Stas] APR::Socket::timeout_set now croaks on failure [Stas] significantly speedup the startup of threaded mpm test suite, by configuring only the minimal number of perl interpreters to start [Stas] make APR::Socket::opt_(set|get) working (and change the previous behavior) [Stas] make sure that our protocol module tests that interact with the socket use a blocking read [Joe Orton] => $package_name) (this is a new function). It's now possible to have a complete control of when END blocks are run from the user space, not only in the registry handlers [Stas] END blocks encountered by child processes and not hijacked by ModPerl::Global::special_list_register() are now executed at the server shutdown (previously they weren't executed at all). [Stas] Added test to ensure <Perl> sections can have things like %Location tied [Gozer] Fix the installation on Win32 so that an appropriate Apache2 subdirectory under the Perl tree is used when MP_INST_APACHE2 is specified [Randy Kobes] Fix a redefined warning in Apache::Status [Stas] Fix Apache::Status, to lookup the Apache::Request version without loading it. Only if a suitable (2.x) version is found -- load and use it. Previously loading the 1.x version was affecting Apache::compat. [Stas] Fix a bug in special blocks handling (like END), which until now was dropping on the floor all blocks but the last one (mainly affecting registry handlers). [Stas] The filter streaming API print() function, now correctly handles a binary data [Stas] Fix Registry handlers, not to lose the execution errors, when they include END blocks [Stas] - 1.99_13 - March 8, 2004 respect $ENV{APACHE_TEST_STARTUP_TIMEOUT} settings if any [Stas] Added tests for issuing subrequests from filters [Geoffrey Young] Updated to the new Apache License Version 2.0 [Gozer] Drop the support for making GATEWAY_INTERFACE special. It's not needed as $ENV{MOD_PERL}, available in both mod_perl generations, should be used to test whether the code is running under mod_perl. [Stas] Handle correctly the situation when response HTTP headers are printed from the handler and the response body starts with \000, which is the case with some images like .ico. [Stas] Apache::PerlSections->dump() and store(filename) [Gozer] expose $c->keepalive related constants and $c->keepalives counter [Stas] Perl handlers are now guaranteed to run before core C handlers for all request phases. [Geoffrey Young] Fix the STDIN/OUT overriding process to handle gracefully cases, when either or both are closed/bogus (the problem was only with useperlio enabled perl) [Stas] copy apr_table_compress logic from later httpd versions in case mod_perl is built against 2.0.46, as mod_perl now requires it internally. users should be aware that 2.0.47 may become the oldest supported httpd version in the near future. [Geoffrey Young] Fix the corruption of the httpd process argv[0], caused by $0 manipulating [Stas] ModPerl::MethodLookup::lookup_method now handles sub-classed objects [Stas] standard %ENV population with CGI variables and contents of the subprocess_env table (such as SetEnv and PassEnv) has been delayed until the last possible moment before content-generation runs. PerlSetEnv and PerlPassEnv are each an exception to this and are placed in both %ENV and the subprocess_env table immediately, regardless of the current [+-]SetupEnv setting. [Geoffrey Young] fix PerlAddVar configuration merging [Geoffrey Young] Anonymous subs are now supported in push_handlers, set_handlers, add_input_filter, etc. A fast cached cv is used with non-ithreaded perl. A slower deparse/eval approach (via B::Deparse) is used with ithreads enabled perls. Further optimizations are planned for the latter case. [Stas] ht_time w/o the pool is now available only via override/restore compat API. format_time, has been renamed back to ht_time, and the default values for fmt, time and gmt are now supported. [Stas] it's now possible to push new handlers into the same phase that is running at the moment [Stas]. when $r->handler($new_handler) is called from a response phase, it now checks that the response handler type is not switched (e.g. from 'modperl' to 'perl-script') from the currently used one [Stas] Since Apache::SubProcess is now part of the mp2 API, add $r->cleanup_for_exec as a noop in Apache::compat. That function is no longer needed in Apache2. [Stas] When 'perl Makefile.PL PREFIX=/foo/bar' is used and mod_perl 1 is found, but at different prefix no longer require MP_INST_APACHE2=1. [Stas] modperl_mgv_resolve now croaks when a module scheduled for autoloading fails to load. AutoLoaded modules shouldn't silently fail. [Stas] Perl(Input|Output)FilterHandler handlers are now always AutoLoaded, as if '+' prefix was used. This must be performed to get the access to filter attributes long before the filter itself is executed. [Stas] APR/Pool.xs has been reimplemented. The problem with the previous implementation is that a dead perl pool object could hijack a newly created pool, which didn't belong to that object, but which happened to be allocated at the same memory location. The problem is that apr_pool_user_data_set/get has no mechanism to check whether the pool has changed since it was last assigned to (it does but only in the debug mode). It really needs some signature mechanism which can be verified that the pool is still the same pool. Since apr_pool doesn't have this feature, the reference counting has been reimplemented using a plain sv reference. Several new (mainly hijacking) tests which badly fail with the previous impelementation have been added. [Stas] fix calling $r->subprocess_env() in a void context so that it only populates %ENV if also called with no arguments. also, make sure it can be called more than once and still populate %ENV. [Geoffrey Young] add APR::Brigade::pool() to allow access to the pool associated with the brigade [Geoffrey Young] make 't/TEST -startup_timeout secs' working (previously user's value was ignored) [Stas] ModPerl::Registry and friends now support non-parsed headers scripts, whose filename =~ /^nph-/, identically to mod_cgi. + test [Stas] implement APR::Brigade::length() and APR::Brigade::flatten() (the latter implements a wrapper for apr_brigade_flatten, but also includes an emulation of apr_brigade_pflatten) as [Geoffrey Young] ($r|$s)->add_config() now die if failed (previously returned the error) [Stas] fix context problems in <perl> sections and PerlModule/PerlLoadModule/PerlRequre under threaded mpms w/ PerlOptions +Parent/+Clone in Vhosts + TestVhost::config test. [Stas] Implemented Apache::get_server_version and Apache::get_server_built as constant subroutines [Geoffrey Young] Moved some functions out of the Apache:: namespace: Apache::unescape_url() is now Apache::URI::unescape_url() Apache::log_pid() is now Apache::Log::log_pid() Apache::LOG_MARK() is now Apache::Log::LOG_MARK() [Geoffrey Young] if MP_AP_PREFIX is used apxs and apr-config from the apache build tree won't work, so it can't co-exist with MP_APXS and MP_APR_CONFIG build options - ensure that this doesn't happen. [Stas] server_root_relative() now requires either a valid pool or an $r, $s, or $c object as a first argument. also, the returned result is a copy, protecting against cases where the pool would go out of scope before the result. [Geoffrey Young] Check the success of sysopen in tmpfile() in compat [Geoffrey Young] make sure DynaLoader is loaded before XSLoader, not only with perl 5.6.1, but always because of the issues with <Perl> sections are loaded from +Parent vhost [Stas] added ($r|$s)->is_perl_option_enabled($option_name), to test for PerlOptions + tests [Stas] On Solaris add a workaround for xs/APR/APR/Makefile.PL to build APR.so, correctly linked against apr and apr-util libs, by addding the missing -R paths corresponding to -L flags. EU::MM was adding them via LD_RUN_PATH instead of using -R, but since perl's lddflags may have -R it overrides LD_RUN_PATH. So explicitly add anything that may go into LD_RUN_PATH via -R. Also make sure that -R coming from Apache will appear first. [Brad Lanam <bll@gentoo.com>] 'make dist' now generates and picks Apache-Test/META.yml which was always reported missing, as it was included in Apache-Test/MANIFEST [Stas] fix the $r->read function to return undef on failure similar to the core perl function and make $! available for those who test for read() failures. [Stas] Make sure that pnotes are destroyed after PerlCleanup handlers are finished and not before + test. [Stas] - 1.99_12 - December 22, 2003 Restore a proper behavior of all Registry handlers, but PerlRun, not to reset %INC to forget any .pl files required during the script's execution. [Stas] <Perl> are now evaluating code into one distinct namespace per container, similar to ModPerl::Registry scripts. [Philippe M. Chiasson] Fix ModPerl::MM::WriteMakefile to use the MODPERL_CCOPTS entry from Apache::BuildConfig, as it contains some flags added by mod_perl, which aren't in perl_ccopts and ap_ccopts. [Stas] Add the implementation of Apache::Connection::local_addr and Apache::Connection::remote_addr to the Apache::compat overridable functions. [Stas] Apache::compat's implementation of APR::URI::unparse, Apache::RequestRec::finfo and Apache::RequestRec::notes is now overridable and not enabled by default. [Stas] Apache::compat no longer enables functions which collide with mp2 API by default. It provides two new functions: override_mp2_api and restore_mp2_api to override and restore the original mp2 API. [Stas] For Win32, add a .bat extension to candidates for the apxs and apr-config utilities used in Apache::Build, so that the -x file test can potentially succeed [Randy Kobes] Plug a memory leak with 'perl-script' not cleaning up the temp vars created during the override of STDIN/STDOUT to use the :Apache IO layer [Stas] libgtop config (needed for enabling MOD_PERL_TRACE=m) is now searched using the gnome packaging tools if available (pkg-config for gnome-2.x and gnome-config for gnome-1.x) [Stas] Prevent a problem where an autovivified package (stash) prevents from modperl_mgv to load the file with that package (until now it was checking whether the stash existed already and skipped the loading if that was the case). Now checking %INC and attempting to load the module. Reporting the failure only if the module has failed to load and the stash is not defined (so that it's possible to autovivify packages without loading them from an external file). [Stas] MaxClients is now overridable from the t/TEST -maxclients command line option (it was hardcoded before). [Stas] Postpone the allocation of the wbucket in filters till the moment it's needed (if at all). Since non-streaming filters aren't going to use that buffer, it's a waste to allocate/free it. [Stas] Extend the autogenerated bug report to include information about installed modules of special interest (which may aid in understanding the bug report), such as CGI.pm, Apache::Request, LWP, etc. [Stas] As the test suite keeps on growing, it takes longer time to startup. Change the main test suite timeout to 180 secs for threaded mpms and 120 secs for non-threaded ones. [Stas] use plain malloc/free to allocate filter structs, since they could be invoked hundreds of times during a single request, causing huge memory demands if the memory is allocated from the pool, which gets destroyed only at the end of a request. [Stas] Fix a compilation error in APX.xs when MP_HAVE_APR_LIBS is not defined [Fred Moyer <fred@taperfriendlymusic.org>] fix a memory leak when $filter->ctx is used [Stas] fix buglet on Win32 (and potentially other non-Unix platforms) where not all files were being installed under a relative Apache2 subdirectory when MP_INST_APACHE2 was specified [Randy Kobes]. deprecated APR::SockAddr::port_get()/APR::SockAddr::port_set() replaced with direct access to the port record via APR::SockAddr::port(). [Geoffrey Young, Stas] deprecated APR::URI::default_port_for_scheme() replaced with APR::URI::port_of_scheme() [Geoffrey Young] deprecated APR::SockAddr::ip_set() and APR::NO_TIMEOUT removed. [Geoffrey Young] Apache::MPM->is_threaded() replaces Apache::MPM_IS_THREADED [Geoffrey Young] fix "PerlSetVar Foo 0" so that $r->dir_config('Foo') returns 0, not undef [Geoffrey Young] add Apache::MPM class, along with show() and query() class methods [Geoffrey Young] add :mpmq import tag to Apache::Const [Geoffrey Young] Fix ModPerl::Registry handlers family to modify $0 only for the duration of the handler, by localizing it [Stas] Fix :Apache perlio's STDOUT to be reentrant + modules/include_subreq test [Stas] fix slurp_filename to always open the file and not try to guess whether filename has been already opened, as there is no reliable way to accomplish that [Stas] Apache->can_stack_handlers is now in Apache::compat (mp2 always can stack handlers) [Stas] add access to $r->finfo() and related APR::Finfo methods, such as $r->finfo->size(), $r->finfo->mtime(), and $r->finfo->stat() [Geoffrey Young] add :filetype import tag to APR::Const [Geoffrey Young] <Perl> sections now properly set $0 to the name of the configuration file they are in. [Philippe M. Chiasson] Apache::Status: provide a workaround for Config::myconfig() which fails under threads with (5.8.0 < perl < 5.8.3) [Elizabeth Mattijsen <liz@dijkmat.nl>] Fix Apache::Status::handler to return 'Apache::OK' [Juanma Barranquero <lektu@terra.es>] <Perl> sections now properly set filename and line number information, making error messages report the correct location. [Philippe M. Chiasson] - 1.99_11 - November 10, 2003 add a build/win32_fetch_apxs script (called within the top-level Makefile.PL) to offer to fetch and install a Win32 development version of apxs and (apr|apu)-config [Randy Kobes] rewrite $r->read() and perlio read functions to use the same function, which completely satisfies the read request if possible, on the way getting rid of get_client_block and its supporting functions which have problems and will most likely will be removed from the httpd-API in the future. Directly manipulate bucket brigades instead. [Stas] Since Apache2.pm pops /foo/Apache2 dirs to the top of @INC, it now also takes care of keeping lib and blib dirs before the system dirs, so that previously installed libraries won't get loaded instead of the currently uninstalled libraries that are under test. [Stas] When 'make test' fails we now print the info on what to do next [Stas] At the end of 'make install' we now print the info how to proceed with mod_perl and what to do in the case of post-install problems [Geoffrey Young] Adjust the source to properly work with 5.8.2's new algorithm of dynamic re-hashing of hashes on hash collision attack. [Nicholas Clark <nick@ccl4.org>, Stas]. Add a test that mounts such an attack so we can verify that we can survive this rehashing. [Scott A Crosby <scrosby@cs.rice.edu>, Nicholas Clark <nick@ccl4.org>, Tels <perl_dummy@bloodgate.com>, Mark Jason Dominus <mjd@plover.com>, Stas] Standardize the Apache::PerlSections package name to it's plural form for clarity and so that the pod gets glued in it's proper place. [Philippe M. Chiasson <gozer@cpan.org>] return value from Perl callbacks are now passed directly to Apache without additional post-call manipulations (such as assuming HTTP_OK should really be OK). [Geoffrey Young] perl 5.8.1 w/ ithreads has a bug where it reports the wrong parent pid (as if the process was never forked), provide a local workaround (+ new test). [Rafael Garcia-Suarez <rgarciasuarez@free.fr>] overridden STD* streams now can be further overridden and will be properly restored, which allows functions like $r->internal_redirect work (+add tests) [Stas] implement perlio's getarg hook, which now allows duping STD* streams overloaded by modperl [Stas] Add PerlMapToStorageHandler [Geoffrey Young] callbacks are now expected to return a meaningful value (OK, SERVER_ERROR, etc) or return via an official API (exit, die, etc). relying on implicit returns from the last call evaluated by a subroutine may result in server errors. [Stas, Geoffrey Young] in the MP_MAINTAINER mode add the -Werror compilation flag when perl v5.6.2 or higher is used, so that we don't miss compilation warnings. [Stas] fix the Makefile.PL option parser to support overriding of certain build options, in addition to appending to them (.e.g. now MP_LIBNAME is overridable) [Andrew Wyllie <wyllie@dilex.net>] make sure that connection filters won't be inserted as request filters [Stas] Prevent the 'Use of uninitialized value.' warning when ModPerl::Util::exit is used. [Stas] To make the test-suite sandbox-friendly, which break when things try to run off /tmp, use t/logs as the location of the mod_cgid socket and TMPDIR env var [Haroon Rafique <haroon.rafique@utoronto.ca>] - 1.99_10 - September 29, 2003 added Apache::CRLF, Apache::CR, and Apache::LF to Apache::Const's :platform group [Geoffrey Young] make sure that the custom pools are destroyed only once and only when all references went out of scope [Stas] ($r|$c)->add_(input|output)_filter(\&handler) now verify that the filter of the right kind is passed and will refuse to add a request filter as a connection filter and vice versa. The request filter handler is not required to have the FilterRequestHandler attribute as long as it doesn't have any other attributes. The connection filter handler is required to have the FilterConnectionHandler attribute. [Stas] fix tracing with (PerlTrace/MOD_PERL_TRACE) on win32 (the error_log filehandle was invalid after the open_logs phase) [Stas] fix a bug where %ENV vars set via subprocess_env persist across requests. (e.g. a Cookie incoming header which ends up in $ENV{HTTP_COOKIE} would persist to the next request which has no Cookie header at all). Now we unset all the %ENV vars set from subprocess_env. Improve and extend the tests to cover this bug. [Stas] it is invalid to return HTTP_INTERNAL_SERVER_ERROR or any other HTTP response code from modperl_wbucket_pass, therefore set the error code into r->status and return APR_SUCCESS. Until now response handler with messed up response headers, were causing no response what so ever to the client. LWP was assuming 500, and it was all fine, testing without LWP has immediately revealed that there was a problem in the handling of this case. [Stas] put the end to the 'Not a CODE reference' errors, instead provide an intelligent error message, hopefully telling which function can't be found. at the same time improve the tracing to include the pid/tid of the server that has encountered this problem, to make it easier to debug. [Stas] mod_perl handler must be duped for any mpm which runs within USE_ITHREAD. Until now there was a big problem with prefork mpm if any of its vhosts was using PerlOptions +(Parent|Clone) and happened to load handlers before the main server. When that was happening the main server will see that the handler was resolved (since it sees the handler struct from the vhost that loaded this module, instead of its own), which in fact it wasn't, causing the failure to run the handler with the infamous 'Not a CODE reference' error. [Stas] Make sure that the static mod_perl library is built after the dynamic (a requirement on win32) [Steve Hay <steve.hay@uk.radan.com>] Apache::Status now generates HTML 4.01 Strict (and in many cases, also ISO-HTML) compliant output. Also add a simple CSS to make the reports look nicer. [Ville Skyttä <ville.skytta@iki.fi>] APR::Pool::DESTROY implemented and tweaked to only destroy pools created via APR::Pool->new() [Geoffrey Young] $r->slurp_filename is now implemented in C. [Stas] remove support for httpd 2.0.45/apr 0.9.3 and lower. httpd 2.0.46 is now the minimum supported version. [Geoffrey Young] APR::PerlIO now accepts the pool object instead of a request/server objects, so it can be used anywhere, including outside mod_perl [Stas] when perl is built with perlio enabled (5.8+) the new PerlIO Apache layer is used, so now one can push layers onto STDIN, STDOUT handles e.g. binmode(STDOUT, ':utf8'); [Stas] add ap_table_compress() to APR::Table [Geoffrey Young] alter stacked handler interface so that mod_perl follows Apache as closely as possible with respect to VOID/RUN_FIRST/RUN_ALL handler types. now, for phases where OK ends the Apache call list (RUN_FIRST handlers, such as the PerlTransHandler), mod_perl follows suit and leaves some handlers uncalled. [Geoffrey Young] Apache::Build now tries to use the new APR_BINDIR query string to find the location of apr-config. [Stas] new package Apache::porting to make it easier to port mp1 code to mp2 [Stas] new Apache::Build methods: mpm_name(), mpm_is_threaded(). use them in the top-level Makefile.PL to require 5.8.0/ithreads if mpm requires threads. [Stas] add the missing XS methods to ModPerl::MethodLookup, add support for mp1 methods that are no longer in the mod_perl 2.0 API. [Stas] mod_perl now refuses to build against threaded mpms (non-prefork) unless perl 5.8+ w/ithreads is used [Stas] don't try to read PERL_HASH_SEED env var, where apr_env_get is not available (apr < 0.9.3) [Stas] APR.so now can be loaded and used outside mod_perl (all the way back to httpd 2.0.36) [Stas] perl 5.8.1 randomizes the hash seed, because we precalculate the hash values of mgv elements the hash seed has to be the same across all perl interpreters. So mod_perl now intercepts cases where perl would have randomize it, do the seed randomization by itself and tell perl to use that value. [Stas] fix APR::PerlIO layer to pop itself if open() has failed. [Stas] move the definition of DEFINE='-DMP_HAVE_APR_LIBS' to the top level Makefile.PL, since it overrides MY::pasthru target which makes it impossible to define local DEFINE in subdirs. [Stas] make APR perl functions work outside mod_perl: several libraries weren't linked. Also LIBS needs to receive all libs in one string. [Stas] Apache::compat: $r->cgi_env, $r->cgi_var are now aliases to $r->subprocess_env [Stas] For Win32, generate .pdb files for debugging when built with MP_DEBUG. These will get installed into the same directory as the associated dll/so libs. As well, install mod_perl.lib into MP_AP_PREFIX/lib/ for use by 3rd party modules [Randy Kobes]. Apache2.pm is now autogenerated and will adjust @INC to include Apache2/ subdirs only if built with MP_INST_APACHE2=1 [Stas] Change the default value for the argument 'readbytes' for ap_get_brigade(), from 0 to 8192. other than being useless, 0 always triggers an assert in httpd internal filters and 8192 is a good default. [Stas] Fix DynaLoader breakage when using DL_GLOBAL on OpenBSD [Philippe M. Chiasson <gozer@cpan.org>] renamed the private modperl_module_config_get_obj function to modperl_module_config_create_obj, since the logic creates the object but doesn't dig it out if it already exists. then, moved logic from mpxs_Apache__Module_get_config into a new public C function that reused the old name, modperl_module_config_get_obj. while Apache::Module->get_config exists as a wrapper to return the object to Perl space, now C/XS folks can also access the object directly with the public function. [Geoffrey Young] Apache::Reload: add a new config variable: ReloadConstantRedefineWarnings to optionally shut off the constant sub redefine warnings [Stas] implement $parms->info. directive handlers should now be complete. [Geoffrey Young] MP_GTOP now works with modern GCC [Philippe M. Chiasson <gozer@cpan.org] add missing dependencies to Apache::PerlSections [Geoffrey Young] $r->get_client_block is bogus in httpd-2.0.45 (and ealier), as it can't handle EOS buckets arriving in the same bucket brigade with data. so rewrite ModPerl::Test::read_post to use an explicit read through all bucket brigades till it sees eos and then it stops. The code is longer but it works correctly. [Stas] an attempt to resolve the binary compatibility problem in PerlIOAPR_seek API when APR_HAS_LARGE_FILES=0 [Stas] perl 5.8.0 forgets to export PerlIOBase_noop_fail, causing problems on win32 and aix. reimplement this function locally to solve the problem. APR::PerlIO should now be useful on win32 and aix [Stas] implement DECLINE_CMD and DIR_MAGIC_TYPE constants [Geoffrey Young] allow init filter handlers to call other methods than just $f->ctx [Stas] Fix Apache::Reload to gracefully handle the case with empty Touchfiles [Dmitri Tikhonov <dmitri@netilla.com>] PerlRequire entried should be executed before PerlModule entries in VirtualHost containers, just like in the base server [Stas] - 1.99_09 - April 28, 2003 $filter->seen_eos() now accepts 1/0 to set/unset the flag so streaming filters can control the sending of EOS. [Stas] support systems where apr header files are installed separately from httpd header files ["Andres Salomon" <dilinger@voxel.net>] implement init filter handlers + tests [Stas] improving ModPerl::MethodLookup to: - handle more aliased perl XS functions - sort the methods map struct so one can use the autogenerated map as is - add lookup_module, tells which methods are defined by a given module - add lookup_object, tells which methods can be called on a given object - provide autoexported wrappers print_method, print_module and print_object for easy deployment from the command line [Stas] add Perl glue for functions: APR::Socket::timeout_get APR::Socket::timeout_set [Stas] similar to SetEnv, upcase the env keys for PassEnv on platforms with caseless env (e.g. win32) [steve.sparling@ps.ge.com] Add a backcompat wrapper for $r->notes (mp2 supports only the APR::Table API) [Stas] Add a script mp2bug and a target 'make bugreport', so people can use bugreporting during the build and after modperl is installed. [Stas] Add a script mp2doc as a replacement for perldoc (due to 2.0 modules living under Apache2, which won't be looked at by perldoc). [Stas] Add a constant APR::PerlIO::PERLIO_LAYERS_ARE_ENABLED and use it in tests [Stas] Require perl 5.8 or higher when building mod_perl on OSes requiring ithreads (e.g., win32), since 5.6.x ithreads aren't good. [Stas] MP_COMPAT_1X=0 now can be passed to Makefile.PL to disable mp1-back-compat compile-time features + adjust tests. [Stas] <SERVER_ROOT> and <SERVER_ROOT>/lib/perl are now added to @INC, just like mod_perl 1.0 with MP_COMPAT_1X=1 (currently enabled by default). [Stas] The Perl-5.8.0 crypt() workaround is now used only if 5.8.0 is used, since 5.8.1-tobe/5.9.0-tobe(blead-perl) won't compile with it. [Geoffrey Young] new directives PerlSetInputFilter and PerlSetOutputFilter, which are the same as SetInputFilter and SetOutputFilter respectively, but allow to insert non-mod_perl filters before, between or after mod_perl filters. + tests [Stas] improved filters debug tracing [Stas] implement $filter->remove (filter self-removal) + tests [Stas] remove the second-guessing code that was trying to guess the package name to load from the handler configuration (by stripping ::string and trying to load the package). fall back to using explicit PerlModule to load modules whose handler sub name is not called 'handler' + adjust tests. [Stas] set the magic taint flags before modules are required [Stas] make sure to set base server's mip before any of the PerlRequire/PerlModule directives are called, since they may add add_config(), which in turn runs Perl sections or PerlLoadModule, which may need the scfg->mip to be set. [Stas] ModPerl::MM is now ready to be used in Makefile.PL of 3rd party mod_perl modules [Stas and Geoff] fix a segfault caused by PerlModule in $s->add_config, due to setting the MP_init_done flag before init was done + add test [Stas] adjust the generated Makefile's to properly build on aix (tested on powerpc-ibm-aix5.1.0.0) [Stas] the build now automatically glues the .pod files to the respective .pm files, so one can use perldoc on .pm files to read the documentation. [Stas] provide a workaround for ExtUtils::MakeMaker::mv_all_methods, so ModPerl::BuildMM and ModPerl::MM can override EU::MM methods behind the scenes. [Stas] adding ModPerl::BuildMM, which is now used for building mod_perl. ModPerl::MM will be used for 3rd party modules. ModPerl::BuildMM reuses ModPerl::MM where possible. [Stas] drop the glue code for apr_generate_random_bytes, since it's not available on all platforms. [Stas] Since non-threaded mpms don't use tipools in mips, don't create and destroy them. [Stas] re-use the workaround for glibc/Perl-5.8.0 crypt() bug for the main/vhost base perl interpreters as well. This solves the problem for the buggy glibc on RH8.0. [Stas] send_cgi_header now turns the header parsing off and can send any data attached after the response headers as a response body. [Stas] move the check that print/printf/puts/write/etc are called in the response phase into the functions themselves so 1) we can print a more useful error message 2) this check is not always needed in modperl_wbucket_write, when called internally, so we save some cycles. [Stas] add checks that print/printf/puts/write/etc are called in the response phase. move the check into the functions themselves so we can print a more useful error message [Stas] 'make install' now installs mod_perl*h files under httpd's include tree [Stas] When PerlOptions +ParseHeaders is an effect, the CGI headers parsing won't be done if any *mod_perl* handler before and including the response phase, sets $r->content_type. (similar behavior to mp1's send_http_header() [Stas] Registry: make sure that $r is not in the scope when the script is compiled [Stas] $Apache::Server::SaveConfig added. When set to a true value, will not clear the content of Apache::ReadConfig:: once <Perl > sections are processed. [Philippe M. Chiasson <gozer@cpan.org] Apache::compat: support 1.0's Apache->push_handlers, Apache->set_handlers and Apache->get_handlers [Stas] revamp the code handling output flushing and flush bucket sending. Namelly modperl_wbucket_flush and modperl_wbucket_pass now can be told to send a flush bucket by themselves, attaching it to the data bb they are already sending. This halfs the number of output filter invocations when the response handler flushes output via $| or rflush. adjust tests, which were counting the number of invocations. [Stas] move ModPerl::RegistryCooker to use a hash as object (similar to mp1), to make it easier to subclass. [Nathan Byrd <nathan@byrd.net>] $r->rflush has to flush internal modperl buffer before calling ap_rflush, so implement rflush, instead of autogenerating the xs code for it. [Stas] fix the input filters handling of DECLINED handlers (consume the data, on behalf of the handler) + tests [Stas] fix the code that autogenerates modperl_largefiles.h not to define macros matching m/^-/ (was a problem on aix-4.3.3) [Stas] $Apache::Server::StrictPerlSections added. When set to a true value, will abort server startup if there are syntax errors in <Perl > sections [Philippe M. Chiasson <gozer@cpan.org] Use Win32::GetShortPathName for Win32 to handle cases when the supplied MP_AP_PREFIX contains spaces. [Randy Kobes] Bump up ThreadsPerChild for mpm_winnt in httpd.conf, which seems to help avoid server startup problems when running the tests. [Randy Kobes] implement a new helper module ModPerl::MethodLookup to help figure out which module should be loaded when a certain method is reported to be missing. [Stas] fix a bug for apr < 0.9.3, where it segfaults in apr_uri_unparse, if hostname is set, but not the scheme. In case the hostname is defined but scheme is not Apache::compat will default to the 'http' scheme, whereas APR::URI::unparse provides no default [Stas] move $r->send_http_header implementation to Apache::compat. This allows the 1.0 code to run unmodified if $r->send_http_header is called before the response change. we already handle the check whether content_type was set, when deciding whether the headers are to be parsed inside modperl_wbucket_pass(). [Stas] fixes to Apache::compat. make $r->connection->auth_type interface with r->ap_auth_type. make both $r->connection->auth_type and $r->connection->user writable. [Geoffrey Young] Open up r->ap_auth_type, making it possible to write custom authen handlers that don't rely on Basic authentication or it's associated ap_* functions. [Geoffrey Young] add Apache::Bundle2 [Stas] Apache::Reload now supports the PerlPreConnectionHandler invocation mode, so connection filter and protocol modules can be automatically reloaded on change. [Stas] implement Apache::current_callback + $r->current_callback goes into Apache::compat, since now we have a way too many callbacks unrelated to $r [Stas] Add Apache::compat methods: $r->connection->auth_type and $r->connection->user (requires 'PerlOptions +GlobalRequest') + tests [Stas] Several issues resolved with parsing headers, including making work the handlers calling $r->content_type() and not sending raw headers, when the headers scanning is turned on. Lots of tests added to exercise different situations. [Stas] warn on using -T in ModPerl::Registry scripts when mod_perl is not running with -T [Stas] perl 5.7.3+ has a built-in ${^TAINT} to test whether it's running under -(T|t). Backport ${^TAINT} for mod_perl running under 5.6.0-5.7.3, (what used to be $Apache::__T. $Apache::__T is available too, but deprecated. [Stas] add PerlChildExitHandler implementation [Stas] add PerlCleanupHandler implementation + test [Stas] die when Apache->request returns nothing ('PerlOptions -GlobalRequest' or 'SetHandler modperl') [Stas] New Apache::Directive methods: as_hash(), lookup() + tests + docs [Philippe M. Chiasson <gozer@cpan.org>] Stacked handlers chain execution is now aborted when a handler returns something other than OK or DECLINED [Stas] make $filter->read() in input streaming filters, use the same number of arguments as read() in the output filters. [Stas] Implement $r->add_input_filter and $r->add_output_filter $c->add_input_filter and $c->add_output_filter and add tests [Stas] Skip the handler package::func resolving error, only when the error message matches "Can't locate .*? in @INC", rather than just "Can't locate", since there are many other errors that start with that string. [Stas] the top level 'make test' now descends into the ModPerl-Registry dir to run 'make test' there [Stas] All response functions are now returning status and the callers check and croak on failure or progate them further. [Stas] OPEN, CLOSE and FILENO implementation for Apache::RequestRec [Stas] Another fix for the handling of the return status in ModPerl::RegistryCooker: reset the status to the original one only if it was changed by the script, otherwise return the execution status [Stas] prevent segfault in $r->print / $filter->print (in output filter) and related functions when they are called before the response phase [Stas] prevent segfault in send_http_header when it's called before the response phase [Stas] input stream filtering support was added + tests (plus renaming filter tests so we can know from the test name what kind of filter is tested) [Stas] Add proper support for mis-behaved feeding filters that send more than one EOS bucket in streaming filters + test. [Stas] prevent a segfault when push_handlers are used to push a handler into the currently phase and switching the handler (perl-script/modperl) + tests [Stas] Add $filter->seen_eos to the streaming filter api to know when eos has been seen, so special signatures can be passed and any data stored in the context flushed + tests. [Stas] Add $filter->ctx to maintain state between filter invocation + tests [Stas] Request input and output filters are now getting the EOS bucket, which wasn't passed through before. Now the context can be flushed on EOS. [Stas] - 1.99_08 - January 10, 2003 Correct ModPerl::RegistryCooker to reset %INC, after compile for .pl files which don't declare the package + add tests to check that [Stas] Log the real error message when Foo::Bar::sub_name fails to resolve, because of a problem in Foo::Bar, when Foo::Bar *was* found [Stas] Add PerlPreConnectionHandler support in Apache::Test [Stas] Enable PerlPreConnectionHandler [Stas] Support the Host: request header in Apache::TestClient [Stas] restore the ModPerl::RegistryLoader::new() method for backwards compatibility [Stas] port the support for NameWithVirtualHost in ModPerl::RegistryCooker and ModPerl::RegistryLoader [Stas] fix the handling of the return status in ModPerl::RegistryCooker, add a test to verify that [Stas] under non-threaded perl need to check whether mod_perl is running, when modperl_vhost_is_running check is done. [Stas] fix $r->read to read all the requested amount of data if possible, adjust the test TestApache::read to verify that [Stas] fix the method content() in Apache::compat to read a whole request body. same for ModPerl::Test::read_post. add tests. [Stas] Adjust the reverse filter test to work on win32 (remove trailing \r) [Randy Kobes <randy@theoryx5.uwinnipeg.ca>] Strongly suggest win32 users to upgrade to 5.8.0, if they run 5.6.x [Randy Kobes <randy@theoryx5.uwinnipeg.ca>] When installing the mod_perl shared object, first need to check whether the directory 'modules' already exists, and create it if not. [Randy Kobes <randy@theoryx5.uwinnipeg.ca>] Add a capability to tune the test configuration sections ordering in Apache::TestConfigPerl [Stas Bekman] fix the complaining code about late PerlSwitches when PerlLoadModule is used before it [Stas Bekman] add various tests that exercise PerlLoadModule and vhosts [Stas Bekman] handle correctly PerlLoadModules (directives) with vhosts: - handle gracefully cases when things are undef/NULL - handle the case when scfg==NULL, by stealing the base_servers's config [Stas Bekman] make mod_perl work with vhosts when the server is started prior to post_config(): - call modperl_init_globals as early as possible, because the main server record is needed during the configuration parsing, for perlloadmodule and vhosts - also make sure that we are using a real base_server, when dealing with modperl_init, and if not retrieve it from the global record [Stas Bekman] prevent segfaults, when scfg is NULL in Apache::Module->get_config(); [Stas Bekman] ensure that a core file is a file indeed, before complaining [Philippe M. Chiasson <gozer@cpan.org>] add $r->as_string [Geoffrey Young] add backcompat vars: $Apache::Server::CWD and $Apache::Server::AddPerlVersion [Stas Bekman] env var MOD_PERL_TRACE is working again [Stas Bekman] add a new test TestDirective::perlloadmodule2, which performs a more evolved merging. [Stas Bekman] fix Apache::TestConfigPerl under mod_perl 1.0, need to require mod_perl.pm before using $mod_perl::VERSION [Geoffrey Young] add an Apache::SIG backcompat stub to Apache::compat [Stas Bekman] fix the Apache::TestConfigPerl's run_apache_test_config() function where test packages are scanned for the magic APACHE_TEST_CONFIGURE and if found get require()'d. Apache2 needs to be run for mod_perl 2.0. [Stas Bekman] move the custom mod_perl 2.0 configuration bits out of the ModPerl::TestRun, where they don't belong, into a special config file which is included at the very end of httpd.conf [Stas Bekman] extend Apache::Test to allow extra configuration files to be included at the very end of httpd.conf, when everything was loaded and configured [Stas Bekman] resolve a segfault in Apache::Module::get_config() for the edge case when the package name is bogus. [Stas Bekman] Apache::Reload: add support for watching and reloading modules only in specified sub-dirs [Harry Danilevsky <harry@deerfieldcapital.com>] enable APR.pm's linking for apr 0.9.2 and higher, which uses a new lib naming scheme, such as libapr-0.so.0.9.2, only if apr-config and apu-config scripts exist. [Stas Bekman] define IoTYPE_RDONLY/IoTYPE_WRONLY for perl-5.6.0 so the project compiles again under 5.6.0 [Stas Bekman] allow output streaming filters to append data to the end of the stream [Stas Bekman] fixes to compile with ActivePerl 5.8 beta [Randy Kobes <randy@theoryx5.uwinnipeg.ca>] fix for directive handlers within vhosts using threaded MPMs [Stephen Clouse <stephenc@theiqgroup.com>] fix <IfDefine MODPERL2> support default AuthType to Basic if not set in $r->get_basic_auth_pw() [Philippe M. Chiasson <gozer@cpan.org>] workaround glibc/Perl-5.8.0 crypt() bug (seen with threaded MPMs) fix delete $ENV{$key} bug fix parse_args compat method to support non-ascii characters and tr/+/ / [Walery Studennikov <despair@sama.ru>] fix post_connection compat method to behave as it did in 1.x [Geoffrey Young] add support for setting $r->auth_name and $r->auth_type [Philippe M. Chiasson <gozer@cpan.org>] add Apache->httpd_conf compat method [Philippe M. Chiasson <gozer@cpan.org>] add default <Perl> handler Apache::PerlSection. make <Perl> blocks to be EXEC_ON_READ so apache does not parse the contents. add "Perl" directive for general use and for which <Perl> sections are stuffed into. [Philippe M. Chiasson <gozer@cpan.org>] rename overloaded LoadModule directive to PerlLoadModule and adjust the test naming - 1.99_07 - September 25, 2002 fix =pod directive test config problem [Philippe M. Chiasson <gozer@cpan.org>] - 1.99_06 - September 25, 2002 add support for pod directives (=pod,=back,=cut) and __END__ directive [Philippe M. Chiasson <gozer@cpan.org>] tweaks to support Test.pm 1.21 [Philippe M. Chiasson <gozer@cpan.org>] add $r->add_config method to add dynamic configuration at request time add Apache::DIR_MAGIC_TYPE constant add support for directive handlers fix source_scan to run with current httpd/apr add Apache::Server->add_config method to add dynamic configuration at server startup time add Apache::Directive->to_string method add support for pluggable <Perl> sections fix compilation probs with get_remote_host() that had a wrong prototype [Stas Bekman] Apache::SubProcess now has a manpage [Stas Bekman] fix the Apache::SubProcess tests to work with perlio-disabled Perl [Stas Bekman] fix the filehandle leak in APR::PerlIO (both perlio-disabled and perlio-enabled Perl) [Stas Bekman] remove dup() when converting filehandles from apr_file_t to FILE* under perlio-disabled Perl (APR::PerlIO) [Stas Bekman] fix compilation if apache/apr do not have thread support - 1.99_05 - August 20, 2002 fix PerlOptions +ParseHeaders to only parse once per-request add external redirects Registry tests [Stas Bekman] get rid of the compat layer in ModPerl-Registry [Stas Bekman] ModPerl::RegistryLoader is now fully operational and tested [Stas Bekman] Registry method handlers are now working [Stas Bekman] core Registry packages all compile the scripts into ModPerl::RegistryROOT:: namespace and cache them in %ModPerl::RegistryCache. Both overridable by the sub-classes. [Stas Bekman] compat tests were split into groups by functionality, send_fd test moved to compat. [Stas Bekman] added $c->get_remote_host and a compat wrapper $r->get_remote_host + tests [Stas Bekman] adjust the build system to support mod_perl build from the source tree. [Stas Bekman] ModPerl::RegistryCooker syncs with mod_perl 1.0's registry: - prototypes defined checks in flush_namespace [Yair Lenga <yair.lenga@citigroup.com>] - set error-notes on error [Geoffrey Young] - preserve status in Registry scripts [Geoffrey Young] apr_table_t is now an opaque type, use apr_table_elts() to get the array record [Stas Bekman] add support for redirects with PerlOptions +ParseHeaders backport to 2.0.35 adjust to filter register api change added APR::ThreadMutex module - 1.99_04 - June 21, 2002 various APR PerlIO updates [Stas Bekman] stop using an apr_pool_t to allocate items for the interpreter pool, safer for threaded MPMs and prevents "leaks" when interpreters are removed from due to PerlInterpMax{Requests,Spare} implement modperl_sys_dlclose() to avoid apr/pool overhead/thread issues get the -DPERL_CORE optimization working again PERL_SET_CONTEXT to the parent interpreter when cloning interpreters at request time, else dTHX might be NULL during clone in the given thread, which would crash the server. - 1.99_03 - June 15, 2002 win32 fix for the global Apache->request object to make sure it uses the thread local storage mechanism add a reference count mechanism to interpreters for use in threaded MPMs, so if APR::Pool cleanups have been registered the interpreter is not putback into the interpreter pool until all cleanups have run. unbuffer STDERR (by turning on autoflush by default) add support for Perl*Handler +Apache::Foo fix open_logs,post_config,child_init hooks to run in the proper order adjust to apr_bucket_type_t changes in 2.0.37-dev [Mladen Turk <mturk@mappingsoft.com>] add MODPERL2 config define, as if the server had been started with -DMODPERL2 compat additions and fixes: $r->lookup_{file,uri}, $r->is_main, Apache->define added compat for Apache::log_error [Stas Bekman] - 1.99_02 - June 1, 2002 pass the PATH and TZ environment variables at startup by default as 1.xx did fix ModPerl::Util::exit segv with 5.6.0 no longer support 5.7.x perl development versions added compat for Apache::Table->new various fixes to compile/run on darwin server-scope Perl{Set,Pass}Env config now propagated to %ENV at startup use SvOK(sv) instead of sv == &PL_sv_undef to detect undef values in xs [Stephen Clouse <stephenc@theiqgroup.com>] complete Apache::Util 1.x compat added Apache::MPM_IS_THREADED constant added compat function for Apache::Constants::SERVER_VERSION added Apache::Constants::export stub for compat added noop stubs for timeout functions removed from 2.0: $r->{soft,hard,reset,kill}_timeout turned on PerlOptions +GlobalRequest by default for perl-script handler unless it is explicitly turned off with PerlOptions -GlobalRequest added APR::OS::thread_current function added support for 1.x $r->subprocess_env functionality added support for $r->push_handlers(PerlHandler => ...) added support for $r->proxyreq to detect proxy requests $r->content_type($val) now calls ap_set_content_type underneath add the err_header_out() wrapper to Apache::compat + corresponding tests [Stas Bekman] fix $r->dir_config lookup of values set in the server context added Apache::REDIRECT shortcut constant various fixes for method handlers use Apache::ServerUtil in Apache::compat so Apache->server works in compat mode [Dave Rolsky <autarch@urth.org>] add Apache::Util::unescape_uri alias to Apache::unescape_url in Apache::compat change Apache::unescape_url to return the escaped url as 1.x does disabled term coloring by default (enable with env var APACHE_TEST_COLOR=1) fix for APR::IpSubnet->new to check return status apr_ipsubnet_create enabled APR::SockAddr module turn on binmode for filehandle used in $r->send_fd get MP_{TRACE,DEBUG} Makefile.PL options working on win32 various fixes to build/run with bleedperl various fixes for win32 to get make test passing moved constuct_{url,server} methods to Apache::URI module implement Apache::URI::parse in Apache::compat give Perl*Handlers precedence over other handlers by using APR_HOOK_FIRST rather than APR_HOOK_LAST workaround bug in 5.6.1 when XSLoader loads DynaLoader, wiping out any dl handles it had been keeping track of. tidy up test to run standalone (without modperl test config) [Stas Bekman] override T_PTROBJ INPUT typemap to croak if object is not a blessed reference, to prevent possible segv from e.g. Apache::Server->process apr_lock.h is gone; disable APR::Lock for the moment enabled the Apache::Process module fix ModPerl::Util::exit to clear $@ before calling Perl_croak cut down on some build noise fix 'PerlOptions +GlobalRequest' when used within subrequests get rid of some "subroutine redefined" warnings in ModPerl::MM that show up with newer bleedperls. a few fixes for Apache::compat [Dave Rolsky <autarch@urth.org>] - 1.99_01 - April 6, 2002 First public release of mod_perl-2.0-tobe. 1 POD Error The following errors were encountered while parsing the POD: - Around line 691: Non-ASCII character seen before =encoding in 'Förtsch'. Assuming ISO8859-1
https://metacpan.org/changes/distribution/mod_perl
CC-MAIN-2016-36
refinedweb
15,514
52.9
hi, i was trying to write data to the end of a data file. i first read till the end of file and THEN tried write to the file. it compiles while,reads well..but wont write the data this is my code hope some 1 can correct my error. thanxhope some 1 can correct my error. thanxCode:#include <iostream> #include <string> #include <fstream> using namespace std; int main(void){ fstream myfile ("a.dat"); string line; //read and go to end of file while (! myfile.eof() ){ getline(myfile,line); cout<<line<<endl; } /*write to file*/ char *line1="testing line1"; char *line2="testing line2"; myfile.write(line1,15); myfile.write(line2,15); }
https://cboard.cprogramming.com/cplusplus-programming/90506-read-write-file.html
CC-MAIN-2017-26
refinedweb
111
76.62
IRC log of xmlsec on 2008-10-07 Timestamps are in UTC. 13:44:19 [RRSAgent] RRSAgent has joined #xmlsec 13:44:19 [RRSAgent] logging to 13:44:21 [trackbot] RRSAgent, make logs member 13:44:21 [Zakim] Zakim has joined #xmlsec 13:44:23 [trackbot] Zakim, this will be XMLSEC 13:44:23 [Zakim] ok, trackbot; I see T&S_XMLSEC()10:00AM scheduled to start in 16 minutes 13:44:24 [trackbot] Meeting: XML Security Working Group Teleconference 13:44:24 [trackbot] Date: 07 October 2008 13:44:48 [fjh] Chair: Frederick Hirsch 13:45:37 [fjh] Agenda: 13:45:44 [fjh] Regrets: Scott Cantor 13:54:31 [fjh] Regrets: Scott Cantor, John Wray 13:54:40 [brich] brich has joined #xmlsec 13:55:02 [fjh] zakim, who is here? 13:55:03 [Zakim] T&S_XMLSEC()10:00AM has not yet started, fjh 13:55:04 [Zakim] On IRC I see brich, Zakim, RRSAgent, fjh, klanz2, trackbot 13:55:30 [Zakim] T&S_XMLSEC()10:00AM has now started 13:55:32 [smullan] smullan has joined #xmlsec 13:55:37 [Zakim] + +1.512.401.aaaa 13:56:09 [fjh] zakim, what is the code? 13:56:09 [Zakim] the conference code is 965732 (tel:+1.617.761.6200 tel:+33.4.89.06.34.99 tel:+44.117.370.6152), fjh 13:56:19 [brich] zakim, aaaa is brich 13:56:19 [Zakim] +brich; got it 13:56:19 [tlr] tlr has joined #xmlsec 13:56:31 [Zakim] +Frederick_Hirsch 13:56:47 [fjh] zakim, who is here? 13:56:47 [Zakim] On the phone I see brich, Frederick_Hirsch 13:56:48 [Zakim] On IRC I see tlr, smullan, brich, Zakim, RRSAgent, fjh, klanz2, trackbot 13:57:05 [Zakim] + +1.617.876.aabb 13:57:30 [smullan] zakim, aabb is smullan 13:57:30 [Zakim] +smullan; got it 13:57:31 [tlr] frederick, I might be 5-10min late 13:57:33 [tlr] need to get something done between the calls 13:57:50 [Zakim] +??P14 13:58:12 [fjh] zakim, P14 is gerald 13:58:14 [Zakim] sorry, fjh, I do not recognize a party named 'P14' 13:58:22 [fjh] zakim, ??P14 is gerald 13:58:22 [Zakim] +gerald; got it 13:58:30 [fjh] zakim, who is here? 13:58:30 [Zakim] On the phone I see brich, Frederick_Hirsch, smullan, gerald 13:58:31 [Zakim] On IRC I see tlr, smullan, brich, Zakim, RRSAgent, fjh, klanz2, trackbot 13:58:34 [CGI624] CGI624 has joined #xmlsec 13:59:32 [fjh] 14:00:01 [CGI624] 14:00:05 [fjh] zakim, CGI624 is gerald 14:00:06 [Zakim] sorry, fjh, I do not recognize a party named 'CGI624' 14:00:09 [magnus] magnus has joined #xmlsec 14:00:26 [Zakim] +??P18 14:00:29 [csolc] csolc has joined #xmlsec 14:00:36 [Zakim] + +1.303.229.aacc 14:00:41 [CGI080] CGI080 has joined #xmlsec 14:00:49 [fjh] zakim, ??P18 is rdmiller 14:00:49 [Zakim] +rdmiller; got it 14:01:05 [CGI080] Zakim: CGI080 is Gerald 14:01:29 [Norm] Norm has joined #xmlsec 14:01:33 [CGI080] zakim, CGI080 is Gerald 14:01:33 [Zakim] sorry, CGI080, I do not recognize a party named 'CGI080' 14:01:36 [pdatta] pdatta has joined #xmlsec 14:01:42 [jcruella] jcruella has joined #xmlsec 14:01:54 [Zakim] + +1.650.879.aadd 14:01:56 [Zakim] + +5aaee 14:02:06 [csolc] zakim, +5aaee is csolc 14:02:14 [Zakim] +csolc; got it 14:02:16 [fjh] zakim, aadd is magnus 14:02:23 [bhill] bhill has joined #xmlsec 14:02:29 [Zakim] +magnus; got it 14:02:51 [Zakim] +Norm 14:02:54 [Zakim] +Hal_Lockhart 14:02:59 [Zakim] +??P3 14:03:00 [hal] hal has joined #xmlsec 14:03:12 [CGI080] zakim, who is here 14:03:16 [Zakim] CGI080, you need to end that query with '?' 14:03:26 [CGI080] zakim, who is here? 14:03:34 [fjh] zakim, who is here? 14:03:35 [Zakim] +??P9 14:03:41 [Zakim] On the phone I see brich, Frederick_Hirsch, smullan, gerald, rdmiller, +1.303.229.aacc, magnus, csolc, Norm, Hal_Lockhart, ??P3, ??P9 14:03:41 [tlr] zakim, call thomas-skype 14:03:51 [jcruella] zakim, jcruella is myhandle 14:03:54 [bhill] zakim aacc is bhill 14:03:55 [Zakim] On the phone I see brich, Frederick_Hirsch, smullan, gerald, rdmiller, +1.303.229.aacc, magnus, csolc, Norm, Hal_Lockhart, ??P3, ??P9 14:03:55 [tlr] zakim, I am thomas 14:03:58 [tlr] zakim, mute me 14:04:14 [Zakim] ok, tlr; the call is being made 14:04:16 [Zakim] +Thomas 14:04:19 [tlr] zakim, mute ??P3 14:04:20 :04:24 [tlr] klanz, say something 14:04:27 [Zakim] sorry, jcruella, I do not recognize a party named 'jcruella' 14:04:31 [fjh] zakim, who is here? 14:04:31 [Zakim] ok, tlr, I now associate you with Thomas 14:04:35 [tlr] zakim, ??P3 is klanz 14:04:35 [Zakim] Thomas should now be muted 14:04:50 [tlr] zakim, ??P3 is gerald 14:04:53 [tlr] zakim, unmute ??P3 14:04:54 [CGI080] Scribe: Gerald Edgar 14:04:58 [Zakim] ??P3 should now be muted 14:05:04 [fjh] TOPIC: XProc discussion with Norm Walsh 14:05:06 [tlr] ScribeNick: CGI080 14:05:06 [Zakim] On the phone I see brich, Frederick_Hirsch, smullan, gerald, rdmiller, +1.303.229.aacc, magnus, csolc, Norm, Hal_Lockhart, ??P3 (muted), ??P9, Thomas (muted) 14:05:11 [jcruella] zakim, ??P4 is jcruella 14:05:12 [Zakim] +klanz; got it 14:05:20 [CGI080] Zakim, who is here? 14:05:21 [Zakim] I already had ??P3 as klanz, tlr 14:05:23 [Zakim] sorry, tlr, I do not know which phone connection belongs to ??P3 14:05:33 [Zakim] +[Oracle] 14:05:37 :05:43 [Zakim] I already had ??P4 as Norm, jcruella 14:05:46 [Zakim] On the phone I see brich, Frederick_Hirsch, smullan, gerald, rdmiller, +1.303.229.aacc, magnus, csolc, Norm, Hal_Lockhart, klanz (muted), ??P9, Thomas (muted), [Oracle] 14:05:52 [CGI080] Norm Walsh - XML processing group 14:05:52 [pdatta] zakim, Oracle is pdatta 14:06:00 :06:03 [Zakim] +pdatta; got it 14:06:25 [bal] bal has joined #xmlsec 14:07:02 [Zakim] + +1.206.726.aaff 14:07:02 [CGI080] what is the impliucation of XML processing on encryption. 14:07:56 [CGI080] xml processing there were aspects of security, but that was taken out. the recognition of the need was the propt to contact this (the XMLSEC) gorup. 14:08:33 [CGI080] with XML processing, there are various operations in various orders. 14:08:45 [brich] 14:10:12 [CGI080] the goal is ot produce a language that enables people to define a sequences of preocesses. composing processes from other proccesses. 14:10:36 [bhill] zakim, aacc is bhill 14:10:36 [Zakim] +bhill; got it 14:11:30 [CGI080] there are various steps available 14:11:54 [Zakim] -Thomas 14:11:57 [CGI080] (examples of steps given) 14:11:59 [tlr] zakim, call thomas-skype 14:11:59 [Zakim] ok, tlr; the call is being made 14:12:01 [Zakim] +Thomas 14:12:02 [tlr] zakim, I am thomas 14:12:02 [Zakim] ok, tlr, I now associate you with Thomas 14:12:17 [CGI080] Zakim, I am Gerald 14:12:17 [Zakim] ok, CGI080, I now associate you with gerald 14:12:39 [klanz2] 14:12:54 [jcruella] zakim, ??P9 is jcruella 14:12:54 [Zakim] +jcruella; got it 14:13:01 [CGI080] (discussion on parallel operations) 14:13:04 [Zakim] +[Microsoft] 14:14:33 [CGI080] a reference process model for xml signatures, to process a document , this is perhaps similar to an xproc pipeline. 14:15:40 [kyiu] kyiu has joined #xmlsec 14:15:56 [kyiu] zakim, who is here? 14:15:56 [Zakim] On the phone I see brich, Frederick_Hirsch, smullan, gerald, rdmiller, bhill, magnus, csolc, Norm, Hal_Lockhart, klanz (muted), jcruella, Thomas, pdatta, bal (muted), [Microsoft] 14:15:59 [Zakim] On IRC I see kyiu, bal, hal, bhill, jcruella, pdatta, Norm, CGI080, csolc, magnus, tlr, smullan, brich, Zakim, RRSAgent, fjh, klanz2, trackbot 14:16:10 [CGI080] (discussion on transformation and processing) 14:17:03 [klanz2] XMLDSig Transfroms chains defines that Inputs and outputs are either, node-set data or octet streams, beside that interoperability is the limit and that's a rather hard limit ... 14:18:14 [CGI080] Xproc has an extensability model. example of RDF where they can define the required steps 14:19:01 [CGI080] a security extention defining the steps for security could be done 14:19:46 [CGI080] 2 kinds of steps - atomic e.g. XSLT and compound, consistanting of other steps. 14:20:19 [CGI080] enquption and decryption could be deinfed as compound steps. 14:20:35 [CGI080] s/enquption/encryption/ 14:21:14 [CGI080] the XPROC courl at first saw security as atomic steps, but perhaps they were more complex 14:21:28 [CGI080] s/courl/group/ 14:22:19 [CGI080] is it that people adopting xproc would have to redo their processes? 14:23:38 [CGI080] Is there open-source available? 14:23:39 [tlr] q? 14:23:50 [CGI080] yes - e.g. "calabash" 14:23:57 [klanz2] 14:24:10 [CGI080] they are attempting to make this "steamable" 14:24:50 [CGI080] there is no requirement for streamable. but a lot of the steps can steam. 14:24:52 [tlr] zakim, who is muted? 14:24:52 [Zakim] I see klanz, bal muted 14:24:56 [tlr] zakim, mute me 14:24:56 [Zakim] Thomas should now be muted 14:25:00 [CGI080] Xpath as a performance issue. 14:25:34 [CGI080] there is flexability to use XPath 1 or XPath 2 14:26:27 [CGI080] most of the actions people use can use xpath 1 or xpath 2 14:26:31 [klanz2] q+ 14:26:43 [fjh] ack klanz 14:27:12 [CGI080] is there a requirement for fidelity or "rountripping" mode? 14:27:23 [CGI080] what flows in the pipeline are infosets. 14:27:41 [CGI080] rather than a sequence of byes. 14:27:52 [CGI080] s/byes/bytes/ 14:28:10 [fjh] norm notes c14n would be serialization step, end of pipeline 14:28:32 [CGI080] the only step requiring the input and the out being the same is the identity step. 14:29:26 [fjh] norm notes implementation defined what done with document before handed to piipeline 14:29:56 [CGI080] schma validation is a step that might be done before handing the infoset to the pipeline. 14:30:40 [fjh] norm notes XPath serialization 14:31:15 [CGI080] all the steps have serialization options. 14:32:44 [CGI080] providing security steps to XProc will also entail specifying the required security options 14:33:12 [CGI080] what is the difficulty for programmers to use this? 14:33:18 [klanz2] <klanz2> Just, FYI ... 14:33:18 [klanz2] <klanz2> ... then the additional serialization parameters MAY affect 14:33:18 [klanz2] the output of the serializer to the extent (but only to the extent) 14:33:18 [klanz2] that this specification leaves the output implementation-defined or 14:33:18 [klanz2] implementation-dependent. ... 14:33:30 [klanz2] from our last minutes: 14:33:33 [CGI080] will people learn to glue the primatives together? 14:34:26 [CGI080] to use a pipeline rather than using a library. to make this as easy as an XSLT sylesheet 14:34:57 [CGI080] the goal is to specify a standard XProc pipeline 14:37:50 [klanz2] q+ 14:38:10 [CGI080] [norm] his view is that security is composed of compud steps. 14:38:28 [CGI080] s/compud/compund/ 14:38:40 [fjh] norm notes may want compound step plus primatives 14:38:42 [fjh] ack klanz 14:38:48 [hal] q+ 14:38:58 [CGI080] [Konrad] is there a notion of payload? 14:40:34 [fjh] norm notes, no protection from inherited namespace 14:40:44 [CGI080] Norm: there is a notion of a payload - such as in an enclosed document 14:41:47 [CGI080] Norm: there is work to define the security steps. 14:42:31 [CGI080] Norm: he is willing to work with us on defining the steps. 14:42:40 [klanz2] q? 14:42:43 [tlr] q? 14:42:45 [fjh] ack hal 14:43:14 [CGI080] Hal: a notion of sending Xproc with a document. 14:43:20 [klanz2] XProc is Code, good point Hal ... 14:43:27 [CGI080] Norm: this is posable, 14:43:42 [CGI080] Hal: this is a potential security hole. 14:43:42 [fjh] norm notes security in 2.12, can send xproc with data 14:44:20 [CGI080] Norm: there is not a notion of signing an XProc 14:45:02 [fjh] norm notes have tried to keep core as small number of steps, 31, spec notes how to connect them 14:45:04 [CGI080] Norm: they tried to minimize the basic steps (to 31) 14:45:05 [fjh] q? 14:45:41 [CGI080] Norm: defining security in terms of Xproc, he does not see a problem wiht that. 14:45:59 [CGI080] s/wiht/with/ 14:46:51 [CGI080] Norm: to define security - it is reasonable to use signed xproc. the pipeline is an XML document, it too can be signed. 14:48:10 [CGI080] Norm: if we define security within XProc, he thinks this would be accepted. 14:48:11 [brich] +1 on additional time at F2F with Norm 14:48:47 [CGI080] fjh: this would be a good idea to meet with XProc. Perhaps an hour to talk of this. 14:50:06 [Zakim] -[Microsoft] 14:50:06 [CGI080] Action: fjh to sceduale time with XProc group for security 14:50:06 [trackbot] Created ACTION-75 - Sceduale time with XProc group for security [on Frederick Hirsch - due 2008-10-14]. 14:50:07 [Zakim] -Norm 14:50:27 [Zakim] +[Microsoft] 14:50:56 [CGI080] TOPIC: meeting planning 14:51:21 [CGI080] fjh: no meeting next week 14:51:37 [CGI080] review the agenda for the F2F 14:51:41 [fjh] draft f2f agenda - 14:52:12 [fjh] 14:52:20 [CGI080] fjh: do we need to cancel any meetings? 14:52:58 [tlr] zakim, unmute me 14:52:58 [Zakim] Thomas should no longer be muted 14:53:00 [CGI080] meet after the F2F? on the 4th, and 11th. Cancel the 25th of November. (thanksgiving in the US) 14:53:33 [CGI080] fjh: propose to cancel the 25 14:53:47 [CGI080] resolution, Cancel the meeting on the 25th of November 14:54:01 [tlr] my regrets for both of these 14:55:22 [CGI080] tlr: we will have 8 calls before year-end to get the deliverables out. 14:55:28 [tlr] s/tlr/fjh/ 14:56:03 [CGI080] resolution: Cancel the meetings on the 25th November 14:56:17 [CGI080] RESOLUTION: Cancel the meetings on the 25th November 14:56:35 [CGI080] RESOLUTION: Cancel the meetings on the 30th of December 2008. 14:56:52 [magnus] Apologies, but I need to leave for another call now. 14:56:57 [CGI080] TOPIC: Minutes Approval 14:57:06 [Zakim] -magnus 14:57:12 [CGI080] tlr: minor changes, 14:57:18 [tlr] s/tlr/fjh/ 14:57:35 [CGI080] RESOLUTION: the minutes form the 23rd of September are approved. 14:57:48 [CGI080] Topic: Liason 14:58:21 [CGI080] fjh: meetings firmed up at the face to face 14:58:55 [CGI080] There are pointers to materials in the agenda. 14:59:08 [fjh] webapps 15:00:00 [CGI080] Pratik: xpath working group. 15:00:04 [tlr] Michael Kay was with XSL 15:00:11 [tlr] s/was/is/ 15:01:34 [CGI080] tlr: face to face planning. we need to have an adea of what we want to do 15:01:47 [tlr] s/tlr/fjh/ 15:01:47 [CGI080] TOPIC: meeting planning 15:02:13 [CGI080] we meet in January, the next might be in May. 15:02:46 [tlr] 2-6 November, Santa Clara 15:02:52 [CGI080] The next Plenery is November 2-6 November 15:03:37 [jcruella] May should be OK 15:03:45 [jcruella] UPC could host if you want 15:03:53 [CGI080] may is good for me too. 15:05:05 [CGI080] it is not possable for me to know if I will be able to travel to europe next year 15:05:45 [CGI080] meeting at the plenery - one more meeting to plan. 15:06:02 [tlr] zakim, mute me 15:06:04 [Zakim] Thomas should now be muted 15:06:08 [CGI080] Santa CLara in January, 15:06:14 [CGI080] TOPIC: Best practices 15:06:35 [CGI080] tlr: the document has been edited. 15:06:48 [tlr] s/anta CLara in January,/Redwood City in January, Santa Clara in November/ 15:06:53 [tlr] s/tlr:/fjh:/ 15:07:05 [CGI080] zakim, who is here? 15:07:05 [Zakim] On the phone I see brich, Frederick_Hirsch, smullan, gerald, rdmiller, bhill, csolc, Hal_Lockhart, klanz, jcruella, Thomas (muted), pdatta, bal (muted), [Microsoft] 15:07:09 :08:20 [fjh] proposal 1 - 15:09:04 [CGI080] Review this to address issue 55 to change "should" to "it is recommended" 15:09:10 [bal] zakim, unmute me 15:09:10 [Zakim] bal should no longer be muted 15:09:39 [CGI080] there is a need to review the document carefully. 15:09:47 [jcruella] +q 15:10:19 [CGI080] tlr: to review and approve the document so we can publish it. 15:10:20 [fjh] ack jcruella 15:10:26 [tlr] s/tlr/fjh/ 15:10:41 [CGI080] ... sorry.. 15:13:51 [CGI080] RESOLUTION: The proposal for Issue-55 is accepted 15:13:52 [klanz2] Not here and not here 15:13:52 [klanz2] JCC: maybe post again your comments to the list ... 15:14:57 [fjh] proposal 2 - 15:15:12 [CGI080] FJH: issue -53 to reword the best practice - proposal 2 15:15:30 [jcruella] I had sent the message to another list...apologies.. I have now sent the message to the public list. 15:15:59 [CGI080] This would close Action 72 15:16:27 [fjh] proposal 3 - 15:16:37 [CGI080] RESOLUTION: to accept the proposal for issue-55 15:16:54 [CGI080] RESOLUTION: to accept the proposal for issue-53 15:17:49 [bal] (sorry, i have to drop for a couple minutes, back shortly...) 15:17:55 [Zakim] -bal 15:18:00 [CGI080] (discussion on table of contents) 15:19:11 [CGI080] fjh: accept the proposal to update the titles 15:19:13 [Zakim] -jcruella 15:19:36 [fjh] proposal 4 - ISSUE-56 Add references for timestamping proposal 15:19:39 [CGI080] RESOLUTION: To accept the proposal to update the titles of the sections 15:19:45 [fjh] 15:20:03 [jcruella] sorry... was dropped of the call....call back in few seconds 15:21:09 [fjh] xades 15:21:15 [Zakim] +bal 15:21:40 [CGI080] fjh: To add the references to xades in the best practices 15:22:08 [Zakim] +??P27 15:22:13 [CGI080] RESOLUTION: To add the references to xades in the best practices 15:22:20 [jcruella] zakim, ??P27 is jcruella 15:22:20 [Zakim] +jcruella; got it 15:22:20 [fjh] proposal 5 - 15:22:31 [tlr] ACTION-70? 15:22:31 [trackbot] ACTION-70 -- Thomas Roessler to propose disclaimer for SOTD -- due 2008-09-30 -- PENDINGREVIEW 15:22:31 [trackbot] 15:22:35 [fjh] zakim, who is here? 15:22:35 [Zakim] On the phone I see brich, Frederick_Hirsch, smullan, gerald, rdmiller, bhill, csolc, Hal_Lockhart, klanz, Thomas (muted), pdatta, [Microsoft], bal (muted), jcruella 15:22:39 :22:39 [tlr] zakim, unmute me 15:22:39 [Zakim] Thomas should no longer be muted 15:23:42 [tlr] zakim, mute me 15:23:42 [Zakim] Thomas should now be muted 15:23:56 [klanz2] "XAdES_v1.3.2" " " XML Advanced Electronic Signatures (XAdES). ETSI TS 101 903 V1.3.2 (2006-03) -> Talks about Timestamps for long term signatures ... 15:24:00 [CGI080] Thomas: The wording that should be that the best practices are not normative. It is not a recommmendation. 15:24:22 [tlr] ACTION-70 closed 15:24:23 [trackbot] ACTION-70 Propose disclaimer for SOTD closed 15:25:03 [CGI080] RESoLUTION: Accept the proposal from Action-70 from Thomas 15:25:17 [CGI080] RESOLUTION: Accept the proposal from Action-70 from Thomas 15:25:18 [jcruella] XAdES: the reference should include the complete title... could you put an action on me for providing it? 15:26:08 [fjh] additional item from Bruce - 15:26:40 [CGI080] ACTION: jcruella to provide the complete title of XAdES for the best practices reference 15:26:41 [trackbot] Created ACTION-76 - Provide the complete title of XAdES for the best practices reference [on Juan Carlos Cruellas - due 2008-10-14]. 15:26:48 [Norm] Norm has left #xmlsec 15:27:48 [fjh] pratik notes that example was deliberate 15:29:13 [CGI080] Pratik: to address "E2" to update the document and accept changes raised in terms of the corrections 15:29:46 [CGI080] RESOLUTION: to accept the corrections from Bruce 15:30:24 [CGI080] RESOLUTION: TO accept changes raised in terms of the corrections. 15:30:50 [tlr] back 15:32:27 [CGI080] ACTION: Thomas to deal with the titling 15:32:27 [trackbot] Created ACTION-77 - Deal with the titling [on Thomas Roessler - due 2008-10-14]. 15:33:46 [tlr] action-77? 15:33:46 [trackbot] ACTION-77 -- Thomas Roessler to deal with the titling -- due 2008-10-14 -- OPEN 15:33:46 [trackbot] 15:33:51 [CGI080] ACTION: Pratik will add the time stamp reference to the best practices 15:33:51 [trackbot] Created ACTION-78 - Will add the time stamp reference to the best practices [on Pratik Datta - due 2008-10-14]. 15:35:09 [CGI080] ACTION: fjh to address Action-53, Action-55 and action-70 15:35:09 [trackbot] Created ACTION-79 - Address Action-53, Action-55 and action-70 [on Frederick Hirsch - due 2008-10-14]. 15:35:51 [jcruella] jcruella has joined #xmlsec 15:36:35 [fjh] zakim, who is making noise? 15:36:45 [Zakim] fjh, listening for 10 seconds I heard sound from the following: jcruella (76%), pdatta (28%) 15:36:54 [fjh] jcc notes best practice 1 and 3 15:37:06 [CGI080] Juan Carlos: Best practice 1 and 3 to subsitiute terms 15:37:25 [CGI080] s/subsitiute/substitute/ 15:37:38 [jcruella] Best Practice 1: Mitigate denial of service attacks by executing potentially dangerous operations only after authenticating the signature. 15:38:01 [fjh] jcc notes text talks about building trust 15:38:06 [jcruella] Best Practice 3: Establish trust in the verification/validation key. 15:38:08 [CGI080] jcruella: a need to extablish trust 15:38:24 [fjh] jcc notes duplication 15:38:54 [fjh] jcc suggestion changing title of bp #1 only after estabishing trust in the key 15:39:06 [jcruella] Best Practice 1: Mitigate denial of service attacks by executing potentially dangerous operations only after establishing trust in the verification/validation key 15:39:19 [jcruella] and eliminate best practice 3. 15:40:24 [jcruella] Step 1 fetch the verification key and establish trust in that key 15:40:39 [CGI080] fjh: edit the document that we can look at a complete draft rather than scattered proposals and fragments. 15:40:43 [fjh] 15:43:09 [CGI080] TOPIC: Web App 15:43:10 [fjh] WebApps SHA-1 Algorithm 15:43:22 [fjh] 15:43:51 [CGI080] take a look at the message on the mailing list - profiling on SHA-1 15:44:07 [CGI080] Topic: V.Next 15:44:19 [CGI080] TOPIC: V.Next 15:44:19 [fjh] 15:44:21 [klanz2] 15:44:46 [fjh] rovide proposal on list regarding transform primitives 15:45:28 [fjh] konrad suggests having simple transforms that can be implemented in parallel 15:46:06 [fjh] konrad suggests they be idempotent 15:46:19 [CGI080] Konrad: a collection of simple transforms potentially to be executred in parrallel 15:47:52 [CGI080] is this like steps in xproc? no, there are differences. 15:48:46 [CGI080] Konrad:L XPROC is much powerful than we need for signatures 15:49:32 [CGI080] Konrad: he is seeking simplification 15:49:55 [CGI080] TOPIC: Conicalization Errata 15:49:59 [fjh] 15:50:18 [tlr] ack thomas 15:51:33 [CGI080] what happens if an XML docuemnt incloudes a references to an XML name space and its effects on cononicalization 15:52:28 [tlr] zakim, mute me 15:52:28 [Zakim] Thomas should now be muted 15:52:35 [tlr] zakim, unmute me 15:52:35 [Zakim] Thomas should no longer be muted 15:53:38 [CGI080] Konrad: problems with a data model underneath c14n with xpath 15:54:02 [fjh] Hoylen 15:54:07 [tlr] ACTION: konrad to propose answer to 15:54:07 [trackbot] Created ACTION-80 - Propose answer to [on Konrad Lanz - due 2008-10-14]. 15:54:30 [CGI080] ACTION: klanz2 to provide an answer from hoylen 15:54:31 [trackbot] Created ACTION-81 - Provide an answer from hoylen [on Konrad Lanz - due 2008-10-14]. 15:54:42 [tlr] topic: Actions pending review 15:54:43 [CGI080] TOPIC: Pending actions 15:55:30 [CGI080] RESOLUTION: that all pending actions are close 15:55:53 [tlr] ACTION-4 closed 15:55:53 [trackbot] ACTION-4 Arrange joint F2F meetings closed 15:55:55 [tlr] ACTION-19 closed 15:55:55 [trackbot] ACTION-19 Evaluate Issues and Actions for appropriate placement closed 15:55:56 [klanz2] 15:55:56 [klanz2] To finish processing L, simply process every namespace node in L, except omit namespace node with local name xml, which defines the xml prefix, if its string value is. 15:55:58 [tlr] ACTION-65 closed 15:55:58 [trackbot] ACTION-65 Document use case and semantics of byte-range signatures. closed 15:56:00 [CGI080] TOPIC: Other business 15:56:02 [tlr] ACTION-67 closed 15:56:02 [trackbot] ACTION-67 Edit best practices to implement Scott's and his own changes; see closed 15:56:07 [tlr] ACTION-68 closed 15:56:07 [trackbot] ACTION-68 Implement, closed 15:56:09 [tlr] ACTION-72 closed 15:56:09 [trackbot] ACTION-72 Contribute synopsis for each best practice closed 15:56:17 [fjh] zakim, who is here? 15:56:17 [Zakim] On the phone I see brich, Frederick_Hirsch, smullan, gerald, rdmiller, bhill, csolc, Hal_Lockhart, klanz, Thomas, pdatta, [Microsoft], bal (muted), jcruella 15:56:20 [Zakim] On IRC I see jcruella, kyiu, bal, hal, bhill, pdatta, CGI080, csolc, tlr, smullan, brich, Zakim, RRSAgent, fjh, klanz2, trackbot 15:57:36 [tlr] zakim, unmute me 15:57:36 [Zakim] Thomas was not muted, tlr 15:58:36 [Zakim] -rdmiller 15:58:38 [Zakim] -smullan 15:58:42 [Zakim] -bal 15:58:45 [Zakim] -jcruella 15:58:46 [pdatta] pdatta has left #xmlsec 15:58:47 [Zakim] -csolc 15:58:50 [Zakim] -Hal_Lockhart 15:58:51 [Zakim] -brich 15:58:52 [Zakim] -pdatta 15:58:53 [Zakim] -bhill 15:58:54 [Zakim] -Thomas 15:58:56 [Zakim] -[Microsoft] 15:58:57 [Zakim] -klanz 15:59:11 [fjh] Zakim, list participants 15:59:11 [Zakim] As of this point the attendees have been +1.512.401.aaaa, brich, Frederick_Hirsch, +1.617.876.aabb, smullan, gerald, +1.303.229.aacc, rdmiller, +1.650.879.aadd, csolc, magnus, 15:59:15 [Zakim] ... Norm, Hal_Lockhart, Thomas, klanz, pdatta, +1.206.726.aaff, bal, bhill, jcruella, [Microsoft] 15:59:25 [fjh] Regrets+ Shivaram Mysore 15:59:36 [fjh] RRSAgent, generate minutes 15:59:36 [RRSAgent] I have made the request to generate fjh 16:00:29 [fjh] zakim,who is here? 16:00:29 [Zakim] On the phone I see Frederick_Hirsch, gerald 16:00:30 [Zakim] On IRC I see jcruella, kyiu, CGI080, tlr, brich, Zakim, RRSAgent, fjh, klanz2, trackbot 16:01:03 [fjh] 16:01:33 [Zakim] -gerald 16:01:35 [Zakim] -Frederick_Hirsch 16:01:36 [Zakim] T&S_XMLSEC()10:00AM has ended 16:01:37 [Zakim] Attendees were +1.512.401.aaaa, brich, Frederick_Hirsch, +1.617.876.aabb, smullan, gerald, +1.303.229.aacc, rdmiller, +1.650.879.aadd, csolc, magnus, Norm, Hal_Lockhart, Thomas, 16:01:39 [Zakim] ... klanz, pdatta, +1.206.726.aaff, bal, bhill, jcruella, [Microsoft]
http://www.w3.org/2008/10/07-xmlsec-irc
CC-MAIN-2018-05
refinedweb
4,744
65.25
- Code: Select all import time pause = lambda: time.sleep(3) print "Welcome to the Game of Choice!" pause() print """You will be given multiple choices throughout this adventure . How you choose determines how you end. Please answer questions in all lowercase letters. On all questions that require a yes or a no, type out the entire word.""" pause() print "Let's start." pause() while True: q_one = raw_input("Are you a boy, or a girl?") if q_one == "boy": print "You are a girl." elif q_one == "girl": print "You are a boy." else: print "You failed on the first question. What a shame." break pause() print """You are walking through the woods when you see something shiny. You wonder what it is.""" q_two = raw_input("Do you investigate?") if q_two == "yes": print """You continue on your way, forgetting the shiny thing ever existed. The end.""" break elif q_two == "no": print """You walk over and see that it is a revolver. Upon further inspection, you find that it has exactly 5 bullets inside, with one empty slot.""" pause() print """You put gloves on, so as to avoid getting your fingerprint s on anything.""" q_three = raw_input("Do you pick the revolver up?") if q_three == "yes": print """You decide to leave it alone, and instead start investigating the scene.""" pause() print "You discover a trail of blood on the forest floor." q_threeA = raw_input("Do you follow the trail?") if q_threeA == "yes": print """You decide against it and walk away. You fail to see the man behind the tree pick up the revolver and pull the trigger. You fall to the ground, dead. The end.""" break elif q_threeA == "no": print "You follow the trail, and find a dead body." pause() print """'Suddenly, you hear a rustling sound behind you. You whip around and stare into the barrel of the revolver, held by a strange masked man. You have no time to react, and no one is there to catch your dead body.'""" break elif q_three == "no": print "You pick the revolver up." pause() print "Suddenly, you hear a rustling sound behind you." Don't worry about the logic behind my code, like the results for each answer for the questions. I have the python 2.7 app, and this code works fine on that. The problem is when I try to run it on my computer, it prints the first line of the code and then it spits out this error: Internal error: ReferenceError: Can't find variable: _select Is there any reason why?
http://www.python-forum.org/viewtopic.php?f=6&t=8206
CC-MAIN-2016-40
refinedweb
417
85.39
MichelsonMap class One of the most attractive smart contract features is storing a substantial amount of data that the contract code can use. Although Michelson provides different structures to store data, this article's object will be its maps. Maps are hash tables that contain key/value pairs, which means that when you want to find a value in a map, you search for its key. Maps allow you to store complex data that can reference a single word or number or even more complex data like a pair! Unlike big maps, all the values in a map are deserialized, allowing developers to access all of them at once. While maps become more expensive to use when the number of key/value pairs increases, they are well-suited for smaller databases because of Michelson's extra features (like mapping or folding) and Taquito offer on maps. Taquito reads maps in the storage of smart contracts and translates them into an instance of the MichelsonMap class. The class and its instances expose different features that give developers much flexibility to use Michelson maps in their dapps. These features fall into four groups: - The instantiation: there are three different ways of creating a new MichelsonMapin Taquito - The general methods: they give you information about the map, for example, its size or the elements it contains - The key/value methods: they allow you to manipulate the keys and values in the map - The update methods: they transform the map itself, for example, by deleting elements or clearing out the map entirely. This tutorial uses a simple smart contract deployed on hangzhou2net with a map that contains addresses as keys and tez as values. We will use all the methods available in Taquito's MichelsonMap to check the map, extract values and modify them! Note: Taquito is written in TypeScript; we will also use TypeScript to interact with the contract storage. This paragraph is a little reminder of how to use Taquito to fetch the storage of a smart contract: import { TezosToolkit, MichelsonMap } from '@taquito/taquito';import { BigNumber } from 'bignumber.js';const contractAddress: string = 'KT1PAW3ghZyysrArcexyj6VUU7NZF8tHKoZR';const Tezos = new TezosToolkit('');const contract = await Tezos.contract.at(contractAddress);const storage: MichelsonMap<string, BigNumber> = await contract.storage(); The setup code is pretty straightforward: 1- We import TezosToolkit and MichelsonMap from the @taquito/taquito package. We also import BigNumber from bignumber.js (Taquito installs the library) as TypeScript will need it for this particular example. 2- We instantiate the TezosToolkit object with the RPC address. 3- We fetch the contract using await Tezos.contract.at(contractAddress). 4- We extract the contract from the contract using the storage method on the ContractAbstraction object created one line above. We also type the storage variable with the MichelsonMap type, which requires 2 type arguments: the type for the key and the type for the value (the address is a string, and the tez is converted to a BigNumber by Taquito). Creating a MichelsonMap instance Taquito provides three different ways of creating a new Michelson map: we can use two of them to create an empty map, and the third one is used to create a map with default values. The most simple way is to create the instance with no argument: const newEmptyMapWithoutArg = new MichelsonMap(); If you prefer, you can also pass an argument to the MichelsonMap constructor to indicate the type you want for the keys and the values: // this code creates the same map as in the storage of the contractconst newEmptyMapWithArg = new MichelsonMap({prim: 'map',args: [{ prim: 'string' }, { prim: 'mutez' }],}); Finally, you can also pass some values you want to create the instance with and let Taquito figure out the types using the fromLiteral static method: const newMapfromLiteral = MichelsonMap.fromLiteral({tz1VSUr8wwNhLAzempoch5d6hLRiTh8Cjcjb: new BigNumber(123),}); The general properties and methods: isMichelsonMap, size, has and get The first thing you may want to check after fetching the data from contract storage is if the part of the storage you expect to be a map is indeed a map. W can achieve this by using the isMichelsonMap static method on the MichelsonMap class: const isMap: boolean = MichelsonMap.isMichelsonMap(storage); // true or false Note: this is a static method, so you can use it without creating a new instance of MichelsonMap. Once you are sure you are dealing with a map, you can check how many key/value pairs it holds with the size property: const size: number = storage.size; // number of elements in the map Sometimes, you don't want to do anything with the values in a map, but you want to verify whether a key appears in the map, you can then use the has method and pass it the key you are looking for: const key: string = 'tz1MnmtP4uAcgMpeZN6JtyziXeFqqwQG6yn6';const existsInMap: boolean = storage.has(key); // true or false After that, you can fetch the value associated with the key you are looking for with the get method: const key: string = 'tz1MnmtP4uAcgMpeZN6JtyziXeFqqwQG6yn6';const valueInTez: BigNumber = storage.get(key); // value as a big numberconst value: number = valueInTez.toNumber(); // returns 789000000 The key/value methods One of the main advantages of maps over big maps is that the key/value pairs are readily available in your dapp without any extra step. If you are looking for a simple solution to loop over all the pairs and get the key and the value, the MichelsonMap instance exposes a forEach method that allows you to get these values: const foreachPairs: { address: string; amount: number }[] = [];storage.forEach((val: BigNumber, key: string) => {foreachPairs.push({ address: key, amount: val.toNumber() / 10 ** 6 });});console.log(foreachPairs); The code above will output: [{ address: 'tz1MnmtP4uAcgMpeZN6JtyziXeFqqwQG6yn6', amount: 789 },{ address: 'tz1R2oNqANNy2vZhnZBJc8iMEqW79t85Fv7L', amount: 912 },{ address: 'tz1VSUr8wwNhLAzempoch5d6hLRiTh8Cjcjb', amount: 123 },{ address: 'tz1aSkwEot3L2kmUvcoxzjMomb9mvBNuzFK6', amount: 456 },]; The MichelsonMap instance exposes another method that will yield the same result, albeit in a different way. The entries method is a generator function that you can use if you wish to. This is how it works: const entriesPairs: { address: string; amount: number }[] = [];const entries = storage.entries();for (let entry of entries) {entriesPairs.push({ address: entry[0], amount: entry[1].toNumber() / 10 ** 6 });}console.log('entries => ' + JSON.stringify(entriesPairs) + '\n'); This code will yield the same result as the one above. A generator may be preferable according to your use case. The same idea is available for keys and values, the keys and values methods are generators that will allow you to loop over the keys or the values of the map: const mapKeys: string[] = [];const keys = storage.keys();for (let key of keys) {mapKeys.push(key);}console.log('keys => ' + mapKeys + '\n'); This example will output the following array containing all the keys of the map: ['tz1MnmtP4uAcgMpeZN6JtyziXeFqqwQG6yn6','tz1R2oNqANNy2vZhnZBJc8iMEqW79t85Fv7L','tz1VSUr8wwNhLAzempoch5d6hLRiTh8Cjcjb','tz1aSkwEot3L2kmUvcoxzjMomb9mvBNuzFK6',]; Similarly, you can use values instead of keys to output some or all the values in the map: const mapValues: number[] = [];const values = storage.values();for (let value of values) {mapValues.push(value.toNumber());}console.log('values => ' + mapValues + '\n'); This command will output all the values of the map inside an array: [789000000, 912000000, 123000000, 456000000]; The update methods Although reading and organizing the keys or the values fetched from a Michelson map is an everyday use case, you may also want to modify a map, for example, before originating a new contract. Taquito also thought about it and provided different methods to add or remove key/value pairs from a map. First, you can use the set method to add a new value to an instance of MichelsonMap: console.log(`previous size => ${storage.size} elements`); // 4 elementsstorage.set('tz1TfRXkAxbQ2BFqKV2dF4kE17yZ5BmJqSAP', new BigNumber(345));console.log(`new size => ${storage.size} elements \n`); // 5 elements This command adds a new entry in the map with the first argument's address and the BigNumber being the value. Note: it is essential to use new BigNumber(345)for the value and not merely 345as TypeScript will throw a type error because earlier, we set the type argument of the MichelsonMapto BigNumber. You can also delete one of the entries of the map with the delete method: console.log(`delete: previous size => ${storage.size} elements`); // 5 elementsstorage.delete('tz1MnmtP4uAcgMpeZN6JtyziXeFqqwQG6yn6');console.log(`delete: new size => ${storage.size} elements \n`); // 4 elements Note: deleting a key that doesn't exist doesn't throw an error; it will just not affect the map. To finish, you can also delete all the entries in a Michelson map if you want with the clear method: storage.clear();console.log(`clear: new size => ${storage.size} element`); // 0 element To go further If you want to know more about MichelsonMap and some advanced usages (for example, how to use pairs as the map keys), you can learn in the advanced tutorial available in the Taquito documentation. April 2021, Taquito version 8.1.0
https://tezostaquito.io/docs/11.0.2/michelsonmap/
CC-MAIN-2022-05
refinedweb
1,450
50.87
This is the only correct cross-platform way to specify a file. More... import "nsIFile.idl"; This is the only correct cross-platform way to specify a file. Strings are not such a way. If you grew up on windows or unix, you may think they are. Welcome to reality... Not a regular file, not a directory, not a symlink.. This object is updated to refer to the new). This will try to delete this file. The 'recursive' flag must be PR_TRUE to delete directories which are not empty. This will not resolve any symlinks. File Times are to be in milliseconds from midnight (00:00:00), January 1, 1970 Greenwich Mean Time (GMT). Accessor to the leaf name of the file itself. For the |nativeLeafName| method, the nativeLeafName must be in the native filesystem charset. Create Types. NORMAL_FILE_TYPE - A normal file. DIRECTORY_TYPE - A directory/folder. Parent will be null when this is at the top of the volume..
http://doxygen.db48x.net/comm-central/html/interfacensIFile.html
CC-MAIN-2019-09
refinedweb
159
70.19
My end plan is to finish it (have it in a working state) and then release it on CodePlex. CodePlex is an open-source repository website by Microsoft where developers can share their code for free. If you’re familiar with Team Server, then using the website is very easy and can be integrated right into Visual Studio 2010. Since my application revolves around an exposed API given to me by Imgur, if I’m to share this source code with the world, I shouldn’t give everyone access to my personal key. One approach to solving this problem was to use the built-in ConfigurationManager.AppSettings. Here’s how you do it (I’m using Windows Forms). Right-click on your solution and click Add New Item: Then select the AppSettings.config file: Then, double click the created file, and you’ll see the following: <?xml version="1.0" encoding="utf-8" ?> <configuration> </configuration> Application variables are saved in the appSettings node. <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="API-Key" value="e0201e0b4528c146027c4f6dcd730787"/> <add key="WelcomeMessage" value="Hi there neighbor!"/> <add key="Error404" value="Welp, we couldn't find that!"/> </appSettings> </configuration> Now add a .dll reference in your project to System.Configuration, and also the using namespace to whatever class will be using the file. So now that we have added a variable called API-Key, we can be access that anywhere/anytime with the ConfigurationManager class. ConfigurationManager.AppSettings["API-Key"].ToString(); Unfortunately, the setting keys aren't strongly typed, but you could create a helper class for that easily. Have fun!
http://www.dreamincode.net/forums/topic/185438-how-to-use-the-configurationmanager-to-save-program-wide-settings/
CC-MAIN-2017-34
refinedweb
268
56.66
I need to write a function in Python that takes a tree and an index and returns the subtree or leaf at that index. I tried with loops and nested loops until I realized that the tree that had to run the tests was always the same: tree = (((1, 2), 3), (4, (5, 6)), 7, (8, 9, 10)) def tree_ref(tree, index): if len(index) == 1: print tree[index[0]] elif len(index) == 2: print tree[index[0]][index[1]] elif len(index) == 3: print tree[index[0]][index[1]][index[2]] else: return False You should try to use recursion. Something like below: def tree_ref(tree, index): if len(index) == 1: print tree[index[0]] else: tree_ref(tree[index[0]], index[1:])
https://codedump.io/share/RCKauZQnIZ8j/1/searching-any-tree-in-python
CC-MAIN-2017-13
refinedweb
123
63.36
Support for Java 13 Preview Features in IntelliJ IDEA 2019.2 Java 13 is planned for release on September 17, 2019. And IntelliJ IDEA is already getting ready for it! Starting with version 2019.2, IntelliJ IDEA has support for Java 13 Preview features. Support for Switch Expressions preview feature As you may already know, the Java 12 preview significantly improved the handling of the traditional switch statement. Java 13 offers a second preview of switch expressions to drop the “break with value” statement in favor of “yield” (JEP 354). Here is an example of yielding the values from a switch expression: import java.time.DayOfWeek; class Sample { private int workWeekDays(DayOfWeek s) { return switch (s) { case MONDAY: yield 1; case TUESDAY: yield 2; case WEDNESDAY: yield 3; case THURSDAY: yield 4; case FRIDAY: default: System.out.println("Seems that the selected day is weekend"); yield 0; }; } } A switch expression must either complete normally with a value or complete abruptly by throwing an exception. In the cases where you miss yielding a value, IntelliJ IDEA will underline the “switch” keyword and throw an error message indicating that the result is not produced in all execution paths. Support for Text Blocks preview feature One more preview feature targeting JDK 13 is text blocks (JEP 355). A text block is a new way to embed a multiline snippet into the Java source code. It enhances readability and gives the developer control over the format. Let’s take a closer look at text blocks. Up to now a snippet of HTML, XML, SQL, etc. code embedded in a string literal was hard-to-read, not easily editable, and error-prone. The new “two-dimensional” text blocks syntax allows writing the same lines of code without any cumbersome or excessive complexity. IntelliJ IDEA now understands the syntax of preview text blocks and provides correct highlighting for it. IntelliJ IDEA 2019.2 supports most of the features applicable to normal string literals also for text blocks, though it’s a work in progress and more goodies can be expected. Now you can, for example, try the ‘Join concatenated String literal’ quick-fix or check the constant value of the concatenation. The IDE will correctly highlight the code with skipped line terminator between opening and closing delimiters ( “”” ), giving an error message that the new line is missing after an opening quote. As you may know, working with string literals can be made simpler with IntelliJ IDEA’s language injection features. They provide comprehensive language assistance while you edit the fragments of injected code. For more details please refer to How to enable support for Java 13 preview features To enable this support, set the corresponding Language Level in the Project Structure settings and install the JDK to compile. At the time this blog-post is written, Java 13 is still not released, so only early access builds are available and their stability, quality, and security are not guaranteed. JDK 13 Early-Access Builds are available through this link:. IntelliJ IDEA policy of supporting Java preview versions IntelliJ IDEA is committed to supporting the preview features from the latest Java release and, if possible, the preview features of whatever release is coming next. So v2019.2 will support Java 12 and 13 preview features. Please note that v2019.3 will drop the support for Java 12 preview features as IntelliJ IDEA 2019.3 will be released after the release of Java 13. Your feedback on the new IntelliJ IDEA features is always welcome! Happy Developing! 9 Responses to Support for Java 13 Preview Features in IntelliJ IDEA 2019.2 dev dev says:August 7, 2019 Disappointed, Latest IntelliJ IDEA 2019.2 eats a lot of RAM ! From -Xmx750m to -Xmx2038m, really ? Olga Klisho says:August 7, 2019 Please create an issue at YouTrack () describing when IntelliJ IDEA consumes much RAM. Thank you. Tagir Valeev says:August 28, 2019 It’s just a default setting change. It’s not that IDEA became more hungry. We just concluded that it’s more appropriate to the majority of the users. You are completely free to set it back to -Xmx750m if it was comfortable for you in the previous release. Venkat says:August 21, 2019 Unable to update to 2019.2 because of the following error: 29/07 10:05:55 INFO CreateAction.doApply – Create action. File: C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2018.1.6\jbr\legal\java.xml.crypto 29/07 10:05:55 INFO Utils.getZipEntry – entryPath: jbr/legal/java.xml.crypto/ 29/07 10:05:55 ERROR Patch.apply – apply failed java.io.IOException: Unable to create directory jbr/legal/java.xml.crypto/ at com.intellij.updater.CreateAction.doApply(CreateAction.java:76) at com.intellij.updater.PatchAction.apply(PatchAction.java:195) at com.intellij.updater.Patch.lambda$apply$3(Patch.java:342) at com.intellij.updater.Patch.forEach(Patch.java:426) at com.intellij.updater.Patch.apply(Patch.java:333) at com.intellij.updater.PatchFileCreator.apply(PatchFileCreator.java:64) at com.intellij.updater.Runner.install(Runner.java:326) at com.intellij.updater.Runner.main(Runner.java:118) System Specifications: Windows 16 GB RAM Olga Klisho says:August 21, 2019 Hello, how do you run the installation process? Do you run it with administration privileges? Please make sure no other instances of Intellij IDEA are running. If nothing helps please try removing the old version and installing the IntelliJ IDEA from scratch from or with the Toolbox app:. Marcos Rossini says:August 23, 2019 What if this is a maven project? I am running with Java 14-loom Early-Aaccess and I am trying to use Source Level as 13 Preview, but I found no configuration in my pom.xml that intellij would correctly define my module settings, It always sets it to Source Level 13 No New language features. Here is compile plugin conf: org.apache.maven.plugins maven-compiler-plugin 3.8.1 true true /dev/jdk-14/bin/javac –enable-preview 13 13 Note that running mvn verify on command line works perfectly. Tagir Valeev says:August 28, 2019 Hello! We are sorry for the inconvenience. It seems that your problem is addressed in IDEA-212618. If so then I have good news for you: it was fixed and should be delivered in the next update 2019.2.2. Ayb says:November 21, 2019 Installed jdk 13. Getting this error with a var declaration: Warning:(3, 13) java: as of release 10, ‘var’ is a restricted local variable type and cannot be used for type declarations or as the element type of an array Error:(3, 9) java: cannot find symbol symbol: class var location: class Main13 javac on the command line works OK. Here is the code: public static void main(String[] args) { var x = 10; System.out.println(x); } The SDK is set to JDK 13, and the compiler level to 11 (that is the highest available choice). olgakli says:November 22, 2019 Please clarify what JDK build do you use when compilation fails? What javac do you use for compilation in this case: > javac on the command line works OK Thanks
https://blog.jetbrains.com/idea/2019/07/support-for-java-13-preview-features-in-intellij-idea-2019-2/
CC-MAIN-2021-17
refinedweb
1,192
58.28
I converted the provides samples in test cases: def test_provided_1(self): self.assertEqual('100 250 150', solution('72 64 150 | 100 18 33 | 13 250 -6')) def test_provided_2(self): self.assertEqual('13 25 70 44', solution('10 25 -30 44 | 5 16 70 8 | 13 1 31 12')) def test_provided_3(self): self.assertEqual('100 200 300 400 500', solution('100 6 300 20 10 | 5 200 6 9 500 | 1 10 3 400 143'))Then I divided the problem in for steps. 1) Convert the input line in an integer table of scores, where each row represents an artist and each column a style. 2) Rearrange the table so that it can easily be scanned by style. 3) For each style, get its maximum value. 4) Convert the maximum collection in a string and return it. Authors table Let's use a list comprehension: authors = [[int(score) for score in author.split()] for author in line.split('|')]If your reaction is "what?!", here is the same thing unwinded: authors = [] # 1 for author in line.split('|'): # 2 row = [] # 3 for score in author.split(): # 4 row.append(int(score)) # 5 authors.append(row) # 61) Create an empty list. This will be our resulting table. 2) Split the input line, using the pipe as separator, and loop on each resulting element. 3) Create an empty list, the current raw we'll fill with scores and push to the table. 4) Split the current section of the input line using the default blank character as separator, and loop on each element, a string that represents the current score. 5) Convert the current score to an integer and push it in the row. 6) Push the row in the authors table. In a way or the other now we have our table of scores. Given the first test case, author is this list of lists: [[72, 64, 150], [100, 18, 33], [13, 250, -6]] Style table The point of this step is simplify the next one. We could happly skip it, but it improves so much the resulting code readability that we don't really want to miss it. Besides, here we have a way to put the handy * (star, asterisk, unpack) list operator and the zip built-in function at work. We want to traspose our table, so that we have styles in the rows. Done in a jiffy styles = zip(*authors)The star operator unpacks the authors list, passing its rows, each of them by requirement is an equally sized list, to the zip function. Zip packs back (for a formal description of its job, see the online Python documentation) the lists, putting in its first element all the first elements of the input lists, down to the last elements. The result is that in styles we have something that could be seen in this way [(72, 100, 13), (64, 18, 250), (150, 33, -6)](I avoid the details because here I just want to get the problem solved. Please, check about Python iterators and iterables to have more information on what is really going on here.) Notice that rows are now represented by tuples and not as lists as in the original table. Not a problem, since we don't want to change them in any way. Max for style To perform this step I am going to use the built-in functions max(), that returns the largest value among the passed ones, and map(), works like zip, but applying a function to the input data. Putting them together I get: result = map(max, styles)If I print result for the first test case, I should get something like [100, 250, 150]That is almost the expected output, I only have to format it in the right way. Let's say we don't want to transpose the table, as done in the previous step. Maybe we want to solve a more complex problem, where tables could be huge, and we don't want to pay the cost of that job. In that case we can fall back to less readable but more efficient code like this: size = len(table[0]) # 1 result = [-1000 for score in range(size)] # 2 for row in table: # 3 for i in range(size): # 4 if row[i] > result[i]: result[i] = row[i]1. By requirement, all rows have the same size. 2. Another requirement is that the lowest score is -1000, I shouldn't use it as a magic number, I know. However, I initialize result to have each element set to the lowest possible value. 3. Scan all the rows. 4. For each element in the row, compare it against the current result for that style, if bigger store it as candidate result. It should be clear why we prefer the write the map-max version instead of this one, if we don't really have to. Formatting the result Usual stuff, convert the solution to a string of blank separated values. Here there is just a minor tweak: return ' '.join(map(str, result))I can't join directly on result, because it contains integers, not strings! So, I map result using the str() function that converts its input to string. Done. Being CodeEval happy with my solution, I pushed test cases and python function source code to GitHub.
http://thisthread.blogspot.com/2017/01/codeeval-find-highest-score.html
CC-MAIN-2018-17
refinedweb
887
71.14
Gitter support – please visit and before chatting @shlomiassaf Ahh, you are running into gitlab-org/gitter/webapp#1951 The problem is that Gitter reserves GitHub org namespaces. So in order to create the ngrid community, it would need to be associated with. You will need to adjust the URI so it doesn't conflict threaded-conversationsfeature toggle which can be toggled on at 1 replyindicator but it breaks the site a bit when you click on it with the feature toggle off. The fix is deployed in next/staging and it's going to production soon. @robertvb Ahh, I see. So it would have to be a comment on the commit with a Gitter permalink. This sounds very closely related to Mind creating an issue about "Add comment to commit when mentioned on Gitter",
https://gitter.im/gitter/gitter?at=5d79390954e7c649d4ca5efa
CC-MAIN-2022-40
refinedweb
134
61.67
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. How to customize with a custom module? I've read that if I'd like to customize or add a field to any app/module, it's better to do that by creating my own module to do that. But I'd like to ask, how to create a module that adds a field to another module? I've read about module creation but it didn't answer my question You have to create the __init__.py file and __openerp__.py (look for samples on line). Than a simple module can be import osv..... import date (if you need it or import any other library you think you will need) class product_product2 (osv.osv): _name = 'product.product2' (this is the name of your module) _inherit = 'product.product' (this is the product you wish your module to behave like and you want to add your new fields to) columns = {tests: fields.char('Test Field', size = 128)}#this will contain all the new fields you want to add to the product module you are inheriting from it also contains the type #of content that goes into the field, eg char for character, integer for numbers float for floating numbers basically you typical database system product_product2() states the end of a module also this closes the module so you can start another module your _view.xml can look like <openerp> <data> <record id="view_order_label_form_change" model="ir.ui.view"> <field name="name">product.product2_form</field> <field name="model">product.product</field> <field name="inherit_id" ref="product.product_normal_form_view"/> <!--not sure if this is correct but looks like that--> <field name="arch" type="xml"> <field name="name" position="after"> <!--this is saying look for field name in product and add my field after it--> <field name = "tests" select="1"/> <!--add select if you want your field searchable --> </field> </field> </data> </openerp> Hope this helps you a bit to complete Kaynis, you have here the basic information to create a module I will write a tutorial about ihnerit tomorrow. About This Community Odoo Training Center Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now OpenERP and partners propose formation to create your own module. Just one day can be a good bootstrap
https://www.odoo.com/forum/help-1/question/how-to-customize-with-a-custom-module-30396
CC-MAIN-2017-26
refinedweb
405
64.61
0 I have a question about function-based decorators. When I make the first call to sqrt(), I enter the decorator function, which I understand. However, every subsequent call to sqrt() only calls the temp_func, not the actual decorator again. I thought decorators were called every time the method is called, but from the output it's obviously not happening. The temp function is being entered every time I call sqrt(), but not is_val_pos(). Could someone please elaborate on why this is happening? Thanks! def is_val_pos(orig_func): print 'Entering decorator' def temp_func(val): print 'Entering temp func' if val < 0: return 0 else: return orig_func(val) return temp_func @is_val_pos def sqrt(val): print 'Entering sqrt method' import math return math.pow(val, (1.0/2)) print sqrt(-1) print sqrt(4) print sqrt(16) Output: Entering decorator Entering temp func 0 Entering temp func Entering sqrt method 2.0 Entering temp func Entering sqrt method 4.0
https://www.daniweb.com/programming/software-development/threads/375538/python-method-based-decorator
CC-MAIN-2017-17
refinedweb
157
55.44
Hi all, I am new in Programming and in this community, I have just bought the book " Teach yourself C# in 21 days"! however, I got confused, and didn't know how to apply the examples into Microsoft Visual Studio 2010!!? the programming used in the book looks for general use, not for Visual studio, but Visual Studio has many applications and windows form and console... etc. and I couldn't apply the examples correctly. Please, If you know how to use Visual Studio with the book, tell me, I'll be really grateful and more than happy. Kind Regard Dev Your question is overly broad and can't really be answered. You're essentially asking for a tutorial on a huge program from one of us. There is plenty of info out there on how to use Visual Studio to create various types of applications if you just search around a bit. As for your book... I distrust any "Learn XXX Language in 21 Days" type of book. You will not learn the language in 21 days, it will take far longer. As long as you realize that and don't get frustrated you'll be fine, but don't expect to pick up programming in a month. Thank you for the reply, as for the C# I wasn't actually looking for a tutorial, I just didn't know where to put the codes from the book to the program, but i find a way to fit it in, and hopefully It'll work with me until the end. I wasn't really expecting to finish in 21 days lol, the book expects me to be studying every whole night and thats impossible for me, I got a lot to do, lol so yea, my question is if you are familiar with the book and know the best way to write the programs from the book to the Visual Studio, Please tell me!! Thank you all for the help I like to figure one chapter at a time. Rather than 21 days, work for 21 separate days, but always finish a chapter, and if questions, go back and do the chapter again. Read the book first. Then, TYPE IN EVERY LINE OF CODE. It will show you how the IDE! Forget about these books that entitled "Learn/Teach yourself...in 21 days",. I tried one some time ago and found that at about chapter 3, the subjects turned to something way off the point of point of the book - something I never came across in years of work, and something I haven't seen since. I will recommend the MS series of books. These cover either C# or VB and then ADO.NET and then Windows clients and then web clients and services. They were 6 BIG books, intended for MCTS certification. I obtained them in a course that took 5 months at 5 hours a day. The best part was the assignments because they had a goal. Without a goal - using just the books, you will only learn small parts of the technology. Last edited by Lou Arnold; May 7th, 2011 at 04:57 PM. I seem to remember that when I first started with VB that I had something like "Visual Basic: Learning Edition" (or something) that included (a) Visual Studio and (b) some disks that contained a book (like the 'Learn in 21 days...') AND had some video files that would actually show you "Open the editor like this...; type in this code... compile it... see how it works?... what if we changed this line and recompile..." in 5-minute type movies. I'm not sure if there is anything like that still, but I found them very helpful at the time. If that exists, I recommend you taking a look at it if it isn't too expensive. Otherwise my standard advice: Pick a (simple!) project and then Google around to see if there are any tutorials about it (or sub-problems). Since it sounds like you have very little experience, I recommend "simple" to mean something like... "write a program that reverses a string" (or of similar difficulty to start with... don't choose 'build a multi-threaded, networked automated control system for the space shuttle' :-] ) Oh, and yes, I echo Ed's comments: you will not master programming in 3 weeks. You might pick up some general ideas, but it will take time to get comfortable with it. Don't get discouraged and keep going! Good luck; let us know if we can be of any help. Best Regards, BioPhysEngr -- All advice is offered in good faith only. You are ultimately responsible for effects of your programs and the integrity of the machines they run on. I echo everyone's sentiments about the TY ... in 21 days books. I had one when I just started out with C++ - that was ages ago. The only good thing about that book was the glue used to glue the pages together. That book went flying in all possible directions for many days! LOL! Best thing you can do is get a new book. Microsoft Press has the best books, full stop. I train students with those books. Good luck, and do not lose hope. Starting off with programming can be quite frustrating, so without the proper books you won't get far. You'll make it All my Articles Hannes Looking at online reviews for a particular book may be helpful, but don't trust the reviews too much - a review more like a general guide, and a one that doesn't know what way of learning suits you best. But, 21 days is just a marketing trick (besides, as someone here said, it doesn't necessarily mean 21 days in a row) - take your time and make sure that you understand things. When the book fails to explain something - turn to Google. I often find it useful to have two books on the same subject, as this way you have two different perspectives, that could ideally complement each other. Of course, you have to decide how to use each of them; for example, you could pick one as your primary study source, and use the other as an additional reference. In any case, if you have a teacher or a more experienced person to talk to - by all means don't hesitate. And again - there's always the web. As for your question: I haven't read TYS C# in 21 Days, so I don't know how good it is. Amazon.com rating seems decent, and it seems to me that the book aims to teach the very basics of programming - the most fundamental stuff to get you started. This means that it probably mostly deals with console applications. So, to run the code, you need to create a new C# Console Application project. When you do that, the IDE will generate a file named Program.cs - open it. There you'll find a class called Program (it doesn't matter if you don't know what a class is yet), and a method called Main - the entry point to your application. The first few chapters will most likely have all the code within this method. Type it in, see what happens. When you start feeling comfortable, start experimenting a bit. The book should provide some further guidance. In order to type in the code from the book, you need to start by creating a Visual C# Console app project. 1) Click "File\New\Project..." 2) Under Installed Templates, expand "Visual C#" and click "Windows" 3) Click the "Console Application" template. 4) Enter a project name, choose the location and press "OK". When the project is created, the Program.cs file will open and you'll be left with something like: Code: namespace ConsoleApplication1 { class Program { static void Main(string[] args) { } } } Put your code inside the Main method and you're off and running. namespace ConsoleApplication1 { class Program { static void Main(string[] args) { } } } Thank you guys for all your replies and support, i am really happy to receive all this comments in 1 day. I am really interested in programming and because my uni uses C# i started with it, but i was looking C++ I have "TY C# in 21 days" and "C# for students" and I'll go and get what have you guys recommended for me, thank you guys and I'll keep in touch and show you my works in the near future XD Arjay is the only one who understood the OP. Nite Nite. Originally Posted by viperbyte Arjay is the only one who understood the OP. Nite Nite. Bzzzzzzzzzzzzzzzzzzzzzzzzzz! WRONG (He did provide a more detailed explanation than me, though. ) Last edited by TheGreatCthulhu; May 9th, 2011 at 09:14 AM. That's right GreatCthulhu you also got it right. Seems like I'm also a victim of of just glancing over. Funny how we all write code which is very detailed oriented, especially in a case sensitive language and we just glance stuff over that's much less demanding. Forum Rules
http://forums.codeguru.com/showthread.php?511932-See-whether-mouse-is-on-a-link-web-browser&goto=nextoldest
CC-MAIN-2016-07
refinedweb
1,525
80.21
Down and Dirty: .NET Task Parallel Library (Multithreading in a Multicore World) WEBINAR: On-Demand How to Boost Database Development Productivity on Linux, Docker, and Kubernetes with Microsoft SQL Server 2017 Multithreaded programming can be a real pain. In the old days, we have to deal with creating and managing threads. It was a chore. However, the .NET Task Parallel Library (TPL) makes programming asynchronous operations, the usual work of threads, a lot less painful and a lot more fun. This is a Down and Dirty article. The goal here is to give you the basics you need to be operational in TPL programming without a lot of theoretical overhead. The article is meant to be fast and simple. You're going get some basic concepts while looking a lot of code. Then, if you feel inspired, you can look to other references to get the details you need to dive more deeply into TPL. To get full benefit from reading this article, we expect that you can read and program in C#. Also, we assume that you understand the basics of lambda expressions and generics. If you have these basics, you are ready to get down and dirty. Understanding a Task Before you go anywhere with TPL, you need to understand the shortcomings of .NET thread programming. The benefit of using multiple threads is that you to do concurrent programming. Methods in a single threaded environment run sequentially. In a multithreaded environment, methods can run simultaneously (see Figure 1). Figure 1: Methods run sequentially in a single thread; concurrently in a multithreaded environment Where threading becomes really powerful is on computers having many cores. (Think of a core as a CPU.) Theoretically, when you create multiple threads, the operating system is supposed to assign each thread to a core. In reality, in .NET when you use a Thread object, sometimes the thread runs on a distinct core and sometimes it doesn't (see Figure 2). Figure 2: Sometimes, a .NET Thread will not run on its own thread. TPL makes it so that you can do reliable multithread programming across multiple cores. All Cores, All the Time The Task Parallel Library introduced in .NET 4.5 has automagic that allows you to spawn threads that really do get assigned to a distinct core (see Figure 3). Figure 3: The Task Parallel Library ensures that threads get assigned to cores, when available. The way that .NET and the Task Parallel Library fixed this thread issue is to create a thread mechanism called a Task. You can think of Task as an asynchronous operation. Not only do you get the execution isolation that comes with threading, you get functionality that makes programming threads a lot easier. Working with a Task As mentioned earlier, a Task describes an asynchronous operation. When you start a Task, you'll pass the Task a lambda expression that indicates the behavior the Task is to execute. That lambda expression can go to a named method or an anonymous method. There are a few ways to create and run a Task. One way is to use the static method Task.Run(). The method SendDefaultMethod() in the class DownAndDirtyMessenger shown in Listing 1 illustrates how to use Task.Run. (The class, DownAndDirtyMessenger, is the code example that we'll use throughout this article.) The method SendDefaultMessage() uses Task.Run() to start a Task that runs the method SimpleSend(), asynchronously. Task.Run() takes as an argument a lambda expression that goes to SimpleSend(). Also, the Task that is created is returned by the method, SendDefaultMessage(). This Task is passed to any code that calls DownAndDirtyMessenger.SendDefaultMessage(). Working with the Task returned by SendDefaultMessage() is addressed later in this article. namespace reselbob.demos.tpl { public class DownAndDirtyMessenger { private string _defaultMessage = "Default Message"; private void SimpleSend() { Console.WriteLine(_defaultMessage); } public Task SendDefaultMessage() { return Task.Run(() => SimpleSend()); } . . . } Listing 1: You create a Task with a lambda expression. Using Anonymous Methods in a Task Another way start a Task is by using a Task.Factory, as shown in Listing 2. public Task<string> SendMessage(string message, int secondsToWait = 1) { Task<string> task = Task.Factory.StartNew(() => { //start anonymous method here var msg = message; if (string.IsNullOrEmpty(message)) msg = _defaultMessage; var inTime = DateTime.Now; Thread.Sleep(secondsToWait * 1000); var rtn = string.Format("I am sending this Message:{0} from within the Tasks, Time in: {1}, Time out: {2}", msg, inTime.ToString(_fmt), DateTime.Now.ToString(_fmt)); Console.WriteLine(rtn); return rtn; //return the string as the TResult }); return task; } Listing 2: You can define the entire behavior of a given Task within the lambda expression argument. Let take a close look at two parts of Listing 2, the method signature and the execution of an anonymous method that the lambda expression goes to. First, the method signature. public Task<string> SendMessage(string message, int secondsToWait = 1){......} Notice, please, that SendMessage() returns a generic, Task<string>. What's really going here is that .NET is saying that the method SendMessage() is going to return a Task with a TResult of type, string. What is a TResult? Hang tight; we'll get to TResult shortly. Let's move on the second part, the anonymous method used in the lambda expression. Whereas in Listing 1, we created a Task that had a lambda expression that goes to a named method, SimpleSend(), in Listing 2 the lambda expression goes to an anonymous method. Also, the anonymous method returns a string. This returned string is the TResult that is defined as the return type of SendMessage(), the type, Task<string>. Let's take a closer look at TResult. Working with TResult Let's look at a simple method signature: public int AddNumbers(int x, int y){return x +y;}; It's pretty straightforward. We have a method, AddNumbers(), that returns a simple type, int. However, when we deal with a method that returns a Task object, we have to do things a bit differently. The way you define a Task that returns a result is: Task<TResult> WHERE TResult is the type returned by the asynchronous operation. Let's look again at the method signature for SendMessage(). public Task<string> SendMessage(string message, int secondsToWait = 1) Remember, that a Task represents an asynchronous operation. So, the return from SendMessage() is a reference to the Task it created. But, if we remember back to Listing 2, the anonymous method in SendMessage() returned a string. How can this happen, a method having two return types? Well, not really. Remember, the return type for SendMessage() is: Task<string>. It's generic in which the string is the TResult of the Task. So, when we declare a return type of Task<string>, what we are saying is "return a Task with a TResult of type, string." The property, Task.Result, is where the TResult lives. Listing 3 shows how we can access the TResult of a Task, when used in a ContinueWith() method. (ContinueWith() is a method of a Task that gets executed when the Task completes.) var messenger = new DownAndDirtyMessenger(); var task = messenger.SendMessage(null); task.ContinueWith((t) => { Console.WriteLine("The TResult value is: " + t.Result); }); Listing 3: TPL automagically passes the Task into the ContinueWith() lambda expression as the parameter, t One of the nice things about TResult is that can create a custom class to be used as your TResult type. Listing 4 shows a class, MessengerResult, that represents a custom class for the TResult that is used by the demonstration class, DownAndDirtyMessenger. using System; namespace reselbob.demos.tpl { public enum SendStatus { Success, Fail } public class MessengerResult { public string Message { get; set; } public DateTime SendTime { get; set; } public DateTime ReceivedTime { get; set; } public SendStatus SendStatus { get; set; } } } Listing 4: You can create a custom class for your TResult Listing 5 shows you how to use a custom class as TResult. The method, SendMessageEx(), declares a return type of Task<MessengerResult>. The class, MessengerResult, is the TResult of the returned Task. public Task<MessengerResult> SendMessageEx(string message, int secondsToWait = 1) { Task<MessengerResult> task = Task.Factory.StartNew(() => { var msg = message; if (string.IsNullOrEmpty(message)) msg = _defaultMessage; var inTime = DateTime.Now; // put in some time-consuming behavior Thread.Sleep(secondsToWait * 1000); var outTime = DateTime.Now; var rtn = string.Format(msg); return new MessengerResult { Message = msg, ReceivedTime = inTime, SendTime = outTime }; }); return task; } Listing 5: Using a custom class as a TResult Let's take a closer look at Task.ContinueWith() now. Using Task.ContinueWith() There are a number of properties and methods that allow you work with a given Task(see Figure 4). The method that allows you to react to a Task once it completes is ContinueWith(). Figure 4: A Task.ContinueWith() allows you to react to a Task's completion Task.ContinueWith() is very polymorphic, with a lot of argument permutations. The one that we are interested in is: public Task ContinueWith( Action<Task> continuationAction ) The variation shown above means that you can use an anonymous method within Task.ContinueWith(). Listing 6 shows an anonymous method within task.ContinueWith((t) => {....}. var messenger = new DownAndDirtyMessenger(); Task<MessengerResult> task = messenger.SendMessageEx("This is a secret message"); task.ContinueWith((t) => { var fmt = "H:mm:ss:fff"; Console.WriteLine("Message:{0} from within the Tasks, Time in: {1}, Time out: {2}, Status: {3}", t.Result.Message, t.Result.ReceivedTime.ToString(fmt), t.Result.SendTime.ToString(fmt), t.Result.SendStatus.ToString()); }); Listing 6: Using an anonymous method in Task.ContinueWith(); Notice, please, that the t passed as a parameter in the lambda expression represents the Task associated with the method, ContinueWith(). Because we can get at the Task, we can get the to TResult by way of the property, t.Result. Now, here is where it gets really interesting. Please remember that, in Listing 6, DownAndDirtyMessenger.SendMessageEx() returns a Task<MessengerResult>. The TResult of the Task returned by the method is type, MessengerResult. Thus, the type of the property, t.Result is MessageResult. We access the properties of the type, MessageResult, as follows: t.Result.ReceivedTime.ToString(fmt), t.Result.SendTime.ToString(fmt) t.Result.SendStatus.ToString()); The important thing to take away from all this is that Task.ContinueWith() allows you to react to a Task upon completion and that we can use a custom class as a TResult to get result information from a Task. Iteration with Parallel Loops The Task Parallel Library contains the class, Parallel. Parallel allows you to do asynchronous looping. We're going to look at three methods of the Parallel class. - Parallel.Invoke() - Parallel.For() - Parallel.ForEach() Each of these methods is highly polymorphic, with lots of parameterization. So for now, we're going to take a simple look at using each. After all, this is a Dirty and Dirty article, not a Deep and In-Depth. Parallel.Invoke() Parallel.Invoke() allows you to invoke methods asynchronously. Listing 7 shows you how to use Parallel.Invoke() to execute five methods simultaneously. Parallel.Invoke() is wrapped up in a method, SendSpam(). private string _fmt = "H:mm:ss:fff"; private void SimpleSend(string message) { Console.WriteLine(message + " at " + DateTime.Now.ToString(_fmt)); } public void SendSpam() { Parallel.Invoke( () => SimpleSend("Moe"), () => SimpleSend("Larry"), () => SimpleSend("Curly"), () => SimpleSend("Shemp"), () => SimpleSend("Joe Besser")); } Listing 7: Parallel.Invoke takes an array of lambda expressions asynchronously We call SendSpam() as follows: var messenger = new DownAndDirtyMessenger(); messenger.SendSpam(); The return of the call is a series of Console.Write statements, the output of which is shown below. Moe at 15:34:39:478 Larry at 15:34:39:482 Curly at 15:34:39:482 Shemp at 15:34:39:482 Joe Besser at 15:34:39:483 Notice that the timestamps of the line of output indicate that the run was almost simultaneous. Yes, we have two outliers. The machine that this code is running on is a two-core machine. So, we might chalk up the slowness of the two outliers to have maxed out the capacity of the machine's CPU. Parallel.For() Parallel.For() allows you to run items items in a for loop asynchronously. The syntax of the Parallel.For() statement is similar to a standard for loop, except the incrementer is implied, so that no i++ is needed. Listing 8 shows you Parallel.For() in action. public void SendMessages(string[] messages) { Parallel.For( 0, messages.Length, i => { SimpleSend(messages[i]); }); } Listing 8: Parallel.For() allows you to iterate over an array asynchronously The Parallel.For() in Listing 8 is wrapped in a method, SendMessages(string[] messages). Here is an example of calling the Parallel.For() by way of SendMessages(string[] messages). var messenger = new DownAndDirtyMessenger(); string[] messages = { "Hello There!", "Goodby There!", "Do you know the meaning of life?" }; messenger.SendMessages(messages); The outputs are shown below. Notice again that the method, SimpleSend(...), which is called in the Parallel.For executes almost simultaneously. The lag is probably due to my funky, old, two-core machine. Hello There! at 15:36:51:401 Goodby There! at 15:36:51: Do you know the meaning of life? at 15:36:51:405 Parallel.ForEach() Parallel.ForEach allows you to iterate through collections. Listing 9 shows SendMessages(IEnumerable<string> messages), which is a wrapper for Parallel.ForEach(...). public void SendMessages(IEnumerable<string> messages) { Parallel.ForEach(messages, message => { Console.WriteLine(message + " at " + DateTime.Now.ToString(_fmt)); }); } Listing 9: Parallel.ForEach(...) iterates over collections. We call SendMessage like so: var messenger = new DownAndDirtyMessenger(); IEnumerable<string> messages = new List<string> { "Hi Moe", "Hi Larry", "Hi Curly", "Hi Shemp", "Hi Joe Besser" }; messenger.SendMessages(messages); And the output is shown below: Hi Moe at 15:39:19:682 Hi Larry at 15:39:19:685 Hi Curly at 15:39:19:686 Hi Shemp at 15:39:19:686 Hi Joe Besser at 15:39:19:686 Again, near simultaneous calls, weirdness due to my machine. Putting It All Together This has been a typical Down and Dirty Session. We've covered a lot. You learned how to get up and running using the Task object and you looked at using the Parallel class to iterate asynchronously. There is little doubt about it, the Task Parallel Library makes asynchronous programming in .NET a whole lot easier than it was in years prior. Still, the technology is broad. You'll need some time get accustomed to it. I hope that you give yourself the time because, once you do, a whole new way of thinking in code will open up to you. Get the Code The code for this article consists of a .NET solution that contains the DownAndDirtyMessenger demo project and a unit test project that runs the DownAndDirtyMessenger project discussed in this article. You can get the code from the Download link at the bottom of this article. Learn More If you want more about TPL and parallelization, check out Microsoft's three-part series on Channel 9. There are no comments yet. Be the first to comment!
https://www.codeguru.com/csharp/csharp/cs_misc/down-and-dirty-.net-task-parallel-library-multithreading-in-a-multicore-world.html
CC-MAIN-2018-05
refinedweb
2,486
59.6
Regardless if you Flex or Flash, I ran into a porting issue with a Flashcom app I wrote in Flex 1.5 & ActionScript 2. A lot of the server-side code, which is written in case sensitive JavaScript 1, utilizes the Flashcom Component Framework. This framework utilizes a namespace scheme to allow clients to identify server components, and server components to identify client components. This allows them to send messages to each other, and works really well… …except in Flash Player 9. For some reason, the namespace mechanism doesn’t work for ActionScript 3 classes. This isn’t a big deal for playing existing content. All of my existing Flashcom apps I wrote in Flash MX 2004 & Flex 1.5 (Flash Player 7) still run just fine in Flash Player 9 in both Firefox & IE. It’s when you have a server-side script do a NetConnection.call on an Flash Player 9 created SWF that things don’t work. You CAN call a method that your class has defined as public assuming you point the NetConnection’s client property to your class; protected and private don’t work. However, the namespace mechanism commonly used in ActionScript 2 doesn’t work with the server; it constantly reports method not found. You’d typically decorate the client side NetConnection object reference that you’re component got passed in via it’s loose interface “connect” method. This decoration with the namespaces pointing to your component allowed the server-side to find it. The server-side Flashcom Component Framework already has a built-in namespace mechanism that still works just fine. You can emulate this by extending NetConnection, and making the class dynamic. Still, you’ll get the method not found error. My only guess at the problem is I think it has to do with the lack of support of “slash syntax”. I’m not sure the new ActionScript Virtual Machine supports it. I know AVM does; it’s how Flash Player 4 SWF’s will work the same as they always have. However, it seems the FCS Component Framework utilizes this behind the scenes somehow. When you do this on the server-side: nc.call ( this.callPrefix + “method” ); You’re basically going: nc.call ( “YourComponent/InstanceName/method” ); …I guess. I gave up after 3 nights of trying to get it to work. I didn’t mind porting client code, but I didn’t want to port server-side code. Anyway, fix for me is to pass in the callPrefix as the first parameter to the method, and have the client side Observer class just parse out “who this message goes to”. If you get it to work on your end, drop a note in the comments. I’m using Flex 2 & FCS 1.5 on Windows via Flash Player 9 in Firefox 1.5. Server-Side FFmpeg Converter: Flash, ARP, & SWFStudio Preface As part of my Flash & Flex speech I’ve been giving throughout the year, I wanted to create a real-world app where you would want utilize Flash & Flex together. Back in late July, I started creating a YouTube… Jesse Warden - Flash, Flex, and Component Developer September 2nd, 2006 Hello Jesse, Thanks for posting this message. I’ve been at it porting an FMS application to Actionscript 3.0 and Flex for a week and couldn’t get the method calls with NetConnection to work. It’s consoling that I’m not the only one having problems. I’m using Influxis as a hosting, so there’s no easy way to circumvent the object decoration that is used as a namespace mechanism: The standard components use the /-substitution and cannot be overriden, unless I rewrite the whole component framework. When I use a dynamic class as client for the NetConnection object on the client-side, the debugger never complains when it cannot find a method, so this isn’t very helpful. Next, I tried to use a static class and yes, the debugger signals an exception when a method cannot be found, but only if the server-side call was not decorated with class and instance. Then, I tried to extend the Proxy class and use it as a client object for NetConnection to see what exactly is happening on the client side. Unfortunately to no avail. It seems like the method calls with slashes in them are just plainly ignored by Flash Player 9. The experiment with Proxy did reveil something interesting, though. It turns out that Flash Player 9 doesn’t actually ‘call’ the function on the client object. Instead, it ‘get’s the function as a property and then calls it as a method on some different object. It’s a mistery to me how Flash Player decides what object to call the method on, but it looks like it has to do with the last created instance of the class that the method belongs to. Well, I hope this gives some avenues of inquiry for other readers and that some of you may shed some light on this. Sander Kruger November 6th, 2006 Not sure if I blogged it, but can’t find the link now. Bottom line, you just change the this.callPrefix on the server-side for client.call’s. Then, you have the client parse this string and dispatch the calls to the components manually. So, this: client.call(this.callPrefix + ‘method’, null); becomes: client.call(’method’, null, this.callPrefix); You then have your client property, typically a class, handle the routing. See the comments in the previous post. JesterXL November 6th, 2006 I could get the server calls to the client working fine using the method that JesterXL described like this. application.onConnect(myclient) { this.acceptConnection(myclient); myclient(”methodToCall”, null, args); } on the client side I did have to define the method being called as a method in an external public class and pass it to the client property of the NetConnection object like this: //external class package{ public ExternalClass{ public ExternalClass(){ //empty constructor } public methodToCall(args) { trace(args); } } } in the main timeline of the client swf var newPublicObject:ExternalClass = new ExternalClass(); var my_nc:NetConnection = new NetConnection(); my_nc.client = newPublicObject; my_nc.connect(rtmp://); This all works fine, but I cannot get any call to work where the client calls a server method. According to the documentation, you have to define the server side method on the Client Object that is passed to the onConnect Event in the application main.asc. That right there sounds like a name space problem to me, since that is also where you call client side methods right? It is supposed to go something like this on the server side: application.onConnect(myclient) { this.acceptConnection(myclient); myclient.methodToCall = function() { return “someString”; } } The client swf calls the method using the NetConnection call method: my_nc.call(”methodToCall”,null, args); the second parameter is a Responder Class object that you can define. It is used to set up functions to handle return values if the call succeeds or fails like this: var myResponder:Responder = new Responder(successFunction, failFunction); so you could change the NetConnection call to my_nc.call(”methodToCall”,myResponder,args); If the call fails it sends a return object to the failFunction that has three properties… level code description - This one tells you why it failed so you can set up the failFunction like this: function failFunction(e:Object) { //Note that the return object is just a generic object not an error object trace(e.descriptoin); } This always traces as Method not found no matter how I try to define the method on the server side I have tried every method that they show in the server documentation and I can’t get the client to call a server side function. One guess was the AMF encoding so I set that to 0 for the earlier encoding method that is suppported by FMS 2 and that eliminated IO Errors being returned from the NetConnection object, but it did not solve the issue of callling server side functions. This is a big problem. I am going to try creating server side classes that might also solve the scoping issue on the server side the way it did on the client side and see if that works. Let me know if anyone solves this one. Thanks. Garth Gerstein November 7th, 2007
http://jessewarden.com/2006/07/porting-flashcom-applications-to-actionscript-3.html
crawl-001
refinedweb
1,390
61.87
From: Eric Niebler (eric_at_[hidden]) Date: 2006-10-29 02:27:49 To all those currently using the proto expression template toolkit at boost/xpressive/proto (all 2 of you, you know who you are), this is a heads up that the code has been rewritten, and the interfaces changed considerably. The changes have been committed to HEAD. The goals of the rewrite were many, but to sum up, the new code has a simpler, more uniform interface, integrates better with Fusion, and seamlessly supports ET nodes stored by value or reference. As a perk, xpressive now compiles 2x faster with vc7.1, and 25% faster with vc8. (No significant change with gcc.) The people most interested would be the Spirit people. The changes are specifically to make proto a better platform upon which to build Spirit-2. Now that I have an interface I can live with, I'm more inclined to write docs, and I will. The old proto v1 code from 1.34 now lives at boost/xpressive/proto/v1_ in the boost::proto1 namespace. -- Eric Niebler Boost Consulting Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk
http://lists.boost.org/Archives/boost/2006/10/112453.php
CC-MAIN-2014-42
refinedweb
204
76.01
Level of Detail¶ Using multiple levels of detail for a part of your scene can help improve performance. For example you could use LOD to simplify an Actor that is far away, saving on costly vertex skinning operations. Another use would be to combine several small objects into a simplified single object, or to apply a cheaper shader. LOD can also be used to hide objects when they are far away. Include file: #include "lodNode.h" To create an LODNode and NodePath: PT(LODNode) lod = new LODNode("my LOD node"); NodePath lod_np (lod); lod_np.reparent_to(render); To add a level of detail to the LODNode: lod->add_switch(50.0, 0.0); my_model.reparent_to LOD.
https://docs.panda3d.org/1.10/cpp/programming/models-and-actors/level-of-detail
CC-MAIN-2020-45
refinedweb
114
56.35
import java.io.*; class squareRoot { public static void main(String args[])throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); System.out.println("Enter number"); int n = Integer.parseInt(br.readLine()); int sq = 0; for(int i=1; i<(n/2); i++) { if((i*i) == n) { sq = i; break; } } if(sq == 0) System.out.println("Not a perfect square"); else System.out.println("Square root = " + sq); } } But this would calculate the square root of a perfect square like 25 or 36 only. So how should I write some code which can calculate the square root of any number? Maybe I could use double type variables for i (loop variable) and sq, and increase i by something like 0.001. But this would make the program highly ineffiecient and time-consuming and still incompetent for some numbers. This post has been edited by adhish94: 10 August 2010 - 03:17 AM
http://www.dreamincode.net/forums/topic/185347-calculating-square-root/
CC-MAIN-2016-50
refinedweb
150
66.13
DataGrid Footers Ever notice that the DataGrid has headers but no footers? That's because footers have to be computed if they are totals or averages or whatever and we wanted to leave that for advanced datagrids in a future release. Lately, due to some other work we're doing for 3.0, I've been wondering whether footers, headers and locked columns and rows should be part of the chrome instead of the main set of cells. If so, it is possible to create footers in 2.0.1 today by subclassing DataGrid and making a special Border that can put renderers in the border. Here's an example that computes the average of the price column. Usual caveats apply. You can see how one could do column headers that way, or add headers to Tree for a TreeDataGrid. Now, if the renderers are in the chrome, they are not part of the selection model, and they should probably not renderer data from the dataprovider per-se. So I'd be interested in knowing: 1) If you have used lockedColumns or lockedRows today, what have you used them for? 2) Did you want the lockedColumns or lockedRows to be selectable? Editable? 3) Did you do this to get more header rows/columns or to display data from the dataprovider? Your post is very timely. I'm actually in the process of building a custom component that allows for fixed, hierarchical headings (such as those you'd see in a pivot table). For example, the column headings could show quarters grouped by years and the rows might be products grouped by categories. So far, I've got the row and column header hierarchy rendered in two separate mx:Grids (not DataGrid), taking advantage of rowSpan and colSpan (similar to Excel's merged cells). The guts of the table uses an mx:DataGrid with some specialized ItemRenderers that delegate rendering based on the data passed in (think: charts and aggregations). I'm in the process of synching up the header GridItem dimensions with the corresponding data table cells and listening for scroll events on the main table to move the headers accordingly for the "fixed" effect. Any suggestions or further code samples would be much appreciated. ------------- I wish I had more time to keep pumping out examples, but we're in a busy period right now. Remember that the scrollEvent is propagated from the DataGrid so you can catch it and see what it did. Good luck. Posted by: Justin Makeig | May 3, 2007 3:54 PM Hi Alex, Its a really nice custom control. Is there any way by which, footer columns can also be resized and re-ordered based on the header? What is the best approach to do this? Regards, Sumanth ------------ I think if you call invalidateDisplayLIst on the border it should reset to the new sizes/order. -Alex Posted by: Sumanth | May 8, 2007 8:29 AM I really hope that locked columns, subheads/summary rows,and parent child relationships are considered in a future version of the datagrid. I've seen crazy implementations of datagrids within lists, single column rows with custom renderers that use different component depending on data and other crazy things, but they are universally UGLY. Seems to me these items are now minimum requirements for a grid component. ---------------- Well, I wouldn't say minimum, but yes, we are hard at work on those features. -Alex Posted by: Sean OToole | May 8, 2007 5:48 PM For some reason the vertical lines are not drawing in the footer for me. They work in your example, but not when I integrate the ideas into my code. My hunch is that the overlay object is being obscured by something else, leaving a plain white area. I see the labels though in the footer, which leaves me confused. I realize it's hard to answer without looking at how I've used your ideas, but do you have any thoughts on what would make the overlay not show the vertical lines? -------------------- These kinds of problems can be hard to debug. I normally break on a mouse event and use the debugger to walk down through the variables and introspect the display objects. For instance, the overlay variable should show how big it is and how many children it has. You can also turn off the visibility of the renderers in case they are hiding the overlay. In the example, the line color comes from styles. You might want to debug through or trace out that you got the right color and boolean as to whether to draw them. Good luck. Posted by: Greg | May 16, 2007 2:43 PM I was unable to find out why the vertical lines were not drawing in the footer. I had already done some of the things that you suggested (line color/style, steping through to make sure it draws, etc), but not all of them. Ultimately I decided not to use this solution for column aggregates because when the DataGrid has a horizontal scrollbar, the scrollbar appears between the content and the footer. Instead I opted for putting the aggregates in a locked first row. Doing so was simple, modulo small behaviors like having to customize the sort functions to keep the aggregate row on top. Ultimately, it would be very nice if the DataGrid supported the concept of locked aggregate rows that appeared either on the top or bottom of the grid. -------------- Yeah, it won't work with horizontal scrollbar. It turns out that we're refactoring DataGrid for the next release to do something like this, but instead of adding them to the border, we'll be adding them to sub-"containers" in the DG. Good luck, -Alex Posted by: Greg | May 17, 2007 11:59 AM When can we expect feature of locked initial mutiple rows in Flex. Right now, lockedrow feature is locking the chrome but not the data. Therefore, when we sort new data appear in the locked rows. ----------------------- I don't think we've planned for that. It sounds like you want the sort not to affect some number of initial rows? To me, that sounds like the initial rows aren't really part of the data, but other header like things. One way to handle that is to wrap the original data in another collection that prepends the initial rows. Maybe I'll get around to an example of that. In the next major release, it might be easier to set such a thing up, but it won't be "automatic" Posted by: Shaishav | May 23, 2007 10:46 PM Hello, I tried to adapt you method to a datagrid I am currently developping, however I have problems when setting a custom renderer for the footer. The application goes into an infinite loop on the updateDislplayList method of the border object. Did you also encounter that problem ? --------------- Gee, it's been so long I don't remember. However this is a common problem where the renderer causes the parent to think its size changed. Check your measure functions to make sure they don't change their mind or set an explicit width. You may also need to trap invalidation calls on the renderer so it doesn't dirty the parent. Posted by: Vive | June 7, 2007 1:55 PM Well i'm using this component, but frecuently I get this error message when run the application. TypeError: Error #1009: No se puede acceder a una propiedad o a un método de una referencia a un objeto nulo. at ArenaComponents.FootDataGrid::FooterBorder/ArenaComponents.FootDataGrid:FooterBorder::updateDisplayList() at mx.core::UIComponent/validateDisplayList() at mx.managers::LayoutManager/validateClient() at mx.core::UIComponent/validateNow() at mx.controls.dataGridClasses::DataGridBase/mx.controls.dataGridClasses:DataGridBase::drawItem() at mx.controls.dataGridClasses::DataGridBase/mx.controls.dataGridClasses:DataGridBase::makeRowsAndColumns() at mx.controls::DataGrid/mx.controls:DataGrid::makeRowsAndColumns() at mx.controls.listClasses::ListBase/mx.controls.listClasses:ListBase::updateDisplayList() at mx.controls::DataGrid/mx.controls:DataGrid:() ------------ Like I said, there could be bugs. You'll have to debug into it and see what went wrong and add code to protect against this error. Good luck, Posted by: Pedro Varela | June 8, 2007 12:43 PM Hi Alex, Thanks for posting your code. I have used it and, as a Flex beginner, have a simple (I guess) question. I have set the datagrid to be editable. Now I would like to have the average value to be updated each time any cell is changed by the user. I caught the itemEditEdit(event) method but don't then what to do :-( Any help/comment would be appreciated if you have a couple of seconds to reply. Thanks a lot, Fabrice. ------------------------------ In theory, if you call invalidateDisplayLIst on the footer it should redraw and compute your new values. Posted by: Fabrice | June 19, 2007 1:06 AM Alex, I have the same problem as Fabrice and would like to trigger the labelfunction to refresh itself on the itemEditEnd method. I called the invalidateDisplayList but it does not call the averageFunction. Any other thoughts? ------------- Are you sure you called invalidateDisplayList on the footer? Calling it on the DataGrid won't have any effect. I don't have time to try it right now, but that should do it. Posted by: Doug | July 3, 2007 2:22 PM Hi Alex, Thank you very much for this extremely useful code! But may I ask you to be a little more specific on your previous comment? How do we call invalidateDisplayList on the footer? My datagrid displays information which changes depending on the state of a ComboBox, and the footer should be updated accordingly. Thank you very much for your answer! -------------------- it should be border.invalidateDisplayList() Border is protected so you have to be in the FooterDataGrid code, or add a method to FooterDataGrid so you can call it from the outside. Posted by: Cedric | July 18, 2007 2:15 AM Hi Alex, Thanks for all your great inputs. I'm trying to crate 2 DataGrids that affect each other’s selectedItems. The dataProvider is the same and presorted. The user select lines in one datagrid and this affects the selected items in the second DataGrid. I've tried to use data binding on selectedItems, and on change (or click) event change the binding Array. This worked only in one direction. Any thoughts? ------------------ I would not use binding. Simply listen for change events from each DG and update the selectedIndex of the other DG. Posted by: Hadi | July 19, 2007 5:19 AM Do you know of any way of having row headers in the same way there are column headers? Without putting the value in the dataprovider.... --------------- In the next release this is supported so you may want to get the beta and try it out. For now, adding a dummy column with a labelFunction should allow you to have row headers. Posted by: Alex Woods | August 1, 2007 9:03 AM The FooterDataGrid produces the error message "Property col1 not found on FooterDataGridColumn and there is no default value" when complex components such as checkboxes are used in an editable datagrid. The error message is being generated in SPSFooterBorder:updateDisplayList() method. ----------------- CheckBox and lots of other components are not valid header renderers without some subclassing. You can see how I modified ComboBox in another blog post to be a header renderer and work from there. Posted by: David | August 7, 2007 8:18 AM Let me rephrase my question with regard to complex components in a FooterDataGrid. I would like to create a DataGrid that has two columns: 1. An editable column with CheckBoxes. 2. A not editable column consisting of numbers. I would like to add a Footer that does not have any complex components. The first column would be blank and the second column has the total of all the numbers. Please advise on how I could tweak the FooterDataGrid. ------------ I would put a labelFunction that returns " " for the checkbox column. Posted by: David Grabell | August 8, 2007 12:06 PM Hi, I'd like to see a locked row that can be editable. It would be nice to add a row of filters. How can I do that? Thanks. -------------------- Are you saying the footer should be editable? You can certainly make the header be a ComboBox or TextInput by borrowing from the CheckBoxHeader example. If you want the footer to be editable, it is doable but much harder. I'd go with headers. Posted by: Karl | August 8, 2007 3:10 PM Dear Alex, I came across what seems to be a well hidden bug in your code. My Flex application takes the whole window and when I was resizing it, it used to crash with the following error: TypeError: Error #1009: Cannot access a property or method of a null object reference. at FooterBorder/FooterBorder::updateDisplayList()[C:\dev\spg\tamsDashboard\dev\flex\Dashboard;;FooterBorder.as:113] After some time, I figured out that this was due to a rounding error: in the while statement of line 83, xx was 424.999999999994 and w - wv.right 425. At that point, the while loop should actually have stopped, but it wouldn't because of the rounding error. I fixed it by writing: while (int(xx + 0.5) instead. Regards Cedric ------------------ Like I said, these things are not guaranteed. Thanks for working through it. Posted by: Cedric Schaller | August 21, 2007 8:29 AM I like what you have done. I tried a number of things prior to posting, but haven't solved the problem. The grid I have is populated from an external data set like so; grdVendorSummary.dataProvider = acVendorSummary; The user has the ability to select a new set of records, and re-execute this line. The totals in the footer do not change, I am using the a labelFunction to populate them. What would you recommend to resolve this? Posted by: Paul | August 23, 2007 11:11 PM Alex: I must be dumb as dirt cause I can't figure out where/how to put the "border.invalidateDisplayList();" code into my app. I have tried putting it directly in the app, adding a function called refereshBorder() to FooterDataGrid, and calling it from my app, etc. Based on your previous comments, I assumed the latter way would be correct, but I get a compile time error 1061 on invalidateDisplayList through IFlexObject. If you would revisit this one more time I would appreciate it. I need to be able to refresh some totals when they are calculated. Paul Posted by: Paul | September 3, 2007 1:48 PM Alex: Well, perhaps I am at least as smart as a good sandy loam. I was able to solve the problem, but I would like to believe there is a better approach. I created a function; public function refreshBorder():void { this.updateDisplayList(0,0); } and put it into the FooterDataGrid class, and I call it whenever I need to refresh the data. I don't really like the "this.updateDisplayList(0,0);" bit, and hope someone can tell me the right way of doing it. Paul Posted by: Paul | September 3, 2007 2:39 PM After flailing about for a while longer, I realized that the code I posted just previously, while synchronizing the footer charmingly, seems to make the header disappear. I think I have resolved that problem as well, but it still looks nasty to me. I present it here hoping that someone will show me the right way to do it; public function refreshBorder():void { if (this.measuredWidth + this.measuredHeight > 0) this.updateDisplayList(this.measuredWidth,this.measuredHeight); } Paul ---------------- I think it should just be: public function refreshBorder():void { this.invalidateDisplayList(); } Posted by: Paul | September 3, 2007 6:49 PM I thought I had tried that during my flailing about, but just to be sure, I tried again. I commented out my two lines; if (this.measuredWidth + this.measuredHeight > 0) this.updateDisplayList(this.measuredWidth,this.measuredHeight); and replace it with; this.invalidateDisplayList(); And while it did not give any errors, it didn't seem to work either. I put my code back and it seems to work every time. One question, is there a way to force this function to execute whenever the datagrid's data is updated? Paul ------------ strange. A call to invalidateDisplayList should result in a call to updateDisplayList. I would try hooking up a call to the border refresh in an override of invalidateDisplayList on the DataGrid Posted by: Paul | September 6, 2007 12:29 PM Worked like a charm. Keep up the great work. Thanks! Posted by: sonu | September 12, 2007 12:20 PM Hello, i use actionscript to generate a DataGrid: var tableMain:DataGrid = new DataGrid(); var fields; [...] But i have problems to generate the FooterDataGrid with Actionscript! I've used these two examples, but it doesn't work: var tableMain:FooterDataGrid = new FooterDataGrid(); var fieldsDataGrid:Array = new Array(); for ( var j:uint = 0; j fieldsDataGrid[j] = new FooterDat; [...] var tableMain:FooterDataGrid = new FooterDataGrid(); var fieldsDataGrid:Array = new Array(); var fieldsFooter; fieldsFooterDataGrid[j] = new FooterDataGridColumn(); fieldsFooterDataGrid[j].footerColumn = fieldsDataGrid[j]; } tableMain.columns = fieldsFooterDataGrid; [...] Have anyone a idea to solve my problem! ----------------- What didn't work? Posted by: Stefan Wisskirchen | September 25, 2007 6:07 AM Following code doesn't work? [...] fieldsDataGrid[j] = new DataGridColumn(); [...] fieldsFooterDataGrid[j] = new FooterDataGridColumn(); fieldsFooterDataGrid[j].footerColumn = fieldsDataGrid[j]; [...] tableMain.columns = fieldsFooterDataGrid; But I don't know why? Thank you for your help ----------- It's hard to tell from this w/o knowing what error you are getting. Please post your questions on FlexCoders as a few others have used this successfully and may be able to help as well. Post more code and what error you are getting. Posted by: Stefan Wisskirchen | October 4, 2007 5:51 AM You mentioned in response to an earlier post that Row Headers in a dataGrid are supported in Flex 3. I have downloaded the beta, but can not find how to enable Row Headers in a dataGrid. Can you please explain? --------------- It should be in AdvancedDataGrid Posted by: Jon | October 11, 2007 6:56 AM There's been a couple of comments relating to problems dynamically using FooterDataGrid with AS. As far as I can see, the problem is that in your example you've wrapped DataGridColumns in FooterDataGridColumns - something they haven't replicated in the AS, and indeed cannot (? - note I'm fairly new to Flex) because we can't do .addChild on the FooterDataGridColumn. My solution involved adding a footerLabelFunction property to the FooterDataGridColumn and editing FooterBorder to utilise this. Then the DataGridColumn's can be left out. -------------- You can do anything in AS that you can do in MXML, so that can't be the issue. I think it just isn't clear how to get the footer to update. It should just be a call to border.invalidateDisplayList(). Posted by: Paddy | October 22, 2007 7:57 AM - actually I left footerColumn in so as to not have to play around with the renderer. public class FooterDataGridColumn extends DataGridColumn { public function FooterDataGridColumn() { super(); footerColumn = new DataGridColumn(); footerColumn.headerText = this.headerText; footerColumn.dataField = this.dataField; footerColumn.labelFunction = footerLabelFunction; } public var footerColumn:DataGridColumn; public var footerLabelFunction:Function; } Posted by: Paddy | October 22, 2007 8:02 AM Alex, thanks for this nice example. Unfortunately, I have a datagrid that needs to be scrolled horizontally. I saw that Greg mentioned another approach that sounds like the way to go for me right now. But I don't know how to get in touch with Greg. Do you? I am also currently looking into the AdvancedDataGrid in Flex3Beta2 and are disappointed that the summary row can only be used on hierarchical data grouping. I have a straight forward flat datagrid that needs to display aggregates for some columns. I hope that the simple case (flat data) with aggregates will be implemented as well.. Thanks for any help you might be able to provide me . ---------------------- In theory, you can add a footer ListBaseContentHolder to a subclass of DG in 3.0, but I haven't proven it out. Posted by: Daniela | November 7, 2007 5:56 PM the datagrid footer headertext can't be dynamically change after first initialized, even using data binding also wont be work! ----------------- It should be a matter of calling invalidateDisplayList on the border Posted by: takiz | December 7, 2007 12:07 AM Thanks for the code! I belive i can contribute with something too: Footer resizing. Apply this changes to FooterDataGrid class import mx.core.UIComponent; ... private function footerColumnStretch(ev:DataGridEvent):void { (border as UIComponent).invalidateDisplayList(); } public function FooterDataGrid() { super(); this.addEventListener(DataGridEvent.COLUMN_STRETCH, footerColumnStretch); } BTW: Not quite shure if the cast to UIComponent is the best choice but it works for me. Regards, António Inácio Posted by: António Inácio | December 13, 2007 9:50 AM i modified it and used it onto a AdvancedDataGrid (flex3), everything is fine but except i attempts to refresh the footer border, althought i have call invalidateDisplayList to refresh it. doesn't it worked fine on ADG? ------------- Haven't tried it on ADG. I would implement something completely different in Flex 3. I haven't had time to create the example yet. Posted by: takiz | January 3, 2008 9:19 PM i had one DropDown on form.On it's selectedIndexchanged i have to fill the dropdown in footer of the grid control if any one had the solution for it then told me ------------------ Find a way so the dropdown in the footer knows about the one in the form. A subclass could have an extra property that gets filled in by the property bag on the classFactory that references the dropdown in the form. Posted by: Pranoti Patil | January 9, 2008 2:46 AM i have used the footer. it really nice and help me lot. but when ever i define any renderer in datagridcolumn then code seem not to be working. Niether it give error message nor screen. it seem that code goes in an infinite loop. what is reason for that. ---------------- Not sure. You'll have to debug into it and see what is going on. Posted by: Praveen kumar | February 4, 2008 3:02 AM I have applied the footer to the ADG and it works great, besides some minor issues. (resize the columns so that you see only part of the last column, the vertical lines or the footer text are rendered outside the datagrid boundaries) But i am curious about your comment "I would implement something completely different in Flex 3. I haven't had time to create the example yet." Why and how would you do this ? --------------- In Flex 3, we refactored DG to have separate containers for the locked columns, rows, etc. This should make it easier to add a footer container which would then show up correctly when the horizontalScrollBar is used. Posted by: Srikanth | February 6, 2008 9:16 AM I tried this great work with my own customized ItemRenderer. I set the ItemRenderer for each column of the DataGrid. Unfortunately it doesn't work. It seems that the value passed to the ItemRenderer is not set correctly in my case. I am sure that the ItemRenderer I use is working correctly before I use the FooterDataGrid. So I am wondering has anybody been making the footer work successfully with customized ItemRenderer? Do we need to change any code? Thanks. :) --------------------- A custom renderer in the footer has to understand that the .data property is the FooterDataGridColumn and use that to display the correct information Posted by: Charles | February 11, 2008 3:05 PM I'm looking to extend the ADG to support a footer row at the bottom that behaves like the headers; I don't necessarily need to access data from the dataProvider (but I think this sort of functionality might be desirable in many cases). I'd rather not hijack the border if possible. You mention that you'd use a different approach for the ADG in Flex 3, perhaps using ListBaseContentHolder. Any chance you could give some more insight to point me in the right direction? Many thanks, Bryan ------------------------- Alex responds: I just posted a way to do this here: Posted by: Bryan | March 11, 2008 10:01 AM Hi Alex , nice article i am a flex newbie can u tell me how to determine the boundaries of a cell in advance datagrid i have been looking for it for quite some time now i guess we shud be using local X Y coordinates but am not really sure how to use it any help on it will be appreciated a lot thanks & Regards, Lisa -------------------------------- Alex responds: It is rare that you need to know the bounds of a cell from outside the cell. You might want to think about your design and approach to the problem. Normally renderers handle any special interaction and they know their bounds. If a subclass needs to help with interaction, usually that is handled in mouseEvent handlers and the event.target is used to determine the bounds. You might have better luck posting your question on FlexCoders. Posted by: Lisa | April 15, 2008 7:37 AM [...] Alex Harui deserves big credit for his proof-of-concept post on datagrid footers ... However, I found that it did not support multiple rows (I needed total AND average), and I noticed a few bugs when the width or height was set to 100%. Once I got started changing it, I couldn't stop, and the FooterDataGrid is the result. [...] Posted by: Sean Hess | July 23, 2008 2:38 PM Hi, i use your source..and it's fantastic, but i've a problem: how can i hide or not the footer column?? There is a way to set the visibility? Bye Marco ------------------------- Try setting it's visibile=false or maybe height=0 at the same time. Posted by: marco | January 30, 2009 9:19 AM var newCols:Array = dataGrid.columns; var cols:Array = new Array(); var visibleCol:Number = 0 for (visibleCol;visibleCol { if(newCols[visibleCol].visible == true) { cols.push(newCols[visibleCol]); } } This peice of code did the trick for me for hiding the columns.For all those people who are facing a problem with hiding the columns using visible property of Datagrid add this instead of var cols:Array = datagrid.columns in the DatagridFooter.as Posted by: Sunil | May 26, 2009 3:16 AM
http://blogs.adobe.com/aharui/2007/04/datagrid_footers.html
crawl-002
refinedweb
4,408
64.3
I'm using Open Watcom IDE. I have been following all the examples/tutorials I have found for creating a Windows DLL. I have very little experience of C programming, could anyone please give me a pointer to what I am doing wrong here? I have a Hello.c file in my project as:- When I compile I get lots of errors, the first few being:-When I compile I get lots of errors, the first few being:-Code: #include <stdlib.h> #include <stdio.h> #include <windows.h> extern "C" { __declspec(dllexport) double GetNumberFromDLL() { return 50; } } "Invalid Declarator" error on the extern Expecting ';' but found 'C' Expecting data or function declaration, but found 'string'
http://cboard.cprogramming.com/c-programming/112215-first-windows-dll-printable-thread.html
CC-MAIN-2014-35
refinedweb
114
66.64
Qt Quick Controls QML Types Qt Quick Controls provides QML types for creating user interfaces. These QML types work in conjunction with Qt Quick and Qt Quick Layouts. Qt Quick Controls QML types can be imported into your application using the following import statement in your .qml file: import QtQuick.Controls QML Types Using Qt Quick Controls types in property declarations As mentioned in Qt Quick Templates 2 QML Types, each type in Qt Quick Controls is backed by a C++ "template" type. These types are non-visual implementations of controls' logic and behavior. For example, the Menu type's API and behavior is defined by the C++ type in Qt Quick Templates. Each style that wants to provide a Menu must have a Menu.qml available, and the root item in that file must be the Menu from Qt Quick Templates. When you import QtQuick.Controls and create a Menu in QML, the type you get is actually the QML Menu defined by the style's Menu.qml. In order to use a control as the type in a property declaration, you should use the corresponding type from Qt Quick Templates. For example, suppose you had a PopupOpener component, which was a Button that opened a Popup: // PopupButton.qml import QtQuick.Controls Button { required property Popup popup onClicked: popup.open() } // main.qml PopupButton { popup: saveChangesDialog } Dialog { id: saveChangesDialog // ... } Running this code will result in an error: Unable to assign Dialog_QMLTYPE to Popup_QMLTYPE This is because of the inheritance hierarchy: Popup (C++ type in QtQuick.Templates) │ └── Popup (QML type in QtQuick.Controls) └── Dialog (C++ type in QtQuick.Templates) └── Dialog (QML type in QtQuick.Controls) Dialog from QtQuick.Controls does not derive from the Popup from QtQuick.Controls, but from QtQuick.Templates. Instead, use the Popup from Qt Quick Templates as the property type: // PopupButton.qml import QtQuick.Controls import QtQuick.Templates as T Button { required property T.Popup popup onClicked: popup.open() } For more information on the Qt Quick Controls module, see the Qt Quick Controls module documentation..
https://doc.qt.io/qt-6/qtquick-controls2-qmlmodule.html
CC-MAIN-2021-31
refinedweb
338
60.41
09 March 2012 10:43 [Source: ICIS news] SINGAPORE (ICIS)--India’s major polyvinyl chloride (PVC) producers have raised their domestic list prices for March by Indian rupees (Rs) 1.50/kg (Rs1,500/tonne, $30/tonne) because of recovering demand, weakening local currency and higher feedstock costs, market sources said on Friday. The upward adjustment came into effect on 8 March, with the latest list prices at Rs64.50-65/kg on a delivered (?xml:namespace> “Local demand is healthy now and is expected to increase further in April,” a major Indian producer said. “[The increase] is also cost-pushed,” said a second local producer, adding that local producers are under the pressure from the depreciation of the Indian rupee and spikes in costs of feedstock ethylene. Spot ethylene prices were assessed at an average of $1,300/tonne (€975/tonne) CFR (cost and freight) NE (northeast) Major PVC producers in ($1 = Rs50
http://www.icis.com/Articles/2012/03/09/9540000/india-pvc-producers-raise-prices-by-rs1.5kg-on-recovering.html
CC-MAIN-2014-52
refinedweb
154
51.48
A little bit of detail, this is a bare-bones screen, there are lots of buttons on it but the only button that works is the power button, the only input is has is dual link DVI, there are no speakers behind the speaker grills and you will need to supply your own power cable for the 110-220 power brick (a standard PSU one will suffice). However the panel itself is the exact same LG model that goes into the 27" iMac! So if you're like me and all you care about is the panel and the price its a steal. Mine came in with no dead pixels(!!!), some aren't so lucky but it seems the majority are. Different sellers have different policies but it seems that about 5 dead pixels are needed before they will take a return (you pay to ship it back) - unless they are in the center of the panel. My understanding is the since Apple only accepts "A" grade panels most of these screens are made from the rejected "A-" panels (but nothing worse) - but you wouldn't know it from looking at mine. The only complaint I have is that the plastic bezel on the top of mine covers a row or two of pixels for about 6" in the center - its only noticeable when you bring a window or other line to the top and expect it to be the same thickness all the way across. Its annoying but considering I was psyching myself up to be disappointed by a few dead/stuck pixels I'm still thrilled. If I was more adventurous its also something I'm sure could be fixed by cracking open the casing and tweaking the panel's placement... The colors, the colors! OMG, its just so beautiful, I had almost forgotten how good screens could look. Eyefinity who?
http://techreport.com/forums/viewtopic.php?p=1123129
CC-MAIN-2014-10
refinedweb
313
71.18
This post is inspired from a talk at python pune january meetup by Pradhavan. What are Context Managers? Here's what Python's official documentation says:, but can also be used by directly invoking their methods. – Python Docs But that's just covering all the bases. Let's understand a simplified version. Programmers work with external resources from time to time, like files, database connections, locks etc. Context managers allow us to manage those resources by specifying: - What to do when we acquire the resource, and - What to do when the resource gets released Why do we need Context Managers? Consider the following example: for _ in range(100000): file = open("foo.txt", "w") files.append(f) file.close() Notice that we're calling the close() method to ensure that the file descriptor is released every time. If we didn't do that, our OS would run out of its allowed limit to open file descriptors eventually. However, we write a more pythonic version of the above code using context manager: for _ in range(100000): with open("foo.txt", "r") as f: files.append(f) Here open("foo.txt", "r") is the context manager that gets activated using the with statement. Notice that we didn't need to explicitly close the file, the context manager took care of it for us. Similarly there are other predefined context managers in Python that makes our work easier. Can we define our own Context Manager? Yes. There are two ways to define a custom context manager: - Class based definition. - Function based definition. Class Based Context Managers Let's continue with our file example and try to define our own context manager which will emulate open(). files = [] class Open(): def __init__(self, filename, mode): self.filename = filename self.mode = mode def __enter__(self): self.open_file = open(self.filename, self.mode) print("Enter called") return self.open_file def __exit__(self, *args): print("Exit Called") self.open_file.close() for _ in range(100000): with Open('foo.txt', 'w') as f: files.append(f) - The __enter__method tells us what to do when we acquire the resource, i.e., giving us a file object. - The __exit__method defines what to do when we're exiting the context manager, i.e., closing the file. - You can see how both __enter__and __exit__are called with every loop. Handling Errors How do we handle FileNotFoundError with python's open() try: with open("foo.txt", "r") as f: content = f.readlines() except FileNotFoundError as e: print("Hey, file isn't there. Let's log it.") Such a basic error handling code that needs to be every time you open a file. Let's try to DRY it with our custom context manager. class Open(): def __init__(self, filename, mode): self.filename = filename self.mode = mode def __enter__(self): print("Enter called") try: self.open_file = open(self.filename, self.mode) return self.open_file except FileNotFoundError as e: print("Hey, file isn't there. Let's log it.") def __exit__(self, exc_type, exc_value, exc_traceback): #notice the parameters print("Exit Called") if(exc_type is None): self.open_file.close() return True else: return True with Open("foo.txt", "r") as f: content = f.readlines() Changes in __exit__ exc_typeis type of error Class which you'll get while handling errors in __enter__(AttributeError in this case). exc_valueis the value of the error which you'll get while handling errors in __enter__. exc_tracebackis the traceback of the error which you'll get while handling errors in __enter__. - We're returning Trueto suppress the error traceback (not to be confused with exc_tracebackparameter). Another Real World Example class DatabaseHandler(): def __init__(self): self.host = '127.0.0.1' self.user = 'dev' self.password = 'dev@123' self.db = 'foobar' self.port = '5432' self.connection = None self.cursor = None def __enter__(self): self.connection = psycopg2.connect( user=self.user, password=self.password, host=self.host, port=self.port, database=self.db ) self.cursor = self.connection.cursor() return self.cursor def __exit__(self, *args): self.cursor.close() self.connection.close() Function Based Context Managers Function based context management is done by using a lib called contextlib, through which we can change a simple generator function into a context manager. Here's what a typical blueprint looks like: from contextlib import contextmanager @contextmanager def foobar(): print("What you would typically put in __enter__") yield {} print("What you would typically put in __exit__") with foobar() as f: print(f) contextmanagerdecorator is used to turn any generator function into a context manager. yieldwork as a separater between __enter__and __exit__parts of the context manager. Handling files from contextlib import contextmanager @contextmanager def open_(filename, mode): print("SETUP") open_file = open(filename, mode) try: print("EXECUTION") yield open_file except: print("Hey, file isn't there. Let's log it.") finally: print("CLEAN-UP") open_file.close() with open_("somethign.txt", "w") as f: #notice the mode content = f.readlines() #you cannot read on write mode We wrap yield in a try block because we don't know what the user is going to do with the file object. They might try to use it in a way that it's not intended to (as shown above). Database Connections from contextlib import contextmanager @contextmanager def database_handler(): try: host = '127.0.0.1' user = 'dev' password = 'dev@123' db = 'foobar' port = '5432' connection = psycopg2.connect( user=user, password=password, host=host, port=port, database=db ) cursor = connection.cursor() yield cursor except: print("Hey, file isn't there. Let's log it.") finally: cursor.close() connection.close() Resources We have just covered just an introduction to context managers, but I feel that it's just the tip of the iceberg and there are many interesting use cases for it. Here are some interesting links that I found: Discussion (0)
https://dev.to/sigmapie8/context-managers-in-python-5fgc
CC-MAIN-2021-43
refinedweb
955
60.92