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 |
|---|---|---|---|---|---|
Red Hat Bugzilla – Bug 618689
RFE: I would like to see sssd become a backend store for Kerberos Credentials.
Last modified: 2011-08-25 11:02:53 EDT
Kerberos has been using /tmp as a file system store for CC files since it was created 25 years ago. There are a couple of bad assumptions about this. Mainly this breaks in a namespace environment where /tmp is different for different processes. It also is putting credential data in a location where multiple process have access with different UIDs. The permissions on the files are controlled by DAC. Every confined application that needs to read the files needs full access to all user_tmp_t, labeling the cc file differently is rather difficult. Applications like gssd would have an easier time finding the credentials if there was a simple call into sssd to ask for the cc content.
We're not going to implement this. Upstream has decided that the support for using the kernel keyring as a credential cache store is sufficient. | https://bugzilla.redhat.com/show_bug.cgi?id=618689 | CC-MAIN-2017-39 | refinedweb | 170 | 63.19 |
In a 1911 newspaper article discussing journalism and publicity, and quoting the newspaper editor Tess Flanders, the following expression appeared:
Use a picture. It’s worth a thousand words.
A similar phrase also appeared in a 1913 newspaper advertisement for the Piqua Auto Supply House:
One look is worth a thousand words..
It is thus no doubt that pictures play an important part in our communications—not just general pictures, but also specialized photos like medical images (e.g. MRI, Ultrasound, etc.)..
But, what to do in this case? You were sent some medical images to analyze, and you don’t have the choice of retaking such images. Even if you retook an image, the resolution you see will not change, nor any other issues you face. Image processing comes into play in such situations.
I liked how the term image processing was defined in Oxford Dictionaries :
The analysis and manipulation of a digitized image, especially in order to improve its quality.
"Digitized image" here refers to the fact that the image is considered digital , that is it is processed by a computer.
Getting the computer in this game means using a programming language. In this tutorial I will show you how we can use the Python programming language to perform image processing tasks on an image.
scikit-image
The library we are going to use in order to carry out our image processing tasks is
scikit-image . According to the paper scikit-image: image processing in Python :.
The first thing we need to do is install
scikit-image . Instructions for installing the library can be found on the download page , and in this tutorial I will show you how to install the library on a Mac OS X machine, as this is what I’m currently using in writing this tutorial.
As
scikit-image is an external library, the first thing we have to do is install that library. For that, I !
scikit-image now can be simply installed by typing the following command (in Mac OS X’s Terminal):
pip install -U scikit-image
We now have the library installed and ready for some image processing fun!
The test image we will be using in this tutorial is baboon.png . Go ahead and download it, or simply use the image of your choice. The image looks as follows:
Dimensions of an Image
Sometimes we need to know the dimensions of an image (more on that in the filtering section). In order to check the dimensions of our image, we can use the
guess_spatial_dimensions() method, as follows:
from skimage import io, color img = io.imread('baboon.png') dimensions = color.guess_spatial_dimensions(img) print dimensions
The output of the above script is
3 , meaning that we have an image consisting of three spatial dimensions.
Color to Grayscale
From the above section, we have noticed that our image is a 3D array image (in RGBA format with the shape
(.., .., 4) ). How did I know it is in RGBA format? You can simply do the following:
import skimage.io as io from skimage.color import rgb2gray img = io.imread('baboon.png') print img.shape
In this case, you would get this output:
(512, 512, 4) .
In this section, we would like to convert the original colored baboon.png image into a grayscale 2D image (black and white). This can be simply done using the following script:
import skimage.io as io from skimage.color import rgb2gray img = io.imread('baboon.png') img_grayscale = rgb2gray(img)
Let’s go ahead and save the new image (grayscale) to a file. This can be done using the
imsave() function, as follows (notice that the new image is in the file
baboon-gs.png ):
io.imsave(‘baboon-gs.png’,img_grayscale)
To check the dimensions of the image, we can use the script in the previous section, in which case you would get
2 returned. Or you can use
img_grayscale.shape , which results into
512x512 . So, we now have a 2D image.
In order to show the new grayscale image, add the following to the end of the script:
show_grayscale = io.imshow(img_grayscale) io.show()
The result looks like this:
Applying a Filter to an Image
In image processing, filtering is performed to make some enhancements in the image. In general, filtering encompasses the following operations: edge enhancement, sharpening, and smoothing.
In this section, I’m going to show you how we can apply the Sobel filter on our image, and see what the output looks like after performing such an operation. I’m going to use the example shown on the front page of the scikit-image website , but applied on our image.
The script for applying the Sobel filter on our image looks as follows:
from skimage import data, io, filters img = io.imread('baboon.png') edges = filters.sobel(img) io.imshow(edges) io.show()
If you run the script, did you notice any issues? Yes, we couldn’t apply the operation since the image has to be a 2D image. So, instead of using
baboon.png , we need to use our 2D image,
baboon-gs.png . The output of this operation looks as follows:
Conclusion
There are many image processing operations, and the
scikit-image Python library provides us with many interesting operations we can perform on our images. You can see more image processing operations using this library on the scikit-image website .
评论 抢沙发 | http://www.shellsec.com/news/24609.html | CC-MAIN-2017-04 | refinedweb | 900 | 65.01 |
IRC log of css on 2008-08-20
Timestamps are in UTC.
08:18:05 [RRSAgent]
RRSAgent has joined #css
08:18:05 [RRSAgent]
logging to
08:18:11 [dbaron]
RRSAgent, make logs public
08:18:24 [plh]
plh has joined #css
08:18:35 [Bert]
Scribe: Bert
08:18:39 [Bert]
ScribeNick: Bert
08:18:50 [Bert]
Topic: Text layout
08:20:36 [fantasai]
Chair: #css
08:20:58 [Bert]
People are setting up the projector. Alex will project a demo.
08:22:05 [Bert]
Picture on the screen shows many combinations of text directions.
08:22:20 [Bert]
Including different positions of scrollbars
08:22:53 [Bert]
Fantasai: I think the scrollbar positions are wrong. Should always be in the same place, for usability.
08:24:11 [fantasai]
howcome and glazou arrive
08:24:38 [fantasai]
Attendees: howcome, dbaron, glazou, salonir, phillippe, jdaggett, stevez, alexmog, bert, fantasai, anne
08:28:45 [plh]
s/phil+ip+e/philippe/
08:29:23 [fantasai]
peterl walks by the window, will be here soon we hope
08:32:10 [fantasai]
+peterl
08:32:14 [fantasai]
+rishida
08:37:59 [plinss_]
plinss_ has joined #css
08:39:07 [Bert]
Interlude: quick round the table, now that everybody is here.
08:46:07 [Bert]
Text layout topic postponed.
08:46:13 [Bert]
Topic: CSS 2.1 issues
08:48:17 [Bert]
Topic: CSS 2.1 issue 14
08:48:24 [Bert]
08:48:48 [Bert]
David: Proposal needs replacing. The condition it includes is always true.
08:49:36 [Bert]
David: Issue is when element's top & bottom collapses in presence of min-height.
08:50:22 [Bert]
David: If min-height happens to be exactly the intrinsic height, spec currently says margins don't collapse.
08:50:58 [Bert]
Fantasai: My proposal: don't say less than or equal, but say "effecting height."
08:51:24 [fantasai]
s/effect/affect/
08:51:34 [Bert]
Fantasai: Bert had some reference to another part of the spec. which might help as well.
08:52:15 [fantasai]
Fantasai: alternate proposal, change "less than" to "not affecting" and "greater than" to "not affecting"
08:52:29 [Bert]
Steve: David, are you concerned about the word "affect"?
08:52:33 [Bert]
David: Yes.
08:52:57 [Bert]
Steve: True that height is *always* affected by min-height in a sense...
08:53:10 [fantasai]
08:53:30 [Bert]
Fantasai: This is Bert's message.
08:53:57 [fantasai]
ACTION: dbaron write new proposed text for Issue 14
08:53:58 [trackbot]
Created ACTION-91 - Write new proposed text for Issue 14 [on David Baron - due 2008-08-27].
08:54:31 [Bert]
Peter: Issue also affects max-height.
08:54:39 [Bert]
David: Yes, the action applies to that as well.
08:55:16 [Bert]
Peter: Are we sure everybody agrees with the behavior, apart form the wording?
08:55:28 [Bert]
David: I can make text before the end of this ftf.
08:55:54 [Bert]
Daniel: Let's try to come back to this tomorrow then.
08:56:23 [fantasai]
RESOLVED: to change spec so that case where auto height is equal to min/max height margin collapsing is not disabled. Exact wording to be determined later
08:56:29 [fantasai]
08:56:32 [Bert]
Topic: CSS 2.1 issue 42
08:56:58 [Bert]
Fantasai: About static position, should also include assumed 'clear: none'
08:57:24 [Bert]
Fantasai: I have no opinion.
08:58:05 [Bert]
David: I don't like to think about that...
08:58:13 [fantasai]
The suggested addition matches what most UAs do, with the exception
08:58:13 [fantasai]
of IE7, but IE8 beta 1 seems to match other UAs now. See [1] for
08:58:13 [fantasai]
test details.
08:58:20 [fantasai]
er that's not the testcase url
08:58:25 [fantasai]
08:58:31 [Bert]
Fantasai: I have a test case that shows that clear is not honored when finding static position.
09:00:34 [Bert]
Fantasai: The second blue has the same 'clear' as the first, but is positioned. You can see the second blue is not pushed down as the first one is.
09:01:21 [Bert]
Alex: The easier it is to compute the static position the better.
09:01:33 [Bert]
Alex: Ignoring clear thus seems right thing to do.
09:01:56 [Bert]
Fantasai: No opinion on whther it is better, but at least we have more interop that way.
09:02:25 [Bert]
Steve/Daniel: Still confused about what it means...
09:02:59 [Bert]
David explains the basic case, 'position: absolute; top: auto'
09:03:10 [r12a]
r12a has joined #css
09:03:39 [Bert]
Steve: It does seem to make sense to use the initial valiue of clear...
09:04:09 [Bert]
Fantasai: It makes it easier to express that to say "as if clear had been none."
09:05:25 [Bert]
Alex: A number of things happen, becomes block, taken out of flow... so concept of where it *would* have been becomes dificult.
09:05:46 [fantasai]
I was saying that if you consider that there may have been text/margins after the cleared-positioned element, then it gets complicated to figure out the static position
09:05:51 [Bert]
Alex: Who wants to guess at where it would have been if it had floated!?
09:06:39 [Bert]
Alex: For 'display: block', logic is fairly simple: the static pos. is on the next line. For clear there is more work to do.
09:06:57 [Bert]
David: It's not that much more complicated, just yet another thing to look at.
09:07:14 [Bert]
Peter: And 'clear' can make things move *up* can't it?
09:07:27 [Bert]
Fantasai: We ficed the spec that that doens't happen anymore.
09:07:38 [Bert]
s/ficed/fixed/
09:08:12 [Bert]
David: The spec also says that the UA is free to approximate the position...
09:08:57 [glazou]
glazou has joined #css
09:09:02 [glazou]
yoooooo
09:09:39 [jdaggett]
jdaggett has joined #css
09:10:09 [jdaggett]
ah port 80...
09:11:47 [Bert]
Proposal strawpoll: 3 yes, rest abstains
09:12:07 [plinss_]
plinss_ has joined #css
09:14:02 [Bert]
Anne: We're probably OK with changing to the proposal...
09:14:34 [Bert]
People are looking at Opera's behavior. Opera seems to apply clear, but also seems to have some problem, maybe with margins.
09:14:54 [Bert]
Firefox ignores the clear.
09:15:30 [glazou]
Opera has no interoperability issue, it only has a bug :-)
09:16:24 [Bert]
IE7 behavior appears difficult to interpret.
09:16:45 [fantasai]
Webkit is compatible with Firefox
09:17:02 [fantasai]
glazou: apparently the proposal makes sense to all browser vendors
09:18:01 [Bert]
Daniel: Seems we have implementations and promises of change, so we can accept the proposal. Is that correct?
09:18:24 [Bert]
Alex: IE8 *does* ignore clear, what you see is an artifact of something else.
09:18:31 [fantasai]
RESOLVED: accept proposal for Issue 42
09:19:10 [Bert]
Topic: CSS 2.1 issue 53
09:19:22 [Bert]
09:19:43 [Bert]
How does justification work in pre?
09:21:13 [Bert]
Topic: CSS 2.1 issue 60
09:22:16 [Bert]
The issue is described in a 25-page document...
09:22:26 [fantasai]
09:22:27 [Bert]
Topic: CSS 2.1 issue 49
09:22:38 [Bert]
Topic: CSS 2.1 issue 48 & 49
09:22:42 [fantasai]
09:23:01 [Bert]
s/Topic: CSS 2.1 issue 49//
09:23:51 [fantasai]
dbaron: goal is to use the next available bolder/lighter font
09:24:02 [fantasai]
dbaron: definition of computed value used to be incompatible with this
09:24:13 [fantasai]
dbaron: we fixed this, but didn't remove the old text completley
09:24:31 [Bert]
David describes issue. Computing 'bolder' involves stepping to next available weight. But computed value may be a non-existent weight. Not all text in spec was corrected to reflect that.
09:25:13 [Bert]
David: You don't know the available weights and there may also be multiple fonts involved in an element.
09:25:17 [fantasai]
jdaggett: Windows has problems with weights. In Windows you have only two weights. On Mac this is more of an issue
09:25:48 [fantasai]
glazou does not like the way computed values for font-weight is a tuple when the property takes a single value.
09:26:05 [fantasai]
glazou: If the computed value is not a valid value, it is very complex
09:26:21 [fantasai]
jdaggett: we have a similar issue with font-stretch, where we have wider and narrower
09:26:29 [Bert]
Daniel: I don't like that value is one keyword, but computed value can be *two* keywords. You cannot write down the computed value.
09:26:31 [fantasai]
dbaron: whatever we decide for font-weight should also apply to font-stretch
09:26:59 [fantasai]
dbaron: the other issue is that the way multiple occurrences of bolder/lighter compound with each other isn't really defined in the spec
09:27:07 [Bert]
David: Spec is unclear about sequences of multiple bolder and ligher.
09:27:17 [fantasai]
dbaron: you could view the computed value of font-weight as a base weight followed by an ordered sequence of bolders and lighters
09:27:43 [fantasai]
dbaron: or you can see it as the sum of bolders and lighters, e.g. bolderx3 or lighterx2
09:27:56 [fantasai]
dbaron: this gives different results
09:28:23 [Bert]
John: Have to carry around complex datastructures for cases that never happen.
09:29:08 [Bert]
John: Want to make it simpler. Bolder just bumps the weight by two steps.
09:29:09 [fantasai]
John: We should do something simpler.
09:29:28 [fantasai]
John: 400 to 500 usually won't trigger a bolder font
09:29:43 [fantasai]
John: bumbing it up to 600 will get you a bolder font, because 500 falls back to normal
09:31:43 [Bert]
Discussion about stepping by 100 or 200 and what the effect is if font has *all* weights (synthesized, e.g.).
09:31:51 [fantasai]
dbaron: there's three options for what the computed value should be
09:31:59 [Bert]
David draws on white board.
09:32:10 [fantasai]
dbaron: Option A, which was vaguely implied in CSS2, is it's some value 100-900
09:32:28 [Bert]
David: option A: computed value is a single number 100-900
09:32:33 [fantasai]
dbaron: Option B, it's some value 100-900 and then an integer representing the number of bolders/lighters applied
09:32:45 [fantasai]
dbaron: option C, it's value 100-900 and then a sequence
09:33:06 [fantasai]
dbaron: Difference between B and C ...
09:33:20 [Bert]
David: option B: number 100-900 plus the sum of the bolders (+100) and lighters (-100)
09:33:49 [Bert]
David: Option C: weight 100-900 and *sequence* of steps bolder and lighter.
09:34:12 [Bert]
David: Options B and C are not the same, depending on the fonts.
09:34:28 [fantasai]
<span> <span> <span> [jing] B </span> </span> </span>
09:34:46 [Bert]
David: Option C is more complex.
09:35:03 [Bert]
Steve: Now I understand why this is an edge case... :-)
09:35:42 [glazou]
C is better, right, but it's also totally crazy and means nobody will ever use the computed value of font-weight
09:36:06 [Bert]
John: The computed style is not itself a useful value in options B/C.
09:36:45 [Bert]
Steve: There are many fonts where weights differ in only one step (100).
09:36:54 [fantasai]
:)
09:37:48 [fantasai]
glazou: a lot of websites use 'bolder' rather than 'bold'
09:38:07 [Bert]
Daniel: Many people who use 'bolder' expect to go from 'normal' to 'bold'.
09:38:27 [fantasai]
dbaron: For GetComputedStyle, there are manyt hings you could do. You could look up the fonts and return a numeric value.
09:38:33 [fantasai]
dbaron: I'm more concerned about what inherits.
09:39:40 [Bert]
Steve: If you mix fonts, option C seems overly complex for little gain in practice. It's the theoretically right way, but is it worth it?
09:40:01 [Bert]
David: I think there are problems with C as well.
09:40:30 [fantasai]
Peter: Say you have a set font. Later you go bolder. Inside that you go lighter. Shouldn't you be back where you started?
09:40:41 [Bert]
Peter: After 'bolder' and 'lighter', don't you expect to be back where you were?
09:42:22 [Bert]
Steve: 'bolder' is more reliable, because fonts don't always have bolder weight at 700.
09:42:42 [Bert]
Daniel/David: I expect many people use 'bolder' and 'bold' as synonyms.
09:42:52 [glazou]
glazou: most web authors don't even know 100-900 values exist...
09:44:13 [Bert]
Peter: Saying normal and then bolder, the author expects to see something bolder if it exists, so just bumping by 100 doesn't work.
09:45:25 [Bert]
Peter: Trick I used was encoding B all in a single integer, something like 101 stands for weight 100 + 1 times bolder.
09:45:54 [Bert]
David: The spec has been modified many times and not always consitently.
09:46:13 [fantasai]
dbaron notes that GetComputedStyle doesn't return the "computed style" in the CSS2.1 sense, but rather the "computed style" of the CSS2 spec, which is more like the "used style" of CSS2.1
09:47:03 [Bert]
David: The text I want to remove is that, if there is no darker font, the computed value is bumped by 100.
09:48:12 [fantasai]
... because it is leftover from before we fixed the computed value to use a tuple
09:48:13 [Bert]
Peter: If the OS *can* make an arbitrary weight, then that is what the UA should use.
09:49:45 [Bert]
David: There were two parts to this issue: removing the text just quoted about unavailable weight, and chosing between options B and C.
09:50:36 [fantasai]
John: if you have bolder, bolder, lighter and only two weights available, with B you get bold, with C you get normal
09:50:43 [Bert]
John: One typical question is what we expect after normal + blder + bolder + lighter: If font has one bold only, are we back at normal?
09:50:53 [anne]
09:51:07 [Bert]
s/blder/bolder/
09:51:49 [jdaggett]
09:52:11 [anne]
09:52:18 [anne]
(works prolly better in IE)
09:52:44 [dbaron]
09:52:57 [Bert]
David gives a simpler test.
09:54:40 [Bert]
Moz is bold, Opera is normal, Safari is normal.
09:55:49 [fantasai]
Peter: What does the author expect in this case?
09:57:29 [Bert]
Peter rephrases the difference between C and B. Does 2 bolder + 1 lighter end up at normal or at bold (if font has only one bold)?
09:59:06 [Bert]
John: There are few systems in practice with fonts with multiple weights. Basically only some Macs.
09:59:51 [Bert]
Hakon: We need to cater for higher quality fonts, there will be more of them.
10:00:37 [Bert]
Steve: Many fonts have weights that are not normal and bold, has to support those.
10:01:02 [Bert]
Fantasai: We can't really answer the question what an author expects after bolder+bolder+lighter?
10:01:08 [Bert]
s/\?//
10:01:17 [fantasai]
because we have no web designers here today
10:01:33 [fantasai]
SteveZ: the other important question is should bolder+lighter give you back the normal font?
10:02:15 [fantasai]
SteveZ: the sequence won't always do that, if e.g. there is no bolder font but there is a lighter font
10:03:08 [dbaron]
Should we take a B vs. C straw poll?
10:03:20 [glazou]
yes
10:03:26 [Bert]
Steve: Think e.g., about the case that there is no bolder, but there is a lighter one. In option C, normal + bolder + lighter will give you that ligher one, not the normal one. So option C is not correct for this case.
10:04:06 [Bert]
Philippe: Maybe this is not worth fixing in the time scale for CSS 2.1.
10:06:00 [Bert]
Discussion about whether it is important (and if so, when) that computed value is a "string" in CSS syntax.
10:06:18 [Bert]
It's an issue for the DOM, is it also for CSS 2.1?
10:07:17 [Bert]
Daniel: Should we do a strawpoll?
10:07:56 [fantasai]
Anne: abstain
10:08:00 [fantasai]
fantasai: B
10:08:08 [fantasai]
Bert: 60% B 40% C
10:08:22 [SteveZ]
SteveZ has joined #css
10:08:24 [Bert]
John: The behavior and the syntax of the computed value are separate questions.
10:08:28 [fantasai]
Rcihard: abstain
10:08:31 [fantasai]
Alex: C
10:08:33 [fantasai]
Peter: B
10:08:36 [fantasai]
Steve: B
10:08:38 [fantasai]
John: B
10:08:44 [fantasai]
Phillippe: Abstain
10:08:48 [fantasai]
Saloni: Abstain
10:08:57 [fantasai]
Daniel: 60% B 40% C
10:08:59 [fantasai]
David: B
10:09:03 [fantasai]
Howcome: B
10:10:44 [fantasai]
glazou: Add a note saying that GetComputedStyle is unpredictable for anything aside from normal and bold
10:11:25 [Bert]
John: IE already has an extesnion to getcomputedstyle for the font weight.
10:11:59 [Bert]
Daniel: Seems we have preference for B, but do we have consensus?
10:12:12 [fantasai]
Peter: My concern is what happens when we start getting rich fonts with multiple weights.
10:12:26 [Bert]
Peter: I want to be sure that result is intuitive for fonts with more than two weights.
10:13:22 [Bert]
Peter: Imagine a font with seven weights and he does lots of 'bolder' and maybe one lighter, but then the page gets displayed on a system with just one bold.
10:14:14 [Bert]
Peter: We need to describe what we want 'bolder' to really *mean*. Different people have a different interpretation.
10:14:51 [Bert]
Daniel: Take a break and come back a bit later?
10:15:08 [Bert]
Fantasai: Could ask Molly and Jason, but maybe can also just resolve it now.
10:15:14 [fantasai]
RESOLVED: Accepted proposal for Issue 48
10:15:19 [fantasai]
(49 still open)
10:15:43 [Bert]
[Break 15 mins]
10:28:54 [shepazu]
shepazu has joined #css
10:33:44 [Bert]
Daniel: Extra agenda for Friday: charter
10:34:29 [glazou]
hi doug
10:34:40 [Bert]
Daniel: ... about process, milestones, etc., and explaining things to Philippe.
10:35:32 [Bert]
Back to issue 49.
10:35:55 [Bert]
Alex: Not sure the implementations will want to change.
10:36:14 [Bert]
Peter: How about in a future version?
10:37:02 [Bert]
Alex: Maybe designers should avoid 'bolder' and 'lighter' and we should say so in the spec.
10:37:29 [Bert]
Alex: Because it may have effect on soem systems and not on others.
10:38:40 [Bert]
Richard: You were trying to find out how people use it. Should maybe ask that of some actual users.
10:39:30 [Bert]
John: We're defining edge case behavior. Should not say "don't use this" because in a world with two weights, it works as expected.
10:40:34 [Bert]
Fantasai: Even if we don't say anything in level 2, we should be precise in level 3.
10:40:58 [Bert]
Philippe: But there is something in level 2 already.
10:41:02 [glazou]
glazou has joined #css
10:41:39 [Bert]
John: How about font-stretch: wider?
10:41:52 [fantasai]
10:42:09 [fantasai]
"RESOLVED: The Markus Principle: ..." :)
10:42:13 [Bert]
Peter: Only reason to not define in CSS 2.1 mightbe that we have differing implementations.
10:42:47 [Bert]
Peter: But still want to decide what we'll have in level 3, even if we leave level 2 undefined.
10:43:04 [Bert]
Alex: Feedback from designers is necessary here.
10:43:20 [Bert]
Fantasai: Can Peter take an action to ask Molly and others?
10:44:27 [Bert]
Discussion about leaving it undefined in level 2 and under what conditions.
10:44:32 [myakura]
myakura has joined #css
10:44:46 [Bert]
Fantasai: OK with leaving CSS 2.1, as long as we decide what to do for level 3.
10:45:20 [Bert]
Daniel: Or just say that we will resolve for level 3, without saying what way.
10:45:43 [fantasai]
SteveZe: "A sequence of bolders and lighters may have different results in different UAs."
10:45:51 [Bert]
Steve: We can put a note that sequences of bolder and lighter may have different results on different sstems.
10:46:03 [fantasai]
Fantasai: add that this will be defined in CSS3
10:46:40 [Bert]
Daniel: "Seq. of bolder and lighter may have unpredictable result in level 2, but will be defined in level 3."
10:46:47 [fantasai]
Peter: Add dependence on UA, OS, and font availability
10:46:58 [fantasai]
Peter: So authors know how widely they need to test
10:47:05 [fantasai]
ACTION: fantasai Draft a note
10:47:06 [trackbot]
Created ACTION-92 - Draft a note [on Elika Etemad - due 2008-08-27].
10:47:33 [fantasai]
RESOLVED: Leave undefined in CSS2.1, add note as described above
10:47:40 [fantasai]
for ISSUE 49
10:48:08 [fantasai]
ACTION: Peter Consult Jason, Molly, other web designers, about what is expected behavior for bolder + lighter, bolder+bolder+lighter
10:48:08 [trackbot]
Created ACTION-93 - Consult Jason, Molly, other web designers, about what is expected behavior for bolder + lighter, bolder+bolder+lighter [on Peter Linss - due 2008-08-27].
10:48:43 [Bert]
Philippe: Can you add an issue on CSS3 Fonts about this, so that it doens't get lost?
10:48:57 [Bert]
Fantasai: Doing it right now...
10:49:58 [Bert]
Philippe: And can you add the test cases to that issue?
10:50:30 [fantasai]
ISSUE-61 recorded against CSS3 Fonts
10:51:01 [Bert]
Topic: CSS 2.1 issue 52
10:51:25 [dbaron]
10:51:52 [fantasai]
10:53:07 [Bert]
Issue is about practice of putting page-break on BR, which is not allowed by spec (unless BR is made a 'block')
10:53:32 [Bert]
David: Seems page-break is a bit like clear, for which we allow UAs to apply it to inlines.
10:53:58 [Bert]
Alex: Think it should apply only to BR, not to all inlines.
10:54:12 [Bert]
Bert: What is the difference between BR and SPAN?
10:55:34 [Bert]
Alex: Not a lot of interoperability on BR, e.g., applying :before to it.
10:55:36 [fantasai]
br { content: '\A'; white-space: pre; }
10:55:53 [fantasai]
but need to make 'clear' apply specially
10:56:06 [Bert]
Anne: That (Fantasai's rule) is what Opera does,
10:56:08 [fantasai]
Anne: That's how Opera implements <br>
10:56:49 [Bert]
Alex: What is the size and position of BR in Opera in DOM?
10:57:17 [Bert]
Fantasai: Same as <span> with a line feed...
10:58:09 [Bert]
Daniel: A 'page-break-before' on BR puts a blank line at the top of the page.
10:59:09 [Bert]
Steve: Whether page break applies shoudl depend on how the elt is styled, in particular whether it is block-level.
11:00:29 [Bert]
Daniel: One use case is a BODY consisting of nothing but text and BR. Want to break page at some BR.
11:00:51 [fantasai]
... or <pre> and <br>
11:00:59 [Bert]
Daniel: Users of word processors often work like that: turn some line break into a page break.
11:01:19 [anne]
(Opera's behavior with respect to the interaction of 'content', 'clear', and <br> is slightly weird.)
11:01:41 [Bert]
Steve: 'last-line-align' applies to last line before the BR.
11:01:41 [anne]
(The moment you use 'content' on <br> it no longer has special 'clear' behavior, even if it is "\A".)
11:02:19 [Bert]
Steve: So it looks also like a natural break point. It *looks* like a paragraph.
11:03:03 [Bert]
Daniel: BR could be used for page breaks as well. HTML doesn't have a page break element, but could imagine <BR TYPE=PAGE>
11:03:14 [fantasai]
fantasai: The same applies to '\A' in a white-space: pre element
11:03:39 [Bert]
Saloni: What if we apply page breaks to all elements, not only block-level?
11:04:17 [Bert]
Fantasai: We would make an exception for HTML: page break applies to block-level, except in HTML it also applies to...
11:05:21 [Bert]
Steve: Everywhere where last-line-align applies should also accept page break properties.
11:05:40 [anne]
fantasai, (since people are talking) you could just define some special construct and then HTML5 says that <br> is such a construct
11:05:43 [Bert]
David: Lines in PRE also have last-line-align' applied.
11:05:46 [anne]
fantasai, then magic langauges work too
11:06:07 [Bert]
David: Which of many "last" lines has the page break applied to?
11:07:26 [Bert]
Fantasai: Imagine a pre, *all* lines would have page break properties applied.
11:07:54 [Bert]
Steve: The alternative is that 'last-line-align' doens't apply.
11:08:20 [Bert]
Fantasai: The 'last-line-align' applies because there is a forced line break.
11:08:45 [Bert]
Steve: I wouldn't call that an inline element.
11:09:45 [Bert]
David: Maybe the term [inline] is not fully intuitive, but it *is* precisely defined.
11:11:11 [Bert]
Daniel: What about some XML format (because there are many now), where I want to turn some element into a page break? Think MS Word.
11:11:51 [Bert]
Alex: Many cases: line breaks, page breaks, paragraph breaks, and any of there with or without last line behavior.
11:11:54 [anne]
s/langauges/languages/
11:12:04 [Bert]
Alex: Seems we need 'display: break'
11:13:23 [Bert]
Peter: Steve's argument is a negative argument. He says *if* we do this then we have to do that. Not that we have to do "that."
11:14:10 [Bert]
Anne: Just adding 'display: block' when needed to make an element into a page break element is not a big deal.
11:14:37 [Bert]
Daniel: Consider editing perspective. It's easy to insert an empty element.
11:14:59 [fantasai]
br { white-space: pre; content: '\A'; }
11:15:07 [Bert]
Fantasai: Just insert an empty element with both page break and display:block
11:15:15 [fantasai]
br[type="page"] { display: block; content: none; page-break-before: always; }
11:15:49 [Bert]
Daniel: But we can't reproduce HTML's BR in XML.
11:16:12 [Bert]
Hakon: Yes you can, the sample style sheet shows how.
11:17:07 [Bert]
Fantasai: Anne and I are saying that you can get the functionality you want in XML.
11:17:21 [fantasai]
Fantasai: just without the quirkcs
11:17:46 [Bert]
Anne: Or we introduce an abtract magic element and then any language can decalre that some element act as that magic element.
11:19:29 [Bert]
Several people explain the problem of sequences of BR. The second and subsequent ones cannot be 'block' because they shouldn't collapse.
11:20:03 [Bert]
Hakon: Can solve that with selectors, BR + BR.
11:20:09 [anne]
11:20:32 [Bert]
Fantasai: The quirky behavior of BR is that 'clear' applies.
11:21:08 [Bert]
Peter: Now imagine I want to set 'content' on my BR, I lose the line breaking behavior.
11:21:18 [Bert]
Several: Just add the \A as well.
11:21:42 [Bert]
Peter: I want an extra property, or a 'display' value, for BR.
11:23:09 [Bert]
Hakon: But that doesn't work in current browsers.
11:23:40 [Bert]
Steve comes back to what "inline" means, doesn't think a \A can be called "inline."
11:24:42 [Bert]
Fantasai: So you don't want to call the span in "<pre>foo <span>[linebreak]</span> bar</pre>" inline? In CSS it is defined as inline.
11:25:19 [Bert]
Daniel: The width of the line box before the break is different.
11:25:27 [fantasai]
s/[linebreak]/test[linebreak]test/
11:25:34 [Bert]
Hakon: Really? And does that matter at all?
11:26:22 [Bert]
Daniel: You can ask for the bounding rect of Fantasai's SPAN in the DOM. But it may not be relevant for this discussion.
11:27:13 [Bert]
Saloni: Do we all agree that page break applies to BR, independent of how we explain it?
11:27:32 [Bert]
Bert: No, don't make exceptions for HTML.
11:27:58 [Bert]
Alex: We (IE) have a special 'display' tupe (more or less) for BR.
11:28:29 [Bert]
Hakon: What then happens in IE if I set :before{content:"\A"} on the BR?
11:29:32 [Bert]
Hakon: Is that display type hardcoded? Or can you override it with a style rule?
11:29:45 [Bert]
Steve: Can you change BR to list-item?
11:29:54 [Bert]
Hakon: Should work in Opera, yes.
11:30:28 [Bert]
Peter: How can a user override the rules?
11:31:13 [Bert]
Peter: I like there to be a simple rule to make the BR behave one way or another. Make it not break a line, e.g.,
11:31:32 [Bert]
Hakon: That works in Opera.
11:31:56 [Bert]
Peter: I also want the way to override it consistent among browsers.
11:32:17 [Bert]
Daniel: That's not the question we are discussing. We started with page breaks...
11:32:37 [Bert]
Peter: And I don't want to use the 'content' proeprty.
11:32:42 [Bert]
Hakon: Why not?
11:33:27 [Bert]
No resolution for issue 52 right now.
11:34:30 [Bert]
David: If we decide for 'display: break', we can say that it applies to BR and in level 3 we can say that page-break and clear applies to elements with that display type.
11:35:32 [Bert]
Alex: We can just say in 2.1 that level 3 will provide a more generic approach.
11:36:13 [Bert]
Peter: I think we need the Markus principle again, because we cannot define it better in CSS 2.1.
11:37:52 [Bert]
Strawpoll proposed question: Should page-break-before/afetr apply to BR in CSS 2.1?
11:38:10 [Bert]
Peter: Make it more generic, and ask about a BR-like element instead of BR itself?
11:38:25 [anne]
-- <br> --
11:38:26 [fantasai]
<br type='lunch'>
11:38:27 [glazou]
<br type="LUNCH">
12:29:31 [jason_cranfordtea]
jason_cranfordtea has joined #css
12:36:46 [fantasai]
hi jason_cranfordtea!!
12:37:01 [jason_cranfordtea]
hey
12:37:37 [fantasai]
jason_cranfordtea: we had a long discussion about font-weight today. I assure you you wouldn't have wanted to listen to it all, but finally it has boiled down to a question for you and Molly.
12:38:06 [jason_cranfordtea]
yeah
12:38:11 [jason_cranfordtea]
I saw that in the transcript
12:38:18 [fantasai]
jason_cranfordtea: cool
12:38:36 [fantasai]
up, we are restarting the meeting
12:38:37 [jason_cranfordtea]
expected behavior of lighter and bolder
12:38:42 [Bert]
Read: we didn't want to leave the discussion without deciding at least something, and so we decided to ask you :-)
12:38:42 [fantasai]
yes
12:38:44 [fantasai]
when nested
12:39:05 [jason_cranfordtea]
so it's a question of inheritance?
12:39:16 [fantasai]
no
12:39:17 [jason_cranfordtea]
or absolute?
12:39:18 [fantasai]
it's a question of
12:39:23 [fantasai]
if you have three nested spans
12:39:30 [fantasai]
the outer two with 'bolder'
12:39:33 [fantasai]
the inner one with 'lighter'
12:39:38 [fantasai]
but your font only has two weights, normal and bold
12:39:48 [fantasai]
what is the text of the innermost span?
12:39:52 [fantasai]
is it normal or bold?
12:39:56 [jason_cranfordtea]
right
12:40:15 [jason_cranfordtea]
that's what I was thinking of
12:40:19 [fantasai]
then take that same page and render it with a font that has three weights
12:40:20 [jason_cranfordtea]
let me think of it
12:40:31 [fantasai]
the behavior should make sense to the author in both cases
12:40:36 [fantasai]
of course
12:41:45 [SteveZ]
Scribe: SteveZ
12:42:10 [SteveZ]
We are resuming after a lunch break
12:42:22 [SteveZ]
Topic: Definition of BR
12:43:35 [SteveZ]
This discussion is for CSS3
12:44:04 [SteveZ]
The definition is currently in the Generated Content draft
12:44:44 [SteveZ]
The content property does not apply to all elements in CSS 2.1
12:45:13 [anne]
(you need br { content:"\A"; ... } for cases such as <br>foobar</br> (possible in XHTML))
12:45:49 [dbaron]
ScribeNick: SteveZ
12:46:25 [Bert]
(You can do that with ':before {content: "\A"} br {content: none}' as well and still be compliant with the sample style sheet from level 2.)
12:46:36 [SteveZ]
Anne, listing solution mechanisms:
12:47:00 [SteveZ]
1. treat the HTML <BR> element as a special HTML only case
12:47:24 [SteveZ]
2. use display: block
12:47:35 [fantasai]
s/block/break/
12:49:19 [SteveZ]
Anne: using content(/A) would not make "clear" apply to the element because it would still be an inline element
12:50:12 [SteveZ]
3. add a "line-break-*" properties that could apply to inlines
12:51:15 [SteveZ]
BB: would this mimic the current <BR> behavior w.r.t. one BR vs two BRs
12:52:21 [SteveZ]
EE: does "clear" apply to a run-in element, depending on what it is followed by?
12:52:38 [fantasai]
s/apply/apply sometimes/
12:53:18 [SteveZ]
DG: requirements include avoiding a special exception for HTML and making the BR element special
12:54:26 [SteveZ]
EE: would it be possible to make BR be a run-in; i.e. display: runin
12:54:36 [glazou]
s/runin/run-in
12:54:58 [SteveZ]
DB: can you have multiple run-ins into the same block?
12:55:38 [SteveZ]
BB: if there are multiple run-ins only that last one is before the next block and has the run-in behavior
12:56:03 [SteveZ]
DB: note that BR adds height to the line before, note that line after.
12:56:33 [SteveZ]
DB: This may only apply in "quirks mode", but I am not sure about this
12:57:28 [SteveZ]
DB: It should not matter in standards mode unless a font-height is appled to the BR
12:58:41 [SteveZ]
Anne: in Opera, changing the font-size on the BR does not affect the line-height of the previous line
12:59:11 [SteveZ]
Anne: It does not in IE6 either
12:59:37 [SteveZ]
Anne: only Firefox shows the change of line-height
13:00:05 [anne]{%20font-size%3A2em%20}%20%3C%2Fstyle%3E%0A...%3Cspan%3E%3Cbr%3E%3C%2Fspan%3E...
13:00:12 [anne]...
13:00:28 [SteveZ]
Anne: and the line-height change does not show up in quirks mode
13:00:49 [SteveZ]
Above are the test cases
13:08:07 [SteveZ]
HL: we have a way of defining BR in CSS, namely using the content property to insert a /A
13:08:20 [SteveZ]
Opera allows the content property on all elements
13:09:17 [SteveZ]
AM: the issue is having a definition that triggers that special behaviors of BR w.r.t. clear and page-break-*
13:09:41 [SteveZ]
SZ: the Opera solution does not work for clear or page-break-*
13:10:30 [SteveZ]
AM: is it OK to have content language (e.g. HTML) special exceptions
13:11:13 [SteveZ]
EE and Anne: we already have special cases
13:12:04 [SteveZ]
Anne: it is the element in the HtML namespace that is special cased
13:14:07 [anne]
What I said was that the HTML <body> element is special cased in HTML and XML (though the CSS 2.1 still needs an update regarding this)
13:14:20 [SteveZ]
DG: It is mandatory to have a way to put in hard line breaks, but special casing BR in HTML only is a hack that does not help in XML
13:15:32 [fantasai]
Steve: there four things about <br>
13:15:38 [fantasai]
Steve: 1. You get a line break
13:15:40 [shepazu]
shepazu has joined #css
13:15:52 [fantasai]
Steve: 2. You get last-line alignement behavior in the previous line (due to the forced break)
13:15:56 [fantasai]
Steve: 3. Clear applies
13:16:01 [fantasai]
Steve: 4. Maybe page-break applies
13:16:09 [fantasai]
Steve: Most of these are because of the line
13:16:10 [fantasai]
break
13:16:59 [jason_cranfordtea]
Is there a reason that point 4 is not a certainty?
13:17:21 [fantasai]
it's not in the spec currently
13:17:39 [fantasai]
so it's the issue that started this whole discussion :)
13:19:36 [SteveZ]
Anne: if you want properties 3 and 4, you should set the display: block property on the BR
13:19:57 [fantasai]
Elika: The problem isn't with XML dialects. It's with backwards compatibility wrt clear on BR.
13:20:22 [fantasai]
Elika: In a new XML dialect, you can create a break element that behaves like <br> by using CG line breaks
13:20:38 [fantasai]
Elika: And if you want the element to clear (or page break) then you need to set display: block; at the same time.
13:20:47 [Bert]
(The "problem" is the same problem we have much too often, unfortunately: browsers have bugs and don't dare fixing them :-( )
13:20:53 [fantasai]
Elika: The problem we have here is that you can't do that with BR for backwards compatibility reasons
13:21:08 [fantasai]
Elika: Because right now you can set 'clear' without setting 'display: block;' and it works.
13:21:47 [fantasai]
Anne: I don't think it makes sense to spend so much time on this based on hypothetical XML vocabularies.
13:22:05 [fantasai]
Anne: If someone comes forward and says I need this behavior without setting 'display: block', then we can discuss it further
13:24:36 [dbaron]
<br><br><br clear="both"><br>
13:24:51 [dbaron]
(or do I mean "all" instead of "both"?)
13:25:19 [anne]
Google says all
13:25:28 [dbaron]
(For the record, I was saying verbally that markup like that is probably used a good bit on the Web.)
13:26:54 [SteveZ]
Anne and EE: you probably do not need all the quirks of BR if you are just trying to satisfy the requirement for a hard line break in XML
13:27:53 [fantasai]
hard line break, clear, and page-break
13:28:32 [SteveZ]
PL: what is wrong with adding a "break" value to display?
13:29:02 [SteveZ]
Anne: I think it adds more complexity, to the code and the tests
13:29:25 [SteveZ]
DG and PL: it simplifies the spec, because it removes all the special cases
13:31:20 [SteveZ]
EE: if you add the new display value, you must update the spec for the influence of this new value on the other properties.
13:33:13 [fantasai]
EE: If I were to define <br>, I'd define it as an inline element whose contents are a preserved line feed and to which the 'clear' property applies.
13:34:26 [SteveZ]
Many: it does not appear that the spec get vastly simpler whether or not you special case the <BR> element or add a "break" value
13:35:22 [SteveZ]
Anne: it is more difficult to test because one must test the behavior when this property value is combined with most of the other properties
13:36:53 [SteveZ]
BB: Since we have not needed a better defintion of BR up to now why are we so concerned about it now
13:37:21 [SteveZ]
SZ: becuase the issue of how does page-break-* apply
13:39:23 [fantasai]
SZ: What I got from this discussion is that using display: block; would satisfy the use case requirements for XML.
13:39:49 [fantasai]
SZ: So I would conclude that we should special-case BR, but also add a note explaining how to get similar behavior with another mechanism.
13:41:59 [SteveZ]
SZ: since display: block gives most of the properites that an XML document would want for a hard line break, we should adopt solution 1 with a note to explain the display: block mechanism
13:42:59 [fantasai]
Straw Poll for CSS2.1:
13:43:06 [fantasai]
0. No change to CSS 2.1
13:43:26 [SteveZ]
AM: if we are adopting option 1 in CSS2.1, it can describe all the specialiality, including page-break-* behavior
13:43:33 [fantasai]
1. Special-case XHTML <br> to take page-break, add a note explaining how to get it to work for other elements (by using 'display: block')
13:44:29 [fantasai]
Peter: I'm ok with saying that page-break also applies to "other elements", not calling out HTML:br
13:44:46 [fantasai]
s/1./1a./
13:44:54 [SteveZ]
PL: we could have a note, like that in Clear which does not call out the elements to which page-break-* applies
13:45:26 [fantasai]
1b. Say page-break may apply to "other elements"
13:47:44 [SteveZ]
The above Straw Poll is w.r.t. Issue 52 only and not for CSS3
13:48:29 [SteveZ]
Furthermore, the options apply to what is said about the page-break-* properties
13:49:15 [anne]
s/to take page-break/to take page-break and clear/
13:49:26 [anne]
s/XHTML <br>/(X)HTML <br>/
13:49:50 [Bert]
(option 4: page break applies to all elements?)
13:52:04 [SteveZ]
PL: option 1b was proposed so that we can, in the future, adhere to the Markus Principle, agreeing to define in CSS3 this clearly ambiguous behavior; the behavior is, at this point, intentionally left ambiguious to reflect current implementations
13:52:56 [fantasai]
play: block; (or some other block-level value)
13:53:56 [fantasai]
0. No normative change.
13:53:56 [fantasai]
Add a note to say that if you want this property to apply
13:53:56 [fantasai]
you have to set display: block; (or some other block-level
13:53:56 [fantasai]
value)
13:53:56 [fantasai]
1a. Special-case HTML:br to say that page-break also applies
13:53:58 [fantasai]
Add a note to say that you can get page-break to apply to
13:54:01 [fantasai]
other break elements by saying 'display: block'.
13:54:03 [fantasai]
1b. Say page-break applies to block-level elements and may
13:54:06 [fantasai]
also be applied to "other elements"
13:54:08 [fantasai]
4. Page-break applies to all elements
13:54:11 [fantasai]
Howcome: 0, could live with 1a
13:54:13 [fantasai]
David: 1a, second choice 0
13:54:23 [fantasai]
Daniel: 0
13:54:37 [fantasai]
Saloni: 1b, then 1a
13:54:59 [fantasai]
John: abstain
13:55:13 [glazou]
Richard, PLH: abstain
13:55:16 [fantasai]
Steve: I can live with anything but 4
13:55:23 [fantasai]
Peter: 1b
13:55:37 [fantasai]
Alex: 50% on 1a or 1b
13:56:05 [fantasai]
Bert: 0, can live with 4 and 1b in that order
13:56:10 [dbaron]
(this is for CSS 2.1; options (2) and (3) could be relevant for css3)
13:56:23 [fantasai]
Elika: 0 or 1a
13:56:29 [fantasai]
Anne: 1a
13:57:30 [fantasai]
Steve: So we've observed that some implementations currently do this
13:57:38 [fantasai]
Steve: 2.1 should reflect what implementations do
13:58:15 [fantasai]
Steve: 1b seems consistent with that
13:58:34 [fantasai]
Steve: It seems you /may/.
13:58:41 [fantasai]
David: It seems unnecessarily broad to me.
13:59:01 [fantasai]
David: The clear definition is necessarily broad because of what CSS1 said
13:59:17 [fantasai]
Anne: The 'clear' part is a non-normative note. Normatively it's not allowed
13:59:48 [fantasai]
Peter: So to move CSS2.1 forward we either need a consensus, or we need to leave it vague and tackle in CSS3.
14:01:04 [SteveZ]
SZ: I thought the goal of CSS2.1 was to document what CSS implementation actually do and to be ambiguous where agreement cannot be reached; the goal of CSS3 is to remove ambiguities
14:02:39 [SteveZ]
BB, PL and DG: I cannot live with 1a
14:02:56 [fantasai]
Daniel: I see no consensus on definition of <br> or on whether page-break should apply to it
14:05:20 [Bert]
Daniel/Steve: How do we ask the next question, how do we find the best option that people can all live with?
14:05:35 [fantasai]
Fantasai: I note that 1b would allow page-break to apply to table-row elements, which we may actually want
14:05:48 [SteveZ]
DB: how about broadening 1b to say "may apply to inline elements"
14:06:06 [fantasai]
s/broadening/narrowing/
14:06:45 [fantasai]
Philippe: When you do a straw poll, you ask three questions: what do you want, what can you live with, what can you not live with?
14:08:53 [fantasai]
Straw poll: Which options can you not live with?
14:10:26 [SteveZ]
Everyone can live with 1b
14:10:40 [SteveZ]
AM and SR cannot live with 1b
14:11:01 [plh-css]
s/1b/0/
14:11:25 [SteveZ]
Anne, EE, AM, SR, DB cannot live with 0
14:11:33 [dbaron]
s/with 0/with 4/
14:12:03 [fantasai]
RESOLVED: Say that page-break "may apply" to other elements besides block-level elements
14:22:35 [dbaron]
14:26:01 [glazou]
14:28:01 [Bert]
14:39:01 [SteveZ]
We returned from a break at 15:40
14:41:09 [SteveZ]
Topic: test harness
14:41:33 [SteveZ]
EE: HP is working on this, has sent a prototype
14:43:22 [SteveZ]
EE: can run test from groups or single tests; has option to run least tested tests first
14:44:00 [SteveZ]
EE: What kinds of charts should the results component generate?
14:44:22 [SteveZ]
PL: How are tests placed in the harness?
14:45:04 [SteveZ]
EE: There is a script that can be run by someone on the W3C server team to move testcases into the harness
14:46:49 [SteveZ]
EE: currently, everynight there is a build of the testsuite; can add to chron job to run the script
14:47:28 [SteveZ]
PlH: Can you add a button that says, "I think this test is incorrect" to flag tests in question
14:48:27 [SteveZ]
EE: We think this will not be useful for tests used by the general public; getting e-mail messages seems to work better, but still not very well.
14:48:41 [SteveZ]
EE: we do not yet have a good system for reviewing tests
14:50:23 [SteveZ]
PlH: is there a way to delete results either because the tester has a bad track record or because the test has been changed?
14:50:31 [SteveZ]
EE: not yet
14:51:18 [SteveZ]
EE: the intent is that if a test changes, all past results will be removed so there is no prior history
14:52:41 [SteveZ]
EE: Have a display that shows a table with the tests as the row labels and the UAs and their context as the column labels; the cells show how many checked which box on the test
14:54:19 [SteveZ]
EE: the tests will have metadata that will indicate if special device characteristics (e.g., 9dpi displays, letter paper, ...) to run the test. These will appear when test is selected for execution.
14:55:16 [SteveZ]
PlH: prior to running a series of tests, it is desirable to have the set of requirements for all the tests in the series.
14:57:07 [SteveZ]
SZ: The groups defined by the WG should avoid having conflicting requirements in the series
14:57:44 [SteveZ]
PL: there will be a Skip button on the test to allow it to be skipped because the special requirements for the test may not be met.
14:58:20 [SteveZ]
EE: the goal is to write the test so that they are DPI independent
14:59:51 [SteveZ]
EE: the goal is also to be font independent, but some tests may require the use of a standard set of public usable fonts.
15:00:22 [SteveZ]
EE: the tests require a blank user stylesheet.
15:02:30 [SteveZ]
PL: we should create one or more test that test the assumptions for the test suite
15:03:00 [SteveZ]
PlH: what does "full color" mean to the average user?
15:03:49 [SteveZ]
PlH: I would like for other groups in the Interaction Domain to be able to use this test harness
15:06:34 [SteveZ]
SZ: can I use the test harness in automatic mode, for example to do regression testing against stored bit maps
15:07:34 [SteveZ]
EE: not using the harness, but the test suite is in CVS and it can be pulled and used for anything consistent with the license.
15:09:15 [SteveZ]
DB: in Mozilla, we have tests that have to pieces of HTML that must either render to the same bit map or to two different bit maps
15:10:09 [SteveZ]
EE: the test are designed without reference rendering; the tester should read the instructions and determine the correctness of the results
15:10:32 [SteveZ]
EE: it would be possible to accept reference renderings, however.
15:11:11 [SteveZ]
JD: note that with text renderings are rarely, if ever, the same among browsers
15:13:06 [SteveZ]
PL: I would like to see Implementation Reports generated from the test harness results
15:13:49 [plh-css];%20charset=iso-8859-1
15:13:49 [SteveZ]
SZ: when implementations are generally passing most tests, it would be useful to have the subset of tests that are still being failed
15:16:09 [SteveZ]
PlH: suggests that the above dashboard was useful for WSDL WG and might suggest ways to organize the CSS results (which are more complex)
15:16:58 [SteveZ]
PlH: one thing that was nice was to see what test assertion(s) were being failed in a given test run
15:19:28 [plh-css]
->
CSS test harness
15:19:34 [SteveZ]
JD and EE: there is a bunch of build scripts that build the metadata and other stuff for the test harness which grabs the data from the build process
15:20:57 [SteveZ]
EE: one of the reasons for having a user friendly test harness is to allow volunteers to do some of the testing for this.
15:22:34 [sylvaing]
sylvaing has joined #css
15:22:50 [SteveZ]
HL: I would like to have a large page with a collection of tests in a group, perhaps using IFrames, that I can scroll thru to see the failures myself
15:23:15 [SteveZ]
EE: HL wants a page like DG did for selectors
15:24:17 [SteveZ]
EE: one can add a script to build such an IFrame test; please do not change any of the existing scripts
15:24:52 [fantasai]
15:25:40 [SteveZ]
EE: this is the index by section of all the tests in the CSS2.1 test suite
15:26:29 [SteveZ]
RI: some of the I18N tests have changed recently; are you picking these up?
15:27:28 [SteveZ]
EE: Ira has been working on picking up such tests, but he may be leaving soon.
15:28:02 [fantasai]
s/Ira/Eira/
15:28:10 [fantasai]
s/he/she/
15:28:28 [SteveZ]
EE: for tests that arrive in the wrong format, a repository will be created to store them until that can be adapted to the system
15:29:19 [SteveZ]
PlH: could I18N write there tests for the above test harness?
15:30:47 [SteveZ]
RI: right now, constructing the test in format suitable is extra work beyond what is being done by I18N (which often means me)
15:31:19 [SteveZ]
RI; the I18N format has multiple test per page and has additional info beyond that used by CSS
15:32:49 [SteveZ]
EE: there is a relatively simple template for the test; the scripts build the harness code around that test file matching that template
15:33:00 [fantasai]
15:33:12 [fantasai]
15:33:23 [SteveZ]
The above is the URL for the test template
15:34:10 [SteveZ]
RI: how does one indicate what the requirements for running a given test are?
15:34:34 [SteveZ]
RI: e.g., a special font must be loaded
15:36:26 [SteveZ]
EE: uncommon requirements should be in the test instructions, but this will not be pulled out in a requirements summary
15:38:09 [SteveZ]
RI: Why not have a "requirements" metatag that takes a string to be displayed as part of the requirements display
15:39:20 [SteveZ]
SZ: how could we internationalize such requirements strings?
15:40:22 [SteveZ]
EE: the other requirements that are common to many cases are coded as flags that can be internationalized
15:42:24 [SteveZ]
EE: the build process generates three versions of each test, 1. mostly a copy of the test, 2. an HTML file and 3. an HTML print file.
15:43:59 [SteveZ]
Supporting the test harnes and the test for langauges other than English is out of scope
15:44:17 [SteveZ]
s/harnes/harness/
15:45:17 [r12a]
example of what PLH is saying:
15:46:47 [SteveZ]
EE: agreed that files must be served with specific headers, but that is out of scope for the test harness
15:47:50 [SteveZ]
RI: I have a bunch of test for character encoding that require specific headers
15:47:51 [fantasai]
EE: The test harness doesn't contain or serve up the tests. They need to be hosted elsewhere. The test harness just links to them
15:48:18 [fantasai]
EE: If you have special hosting requirements, you need to set those up where the tests are hosted. There's no interaction there with the test harness
15:48:50 [SteveZ]
EE: the test harness just links to the test; therefore it is the server on which the tests are stored that is responsible for generating the correct headers
15:49:54 [fantasai]
15:50:45 [dsinger]
dsinger has joined #css
15:51:28 [SteveZ]
The above URL is a message about the BiDi test that were being converted for the test harness
15:52:56 [SteveZ]
That completes this topic
15:55:04 [glazou]
dsinger: we just adjourned the meeting for the day !
15:55:36 [SteveZ]
The meeting is now adjouned for the day
16:10:01 [anne]
anne has left #css
16:31:35 [alexmog]
alexmog has joined #css
16:50:54 [jason_cranfordtea]
jason_cranfordtea has left #css
17:53:21 [jdaggett]
jdaggett has joined #css
19:07:44 [sylvaing]
sylvaing has joined #css
20:57:08 [arronei]
arronei has joined #CSS
21:37:38 [shepazu]
shepazu has joined #css
21:47:29 [plinss_]
plinss_ has joined #css
21:55:43 [dbaron]
dbaron has joined #css
22:06:49 [MoZ]
MoZ has joined #css
22:14:57 [dbaron]
dbaron has joined #css
22:32:12 [dbaron]
dbaron has joined #css
23:13:31 [melinda]
melinda has joined #CSS | http://www.w3.org/2008/08/20-css-irc | CC-MAIN-2015-40 | refinedweb | 9,477 | 66.27 |
This article introduces CruiseControl, open source software you can use to automate the build and unit-testing process for multideveloper software projects. I'll explain why automatic builds are essential for successful development teams and take you step-by-step through configuration, installation, and maintenance of a continuous-integration system running CruiseControl.
A common practice these days is to use a version-control system such as CVS or Subversion (see Resources). With multiple developers working on the same system, such coordination is essential. Another increasingly common practice is to write unit tests and run them as part of the build. The Maven build tool, for example, runs JUnit unit tests as part of its normal build process (see Resources). But adopting these practices is just the start. They form the basis of many of the lightweight and pragmatic software-development methodologies that have been developed over the past few years.
When a number of developers work on a single project it's important to make sure that the latest version of the code in the version-control system (the trunk) will always build. This is a good practice for projects with closed development teams; when developers periodically synchronize their working areas with the trunk, a source tree that won't build will hold up development until it can be fixed. For open source projects, keeping the trunk working is vital. Potential new developers could check out the code at any time, but if it won't build, they are likely to be dissuaded from contributing.
Extreme Programming (XP) methodology advocates continuous integration. Developers integrate their code into the trunk as often as possible -- typically every few hours -- while making sure that all the unit tests pass. Other agile methodologies echo this advice.
To adopt continuous integration and unit testing, you need your team to buy into the method and practices, but often that's not enough. The practices rely on manual steps -- integrating code, running tests, and checking code in at the right times -- that can lead to mistakes. Having an automated system build your code and run the unit tests can be a more reliable solution.
Configuring a build server
The rest of this article guides you through the steps involved in configuring a build server for your Java projects using CruiseControl, a piece of software that manages the automatic build process (see Resources). You need a reliable machine with plenty of spare disc space, but it doesn't need to be particularly fast. (You want regular builds, but it doesn't matter whether they take 2 minutes or 20.) The server you'll build is based on Fedora Core 4, a community-developed Linux distribution sponsored by Red Hat (see Resources), so a bit of Unix experience is assumed. The main tasks this article covers are:
- Initial configuration of the system and setting up a user account to run CruiseControl
- Installing CruiseControl and configuring a first build
- Making CruiseControl run all the time
- Simplifying the CruiseControl configuration
- Setting up an optional browser-based interface for monitoring CruiseControl builds
The first order of business is to make sure that all the software you need for basic Java development is installed on your system. Fedora Core 4 includes a Java tool chain based on gcj, the Java compiler from the GNU Compiler Collection (gcc) project, but for compatibility reasons, it's probably wise to install a JDK from either IBM or Sun. The tidiest approach is to build and install your own Java RPMs by following the instructions at jpackage.org (see Resources). The xerces-j2 package that Fedora Core 4 ships was built incorrectly, preventing the Xalan XSLT implementation from working. So you also need to install the updated xerces-j2 packages from the Fedora development repository (see Resources).
You'll also use some other pieces of software:
- XMLStarlet, a useful command-line program for manipulating XML documents (see Resources). You'll use it later on to simplify maintenance of the CruiseControl configuration file.
- CVS and Subversion: You need these tools installed to download updates for the source trees you build. Fortunately, both tools are included with Fedora Core 4.
You must be logged in as root to perform these steps. First, here are the RPMs you should have on the system:
Install the Java, Xerces, XMLStarlet, and Subversion packages:
You also need to create a new user account on the server to own the files and processes involved in running CruiseControl:
Finally, because some of the projects you'll build use the Maven build tool, you need to download it, install it, and set the appropriate environment variables (see Resources). (
JAVA_HOME should be set to /usr/lib/jvm/java.) I use the convention of placing external packages such as Maven and CruiseControl into a directory called pkg. Full installation instructions are available on the Maven Web site, so I won't cover this step in detail:
The next job is to download CruiseControl (see Resources) and install it in the pkg directory:
You don't need to build CruiseControl, because the distribution includes a prebuilt JAR file.
Now you can get your first automated build working. You'll use the XStream project source tree as an initial example (see Resources). Later, you'll learn how to add more projects from local and remote source-code repositories. CruiseControl reads information about projects it should build from a file called config.xml in the directory where it starts up. In your installation, this is the home directory, /home/cruise. Listing 1 shows the content of the simple config.xml file that you'll start with. Create it by copying the text in Listing 1 into a new file:
Listing 1. A simple CruiseControl config.xml file to build XStream
The configuration file gives CruiseControl three main pieces of information for each project it is to build:
- How to build the project, specified in the
<schedule>element:
- Try building the project every 3,600 seconds (that is, every hour).
- Use Ant to drive the build process.
- On every fifth build, clean the source tree of build artifacts (class files and the like from previous builds).
- How to detect when the project should be built, specified in the
<modificationset>element:
- Use Subversion (
svn) to check if the local working copy of the source tree is out of date. (You don't need to build the project if the source code hasn't changed.)
- Check the timestamp of a file called xstream in the force-build directory. This lets you manually force the next scheduled build to happen even if the source tree hasn't changed. (I'll talk about the times you might need this manual override later in this article.)
- What to do with the results from the build, specified in the
<listeners>and
<log>elements:
- Put the output from the build process in timestamped files in the log/build/xstream directory.
- Write the overall status of the build into a file in that directory.
Now you need to check out the XStream source tree from the project's Subversion repository. To be consistent, check out all your source trees as subdirectories of the /home/cruise/src directory, and put the XStream source in src/xstream, as specified in the config.xml file:
Then, set up the force-build subdirectory:
This last step is necessary because CruiseControl will refuse to start up if the file you specified in the config.xml file's
<filesystem> element does not already exist.
It's possible that the build tools aren't working correctly, or that some dependencies you're not aware of are missing. So at this point, it's worth doing a manual check to ensure that the XStream source tree will build successfully:
Also, as you add new projects, you'll need to find out the names of the targets that are used to build the source and to clean it of built artifacts. You must put that information in the config.xml file.
Now you should be ready to let CruiseControl perform this build automatically. Just start CruiseControl, sit back, and wait:
Making CruiseControl run all the time
You have CruiseControl running now, but you can't let it run unattended yet. It's running within a terminal window, so the cruise user would need to be permanently logged in to keep it running. The terminal is also the only way you can control the program: You can stop CruiseControl by pressing Ctrl+C and restart it by running the program again. You can't do either of these things remotely unless you use a Virtual Network Computing (VNC) session or something similar. If CruiseControl (or the JVM) crashes, you'll need to restart it manually. And when you reboot the machine, CruiseControl won't restart until you go through the manual steps to establish a new session, create a terminal, and start the program again. You need something to keep CruiseControl running as a service, or daemon, in Unix terminology.
Numerous ways of getting a program to run continuously under Linux are available. Probably the most common approach is to start the program up at system startup time by hooking a suitable script into the
init system-initialization process. These scripts can start and stop a program, but they do not automatically restart the program if it fails.
The approach I used was to download and install Daniel J. Bernstein's
daemontools (see Resources). This is a small package of programs that take care of starting a set of services and keeping them running. You need to be logged in as root to perform your own installation of
daemontools:
You must make a slight tweak to the package's C source code before it can build cleanly on Fedora Core 4. Using any text editor, change line 6 of src/error.h from
extern int errno; to
#include <errno.h>. Here's how you'd do it with
ed:
You can now complete the installation:
daemontools provides a daemon process called
svscan that takes care of managing a collection of services. Each service is represented by a directory in the /service directory, so you need to create a directory there for the CruiseControl service. For each subdirectory of /service,
svscan starts a child process running the
supervise program.
supervise is the program that deals with managing an individual service such as CruiseControl. It starts the service by creating a child process running the
run program within the service's subdirectory (/service/cruisecontrol/run, for example). If the child process ever terminates,
supervise will restart it.
supervise can also stop and restart its child process by sending signals to it.
daemontools also provides two mechanisms to handle logging for the services that it manages. First, the program called
readproctitle captures output written to the standard error stream (
System.err in the Java world) and copies it into a small buffer that is part of the process title shown by the
ps command:
The buffer is initialized to contain dots at startup, but they are replaced by error messages as they are generated. This mechanism is fine for small quantities of information such as critical error messages. But the small buffer size makes it unsuitable for larger quantities of log information, and the logged information isn't stored to disk so it's hard to analyze over a period of time.
daemontools provides the second mechanism -- the
multilog program -- for this kind of bulk logging. It writes lines from its standard input to log files under the control of instructions you enter as command-line arguments. It includes controls for log rotation, keeping a fixed amount of log information so storage doesn't run out. For example, the simple
multilog /home/cruise/log command logs information to a file in the /home/cruise/log directory, rotating the log files when the log file's size reaches 99,999 bytes and keeping 10 old log files.
multilog is intended to be managed by
supervise just like any other service. In each service directory that
svsccan finds, it looks for a subdirectory called log and creates a
supervise process to manage execution of the
run script within that directory. It also arranges for a pipe to carry the standard output from the main service to the log process's standard input.
So, what do you need to do to let
daemontools manage CruiseControl? You must create the directory structure for the service and its
multilog partner. And you must create
run scripts for each of them and create a directory for the log files. Initially, you'll name the service directory .cruisecontrol. The leading dot causes
svscan to ignore the directory, giving you time to set things up before starting the service for the first time:
Then, create a directory called env. You use this directory's contents to set environment variables for CruiseControl and the other processes that it will start. This is where you make sure that
JAVA_HOME has a suitable value. And it's where you set the environment variables, such as
MAVEN_HOME, needed by the build tools you're using:
Listing 2 shows the /service/cruisecontrol/run script:
Listing 2. Contents of /service/cruisecontrol/run
The script is relatively simple. It performs these steps:
- Saves the name of the service directory (/service/cruisecontrol in this case) for later use.
- Changes the current directory to /home/cruise.
- Makes the standard error stream write to the pipe to the
multilogprocess that is already connected to the standard output stream.
- Starts the JVM to run CruiseControl, running the process as the cruise user and setting up the environment from the files you created in the /service/cruisecontrol/env directory.
Listing 3 shows the /service/cruisecontrol/log/run script, which is even simpler. It runs
multilog as the cruise user:
Listing 3. Contents of /service/cruisecontrol/log/run
Note that you must use
chmod to make both scripts executable. Also, both scripts are careful to use the
exec shell command, which replaces one program with another but does not create new processes. This is important because
supervise manages only its immediate child process. If you did not use
exec, the JVM would start as a child process of the shell that is executing the run script. If
supervise were to send a signal to kill its child process, the shell would receive the signal and exit, but the JVM would carry on running and become an orphan.
supervise would be unaware of this and might then start a second copy of the daemon -- not what you want.
After the service directory has been set up, you can rename it to remove the leading dot.
svscan then starts CruiseControl automatically, and its output should appear in the log file:
Simplifying the CruiseControl configuration
You now have CruiseControl running automatically in a well-controlled environment. Chances are you'll want to add your own projects to the configuration. As you might imagine, all the entries in the config.xml file will look very similar, other than the details of which tools to use to build the project. You can maintain the config.xml file by hand by using copy-and-paste in a text editor, but a less error-prone technique is to generate the config.xml file from a simpler XML document using an XSLT stylesheet. The collection of files that implement this scheme are available to download as a compressed tar file (see Download). Unpack these files into the /home/cruise directory:
The simplified configuration file is named meta-config.xml. This file is transformed using the meta-config.xsl stylesheet to produce CruiseControl's config.xml file. A simple script called
mkconfig performs the transformation using the XMLStarlet tool that you installed earlier. Run
mkconfig to regenerate CruiseControl's config.xml file.
The simple CruiseControl configuration that you started with was sufficient to get your first build to work, but it doesn't do much to help you monitor the build process. The most common requirement is for the results of the integration build to be e-mailed to the relevant developers. The meta-config.xsl stylesheet generates a configuration that will send an e-mail message, but to do so it requires some information about your local environment. It must know a number of variables that are read from the meta-config-params.xsl file; you should alter this file accordingly before you start. The settings in the file are as follows:
- home: The home directory of the build process. The default should be okay if you've used the directory layout described in this article.
- cruisecontrol-home: The directory that the CruiseControl distribution was unpacked into. Again, the default should be okay.
- ant-home: The directory that Ant is installed into. To use the copy of Ant that ships with Fedora Core 4, this should be /usr.
- maven-home: The directory where Maven is installed if you need to use it. The default value assumes that you have unpacked it into the /home/cruise/pkg directory.
- return-address: The return e-mail address for the build e-mails from CruiseControl.
- return-name: The name for the return address in the the build e-mails.
- developers-address: An e-mail address that should always get a copy of the build e-mail, in addition to the developers who committed since the last successful build.
CruiseControl is quite flexible about whom it should e-mail when a build succeeds or fails. The configuration you're using here will send e-mail to each developer who has committed a change to the version-control system since the last build occurred. Your continuous-integration build might also include open source projects that are developed elsewhere (I'll refer to them as remote projects), in which case you probably don't want the build system e-mailing the project's developers when they break something. In this case, you can send the build e-mail to an address that would typically be a mailing list that members of your team can subscribe to if they always want to know the build's status. This lets team leaders find out as soon as possible that the build has been broken.
Listing 4 shows the general syntax of the meta-config.xml file:
Listing 4. Syntax for meta-config.xml
The configuration file is basically a list of
<project> elements. Each project has a
name attribute. The optional
interval attribute overrides the default CruiseControl build interval of five minutes. You should increase the build interval for remote projects to reduce the load on their version-control repositories.
Using either the
<svn/> or
<cvs/> empty element, each project must specify the version-control tool that should be used to update its source tree. It must also specify the build tool to be used, either
<ant/> or
<maven/>. The project must also contain two elements that say which targets (or goals for Maven) should be used to clean and build the source tree. For Maven, typical values might be
<clean>clean</clean> and
<build>jar:install-snapshot</build>. For Ant, you would need to examine the build.xml file to find the target names.
A project's source is assumed to be in a directory in /home/cruise/src named after the project, so a project whose
name attribute is
my-project would have its source in /home/cruise/src/my-project. Some projects have large source trees with subdirectories that can be built separately; to handle these cases, a
<project> element can contain an optional
<srcdir> element that specifies a specific subdirectory of the /home/cruise/src directory. For example:
The default CruiseControl behavior is to e-mail everyone who checked in changes since the last build. If you're pulling source code from a remote version-control repository, add the
<remote-project/> element. This causes e-mail to be sent to the
developers-address from the meta-config.xsl file.
Dependencies among projects
CruiseControl doesn't know anything about dependencies among projects. You can have one project that produces a JAR file containing a collection of utility classes that many of your other projects depend on, but CruiseControl remains blissfully unaware of this relationship unless you explain the relationship to it. You can make changes to the utility-classes project that cause it to be rebuilt, but the projects that depend on it will not be rebuilt and tested against the new version of the utility classes. This would limit the value of your integration testing, so some solutions to the problem are available.
The main tool that CruiseControl provides for this purpose is the
<filesystem> element. You can include this element in a project's
<modificationset> section so that the project will be rebuilt when some area of the filesystem is modified. The initial config.xml file in Listing 1 uses this approach to trigger a rebuild when a file in the force-build directory was modified. All projects will create or update artifacts in some location in the filesystem. (For example, the utility-classes project will update the JAR file that it produces as the result of a build.) You can use these locations in
<filesystem> elements that will trigger building the projects that depend on those artifacts.
Ant allows a large amount of flexibility in the way that a project is built, so it is impossible to state with any certainty which areas of the filesystem a project will update when it has been rebuilt. The only approach to take here is to examine the build.xml file for each project and find out where it places its build artifacts. You can then add appropriate
<filesystem> elements to the projects that depend on the artifacts. The simplified meta-config.xml file allows a
<modificationset> element that can contain any CruiseControl elements. They will be copied across into the config.xml file. For example, a project that depends on XStream might include the following:
Maven imposes a common build process on each project, so you can provide some common rules for specifying dependencies among Maven projects. A project can specify a dependency on artifacts in the Maven repository that are created by a specified group. More precisely, including
<repo-dependency>classworlds</repo-dependency> causes a project to be rebuilt if any file under /home/cruise/.maven/repository/classworlds has changed. Assuming that your
classworlds build is installing the produced JAR file in the local Maven repository, any projects that include this element will automatically be rebuilt.
A project can also specify a dependency on another project's build output. Including
<srcdir-dependency>classworlds</srcdir-dependency> will cause a project to be rebuilt if any file under ${srcdir}/target has changed, where ${srcdir} is the source directory for the named project.
Adding a project to the build
Here are the steps for adding a new project to your continuous-integration build:
- As the cruise user, check out the source code into the /home/cruise/src directory.
- Check that you can build the source tree manually.
- Add a suitable entry to meta-config.xml.
- Run
./mkconfig.
- Restart CruiseControl so that it can read the new project entries from config.xml. You can use the
pscommand to find the process ID of the JVM running CruiseControl, then kill the process using the
killcommand. Or you can run
svc -t /service/cruisecontrolas the root user to have
daemontoolskill the process for you. Either way,
supervisewill make sure that CruiseControl is restarted.
- Optionally, update the timestamp of /home/cruise/force-build/${project-name} so that CruiseControl triggers an automatic rebuild.
The CruiseControl Web application
The CruiseControl installation that you now have running sends the results of each build as an e-mail message to your developers. But you probably have people involved in the development process who aren't recipients of these messages -- project managers or testers, for example. CruiseControl includes a simple Web application that lets these people monitor the continuous-integration builds.
The CruiseControl Web application runs in the Apache Tomcat application server, a copy of which is included in the Fedora Core 4 distribution. You need to install the
tomcat5 and
tomcat5-admin-webapps packages:
You also need to install an implementation of the Java Transaction API (JTA). You can build your own JTA RPM using the RPM spec file from JPackage (see Resources), but the simplest option is to install
geronimo-specs and
geronimo-specs-compat from the Fedora development repository:
The CruiseControl Web application can't find a suitable JAXP
TransformerFactory implementation with the default Tomcat installation, so you need to add the default JAXP XML transformer to the endorsed classes directory:
The CruiseControl Web application can draw graphs of important build statistics, such as the ratio of successful builds to failed builds. The libraries that draw the graphs use Java AWT, so you need to make sure the JVM runs in headless mode. To do this edit the /etc/tomcat5/tomcat5.conf file and insert a line saying
JAVA_OPTS="-Djava.awt.headless=true" at around line 10.
Now add the CruiseControl Web application to Tomcat's configuration by creating a file called cruisecontrol.xml in /etc/tomcat5/Catalina/localhost. Listing 5 shows the contents of the file:
Listing 5. Contents of /etc/tomcat5/Catalina/localhost/cruisecontrol.xml
Note that the second line in Listing 5 has been wrapped for presentation purposes. The
docBase attribute should be on a single line in the file you create.
You also need to create a directory for the CruiseControl Web application to store cached pages:
You can now start Tomcat and set it to restart when the system boots. The startup scripts currently generate some warning messages, but these can be ignored:
You should now be able to use a Web browser to access the CruiseControl Web application at. Figure 1 shows an example of the output you'll see:
Figure 1. The CruiseControl Web application
Before I conclude, I should make a couple of points about the security issues that are involved in configuring and running your own continuous-integration server. First, I haven't tried to address the issues of securing access to the server that you build. You should consult other sources of information to ensure your system is secure, or run it on a private network that provides a suitable level of protection.
Second, you should consider how much you are prepared to trust the developers of external projects that you build on your continuous-integration server. A project's build process and unit tests can access your server's resources, including the network the server is connected to. The automated build process means that changes committed into a remote version-control repository will be downloaded and executed on your build server with no human intervention. This puts your build server at some risk from bugs and malicious code committed to source trees. You might want to limit the external projects you build on your build server, or put some effort into protecting your system and network from the projects that you are building.
This article has guided you through the steps for setting up a continuous-integration server running CruiseControl. You've installed CruiseControl and learned what you need to do to keep it running all the time. You've gained an understanding of the day-to-day management of the continuous-integration server. And you've distilled the important elements of the configuration into a simpler XML document, including the choice of version-control and build tool and the targets or goals to be used to build each project.
You also now know how to specify the dependencies among projects. This is easier for Maven projects because they have a consistent build process and a shared repository for the artifacts produced. Ant leaves these mechanisms to each project, but if you have a number of Ant projects with a common build process you can use generated
<filesystem> elements to extend the configuration to model the dependencies among these projects. CruiseControl has a number of other controls that can be used to enhance the continuous-integration process. You could easily take advantage of them by enhancing the XSLT stylesheet that I introduced.
I quickly covered the steps required to run the CruiseControl Web application, but you could improve your installation's security and reliability. A more secure configuration would use the Apache
httpd to process requests and hand them to Tomcat. It might also be more reliable to have
daemontools manage the Tomcat JVM in the same way that you configured it to manage CruiseControl itself. Beyond this, you should consider the security requirements of your build server and its network and explore some of the security tools that Linux provides.
This article aims to make your development process more agile and improve the quality of your software by adopting a continuous-integration approach. Creating a build server is a concrete and pragmatic step, and you can gain further improvements by adopting more practices from the agile-development methods. I encourage you to read more about these methods (see Resources for some starting points) and use their ideas to enhance and tune your development process.
Information about download methods
Learn
- Open Source Development with CVS, 3rd Edition and Version Control with Subversion: These books on version control are available online.
- Extreme Programming: A gentle introduction: Read about the Extreme Programming approach to software development.
- Integrate Often and Unit Tests: Extreme Programming advocates continuous integration and unit testing.
- Demystifying Extreme Programming: Roy Miller's former developerWorks column series can help you understand XP and its importance.
- "Matching project and process" (Gary Pollice, developerWorks, May 2004): Read a discussion of the often overlooked necessity of tailoring a software development process to match the people, tools, and project type.
- Working with the SeaMonkey Tree and tinderbox: The Mozilla project documents its development practices. One of its important tools is the tinderbox system, which continually builds and tests the source tree on a number of different platforms.
- The Pragmatic Programmers: Great writing about agile software development practices.
- Apache Tomcat: Fedora Core 4 bundles the Apache Tomcat application server. Go here to find complete documentation.
- XStream: This article uses the XStream project's source tree as an example project.
- The Java technology zone: Hundreds of articles about every aspect of Java programming.
Get products and technologies
- CruiseControl: Find CruiseControl downloads and documentation at the project Web site.
- CVS and Subversion: Put your source code under version control.
- JUnit: JUnit is a popular unit-testing framework for Java programming.
- Maven: The Apache Maven project provides a build system that incorporates many best practices, including JUnit.
- Fedora Core 4: This Linux distribution is the basis of the build server described in this article.
- JPackage: The JPackage project originated the RPM packaging of Java projects that the Fedora project has adopted. The project can't redistribute the Sun JDK as RPMs, but you'll find instructions and RPM spec files for building them yourself.
- Fedora Core development repository: Go here to obtain updated Xerces packages. You need to upgrade to the xerces-j2-2.6.2-4jpp_8fc packages at a minimum; xerces-j2-2.6.2-5jpp_2fc is the most recent version available from the repository.
- XMLStarlet: This command-line program lets you perform useful operations on XML documents.
- daemontools: D. J. Bernstein's daemontools let you keep CruiseControl running all the time.
Discuss
Mark Wilkinson is an independent consultant specializing in software architecture, design, and the development process. He has led small teams of programmers building innovative solutions for a variety of clients. Mark has developed a pragmatic approach to managing the development process, leaning heavily on automation and tools such as CruiseControl. He also works on a number of projects hosted by the Codehaus. Mark has a Ph.D. in computer science from the University of York, United Kingdom. | http://www.ibm.com/developerworks/java/library/j-cc/index.html | crawl-003 | refinedweb | 5,319 | 53.31 |
How to Exclude Code From Code Coverage
How to Exclude Code From Code Coverage
This blog post focuses on how to leave out all code that will not be covered with unit tests from code coverage and correctly display the numbers shown in code coverage reports.
Join the DZone community and get the full member experience.Join For Free
Building real-time chat? Enroll in a Free Course on Mobile Chat Development.
Recently I blogged about how to generate nice code coverage reports for ASP.NET Core and .NET Core applications. This blog post focuses on how to leave out all code that will not be covered with unit tests from code coverage and get numbers shown on code coverage reports correct.
What to Exclude From Code Coverage?
I think almost all applications have some classes we don't want to test. The usual candidates are primitive models and Data Transfer Objects (DTO). One example is given below:
public class EditFolderModel { public int Id { get; set; } public string Title { get; set; } public int? parentFolderId { get; set; } }
Without any additional information, these classes will be part of code coverage calculations.
Excluding Code From Code Coverage
The easiest way to exclude code from code coverage analysis is to use the ExcludeFromCodeCoverage attribute. This attribute tells tooling that a class or some of its members are not planned to be covered with the tests. The
EditFormModel class shown above can be left out from code coverage by simply adding this attribute.
The
ExcludeFromCodeCoverage attribute works also on the class member level.
ExcludeFromCodeCoverage Attribute in Action
I take my simple demo application and generate a code coverage report for it. There's no code excluded, everything is counted in.
Now I add the
ExcludeFromCodeCoverate attribute to all classes and members that don't need testing. After this, I generate a new report.
I left out a load of primitive models, DTOs, constructors, and scaffolded ASP.NET Identity code-behind files. As a result, the numbers on my code coverage report changed around 50 percent and that's huge even for a small web application.
Should I Use the ExcludeFromCodeCoverage Attribute?
I think it makes a lot of sense to exclude from code coverage reports the code that will never be covered with tests. The reports above were generated for a relatively small web application and the change in numbers was pretty big. I don't want to say that the same effects appear with every application but there will be changes in numbers.
Over time, these metrics may be an important part of estimating the need for unit tests. If these numbers lie, then the work ahead may seem way bigger than it actually is. This is why it is important to keep these metrics correct.
Wrapping Up
Although code coverage reports are easy to set up there's still some work needed to get numbers right. In .NET we can use the
ExcludeFromCodeCoverage attribute to leave out whole classes and structs or members like methods, properties, constructors, and events. As example reports show, corrections to code coverage numbers can be significant.
Power realtime chat, IoT and messaging apps at scale. Pubsub realtime messaging, functions, chat, presence, push, notifications, blocks catalog and more.
Published at DZone with permission of Gunnar Peipman , DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.
{{ parent.title || parent.header.title}}
{{ parent.tldr }}
{{ parent.linkDescription }}{{ parent.urlSource.name }} | https://dzone.com/articles/how-to-exclude-code-from-code-coverage | CC-MAIN-2019-13 | refinedweb | 574 | 56.96 |
SYNOPSIS
#include <stdlib.h>
char *mkdtemp(char *template);
feature test macro requirements for glibc (see feature_test_macros(7)):
mkdtemp(): _BSD_SOURCE
DESCRIPTION
The VALUE
The mkdtemp() function returns a pointer to the modified template
string on success, and NULL on failure, in which case errno is set
appropriately.
ERRORS
EINVAL The last six characters of template were not XXXXXX. Now tem-
plate is unchanged.
also see mkdir(2) for other possible values for errno.
VERSIONS
Available since glibc 2.1.91.
CONFORMING TO
POSIX.1-2008. This function is present on the BSDs.
SEE ALSO
mkdir(2), mkstemp(3), mktemp(3), tempnam(3), tmpfile(3), tmpnam(3)
COLOPHON
This page is part of release 3.23 of the Linux man-pages project. A
description of the project, and information about reporting bugs, can
be found at. | http://www.linux-directory.com/man3/mkdtemp.shtml | crawl-003 | refinedweb | 134 | 60.61 |
[PATCH] Serial updates
From: Russell King (rmk+lkml_at_arm.linux.org.uk)
Date: 10/31/04
- Previous message: Larry McVoy: "Re: BK kernel workflow"
- Next in thread: Andreas Jellinghaus: "Re: [PATCH] Serial updates"
- Reply: Andreas Jellinghaus: "Re: [PATCH] Serial updates"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 31 Oct 2004 17:51:14 +0000 To: Linux Kernel List <linux-kernel@vger.kernel.org>
Ok, here's a major serial update. Items covered in this update:
- unuse register_serial/unregister_serial.
Instead, please use serial8250_register_port() and
serial8250_unregister_port() to talk to the 8250 driver.
The old interfaces have several restrictions:
1. do not allow the struct device associated with a port to be known
to the tty layer.
2. have various restrictions on the size of IO addresses (see the
HIGH_BITS_OFFSET stuff - which incidentally 8250_pnp got wrong.)
- provide a mechanism for 8250 platform ports to be dynamically
registered. We do this via platform devices - either one or
multiple platform devices. You can have none, one, or as many
as you desire. 8250.c couldn't care.
- any ports listed in include/asm-*/serial.h will still be
intialised in preference to platform device based ports for the
time being. It is intended that everyone will move to using
the platform device method.
- this means that CONFIG_SERIAL_8250_NR_UARTS slightly changes
definition. It is the number of _extra_ ports above those in
include/asm-*/serial.h that 8250.h will support. If you have
removed all ports from include/asm-*/serial.h, then it is
obviously the total number of ports that 8250.c will support,
and you need to make sure that it's large enough for your
platform.
- ppc64 broke in this merge. That's expected because I backed out
benh's changes to the serial drivers. A "get you working again"
patch is with benh as of last night pending his attention.
The patch is about 50K, so won't fit through lkml, and is available
here instead:
People who should test this patch as a minimum:
- ia64 people (ACPI port discovery)
- parisc people (GSC port discovery)
- pnp using people
Once this lot is in, I'll be following up with a set of patches which
removes the serial device tables in include/asm-arm/arch-*/serial.h.
Diffstat and changeset log follow:
drivers/serial/8250.c | 371 +++++++++++++++++++++++--------------------
drivers/serial/8250.h | 74 ++++++++
drivers/serial/8250_acorn.c | 60 +++---
drivers/serial/8250_acpi.c | 74 +++-----
drivers/serial/8250_pci.c | 6
drivers/serial/8250_pnp.c | 34 +--
drivers/serial/au1x00_uart.c | 17 -
drivers/serial/serial_core.c | 83 +--------
drivers/serial/serial_cs.c | 28 +--
include/linux/8250.h | 75 --------
include/linux/serial_8250.h | 28 +++
include/linux/serial_core.h | 10 -
12 files changed, 420 insertions(+), 440 deletions(-)
through these ChangeSets:
<rmk@flint.arm.linux.org.uk> (04/10/31 1.2354)
[SERIAL] Fix deadlock on removal of 8250 module.
We must unregister all serial ports before driver_unregister()
can complete. This means that we must unregister all ports in
serial8250_remove, including our legacy ISA ports. We flag this
special cleanup operation by setting serial8250_isa_devs to NULL
and not handling our own platform device any differently from
any others.
<rmk@flint.arm.linux.org.uk> (04/10/31 1.2353)
[SERIAL] Don't detect console availability using port->ops.
Use !iobase && !membase rather than !ops for console port
availability.
<rmk@flint.arm.linux.org.uk> (04/10/31 1.2352)
[SERIAL] 8250_acpi: Convert to use serial8250_{un,}register_port.
<rmk@flint.arm.linux.org.uk> (04/10/31 1.2351)
[SERIAL] Don't use UPF_AUTOPROBE, fix two build problems.
The curse of the missing __devexit_p() returns, and asm-*/ obviously
marks the end of the comment.
<rmk@flint.arm.linux.org.uk> (04/10/31 1.2350)
[SERIAL] 8250_pnp: Convert to use serial8250_{un,}register_port.
<rmk@flint.arm.linux.org.uk> (04/10/31 1.2349)
[SERIAL] serial_cs: Convert to use serial8250_{un,}register_port.
<rmk@flint.arm.linux.org.uk> (04/10/31 1.2348)
[SERIAL] 8250: Warn when ports with zero base_baud are registered.
<rmk@flint.arm.linux.org.uk> (04/10/31 1.2347)
[SERIAL] 8250_acorn: Convert to use serial8250_{un,}register_port.
<rmk@flint.arm.linux.org.uk> (04/10/30 1.2345)
[SERIAL] Undo "get_legacy_serial_ports" patch for PPC.
This patch conflicts with work to properly integrate the device model
into the serial layer, and provide architectures with a *clean* way
to tell 8250.c about their serial ports at run time.
<rmk@flint.arm.linux.org.uk> (04/10/30 1.2026.4.8)
[SERIAL] 8250: prevent ports with zero clocks being registered.
<rmk@flint.arm.linux.org.uk> (04/10/30 1.2026.4.7)
[SERIAL] 8250: add probe and remove device driver methods.
This change allows platform devices named "serial8250" to provide
lists of serial ports to the 8250 driver at runtime, in addition to
the hard coded table in include/asm-*/serial.h.
The next step is to deprecate the tables in serial.h.
<rmk@flint.arm.linux.org.uk> (04/10/30 1.2026.4.6)
[SERIAL] 8250: Add platform device for ISA 8250-compatible devices.
Add a platform device for ISA 8250-compatible serial devices listed
in the table in include/asm-*/serial.h. Arrange for unregistered
serial devices to be owned by this device.
This enables power management for ISA 8250 devices, and starts to
opens the way for architectures to dynamically provide their own
lists of 8250 devices via platform device(s).
<rmk@flint.arm.linux.org.uk> (04/10/30 1.2026.4.5)
[SERIAL] Re-order 8250 serial driver initialisation/finalisation.
Only register the 8250 serial driver with the device model after
registering and setting up our internal uart ports. Do the reverse
on module finalisation.
<rmk@flint.arm.linux.org.uk> (04/10/30 1.2026.4.4)
[SERIAL] 8250: move basic initialisation of 8250 ports.
This moves the basic initialisation of 8250 ports from
serial8250_register_ports() into serial8250_isa_init_ports()
<rmk@flint.arm.linux.org.uk> (04/10/30 1.2026.4.3)
[SERIAL] 8250: Fix resource handling.
serial8250_request_std_resource() is now responsible for claiming
the standard resources, _and_ calling ioremap if necessary.
serial8250_release_std_resource() performs the complementary function
in its entirety.
serial8250_*_rsa_resource() perform the similar operations for RSA
ports, with the exception that RSA ports can only be mapped into IO
space.
<rmk@flint.arm.linux.org.uk> (04/10/30 1.2026.4.2)
[SERIAL] Clean up serial_core.c write functions.
Since the tty layer now takes care of user space writes,
__uart_user_write() and associated temporary buffer and temporary
buffer semaphore have all become unnecessary. There's also little
point in having __uart_kern_write() separate from uart_write(), so
combine the two together.
Adrian Bunk kindly provided the patch to remove __uart_user_write().
The rest of the work is rmk's.
Signed-off-by: Adrian Bunk
Signed-off-by: Russell King <rmk@arm.linux.org.uk>
<arjan@nl.rmk.(none)> (04/10/24 1.2026.4.1)
[SERIAL] Remove dead code.
serial8250_get_irq_map is no longer used anywhere in the kernel (it
used to be used by the isapnp code but isn't anymore) so it's dead
code, below is a patch to remove this.
--
- Previous message: Larry McVoy: "Re: BK kernel workflow"
- Next in thread: Andreas Jellinghaus: "Re: [PATCH] Serial updates"
- Reply: Andreas Jellinghaus: "Re: [PATCH] Serial updates"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- Re: [patch] x86, serial: always probe for legacy COM ports
... conversion to platform devices is still worthwhile. ... Always probe for serial
ports at legacy addresses, ... reports COM2 first, then COM1 in the ACPI namespace.
... (Linux-Kernel)
- [patch] x86, serial: always probe for legacy COM ports
... conversion to platform devices is still worthwhile. ... Always probe for serial
ports at legacy addresses, ... reports COM2 first, then COM1 in the ACPI namespace.
... (Linux-Kernel)
- Slow 2d performance in X / opera / nvidia drivers
... Kernel config attached ... 2 ports with 2 removable, ... Load
"extmod" ... Identifier "Keyboard0" Driver "keyboard" ... (freebsd-questions)
- Re: Need guidance developing NIC driver
... Post the INF file with the question. ... "Getting Started with the Windows
Driver Development Environment" ... > broadcast packets to all ports. ...
and should leave other USB ports able to be used by ... (microsoft.public.development.device.drivers)
- Synaptic tochpad recognize
... PSM driver recognizes tochpad as IntelliMouse device. ... <ACPI PCI bus>
on pcib0 ... 2 ports with 2 removable, ... # Power management support ...
(freebsd-current) | http://linux.derkeiler.com/Mailing-Lists/Kernel/2004-10/10321.html | crawl-001 | refinedweb | 1,375 | 53.78 |
I'm trying to understand how the cycle of my "main.py" works. It's based on examples found on the net, about the PySide and Qt Designer, to implement a Python GUI.
The code is:
#***********************************#
# Python Libraries #
#***********************************#
from PySide.QtCore import *
from PySide.QtGui import *
import sys
import time
#***********************************#
# Python files #
#***********************************#
import Gui
from server import *
class MainDialog(QDialog, Gui.Ui_TCPServer):
def __init__(self, parent=None):
super(MainDialog, self).__init__(parent)
self.setupUi(self)
self.connect(self.ConnectBt, SIGNAL("clicked()"), self.ConnectBt_clicked)
self.connect(self.QuitBt, SIGNAL("clicked()"), self.QuitBt_clicked)
self.connect(self.DisconnectBt, SIGNAL("clicked()"), self.DisconnectBt_clicked)
print "NOW HERE\r\n"
def ConnectBt_clicked(self):
self.ConnectBt.setText("Connecting...")
self.server_connect()
print "THEN HERE\r\n"
def QuitBt_clicked(self):
self.close()
def DisconnectBt_clicked(self):
self.ConnectBt.setText("Connect")
self.server_off = ChronoRequestHandler()
self.server_off.finish()
def server_connect(self):
self.server_on = ServerStart()
self.server_on.try_connect()
if __name__ == '__main__':
app = QApplication(sys.argv)
form = MainDialog()
print "HERE\r\n"
form.show()
app.exec_()
print "END\r\n"
I think you should get more clear on how object programming and events work.
In the last if-statement (the code on the bottom that runs when you call your script from e.g. terminal) you create an app object instance of QApplication.
After that you create form, instance of MainDialog which is the class you define above (inheriting methods, properties, etc from two classes, QDialog, Gui.Ui_TCPServer).
By doing
form = MainDialog()
you run __init__, print "NOW HERE" and go out of that method. Please check what __init__ does in Python. why-do-we-use-init-in-python-classes
Before the end you call the exec() method of the app instance. This contains a loop so that your interface gathers and processes events. See the documentation on QApplication.exec() below.
When you press the 'ConnectBt' button you call the ConnectBt_clicked() method, which does stuff (connects with the server) and prints "THEN HERE".
In the same way, when you press QuitBt you call QuitBt_clicked(), which closes the connection and lets the code print "END".
I also suggest you read more documentation about the classes you are using. They will explain how come that the different buttons are "linked"/have as callbacks the methods ConnectBt_clicked(), def QuitBt_clicked(), and DisconnectBt_clicked(). The mechanisms by which the buttons trigger these callbacks is kind of implicit in the code implemented in those classes.
QApplication Class Reference: exec_, quit(), exit(), processEvents(), and QCoreApplication.exec(). | https://codedump.io/share/jS2XRAGwQraz/1/how-does-the-maindialog-cycle-work | CC-MAIN-2017-51 | refinedweb | 403 | 52.56 |
KVM_NEXTPROC(3K) KVM_NEXTPROC(3K)
NAME
kvm_getproc, kvm_nextproc, kvm_setproc - read system process structures
SYNOPSIS
#include <<kvm.h>>
#include <<sys/param.h>>
#include <<sys/time.h>>
#include <<sys/proc.h>>
struct proc *kvm_getproc(kd, pid)
kvm_t *kd;
int pid;
struct proc *kvm_nextproc(kd)
kvm_t *kd;
int kvm_setproc(kd)
kvm_t *kd;
DESCRIPTION
kvm_nextproc() may be used to sequentially read all of the system
process structures from the kernel identified by kd (see kvm_open(3K)).
Each call to kvm_nextproc() returns a pointer to the static memory area
that contains a copy of the next valid process table entry. There is
no guarantee that the data will remain valid across calls to
kvm_nextproc(), kvm_setproc(), or kvm_getproc(). Therefore, if the
process structure must be saved, it should be copied to non-volatile
storage.
For performance reasons, many implementations will cache a set of sys-
tem process structures. Since the system state is liable to change
between calls to kvm_nextproc(), and since the cache may contain obso-
lete information, there is no guarantee that every process structure
returned refers to an active process, nor is it certain that all pro-
cesses will be reported.
kvm_setproc() rewinds the process list, enabling kvm_nextproc() to res-
can from the beginning of the system process table. kvm_setproc() will
always flush the process structure cache, allowing an application to
re-scan the process table of a running system.
kvm_getproc() locates the proc structure of the process specified by
pid and returns a pointer to it. kvm_getproc() does not interact with
the process table pointer manipulated by kvm_nextproc, however, the
restrictions regarding the validity of the data still apply.
RETURN VALUES
On success, kvm_nextproc() returns a pointer to a copy of the next
valid process table entry. On failure, it returns NULL.
On success, kvm_getproc() returns a pointer to the proc structure of
the process specified by pid. On failure, it returns NULL.
kvm_setproc() returns:
0 on success.
-1 on failure.
SEE ALSO
kvm_getu(3K), kvm_open(3K), kvm_read(3K)
21 January 1990 KVM_NEXTPROC(3K) | http://modman.unixdev.net/?sektion=3&page=kvm_nextproc&manpath=SunOS-4.1.3 | CC-MAIN-2017-30 | refinedweb | 331 | 73.27 |
I am having trouble distributing the total sales based on the recognition quarter and dividing them into future quarters upto ending quarter&year. Thanks for your help. Known variables: Sales person, expected total sales per person, sales start date,
I clu
List of Dates between my From and Two <?php $scheduleStartDate = 2015-06-20; $scheduleEndDate = 2015-06-25; $Date = getDatesFromRange($scheduleStartDate,$scheduleEndDate); $Date = substr($Date, 0, -1); function getDatesFromRange($start, $end){ $dates
I am trying to pass the date entered in this input box through a range of cells in a specific column. The range isn't specific but must fill all the cells that currently contain data in that column. 'Date input box Sub dateInput() Dim dateString As S
I'm using oracle as my database, I have a taskdate column as TIMESTAMP. the format it save in database is 5/29/2015 10:27:04.000000 AM. can I convert it into 2015-05-29 this format when I retrieve it out?? --------------Solutions------------- Of cour thought this going to be quite easy but it is not! I have date: mei 28, 2015 (dutch) and I would like to convert it to english Y-m-d Problem is site is multilang so I would like it to stay dynamic (replace mai to may) is not solution, I've already
I have been playing around with this for awhile now and can't quite get the result I am looking for. I have an object like this: public class Point { public string Tag {get;set;} public DateTime Time {get;set;} public int Value {get;set;} } Each tag
If I have a date that i've converted using the as.Date function, e.g. "2015-01-01" how can I find out what date it is using as reference for its origin? And yes, I tried ?Date, and tried using the default origin, but got days in 1945. I would li
$date = getdate(); $query = "UPDATE Members Set Name = '$desiredName', Latest_Update = '$date' Where ID = '$currentID'"; if(sqlsrv_query($conn, $query)) { echo "Record successfully updated."; } I have this query to update a name of a m
I'm using the SimpleDateFormat and Date class to get the current time. The watch face I am developing for Android wear requires the text version of the time. For example, 8:30 would be "eight" and "thirty", 9:21 would be "nine&quo
Gang...I need a notepad++ python script teaching moment. I want to find and replace a date format (MM/DD/YY and replace with YYYY-MM-DD). In NotePad++ RegEx I can do this with Find: (([0-9]+)/+([0-9]+)/+([0-9]+)) Replace: 20\3-\1-\2 Would someone sho
I using a date-picker to set a start and end date. The date range is supposed to move forward each day for a two week, sliding window of entry. My code below works but I would like to refactor it into something that is easier to maintain. What techni
This question already has an answer here: Convert date format yyyy-mm-dd => dd-mm-yyyy 11 answers I tried to convert date format which is store in databaseas '2015-04-20' to '04-20-2015'.Now I caught garbage value in date_format(). echo $dob1=$vfet['
I have Date as listed below: 17/03/2015 09:38:39 AM 17/03/2015 10:52:26 AM 10/03/2015 08:30:56 AM 02/03/2015 09:18:10 AM 02/03/2015 09:37:23 AM 02/03/2015 11:25:01 AM 02/03/2015 11:29:00 AM 02/03/2015 11:42:38 AM 02/03/2015 12:04:39 PM 02/03/2015 12:
I am using Java 1.7 and mysql database. mysql db is set to UTC timezone. I have below code to save the date into db. While saving I am using new java.util.Date() If I want to search by Date range through UI, I have below code. Javascript file: var be
Most of what I can find on here is appending the date to a filename, but I need to drop last month's date and then append this month's date. I've got the date part figured out, but I just need help with the rename portion. The variables in the batch | http://www.dskims.com/tag/date/ | CC-MAIN-2019-13 | refinedweb | 721 | 78.99 |
Also, Python workbenches debugging is strictly related also to Python workbenches reloading. So I'm summarizing here my understanding about that as well.
Let's start with debugging. Python debugging is actually described in two WIki pages:
- , in the Python section, that also re-directs to a Forum post: . This is possibly the most up-to-date information, still I believe it is not complete.
- ... nvironment -> this I find quite obsolete, as it basically describes how you can debug Python code using 'print' statements or slightly more elaborated versions of the same concept. Interesting, but not exactly user-friendly
So here's my summary:
Method 1: Using pdb
This is my preferred, as it works out of the box (requires no installation of anything beyond the standard FreeCAD release), it is the same for Windows and Linux, and can debug pretty much everything Python.
Basic usage for pdb in FreeCAD is discussed in
However, the suggestion is to insert the statement
in your code, instead of print statements. This is not quite right, as in general I do not want to change the code for debugging; and more so when dealing with workbenches, where I fall into the secondary problem on how to reload a workbench!
Code: Select all
import pdb; pdb.set_trace()
Instead, as we have the Python console available, from the console you just:
- break into pdb with
Code: Select all
import pdb; pdb.set_trace()
- set a breakpoint as below, where <yourpythonmodule> is the module name as you would import it (i.e. import <yourpythonmodule>)
Code: Select all
b <yourpythonmodule>:<yourlinenumber>
- resume execution typing
Code: Select all
c
Another advantage of pdb is that it allows you post-mortem analysis. If you hit an exception, you can run from the Python console
and you have access at the last backtrace, so you can dig into what happened.
Code: Select all
pdb.pm()
Cons of this approach:
- It is textual only (well, for me this is not necessarily a cons)
- FreeCAD mess up a bit the prompt (pdb) when debugging on a breakpoint, the prompt appears sometimes in the report window, so it might be a bit confusing
As the name implies, this is a GUI version of pdb (not a Windows-only version, mind you! win=GUI here). However, to make it work, you need some configuration, which is different for Windows and Linux, as of course you need to install winpdb, and the debug is done attaching winpdb to a remote target (is not embedded within FreeCAD; FreeCAD is the remote target to debug).
This is the method described by Werner in many posts (I believe this is his preferred?), see:. ... 80&p=26446
and ultimately appearing in the Wiki in the post I already cited:
Again all the discussion is mainly for debugging Macros, and the example in the Wiki page tells you to run a script. Actually this is not needed, again you can just insert a breakpoint in your code and work in FreeCAD until that part of the code is reached.
Linux version:
- install winpdb from a terminal with
Code: Select all
sudo apt-get install winpdb
-
Windows version:
The problem under Windows is that Python for FreeCAD is installed bundled with FreeCAD, and separately from any other Python installation you may have.
So when you need to install Python extensions, you need to do that in a way that FreeCAD sees it.
However, you don't need winpdb to be installed into FreeCAD; this application opens a socket for remote debugging, so you can launch it in any other way. In my case, as I have Python installed under Win, I just installed it from the DOS shell using:
However, from within FreeCAD you need rpdb2. I looked around a bit in the Forum and found the discussion . So I gave it a try and it actually worked, at least in my case - the thread warns that this method may fail, I'm not sure here about the conditions when this could happen.
Code: Select all
pip install winpdb-reborn
One important remark: if you have FreeCAD installed in "Program Files" or equivalent directory that is under Admin supervisory right, this method of installation will fail. You MUST start FreeCAD with "Run as Administrator".
Code: Select all
import pip pip.main(['install'] + ['winpdb']
Now you are all set, and you can follow similar steps as in Linux case:
-
The obvious advantage of winpdb is the availability of a GUI, so it is more user-friendly than pdb alone. However, I find it more tricky to start (as you need to work on two different windows, coordinating the actions) and the author of winpdb says
Cons of this approach:
- Needs a more complex set-up (at least under Windows)
- More complex to start than pdb (as you need to work on two different windows, coordinating the actions)
- winpdb is not fully stable under Python 3:I started porting winpdb-reborn to Python 3 / Phoenix but the amount of effort exceeds my availability. So: WINPDB ON PYTHON 3 IS BUGGY AND NOT WORKING.
If you like winpdb and want it on python 3 please contribute a bit of your time to fix one or two bugs. With the help of everybody, we can make it work !
Method 3: using Visual Studio
This is described in detail in the thread
However, I admit I was not able to make it works, possibly because (for some reasons not relevant here) I have only VS2015 installed.
But besides that:
Cons of this approach:
- Only Windows
- Tied to Visual Studio, that is fully proprietary (I know that FreeCAD under Win compiles under VS, but whenever I can, I prefer open tools)
This would be the preferred method, but actually the debugger is not documented (or at least I could not find the relevant Wiki page), and I could find no way to make it work for debugging a workbench.
So your option here is creating a stub i.e. a Macro that calls the functions of your workbench that you need to debug, so that you can load the macro in the editor, set breakpoints and run it.
Cons of this approach:
- Not really suited to debug workbenches, only macros
Ok, so now you debugged your code, found the issue and fixed it. How can you reload your workbench without closing/re-opening FreeCAD?
There are two main posts that deal with the topic:. ... 5&p=296289
First of all a note: as far as my understanding and my experience goes, you cannot really reload a full workbench, as there are some functions that loaded by C/C++ code. In particular:
- the Workbench description class is transfered to FreeCAD while start
- FreeCADGui.addCommand('MyModule', MyModule())
or in Python 3:
Code: Select all
import someModule reload(someModule)
Now a word of caution. What can make this method fail is forgetting about the namespaces you are in. In particular, if your workbench definition file, say someModule.py, imports other files with
Code: Select all
import someModule from importlib import reload reload(someModule)
then you are actually importing the definitions in the namespace someModule.
Code: Select all
from someTool import *
So while in general you can import * and even reload it, with
this is not possible from the Python console as you are not in the correct namespace (someModule)
Code: Select all
import someTool reload( someTool ) from someTool import *
(note: hint available at last row of the text appearing when typing import this, but probably you all already know that).
What you can do (this was suggested by Microelly I believe) is to tweak your someModule to contain, instead of the plain from someTool import *, the full code above.
Then you just need to import someModule and then reload someModule and the trick is done.
I'm not sure about the performance impact of leaving the full reload code in someModule in a production release of the workbench, but at least you can leave it there until you are done with your testing.
I realize I made an extra-long post, sorry about that and thanks for reading so far. I would welcome everybody's comments, as soon as this is cleared up I will translate the post into the Wiki pages, ideally marking ... nvironment as old, while improving .
Of course debugging Macros, and not workbenches, is a subset of workbench debugging, and considerably easier.
Ciao!
Enrico | https://forum.freecadweb.org/viewtopic.php?f=10&t=35383&p=298928 | CC-MAIN-2020-10 | refinedweb | 1,406 | 54.76 |
creating a virtual environment that adds this development version of SciPy to the Python path
in macOS.
Its companion videos Anaconda SciPy Dev: Part I (macOS) and Anaconda SciPy Dev: Part II (macOS) show many of the steps being performed. This guide may diverge slightly from the videos over time, with the goal of keeping this guide the simplest, up-to-date procedure.
Consider following along with the companion video Anaconda SciPy Dev: Part I (macOS)
Download, install, and test the latest release of the Anaconda Distribution of Python. In addition to the latest version of Python 3, the Anaconda distribution includes dozens of the most popular Python packages for scientific computing, the Spyder integrated development environment (IDE), the
condapackage manager, and tools for managing virtual environments.
Install Apple Developer Tools. An easy way to do this is to open a terminal window, enter the command
xcode-select --install, and follow the prompts. Apple Developer Tools includes git, the software we need to download and manage the SciPy source on to the
scipyroot directory (e.g.,
cd scipy).
Install Homebrew. Enter into the terminal
/usr/bin/ruby -e "$(curl -fsSL)"
or follow the installation instructions listed on the Homebrew website. Homebrew is a package manager for macOS that will help you download
gcc, the software we will use to compile C, C++, and Fortran code included in SciPy.
Use Homebrew to install
gccby entering the command
brew install gcc.
In the terminal, ensure that all of SciPy’s build dependencies are up to date:
conda install pybind11, then
conda update cython numpy pytest pybind11.
(Optional) Check your present working directory by entering
pwdat the terminal. You should be in the root
/scipydirectory, not in a directory ending
/scipy/scipy. were successful, you now have a working development build of SciPy!
You could stop here, but you would only be able to use this development build
from within the SciPy root directory. This would be inconvenient, for instance,
if you wrote a script that performs an
import of something you changed in
SciPy but wanted to save it elsewhere on your computer. Without taking
additional steps to add this version of SciPy to the
PYTHONPATH ,
this script would
import from the version of SciPy distributed with
Anaconda rather than the development version you just built.
(See here
for much more information about how Python imports modules.)
Installing SciPy¶
Consider following along with the companion video Anaconda SciPy Dev: Part II (macOS)
Currently we have two versions of SciPy: the latest release as installed by Anaconda, and the development version we just built. Ideally, we’d like to be able to switch between the two as needed. Virtual environments can do just that. With a few keystrokes in the terminal or even the click of an icon, we can enable or disable our development version. Let’s set that up.
In a terminal window, enter
conda list.
This shows a list of all the Python packages that came with the Anaconda distribution of Python. Note the latest released version of SciPy is among them; this is not the cutting-edge development version you just built and can modify.
Enter
conda create --name scipydev.
This tells
condato create a virtual environment named
scipydev. Note that
scipydevcan be replaced by any name you’d like to refer to your virtual environment.
You’re still in the base environment. Activate your new virtual environment by entering
conda activate scipydev.
If you’re working with an old version of
conda, you might need to type
source activate scipydevinstead (see here.
(Optional) Enter
conda listagain. Note that the new virtual environment has no packages installed. If you were to open a Python interpreter now, you wouldn’t be able to import
numpy,
scipy, etc.
Enter
conda install cython numpy pytest spyder pybind11.
Note that we’re only installing SciPy’s build dependencies (and Spyder so we can use the IDE), but not SciPy itself.
Enter
conda develop /scipy, where
scipyis to be replaced with the full path of the SciPy root directory.
This will allow us to
importthe development version of SciPy in Python regardless of Python’s working directory. Note: this step replace the steps shown in Anaconda SciPy Dev: Part II (macOS) that modify the ``PYTHONPATH`` environment variable when the ``scipydev`` virtual environment is activated. You can ignore that part of the video from 0:38 to 1:38; this is much simpler!.4.0.dev0+be97f1a | https://docs.scipy.org/doc/scipy-1.5.1/reference/dev/contributor/quickstart_mac.html | CC-MAIN-2021-39 | refinedweb | 742 | 54.12 |
Ruby 2.0 Preview 1 Released, Final Release in February 2013
Yusuke Endoh, the release manager for Ruby 2.0, made several announcements: the immediate feature freeze for Ruby 2.0.0, the first preview release, and the targeted release date: February 24, 2013. February 24 also marks Ruby's 20th birthday, so it would be a fitting date for the 2.0 release.
A summary of new features can be found in Ruby's NEWS file, and also in their issue tracker. Of all the changes, Keyword Arguments and Refinements could have the biggest impact on Ruby programmers:
Keyword Arguments
Instead of just passing a hash as a method argument, Ruby 2.0 will include proper support for keyword arguments. Here's an excerpt from Ruby's own unit tests:
def f1(str: "foo", num: 424242) [str, num] end def test_f1 assert_equal(["foo", 424242], f1) assert_equal(["bar", 424242], f1(str: "bar")) assert_equal(["foo", 111111], f1(num: 111111)) assert_equal(["bar", 111111], f1(str: "bar", num: 111111)) assert_raise(ArgumentError) { f1(str: "bar", check: true) } assert_raise(ArgumentError) { f1("string") } end
Note that these will only work for arguments that have a default value. More examples of the new syntax and how it works with traditional arguments can be seen in Ruby's unit tests.
Refinements
Refinements aim to make monkey patching safer by reducing the scope where the patching is applied. In the following example posted by Matz, the / operator is only available on Fixnums after the MathN module has been included:
module MathN refine Fixnum do def /(other) quo(other) end end end class Foo using MathN def foo p 1 / 2 end end
Yehuda Katz wrote up a detailed blog post on how Refinements can be used in practice. Refinements are currently included in the Ruby 2.0 branch, but they might still get kicked out because of performance problems (see the original feature request for the discussion).
InfoQ had the chance to talk to Yusuke Endoh to learn more about Ruby 2.0. We asked him what he thinks will be the biggest changes for users:
A refinement is the most fundamental new feature to the language, which gives a new concept to Ruby's modularity. Many people can take advantage of the feature to replace the bad practice of "monkey-patching". Note that the feature is still evolving, say, unrefined itself yet. It will grow more mature in the future after we have more experience with it. (Of course, we will respect the compatibility as much as possible.)
A keyword argument is the most eye-catching feature. In fact, the feature is far from "the biggest"; it is just a syntactic sugar. But, from a practical perspective, it can be very helpful to make your code cleaner.
Enumerator#lazy is a long-time dream for lazy programmers, i.e., those familiar with functional programming. The feature serves as lazy evaluation for a list.
Module#prepend may be the most (implicitly) used feature. It replaces Rails' dirty "method_alias_chain" with a much tidier mechanism by using a module.
You may want to take a look at Akira Matsuda's presentation at RubyConf to learn these features in detail.
Of course, the performance has also much improved. This might be the most interesting change for those not interested in new features.
InfoQ: Will it be easier to upgrade from 1.9 to 2.0 than it was from 1.8 to 1.9?
We believe all "normal" programs will work without modification. In designing 2.0, we have taken considerable care in source compatibility with 1.9.
There are, however, some small changes. We think that they will cause no practical compatibility issue, but we could be wrong. If we know a problem before the official release, we are happy to reconsider them.
So, please try preview and RC releases and report anything you notice. We really appreciate your feedback.
InfoQ: Can you name some potential incompatibilities users might run into?
As mentioned above, there are indeed a few small incompatibilities. You can see them in the NEWS file. For example:
We would like to make a simple guidance about upgrade with the official 2.0.0 release, by accumulating feedback on preview and RC releases.We would like to make a simple guidance about upgrade with the official 2.0.0 release, by accumulating feedback on preview and RC releases.
- Object#respond_to? returns false for protect methods by default.
- Kernel#system and #exec does not inherit non-standard file descriptor by default.
- Object#inspect does not call #to_s by default.
As Yusuke mentioned, performance has been improved. And to lower Ruby's memory usage, a new Bitmap Marking GC (InfoQ talked to its developer Narihiro Nakamura) will be included in the 2.0 release. If you want to learn more about how it works, take a look at this fantastic write up on Ruby garbage collection.
Here are some more interesting new features and important changes that will be part of Ruby 2.0:
- DTrace probes to profile applications at runtime
- Enumerable#lazy to lazily perform operations on an Enumerable
- Improved Regex library Onigmo that supports some new features introduced in Perl 5.10
- Method transplanting allows you to transplant module methods to other modules or classes
- Module#prepend to prepend a module so that prepended methods override already existing methods
- Object#respond_to? doesn't check for protected methods anymore
- HTML5 support in CGI
Download the Ruby 2.0.0-preview1 release and let us know what you think!
Rate this Article
- Editor Review
- Chief Editor Action | http://www.infoq.com/news/2012/11/ruby-20-preview1 | CC-MAIN-2016-07 | refinedweb | 927 | 57.06 |
Calculates a histogram of a set of arrays.
The functions calcHist calculate the histogram of one or more arrays. The elements of a tuple used to increment a histogram bin are taken from the corresponding input arrays at the same location. The sample below shows how to compute a 2D Hue-Saturation histogram for a color image.
#include <cv.h> #include <highgui.h> using namespace cv; int main( int argc, char** argv ) { Mat src, hsv; if( argc != 2 || !(src=imread(argv[1], 1)).data ) return -1; cvtColor(src, hsv, CV_BGR2HSV); // Quantize the hue to 30 levels // and the saturation to 32 levels int hbins = 30, sbins = 32; int histSize[] = {hbins, sbins}; // hue varies from 0 to 179, see cvtColor float hranges[] = { 0, 180 }; // saturation varies from 0 (black-gray-white) to // 255 (pure spectrum color) float sranges[] = { 0, 256 }; const float* ranges[] = { hranges, sranges }; MatND hist; // we compute the histogram from the 0-th and 1-st channels int channels[] = {0, 1}; calcHist( &hsv, 1, channels, Mat(), // do not use mask hist, 2, histSize, ranges, true, // the histogram is uniform false ); double maxVal=0; minMaxLoc(hist, 0, &maxVal, 0, 0); int scale = 10; Mat histImg = Mat::zeros(sbins*scale, hbins*10, CV_8UC3); for( int h = 0; h < hbins; h++ ) for( int s = 0; s < sbins; s++ ) { float binVal = hist.at<float>(h, s); int intensity = cvRound(binVal*255/maxVal); rectangle( histImg, Point(h*scale, s*scale), Point( (h+1)*scale - 1, (s+1)*scale - 1), Scalar::all(intensity), CV_FILLED ); } namedWindow( "Source", 1 ); imshow( "Source", src ); namedWindow( "H-S Histogram", 1 ); imshow( "H-S Histogram", histImg ); waitKey(); }
Note
Calculates the back projection of a histogram.
The functions calcBackProject calculate the back project of the histogram. That is, similarly to calcHist , at each location (x, y) the function collects the values from the selected channels in the input images and finds the corresponding histogram bin. But instead of incrementing it, the function reads the bin value, scales it by scale , and stores in backProject(x,y) . In terms of statistics, the function computes probability of each element value in respect with the empirical probability distribution represented by the histogram. See how, for example, you can find and track a bright-colored object in a scene:
This is an approximate algorithm of the CamShift() color object tracker.
See also
Compares two histograms.
The functions compareHist compare two dense or two sparse histograms using the specified method:
Correlation (method=CV_COMP_CORREL)
where
and
is a total number of histogram bins.is a total number of histogram bins.
Chi-Square (method=CV_COMP_CHISQR)
Intersection (method=CV_COMP_INTERSECT)
Bhattacharyya distance (method=CV_COMP_BHATTACHARYYA or method=CV_COMP_HELLINGER). In fact, OpenCV computes Hellinger distance, which is related to Bhattacharyya coefficient.
The function returns
.
While the function works well with 1-, 2-, 3-dimensional dense histograms, it may not be suitable for high-dimensional sparse histograms. In such histograms, because of aliasing and sampling problems, the coordinates of non-zero histogram bins can slightly shift. To compare such histograms or more general sparse configurations of weighted points, consider using the EMD() function..
Equalizes the histogram of a grayscale image.
The function equalizes the histogram of the input image using the following algorithm:
Calculate the histogram
for src .
Normalize the histogram so that the sum of histogram bins is 255.
Compute the integral of the histogram:
Transform the image using
as a look-up table:
The algorithm normalizes the brightness and increases the contrast of the image.
The rest of the section describes additional C functions operating on CvHistogram.
Locates a template within an image by using a histogram comparison.
The function calculates the back projection by comparing histograms of the source image patches with the given histogram. The function is similar to matchTemplate(), but instead of comparing the raster patch with all its possible positions within the search window, the function CalcBackProjectPatch compares histograms. See the algorithm diagram below:
Divides one histogram by another.
The function calculates the object probability density from two histograms as:
Clears the histogram.
The function sets all of the histogram bins to 0 in case of a dense histogram and removes all histogram bins in case of a sparse array.
Copies a histogram.
The function makes a copy of the histogram. If the second histogram pointer *dst is NULL, a new histogram of the same size as src is created. Otherwise, both histograms must have equal types and sizes. Then the function copies the bin values of the source histogram to the destination histogram and sets the same bin value ranges as in src.
Creates a histogram.
The function creates a histogram of the specified size and returns a pointer to the created histogram. If the array ranges is 0, the histogram bin ranges must be specified later via the function SetHistBinRanges(). Though CalcHist() and CalcBackProject() may process 8-bit images without setting bin ranges, they assume they are equally spaced in 0 to 255 bins.
Finds the minimum and maximum histogram bins.
The function finds the minimum and maximum histogram bins and their positions. All of output arguments are optional. Among several extremas with the same value the ones with the minimum index (in the lexicographical order) are returned. In case of several maximums or minimums, the earliest in the lexicographical order (extrema locations) is returned.
Makes a histogram out of an.
This is a standalone function for setting bin ranges in the histogram. For a more detailed description of the parameters ranges and uniform, see the CalcHist() function that can initialize the ranges as well. Ranges for the histogram bins must be set before the histogram is calculated or the backproject of the histogram is calculated. | http://docs.opencv.org/2.4/modules/imgproc/doc/histograms.html | CC-MAIN-2015-48 | refinedweb | 940 | 53.71 |
Closed Bug 739512 Opened 8 years ago Closed 8 years ago
Shrink JSScript
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
mozilla15
People
(Reporter: njn, Assigned: njn)
References
Details
(Whiteboard: [MemShrink:P2])
Attachments
(10 files, 5 obsolete files)
I have some patches that reduce the size of JSScript and also clean up its code, esp. the handling of JSScript::data.
This patch does two things: - Removes JSScript::cookie[12] and related methods, because billm says they're no longer needed. - Reorders the members within JSScript, so that (a) all fields are before all methods, and (b) fields are ordered from largest to smallest to ensure no space is wasted due to alignment. Other than the ordering, I didn't change anything, except adding public/private qualifiers where necessary. (I also checked carefully that all members have the same public/private visibility that they did before the patch.) Change (b) doesn't make JSScript any smaller, but it will help the subsequent patches that do.
This patch uses the existing space-optimized "optional array" representation for a JSScript's closedArgs and closedVars. This makes sense because I found during normal browsing that only ~2% of all JSScripts had non-zero closedArgs and similar numbers for closedVars. On 32-bit platforms, this reduces the size of JSScript from 128 to 120 bytes, increasing the number that can be fit in an arena from 31 to 34. On 64-bit platforms, this reduces the size of JSScript from 200 to 192 bytes, increasing the number that can be fit in an arena from 20 to 21. The patch also improves the documentation and static assertions for JSScript::data's layout. It also makes all the code that operates on JSScript::data handle the arrays in the same order.
Attachment #609597 - Attachment is obsolete: true
Attachment #609598 - Flags: review?(dvander)
This patch optimizes the representation of the optional arrays. Previously, for each optional array kind, JSScript held a uint8_t offset. But you only need to store a single present/not-present bit for each array kind; from that you can compute the possible offsets because the size of each array header is known statically. I've created some small lookup tables for every possible combination of present/not-present arrays..
This patch is boring: it just moves JSConstArray, JSObjectArray, and JSTryNoteArray into the |js| namespace, to match GlobalSlotArray and ClosedSlotArray.
OOC, what is the overall size change? Also, a small request: could you s/nClosedArgs/numClosedArgs/ and s/nClosedVars/numClosedVars/ for consistency with other num* methods?
(In reply to Luke Wagner [:luke] from comment #5) > OOC, what is the overall size change? For 32-bits: 128 --> 112 bytes, i.e. 31 --> 36 per arena For 64-bits: 200 --> 184 bytes, i.e. 20 --> 22 per arena > Also, a small request: could you s/nClosedArgs/numClosedArgs/ and > s/nClosedVars/numClosedVars/ for consistency with other num* methods? The only one I see is numNotes()... I was just reusing the existing nClosedArgs/nClosedVars names. But sure, I can make the change.
Great, thanks. numX is used in a lot more places than jsscript.h.
Whiteboard: [MemShrink] → [MemShrink:P2]
Comment on attachment 609599 [details] [diff] [review] Patch 3: shrink the representation of optional arrays Review of attachment 609599 [details] [diff] [review]: ----------------------------------------------------------------- What are the absolute savings with this patch, on average? I'm worried about the complexity of this patch, both the changes to jsscript.cpp and how difficult packing like this makes debugging structures in gdb.
> What are the absolute savings with this patch, on average? I'm worried about > the complexity of this patch, both the changes to jsscript.cpp and how > difficult packing like this makes debugging structures in gdb. From comment 3: >. If you look at about:memory, the per-compartment "scripts" numbers are typically quite large, e.g. multiple MB in the larger compartments. This patch will reduce that by ~5%. The complexity doesn't worry me -- it's confined to jsscript.{h,cpp}, and the introduction of the functions like hasConsts() makes code that interacts with JSScript easier to read. I'm more sympathetic to the GDB concerns. Are there other helper functions I could add that would improve things? Or would that be no help because they'd be inlined and thus not usable within GDB?
JITScript::arityCheckEntry isn't used in any meaningful way. I suspect it was used in the past but that JSScript::jitArityCheck{Normal,Ctor} replaced its function. This patch removes it. The change reduces the size of JITScript from 56 to 52 bytes on 32-bit, and from 104 to 96 bytes on 64-bit.
Attachment #610326 - Flags: review?(dvander)
> I'm more sympathetic to the GDB concerns. Are there other helper functions > I could add that would improve things? Or would that be no help because > they'd be inlined and thus not usable within GDB? So I tried GDB and the functions like consts(), objects() all work fine. So it's no harder to access those arrays in the debugger. dvander, do you have any specific other concerns?
I started looking at moving pcCounters into JSCompartment, but I found the naming for the PCCount stuff confusing, so I thought I'd clean it up first. |script.pcCounters->counts->counts|, yikes! This patch: - Avoids inconsistent usage of "counts" and "counters", by using "counts" everywhere. - Better distinguishes the different kinds of "counts" -- "OpcodeCounts" becomes "PCCounts" (to match the name of the API) and "ScriptOpcodeCounts" becomes "ScriptCounts". Some other types and fields were renamed accordingly (e.g. "ScriptOpcodeCountsPair" becomes "ScriptAndCounts"). Generally, it's now more clear which kind of "counts" we're dealing with at any point. - Renames the *_COUNT constants (e.g. BASE_COUNT) as *_LIMIT, to avoid yet another meaning of "count". - Adds a comment describing the storage strategy used for ScriptCounts' vector (which has been renamed |pcCountsVec|).
Attachment #610433 - Flags: review?(bhackett1024)
Comment on attachment 609599 [details] [diff] [review] Patch 3: shrink the representation of optional arrays dvander, what should we do with patch 3... how about a second opinion? Luke, please see comment 3, 8, 9 and 11 for context.
Patch 1 and 2:
Whiteboard: [MemShrink:P2] → [MemShrink:P2][leave open]
Patch 5 and 6:
This patch moves scriptCounts out of JSScript and into JSCompartments::scriptCountsMap. This makes sense because scriptCounts is very often NULL and it doesn't require fast access. (However, detecting if a JSScript has counts must be fast, and JSScript::hasCountsMap caters for that.) On 32-bit platforms, this doesn't change the size of JSScript -- I had to add 32 bits of padding to keep the size a multiple of 8 (as is required for GC cells). On 64-bit platforms, this reduces the size of JSScript from 184 to 176 bytes, increasing the number that can be fit in an arena from 22 to 23. I tested this by running the js shell with -D on Sunspider. Is that enough?
This patch moves script->jitArityCheckNormal into script->jitNormal->jitArityCheck and script->jitArityCheckCtor into script->jitCtor->jitArityCheck. This saves two words in JSScript, and because most JSScripts don't have JITScripts, it's a space win. The most notable change is that generateFullCallStub() has to generate an extra dependent load. Currently it doesn't quite work -- I get 7 failures in jit-tests, all crashes in generated code. dvander, any suggestions on what I might be doing wrong, or comments on the general feasibility of this idea, would be welcome. Thanks.
This version of patch 7 fixes some problems that Valgrind found.
Attachment #611337 - Attachment is obsolete: true
Attachment #611341 - Flags: review?(bhackett1024)
Attachment #611340 - Attachment description: Patch 8 (draft): move jitArityCheck into JITScript → Draft patch: move jitArityCheck into JITScript
This patch moves sourceMap out of JSScript and into JSCompartments::sourceMapMap. This is worthwhile because sourceMap is very often NULL and it doesn't (AFAICT) require fast access. JSScript::hasCountsMap provides a simple way to test if a sourceMap is present. On 32-bit platforms, this reduces the size of JSScript from 112 to 104 bytes, increasing the number that can be fit in an arena from 36 to 39. On 64-bit platforms, this reduces the size of JSScript from 176 to 168 bytes, increasing the number that can be fit in an arena from 23 to 24.
Attachment #611348 - Flags: review?(jorendorff)
(In reply to Nicholas Nethercote [:njn] from comment #13) > dvander, what should we do with patch 3... how about a second opinion? > Luke, please see comment 3, 8, 9 and 11 for context. I certainly like the new interface vs. the old isValidOffset funk.. While I'm not thrilled about the re-emergence of the #define R macros, the patch isn't so complex that I'm absolutely opposed, so if you really care I'll review the patch.
>. I started looking at the lazy bytecode stuff and concluded that it's a big, complicated, high-risk change. (Especially for me, as someone who doesn't know the front-end at all well.) While looking I noticed some easy JSScript wins, so I decided to pursue them first. I have some more patches coming, by the time I'm done I should have reduced sizeof(JSScript) by 25% or more. More generally, JS engine memory consumption is dominated by objects, shapes, script and strings, so even small improvements in any of those can have sizeable effects. > While I'm not thrilled about the re-emergence of the #define R macros, the > patch isn't so complex that I'm absolutely opposed, so if you really care > I'll review the patch. The R macro is a hack, but it ended up being nicer than my first version which initialized the lookup tables on demand. They are static data, so generating them statically feels appropriate. So -- yes, please review!
It looks like this regressed v8bench (), in particular v8-richards. Nicholas, would you mind taking a look?
(In reply to Jan de Mooij (:jandem) from comment #22) > It looks like this regressed v8bench > (), in particular v8-richards. > Nicholas, would you mind taking a look? Huh, that's a big regression. It's late here, I'll take a look tomorrow. Thanks for telling me!
The regression also showed up on Dromaeo(v8) (22% regression on Linux on inbound!) and Dromaeo(jslib) (7% regression on Linux on inbound). Looking into the latter might be worth it if it's specific to one of the subtests, since those might be smaller than all of v8-richards. Do we need a separate bug open to track the regression, since this one is still tracking continuing work?
Part 5 and 6 show up as causing 30% v8 regressions on OSX, too.
Also regressions in the 3-4% range on Dromaeo(CSS).
1. 2. 5. 6.
I backed out patch 5: While removing the dead field I accidentally changed the code generated by JM. Sorry!
Comment on attachment 611340 [details] [diff] [review] Draft patch: move jitArityCheck into JITScript I have a working version of this coming up, but I might use a different bug for it.
Comment on attachment 611348 [details] [diff] [review] patch 8: move sourceMap into a table > JS_PUBLIC_API(const jschar *) > JS_GetScriptSourceMap(JSContext *cx, JSScript *script) > { >- return script->sourceMap; >+ return script->getSourceMap(); > } ... >+jschar * >+JSScript::getSourceMap() { >+ JS_ASSERT(hasSourceMap); JS_GetScriptSourceMap is supposed to return NULL if !script->hasSourceMap, not assert/crash. r=me with that fixed.
Attachment #611348 - Flags: review?(jorendorff) → review+
Comment on attachment 611341 [details] [diff] [review] Patch 7, v2: move scriptCounts into a table Review of attachment 611341 [details] [diff] [review]: ----------------------------------------------------------------- ::: js/src/jsscript.cpp @@ +820,5 @@ > next = pc + GetBytecodeLength(pc); > } > > + hasScriptCounts = true; > + map->putNew(this, scriptCounts); I think this is fallible.
Attachment #611341 - Flags: review?(bhackett1024) → review+
I patch two I failed to rename nClosed{Vars,Args} as Luke requested in comment 5. This follow-up patch does that:
This patch is similar to patch 7 and 8 -- it moves |debug| out of JSScript and into JSCompartments::debugScriptMap. This is worthwhile because |debug| is very often NULL and it doesn't (AFAICT?) require fast access. JSScript::hasDebugScript provides a simple way to test if a sourceMap is present.
Attachment #613483 - Flags: review?
njn, did you mean to ask someone to review?
Comment on attachment 613483 [details] [diff] [review] patch 9: move debug into a table Yes! Thanks.
Attachment #613483 - Flags: review? → review?(jorendorff)
Patch 7: I botched the initial landing (I had an uncommitted change), then backed it out and relanded.
This patch just extracts the clean-ups from patch 3, which should be uncontroversial.
Attachment #613885 - Flags: review?(dvander)
This is just like patch 4, but updated for the changes that have landed, and it doesn't need patch 3 to be applied. Should be uncontroversial.
Attachment #609601 - Attachment is obsolete: true
Attachment #613887 - Flags: review?
This patch changes JSScript::useCount from size_t to uint32_t. On 32-bit platforms it makes no difference to JSScript's size. On 64-bit platforms it potentially reduces JSScript's size... at this point in time it doesn't, but if other changes happen it might. For example, if patch 3 is subsequently applied, the result is smaller than if useCount is a size_t. Also, I find the existing code hard to understand in the 64-bit case. methodjit/Compiler.cpp has this (this is pre-patch code): size_t *addr = script->addressOfUseCount(); masm.add32(Imm32(1), AbsoluteAddress(addr)); and the generated code looks like this: [jaeger] Insns movabsq $0x7f82cce13218, %r11 [jaeger] Insns addl 1, 0x0(%r11) Why are we doing a 32-bit add on a 64-bit value? I *think* this only works because x86-64 is little-endian, and the high 32-bits of useCount are never touched. Assuming that's right, IMO having a uint32_t and consistent code on 32-bit and 64-bit platforms makes things clearer.
Attachment #614225 - Flags: review?(dvander)
This is a revised version of patch 3 that's a lot simpler. Computing the static offset lookup table was a premature optimization; Cachegrind (on Sunspider) tells me the slowdown from computing the offsets at run-time is truly negligible. So I removed the lookup table. In terms of how this compares to the existing code. - Currently we have this custom, space-optimized representation, based on storing an offset for each array (or INVALID_OFFSET if not present). My patch changes this to a custom, space-optimized representation, based on storing a single bit for each array to indicate its presence, and computing the offset from these bits when necessary. - From a debugging point of view, this change makes almost no difference, viz: js::ConstArray *consts() { JS_ASSERT(hasConsts()); - return reinterpret_cast<js::ConstArray *>(data + constsOffset); + return reinterpret_cast<js::ConstArray *>(data + constsOffset()); } - The new version is simpler in some ways. For example, we don't have to worry about whether uint8_t is big enough to hold all the array offsets, which eliminates the need for a couple of assertions. Also, we don't have to set INVALID_OFFSET in the cases where the arrays aren't present. Overall it's a net reduction of 16 lines of code. - When applied on top of the other outstanding patches in this bug, it reduces JSScript's size (and the number that can be fit per arena) as follows: old new 32-bit 104/39.2 96/42.5 64-bit 152/26.7 144/28.2 That's a 1.077x increase in the per-arena number (which is the important one) in both cases. (Before I started this JSScript shrinking work the per-arena numbers were 31 and 19.)
Attachment #609599 - Attachment is obsolete: true
Attachment #614245 - Flags: review?(luke)
Attachment #611341 - Attachment description: Patch 7b: move scriptCounts into a table → Patch 7, v2: move scriptCounts into a table
Attachment #613887 - Attachment description: Patch 4b: move JS{Const,Object,TryNote}Array into the |js| namespace → Patch 4, v2: move JS{Const,Object,TryNote}Array into the |js| namespace
Comment on attachment 614245 [details] [diff] [review] Patch 3, v2: shrink the representation of optional arrays Review of attachment 614245 [details] [diff] [review]: ----------------------------------------------------------------- Looks good ::: js/src/jsscript.h @@ +735,5 @@ > /* Script notes are allocated right after the code. */ > jssrcnote *notes() { return (jssrcnote *)(code + length); } > > + #define HAS_ARRAY(v, kind) ((v) & (1 << (kind))) > + #define SET_HAS_ARRAY(v, kind) ((v) |= (1 << (kind))) Could these be real static functions instead? @@ +747,5 @@ > + bool hasClosedArgs() { return HAS_ARRAY(hasArrayBits, CLOSED_ARGS); } > + bool hasClosedVars() { return HAS_ARRAY(hasArrayBits, CLOSED_VARS); } > + > + // The offset added for the "foo" array, which has element type |t|. > + #define OFF(fooOff, hasFoo, t) (fooOff() + (hasFoo() ? sizeof(t) : 0)) For this one, it seems more readable to just straight-up inline.
Attachment #614245 - Flags: review?(luke) → review+
dvander: review ping. (Patches 4v2 and 10 are trivial refactorings; patch 11 is very short.)
Patch 9 (it landed a while ago, sorry for the late link):
Patches 10 and 4:
Patch 11. Almost there:
Patch 3: Finished!
Whiteboard: [MemShrink:P2][leave open] → [MemShrink:P2]
And a bustage fix for patch 3, just for good luck.
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla15
Very likely to be the cause of a new build failure on powerpc : /home/landry/src/mozilla-central/js/src/jsscript.h:937: error: size of array 'arg' is negative Last m-c build from a week ago on ppc didnt fail like this. Wild guess, i'd say either patch 3 or 11.
It looks like readding the following chunk : +#if JS_BITS_PER_WORD == 32 +private: + uint32_t pad32; +#endif + removed in patch 3 fixes it (at least build under js/src goes further)
Looking a bit more closely, it seems the chunk was added in patch 9 and removed in patch 3, so i don't know what was the intent here.. | https://bugzilla.mozilla.org/show_bug.cgi?id=739512 | CC-MAIN-2020-24 | refinedweb | 2,945 | 65.01 |
I think it's about time to start getting more into the discussion of
how this thing we've been calling "versioned policy" will work. So,
I
wrote up an overview of where we're starting from. I don't think
anything here will be new to you, if you're, uh... someone who's been
obsessively following every discussion of this on IRC etc. for the
last several years. This is, however, I think the first time it's
laid out, and I'm hoping to send some more notes like this getting
into more details, so this is good background.
This is, hopefully, the last major architectural change in monotone,
and the most important missing feature, so it might be worth reading
.
Goals
-----
There are several problems with the current monotone design, that
apparently cannot be solved without the addition of a new kind of
per-project versioned metadata. In particular:
* Our key names are required to be globally unique over space and
time. This turns out to be very bad; we need to make it possible
to get rid of old keys, and create new ones. That each key used
"burns a hole" in this global namespace makes our current
approach unsustainable in practice.
-- Solution?: create some kind of local, per-project namespace,
within which keys have names. The bindings of name to key
should be shared by all members of the group, but should be
allowed to change over time.
* We need some way to manage "commit" permissions. For now, people
have been faking this functionality using netsync permissions,
but this approach is deeply unsatisfactory. A major design goal
of monotone is to make communication as noncommittal as possible;
to make it so you can always, painlessly and without worry, send
information around. Not only that, but netsync permissions don't
really work right for this anyway; we have all these lovely
signatures and audit trail stuff, and it's completely orthogonal
to the netsync permission system that everyone uses in practice.
-- Solution?: create some kind of local, per-project ACL list,
which is modifiable by some users (controlled by the ACLs),
which everyone locally uses to decide which certs they believe
in.
Once we have this kind of project-level versioned metadata, there are
a number of other interesting uses we might find for it. For
instance, you could make branch names a similarly project-local
namespace, support branch renaming, store extra branch metadata like
"branch parent", "branch status", put tags in here to get movable
tags, etc.
For a first pass, though, I want to talk about the simplest thing
possible (because it gives me the fewest chances to screw up ),
and
then we can build from there. So let's just think about:
* how to store keys
* how to grant/revoke permissions of the form "key X may commit to
branch Y"
(Again, one might want to define trust for other cert types, and make
such commit permissions conditional on what files were modified, and
yada yada, but let's ignore that to start.)
Rough plan
----------
This is a system for delegating authority, and all authority reposes
initially in the user of the system. Therefore, we have to start
with some affirmative action on the part of the user, stating where
and how they delegate their authority. We want this action to be very
simple, and to last for a long time -- basically, the user should
experience this as something they do once when they join a project,
and then forget about thereafter. (In practice it will probably even
happen as part of initial pull, but UI is a separate issue).
We also, for pragmatic and usability reasons, want to re-use all the
great machinery we have for managing and versioning trees. So here's
the idea: create a tree with ACLs and keys and such in files. Check
this in to monotone as a revision. A user grants permission by
stating which revision they are delegating to.
Of course, this would be boring if they were just delegating to that
_particular_ tree, because they'd have to redo things every time
anyone joined or left the project and permission changed. But,
monotone gives us a natural way to express changes to a tree -- child
revisions.
We call the user-specified revid the "trust seed". The "seed" part
emphasises that we are not (necessarily) trusting the tree we point
to in particular. Rather, one of the things a tree should have ACLs
for, is specifying who is allowed to commit _new trust trees_. The
simplest way to do this is to put the trust trees in a special branch,
and specify commit access to this branch like any other branch.
So, to determine the actual trust rules in affect at any given time,
we:
-- start from the trust seed
-- walk down the revision graph from it, at each step using the
trust rules in our current revision to decide whether we can go
to the next revision
-- finally reaching the tree that contains the policy we will
enforce
There are some subtleties in exactly how one might do this walk,
which I'll defer to another, more technical, note; but hopefully this
gives the basic intuitions behind the approach.
Questions, comments?
-- Nathaniel
--
Linguistics is arguably the most hotly contested property in the academic
realm. It is soaked with the blood of poets, theologians, philosophers,
philologists, psychologists, biologists and neurologists, along with
whatever blood can be got out of grammarians. - Russ Rymer | http://article.gmane.org/gmane.comp.version-control.monotone.devel/8169 | crawl-002 | refinedweb | 919 | 56.59 |
Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Hi, guys! How to properly copy the dictionary with DescIDs?
Here is example code:
import c4d
from copy import deepcopy
def main():
dId_one = c4d.DescID(c4d.DescLevel(10), c4d.DescLevel(20), c4d.DescLevel(30))
dId_two = c4d.DescID(c4d.DescLevel(50), c4d.DescLevel(200), c4d.DescLevel(1000))
dict1 = {'1':dId_one,'2':dId_two}
dict2 = deepcopy(dict1)
print 'dict1 ',dict1
print 'dict2 ',dict2
# dict1 {'1': ((10, 0, 0), (20, 0, 0), (30, 0, 0)), '2': ((50, 0, 0), (200, 0, 0), (1000, 0, 0))}
# dict2 {'1': ( ), '2': ( )} <--- WHY???
if __name__ == '__main__':
main()
Hi @mikeudin, due to how our Classic Python API is built deepcopy does not work since our python objects only store pointer to our internal C++ object and not directly to other Python objects, so deepcopy fail in this regards since, the deepcopy operation, free and try to recreate these data, which is not possible since they are not PyObject but real C++ object but copy.copy does works, but since it's a shallow copy operation it only works for one level (e.g. a dict of dict of DescID will fail).
For more information about the difference please read Shallow vs Deep Copying of Python Objects.
However here a couple methods to copy a dict.
import copy
dict1 = {'1':dId_one,'2':dId_two}
dict2 = copy.copy(dict1)
dict1 = {'1':dId_one,'2':dId_two}
dict2 = dict1.copy()
dict1 = {'1':dId_one,'2':dId_two}
dict2 = dict(dict1)
Cheers,
Maxime.
@m_adam Thank you! | https://plugincafe.maxon.net/topic/11356/how-to-deepcopy-descid | CC-MAIN-2022-05 | refinedweb | 281 | 64.61 |
10 May 2011 22:58 [Source: ICIS news]
HOUSTON (ICIS)--Eastman has closed an ethylene oxide (EO) refining column vent valve that was found without a plug at its ?xml:namespace>
Following the discovery on Sunday, the valve was closed and a plug was installed, Eastman said in a filing with the Texas Commission on Environmental Quality (TCEQ).
While the valve was not venting at the time the missing plug was noticed, it may have vented into the line several times, according to the filing.
The plug valve was believed to have been lost on 18 February following a short outage at the unit.
Initial estimates are that an amount of EO in excess of 20,000 pounds may have been released into the atmosphere.
The company could not be immediately reached for comment.
Eastman | http://www.icis.com/Articles/2011/05/10/9458719/eastman-plugs-texas-eo-refining-column-vent-valve.html | CC-MAIN-2015-11 | refinedweb | 135 | 57.81 |
Modem Firmware
In the past when we bought GPy's I would update the modem firmware as stated in the documentation to:
import sqnsupgrade
sqnsupgrade.info()
UE5.1.0.0f
LR5.1.1.0-41065
Now when we buy GPy's they come with new firmware:
UE5.0.0.0d
LR5.1.1.0-47510
What issues has the newer firmware resolved?
Is there a way to update older GPy's to the newer firmware?
- Gijs Global Moderator last edited by
To your first question, both firmwares are fine.
The second question applies to the modules shipped from December 2019 and after and is not related to the firmware version difference.
The last question, it is fine to sign up with Pybytes. The Pybytes library is always in the firmware (even if you did not sign up), but once you disable the connection, it will not connect to the Pybytes servers.
One question is whether it is ok/advisable to run 41065 on the new GPy's?
Another question is whether the below changes are affected by the firmware?
**IMPORTANT NOTE: After December 2019, all our cellular products have been re-calibrated and screened on all 17 bands with a vastly improved RF test system to guarantee more stable connectivity, lower power consumption and faster network attachment.
New specialized equipment and software from Rhode & Schwarz enables us to do more precise measurements during the calibration process. This enhances RF sensitivity and thus signal quality especially in areas with poor cellular coverage while reducing output power during transmit to improve battery performance.
Another question concerning the new OS firmware is whether it's ok to not sign up / use Pybytes? Is there code in the firmware that will forever try to contact Pybytes servers?
- Gijs Global Moderator last edited by
Hi,
I can confirm there is no noticeable difference between the firmwares. If anything the 41065 is a little more stable than the 47510.
Best,
Gijs | https://forum.pycom.io/topic/6195/modem-firmware/1?lang=en-US | CC-MAIN-2021-39 | refinedweb | 325 | 61.87 |
I steps and does everything it needs. But it was not true, I got a zip archive with binaries that I needed to unzip manually and execute some binaries that integrate NDepend with my Visual Studio 2013 and Reflector. Installation guide is simple enough and detailed, I have no problems to follow it step by step and configure everything. Nevertheless, installation process seems rather unusual for today.
When I executed a standalone version of NDepend(VisualNDepend) and opened first project that I found – I got stuck! So much information on my screen, I could not understand where to look. My screen looked like a spaceship control panel and I was afraid to touch it ;). I decided to go back to Getting Started page and watch the introduction video. Luckily, NDepend looks pretty well documented.
Now I needed to choose some F# project to do “a code review”. I wanted to find something cool, large and complicated for clarity. And here was my first problem… The first condition is ‘cool’, but most of open source F# projects are cool. This constrain did not help me to reduce number of choices. The next condition is ‘large’, but we do not have really huge F# projects. Pithiness is one of the main F# advantages (F# helps to dramatically decrease code size and code complexity by design). Even F# Compiler is not so big; it is much smaller than my usual C# project. The last condition is ‘complexity’; here situation is similar to ‘size’. F# really helps to keep complexity at manageable level. Anyway, I needed to choose one…
Finally, I have chosen FSharp.Compiler.Service project for analysis (It is a relatively new project). I have no idea what is inside, so it will be more interesting to explore source code in such unusual(for me) way. It is an extremely cool project, which is probably one step further for F# and a fundamental improvement that will open a lot of new doors. (You can read more about what it for and what it can do on the official F# Compiler Services site). This project must be large enough and complicated because it is a brand new extended version of the powerful compiler.
Joking aside! Let’s go deeper to the code.
In the dependency graph picture, we see the primary assembly FSharp.Compiler.Service (orange in the picture). This assembly depends on minimal set of assemblies from .NET framework (they are marked blue). Also we see that this GitHub project contains sample projects that are built on top of the compiler service (marked green). So project structure is simple enough and quite clear. The same dependencies we can visualize as a dependency matrix:
In this matrix, we see more quantitative data about dependencies. Numbers in the cells show the number of assembly members used by one assembly from another. Using these numbers, we can make some conclusions like “UntypedTree sample uses more functionality from FSharp.Compiler.Service than others” or “FsiExe is only one sample that has Windows Forms user interface”.
NDepend also provides one
crazy interesting report – Treemap Metric View. This report is able to build a tree of namespaces where size of each node will depend on number of LOC in this namespace. Such plots can show where all complexity is concentrated. To extract more useful information from this plot, you need to have an understanding of the code.
Finally, the most intriguing part, the analysis dashboard:
Based on these stats, we see that FSharp.Compiler.Service contains more than 84.000 lines of code, which is really a lot for F# project; the average method complexity is 3 that is pretty nice. Also NDepend found violations of 12 critical rules, let’s see deeper what they are.
Unfortunately, NDepend does not support navigation to method declaration for non-C# compiled source code and this fact complicates observion of F# code.
To avoid this error (for methods) you need to open instance of VS with your solution and NDepend navigate you directly where you wish.
Let’s dwell on critical violated rules:
Code Quality:
Methods with too many parameters – critical
This rule is violated when methods contain more than 8 parameters. I am going to agree here with NDepend – F# compiler source code has such sin. I do not know exact reason of it, but it should be reasonably for compiler/parser source code.
Methods too complex – critical
This rule is violated when methods have ILCyclomaticComplexity > 40 and ILNestingDepth > 4. As I see this happens mostly because NDepend does not understand definition of functions inside other functions (That does not supported by C#). Most of the code that violate this rule is pretty readable. Yes, functionality is wrapped into one large method, but inside it is split into small handy readable functions.
Types too big – critical
This rule is violated when types contain more than 500 lines of code. This story mostly not about F# too. F# compiles modules to the .NET classes. You are allowed to have as large modules as you need. Modules are more like namespaces than classes and constrain with 500 LOC is not applicable for them.
Object Oriented Design
Do not hide base class methods
The rule is self-explanatory. But in current case we should not pay attention because these 3 violations happened in source code of ProvidedType where this is a part of magic of type providers.
Architecture and Layering
Avoid namespaces mutually dependent
I am not sure here, but it also looks like issue related to the F# modules. NDepend reasoning about namespace dependencies without regards to that namespaces are divided into modules.
Dead Code
Potentially dead Types, Methods and Fields
Hmm… It really looks like that there are some methods inside the compiler that were implemented but not used inside and not exposed to external world. It is probably a secret weapon of F#, sketches of new coming features.
Visibility
Constructors of abstract classes should be declared as protected or private
This issue is related to uses of F# discriminated unions. F# compiles discriminated unions into class hierarchy, where root abstract class has a default parameter-less constructor with default visibility (that is internal for F#)
Naming Conventions
Note that C# and F# have a different development guides with a bit different naming conventions.
Avoid having different types with same name
Mostly this rule is also violated by F# modules. It is side effect of F# modules compilation.
Exception class name should be suffixed with ‘Exception’
Exception suffix is rarely used in F# because language has a special exception keyword to define F# exceptions.
Interface name should begin with a ‘I’
F# compiles types to interfaces when all members are abstract. Actually, sometimes we forget to mention I.
Conclusion
Finally, NDepend is a really nice tool. It has some barrier of entry that forces you to refer to documentation, but it looks like a very powerful tool in skillful hand. It is absolutely invaluable in C# world when you want to understand what the hell is going on in the code, but also applicable to F# to see the big picture.
NDepend is highly customizable. Default set of code verification rules is targeted to C# source code, but you can modify existing rules and/or create new ones that will be designed to F#. Hopefully, one day such rules will become available in default distribution and F# will be officially supported by NDepend team.
P.S. I have tried only a basic feature set; you can read more about advanced features in the official documentation.
2 thoughts on “NDepend for F# code or FSharp.Compiler.Service ‘code review’.”
The latest version of NDepend seems to be a lot more F# friendly than when I kicked the tyres on the then current version about 4 years ago ( and the previous post linked there); though the issue with F# code generation including a lot of branching (and thus high cyclomatic complexities) is something that just has to be accepted. | https://sergeytihon.com/2014/01/03/ndepend-for-f-code-or-fsharp-compiler-service-code-review/ | CC-MAIN-2021-31 | refinedweb | 1,336 | 63.29 |
Using the TreeView IE Web Control
Scott Mitchell
July 2003
Applies to:
Microsoft ASP.NET
Summary: Learn about the TreeView Web control and how to start using it in your ASP.NET Web applications. In addition to the standard ASP.NET Web controls (like the TextBox, DropDownList, DataGrid, DataList and so on) Microsoft has released an additional set of Web controls designed to take advantage of features inherent in Internet Explorer. These new Web controls, dubbed the Internet Explorer Web Controls, or IE Web Controls for short, contain four new controls that include the TreeView Web control. (11 printed pages)
Download TreeViewControl.msi.
Contents
Introduction
Installing the IE Web Controls
Getting Started with the IE Web Controls
Getting Started with the TreeView IE Web Control
More Advanced TreeView Features
Summary
Introduction
In 2002 Microsoft® released four ASP.NET Web controls designed to provide enhanced experiences for Web visitors using Microsoft Internet Explorer. These Web controls, dubbed the Internet Explorer Web Controls, or IE Web Controls for short, consist of the following four controls:
- The MultiPage Web control
- The TabStrip Web control
- The Toolbar Web control
- The TreeView Web control
These Web controls can be used to enhance an ASP.NET Web page by providing user interface memes your Web visitors will be familiar with. For example, the Toolbar Web control displays a clickable toolbar, similar to toolbars found in assorted Microsoft Office products. The TabStrip and MultiPage Web controls can be used in conjunction to display tabbed content. Finally, the TreeView Web control displays data in a clickable, expandable tree—much like the way Microsoft Windows® Explorer displays the drives and folders in a PC's file system in a tree (you can find live demos of these Web controls online at GotDotNet: the WebControl Toolbar demo; the TabStrip/MultiPage WebControl demo; and the TreeView Sample WebControl demo).
The IE Web Controls can be used on Web servers that have either the .NET Framework version 1.0 or version 1.1 installed. While the IE Web Controls were designed to work best with Internet Explorer, these Web controls will still render in alternative browsers. However, in non-Internet Explorer browsers when users interact with the IE Web Controls, such as by expanding a node in the TreeView Web control, a postback occurs. With Internet Explorer 5.5 and up, the IE Web Controls emit DHTML code that circumvents the need for postbacks. That is, visitors to your Web site using Internet Explorer 5.5 and up will have a more enhanced user experience than those using alternative browsers; however, those who are not using IE 5.5 or up will still be able to see and interact with the IE Web Controls.
The remainder of this article focuses specifically on the TreeView IE Web control and examines how to display data with this control in an ASP.NET Web page. To learn more about the other IE Web Controls, check out the Internet Explorer WebControls Overview—and the Internet Explorer WebControls Reference.
Installing the IE Web Controls
In order to use the IE Web Controls in your ASP.NET Web applications, you must first download the controls' source code and run a build batch file that will compile the source code and copy all the needed files to the appropriate Web application directories. The Internet Explorer Web Controls Download Packages is a 360 KB, self-extracting install file.
Once you have downloaded and installed the IE Web Controls, a new directory will be created (the default is C:\Program Files\IE Web Controls\, although you can configure it during the installation). Navigate to this new directory and double-click the
build.bat file. This will create a new subdirectory,
build, and compile the classes in the
src subdirectory, copying the resulting assembly and support files into the
build subdirectory.
After running the
build.bat file, the build subdirectory will have in it the assembly file
Microsoft.Web.UI.WebControls.dll and a subdirectory called
Runtime. In order to start using the IE Web Controls in an ASP.NET Web application you must copy the contents of the
build\Runtime subdirectory to the Web application's
/webctrl_client/1_0 subdirectory and the assembly file (
Microsoft.Web.UI.WebControls.dll) to the Web application's
/bin subdirectory (an example, along with command-line instructions to perform these tasks, is available in the IE Web Controls
README.txt file).
Getting Started with the IE Web Controls
If you are using Microsoft Visual Studio® .NET to develop your ASP.NET Web application, adding IE Web Controls to an ASP.NET Web page is a breeze. Start by including the IE Web Controls in the Toolbox; to accomplish this, right-click on the Toolbox and select the Customize Toolbox option. Choose the .NET Framework Components tab and click the Browse button. Navigate to the
Microsoft.Web.UI.WebControls.dll assembly file and click OK. This will add the MultiPage, TabStrip, Toolbar and TreeView IE Web Controls to the Visual Studio .NET Toolbox. To add any of these controls to your ASP.NET Web pages, simply drag and drop the appropriate control from the Toolbox onto the Designer.
In order to work with the IE Web Controls in your code-behind class you will first need to add a Reference to the
Microsoft.Web.UI.WebControls.dll assembly by right-clicking on References and selecting Add Reference. Then, in your code-behind class, if you are using C# add
using Microsoft.Web.UI.WebControls; if you are using Microsoft Visual Basic® .NET, add
Imports Microsoft.Web.UI.WebControls.
If you are not using Visual Studio .NET as your ASP.NET Web application editor, you will need to manually add the following
@Register directive at the top of your ASP.NET Web page:
<%@ Register TagPrefix="whatever" Namespace="Microsoft.Web.UI.WebControls" Assembly="Microsoft.Web.UI.WebControls" %>
Then, to add an IE Web Control to your Web page use the following syntax:
<whatever:WebControlName runat="server" ...> ... </whatever:WebControlName>
For example, to add a TreeView control, you could add the following
@Register directive at the top of the page:
<%@ Register TagPrefix="iewc" Namespace="Microsoft.Web.UI.WebControls" Assembly="Microsoft.Web.UI.WebControls" %>
And then add the following Web control syntax where you wanted to TreeView to appear in your ASP.NET Web page:
<iewc:TreeView runat="server" ...> ... </iewc:TreeView>
Getting Started with the TreeView IE Web Control
The TreeView IE Web control, when rendered in a visitor's browser, displays a tree, much like the tree in the Windows Explorer. Specifically, the TreeView consists of an arbitrary number of TreeNode objects. Each TreeNode object can have text and an image associated with it; additionally the TreeNode can be rendered as a hyperlink and have a URL associated with it. Each TreeNode also can have an arbitrary number of children TreeNode objects. The hierarchy of TreeNodes and their children constitute the makeup of the tree rendered by the TreeView control.
Imagine that you wanted to build a TreeView control that displayed your family's genealogy. Since this information rarely changes, you might want to statically specify the TreeView structure. If you are using Visual Studio .NET, statically specifying the TreeView's structure is as simple as filling out a few forms. First, start by adding a new TreeView control to your ASP.NET Web page by dragging and dropping the TreeView control from the Toolbox onto the Designer. Next, set the
ID property of the TreeView control to
tvFamilyTree. After these two steps your screen should appear similar to Figure 1.
Figure 1. Simple TreeView
Now, to statically specify the TreeNodes that constitute the TreeView, select the Nodes property from the Properties pane and click on the ellipsis button at the right of this property. This will display the TreeNodeEditor dialog box. Here you can add new TreeNodes to the TreeView. Figure 2 shows the TreeNodeEditor dialog box after the family tree information has been entered.
Figure 2. TreeNodeEditor Dialog Box
Filling out the TreeNodeEditor dialog box adds the following markup to the
.aspx portion of the ASP.NET Web page:
<ie:Tree:TreeView>
If you are not using Visual Studio .NET as your editor, then you will need to add this content to the ASP.NET Web page by hand. When viewed through a browser, the ASP.NET Web page displays the expandable tree shown in Figure 3. (Figure 3 shows the tree after various nodes have been expanded. By default, only the root node will be displayed. You can set the TreeNode's
Expanded property to indicate that a given TreeNode should be expanded when the page is first viewed.)
Figure 3. Expanded TreeNode
In addition to a textual label, TreeNodes can have images associated with them as well. Specifically, a TreeNode can have three images associated with it: one that is displayed when the TreeNode is in its normal, unexpanded state; one when the TreeNode is in its Expanded state; and one when the TreeNode is selected (a TreeNode becomes selected when it is clicked by the user). All three of these properties expect a URL to a specified image.
For example, we can extend our family tree demo by setting the TreeView's
ImageUrl property to the URL of a closed folder and the TreeView's
ExpandedImageUrl property to the URL of an open folder to display open and closed folders for non-expanded and expanded TreeNodes, respectively. (If we wanted to have a different image for a selected TreeNode, we'd simply set the TreeView's
SelectedImageUrl property to the appropriate URL.)
Realize that both the TreeView and TreeNode have the
ImageUrl,
ExpandedImageUrl, and
SelectedImageUrl properties. The difference is when setting the TreeView's properties by default all TreeNodes in the TreeView will display the specified images. If you set the TreeNode's properties, then those properties hold only for that specific TreeNode. Since we want to have all of the TreeNodes display a closed folder in their non-expanded state and an open folder in their expanded state, we set the
ImageUrl and
ExpandedImageUrl properties of the TreeView control.
With these new property settings, the look and feel of Figure 3 is enhanced. The new TreeView appearance, with images next to the TreeNodes, is shown in Figure 4.
Figure 4. TreeNode with Images
TreeNodes can also have a URL associated with them. Such TreeNodes, when clicked, will automatically whisk the user to the specified URL. The TreeNode's
NavigateUrl property indicates the URL the user is sent to when the TreeNode is clicked. Such functionality is quite useful in an ASP.NET Web page with two frames. In the left frame, you could have a TreeView control. When the user clicks a TreeNode, detailed information about that particular node could then appear in the right frame, similar to how Windows Explorer displays the file system's folders in the left pane and, when a folder is clicked, that folder's files are displayed in the right pane.
To accomplish this, simply set each TreeNode's
NavigateUrl to the proper URL. To have the TreeNode's associated URL loaded in a different browser frame, set the TreeNode's
Target property to the appropriate frame name. These steps can all be accomplished through the TreeNodeEditor. To see an example of such an application, be sure to read Steve Sharrock's article on using the TreeView to create an Explorer-style ASP.NET Web application, TreeView - Programming an Explorer-style Site View.
More Advanced TreeView Features
While adding static TreeNodes to a TreeView is incredibly simple using Visual Studio .NET, more often than not you will want to dynamically add content to the TreeView. For example, you might have the family tree information stored in a database; or, if you are designing an Explorer-like Web application, where the user can browse the Web server's file system, you would need to dynamically populate the TreeNodes based upon the server's folders and files.
TreeNodes can be programmatically added to the TreeView in the code-behind class. To add a new TreeNode to an existing TreeNode, simply use the Add() method of the Nodes property. For example, the following C# code creates two TreeNodes, adding the second as a child of the first. It then adds the first child to TreeView's root nodes.
// Create the first TreeNode TreeNode tvFirst = new TreeNode(); tvFirst.Text = "First Tree Node"; // Create the second TreeNode TreeNode tvSecond = new TreeNode(); tvSecond.Text = "Second Tree Node"; // Add the second TreeNode as a child of the first tvFirst.Nodes.Add(tvSecond); // Add the first TreeNode to the TreeView's root TreeNodes tvFamilyTree.Nodes.Add(tvFirst);
Unfortunately, binding database data to the TreeView is not nearly as simple as binding data to one of the standard ASP.NET data Web controls. Since the TreeView inherently describes hierarchical data, it is not well suited to displaying the results from a simple SQL query. Therefore, the TreeView was designed not to display the contents of a simple SQL query, but instead the contents of an XML file. Therefore, in order to easily display database information in a TreeView you must first convert it to XML.
Similarly, you can display static or dynamic XML files in a TreeView control. However, the TreeView expects XML data formatted in a particular way. Therefore, to display an XML file in the TreeView you must provide an XSLT stylesheet to transform the XML from its current format into the format expected by the TreeView. To learn more on how to accomplish this task, be sure to read my article, Displaying XML Data in the Internet Explorer TreeView Control.
Finally, in addition to supporting images and serving as hyperlinks, the TreeNodes of the TreeView can also contain checkboxes next to them. Furthermore, when the user expands or collapses a TreeNode, selects a TreeNode, or checks or unchecks a TreeNode that has a checkbox, an appropriate event fires. Event handlers can be created for these events to allow for custom actions to occur when these events transpire.
Summary
In this article we briefly examined the IE Web Controls, looking at how to obtain and install them, as well as examined in more depth using the TreeView IE Web control. The TreeView control mimics the standard Windows TreeView display, which can be seen in action in the Windows Explorer. The TreeView is used for displaying hierarchical data, and is made up of an arbitrary number of TreeNodes, each of which has an arbitrary number of TreeNode children.
The appearance of TreeNodes can be customized extensively. For example, you can specify different images for TreeNodes that are collapsed, expanded, and selected. TreeNodes, when clicked, can act as hyperlinks, redirecting the visitor to another URL. TreeNodes can also contain checkboxes.
Displaying static data in a TreeView is simple and can be accomplished in Visual Studio .NET via the TreeNodeEditor. The TreeView control's content can be specified dynamically either by adding TreeNodes programmatically, or through an XML file. This article only scratches the surface of the TreeView control, but should be ample material to get you started on utilizing this control in your own ASP.NET Web applications.
Happy Programming!
Recommended Links:
- Displaying XML Data in the Internet Explorer TreeView Control
- Internet Explorer Web Controls Overview
- Internet Explorer Web Controls Reference
- TreeView – Programming an Explorer-Style Site View
- ASP.NET Forums: Internet Explorer Web Controls Discussion Forum
About the Author information on the DataGrid, DataList, and Repeater controls check out Scott's latest book, ASP.NET Data Web Controls Kick Start (ISBN: 0672325012). | https://msdn.microsoft.com/en-us/library/aa479012.aspx | CC-MAIN-2016-50 | refinedweb | 2,595 | 54.93 |
Nice little demo by Adam Argyle in which he makes the focus ring pop by changing its
outline-offset (with a transition) on focus.
The code also correctly respects the user’s
prefers-reduced-motion preference.
Nice little demo by Adam Argyle in which he makes the focus ring pop by changing its
outline-offset (with a transition) on focus.
The code also correctly respects the user’s
prefers-reduced-motion preference.
ElementInternals
Over:
:not(:focus):invalid, not
:invalid
Update 2021-01-28: In case your form controls have the
required attribute set, you’ll even want to use the more extensive
:not(:focus):invalid selector.
See the update at the end of this post for more info on this.
We’ve all been in this situation, where the built-in form validation of the browser starts complaining while you’re still entering data into the form:
I prefer when forms wait for blur before freaking out 🤨
— Ryan Florence (@ryanflorence) January 27, 2021
Highly annoying, but thankfully there’s an easy way to fix this.
~
The problem is caused by a piece of CSS similar to this snippet:
.error-message { display: none; } input:invalid { border-color: var(--color-invalid); } input:invalid ~ .error-message { display: block; } input:valid { border-color: var(--color-valid); }
When entering an e-mail address — as Ryan is doing above — this is extremely annoying as your e-mail address is only valid when you’re done entering it. Try it in the demo below.
See the Pen
Form Validation on Blur (1/4) by Bramus (@bramus)
on CodePen.
Ugh! 🤬
💁♂️ For a slight moment you’ll notice that an e-mail address in the form of
bramus@bram (e.g. without a
.tld suffix) is also considered valid. As per RFC 822 the
user@hostname format — used mainly in local networks — indeed is allowed.
~
It would be nice to only perform the validation when the field is not being edited anymore. In CSS we don’t have a blur event, but what we do have is a pseudo-class selector to indicate whether an input has the focus:
:focus. Combine that with
:not() and we have a way to target the “not being focussed” state, which also indicates that the field is not being edited.
Putting it all together, our CSS becomes this:
.error-message { display: none; } input:not(:focus):invalid { border-color: var(--color-invalid); } input:not(:focus):invalid ~ .error-message { display: block; } input:not(:focus):valid { border-color: var(--color-valid); }
This way the validations only happen when you’re blurred out of the form.
See the Pen
Form Validation on Blur (2/4) by Bramus (@bramus)
on CodePen.
Ah, that’s better! 😊
~
In the demo above you’ll see one small side-effect though: the border is green by default, even though we didn’t enter any value. This is not exactly what we want Ideally we only want to validate in case the field is both not focussed and not empty.
In CSS we can’t use
:empty for this though, as
:empty targets elements that have no children/
innerHTML content. What we can do however is abuse the
:placeholder-shown pseudo-class.
With this in mind, our code now becomes this:
.error-message { display: none; } input:not(:focus):invalid { border-color: var(--color-invalid); } input:not(:focus):invalid ~ .error-message { display: block; } input:not(:focus):not(:placeholder-shown):valid { border-color: var(--color-valid); }
⚠️ Do note that this requires a value for the
input‘s
placeholder.
<input type="email" placeholder="you@example.org" />
If you don’t want any placeholder to show, set its value to
(space)(space)
Here’s an adjusted demo:
See the Pen
Form Validation on Blur (3/4) by Bramus (@bramus)
on CodePen.
Yes, exactly what we want! 🤩
:user-invalidpseudo class for exactly this use-case.
The
:user-invalidpseudo-class represents an element with incorrect input, but only after the user has significantly interacted with it.
This feature is still in the works and not supported yet. Firefox supports it using the non-standard
::-moz-ui-invalid name. Thanks for the tip, Schepp!
~
required
As reader Corey pointed out in the comments below the code above does not play nice with the
required attribute. When the attribute is added, the error message will be shown when the form loads.
To work around this we also need to include the
:not(:placeholder-shown) pseudo-class in our
:invalid selectors.
.error-message { display: none; } input:not(:focus):not(:placeholder-shown):invalid { border-color: var(--color-invalid); } input:not(:focus):not(:placeholder-shown):invalid ~ .error-message { display: block; } input:not(:focus):not(:placeholder-shown):valid { border-color: var(--color-valid); }
Putting it all together, here’s our final demo:
See the Pen
Form Validation on Blur (4/4) by Bramus (@bramus)
on CodePen.
Phew! 😅
~
🔥 Like what you see? Want to stay in the loop? Here's how:
Note: The title of this post is definitely a reference to this post on CSS-Tricks and this post by Kilian.
multipleattribute
A
bramus@bram is considered valid. As per RFC 822 the
user@hostname.
~
I don't do this for profit but a small one-time donation would surely put a smile on my face. Thanks!
To stay in the loop you can follow @bramus or follow @bramusblog on Twitter.
I like that the daterange needs to be entered in one single input, and that the rendered datepicker is used as a progressive enhancement on top.
Installation per NPM:
npm i litepicker
At its core, usage is really simple:
import Litepicker from 'litepicker'; const picker = new Litepicker({ element: document.getElementById('litepicker') });
Highly configurable too!
Litepicker — Date range picker – lightweight, no dependencies →
caret-colorproperty
Thanks
When double clicking a submit button your form will be sent twice. Using JavaScript you can prevent this from happening, but wouldn’t it be nice if this behavior could be tweaked by use of an attribute on the
<form>? If you think so, feel free to give this issue a thumbs up.
Today Sebastian wondered:
Disabling a form submit button while submitting: yay or nay?
(I thought I saw some research that discourages it, but can't remember where or why)
— Sebastian De Deyne (@sebdedeyne) November 4, 2020
I quickly chimed in saying that I do tend to lock up forms when submitting them. Let me explain why …
~
I started locking up submitted forms as users of the apps I’m building reported that sometimes the actions they had taken — such as adding an entry — were performed twice. I took me some time to figure out what exactly was going on, but eventually I found out this was because they were double clicking the submit button of the forms. As they double clicked the button, the form got sent over twice. By locking up forms after their first submission, all successive submissions — such as those triggered by that second click of a double click — are ignored.
~
To prevent these extra form submissions from being made I don’t hijack the form with Ajax nor do I perform any other complicated things. I let the inner workings of the web and forms in the browser be: when pressing the submit button the browser will still collect all form data, build a new HTTP request, and execute that request.
What I simply do is extend the form’s capabilities by adding a flag — by means of a CSS class — onto the form to indicate whether it’s being submitted or not. I can then use this flag’s presence to deny any successive submissions, and also hook some CSS styles on. — Progressive Enhancement, Yay! 🎉
The code looks as follows:
// Prevent Double Submits document.querySelectorAll('form').forEach(form => { form.addEventListener('submit', (e) => { // Prevent if already submitting if (form.classList.contains('is-submitting')) { e.preventDefault(); } // Add class to hook our visual indicator on form.classList.add('is-submitting'); }); });
💡 Although the problem initially was a double click problem, we don’t listen for any clicks on the submit button but listen for the form’s
submit event. This way our code not only works when clicking any of the submit buttons, but also when pressing enter to submit.
With that
.is-submitting class in place, we can then attach some extra CSS onto the form to give the user visual feedback. Here’s a few examples:
See the Pen
Prevent Form Double Submits by Bramus (@bramus)
on CodePen.
See the Pen
Prevent Form Double Submits (Alternative version) by Bramus (@bramus)
on CodePen.
Note that this solution might not cover 100% of all possible scenarios, as it doesn’t take failing networks and other things that might go wrong into account. However, as I’m relying on the basic mechanisms of the web I think I can also rely on the browser to show that typical “Confirm Form Resubmission” interstitial should a timeout occur. Additionally, if need be, one could always unlock the form after a fixed amount of time. That way the user will be able to re-submit it again.
~
Dealing with double form submissions isn’t a new issue at all. You’ll find quite some results when running a few queries through Google — something I only found out after stumbling over the issue myself.
Back in 2015 (!) Mattias Geniar also pondered about this, after being pulled into the subject from a sysadmin view. Now, when even sysadmins are talking about an HTML/UX issue you know there’s something going on. This made me wonder why browsers behaved like that and how we could solve it:
🤔 Why is it that browsers don't prevent double form submissions by default? Some users (mistakingly) double click on submit buttons.
💡 An attribute on <form> to tweak this behavior – instead of having to rely on JavaScript – would come in handy …
— Bramus! (@bramus) February 13, 2020
As a result I decided to open an issue at the WHATWG HTML Standard repo, suggesting for a way to fix this at spec level:
An attribute on
<form>to tweak this behavior – instead of having to rely on JavaScript – would come in handy and form a nice addition to the spec.
I see two options to go forward:
- Browsers/the standard keeps the current behavior and allow multiple submits. Developers must opt-in to prevent multiple submissions using a
preventmultiplesubmitsattribute.
- Browsers/the standard adjust the current behavior to only submit forms once. Developers must opt-in to allow multiple submissions using a
allowmultiplesubmitsattribute.
Initial response on the issue was very low, and it looks like this isn’t that big of a priority.
Back then I was more in favor of the second solution, but now I’m quite undecided as changing the default behavior — which has been around for ages — is quite tricky.
~
Another way that this issue could be fixed is at the browser level: if they were to treat double clicks on form submit buttons as single clicks, then the double click problem — but not the double submit problem — could also be taken care of.
To then attach styles to forms being submitted a CSS Pseudo Class
:submitting would come in handy. Come to think of it, this Pseudo Class would be a quite nice addition to CSS in itself, no matter whether this double click issue gets solved or not.
~
Winging back to the addition to the HTML spec I suggested: If you do think it could be something the HTML spec could benefit from, feel free to add a thumbs up to the issue to indicate that you want this, or add an extra comment to it if you have more input on the subject.
I don't do this for profit but a small one-time donation would surely put a smile on my face. Thanks!
To stay in the loop you can follow @bramus or follow @bramusblog on Twitter.
press up or down, we want to add or subtract 1
- If they hold SHIFT and press up or down, we want to add or subtract 10
- If they hold ALT and press up or down, we want to add or subtract 0.1
- If they hold CTRL and press up or down, we want to add or subtract 100. On Mac, we want to use the CMD key for consistency.
Supercharging
<input type="number"> →
💡 Did you know the DevTools in your browser also support these modifier keys? Try editing a numeric value and press up/down while holding
SHIFT/
ALT/
CMD 😉
⚠️ In some cases you’ll most likely be better off by avoiding
<input type="number">, and should use go for
<input type="text" inputmode="numeric" pattern="[0-9]*"> instead`.
Checkboxland is a JavaScript library for rendering anything as HTML checkboxes.
You can use it to display animations, text, and arbitrary data. It also supports plugins, so you can build more powerful APIs on top of it.
Heh. Can’t quite think of a reason when exactly to use this, but it’s fun nonetheless 😅
👾 This reminded me of Fullstack, a game built by Hakim El Hattab: | https://www.bram.us/tag/forms/ | CC-MAIN-2021-31 | refinedweb | 2,175 | 61.56 |
Hi all,
My program, audioTest, is intended as a practise so that I can see how ths feature works!
However, I'm being plagued by errors!
My code, shown below, should be all I need to play an mp3 file; nothing more!
I'm getting errors in the console window saying, "Failed to open "Kalimba.mp3" for reading"I'm getting errors in the console window saying, "Failed to open "Kalimba.mp3" for reading"Code:
#include "SFML/Audio.hpp"
#include <iostream>
using namespace std;
int main()
{
sf::Music Music1( 44100 ); // create Music instance
if ( !Music1.OpenFromFile( "Kalimba.mp3" ) ) // if the file doesn't open
cout << "\n\nMusic file can't be opened!\n\n" << endl; // display error message
Music1.Play(); // play music
system( "pause" ); // pause to stop console window closing
} // end main
Music file can't be opened!
Failed to play audio stream : sound parameters have not been initialized (call Initialize first)
press any key to continue...
Please help if you have any ideas of how to rectify this error! | https://cboard.cprogramming.com/game-programming/146177-sfml-audio-problems-printable-thread.html | CC-MAIN-2017-17 | refinedweb | 170 | 67.15 |
Why is my Amazon Redshift snapshot missing some tables?
Last updated: 2020-03-26
I restored a snapshot from an Amazon Redshift cluster, but the snapshot is missing some tables. How do I back up my missing tables?
Short Description
Tables created as no-backup tables are excluded from Amazon Redshift snapshots. Verify whether Amazon Redshift excluded your table because it was created using the BACKUP NO parameter. Then, perform a deep copy.
Resolution
To back up missing tables from your Amazon Redshift snapshot, perform the following steps:
1. Check the Data Definition Language (DDL) of the tables that are missing from the snapshot.
2. If the table's DDL is unavailable, then run the following query as a superuser:
SELECT DISTINCT Rtrim(n.nspname) AS schema_name, Rtrim(name) AS table_name, backup FROM stv_tbl_perm t join pg_class c ON t.id = c.oid join pg_namespace n ON n.oid = c.relnamespace ORDER BY 1,2;
The query above identifies tables in the connected database that aren't backed up in the snapshot. It queries STV_TBL_PERM, the system table that is only visible to superuser accounts. For more information about views that are only available to superusers, see Visibility of Data in System Tables and Views.
Note: A value of 0 for the backup column indicates that the table was created using the BACKUP NO parameter. You cannot alter an existing table in Amazon Redshift using the BACKUP YES parameter.
3. If your table was created as a no-backup table, then recreate the table without the BACKUP NO parameter.
4. Perform a deep copy of your missing tables.
Related Information
Did this article help you?
Anything we could improve?
Need more help? | https://aws.amazon.com/es/premiumsupport/knowledge-center/redshift-snapshot-missing-tables/ | CC-MAIN-2021-10 | refinedweb | 282 | 58.48 |
The Samba-Bugzilla – Bug 447
make fails
Last modified: 2004-02-17 08:45:40 UTC
Trying to build SAMBA 2.2.8a on AIX 5.2, using IBM's C v6.0 compiler results in
the error:
Linking bin/smbd
ld: 0711-317 ERROR: Undefined symbol: .SAFE_FREE
ld: 0711-317 ERROR: Undefined symbol: .VA_COPY
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
make: 1254-004 The error code from the last command is 8
Upon investigation I discovered that the problem is with snprintf.c -
whenever HAVE_PRINTF, HAVE_VSNPRINTF and HAVE_C99_VSNPRINTF are all defined (as
they are in my environment) then the SAFE_FREE and VA_COPY macros never get
defined, even though they are used later on in the code (e.g. vasprintf
procedure). It may be that the #endif prior to the vasprintf procedure
specification is misplaced.
I just ran a normal configuration with no options set.
Sorry, but the 2.2 is not under development any longer.
If you can reproduce this bug against the latest 3.0 release,
please reopen this bug and change the version in the report.
Thanks. | https://bugzilla.samba.org/show_bug.cgi?id=447 | CC-MAIN-2017-30 | refinedweb | 187 | 67.76 |
Hi, I'd like to suggest the following patch to DDD: *** SourceView.C~ Thu Apr 26 04:08:06 2001 --- SourceView.C Tue Oct 23 15:41:07 2001 *************** *** 6962,6966 **** static regex rxarglist("[(][^0-9][^)]*[)]"); #endif ! int start = index(line, rxarglist, "("); if (start > 0) { --- 6962,6966 ---- static regex rxarglist("[(][^0-9][^)]*[)]"); #endif ! int start = index(line, rxarglist, "(", -1); if (start > 0) { I feel that the original version was in error, because it deletes everything on the line between the first '(' and the last ')', even if there are multiple pairs of parentheses. So, for example, if the output of "info threads" from GDB was: * 2 thread 2 (MIPS CPU 1) 0xa00249d0 in __sprint (fp=0x801ff8c0, uio=0x0) at ../../../../../newlib-1.9.0/newlib/libc/stdio/vfprintf.c:193 1 thread 1 (MIPS CPU 0) 0xa0024c44 in _vfprintf_r (data=0xa002b2b8, fp=0x800ff8c0, fmt0=0x1 "\b\200", ap=0x800fffcc) at ../../../../../newlib-1.9.0/newlib/libc/stdio/vfprintf.c:441 then the threads window displayed: 2 thread 2 () at vfprintf.c:193 1 thread 1 () at vfprintf.c:441 which not only loses the "extra thread info" (between the first pair of parentheses), but also loses the function name (which is between the first close-paren and the second open-paren). With my suggested patch, DDD displays: 2 thread 2 (MIPS CPU 1) 0xa00249d0 in __sprint () at vfprintf.c:193 1 thread 1 (MIPS CPU 0) 0xa0024c44 in _vfprintf_r () at vfprintf.c:441 which only cuts out the function arguments, which I believe is what the code was originally intended to do. (And certainly seems more useful to me.) Thanks! --Patrick | http://lists.gnu.org/archive/html/bug-ddd/2001-10/msg00023.html | CC-MAIN-2015-35 | refinedweb | 269 | 64.1 |
RINT(3M) RINT(3M)
NAME
aint, anint, ceil, floor, rint, irint, nint - round to integral value
in floating-point or integer format
SYNOPSIS
#include <<math.h>>
double aint(x)
double x;
double anint(x)
double x;
double ceil(x)
double x;
double floor(x)
double x;
double rint(x)
double x;
int irint(x)
double x;
int nint(x)
double x;
DESCRIPTION
aint(), anint(), ceil(), floor(), and rint() convert a double value
into an integral value in double format. They vary in how they choose
the result when the argument is not already an integral value. Here an
"integral value" means a value of a mathematical integer, which however
might be too large to fit in a particular computer's int format. All
sufficiently large values in a particular floating-point format are
already integral; in IEEE double-precision format, that means all val-
ues >= 2**52. Zeros, infinities, and quiet NaNs are treated as inte-
gral corre-
sponds to the Fortran generic intrinsic function anint().
ceil() returns the least integral value greater than or equal to x.
This corresponds to IEEE rounding toward positive infinity.
floor() returns the greatest integral value less than or equal to x.
This corresponds to IEEE rounding toward negative infinity.
rint() rounds x to an integral value according to the current IEEE
rounding direction.
irint() converts x into int format according to the current IEEE round-
ing direction.
nint() converts x into int format rounding to the nearest int value,
except halfway cases are rounded to the int value larger in magnitude.
This corresponds to the Fortran generic intrinsic function nint().
15 October 1987 RINT(3M) | http://modman.unixdev.net/?sektion=3&page=aint&manpath=SunOS-4.1.3 | CC-MAIN-2017-30 | refinedweb | 272 | 54.12 |
Spring Boot tutorial: Microservices and Kubernetes (part 2)
Moving from the monolith to microservices has a lot of advantages. In part two of this tutorial, Michael Gruczel finishes his step-by-step tutorial teaching developers how to implement microservices architecture in Kubernetes and Pivotal Cloud Foundry with Spring Boot.
This is part two of a series. If you missed part one, it can be found here!
Service discovery in Kubernetes
You can use internal DNS in Kubernetes or you can use the same service discovery approach like in PCF (via Eureka) in Kubernetes as well. since Kubernetes offers another option to do service discovery, I will show that one in my example. We will deploy an instance of our weather app in Kubernetes in Listing 26 with some prebuilt containers. We will use the description (weather-app-v1.yaml) from Listing 27.
Listing 26
kubectl create -f weather-app-v1.yaml kubectl get deployment kubectl describe deployment weather-app kubectl expose deployment weather-app --type="LoadBalancer" kubectl get pods -l app=weather-app kubectl get service weather-app
Listing 27
apiVersion: extensions/v1beta1 kind: Deployment metadata: name: weather-app spec: replicas: 1 template: metadata: labels: app: weather-app spec: containers: - name: weather-app image: mgruc/weather-app:v1 ports: - containerPort: 8090
You can call the weather service now by ‘’. The weather service discovery information will be available inside Kubernetes under WEATHER_APP_SERVICE_HOST and WEATHER_APP_SERVICE_PORT. That means we will remove the service discovery annotation from our application and our rest controller and just use the variables.
Listing 28 shows how you could use that in a Spring Boot app.
Listing 28
@RestController public class ConcertInfoController { @Value("${WEATHER_APP_SERVICE_HOST}") private String weatherAppHost; @Value("${WEATHER_APP_SERVICE_PORT}") private String weatherAppPort; @Bean RestTemplate restTemplate(){ return new RestTemplate(); } @Autowired RestTemplate restTemplate; @RequestMapping("/concerts") public ConcertInfo concerts(@RequestParam(value="place", defaultValue="")String place) { // retrieve weather data in order to add it to the concert infos Weather weather = restTemplate.getForObject( "http://" + weatherAppHost + ":" + weatherAppPort + "/weather?place=" + place, Weather.class); ... } }
So let us deploy the concert app as well (Listing 29, concert-app-v1.yaml) by executing ‘kubectl create -f concert-app-v1.yaml ’.
Listing 29
apiVersion: extensions/v1beta1 kind: Deployment metadata: name: concert-app spec: replicas: 1 template: metadata: labels: app: concert-app spec: containers: - name: concert-app image: mgruc/concert-app:v1 ports: - containerPort: 8100
The concert app is able to find the weather app, because the vars WEATHER_APP_SERVICE_HOST and WEATHER_APP_SERVICE_PORT are automatically injected by Kubernetes. That is just one of the options to implement service discovery within Kubernetes. If you want to try it from outside, check the public available IP (see Listing 30). The service is now reachable from outside by for example:’curl’.
Listing 30
kubectl expose deployment concert-app --type="LoadBalancer" kubectl get service concert-app
Treat backing services as attached resources
This principle also originates from the twelve-factor app and comparable principles are known since a long time. Any resilient system should support graceful degradation. That means if a service dependency is missing, the service should not crash. Instead it should offer as much functionality as possible. If our service only works after a login, but the user database is not available, we will maybe have difficulties to offer something useful, but there are other use cases where we can follow the principle.
A great and lean library to support this in Java is for example Hystrix. Hystrix is a circuit breaker. If a service is not responding any more correctly, he will open the circuit for a given time and not propagate requests to that service any more.
Instead we can define a fallback method. By using that principle, errors or loops will not be propagated to next service layer, instead he will break a possible loop or error propagation. Listing 31 is an example for this.
Listing 31
@RequestMapping("/hello") @HystrixCommand(fallbackMethod = "hellofallback") public String hello() { String aName = .... complex logic to find a name return "Hello " + aName; } public String hellofallback() { return "Hello world"; }
In my example, if the weather service it offline, then the concert app can still provide concert information, see here for more information.
Execute the app as one or more stateless processes
Another principle from the twelve-factor app is important for microservices and the reason is obvious. If you want to scale at anytime and if you expect your service instance to be moved from one host to another anytime (e.g. auto failover), then you cannot have a state in your application. Any data that needs to be persisted must be stored in a backing service.
There are 2 major design mistakes which often result in a state:
- Sessions managed by the application server
- Local file persistence
Moving the session from the server into a database like Redis is simple. Apart from some dependencies, you often need just one annotation to do this in Spring Boot. If you use spring security and have web security enabled (@EnableWebSecurity) and you want to store your http sessions in a database, then Listing 32 is all you need to store your sessions in Redis.
Listing 32
@EnableRedisHttpSession public class HttpSessionConfig { }
To demonstrate this, I will add another app to our weather-app and concert-app. It is a chat-app. In order to use the chat app, you have to login. Additionally, you can ask in the chat window for concert or weather information. This data will then be retrieved from the weather and concert-app. Image 3 is the UI to showcase the functionality.
Image 3: chat app UI
If you want to try it locally, then you could install Redis locally or better use Docker. Another option is to start a vagrant box with Redis. I have prepared a Redis vagrant box for that use case. If you want to use that one, go to folder vms/redis of my repository on GitHub and execute ‘vagrant up’. The source code for the chat-app is in source/chat-app.
If you have still eureka, the weather-app and the concert-app running from the last example, start now additionally the chat app by executing ‘./gradlew bootRun’. Login as ‘homer’ with password ‘beer’ on. You can now enter messages which will be stored in Redis. The session itself is stored in Redis as well and you can call other services indirectly if they are available e.g. by submitting ‘/weather springfield’ in the text field of the app. If the services are not available, the command will not work, but everything else will still continue to work.
Getting rid of the local file persistence for existing apps can be difficult. One solution is to use an object storage like AWS S3. There are other object storage solutions which use the same API. Take a look into Minio () if you want to install a S3 like storage locally. Instead of writing or reading a file, you can use an AWS S3 java client to write or read files from buckets. The next code snippet (Listing 33) should illustrate the idea, but I will not use it in my examples.
Listing 33
@RestController @RequestMapping("/filehandling") public class SampleS3Controller { private AmazonS3Client client; private String bucketName; @RequestMapping(value = "upload", method = RequestMethod.POST) public void uploadFile(@RequestParam("name") String name, @RequestParam("file") MultipartFile file) { try { ObjectMetadata objectMetadata = new ObjectMetadata(); objectMetadata.setContentType(file.getContentType()); client.putObject(new PutObjectRequest(bucketName, name, file.getInputStream(), objectMetadata)); } catch (Exception e) { ... } } }
Execute the app as one or more stateless processes in PCF
Let us push our chat server to PCF and connect it to a Redis database (which is available as service in PCF) to use it with our already deployed weather-app and concert-app. The name of the Redis service must be Redis or the binding data has to fit to the scheme, as seen here.
Listing 34 shows how to do it in PCF.
Listing 34
# artefact is in artefacts cf push mgruc-pcf-chat-app -p chat-app-0.0.1.jar --random-route --no-start cf bind-service mgruc-pcf-chat-app mgruc-service-registry cf create-service rediscloud 30mb redis # in case of an internal installation it would be: cf create-service p-redis shared-vm redis cf bind-service mgruc-pcf-chat-app redis cf start mgruc-pcf-chat-app cf app mgruc-pcf-chat-app
You can now login to the chat service (url you can get from ‘cf app mgruc-pcf-chat-app’) and use it. It will store the sessions and messages in the Redis database and use the weather and concert service.
Execute the app as one or more stateless processes in Kubernetes
Let us deploy Redis and out chat service. Additionally we will make the service available from outside. We will deploy a simple Redis setup for our demo (Listing 35, see redis-master.yaml). In a real life example you would probably define a clustered setup.
Listing 35
apiVersion: extensions/v1beta1 kind: Deployment metadata: name: redis spec: replicas: 1 template: metadata: labels: app: redis role: master tier: backend spec: containers: - name: master image: gcr.io/google_containers/redis resources: requests: cpu: 100m memory: 100Mi ports: - containerPort: 6379
Let’s deploy it.
Listing 36
kubectl create -f redis-master.yaml kubectl expose deployment redis --type="LoadBalancer"
And now we deploy the chat app. I’ve added the connection information (using env variables) to the application properties for this. Apart from that our Spring Boot app is the same like in PCF or locally (Listing 37, see chat-app-v1.yaml).
Listing 37
apiVersion: extensions/v1beta1 kind: Deployment metadata: name: chat-app spec: replicas: 1 template: metadata: labels: app: chat-app spec: containers: - name: chat-app image: mgruc/chat-app:v1 ports: - containerPort: 8080
Let’s now deploy our chat app and make it available in Listing 38.
Listing 38
kubectl create -f chat-app-v1.yaml kubectl expose deployment chat-app --type="LoadBalancer" kubectl get service chat-app
Open it in your browser. I will skip the file storage example here. Since Kubernetes is based on Docker, the files can be mounted to the host if needed or the S3 solution can be applied as well. The source for the Kubernetes examples is available under /source/docker-… in my repo.
Run admin/management tasks as one-off processes
This useful principle is one more time originated in the 12 factor apps manifest (XII. Admin processes). Admin tasks are often not part of the pipeline, because the administration is in a lot of companies done by another department. Software changes are in the most companies versioned and running through a pipeline.
Database changes, config changes, file cleanups are treated as exceptions, even if the risk is often bigger than a change in software. The exception I see the most are database changes. Some companies have dedicated DBAs which are not requested to commit their changes in the same pipelines. They are handled in a different way and not rolled out with the application change. That’s why I will just give one example how database changes can be integrated into the software.
Flyway is one of the libraries which is designed to execute versioned database changes. Spring Boot will automatically autowire Flyway with its DataSource and invoke it on startup if the dependency is given. Flyway supports versioned database migrations (unique version – applied exactly once) or repeatable migrations (re-applied every time their checksum changes). Let’s say you would have a folder named db/migration in you classpath (e.g. resource folder of application), then you could add sql files in that folder with the names ‘V1__lorem.sql’, ‘V2__ipsum.sql’ and so on. Flyway would execute all sql files which were not yet executed on the database in the given order (V[order]__[any name]) if you deploy an application.
Treat logs as event streams
If you accept that your application might be started on a different host any time (see autofailover, autoscaling, …), that it should be easy to scale it, than local file systems are not reliant. That means writing your logs to files is not reliant and your logging capabilities has to scale as well. The consequence is that you understand your logs as streams (12 factor apps – XI. Logs) and pipe your logs as a stream to different channels.
Treat logs as event streams in PCF
Cloud foundry collects the system out and all requests into one big stream. You can link yourself to the stream by the command ‘cf logs mgruc-pcf-chat-app [–recent]’. A better solution is to stream your PCF application logs to your external logging solution. PCF supports log forwarding compatible to syslog out of the box. Let’s say we want to forward our logs from the pcf-chat-app to an external logstash agent, then we could follow Listing 39.
Listing 39
cf cups my-logstash -l syslog://<ip_of_your_logstah_host>:<your_logstah_port> cf bind-service mgruc-pcf-chat-app my-logstash cf restage mgruc-pcf-chat-app
The same binding will work with splunk, papertrail or other services which support syslog.
Treat logs as event streams in Kubernetes
There are several ways to access your logs in Kubernetes. One way is to use the cli e.g. ‘kubectl logs deployment/chat-app’. You can use kubectl logs to retrieve logs but you want to stream your logs to an external solution. The out-of-the box support for Kubernetes is not as straight forward as in PCF, you have to decide yourself on a strategy and implement it.
Some of your options are:
- Push logs directly to a backend from within your application, means you could use a log appender which sends directly to splunk or other tools.
- You can use a streaming sidecar container, means you link the logs from you application container is a second container. The second container contains a log-forwarder.
- You can use a log forwarder on the host and mount the logfiles from the Docker container to the host.
Dynamic Tracing and monitoring
If you have hundreds of services which call each other and your software is changing dynamically and fast, then you want to know where you lose your time in order to troubleshoot latency problems and strange behavior. That means additionally to the monitoring of the services itself, you have to add monitoring for the network of microservices. There are several tools and cloud provider like App Dynamics, New Relic and Dynatrace available to monitor distributed apps, only to name a few. Everyone can easily fill an article.
I will show instead two open source options:
- Hystrix with Turbine
- Zipkin
I introduced Hystrix already as circuit breaker. Additionally Hystrix is able to export some metrics. Hystrix needs this information in order to open and close the circuits (number of failed requests, response times, …) and the embedded Hystrix dashboard is able to visualize them for each service.
If you have hundreds of services and thousands of circuit breakers, you don’t want to monitor the different dashboards of the different services instead you want to collect them and visualize them as one dashboard. This is when Turbine comes in handy. It’s also open source from Netflix. Turbine is designed to aggregate Hystrix streams to a single dashboard.
The second framework I want to introduce is Zipkin. Zipkin is a distributed tracing system, that means Zipkin visualizes the trace of requests over several services. Zipkin is available as self running jar based on spring boot. You can easily start it locally as jar or as Docker container (Listing 40).
Listing 40
# as jar wget -O zipkin.jar '' java -jar zipkin.jar # or as Docker docker run -d -p 9411:9411 openzipkin/zipkin
Or you can create your own spring boot application and add the annotation @EnableZipkinStreamServer to the main class to make it to a Zipkin server. Once you’ve started Zipkin, you can browse to to find traces. If you now want to add your service to Zipkin, you have to add a sampler to send the information to the Zipkin server.
The easiest way (but not most performant) to do this is probably the AlwaysSampler (Listing 41).
Listing 41
@Bean public AlwaysSampler defaultSampler() { return new AlwaysSampler(); }
In a real use case, you would send the data to Zipkin aggregated after a delay in order to reduce the overhead. Image 4 and Image 5 are Zipkin samples from our example.
Image 4: Zipkin Dependencies
Image 5: Zipkin traces
Dynamic Tracing and monitoring in PCF
Let’s try it in PCF. You can use my pre-build artefacts (see Listing 42).
Listing 42
# folder artefacts # new zipkin service cf push mgruc-pcf-zipkin -p zipkin.jar --random-route --no-start cf bind-service mgruc-pcf-zipkin mgruc-service-registry # new version of apps which export data to zipkin and the hystrix dashboard cf push mgruc-pcf-chat-app -p chat-app-with-zipkin-0.0.1.jar --random-route --no-start cf push mgruc-pcf-weather-app -p weather-app-with-zipkin-0.0.1.jar --random-route --no-start cf push mgruc-pcf-concert-app -p concert-app-with-zipkin-0.0.1.jar --random-route --no-start # attach hystrix-turbine dashboard cf create-service p-circuit-breaker-dashboard standard mgruc-circuit-breaker-dashboard cf bind-service mgruc-pcf-chat-app mgruc-circuit-breaker-dashboard cf bind-service mgruc-pcf-weather-app mgruc-circuit-breaker-dashboard cf bind-service mgruc-pcf-concert-app mgruc-circuit-breaker-dashboard # attach to zipkin cf app mgruc-pcf-zipkin cf set-env mgruc-pcf-weather-app SPRING_ZIPKIN_BASE-URL http://<zipkin url> cf set-env mgruc-pcf-concert-app SPRING_ZIPKIN_BASE-URL http://<zipkin url> cf set-env mgruc-pcf-chat-app SPRING_ZIPKIN_BASE-URL http://<zipkin url> # start the apps cf start mgruc-pcf-zipkin cf start mgruc-pcf-weather-app cf start mgruc-pcf-concert-app cf start mgruc-pcf-chat-app cf apps
If you now use the chat app for storing messages and request concert and weather data, Zipkin will visualize your dependencies and latencies, Eureka will show you all services and the Hystrix dashboard will help you to identify problems in the communication. Image 6 and 7 are screenshots of the PCF service discovery and the PCF Hystrix Dashboard.
Image 6: PCF service discovery
Image 7: PCF hystrix
If you want to have a look into the code which enables Zipkin, then check weather-app-with-zipkin folder, the concert-app-with-zipkin folder and chat-app-with-zipkin folder in my repo.
Dynamic Tracing and monitoring in Kubernetes
Let us use Zipkin as Docker container in Kubernetes.
Listing 43
kubectl delete deployment weather-app kubectl delete deployment concert-app kubectl delete deployment chat-app kubectl create -f zipkin.yaml kubectl expose deployment zipkin --type="LoadBalancer" kubectl get service zipkin kubectl create -f weather-app-v2.yaml kubectl create -f concert-app-v2.yaml kubectl create -f chat-app-v2.yaml kubectl get service chat-app kubectl get service zipkin
If you now use the chat app for storing messages and request concert and weather data, Zipkin will visualize your dependencies and latencies. I will skip the Hystrix-dashboard example for Kubernetes here since the concepts should be clear now, but with the help of Turbine you can of course create a Hystrix Dashboard in Kubernetes as well.
Clean up
Nothing in life is free, least of all the cloud. Cloud services cost money, so it’s important to clean up after you’re done.. The free account should be fully sufficient to execute the examples, but I highly recommend cleaning up after yourself once finished.
Clean up in PCF
In PCF the following commands in Listing 44 should delete the examples. Please verify that everything is removed after executing the commands.
Listing 44
cf delete updatedemo cf delete-service autoscaler cf delete mgruc-pcf-chat-app cf delete mgruc-pcf-weather-app cf delete mgruc-pcf-concert-app cf delete mgruc-pcf-zipkin cf delete-service redis cf delete-service mgruc-circuit-breaker-dashboard cf delete-service mgruc-service-registry cf delete-service my-logstash
Clean up in Kubernetes
In Kubernetes the following commands in Listing 45 should delete the most things. Please verify that everything is removed after executing the commands.
Listing 45
kubectl delete service weather-app kubectl delete deployment weather-app kubectl delete service concert-app kubectl delete deployment concert-app kubectl delete service chat-app kubectl delete deployment chat-app kubectl delete service redis kubectl delete deployment redis kubectl delete service zipkin kubectl delete deployment zipkin gcloud container clusters delete example-cluster
Summary
Moving from monolithic applications to microservices is a big shift of complexity. Luckily there are efficient ways for this. In this article I could of course only scratch the surface of some of the most important tools and options you can use to make your architecture resilient and scalable. I hope that I could mediate the underlying principles and show how a real microservice architecture could look like by using some simple but practical examples.
1 Comment on "Spring Boot tutorial: Microservices and Kubernetes (part 2)"
You didn’t say how you would get WEATHER_APP_SERVICE_HOST and WEATHER_APP_SERVICE_PORT inside Kubernetes. A configmap will do that. Did you have something else in mind? | https://jaxenter.com/spring-boot-tutorial-microservices-kubernetes-part-2-135518.html | CC-MAIN-2020-10 | refinedweb | 3,534 | 53.41 |
In last week's Windows IT Pro UPDATE, I discussed Microsoft's newly released Windows Automated Installation Kit (WAIK) for Windows Vista Beta 1, which lets administrators and IT pros work with the company's new image-based setup and deployment tools. This week, I look at some of the ways in which you can customize installation images for Vista Beta 1.
Setup Manager As with earlier Windows versions, you can use WAIK's Setup Manager to customize some aspects of a Vista installation. Although the WAIK version of Setup Manager creates XML files, the customization features haven't really changed much over earlier versions. In short, you can use Setup Manager to customize the End User License Agreement (EULA) acceptance, user name and organization, computer name, product key, various disk configuration options (including where to install Vista), and the standard "Run Once" list of commands that will run after the installation. If you've performed any type of automated installation of Windows in the past, these options should be familiar to you.
Customizing Live Images The most exciting new deployment change with Vista, potentially, is that you can edit in place the Windows Image (WIM) installation files you've created, then save the changes to the existing image or as a new image.
Here's how the functionality works. The base Vista Beta 1 installation image is called install.wim and is located in the /sources/ directory of the Vista Beta 1 DVD by default. The other WIM file located in that directory, boot.wim, is the Windows Preinstallation Environment (WinPE), which you use to boot the DVD and load the Vista Beta 1 installation image onto your PC's hard disk; WinPE runs in RAM off the DVD.
To edit install.wim, copy it to the hard disk of a system on which you've installed WAIK. Then, use a command line window to navigate to the folder in which the WAIK tool ximage.exe is found. (There are separate versions for 32-bit x86 and 64-bit x64 versions of Windows Vista.) The first time you navigate to this folder, you need to install the WIM File System Filter (WIM FS Filter) driver. This tool lets you navigate through the file system of a mounted Vista installation image in Windows Explorer as if it where already installed on the PC. To install the driver, open Windows Explorer, locate the file called wimfltr.inf (which is in the same folder as ximage.exe), right-click it, and select Install.
Now you're ready to mount a Vista installation image so that you can view and customize it in Windows Explorer. You use Ximage's mount (view only) and mountwr (read/write) commands to accomplish this. If your install.wim file is stored in C:\images and you want to mount the image in C:\mount, you'd use the following command:
ximage /mountwr c:\mount c:\images\install.wim 1
Now, you can customize the image, in place, by simply navigating through its file structure in Windows Explorer. If you open a My Computer window and navigate to C:\mount, you'll see the standard Vista Beta 1 installation folder structure spread out before you, with the following folders present in the root:
Boot
build
Documents and Settings
inetpub
InstalledRepository
Program Files
Users
Windows
wmpub
Note that the bizarre combination of mixed case and multiple words in a single folder name will likely change by the final release of Vista; Microsoft is working to ensure that most system folders use simple names (e.g., Users) instead of the complex names of the past, such as "Documents and Settings."
If you want to add files or even entire directory structures to the resulting Windows installation, simply add them wherever appropriate within the mounted image. (I've had mixed results doing this: Often, dragging files over in Windows Explorer doesn't work, but copy-and-paste operations seem to work more consistently.) You can also view the contents of files within the image and edit individual files where needed.
When you finish making changes to the image, unmount the image--which removes it from the namespace of the Windows shell on your PC--and save your changes (if any). To unmount the image without saving any changes, simply type the following command:
ximage /unmount c:\mount
Typically, you'll want to save the changes, however, so you'll need to add the commit command to the previous command-line sequence. If you use the following command sequence, ximage will write the changes back to the original file (Note that this process could take a while because the install.wim file is larger than 820MB by default):
ximage /unmount /commit c:\mount
Before you edit an image, you should make a copy of it and edit the copy. This, after all, is one of the biggest benefits of image-based deployment tools. Because the images are single files, they're easy to manipulate in the file system.
Well, I'm out of space once again, but I hope this basic tutorial has whetted your appetite for the deployment changes in Vista. I hope to speak to Microsoft soon about how these tools will evolve over subsequent betas--the command line stuff works fine but is needlessly arcane in my mind--and I'll report back soon about that. If you have any questions about Vista deployment, please drop me a note. | http://www.itprotoday.com/management-mobility/customizing-windows-vista-deployments | CC-MAIN-2018-22 | refinedweb | 910 | 58.72 |
14.1.
csv — CSV File Reading and Writing¶
Source code: Lib/csv.py
The so-called CSV (Comma Separated Values) format is the most common import and export format for spreadsheets and databases. CSV format was used for many years prior to attempts to describe the format in a standardized way in RFC 4180. The lack of a well-defined
14.1.1. Module Contents¶
The
csv module defines the following functions:
csv.
reader(csvfile, dialect='excel', **fmtparams)¶format option is specified (in which case unquoted fields are transformed into floats).
A short usage example:
>>> import csv >>> with open('eggs.csv', newline='') as csvfile: ... spamreader = csv.reader(csvfile, delimiter=' ', quotechar='|') ... for row in spamreader: ... print(', '.join(row)) Spam, Spam, Spam, Spam, Spam, Baked Beans Spam, Lovely Spam, Wonderful Spam
csv.
writer(csvfile, dialect='excel', **fmtparams)¶
Return a writer object responsible for converting the user’s data into delimited strings on the given file-like object. csvfile can be any object with a
write()method. with open('eggs.csv', 'w', newline='') as csvfile: spamwriter = csv.writer(csvfile, delimiter=' ', quotechar='|', quoting=csv.QUOTE_MINIMAL) spamwriter.writerow(['Spam'] * 5 + ['Baked Beans']) spamwriter.writerow(['Spam', 'Lovely Spam', 'Wonderful Spam'])
csv.
register_dialect(name[, dialect[, **fmtparams]])¶
Associate dialect with name. name must be a string. The dialect can be specified either by passing a sub-class of
Dialect, or by fmtparams keyword arguments, or both, with keyword arguments overriding parameters of the dialect. For full details about the dialect and formatting parameters, see section Dialects and Formatting Parameters. an
OrderedDictwhose keys are given by the optional fieldnames parameter.
The fieldnames parameter is a sequence. If fieldnames is omitted, the values in the first row of file f will be used as the fieldnames. Regardless of how the fieldnames are determined, the ordered
None.
All other optional or keyword arguments are passed to the underlying
readerinstance.
Changed in version 3.6: Returned rows are now of type
OrderedDict.
A short usage example:
>>> import csv >>> with open('names.csv') as csvfile: ... reader = csv.DictReader(csvfile) ... for row in reader: ... print(row['first_name'], row['last_name']) ... Eric Idle John Cleese >>> print(row) OrderedDict([( file f.
Writer objects (
DictWriter instances and objects returned by
the
writer() function) have the following public methods. A row must be
an iterable)¶
Write the row parameter to the writer’s file object, formatted according to the current dialect.
Changed in version 3.5: Added support of arbitrary iterables.
The simplest example of reading a CSV file:
import csv with open('some.csv', newline='') as f: reader = csv.reader(f) for row in reader: print(row)
Reading a file with an alternate format:
import csv with open('passwd', newline='') as f: reader = csv.reader(f, delimiter=':', quoting=csv.QUOTE_NONE) for row in reader: print(row)
The corresponding simplest possible writing example is: with open('some.csv', newline='', encoding='utf-8') as f: reader = csv.reader(f)) with open('passwd', newline='') as f: reader = csv.reader(f, 'unixpwd')
A slightly more advanced use of the reader — catching and reporting errors:
import csv, sys filename = 'some.csv' with open(filename, newline='') as f: reader = csv.reader(f) | https://docs.python.org/3/library/csv.html?highlight=csv | CC-MAIN-2017-30 | refinedweb | 518 | 52.87 |
Re: Pyparsing help
- From: Paul McGuire <ptmcg@xxxxxxxxxxxxx>
- Date: Sun, 23 Mar 2008 00:26:36 -0700 (PDT)
There are a couple of bugs in our program so far.
First of all, our grammar isn't parsing the METAL2 entry at all. We
should change this line:
md = mainDict.parseString(test1)
to
md = (mainDict+stringEnd).parseString(test1)
The parser is reading as far as it can, but then stopping once
successful parsing is no longer possible. Since there is at least one
valid entry matching the OneOrMore expression, then parseString raises
no errors. By adding "+stringEnd" to our expression to be parsed, we
are saying "once parsing is finished, we should be at the end of the
input string". By making this change, we now get this parse
exception:
pyparsing.ParseException: Expected stringEnd (at char 1948), (line:54,
col:1)
So what is the matter with the METAL2 entries? After using brute
force "divide and conquer" (I deleted half of the entries and got a
successful parse, then restored half of the entries I removed, until I
added back the entry that caused the parse to fail), I found these
lines in the input:
fatTblThreshold = (0,0.39,10.005)
fatTblParallelLength = (0,1,0)
Both of these violate the atflist definition, because they contain
integers, not just floatnums. So we need to expand the definition of
aftlist:
floatnum = Combine(Word(nums) + "." + Word(nums) +
Optional('e'+oneOf("+ -")+Word(nums)))
floatnum.setParseAction(lambda t:float(t[0]))
integer = Word(nums).setParseAction(lambda t:int(t[0]))
atflist = Suppress("(") + delimitedList(floatnum|integer) + \
Suppress(")")
Then we need to tackle the issue of adding nesting for those entries
that have sub-keys. This is actually kind of tricky for your data
example, because nesting within Dict expects input data to be nested.
That is, nesting Dict's is normally done with data that is input like:
main
Technology
Layer
PRBOUNDARY
METAL2
Tile
unit
But your data is structured slightly differently:
main
Technology
Layer PRBOUNDARY
Layer METAL2
Tile unit
Because Layer is repeated, the second entry creates a new node named
"Layer" at the second level, and the first "Layer" entry is lost. To
fix this, we need to combine Layer and the layer id into a composite-
type of key. I did this by using Group, and adding the Optional alias
(which I see now is a poor name, "layerId" would be better) as a
second element of the key:
mainDict = dictOf(
Group(Word(alphas)+Optional(quotedString)),
Suppress("{") + attrDict + Suppress("}")
)
But now if we parse the input with this mainDict, we see that the keys
are no longer nice simple strings, but they are 1- or 2-element
ParseResults objects. Here is what I get from the command "print
md.keys()":
[(['Technology'], {}), (['Tile', 'unit'], {}), (['Layer',
'PRBOUNDARY'], {}), (['Layer', 'METAL2'], {})]
So to finally clear this up, we need one more parse action, attached
to the mainDict expression, that rearranges the subdicts using the
elements in the keys. The parse action looks like this, and it will
process the overall parse results for the entire data structure:
def rearrangeSubDicts(toks):
# iterate over all key-value pairs in the dict
for key,value in toks.items():
# key is of the form ['name'] or ['name', 'name2']
# and the value is the attrDict
# if key has just one element, use it to define
# a simple string key
if len(key)==1:
toks[key[0]] = value
else:
# if the key has two elements, create a
# subnode with the first element
if key[0] not in toks:
toks[key[0]] = ParseResults([])
# add an entry for the second key element
toks[key[0]][key[1]] = value
# now delete the original key that is the form
# ['name'] or ['name', 'name2']
del toks[key]
It looks a bit messy, but the point is to modify the tokens in place,
by rearranging the attrdicts to nodes with simple string keys, instead
of keys nested in structures.
Lastly, we attach the parse action in the usual way:
mainDict.setParseAction(rearrangeSubDicts)
Now you can access the fields of the different layers as:
print md.Layer.METAL2.lineStyle
I guess this all looks pretty convoluted. You might be better off
just doing your own Group'ing, and then navigating the nested lists to
build your own dict or other data structure.
-- Paul
.
- Follow-Ups:
- Re: Pyparsing help
- From: rh0dium
- References:
- Pyparsing help
- From: rh0dium
- Re: Pyparsing help
- From: Paul McGuire
- Re: Pyparsing help
- From: Paul McGuire
- Re: Pyparsing help
- From: rh0dium
- Prev by Date: Re: Do any of you recommend Python as a first programming language?
- Next by Date: Re: re.search (works)|(doesn't work) depending on for loop order
- Previous by thread: Re: Pyparsing help
- Next by thread: Re: Pyparsing help
- Index(es): | http://coding.derkeiler.com/Archive/Python/comp.lang.python/2008-03/msg02792.html | crawl-002 | refinedweb | 785 | 55.78 |
* A Valve is a synchronization object used enable or disable the "flow" of concurrent22 * processing.23 * 24 * 25 * @version $Revision: 1.2 $26 */27 final public class Valve {28 29 private final Object mutex = new Object ();30 private boolean on;31 private int turningOff=0;32 private int usage=0;33 34 public Valve(boolean on) {35 this.on = on; 36 }37 38 /**39 * Turns the valve on. This method blocks until the valve is off.40 * @throws InterruptedException 41 */42 public void turnOn() throws InterruptedException {43 synchronized(mutex) {44 while( on ) {45 mutex.wait();46 }47 on=true;48 mutex.notifyAll();49 } 50 }51 52 boolean isOn() {53 synchronized(mutex) {54 return on;55 }56 }57 58 /**59 * Turns the valve off. This method blocks until the valve is on and the valve is not 60 * in use.61 * 62 * @throws InterruptedException63 */64 public void turnOff() throws InterruptedException {65 synchronized(mutex) {66 try {67 ++turningOff;68 while( usage > 0 || !on) {69 mutex.wait();70 }71 on=false;72 mutex.notifyAll();73 } finally {74 --turningOff;75 }76 } 77 }78 79 /**80 * Increments the use counter of the valve. This method blocks if the valve is off,81 * or is being turned off.82 * 83 * @throws InterruptedException84 */85 public void increment() throws InterruptedException {86 synchronized(mutex) {87 // Do we have to wait for the value to be on?88 while( turningOff>0 || !on ) {89 mutex.wait();90 }91 usage++;92 } 93 }94 95 /**96 * Decrements the use counter of the valve.97 */98 public void decrement() {99 synchronized(mutex) {100 usage--;101 if( turningOff>0 && usage < 1 ) {102 mutex.notifyAll();103 }104 } 105 }106 107 }108
Java API By Example, From Geeks To Geeks. | Our Blog | Conditions of Use | About Us_ | | http://kickjava.com/src/org/apache/activemq/thread/Valve.java.htm | CC-MAIN-2016-44 | refinedweb | 290 | 67.96 |
Use of Bool in C
Bool in C
In this section we will discuss the use of bool in the C programming language.
The C programming language, as of C99, supports the use of boolean with the help of built-in -type _Bool. bool can be used in place of _Bool if stdbool.h header file is included.
_Bool
_Bool is data type which was introduced in C99. the variables of _Bool only holds two value 0(false) and 1(true). When storing value in the _Bool data type 0 is stored when the input is 0 and for every other input 1 is stored. For example say we have input 2019 then 1 will be stored.
Example:
#include
int main()
{
_Bool check = 2019;
printf("the output is %d",check);
return 0;
}
Output
the output is 1
As we can see even when the input is 2019 the output is 1.
We have another way of using boolean arithmetic in C Programming language which by using bool which is a macros in the stdbool.h header.
stdbool.h
There are 4 macros in the header stdbool.h in the C Standard Library for the C programming language for a Boolean data type. This header was introduced in C99.
The macros as defined in the ISO C standard are :
- bool which expands to _Bool
- true which expands to 1
- false which expands to 0
- __bool_true_false_are_defined which expands to 1
Example:
#include <stdio.h>
#include <stdbool.h>
int main()
{
bool x=true,y=false;
printf("the value of x: %d",x );
printf("\nthe value of y: %d",y );
return 0;
}
Output:
the value of x: 1
the value of y: 0
Login/Signup to comment | https://prepinsta.com/all-about-c-language/use-of-bool-in-c/ | CC-MAIN-2021-39 | refinedweb | 283 | 80.11 |
This is already on our radar. Unfortunately Microsoft hasn't released a package for Service Bus yet, it's still in pre-release.
Original question is around Azure Storage (not ServiceBus). Old package has been split into multiple smaller packages (Microsoft.Azure.Storage.* and for tables you have to use CosmosDB client SDK). Wew have been through this migration process - and it's not super painful for super small project :) 99% are namespace changes.
For the ServiceBus case is not better - best bet for now is Microsoft.Azure.ServiceBus (). But I agree - it's really bad business from Microsoft side to name and release packages propery.
We have "Azure.Messaging.*", "Microsoft.Azure.ServiceBus.*" and "Microsoft.ServiceBus.*" namespaces :)
Adding here as just was having interesting times with the fact that Episerver is using WindowsAzure.Storage when another 3rd party package version x.y was using the NuGet packages Microsoft.Azure.Storage.* WHICH ARE ALSO DEPRECATED and latest version of this 3rd party package is using the latest NuGet packages Azure.Storage.* packages so the nightmare "NuGet package hell is ready" cry
I think we can thank you Microsoft for messing up the packages using old namespaces in new packages and changing where the implementation are (for example the two old NuGet packages have functionality to parse blob connection string and the latest doesn't OR I just didn't find where it was). But anyways understandable that MS wanted to separate/modularize the latest version of the packages but it has created a mess if something is using the older corresponding NuGet packages.
Are there any news here?
I have just recently created a new production environment for a customer, but I suspect that support for Microsoft.WindowsAzure.Storage v9.3.3 is broken in newly created storage accounts. It works fine in the Preprod environment that is quite old (> 1 year since creation), but whenever I create a new Storage Account now (in the portal), I get (400) Bad Request
Accounts created through the portal are using API version 2019-06-01 - Im now trying to iterate through older versions to find the latest one that works.
EDIT Follow-up: "apiVersion": "2018-11-01" works fine.
Hi,
EPiServer.Azure uses package WindowsAzure.Storage which is deprecated.
WindowsAzure.Storage is now (>1 year ago) splited into multiple packages, see more:
Is there any plan to upgrade to the new packages?
Rigth now VS/nuget is complaining that we have installed deprecated packages. | https://world.episerver.com/forum/developer-forum/Problems-and-bugs/Thread-Container/2020/10/episerver-azure-uses-deprecated-package-windowsazure-storage/ | CC-MAIN-2021-25 | refinedweb | 411 | 55.54 |
:
# Import the os module, for the os.walk function import os # Set the directory you want to start from rootDir = '.' for dirName, subdirList, fileList in os.walk(rootDir): print('Found directory: %s' % dirName) for fname in fileList: print('\t%s' % fname):
Found directory: . file2a.jpeg file2b.html test.py Found directory: ./subdir1 file1a.txt file1b.png Found directory: ./subdir2
- Finding Duplicate Files with Python
- Recursive File and Directory Manipulation in Python (Part 2)
- Python Programming – Directories in Python:
import os rootDir = '.' for dirName, subdirList, fileList in os.walk(rootDir, topdown=False): print('Found directory: %s' % dirName) for fname in fileList: print('\t%s' % fname)
Which gives us this output:
Found directory: ./subdir1 file1a.txt file1b.png Found directory: ./subdir2 Found directory: . file2a.jpeg file2b.html test.py.
import os rootDir = '.' for dirName, subdirList, fileList in os.walk(rootDir): print('Found directory: %s' % dirName) for fname in fileList: print('\t%s' % fname) # Remove the first entry in the list of sub-directories # if there are any sub-directories present if len(subdirList) > 0: del subdirList[0]
This gives us the following output:
Found directory: . file2a.jpeg file2b.html test.py Found directory: ./subdir2:
subdirList = subdirList!. | https://pythonarray.com/how-to-traverse-a-directory-tree-in-python-guide-to-os-walk/ | CC-MAIN-2022-40 | refinedweb | 194 | 52.87 |
PulseAudio
From OLPC on the XO
- XO version: B1 - Build: 406 - pulseaudio version: 0.9.6 - more info: pulseaudio
Install
Basic
These are the basic packages you need to install to run pulseaudio on the XO. The zeroconf module is needed if you want to enable networking of the sound server. zeroconf is used to announce the sound servers on the network.
pulseaudio pulseaudio-lib-zeroconf pulseaudio-module-zeroconf deps: libsamplerate libtool-ltdl
Extra packages
The utils package contains tools like a soundfile player which is a native pulseaudio client.
pulseaudio-utils
The lib package is needed when you want to run alsa applications (see what else you need in section #ALSA Applications)
pulseaudio-lib
To configure pulseaudio you may want to install these X tools. You will need them to setup the networking part.
padevchooser pavucontrol pavumeter paman
Configuration
You can configure pulseaudio using the files /etc/pulse/daemon.conf and /etc/pulse/default.pa and run pulseaudio without any arguments.
To run pulseaudio with a higher priority you have to add yourself to the group pulse-rt (you may have to log out before these changes take effect).
/usr/sbin/usermod -a -G pulse-rt olpc
You can start pulseaudio with the high priority option to prevent clicks when doing UI stuff
pulseaudio --high-priority=1
You will see the following output when pulseaudio succesfully gained the priority.
I: core-util.c: Successfully gained nice level -15. I: core-util.c: Successfully enabled SCHED_FIFO scheduling.
Open Issues
These are some known issues with the current pulseaudio version running on the XO. The list is based on this thread on the pulseaudio list:
a) The audio device is not released when PA is idle which will shorten the battery time. Should be fixed in the latest pulse release.
b) Pulseaudio requires FP for resampling calculations. At the moment libsamplerate is used for this task. An option might be speex which offers a resampling library which can do the calculations using integers. This has been changed in the 0.9.7 release. Pulse is using the speex resampler by default which allows to configure pulse's resampler to do either float or fixed. c) PA should be able to change the fragment size dynamically during playback, so that large fragments can be used to save power and smaller ones when low-latency applications are running. Unfortunately ALSA cannot do this as of now.
Pulseaudio and Csound5
Since Csound5 has a modular IO architecture, making it work natively (ie. not through an ALSA plugin) with pulseaudio it is just a matter of adding an IO module to it. The code for the rtpulse module is already in CVS[1] and can be built and used on Linux (with the option -+rtaudio=pulse). This module will be added to the next release of the software. This will hopefully then be included in future OLPC builds.
Tests
Start pulseaudio
pulseaudio -v pulseaudio --high-priority=1 -v
Native pulseaudio client
In the first test we use a native pulseaudio client to play a sound (paplay is included in pulseaudio-utils)
paplay soundfile.wav
Some rather bad numbers:
- top shows a cpu usage of ~2.6% and a memory usage of ~1.2 when not in use
- when playing a soundfile with paplay, cpu usage is 7% to 10% and memory usage 1.7
In this case, the pulseaudio server is running using a sampling rate of only 44100 Hz.
In other words, it sucks up resources when not doing anything and it sucks up even more when asked to do something.
Gstreamer Applications
Applications using the GStreamer media framework can make use of the PulseAudio through gst-pulse, the PulseAudio plugin for GStreamer. You need to install the gstreamer-plugins-pulse in order to use them. Otherwise applications based on the gstreamer framework will be using the alsa plugin in pulseaudio. You will have to enable it as default sink after installing it using the GConf[GConf] keys.
gconftool -t string --set /system/gstreamer/0.10/default/audiosink pulsesink gconftool -t string --set /system/gstreamer/0.10/default/audiosrc pulsesrc
You can use the python gstreamer bindings to play a soundfile on the pulseaudio server. Since clicks where noticed I went through the following setups.
- gst-launch | wav with 44k and 22k | no pulseaudio | no noticable clicks - gst-launch | wav with 44k | pulseaudio at 44k | sounds stops during playback, gst-launch stops - gst-launch | wav with 22k | pulseaudio at 44k | sounds interrupts during playback, gst-launch finishs after some time - gst-launch | wav with 44k | pulseaudio at 22k | clicks, pulseaudio terminates, gst-launch-0.10: pcm_pulse.c:193: pulse_pointer: Assertion `pcm->stream' failed. - aplay | wav with 44k | pulseaudio at 22k | no clicks but gets pulseaudio to terminate after some seconds - gst-launch | wav with 22k | pulseaudio at 22k | small clicks, most of the times at the beginning - aplay | wav with 22k | pulseaudio at 22k | without any problem
Another test was to play an ogg vorbis file with the gstreamer faclities.
gst-launch | ogg with 22k | pulseaudio at 22k | same as with wav files - small clicks, most of the times at the beginning
command used:
gst-launch-0.10 filesrc location=/home/olpc/tone.ogg ! oggdemux ! vorbisdec ! audioconvert ! alsasink gst-launch-0.10 filesrc location=/home/olpc/tone.ogg ! oggdemux ! vorbisdec ! audioconvert ! pulsesink gst-launch filesrc location=guitcello.wav ! wavparse ! alsasink
I tried to changing the buffer settings of pulseaudio (i.e. to the default ones):
add-autoload-sink output module-alsa-sink device=plughw:0,0 rate=22050 sink_name=output fragments=12 fragment_size=1024
and was playing with the buffer sizes of gstreamer but had no luck on getting a result without clicks.
ALSA Applications
To setup pulseaudio to work for alsa applications you have to put these lines into /etc/asound.conf.
# This following device can fool some applications into using pulseaudio pcm.dsp2 { type plug slave.pcm "pulse" } pcm.pulse { type pulse } ctl.pulse { type pulse } pcm.!default { type pulse } ctl.!default { type pulse }
and you need to install the alsa-plugins. I could not find an rpm for Fedora that is why I build and installed the plugins by hand. You can find the sources here: alsa-plugins To test the result I used aplay.
aplay -Dpulse soundfile.wav
The pulseaudio server is running using a sampling rate of 44100Hz.
Csound
You can run csound as a pulseaudio client as well. To make this work on the XO you have to use big enough buffer sizes (-b -B options).
csound -+rtaudio=alsa -odac:plug:pulse -m0 -d -b1024 -B4096 bilbar.csd
The one channel piece bilbar.csd does run (without using pulseaudio) on the XO when bringing the sampling rate of csound down. When running at 44100Hz we get some 'hickups'. It runs fine at a sr of 22050Hz. Playing the piece while csound is connected to the pulseaudio server (the server is running at 44100Hz) csound glitches and hungs so that you have to kill it manually. This is csound using sr=44100 and sr=22050.
When running csound with 22k and pulseaudio with 44k resampling is needed which I found out to be problematic on the XO - at least with csound. Playing a soundfile of 22kHz using aplay while the server is running at 44kHz is fine. When csound and the pulseaudio server using sr=22050 it will play fine as well.
Memosono
Another test was to run memosono (which uses csound to play soundfiles) as a pulseaudio client. The csound instance of memosono runs at 22050Hz. When running the pulseaudio server at 44100Hz I got clicks, that is why I run the server at 22050Hz as well. I guess resampling is the bottle neck here. You can do this by adding these two lines into your default.pa and uncommenting the HAL detection.
add-autoload-sink output module-alsa-sink device=plughw:0,0 rate=22050 sink_name=output set-default-sink output
Running pulseaudio without the high-priority option resulted in clicks when moving the mouse over the window while sound was playing. With the option enabled I could switch back and forth between views without interruption.
Pygame (sdl_mixer)
You can play back an ogg vorbis file and many other formats using the sdl_mixer of pygame [, pygame]. As seen in other tests you should run pulseaudio and the client at the same sampling rate. And in this case you had to trim them down to 22k in order to make it sound good. You avoid some small clicks if you set the buffersize to 2048 samples. Now when running the pulseaudio server with higher priority we do not get any clicks.
import time import pygame.mixer pygame.mixer.init(22050, -16, True, 2048) sound = pygame.mixer.Sound('/home/olpc/guitcello.ogg') sound.play() time.sleep(6) pygame.mixer.quit()
More on the sdl_mixer can be found here: [, pygame mixer]
Networking
I was able to send audio data to the XO and from the XO to another machine running the pulseaudio server.
XO aplay file 44k | -> | laptop pulseaudio 44k | result=good XO aplay file 22k | -> | laptop pulseaudio 44k | result=good XO paplay 44k | -> | laptop pulseaudio 44k | result=good XO paplay 22k | -> | laptop pulseaudio 44k | result=good
XO csound 44k | -> | laptop pulseaudio 44k | result=unacceptable XO csound 44k | -> | laptop pulseaudio 44k | result=a bit glitchy
XO pulseaudio 44k | <- | laptop aplay 44k | result=good XO pulseaudio 44k | <- | laptop aplay 22k | result=good XO pulseaudio 44k | <- | laptop paplay 44k | result=good XO pulseaudio 44k | <- | laptop paplay 22k | result=good
To stream audio data from one machine running pulseaudio to another machine you need to setup a few things. To be anounced of available pulseaudio servers on the network you need to install the pulseaudio-module-zeroconf and enable it in your pulseaudio configuration. Add the following line to /etc/pulse/default.pa to do so.
load-module module-zeroconf-publish
You need to enable those two modules in your /etc/pulse/default.pa (of the machine you want to send to) as well. Otherwise you might be prompted for "Connection failure: Connection refused" when trying to send audio data with paplay for example. These settings can be done with the configuration tool parefs as well.
load-module module-esound-protocol-tcp load-module module-native-protocol-tcp
You can run padevchooser to control the pulseaudio server. This tool will prompt you when a new server on the network has been discovered. You can set the Default Sink and the Default Source here. The discovered pulseaudio servers will be listed in the list of available Sinks and Sources.
Once you selected your Sink you can try to play a sound. It is likely that you will be prompted for an "access denied error". With aplay you get the following error.
***. | http://wiki.laptop.org/go/PulseAudio | CC-MAIN-2015-06 | refinedweb | 1,797 | 64.51 |
Python Interface to GrADS
Contents
- 1 Overview
- 2 Getting Started: Downloading and Installing
- 3 Examples and Tutorials
- 4 Additional References
- 5 Platform Specific Notes
The Python interface to GrADS is an alternative method of scripting GrADS that can take advantage of the unique capabilities of Python, and gives you access to a wealth of numerical and scientific software available for this platform. Here are few reasons for scripting GrADS in Python:
- You are an experienced Python programmer new to GrADS and do not want to spend the time learning a new scripting language.
- You need some GrADS functionality inside your regular Python script, say, parse the contents of a GrADS readable dataset or want to store your metadata in a mySQL database.
- You want to query your OPeNDAP server and figure out which is the latest forecast available before actually opening the dataset.
- You would like to use TKinter or any other toolkit to write a Graphical User Interface for GrADS from within Python.
- Your script is getting too complex and you could use an object oriented approach to better organize and reuse your code.
- You would like to explore GrADS ability to slice and dice a meteorological dataset or OpenDAP URL, but prefer to use Matplotlib/PyLab to perform further analysis and visualization of your dataset.
The Python interface to GrADS, which is similar to the Perl interface, enables full scripting capability for GrADS in Python, and can be used together with the classic GrADS scripting language.
Overview[edit]
The Python interface to GrADS is implemented in package grads which contains the following modules:
- gacore
- The module gacore provides the basic GrADS client class which allows you to start GrADS, send commands to it and to retrieve the text output produced by GrADS in response to such command. This is a Pure Python module, although it requires the GrADS binaries to have been installed on your system.
- ganum
- If you have NumPy installed, the module ganum will be loaded. This module extends the GrADS client class in gacore by providing methods for exchanging n-dimensional NumPy array data between Python and GrADS. It also provides methods for computing EOFs and least square estimation.
- galab
- If PyLab/Matplotlib/Basemap is available, the module galab is loaded. This module adds Matplotlib/Basemap specific methods for contours, images and other graphical functionality. This class provides high level methods operating directly on GrADS expressions (or fields) while retaining all the configurability that Matplotlib has to offer.
- gahandle
- This module provides a simple container class to collect output for query() operations.
- gacm
- This modules provides additional colormaps, as well as an extension of the Colormaps class which allows for the definition of color look-up takes with an alpha channel. It also extends the LinearSegmentedColormap with the ability of create derived color tables which are either reversed or provide an arbitrary scaling by means of a lambda function.
- numtypes
- This module defines GaField, a class for representing GrADS variables in Python. It consists of a NumPy masked array with a grid containing coordinate/dimension information attached to it.
The grads Package at a Glance[edit]
The GrADS client class provided in gacore allows you to start any of the GrADS executables ( grads, gradsnc, gradshdf, gradsdods, gradsdap ), send commands to it, and retrieve its standard output. Here is a simple example
from grads.gacore import GaCore ga = GaCore(Bin='gradsnc') fh = ga.open("model.nc") ga("display ps")
If you have NumPy installed, you can exchange array data between GrADS and python with module ganum,
from grads.ganum import GaNum ga = GaNum(Bin='gradsnc') ts = ga.exp("ts") # export variable ts from GrADS ts = ts - 273 # convert ts to Celsius ga.imp("tc",ts) # send the NumPy array to GrADS ga("display tc") # display the just imported variable
If you have Matplotlib installed you can do the plotting in python. For example you can produce a simple contour plot of the tc above with the commands.
from pylab import contourf contourf(ts.grid.lon,ts.grid.lat,tc)
In addition, when the Matplotlib/Basemap toolkit is available the module galab provides methods to display your data with a map background, and provides a wealth of map transformations useful for display satellite imagery.
from grads.galab import GaLab ga = GaLab(Bin='gradsnc') ga.blue_marble('on') ga("set lon -180 180) ga.contour('ua') title('Zonal Wind')
Indeed, the combination of GrADS/Matplotlib/PyLab is a very powerfull one. In addition, the numerical capabilities of NumPy allows one to extend the GrADS capabilties in areas such statistical data analysis. As a proof of concept we have implement a method of computing empirical ortoghonal functions. Here is a simple example:
ga.open("slp.nc") ga("set t 1 41") v, d, pc = ga.eof('slp')
where v contains the eigenvectors, d the eigenvalues and pc the principal components (EOF coefficients). These eigenvectors can be displayed with GrADS or Matplotlib. A method for computation of multiple regression is also available. For additional information, consult the grads package Reference Manual.
IPython Based Interactive Shell[edit]
IPython is an enhanced Python shell designed for efficient interactive work. It includes many enhancements over the default Python shell, including the ability for controlling interactively all major GUI toolkits in a non-blocking manner. The script pygrads is a wrapper script which starts IPython with a number of aliases and customizations convenient for interactive GrADS work. In particular, it starts PyLab bringing together all the GrADS and Matplotlib capabilities. Here is a sample pygrads session
[] ga-> xx ts # export ts [] ga-> ts = ts - 273 # convert to Celsius [] ga-> c # clear the screen [] ga-> sh # shortcut for "set gxout shaded' [] ga-> dd ts # import modiefied ts into Grads and display it [] ga-> cb # add a color bar [] ga-> . draw title Surface Temperature (Celsius)
For additonal information on pygrads consult the PyGrADS Interactive Shell documentation.
Using PyGrADS with Jython and IronPython[edit]
Jython is an implementation of the Python language written in 100% Pure Java. Jython scripts can access Java classes, the same way Java programs can access Jython classes. However, any Python extension written in C cannot be run under Jython. Although PyGrADS is written in 100% Python, some of its dependencies are not. For this reason only the gacore module works under Jython. It is conceivable that the JNumeric package could be used for implementing a Jython compatible version of ganum. The VisAD Java component library could provide some of the display capabilities that Matplotlib offers under CPython.
As of this writing, gacore has been shown to run under Jython v2.2.1, with the very basic jython shell. Currently, the Jython development team is working on Jython 2.5, an upgrade that will likely permit the interactive shell IPython to run under it. A new package called JyGrADS, which is based on the PyGrADS sources, includes additional Java and Matlab classes allowing a GrADS interface from these languages. JyGrADS also includes a self contained jar (Java Archive) containing Jython, PyGrADS and support Java classes.
IronPython is an implementation of the Python language running under Microsoft's .NET framework. As of this writing I am not aware of any attempt to run PyGrADS under IronPython, but I would be interested in hearing about it. Please drop a note at the open-discussion forum if you have tried PyGrADS under IronPython, or whether you would like to develop something similar to JyGrADS but for .NET.
Getting Started: Downloading and Installing[edit]
Requirements[edit]
For the basic functionality provided by module gacore you need the following
- Python Version 2.3 or later, or Jython
- GrADS. Either
- Version 1.9.0-rc1 or later, or any OpenGrADS release. It does not work with v1.9b4
- Version 2.0.a3 or later. For previous versions of GrADS 2.0 only the basic class GaCore works.
If you would like GrADS to exchange array data with Python, module ganum requires
- For exporting n-dimensional arrays from GrADS you will need:
- For importing/exporting data from GrADS you will need in addition:
- GrADS extension libipc. See the User Defined Extensions documentation for information.
For high quality graphics in Python, including map backgrounds and transformations,
- Matplotlib
- Basemap Tookit for Matplotlib
If you will be working with satellite images it is recommended that you install
The additional color tables provided by module gacm require both Matplotlib and PIL. And finally, it is highly recommended that you also install
for a more enjoyable interactive experience. Although not a requirement, the following package is highly recommended:
These packages are available for most Linux distributions, MacOS X and Microsoft Windows, as well as in many flavors of Unix. Consult the Platform Specific Notes for additional information.
When you import package grads the following attributes are defined, depending on which of the modules were successfully imported: HAS_GALAB, HAS_GANUM, HAS_GACM. An ImportError exception will be raised if gacore cannot be imported. Therefore, provided you have Python or Jython installed you will always have the functionality to start GrADS and interact with it. Whether you will have the extra functionality to exchange array data with GrADS and do your plotting in Python will depend on the other packages you have installed on your python environment. When you import the package grads, the class GrADS is aliaded to GaLab if galab can be imported, otherwise it is aliased to GaNum. Failing that, GrADS is aliased to GaCore. Use the HAS_* attributes to determine which functionality is available to you.
Downloading the software and sample datasets[edit]
The PyGrADS modules can be downloaded from the OpenGrADS download area at SourceForge. Examples datasets and satellite images are included in the tarball.
VERY IMPORTANT[edit]
You will need at least PyGrADS 1.1.0 (released in the Summer of 2008) for Matplotlib v0.98.1 and later. Use Matplotlib v0.91.x with PyGrADS v1.0.8 and earlier.
Installation[edit]
The official Python installation guide can be found at Installing Python Modules. A brief summary is presented here.
Microsoft Windows[edit]
There are 3 Win32 related packages in the download area:
- a) pygrads-x.y.z.win32_superpack.exe
- This is your best choice if you have no Python whatsoever installed on your Windows box and would like to get started with Python and PyGrADS. This self installing package has Python 2.5 proper, as well as PyGrADS itself and all the dependencies you need for a fully functional PyGrADS. Installation of each package is optional, so you can use this installation option if you need to install just some of the required packages. Important: If you install "basemaps" be sure to install "httplib2" as well, also included in the superpack; at this point the installer does not enforce this.
- b) pygrads-x.y.z.win32.exe
- Now, if you have Python 2.5 and the other required packages already installed on your Windows box, you can install PyGrADS only with this self installing file. No dependencies are provided.
- c) pygrads-x.y.z.tar.gz
- Or else, get this tarball and do a standard python install (see next subsection). Note that PyGrADS is 100% pure Python, so no compilation is necessary. Again, you will need the dependencies for full functionality, though.
Linux, Mac OS X and Unix[edit]
- a) If you have administrative privileges
-
- Install it the usual way
% tar xvfz pygrads-x.y.z.tar.gz % cd pygrads-x.y.z % python setup.py install
- b) As a regular user
-
- Install it anywhere you have write permission, using the options --prefix or --home to specify the directory base name:
% python setup.py install --prefix=/path/to/some/dir
setting the environment variable PYTHONPATH to point to the location of your Python scripts. For example, to install it off your home directory:
% python setup.py install --home=$HOME
In this case, two directories will be created (if they do not exist already), and the PyGraDS files installed there:
$HOME/bin pygrads $HOME/lib/python2.5/site-packages grads/ ipygrads.py etc.
(The python2.5 in the directory name above may vary from system to system depending on your installed Python version.) For this example, you will need set the following environment variables; if using bash and variants:
% export PATH=$HOME/bin:$PATH % export PYTHONPATH=$HOME/lib/python2.5/site-packages:$PYTHONPATH
or with the csh and variants:
% setenv PATH $HOME/bin:$PATH % setenv PYTHONPATH $HOME/lib/python2.5/site-packages:$PYTHONPATH
(Do not include $PYTHONPATH after the : if it complains that $PYTHONPATH is not defined.)
For additional information,
% python setup.py --help
Checking your Installation[edit]
a) First things first: is GrADS working?[edit]
Before everything make sure you have a functioning GrADS installation:
% cd data % grads -u ga> sdfopen model.nc ga> display ts
You should see a contour plot of surface temperature. If you intend to import data back into GrADS using GaNum, make sure the IPC extension is functioning:
ga> q udct
This should list:
ipc_verb ---> cmd_Verb() from <libipc.gex.so> ipc_open ---> cmd_Open() from <libipc.gex.so> ipc_close ---> cmd_Close() from <libipc.gex.so> ipc_save ---> cmd_Save() from <libipc.gex.so> ipc_define ---> cmd_Define() from <libipc.gex.so> ipc_error ---> cmd_Error() from <libipc.gex.so>
If not, make sure you have installed the IPC extension and that your GAUDXT environment variable is set properly. To actually test the IPC extension type
ga> ipc_save ts ts.bin
This should create a binary file called ts.bin of size 14 kilobytes. If ipc_save cannot find libipc.gex.so, make sure you have set your LD_LIBRARY_PATH environment variable appropriately. For more information consult the User Defined Extensions documentation.
b) Running the examples[edit]
First check the core functionality:
% cd examples % ./gacore_examples.py | grep OK
If you have NumPy installed you can check your installation by running the ganum_examples
% ./ganum_examples.py # will produce a bunch of PNG images % animate -delay 300 *.png # you can use ImageMagick to look at them
Likewise, if you have Matplotlib with the basemaps installed you can run the galab_examples
% rm *.png # remove images from previous examples % ./galab_examples.py # will produce a bunch of PNG images % animate -delay 300 *.png # you can use ImageMagick animate to look at them
The output of these examples can be found at GaNum Examples and GaLab Examples.
Win32 Tip: You need to download the tarball pygrads-x.x.x.tar.gz for getting the example files. Once you untar the this file, open a cmd.exe window and type something like this:
cd \some\path\pygrads-x.x.x\examples c:\python25\python ganum_examples.py c:\python25\python galab_examples.py
taking a look at the output PNG files. You can also open the examples folder with Windows Explorer and click on galab_examples to run it.
Examples and Tutorials[edit]
- Examples:
- GaCore Examples: Basic functionality
- GaNum Examples: Exchanging data with Python and some basic numerical computations
- GaLab Examples: Matplotlib/Basemap related examples
- PyGrADS Interactive Shell
- GrADS Tutorial Using PyGrads
- The PyGrADS Cookbook
Additional References[edit]
- Python Tutorial. Start here is you are new to Python.
- The Programming Python Wikibook is also a good starting point, with lots of additional references.
- The grads Python Package Reference Manual. Here you will find the doc strings for all the available classes.
- PyGrADS Interactive Shell documentation
- Matplotlib Tutorial is a good reference for getting started with the Matlab-like features in Python. In particular look at the Documentation links on this page.
- Matplotlib User's Guide in pdf, a more in-depth introduction to Matplotlib.
Platform Specific Notes[edit]
These section summarizes the experience of users installing PyGrADS on different platforms. Please help us keep this page complete and up to date. Drop us a note at the Open Discussion forum if you would like to make a contribution.
Microsoft Windows[edit]
Your best option is to install the PyGrADS Superpack. During installation you have the chance to install Python itself and all the dependencies or only the dependencies you don't have. Remember that the PyGrADS Superpack does not include the Win32 GrADS binaries, you will need to download and install it separately from Sourceforge.
Mac OS X[edit]
Arlindo da Silva has had good luck with the Mac OS X binaries from svn from Chris Fonnesbeck's page.
- Make sure you are using OSX 10.5 Leopard's preinstalled Python 2.5.1, ActivePython 2.5 or MacPython 2.5. Note: The Superpack's version detection may fail with other Python distributions (e.g., fink, Darwin Ports), and it will refuse to install.
- Download the SciPy Superpack for Python 2.5
- NumPy is included in the Superpack. For best compatibility, make sure you use the version in the Superpack.
- Note that the Chris Fonnesbeck's Superpacks are based on recent SVN code, and not the latest official release.
Important Update: Quoting from Chris Fonnesbeck site:
A recent post on the Enthought Blog announces the availability of the Enthought Python Distribution (EPD) for OSX. Previously only available on Windows, the EPD is a “batteries-included” distribution of Python, geared toward scientific applications. This distro includes the following essentials:
-
These sorts of bundles are very attractive for scientists that would rather not invest the time in compiling each of these packages from scratch, particularly in the case of the visualisation packages, which can be rather fussy to build.
Red Hat Enterprise Linux/Cent OS[edit]. RPMS can be found at this URL
The following packages are needed by PyGrADS:
- python-matplotlib
- python-matplotlib-tk
- python-basemap
- python-basemap-data
I have not found *ipython* and the *Python Imaging Library* (PIL) on the EPEL repository. However, Dag Wieers maintains another repository () where you can find these packages:
- ipython
- python-imaging
(I am not sure if you can combine packages from these repositories; let me know either way so that I can update this page; dasilva@opengrads.org)
Ubuntu[edit]
Numpy, Matplotlib and PIL (Python Imaging Library) are available through the Synaptic Package Manager. However, the required Basemap package is not, and you will need to build it from sources. Make sure your Basemap version is compatible with your Numpy/Matplotlib: you'll need Basemap 0.99 to use with Matplotlib 0.98; with Ubuntu 8.04 and earlier you will need Basemap v0.98 since it uses an earlier Matplotlib. Before installing Basemap from sources, make sure to install the libgeos package from Synaptic (or using apt-get at the command line) or else build it from sources - it is bundled with the Basemap sources.
FreeBSD[edit]
The Ports subsystem has all the required dependencies. Make sure to install the following packages:
- py-matplotlib
- py-basemap
- py-basemap-data
- py-imaging
Under Desktop BSD you can use the Package Manager under the KDE [Main Menu]/[System]/[Software Management] to search for and install these packages. | http://wiki.opengrads.org/index.php?title=Python_Interface_to_GrADS&oldid=167015 | CC-MAIN-2019-30 | refinedweb | 3,123 | 56.25 |
Incrementing and Decrementing in the C Language
The C language is full of shortcuts, and they're wonderful things. First, they save you typing time. More importantly, the shortcuts let you express some ideas in quick yet fun and cryptic ways, which is okay; C programmers can still read your code — no problem.
Two common C shortcuts are ++ and --, which are used for incrementing (adding one to) and decrementing (subtracting one from), respectively.
Incrementing with ++
Often in programming, you come across a situation where a value needs to be incremented: Whatever the value is, you have to add 1 to it. This happens a lot in loops, but it can occur elsewhere in programs as well.
For example, you have variable count and you need to add 1 to its value. You can do it like so:
count = count + 1;
Because C works out the math first, the current value of count is incremented by 1. Then that new value is stored in the count variable. So, if count now equals 6, count + 1 results in 7, and 7 is then stored back into the count variable. count then equals 7.
But you can build the code more compactly like this:
count++;
The ++ operator tells the computer to increment the value of count by 1. Whatever the value of count was, it's now one greater, thanks to ++. Here's a demo program:
#include <stdio.h> int main() { int age; printf("Enter your age in years:"); scanf("%d",&age); printf("You are %d years old.\n",age); age++; printf("In one year you'll be %d.\n",age); return(0); }
Type this into your editor, save the source code to disk, compile, and run. You should see this prompt:
Enter your age in years:
If you enter 24 (which is generally a good age to be), your program will return the following:
You are 24 years old. In one year you'll be 25.
The value of the variable age is changed by age++. That's incrementation!
Decrementing with --
To keep the world in harmonic balance, a -- operator counters the ++ operator in C. It decrements, or subtracts 1, from the variable it modifies. For example:
count--;
This statement subtracts one from the value of variable count. It's the same as
count = count - 1;
You can make just a couple changes to the previous source code to see -- in action:
#include <stdio.h> int main() { int age; printf("Enter your age in years:"); scanf("%d",&age); printf("You are %d years old.\n",age); age--; printf("One year ago, you were %d.\n",age); return(0); }
Notice the changes in both Line 10 and 11. Save, compile, and run. If you again enter 24 as your age (and wouldn't we all like to stay at 24?), you should get this result:
You are 24 years old. One year ago, you were 23. | http://www.dummies.com/how-to/content/incrementing-and-decrementing-in-the-c-language.navId-323181.html | CC-MAIN-2015-18 | refinedweb | 483 | 82.04 |
Exceptions
An
exception is an error in the program that occurs at run time. It disrupts the normal flow of the program's instructions.
When an error occurs, an
exception object is created by the calling method. An exception is a java object that derives from the
Throwable class.
Creating an exception object and handing it off to the runtime system is called
throwing an exception.
Here is a simple program that throws an exception after we try to read outside the bounds of the array :
package edu.self; public class Main { public static void main(String[] args) { loop(); } static void loop(){ String[] groups = {"Java", "C#", "JavaScript", "Ruby", "Haskell"}; for (int i = 0; i <= groups.length; i++) { System.out.println(groups[i]); //will throw an exception when i == 5 } } }
and here is the screen shot from an IDE showing the
call stack :
1 - The
main method was called first
2 - The
main method then called the
loop method.
The stack is a
LIFO(Last-In-First-Out), the last method to be called will be on top of the stack. When an error occurs, the runtime system unwinds the call stack, looking for a method that can handle the error.
The set of possible "somethings" to handle the exception is the ordered list of methods that had been called to get to the method where the error occurred. The set of methods is called reverse order in which the methods were called. When an appropriate handler is found, the runtime system passes the exception to the handler.
The exception handler chosen is said to
catch the exception. If the runtime system exhaustively searches all the methods on the call stack without finding an appropriate exception handler, the runtime system(and, consequently, the program) terminates. This is also called
crashing. | https://java-book.peruzal.com/exceptions/exceptions.html | CC-MAIN-2018-22 | refinedweb | 299 | 62.88 |
Let’s get started.
wxMiniFrame
Our first stop is wxMiniFrame. It is basically a frame with a short title bar at the top, rather than the large one that wxFrame displays. While entire applications will definitely look strange in a wxMiniFrame, small windows that must stay out of the user’s way can be made with wxMiniFrame. Let’s take a look:
from wxPython.wx import *
class Window ( wxMiniFrame ):
def __init__ ( self ):
# No suprises here
# We only use a different class
wxMiniFrame.__init__ ( self, None, -1, ‘A Small Frame’ )
# Create a panel
self.panel = wxPanel ( self, -1 )
# Create a wxCheckBox
self.check = wxCheckBox ( self.panel, -1, ‘This is a wxMiniFrame’, pos = ( 10, 10 ) )
# No suprises here, either
self.Show ( True )
application = wxPySimpleApp()
Window()
application.MainLoop()
The wxMiniFrame class features nothing else worth mentioning. It’s nothing more than a small frame. Let’s move on to something else.
{mospagebreak title=wxDialog}
We’ve looked at dialogs several times so far, but what if we need to create our own dialog? By using the wxDialog class, we are able to do so. Let’s create a dialog based on wxDialog that displays four radio buttons, asking the user to choose his or her favorite candidate. Additionally, we’ll give our dialog a parent window:
from wxPython.wx import *
# Subclass wxDialog to create a dialog
class BallotDialog ( wxDialog ):
def __init__ ( self, parent ):
# Call wxDialog’s __init__ method
wxDialog.__init__ ( self, parent, -1, ‘Ballot’, size = ( 200, 200 ) )
# Create a panel for our dialog
self.panel = wxPanel ( self, -1 )
# Create a label
self.label = wxStaticText ( self.panel, -1, ‘Please choose a candidate:’ )
# Create four radio buttons
self.candidate1 = wxRadioButton ( self.panel, -1, ‘R.Q. Peters’, style = wxRB_GROUP )
self.candidate2 = wxRadioButton ( self.panel, -1, ‘P.M. Roger’ )
self.candidate3 = wxRadioButton ( self.panel, -1, ‘T.A. Waters’ )
self.candidate4 = wxRadioButton ( self.panel, -1, ‘M.W. Wise’ )
# Create a button
self.button = wxButton ( self.panel, 100, ‘Submit Ballot’ )
# Link a button click to a method that destroys
EVT_BUTTON ( self.panel, 100, self.click )
# Put everything in a wxBoxSizer
self.sizer = wxBoxSizer ( wxVERTICAL )
self.sizer.Add ( ( 200, 5 ), 0 )
self.sizer.Add ( self.label, 0, wxALIGN_CENTER )
self.sizer.Add ( ( 5, 5 ), 0 )
self.sizer.Add ( self.candidate1, 0, wxALIGN_CENTER )
self.sizer.Add ( ( 5, 5 ), 0 )
self.sizer.Add ( self.candidate2, 0, wxALIGN_CENTER )
self.sizer.Add ( ( 5, 5 ), 0 )
self.sizer.Add ( self.candidate3, 0, wxALIGN_CENTER )
self.sizer.Add ( ( 5, 5 ), 0 )
self.sizer.Add ( self.candidate4, )
# Handles a click to the button
def click ( self, event ):
self.EndModal ( wxID_OK )
# Create a window
class Window ( wxFrame ):
def __init__ ( self ):
wxFrame.__init__ ( self, None, -1, ‘Parent Window’ )
# Create a panel for the window
self.panel = wxPanel ( self, -1 )
# Add a wxTextCtrl
self.text = wxTextCtrl ( self.panel, -1 )
# Create the dialog
dialog = BallotDialog ( self )
# Show the window
self.Show ( True )
# Show the dialog ( AFTER we show the window )
dialog.ShowModal()
# Center the dialog
dialog.Center()
application = wxPySimpleApp()
Window()
application.MainLoop()
Try to type something in the wxTextCtrl on the window while the dialog is visible. It’s not possible. This is because of the ShowModal method. The ShowModal method creates a modal dialog, causing clicks to other windows to be ignored. In most cases, this behavior is ideal. However, if you do not want this behavior, make a modeless dialog by using the Show method.
Another thing I would like to shed light on is the EndModal method of wxDialog. This exits the dialog and returns the value specified. In this case, we return wxID_OK. Alternatively, you can set the value you will return with SetReturnCode, which works with Show.
An interesting feature of wxDialog is the ability to put the dialog in help mode when using Windows. I’m sure you’ve seen this feature in other applications. By pressing a button at the top of the dialog, your cursor will change, allowing you to click controls and learn more about them. To access this functionality, we have to create the dialog differently. We have to pre-create it. Fortunately, however, this is fairly simple. Let’s create an application that takes advantage of this special help functionality:
from wxPython.wx import *
class HelpDialog ( wxDialog ):
def __init__ ( self, parent ):
# Pre-create our dialog
preCreation = wxPreDialog()
# Set the wxDIALOG_EX_CONTEXTHELP style
# This allows for the help functionality
preCreation.SetExtraStyle ( wxDIALOG_EX_CONTEXTHELP )
# Create it
preCreation.Create ( parent, -1, ‘Help Dialog’ )
# Do post-creation
# This is required to get our dialog working
self.PostCreate ( preCreation )
# Set the help provider
# This is necessary to display anything
wxHelpProvider_Set ( wxSimpleHelpProvider() )
# Create a panel
self.panel = wxPanel ( self, -1 )
# Create a wxTextCtrl
self.text = wxTextCtrl ( self.panel, -1 )
# Set the help text
self.text.SetHelpText ( ‘Nice, huh?’ )
# Create a wxButton
self.button = wxButton ( self.panel, -1, ‘Just A Button’ )
# Set the help text
self.button.SetHelpText ( ‘Yes, very nice.’ )
# Add our controls to a sizer
self.sizer = wxBoxSizer ( wxVERTICAL )
self.sizer.Add ( ( 200, 5 ), 0 )
self.sizer.Add ( self.text, )
application = wxPySimpleApp()
dialog = HelpDialog ( None )
dialog.ShowModal()
{mospagebreak title=wxWizard}
We’ve all seen wizards in all sorts of applications. They exist to make tasks easy. They are found in installers, graphics programs and even wxPython. Using the wizard module, we can create wizards to use in our applications, making them even more user-friendly. Best of all, these wizards are pretty easy to create. Here’s a very simple dummy wizard:
from wxPython.wx import *
# The wizard-related classes are here:
from wxPython.wizard import *
application = wxPySimpleApp()
# Create a wizard with the title “A Wizard”
wizard = wxWizard ( None, -1, ‘A Wizard’ )
# Create three pages for the wizard
# This is very simple
wizardPage1 = wxWizardPageSimple ( wizard )
wizardPage2 = wxWizardPageSimple ( wizard )
wizardPage3 = wxWizardPageSimple ( wizard )
# Add a label to each page
label1 = wxStaticText ( wizardPage1, -1, ‘This is the first page.’ )
label2 = wxStaticText ( wizardPage2, -1, ‘This is the second page.’ )
label3 = wxStaticText ( wizardPage3, -1, ‘This is the third and final page.’ )
# Link the pages together
# 1 to 2 and 2 to 3
wxWizardPageSimple_Chain ( wizardPage1, wizardPage2 )
wxWizardPageSimple_Chain ( wizardPage2, wizardPage3 )
# Run the wizard and display a message if it was completed successfully
# Otherwise, yell at the user
if wizard.RunWizard ( wizardPage1 ):
dialog = wxMessageDialog ( None, ‘Wizard finished!’, ‘Finished’, style = wxOK )
dialog.ShowModal()
dialog.Destroy()
else:
dialog = wxMessageDialog ( None, ‘Grr!’, ‘Not Finished’, style = wxOK )
dialog.ShowModal()
dialog.Destroy()
# Destroy the wizard
wizard.Destroy()
There are more advanced and flexible methods for creating wizards, too. Let’s suppose we are creating an installer with two installation modes: minimal and full. Based on the user’s selection, we want to go to different sections of the wizard. This is completely possible, but it is done a little differently from the way we did it above:
from wxPython.wx import *
# Import the wizard-related data
from wxPython.wizard import *
# Create the wizard page that allows the use to select an installation type
# We wills subclass wxPyWizardPage here
class TypePage ( wxPyWizardPage ):
def __init__ ( self, parent ):
# Call __init__
wxPyWizardPage.__init__ ( self, parent )
# Specify None for the next and previous pages
self.next = None
self.previous = None
# Add a wxRadioBox that displays the two installation options
self.box = wxRadioBox ( self, -1, ‘Instalation Method’, choices = [ 'Minimal', 'Full' ] )
def GetNext ( self ):
# Return a value based on the radio buttons elected
if self.box.GetSelection() == 0:
return minimal
else:
return full
def GetPrev ( self ):
return self.previous
application = wxPySimpleApp()
# Create the wizard
wizard = wxWizard ( None, -1, ‘Installer’ )
# Create the installation type page
type = TypePage ( wizard )
# Create a page for the minimal mode
minimal = wxWizardPageSimple ( wizard )
minimalText = wxStaticText ( minimal, -1, ‘Poof. Your application has been installed minimally.’ )
# Create a page for the full mode
full = wxWizardPageSimple ( wizard )
fullText = wxStaticText ( full, -1, ‘Bang. Your application has been fully installed.’ )
# Create an additional page
register = wxWizardPageSimple ( wizard )
registerText = wxStaticText ( register, -1, ‘Please register your product online,nor we will keep nagging you.’ )
# Link the pages that have fixed links ( minimal and full )
minimal.SetNext ( register )
full.SetNext ( register )
# Run the wizard
wizard.RunWizard ( type )
# Destroy the wizard
wizard.Destroy()
If you feel inclined to do so, you can easily add an image to your wizard by creating it like this, where “wizard.PNG” is the name of the image:
wizard = wxWizard ( None, -1, ‘My Wizard’, wxBitmap ( ‘wizard.PNG’ )
{mospagebreak title=Multiple Document Interface}
Microsoft’s Multiple Document Interface, or MDI, allows a parent window to house multiple child windows. The wxPython library supports the Multiple Document Interface, and it is simple to include it in your applications:
from wxPython.wx import *
# Subclass wxMDIParentFrame
class Parent ( wxMDIParentFrame ):
def __init__ ( self ):
# Call __init__ and make the window big
wxMDIParentFrame.__init__ ( self, None, -1, “Multiple Document Interface Test”, size = ( 500, 500 ) )
# Create a menu that allows us to open new windows
windowMenu = wxMenu()
windowMenu.Append ( 1, ‘Open New’ )
# Create a menu bar and add the menu
menuBar = wxMenuBar()
menuBar.Append ( windowMenu, ‘Options’ )
self.SetMenuBar ( menuBar )
# Catch a menu click
EVT_MENU ( self, 1, self.openNew )
self.Show ( True )
# This method will add a window
def openNew ( self, event ):
# Create a child window
child = wxMDIChildFrame ( self, -1, ‘MDI Child’ )
# Give the child a panel
child.panel = wxPanel ( child, -1 )
child.panel.SetSize ( child.GetClientSize() )
# Add a label
child.label = wxStaticText ( child, -1, ‘I am only a child.’ )
child.Show ( True )
application = wxPySimpleApp()
Parent()
application.MainLoop()
Although the idea sounds complicated at first, wxPython makes it all extremely easy, requiring only a handful of code to create something basic like we did. Notice, too, that a “Window” menu is added to our application, giving us organization and navigation options.
The Multiple Document Interface is useful in some applications. Each window has the potential to be very different from the next window, too. It’s all up to your creativity.
Conclusion
The wxPython library offers more frames than just wxFrame. These frames are geared toward specific things, such as modal dialogs, modeless dialogs, wizards and organizing child windows within a large parent window. They enable you to extend your application’s capabilities with little effort, and, at the same time, give you a variety of complex options. They can be excellent additions to your applications, benefitting the end user and, in turn, you –- the developer. | http://www.devshed.com/c/a/python/alternative-frames-in-wxpython/3/ | CC-MAIN-2014-52 | refinedweb | 1,678 | 52.56 |
In this simple exercise from CodeWars, you will build a function program that takes a value, integer and returns a list of its multiples up to another value, limit. If the limit is a multiple of integer, it should be included as well. There will only ever be positive integers passed into the function, not consisting of 0. The limit will always be higher than the base.
For example, if the parameters passed are (2, 6), the function should return [2, 4, 6] as 2, 4, and 6 are the multiples of 2 up to 6.
Below is the solution, write down your own solution in the comment box.
def find_multiples(integer, limit): li = [] mul = 1 while(True): number = integer * mul mul += 1 if number <= limit: li.append(number) else: return li
The while loop will keep on running until the limit has been reached then the function will return the entire list.
Please follow and like us: | https://kibiwebgeek.com/return-a-list-of-multiply-numbers-with-python/ | CC-MAIN-2021-04 | refinedweb | 158 | 62.58 |
last minute fix is in place and the files uploaded, the new version
can be downloaded from both sourceforge's site and SEUL's ftp:
In the ftp, I moved the previous 0.7.1 version to the oldversions
directory to prevent confusion. Drop me an email if you have any furthr
problems compiling it.)
eboard 0.7.1 has just been released.
I just noticed one thing after releasing it, if you get compilation errors
on board.cc (about cerr, ios and endl being undeclared), edit stl.h
and add the line
using namespace std;
just above the using std::list; line. This problem was spotted on gcc
3.0.4. I apologize for the inconvenience, all machines I usually use for
testing compilations are servers and are with a quite high load right now,
so I skipped the tests this time. I'll upload a 0.7.1pl1 version with the
fix in half an hour or so.
The only change between 0.7.1 and 0.7.1pl1 will be that line.
Here goes the changelog since 0.7.0, have fun.
0.7.1
<warning: the translation files have not been updated since 0.7.0,
so new messages and new features will be displayed in english only.
I hope to update the translations soon>
* .
* [gcc3] Fixed iostream inclusions to compile without warnings
on gcc 3.2
* [all] Fixed a bug in the PGN parser. (PGN files that had
no newline char at the end of the last line would
make eboard crash). Thanks to Hicks@... <source,dest>.
.........................................................................
Felipe Paulo Guazzi Bergo - Computer Science MSc Student at Unicamp
bergo@... - Campinas - SP - Brazil - Earth
GPG/PGP mail welcome - GPG/PGP Key: EF8EE808 (keyserver pgp.mit.edu)
* Good thing the FCC makes them put those "Intel Inside" warning labels.
I agree to receive quotes, newsletters and other information from sourceforge.net and its partners regarding IT services and products. I understand that I can withdraw my consent at any time. Please refer to our Privacy Policy or Contact Us for more details | https://sourceforge.net/p/eboard/mailman/eboard-users/?viewmonth=200301&viewday=20 | CC-MAIN-2017-22 | refinedweb | 344 | 77.84 |
I have started using Xamarin plugin for Visual Studio to create an Android App.
I have a local sql database I want to call to display data. I don't see how I can do this. Is it possible?
After thinking this was a trivial thing to do, I was proven wrong when I tried setup a quick test project. This post will contain a full tutorial on setting up a DB for an Android App in Xamarin that will come in handy as a reference for future Xamarin users.
At a glance:
Start by going to this repository and downloading Sqlite.cs; this provides the Sqlite API that you can use to run queries against your db. Add the file to your project as a source file.
Next, get your DB and copy it into the Assets directory of your Android project and then import it into your project so that it appears beneath the Assets folder within your solution:
I'm using the Chinook_Sqlite.sqlite database sample renamed to db.sqlite from this site throughout this example.
Right click on the DB file and set it to build action
AndroidAsset. This will ensure that it is included into the assets directory of the APK.
As the DB is included as an Asset (packaged within the APK) you will need to extract it out.
You can do this with the following code:
string dbName = "db.sqlite"; string dbPath = Path.Combine (Android.OS.Environment.ExternalStorageDirectory.ToString (), dbName); // Check if your DB has already been extracted. if (!File.Exists(dbPath)) { using (BinaryReader br = new BinaryReader(Assets.Open(dbName))) { using (BinaryWriter bw = new BinaryWriter(new FileStream(dbPath, FileMode.Create))) { byte[] buffer = new byte[2048]; int len = 0; while ((len = br.Read(buffer, 0, buffer.Length)) > 0) { bw.Write (buffer, 0, len); } } } }
This extracts the DB as a binary file from the APK and places it into the system external storage path. Realistically the DB can go wherever you want, I've just chosen to stick it here.
I also read that Android has a databases folder that will store databases directly; I couldn't get it to work so I've just ran with this method of using an existing DB.
Now open a connection to the DB through the Sqlite.SqliteConnection class:
using (var conn = new SQLite.SQLiteConnection(dbPath)) { // Do stuff here... }
Lastly, as Sqlite.net is an ORM, you can operate on the database using your own data types:
public class Album { [PrimaryKey, AutoIncrement] public int AlbumId { get; set; } public string Title { get; set; } public int ArtistId { get; set; } } // Other code... using (var conn = new SQLite.SQLiteConnection(dbPath)) { var cmd = new SQLite.SQLiteCommand (conn); cmd.CommandText = "select * from Album"; var r = cmd.ExecuteQuery<Album> (); Console.Write (r); }
And that's how to add an existing Sqlite database to your Xamarin solution for Android! For more information check out the examples included with the Sqlite.net library, its unit tests and the examples in the Xamarin documentation. | https://codedump.io/share/iDGYvwvJ5Rf6/1/use-a-local-database-in-xamarin | CC-MAIN-2018-22 | refinedweb | 496 | 67.76 |
Well I didn't want to bring this to the sunlight so soon but since you brought up the issue:
I'm developing a generic non-blocking server framework for JDK 1.4.
It handles all subtleties of the non-blocking server's life, such as non-blocking pipes for
servlet output buffering, thread scaling (since a single selector handles at most 63 channels,
you still need multiple threads), channel registration from a different thread than the thread
that listens to the selector via a mechanism similar to Swing's invokeAndWait(), etc, etc.
Using this framework, all you need to do is implement a single ProtocolHandler interface and
focus your attention on the protocol implementation and not on the details of non-blocking
I/O.
The initial code is practically done, there is only one JUnit test left to pass. I've created
a project for it on SourceForge () *today* (see, it's
really fresh) and will upload the code there soon. The project is pretty much empty now, but
I'll populate the CVS and the introductory website in the following days. It will be distributed
under Apache-style license.
My primary goal for bringing the code in the public is that I want to build a HTTP/1.1 connector
for Tomcat 4.0 based on it, and could use a helping hand here and there. In fact, I already
have much of the code for building the HttpServletRequest object, but to keep it really elegant
I'll need some help from the Tomcat community. Most notably, much of the code duplications
could go away if Catalina code in org.apache.catalina.connectors.http was more reusable (some
classes are package-private and some public classes take package-private classes in a constructor
argument etc.). I'll return to these issues on this list after I've properly set up the project
on SourceForge.
I wanted to keep the whole project out of the spotlight until it's up and running, but since
you mentioned the issue, I thought you should know about similar efforts. Maybe you will want
to take a look at it; I can notify you when the SourceForge project site is ready.
Cheers,
Attila.
----- Original Message -----
From: "Mauricio Nuñez" <mnunez@maxmedia.cl>
To: <tomcat-dev@jakarta.apache.org>
Sent: 2002. január 8. 0:27
Subject: nbio connector
> Hi everybody!
>
> I'm using Tomcat 3.3 and Apache on Linux, and i want to develop a connector
> based on nbio ().
>
> My focus is get a multiplex connector based on few threads waiting
> connections, reducing the overhead on my server.
>
> Firstly, i will port the ajp13 interceptor, based on only 2 threads (i guess)
>
> The next step will be to migrate to java.nio, when Sun release a stable
> jdk1.4.
>
> Any comment?
> Can i submit my code here?
>
> I need to get a stable and scalable Tomcat on Linux. This work try to get
> that.
>
> Bye
>
> Mauricio Nuñez
> mnunez@maxmedia.cl
>
>
> --
> To unsubscribe, e-mail: <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>
>
> | http://mail-archives.apache.org/mod_mbox/tomcat-dev/200201.mbox/%3C010801c1984f$46480d50$8e00a8c0@pegasusii%3E | CC-MAIN-2017-34 | refinedweb | 519 | 64.71 |
hi - Friend.. Doubt on + - Java Beginners
}
}
Hi friend,
The Java language provides special support...Hi Friend.. Doubt on + Hi friend...
import java.io.*;
class Plus
{
public static void main(String args[])
{
int a=10;
int b= 25.. Doubt on + Hi friend...
import java.io.*;
class...
}
}
Hi friend,
import java.io.*;
class Plus{
public static...;java Plus
A = 10 B = 25 Plus = 1025..How to Display Days by month - Java Beginners
Hi..How to Display Days by month Hi Friend....
I have a doubt... to students....
..Thank u ..
Hi Prabhu g
I am sending... to you in solving your query regarding javad
Hi Friend ..Doubt on Exceptions - Java Beginners
Hi Friend ..Doubt on Exceptions Hi Friend...
Can u please send some Example program for Exceptions..
I want program for ArrayIndexOutOfbounds
OverFlow Exception..
Thanks...
Sakthi Hi friend,
Code
Hi .Difference between two Dates - Java Beginners
Hi .Difference between two Dates Hi Friend....
Thanks for ur Very good response..
Can u plz guide me the following Program....
difference... Separately...
Reply me ....
Thanku
Hi friend,
Code to solve
hi sakthi prasanna here - Java Beginners
hi sakthi prasanna here import java.lang.*;
import java.awt....) {
e.printStackTrace();
}
// TODO: handle exception
}}}
Hi friend...://
Thanks
Hi da SAKTHI ..check thiz - Java Beginners
Hi da SAKTHI ..check thiz package bio;//LEAVE IT
import java.lang.... ");
}
}
}
Hi friend,
Plz give details of "MainMenu.java" to solve the problem :
pava program - Java Beginners
problem.
public class LeapYear {
public static void main (String[] args... {
System.out.println(year + " is not a Leap year.");
}
}
}
Hi... java streams (FileReader, FIleWriter,...) and allows creating and opening of new
Java for beginners
Java video tutorial for beginners.
Thanks
Hi,
Here are the best resources for Learning Java for beginners:
Java Video tutorial
Java tutorials...Java for beginners Java for beginners
Which is the best resource
Java for beginners - Java Beginners
Java for beginners Hi!
I would like to ask you the easiest way... or is there for me to know first before i start?
Thanx! Hi friend,
For java...://
Thanks | http://www.roseindia.net/tutorialhelp/comment/83220 | CC-MAIN-2015-11 | refinedweb | 335 | 71.31 |
Details
- Type:
Bug
- Status: Resolved
- Priority:
Critical
- Resolution: Fixed
- Affects Version/s: 2.0-refactoring, 2.0.0
- Fix Version/s: 2.0-refactoring, 2.0.0-M1, 2.0.0
- Component/s: descriptor
- Labels:None
Description
The current Portlet 1.0 and Portlet 2.0 JAXB descriptor api is an ackward merge of both namespaces in one object model.
While this did seem to "work" more or less correct, when testing it more thoroughly it complete blew to pieces ...
JAXB really cannot properly handle two namespaces blended on top of a single object model, it uses java packaging to map namespaces.
And while you can have multiple fields mapped to multiple namespaces in one bean, one cannot do the same with one class: you really need to duplicate the classes to support multiple namespaces.
This really becomes clear as soon as you try to actually write out an JAXB managed object tree.
Using the current Pluto descriptor mapping this simply isn't possible to do without a corrupting the output or just exceptions thrown all over the place.
So, as we do need to have this managed properly, I have started out rewriting the whole JAXB mapping mostly from scratch again, now properly using two implementation packages for the two namespaces (portlet10 and portlet20).
As we already had extracted the descriptor api interfaces, the two new implementation packages both implement the most common denominator (e.g. portlet20) interface, where the portlet10 implementations throw an UnsupportedOperationException when trying to use portlet20 specific features (write and read methods).
As the JAXB jxc compiler generates classes based on the xsd type definitions, all *DD classes ended up to be called *Type now. I've kept it that way as the *DD classes are no longer directly used anyway (or at least shouldn't).
Finally, to be able to modify an JAXB loaded portlet10 or portlet20 descriptor model, while only dealing with the interfaces, a solution is needed for creating new instances of objects managed through lists, e.g. portletApp.getPortlets().add(Portlet).
For this purpose, I've created a new ElementFactoryList<E> extending ArrayList<E> which provides a factory method for creating new elements for itself: E ElementFactoryList<E>.newElement().
So, like for a org.apache.pluto.om.portlet.Portlet interface, you have to use: portletApp.getPortlets().add(portletApp.getPortlets().newElement()).
Activity
- All
- Work Log
- History
- Activity
- Transitions
If the object models are consistent enough so that they can implement the same interfaces used by pluto itself I'd expect that you could use the 2.0 jaxb tree and simply use a sax filter to change the namespace for portlet 1.0 to that for portlet 2.0 as its being read in. Openejb does this a lot to read in any ejb deployment descriptor into the same jaxb model. If you're interested in pursuing this please point me to the xsds and code that reads a descriptor into jaxb.
Hi David,
The problem wasn't so much the reading in (which mostly worked OK, not 100% though), but the writing back out. JAXB has no proper way of telling which namespace and/or fields to use if you mix them together onto the same object model.
I've already rewritten it from scratch into two separate packages (mapping onto their xsd namespace) with one interface implemented by both and this works nicely now.
Reopening as the pluto container implementation actually requires that at runtime the descriptor model is portlet 2.0 based... even when a portlet 1.0 descriptor was loaded.
So, going to a third rewrite here, now providing a even more clean om interface api with now only 1 single implementation for the portlet 2.0.
For the portlet 1.0 descriptors, still a separate JAXB "struct" classes are used, but only for loading now.
If a portlet 1.0 model was loaded, it will be automatically "upgraded" to a full blown 2.0 model which implements the api interfaces.
And, for writing out, this can be done in reverse if the application version is still 1.0
I'd like to mention an important observation I made while refactoring the JAXB implementation classes properly:
The current implementation is not portlet 2.0 spec compliant, and based upon an outdated draft version...
For one, multi-langual support for Descriptor, DisplayName, etc. elements is not present, only a single description/displayName etc. is possible.
Portlet expirationCache definition was simplified near the end of specification period, but the current Pluto model still is based on the no longer valid old construct.
CustomPortalMode still has a decorationName field while that is no longer present in the final model.
EventDefinition model really is out-of-sync with the final xsd.
...
All the above issues are resolved by generation clean set of JAXB implementation classes based upon the final portlet-app_2_0.xsd | https://issues.apache.org/jira/browse/PLUTO-509 | CC-MAIN-2016-30 | refinedweb | 810 | 55.03 |
I have an SVG demo image that consist multiple circles that are clipping an animated GIF.
I have an SVG demo image that consist multiple circles that are clipping an animated GIF.
Is it possible to watch hover events for each individual circle as the user mouses over them? For example the top-left circle or the middle-right circle.
Also is it possible to manipulate color overlay on those circles as they are hovered?
img { clip-path: url(#myClip); width: 100%; } <img src="" alt="">
<svg width="0" height="0">
<defs>
<clipPath id="myClip" clipPathUnits="objectBoundingBox" transform="scale(0.00991, 0.01)">
<path d="M 63.369194,12.267001 A 12.607063,12.267001 0 0 1 50.762131,24.534002 12.607063,12.267001 0 0 1 38.155067,12.267001 12.607063,12.267001 0 0 1 50.762131,0 12.607063,12.267001 0 0 1 63.369194,12.267001 Z" />
<path d="M 100.85033,12.267001 A 12.607063,12.267001 0 0 1 88.243263,24.534002 12.607063,12.267001 0 0 1 75.6362,12.267001 12.607063,12.267001 0 0 1 88.243263,0 12.607063,12.267001 0 0 1 100.85033,12.267001 Z" />
<path d="M 25.894252,12.267001 A 12.607063,12.267001 0 0 1 13.287189,24.534002 12.607063,12.267001 0 0 1 0.68012524,12.267001 12.607063,12.267001 0 0 1 13.287189,0 12.607063,12.267001 0 0 1 25.894252,12.267001 Z" />
<path d="M 63.369194,49.877972 A 12.607063,12.267001 0 0 1 50.762131,62.144973 12.607063,12.267001 0 0 1 38.155067,49.877972 12.607063,12.267001 0 0 1 50.762131,37.61097 12.607063,12.267001 0 0 1 63.369194,49.877972 Z" />
<path d="M 25.214127,49.877972 A 12.607063,12.267001 0 0 1 12.607063,62.144973 12.607063,12.267001 0 0 1 0,49.877972 12.607063,12.267001 0 0 1 12.607063,37.61097 12.607063,12.267001 0 0 1 25.214127,49.877972 Z" />
<path d="M 25.214127,87.216888 A 12.607063,12.267001 0 0 1 12.607063,99.48389 12.607063,12.267001 0 0 1 0,87.216888 12.607063,12.267001 0 0 1 12.607063,74.949887 12.607063,12.267001 0 0 1 25.214127,87.216888 Z" />
</clipPath>
</defs>
</svg>
The validating phone number is an important point while validating an HTML form. In this post we have discussed how to validate a phone number (in different format) using JavaScript. Simply the validation will remove all non-digits and permit only phone numbers with 10 digits. Here is the function.
function phonenumber(inputtxt) { var phoneno = /^\d{10}$/; if((inputtxt.value.match(phoneno)) { return true; } else { alert("message"); return false; } }
Flowchart:
To valid a phone number like
XXX-XXX-XXXX
XXX.XXX.XXXX
XXX XXX XXXX
use the following code.
function phonenumber(inputtxt) { var phoneno = /^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$/; if((inputtxt.value.match(phoneno)) { return true; } else { alert("message"); return false; } }
Flowchart:
If you want to use a + sign before the number in the following way
+XX-XXXX-XXXX
+XX.XXXX.XXXX
+XX XXXX XXXX
use the following code.
function phonenumber(inputtxt) { var phoneno = /^\+?([0-9]{2})\)?[-. ]?([0-9]{4})[-. ]?([0-9]{4})$/; if((inputtxt.value.match(phoneno)) { return true; } else { alert("message"); return false; } }
Flowchart:
Following code blocks contain actual codes for the said validations. We have kept the CSS code part common for all the validations.; }
Validate a 10 digit phone number
At first we validate a phone number of 10 digit. For example 1234567890, 0999990011, 8888855555 etc.xxxxxxxxx]-all-numeric-validation.js"></script> </body> </html>
JavaScript Code
function phonenumber(inputtxt) { var phoneno = /^\d{10}$/; if(inputtxt.value.match(phoneno)) { return true; } else { alert("Not a valid Phone Number"); return false; } }
Flowchart:
Validate North American phone numbers
Now, let's see how to validate a phone number, either in 222-055-9034, 321.789.4512 or 123 256 4587 formats.xx-xxx-xxxx, xxx.xxx.xxxx, xxx xxx; } }
Flowchart:
Validate an international phone number with country code
Now, let's see how to validate a phone number with country code, either in +24-0455-9034, +21.3789.4512 or +23 1256 4587 format..[+xx-xxxx-xxxx, +xx.xxxx.xxxx, +xx xxxx; } }
Thank you for visiting and reading !
IP address validation using javascriptIP address validation
Every computer connected to the Internet is identified by a unique four-part string, known as its Internet Protocol (IP) address.).
Example of valid IP address
Example of invalid IP address
JavaScript code to validate an IP address
function ValidateIPaddress(ipaddress) {]?)$/.test(myForm.emailAddr.value)) { return (true) } alert("You have entered an invalid IP address!") return (false) }
Explanation of the said Regular expression (IP address)
Regular Expression Pattern :
/^]?)$/
Note: Last two parts of the regular expression is similar to above.
Syntax diagram - IP-address validation:
Let apply the above JavaScript function in an HTML form.
HTML Code
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>JavaScript form validation - checking IP address/title> <link rel='stylesheet' href='form-style.css' type='text/css' /> </head> <body onload='document.form1.text1.focus()'> <div class="mail"> <h2>Input an IP address and Submit</h2> <form name="form1" action="#"> <ul> <li><input type='text' name='text1'/></li> <li> </li> <li class="submit"><input type="submit" name="submit" value="Submit" onclick="ValidateIPaddress(document.form1.text1)"/></li> <li> </li> </ul> </form> </div> <script src="ipaddress-validation.js"></script> </body> </html>
JavaScript Code.form1.text1.focus(); return true; } else { alert("You have entered an invalid IP address!"); document.form1.text1.focus();return false; } }
Flowchart:; }
Thank for reading !
Sponsored by Frontend Masters, advancing your skills with in-depth, modern front-end engineering courses
Sponsored by Frontend Masters, advancing your skills with in-depth, modern front-end engineering courses
This.:
A front-end developer architects and develops websites and web applications using web technologies (i.e., HTML, CSS, and JavaScript), which typically runs on the Open Web Platform or acts as compilation input for non-web platform environments (i.e., React Native).. These four run times scenarios are explained below.): programmatically from the command line that can retrieve and traverse web page code.
The most common headless browsers are:.> — Wikipedia#### General Learning:
Image source:
User Interface Design ->.
HTML -> CSS -
Liken to constructing a house, one might consider HTML the framing and CSS to be the painting & decorating.
Image source:#### Getting Started:.> — Wikipedia>.> — Wikipedia
<font>tag in 1995, which was then standardized in the HTML 3.2 specification..> The CSS2 specification was released in 1998 and attempted to improve the font selection process by adding font matching, synthesis and download. These techniques did not gain much use, and were removed in the CSS2.1 specification. However, Internet Explorer added support for the font downloading feature in version 4.0, released in 1997. Font downloading was later included in the CSS3 fonts module, and has since been implemented in Safari 3.1, Opera 10 and Mozilla Firefox 3.5. This has subsequently increased interest in Web typography, as well as the usage of font downloading.> — Wikipedia#### Fonts:
Accessibility refers to the design of products, devices, services, or environments for people with disabilities. The concept of accessible design).> —:
A component of software configuration management, version control, also known as revision control.> —:.> — Wikipedia#### General.> — Wikipedia>.> — Wikipedia>.> — Wikipedia#### General Learning:
A headless browser is a web browser without a graphical user interface.>. tools of the trade. Make sure you understanding the category that a set of tools falls within, before studying the tools themselves. Note that just because a tool is listed, or a category of tools is documented, this does not equate to an assertion on my part that a front-end developer should learn it and use it. Choose your own toolbox. I'm just providing the common toolbox options. using).:
How we can create a login and signup form with the material design using HTML CSS JavaScript? Solution: See this CSS Material Login & Signup Form With jQuery, Material Design Form.
Basically, Material Design is a type of design and it is developed by Google. Material Design uses more grid-based layouts, responsive animations and transitions, padding, and depth effects such as lighting and shadows. Languages like angular, react has an inbuilt material design for elements but we can create that kind of design using CSS.
Today you will learn to create Material Design Form using HTML and CSS. Basically, there is a login form and a button on the right-top of the form, when you will click on that then the signup or registration form will appear. And all the input fields and the layout designed as material design, and transitions are also like that.
So, Today I am sharing CSS Material Login & Signup Form With jQuery. There I have used pure HTML and CSS but jQuery is only for the toggle feature. And there material design effect is a combination of shadow, size, animation, etc. Believe me, this is a very good designed login/registration form you can use it on your website after backed integration.
If you are thinking now how this material design form actually is, then see the preview given below.
CSS Material Login & Signup Form With jQuery Source Code
Before sharing source code, let’s talk about it. First I have created two different sections one for login and one for the registration form. Inside a single card, I have placed a button, input, and label to creating the complete form. And also in the HTML file, I have linked external files like jQuery, font-awesome, and other files.
Now using CSS I have placed all the elements in the right place, as you can see in the preview. There I have created two cards and a toggle button which is for the register section. There is a class name .active which is handling the whole function. I have put the condition when it’s active then do these things to element. For signup form expand feature I have used CSS transform: scale (); command (info).
jQuery just handling the toggle feature by adding and removing the active class. All the design and animation are based on pure CSS, and the register icon is powered by font-awesome library. And this form is responsive means it will fit on every screen size, I have used CSS @media query for creating this. There I have created many things using CSS, I can’t explain all you will understand after getting the codes.
For Creating this program, you have to create 3 files. First for HTML, second for CSS, and the third for JavaScript. Follow the steps to creating this without any error.
index.html
Create an HTML file named ‘index.html‘ and put these codes given below.
<html lang="en" > <head> <meta charset="UTF-8"> <title>Material Login Form | Webdevtrick.com</title> <link rel="stylesheet" href=""> <link rel='stylesheet' href=''> <link rel='stylesheet' href=''> <link rel="stylesheet" href="style.css"> </head> <body> <div class="container"> <div class="card"> <h1 class="title">Login</h1> <form> <div class="input-container"> <input type="text" id="usern" required="required"/> <label for="usern">Username</label> <div class="bar"></div> </div> <div class="input-container"> <input type="text" id="passw" required="required"/> <label for="passw">Password</label> <div class="bar"></div> </div> <div class="button-container"> <button><span>Go</span></button> </div> <div class="footer"><a href="#">Forgot your password?</a></div> </form> </div> <div class="card alt"> <div class="toggle"></div> <h1 class="title">Register <div class="close"></div> </h1> <form> <div class="input-container"> <input type="text" id="usernR" required="required"/> <label for="usernR">Username</label> <div class="bar"></div> </div> <div class="input-container"> <input type="text" id="passwR" required="required"/> <label for="passwR">Password</label> <div class="bar"></div> </div> <div class="input-container"> <input type="text" id="repeatpass" required="required"/> <label for="repeatpass">Repeat Password</label> <div class="bar"></div> </div> <div class="button-container"> <button><span>Next</span></button> </div> </form> </div> </div> <script src=''></script> <script src="function.js"></script> </body> </html>
style.css
Now create a CSS file named ‘style.css‘ and put these codes given here.
body { background: #e9e9e9; color: #666666; font-family: 'RobotoDraft', 'Roboto', sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; } .container { position: relative; max-width: 460px; width: 100%; margin: 0 auto 100px; margin-top: 10%; } .container.active .card:first-child { background: #f2f2f2; margin: 0 15px; } .container.active .card.alt { top: 20px; right: 0; width: 100%; min-width: 100%; height: auto; border-radius: 5px; padding: 60px 0 40px; overflow: hidden; } .container.active .card.alt .toggle { position: absolute; top: 40px; right: -70px; box-shadow: none; -webkit-transform: scale(10); transform: scale(10); transition: -webkit-transform .3s ease; transition: transform .3s ease; transition: transform .3s ease, -webkit-transform .3s ease; } .container.active .card.alt .toggle:before { content: ''; } .container.active .card.alt .title, .container.active .card.alt .input-container, .container.active .card.alt .button-container { left: 0; opacity: 1; visibility: visible; transition: .3s ease; } .container.active .card.alt .title { transition-delay: .3s; } .container.active .card.alt .input-container { transition-delay: .4s; } .container.active .card.alt .input-container:nth-child(2) { transition-delay: .5s; } .container.active .card.alt .input-container:nth-child(3) { transition-delay: .6s; } .container.active .card.alt .button-container { transition-delay: .7s; } .card { position: relative; background: #ffffff; border-radius: 5px; padding: 60px 0 40px 0; box-sizing: border-box; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24); transition: .3s ease; } .card .title { position: relative; z-index: 1; border-left: 5px solid #ff4444; margin: 0 0 35px; padding: 10px 0 10px 50px; color: #ff4444; font-size: 32px; font-weight: 600; text-transform: uppercase; } .card .input-container { position: relative; margin: 0 60px 50px; } .card .input-container input { outline: none; z-index: 1; position: relative; background: none; width: 100%; height: 60px; border: 0; color: #212121; font-size: 24px; font-weight: 400; } .card .input-container input:focus ~ label { color: #9d9d9d; -webkit-transform: translate(-12%, -50%) scale(0.75); transform: translate(-12%, -50%) scale(0.75); } .card .input-container input:focus ~ .bar:before, .card .input-container input:focus ~ .bar:after { width: 50%; } .card .input-container input:valid ~ label { color: #9d9d9d; -webkit-transform: translate(-12%, -50%) scale(0.75); transform: translate(-12%, -50%) scale(0.75); } .card .input-container label { position: absolute; top: 0; left: 0; color: #757575; font-size: 24px; font-weight: 300; line-height: 60px; transition: 0.2s ease; } .card .input-container .bar { position: absolute; left: 0; bottom: 0; background: #757575; width: 100%; height: 1px; } .card .input-container .bar:before, .card .input-container .bar:after { content: ''; position: absolute; background: #ff4444; width: 0; height: 2px; transition: .2s ease; } .card .input-container .bar:before { left: 50%; } .card .input-container .bar:after { right: 50%; } .card .button-container { margin: 0 60px; text-align: center; } .card .button-container button { outline: 0; cursor: pointer; position: relative; display: inline-block; background: 0; width: 240px; border: 2px solid #e3e3e3; padding: 20px 0; font-size: 24px; font-weight: 600; line-height: 1; text-transform: uppercase; overflow: hidden; transition: .3s ease; } .card .button-container button span { position: relative; z-index: 1; color: #ddd; transition: .3s ease; } .card .button-container button:before { content: ''; position: absolute; top: 50%; left: 50%; display: block; background: #ff4444; width: 30px; height: 30px; border-radius: 100%; margin: -15px 0 0 -15px; opacity: 0; transition: .3s ease; } .card .button-container button:hover, .card .button-container button:active, .card .button-container button:focus { border-color: #ff4444; } .card .button-container button:hover span, .card .button-container button:active span, .card .button-container button:focus span { color: #ff4444; } .card .button-container button:active span, .card .button-container button:focus span { color: #ffffff; } .card .button-container button:active:before, .card .button-container button:focus:before { opacity: 1; -webkit-transform: scale(10); transform: scale(10); } .card .footer { margin: 40px 0 0; color: #d3d3d3; font-size: 24px; font-weight: 300; text-align: center; } .card .footer a { color: inherit; text-decoration: none; transition: .3s ease; } .card .footer a:hover { color: #bababa; } .card.alt { position: absolute; top: 40px; right: -70px; z-index: 10; width: 140px; height: 140px; background: none; border-radius: 100%; box-shadow: none; padding: 0; transition: .3s ease; } .card.alt .toggle { position: relative; background: #ff4444; width: 140px; height: 140px; border-radius: 100%; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24); color: #ffffff; font-size: 58px; line-height: 140px; text-align: center; cursor: pointer; } .card.alt .toggle:before { content: '\f040'; display: inline-block; font: normal normal normal 14px/1 FontAwesome; font-size: inherit; text-rendering: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-transform: translate(0, 0); transform: translate(0, 0); } .card.alt .title, .card.alt .input-container, .card.alt .button-container { left: 100px; opacity: 0; visibility: hidden; } .card.alt .title { position: relative; border-color: #ffffff; color: #ffffff; } .card.alt .title .close { cursor: pointer; position: absolute; top: 0; right: 60px; display: inline; color: #ffffff; font-size: 58px; font-weight: 400; } .card.alt .title .close:before { content: '\00d7'; } .card.alt .input-container input { color: #ffffff; } .card.alt .input-container input:focus ~ label { color: #ffffff; } .card.alt .input-container input:focus ~ .bar:before, .card.alt .input-container input:focus ~ .bar:after { background: #ffffff; } .card.alt .input-container input:valid ~ label { color: #ffffff; } .card.alt .input-container label { color: rgba(255, 255, 255, 0.8); } .card.alt .input-container .bar { background: rgba(255, 255, 255, 0.8); } .card.alt .button-container button { width: 100%; background: #ffffff; border-color: #ffffff; } .card.alt .button-container button span { color: #ff4444; } .card.alt .button-container button:hover { background: rgba(255, 255, 255, 0.9); } .card.alt .button-container button:active:before, .card.alt .button-container button:focus:before { display: none; } @media (max-width: 750px) { .card.alt .toggle { width: 50px; height: 50px; line-height: 50px; font-size: 25px; } .container.active .card.alt .toggle { transform: scale(27); } .container.active .card.alt{ left: 0; } }
function.js
The last step, create a JavaScript file named ‘function.js‘ and put the codes.
$('.toggle').on('click', function() { $('.container').stop().addClass('active'); }); $('.close').on('click', function() { $('.container').stop().removeClass('active'); });
That’s It. Now you have successfully created CSS Material Login & Signup Form With jQuery, Material Design Form. If you have any doubt or question comment down below.
Thanks for reading !
I use mat-menu of Angular Material with different mat-menu-item and I would like the list of menu items to be the same size as the button.
I use mat-menu of Angular Material with different mat-menu-item and I would like the list of menu items to be the same size as the button.
That's what I have:
And what I wish:
I tried to change the size of the menu with the css, but it does not work properly.
CSS:
.cdk-overlay-pane {width: 100%;} .mat-menu-panel {width: 100%;}
HTML:
<button mat-raised-button [matMenuTriggerFor]="menu" class="btn-block btn-blue"> <div fxLayout="row" fxLayoutAlign="center center"> <mat-icon>more_vert</mat-icon> <span fxFlex>OPTION</span> </div> </button>
<mat-menu #
<button mat-menu-item>
<mat-icon>unarchive</mat-icon>
<span>First</span>
</button>
<button mat-menu-item>
<mat-icon>file_copy</mat-icon>
<span>Second</span>
</button>
</mat-menu>
I did a StackBlitz HERE for my mat-menu.
Thank you in advance! | https://morioh.com/p/928f229dc57d | CC-MAIN-2019-47 | refinedweb | 3,259 | 50.94 |
Find Questions & Answers
Can't find what you're looking for? Visit the Questions & Answers page!
We recently upgraded our DMIS from SP10 to SP14 in our SLT and source systems. After that, when we try to add any new tables for replication, we get the below error.
"No changes to cross-client customizing and / or repository objects are allowed"
There is a OSS note (2606637) that talks about this error, which mentions to keep SCC4 settings with Changes allowed and couple of namespaces to be modifiable. But the internal audit will raise concerns about keeping the production SLT system open.
Have anyone come across the issue?
even we had so many issues while loaded in SP14. have you applied all latest SP14 correction notes in source and SLT system? | https://answers.sap.com/questions/462762/issue-after-dmis-sp14-upgrade.html | CC-MAIN-2018-17 | refinedweb | 130 | 74.08 |
Hello programmers, in today’s article, we will discuss Matplotlib Boxplot in Python.A Box Plot is a Whisker plot in simpler terms. Box plots are created to summarize data values having properties like minimum, first quartile, median, third quartile, and maximum. In the box plot, a box is created from the first quartile to the third quartile.
A verticle line is also there, which goes through the box at the median. Here x-axis denotes the data, and the y-axis shows the frequency distribution. The Pyplot module of the Matplotlib library provides MATLAB like features. Hence, the matplotlib.pyplot.boxplot() function is used to create box plots. Before we cite examples of Matplotlib Boxplot, let me brief you with the syntax and parameters of the same.
Syntax of Matplotlib Boxplot in Python
matplotlib.pyplot.boxplot(data, notch=None, vert=None, patch_artist=None, widths=None)
Parameters: Matplotlib Boxplot
- data: Sequence or array to be plotted
- notch: Accepts boolean values (Optional)
- vert: Accepts boolean values false and true for horizontal and vertical plot respectively (Optional)
- bootstrap: Accepts int specific intervals around notched boxplots.
- usermedians: Array or sequence of dimensions compatible with data
- positions: Array and sets the position of boxes (Optional)
- widths: Array and sets the width of boxes (Optional)
- patch_artist: Boolean values. If
False, produces boxes with the Line2D artist. Otherwise, boxes and drawn with Patch artists (Optional)
- labels: Array of strings sets label for each datase (Optional)
- meanline: If true, tries to render meanline as full width of box
- zorder: Sets the zorder of the boxplot (Optional)
Return Type: Matplotlib Boxplot
The Matplotlib boxplot function returns a dictionary mapping each component of the boxplot to a list of the
Line2D instances created. That dictionary has the following keys (assuming vertical boxplots):
boxes: the main body of the boxplot showing the quartiles and the median’s confidence intervals if enabled.
medians: horizontal lines at the median of each box.
whiskers: the vertical lines extending to the most end, non-outlier data points.
caps: the horizontal lines at the ends of the whiskers.
fliers: points representing data that extend beyond the whiskers (fliers).
means: points or lines representing the means.
Example of Matplotlib Boxplot in Python
import matplotlib.pyplot as plt import numpy as np # Creating dataset np.random.seed(10) data = np.random.normal(100, 20, 200) fig = plt.figure(figsize =(10, 7)) # Creating plot plt.boxplot(data) # show plot plt.show()
OUTPUT:
EXPLANATION:
Firstly, the data values are given to the ax.boxplot() method can be a Numpy array or Python list, or a Tuple of arrays. In the above example, we create the box plot using numpy.random.normal() to create some random data. In addition, it takes the mean, standard deviation, and the desired number of values as arguments.
Multiple Dataset Boxplot)) # Creating axes instance ax = fig.add_axes([0, 0, 1, 1]) # Creating plot bp = ax.boxplot(data) # show plot plt.show()
OUTPUT:
EXPLANATION:
Firstly, in the above example, multiple data set plots multiple box plots under the same axes. The four data sets are Numpy arrays using numpy.random.normal() function. These four data sets are then passed as data values to the data array. Moreover, these data array as an argument to the matplotlib boxplot() function is used, multiple boxplots are created.
Customized Matplotlib Boxplot
<pre class="wp-block-syntaxhighlighter-code")) ax = fig.add_subplot(111) # Creating axes instance bp = ax.boxplot(data, patch_artist = True, notch ='True', vert = 0) colors = ['#0000FF', '#00FF00', '#FFFF00', '#FF00FF'] for patch, color in zip(bp['boxes'], colors): patch.set_facecolor(color) # changing color and linewidth of # whiskers for whisker in bp['whiskers']: whisker.set(color ='#8B008B', linewidth = 1.5, <a href="" target="_blank" rel="noreferrer noopener">linestyle</a> =":") # changing color and linewidth of # caps for cap in bp['caps']: cap.set(color ='#8B008B', linewidth = 2) # changing color and linewidth of # medians for median in bp['medians']: median.set(color ='red', linewidth = 3) # changing style of fliers for flier in bp['fliers']: flier.set(marker ='D', color ='#e7298a', alpha = 0.5) # x-axis labels ax.set_yticklabels(['data_1', 'data_2', 'data_3', 'data_4']) # Adding title plt.title("Customized box plot") # Removing top axes and right axes # ticks ax.get_xaxis().tick_bottom() ax.get_yaxis().tick_left() # show plot plt.show(bp) </pre>
OUTPUT:
EXPLANATION:
Firstly, the matplotlib.pyplot.boxplot() provides many customization possibilities to the box plot. The notch = True creates the notch format to the box plot. We can set different colors to different boxes. The patch_artist = True fills the boxplot with colors. In addition, the vert = 0 attribute creates a horizontal box plot. Labels take the same dimensions as the number of data sets.
Boxplot With Legend
Legend is very useful in describing the elements of the plots. By using matplotlib.pyplot.legend() you can add custom legends in your code which can demonstrate the details of the graph. Following is an example of it –
import matplotlib.pyplot as plt import numpy as np np.random.seed(10) data1=np.random.randn(40,2) data2=np.random.randn(30,2) fig, ax = plt.subplots() bp1 = ax.boxplot(data1, positions=[1,4], notch=True, widths=0.35, patch_artist=True, boxprops=dict(facecolor="C0")) bp2 = ax.boxplot(data2, positions=[2,5], notch=True, widths=0.35, patch_artist=True, boxprops=dict(facecolor="C2")) ax.legend([bp1["boxes"][0], bp2["boxes"][0]], ['A', 'B'], loc='upper right') ax.set_xlim(0,6) plt.show()
Output –
Must Read
- How to use Python Truncate to Resize Files
- Python vars() Function Explained With Examples
- Matplotlib Arrow() Function With Examples
Conclusion
In this article, we have learned about various ways of using the Matplotlib Boxplot in Python. We can implement multiple boxplots under the same axes by defining as many data sets as desired. Also, the Matlotlib boxplot provides endless ways of customizing the boxplots. Different customization attributes have also been discussed. Refer to this article in case of any queries regarding the Matplotlib boxplot() function.
However, if you have any doubts or questions, do let me know in the comment section below. I will try to help you as soon as possible.
Happy Pythoning!
Informative on making boxplots, is there any way to add a legend indicating the mean and median
Hi, thank you for your comment.
I’ve added a section describing how you can add a legend in your boxplots. Try the same for mean and median.
Please let us know if you have any other doubt. We’ll try our best to resolve them. | https://www.pythonpool.com/matplotlib-boxplot/ | CC-MAIN-2021-43 | refinedweb | 1,073 | 51.55 |
Nested DataTable editable with Ajax Source Data
Nested DataTable editable with Ajax Source Data
I have one or two questions about the following code snippet. I want to populate parentData and childData with a sql query. I have a php file with the query and json_encode of the result. How can I pass this query to the used variable in the js? My 2nd question: I want the individual lines of the childData to be editable and to be updated in the database. For this, the data of the corresponding line should be transferred to a modal. Whats the best way to do this? I found a similar example for my desired result: example here
I'm interested: is it possible with the help of the editor to make SQL queries from the table also with Group_Concat or are there only left joins? If so, how can I solve the problem and pass the data? So far I have the problem that I do not get the td.details-control integrated. Therefore, the sample code is hardcoded data. So my goal is an editable DataTable with 2 separate SQL statements for the parent and child tables.
Thanks in advance.
HTML-Code
<!DOCTYPE html> <html> <head> <script src=""></script> <link href="" rel="stylesheet" type="text/css" /> <script src=""></script> <meta charset=utf-8 /> <script src=""></script> <link href="" rel="stylesheet"/> <script src=""></script> <link href="" rel="stylesheet"/> <title>DataTables - JS Bin</title> </head> <body> <div class="panel panel-default"> <div class="panel-heading"><h3>Overview</h3></div> <div class="panel-body"> <table id="mytable" class="table table-condensed table-hover" width=100%"> </table> </div> </div> <div class="modal fade" id="editModal" role="dialog"> <div class="modal-dialog"> <div id="content-data"></div> </div> </div> </body> </html>
JS
const parentData = [ {column1: 's01', column2: '200 250', column3: 'A / B / C'}, {column1: 's02', column2: '100 200', column3: 'A / D'}, {column1: 's03', column2: '100 300', column3: 'E / F'} ]; const childData = { s01: [ {column1: 'p1', column2: '5', column3: 'yes', column4: '100 200', column5: 's02', column6: '1', tagged: '0'}, {column1: 'p2', column2: '4', column3: 'yes', column4: '150 250', column5: 's06', column6: '3', tagged: '0'}, {column1: 'p3', column2: '1', column3: 'yes', column4: '150 250', column5: 's07', column6: '71', tagged: '1'}, {column1: 'p4', column2: '2', column3: 'yes', column4: '100', column5: 's03', column6: '35', tagged: '1'} ], s02: [ {column1: 'p1', column2: '1', column3: 'yes', column4: '150 200', column5: 's02', column6: '21', tagged: '1'}, {column1: 'p2', column2: '3', column3: 'no', column4: '200 250', column5: 's03', column6: '32', tagged: '1'} ], s03: [ {column1: 'p1', column2: '3', column3: 'yes', column4: '100', column5: 's03', column6: '31', tagged: '1'}, {column1: 'p2', column2: '2', column3: 'yes', column4: '150 300', column5: 's06', column6: '62', tagged: '1'}, {column1: 'p3', column2: '1', column3: 'no', column4: '150', column5: 's01', column6: '13', tagged: '1'} ] }; const dataTable = $('#mytable').DataTable({ "paging": false, "lengthChange": false, "info": false, data: parentData, columns: [ { "className": 'details-control', "orderable": false, "data": null, "defaultContent": '' }, {title: 'Col 1', data: 'column1'}, {title: 'Col 2', data: 'column2'}, {title: 'Col 3', data: 'column3'} ], "order": [[1, 'asc']] }); $('#mytable').on('click', 'td.details-control', function(){ const parentRow = dataTable.row($(this).closest('tr')); parentRow.child.isShown() ? parentRow.child.remove() : parentRow.child('<table id="details'+parentRow.data().column1+'" class="table table-condensed table-hover"></table>').show(); $(this).closest('tr').toggleClass('shown'); if(!parentRow.child.isShown()) return; const detailsData = childData[parentRow.data().column1]; $('#details'+parentRow.data().column1).DataTable({ sDom: 't', data: detailsData, columns: [ {title: 'Child 1', data: 'column1'}, {title: 'Child 2', data: 'column2'}, {title: 'Child 3', data: 'column3'}, {title: 'Child 4', data: 'column4'}, {title: 'Child 5', data: 'column5'}, {title: 'Child 6', data: 'column6'}, {title: 'Tagged', data: 'tagged', "render": function (data, type, row) { return (data === '1') ? '<span class="glyphicon glyphicon-ok"></span>' : '<span class="glyphicon glyphicon-remove"></span>';} }, {title: 'Action', "render": function (data, type, row) { return '<button type="button" class="btn btn-primary btn-xs" data-<i class="glyphicon glyphicon-pencil"> </i>Edit</button>';} } ] }); });
This question has accepted answers - jump to:
Answers
"So my goal is an editable DataTable with 2 separate SQL statements for the parent and child tables."
The best for this is to use Editor. I have been using this on many occasions. Here is a blog on this:
If you need to "prepare" the data you read (e.g. using GROUP_CONCAT and the likes) to be processed with Editor I recommend you use views. That works very well and makes your Editor code less complex too.
You can also use proprietary getFormatters with Editor that allow you to retrieve just about anything for each individual Editor column. Same applies to the use of setFormatters in case you need more flexibility.
Thanks for the helpful links, I've come a bit ahead (I think so) but do you have an example for building a view with the editor? I would like to represent the following SQL statement:
I've filled my table with a sample query and at least I've been able to integrate the query and td.details-control, which I had problems with before. Looks like this now
This is the editor example query for the picture shown
Child table is still unfilled. How do I pass (in my example the host name) to the SQL query for the child table to be created? Would be great if you could help me there
Hi, you can't CREATE a view with Editor but you can USE it in Editor:
Here is how to create a view in MySQL (should also work with other relational DBMSs):
Subsequently you can query this view with SQL but also with Editor:
SQL:
would return your columns Hostname, VLAN and Location.
Not sure why you wrote 'Hostname' instead of Hostname. Never seen that with quotation marks before. It is a variable name and not a string actually.
This is how you can create any kind of view in MySQLWorkbench which I would recommend as a tool:
Let me give you a simple example from my own coding. It is actually the simplest I could find but should have all that you need. I have filters and those filters that the user can freely define have value ranges.
Data Model:
This part of the code ties the two tables together. Filtr as parent and valueRange as child:
And the JS code (deleted all the Data tables and editor events to make it shorter):
And the PHP:
First of all thank you. That was a good help for me.
"Not sure why you wrote 'Hostname' instead of Hostname. Never seen that with quotation marks before. It is a variable name and not a string actually."
I think the column names were strings before, of course it makes no sense in this case, you're right.
Have now got the parent and child table filled over the view. However, the where clause for the child table does not work yet. Get the error message that .row() would be no function or the problem that no data is loaded at all. I have to take a closer look at this tomorrow, so far all the child tables are filled with the same content.
How can I get the id or hostname of the table row? The query for the child table works so far, if I mark the row before I click on td.details-control. But I want the id / hostname to be passed by td.details-control without first marking the row. I tried to get the Id in the onclick event via "table.row(tr).data()", but that didn't work.
GoT it, the question is obsolet. I couldn‘t delete the post anymore | https://www.datatables.net/forums/discussion/55414/nested-datatable-editable-with-ajax-source-data | CC-MAIN-2019-22 | refinedweb | 1,261 | 60.14 |
Async Swift Scripting
A trick to use asynchronous callbacks in Swift scripts.
I was really inspired by this talk by Ayaka Nonaka. I personally believe that writing scripts in Swift will become A Thing very soon. It’s already happening for Mac OS X, the upcoming Linux compiler will bring it to a next level. There’s already plenty of useful frameworks available via CocoaPods or Carthage. The only thing that’s missing is a decent package manager for Swift frameworks, something like Homebrew. Swift Package Manager (SPAM) sounds like a nice name :)
Anyway, I wanted to use Alamofire in a simple Swift script. So I have copy-paste-edited sample code from their GitHub page and saved it as a
alamofire.swift file.
import Alamofire Alamofire.request(.GET, "", parameters: ["foo": "bar"]) .responseJSON { response in print(response.result) // Result of response serialization } print("Done", separator: "\n")
Build Alamofire
To run this script I need to build Alamofire framework first. There are two ways to do that: using CocoaPods or Carthage.
Before I go on, it’s important to specify versions of the tools I use.
- Xcode 7.0.1
- cocoapods gem version 0.38.2
- cocoapods-rome gem version 0.2.0
- carthage version 0.8.0
CocoaPods
Start with a
Podfile that looks like this.
platform :osx, '10.10' use_frameworks! plugin 'cocoapods-rome' pod 'Alamofire', :git => '', :branch => 'master'
Note that I’m building off the tip of the
master branch, that’s because I need latest Swift 2.0 source code for Xcode 7. Now I can build the framework using new
--no-integrate option.
# If Xcode 7 is not the default toolchain - use path to Xcode 7 app export DEVELOPER_DIR=/Applications/Xcode7.app/Contents/Developer # Install without integration (Rome feature) pod install --no-integrate
You may want to use
bundle exe pod install if you installed gems with Gemfile and bundler. The exact version of Alamofire I got built is
3.0.0-beta.3. Now I have
Alamofire.framework ready for use in
Rome directory.
Carthage
Start with a
Cartfile.
github "Alamofire/Alamofire" "master"
Then build.
# If your default Xcode toolchain is not Xcode 7 export DEVELOPER_DIR=/Applications/Xcode7.app/Contents/Developer # Update and build carthage update --platform mac
Note the
--platform mac option. The option is not really well documented, but it’s extremely important in this case. It tells carthage to build only Mac OS X targets, and that’s exactly what you need for Swift scripting.
You should now have
Alamofire.framework ready for use in
Carthage/Build/Mac directory.
Run
Time to run the script. To point Swift compiler to location of 3rd party frameworks use
-F option and make sure you put it before the name of the Swift file.
# If your default Xcode toolchain is not Xcode 7 export DEVELOPER_DIR=/Applications/Xcode7.app/Contents/Developer # Run using framework built with CocoaPods swift -F Rome alamofire.swift # Run using framework built with Carthage swift -F Carthage/Build/Mac alamofire.swift
And the output is…
Done
Wait a sec. How come? Well, that’s because…
It’s Async!
Yes, the callback from Alamofire is asynchronous. So the script finishes execution before it gets the response callback from Alamofire.
That means we have to keep the script alive and kicking until we get all async callbacks. You have probably thought about semaphores or mutexes right now. Good guess, but that won’t work. Consider this pseudo-code.
MUTEXT = CREATE_MUTEX() LOCK(MUTEX) // Main queue Alamofire.request(.GET, "", parameters: ["foo": "bar"]) .responseJSON { response in UNLOCK(MUTEX) // Main queue! } WAIT(MUTEX) // Main queue
The problem is that callback block (colsure) is dispatched to the same queue it was originally enqueued from. This is the case for Alamofire and I’m pretty sure for most of the libraries with async callbacks.
WAIT(MUTEX) code will lock the main queue and
UNLOCK(MUTEX) line will never be executed.
Run Loop
The answer to this particular problem is Run Loop. Each OS X or iOS application has a main run loop that keeps the app alive and reacts to all kinds of input sources, such as timer events or selector calls. As a matter of fact, our Swift script has a run loop too, all we have to do is to keep it running until all async callbacks are received. The draft solution looks like this:
import Alamofire var keepAlive = true Alamofire.request(.GET, "", parameters: ["foo": "bar"]) .responseJSON { response in print(response.result) // Result of response serialization keepAlive = false } let runLoop = NSRunLoop.currentRunLoop() while keepAlive && runLoop.runMode(NSDefaultRunLoopMode, beforeDate: NSDate(timeIntervalSinceNow: 0.1)) { // Run, run, run }
In this example we get current run loop (
runLoop) and then keep it running with help of
runMode(_: beforeDate:) method. According to the documentation this method will return
YES if the run loop ran and processed an input source or if the specified timeout value was reached; otherwise,
NO if the run loop could not be started.
That’s the main difference from using mutexes or semaphores.
runMode doesn’t block main queue, it just puts run loop to sleep until specified time in the future (for
0.1s in this example) and while asleep the run loop can be woken up by an input source. Asynchronous call to our JSON response closure is exactly the type of input source that can wake up a sleeping run loop, so each time
runMode returns
YES we also check for value of
keepAlive and if it’s false, that means we have handled our async callback and the script can stop its execution.
Swift Script Runner
To make the task of writing scripts with async callbacks easier, I have created a SwiftScriptRunner framework. Here’s how you’d use it:
# In Podfile pod 'SwiftScriptRunner' # In Cartfile github "mgrebenets/SwiftScriptRunner"
Then in
alamofire.swift:
import Alamofire import SwiftScriptRunner var runner = SwiftScriptRunner() runner.lock() // Lock Alamofire.request(.GET, "", parameters: ["foo": "bar"]) .responseJSON { response in print(response.result) // Result of response serialization runner.unlock() // Unlock } runner.wait() // Wait
You can call
lock() multiple times before
wait(), just make sure you balance each
lock() with
unlock() to avoid deadlocks.
blog comments powered by Disqus | http://mgrebenets.github.io/swift/2015/10/08/async-swift-scripting | CC-MAIN-2017-13 | refinedweb | 1,025 | 67.96 |
Hi again,
I'm putting forth a suggestion on my own here, since I have not received
any feedback.
a) What about mirroring the Derby source tree at
'java/testing/org/apache/derby'?
We would then have something like this (seen from 'java/' in trunk):
-
|-- build*
...
|-- testing
| `-- org
| ` -- apache
| |-- derby
| | |-- authentication*
| | |-- catalog*
| | ...*
| | |-- osgi*
| | `-- vti*
| `-- derbyTesting
| |-- functionTests*
| `-- unitTests*
`-- tools*
b) Another alternative would be to add another directory in 'java', for
instance 'unittesting'.
It would also be nice if someone with knowledge of the build system
could say a few words if any of these approaches would cause major
changes in the build.xml files.
I expect the new directory structure to only contain JUnit unit tests.
There is a name-clash with the existing unit test functionality of the
old harness.
I have not yet thought much about how these tests would be run as part
of suites etc.
Regards,
--
Kristian
Kristian Waagan wrote:
> Hello,
>
> I want to write a unit test for
> 'services/io/RawToBinaryFormatStream.java", using JUnit.
> I know how to write the test itself, but where should I put it?
> The directories/categories under functionTests do not seem quite right
> to me. My first thought was to put the test under unitTests instead, but
> that seems to contain files for the special unit test harness that we have.
>
> Also, say this class is made package private. Testing it indirectly
> through other public classes/methods might be a big hassle.
> Should we consider adding a parallel source three to be used for unit
> tests written in JUnit?
>
> For now I will just write my RawToBinaryFormatStream-tests as part of a
> functional test for LOBs. In my opinion, this is not the best solution,
> and I would like to hear what the community thinks about these issues.
> Have I overlooked better, existing ways to do this?
>
>
>
> Thanks, | http://mail-archives.apache.org/mod_mbox/db-derby-dev/200608.mbox/%3C44D8A780.9030208@Sun.com%3E | CC-MAIN-2013-20 | refinedweb | 308 | 64.91 |
Ed: Following on from our look at the four main pieces of Windows Azure in “Introduction to Windows Azure”, John Mannix runs us through the development of an Azure application in C# and its deployment into the cloud. He briefly looks at
- the basic Visual Studio Azure project template
- some Azure development common code
- how to use the Azure Management Portal to ready your space in the cloud for your application
- deploying the application
To follow this tutorial, you’ll need to download and install the Windows Azure SDK and Windows Azure Tools for Visual Studio. You can either download and install them separately or install them using Microsoft’s Web Platform Installer, which is the preferred method. Go to to begin either procedure.
The Visual Studio Azure Project Template
Once you’ve installed the Azure tools for Visual Studio, open Visual Studio and click File > New Project. Under the list of Installed Templates, you’ll find a new Cloud section listed for both Visual Basic and Visual C#. Both contain just one new template, called Windows Azure Project.
Select the Visual C# version of the project and click OK. Creating a new project with this template brings up the New Windows Azure Project dialog, which is where you add roles to your project. Your project can host multiple roles, and each role maps to a web application, a web service or a background process. You add roles by clicking on the right arrow with the role on the left selected, and then you can rename the role in the right hand pane. For the purposes of this article, we will create an MVC3 Web Role. Select and add this role to solution and click OK.
Finally, because we have chose to create an ASP.NET MVC3 project, the New ASP.NET MVC 3 Project dialog appears so we can set a few basic options before its construction. For the purposes of this tutorial, leave everything at their defaults and click OK.
Once Visual Studio has finished generating all the project files, have a look in Solution Explorer. You’ll see that it has generated three projects.
- The first project is for the service, and contains the configuration information for the project and its roles.
- The second project is the web role itself and contains a default MVC application with all the files you need to get started.
- The optional third project contains the standard MVC unit tests.
Setting up your Local Development Storage Database
The difference between running a web app in Azure and running it on a conventional server is in the services that are available to you. An obvious example is that in Azure you can’t write to the local file system because there isn’t one! Instead you have to take advantage of the Windows Azure Storage Services. Specifically, there is a service called the Blob Service which behaves in a similar way to a file system.
For debugging purposes, Azure projects emulate these services locally using a database to emulate the cloud. By default, the emulator is setup to use the default instance of SQL Server Express called SQLExpress. If you’re not using the default instance of SQLExpress, you’ll need to let the storage emulator know this.
- Select Start > All Programs > Windows Azure SDK v1.4 > Windows Azure SDK Command Prompt
- Type dsinit /sqlinstance:INSTANCE_NAME and press Enter. Note that INSTANCE_NAME should be a period (.) if you’re using the unnamed default instance.
You’ll see the following dialog.
Run and Debug As Administrator
If you run the default cloud service out of the box, by pressing F5 in Visual Studio, you should see the default MVC web UI open in a browser. However, if you typically run Visual Studio as a standard user rather than an administrator, you’ll see the following dialog. Much in the same way that you must run Visual Studio as an administrator to debug web applications running on IIS, so too must you run Visual Studio as an administrator to debug and run Azure applications locally in the emulator installed with your Visual Studio Azure Tools.
Some Common Development Code
So now we have the default MVC 3 Web Application running inside the Azure Storage emulator, let’s look at some common code.
To begin, we’ll add some code to global.asax.cs to tell the application how to handle configuration changes in the role environment. This needs to be done before you can access configuration settings for the role. You’ll need to add the Azure namespaces to the top of the file to begin with.
using Microsoft.WindowsAzure; using Microsoft.WindowsAzure.ServiceRuntime;
That done, the following new code should be added at the end of the Application_Start()(); } } }; });
Writing Files to the Blob Service
We mentioned earlier that Azure includes a service called the Blob Service which behaves in a similar way to a file system. Our second code example demonstrates how to go about writing files to the blob service. The first thing you need is a connection string for the blob service.
- Open Solution Explorer
- Expand the Roles folder under the Azure Project so you can see the entry for the ASP.NET MVC 3 Role you created earlier and right click it.
- Select Properties to view the Role’s properties dialog.
- Click the Settings tab.
You’ll see one setting already exists called Microsoft.WindowsAzure.Plugins. Diagnostics.ConnectionString. This is the connection string used for diagnostic logging, and it is initially set to use development storage, which is an implementation of the storage service that runs on your machine for testing and debugging purposes.
We need to add an additional connection string that will be used for writing our blob data to storage.
- Click Add Setting.
- Change the setting name from Setting1 to DataConnectionString.
- Change the setting type from String to Connection String.
- Set the value to UseDevelopmentStorage=true.
- Hit Ctrl+S to save the new setting.
Later on we will change this to point to a live storage account so that we can make the blob files we write publically available.
For the purpose of creating a simple example, we are going to add a file upload field to the home page of our default application so that we have something to write to blob storage. So change the Home/Index.aspx view to look like this:
<asp:Content <% Html.BeginForm("UploadFile", "Home", FormMethod.Post, new {<%=ViewData["FileUri"]%></a> <% } %> <p> To learn more about ASP.NET MVC visit <a href="" title="ASP.NET MVC Website"></a>. </p> <p> <label for="uploadedFile">Upload file</label> <input type="file" name="uploadedFile"/> </p> <p> <input type="submit" value="Submit" /> </p> <% Html.EndForm(); %> </asp:Content>
We have added an opening form tag with encoding type set to multipart/form-data, which is required to allow us to include a file upload field. We have also added a simple file upload field called uploadedFile, and of course we have a closing form tag.
The form posts back to a controller method called UploadFile, so let’s have a look at the implementation of that.
[HttpPost] public ActionResult UploadFile(HttpPostedFileBase uploadedFile) { try { // #1 Setup the connection to Windows Azure Storage var storageAccount = CloudStorageAccount.FromConfigurationSetting("DataConnectionString"); var _BlobClient = storageAccount.CreateCloudBlobClient(); // #2 Get and create the container var _BlobContainer = _BlobClient.GetContainerReference("uploadedfiles"); _BlobContainer.CreateIfNotExist(); // #3 Setup the permissions on the container to be public var permissions = new BlobContainerPermissions(); permissions.PublicAccess = BlobContainerPublicAccessType.Container; _BlobContainer.SetPermissions(permissions); // #4 Write the uploaded file to blob storage var blob = _BlobContainer.GetBlobReference(uploadedFile.FileName); blob.UploadFromStream(uploadedFile.InputStream); blob.Properties.ContentType = uploadedFile.ContentType; blob.SetProperties(); ViewData["Message"] = "Your file has been uploaded to blob storage"; ViewData["FileUri"] = blob.Uri; } catch (Exception) { ViewData["Message"] = "There was a problem uploading your file"; } return View("Index "); }
Again, you also need to import the following namespaces at the top of the file:
using Microsoft.WindowsAzure; using Microsoft.WindowsAzure.StorageClient;
This code actually writes the file to blob storage, and shows how you use the Windows Azure storage services in practice. Section #1 gets the connection string setting from the service configuration file. Section #2 ensures that the container for the uploaded files exists with a call to CreateIfNotExist(). Section #3 sets up permissions on the container to make sure our uploaded files will have a public Uri. And section #4 writes the file to blob storage with blob.UploadFromStream. It is easy enough to set the filename and content type on the blob file to the same as the uploaded file, and we finish off by setting the permissions on the file to make it public.
In this simple example, all we’re doing is updating the message on the home page to show that the blob file has been created and outputing the the file’s public Uri to show that it can be downloaded from blob storage.
This is a trivial example, and in practice you would normally have several layers of abstraction between the UI and the Blob Storage API e.g. a service layer, repository and models, but it serves to demonstrate some of the differences between working with Azure and a conventionally hosted application.
Once you have coded your Azure app, you can run it within Visual Studio by setting the service project to be the start up project and starting the debugger (Press F5). This will fire up the Computer Emulator and Storage Emulator services, which implement the Azure services such as blob storage on your local machine for you to test. You should be able to upload a file and then download it again from the Uri output to the home page:
Deploying Your Application To The Cloud
So far we have built a simple MVC application that makes use of one of Azure’s services to upload a file to blob storage and make it available on a public Uri. Now we come to the main theme of this article – deploying your Azure service to the cloud.
The first step is to set up a Windows Azure account from the Windows Azure website – you can register for a free trial at or purchase a subscription depending on your needs at that a credit card is required for sign up, even for a free trial account, because if your usage exceeds the free limits you are charged at the standard rate to your card. Details of the monthly allocations are on the free trial sign up page (expand the monthly allocations link). Also, MSDN subscribers get free Azure usage time as part of the MSDN subscription, so if you have an MSDN subscription check out the Azure platform benefits for MSDN subscribers here.
Once you’ve set up an account you can sign into the management portal at , which is where you manage your accounts and applications.
The first thing to do is create a storage account to host the files written by the application. Click on Hosting Services, Storage Accounts & CDN in the lower left hand menu then click on Storage Accounts in the upper left hand menu.
To create a new storage account click on the New Storage Account icon in the toolbar, which will open up the Create a New Storage Account dialog box.
Type a prefix for the URL and select a region for your storage account – the prefix will have to be something that isn’t already taken.
The next step, once the account is created, is to change the settings of your role to point to the new storage account. Opening the settings tab for the role as you did earlier and clicking the … button next to the data connection string. This brings up the Storage Account Connection String dialog box where you type the account name (URL prefix) of your storage account and paste in the account key, which you can copy from the management portal. Your application will now write to your live storage account instead of local developer storage.
You would normally test your app running locally and writing to the live blob storage account as a last check to make sure you have the configuration correct before you go live.
The final step in publishing the app is to publish the app itself so that it is hosted by Windows Azure. This is done by right clicking the cloud service project and selecting Publish from the menu. This brings up the Publish Cloud Service dialog box:
Because this is the first time you are deploying the application, you need to select the option to Create Service Package Only. This will create the deployment package but won’t actually upload it to Azure. Instead an explorer window will open containing the files that you will need later when you create the new hosted service in the Azure management portal.
You then create a new hosted service in Azure by clicking on Hosted Services in the left hand menu of the management portal and then clicking the New Hosted Service icon in the toolbar. This brings up the Create a New Hosted Service dialog:
Enter a name and a unique URL prefix for your service – for a web application this will be the URL you use to access the application. Then choose the region you want your service to run under, enter a deployment name and upload the package files you created in Visual Studio. You should then see your hosted service being created in the management portal. If you checked the box to start after successful deployment then the new service will start automatically, and that is all there is to it!
There are two environments for each hosted service – the production environment and the staging environment. Applications published to the production environment will be directly accessible on the URL you selected in the New Hosted Service dialog box. Applications published to staging will have an auto generated URL, which you can obtain from the management portal by clicking on the staging deployment and copying the URL from the right hand properties panel.
You use these two environments to test and publish changes to an existing application without taking down the live site. So you typically maintain the current live application in the production environment while you publish and test changes to the staging environment. Once you are happy that the staging environment is ready to go live, you use the Swap VIP option in the management portal to swap over the staging and live deployments. This makes the staging version live with minimal downtime. The Swap VIP button stands for Swap Virtual IPs, so it reroutes traffic to the new app seamlessly without physically moving anything around. You will find the button in the toolbar when you select a service in the main window.
On subsequent deployments, you can speed up the publishing process by deploying direct to Azure from Visual Studio. You do this by selecting Deploy your Cloud Service to Windows Azure in the Publish Cloud Service dialog box:
The first time you do this you need to create a credential for your Azure account - select Add… from the Credentials drop down box. This shows the Cloud Service Management Authentication dialog:
Open the drop down list in step 1 and select Create… to create a new certificate. Enter a friendly name for the certificate in the dialog that pops up – this can be anything so long as it identifies the account you are deploying to. You can reuse the certificate for publishing other services to the same Azure account.
Click the link Copy the full path in step 2. This will copy the certificate path to the clip board, which you will use in the next step to upload the management certificate to Azure.
Then click on the Windows Azure Portal link to open the management portal. Click on the Hosted Services, Storage Accounts & CDN menu option and then select Management Certificates.
To upload the certificate, click Add Certificate in the toolbar then click Browse… and paste in the full certificate path you copied to the clipboard earlier.
Click OK on the Add New Management Certificate dialog and you should see you certificate added to the list under your subscription.
The final step is to copy your subscription ID from the management portal and paste it back into the dialog box in Visual Studio, which should still be open.
Now you have set up credentials in Visual Studio you can publish direct to your Azure account. You select the credentials you created from the drop down list in the publish dialog box and then select the hosted instance and storage account you want to publish to.
Click OK and the service will be deployed direct to Azure from Visual Studio! You can monitor deployment progress from within Visual Studio in the Windows Azure Activity Log. This should appear when you publish, and lists the current and previous deployments with progress bars and status messages.
When the publish is complete, the URL of the website will appear in the activity log in place of the Pending link in the screenshot above, and you can click on it here to launch the deployed website in a browser.
Summary
Now that the tools have matured, developing apps for Windows Azure is a pretty painless process, and the benefits in terms of potential scalability, performance and simplicity are very attractive. It particularly suits applications that have spiky demand such as competitions and games where traffic is driven by online marketing campaigns over a relatively short period of time, and applications which require the safety of built in redundancy without the budget to maintain the dedicated infrastructure to achieve it.
We’ve only scratched the surface of development for Azure in this article, but hopefully it gives a feeling for how easy it is to develop cloud hosted apps with Visual Studio, and how you can transfer existing .NET skills to work with the new platform. | https://www.developerfusion.com/article/125435/deploying-an-azure-application | CC-MAIN-2018-09 | refinedweb | 2,993 | 59.64 |
#include <wx/aui/auibar.h>
wxAuiToolBar is a dockable toolbar, part of the wxAUI class framework.
See also wxAUI Overview.
The appearance of this class is configurable and can be changed by calling wxAuiToolBar::SetArtProvider(). By default, native art provider is used if available (currently only in wxMSW) and wxAuiGenericToolBarArt otherwise.
This class supports the following styles:
The following event handler macros redirect the events to member function handlers 'func' with prototypes like:
Event macros for events emitted by this class:
Constructor creating and initializing the object.
Really create wxAuiToolBar created using default constructor.
get size of hint rectangle for a particular dock location
Returns whether the specified toolbar item has an associated drop down button.
Gets the window style that was passed to the constructor or Create() method.
GetWindowStyle() is another name for the same function.
Reimplemented from wxWindow. GetTextExtent().
Reimplemented from wxWindow.
Set whether the specified toolbar item has a drop down button.
This is only valid for wxITEM_NORMAL tools.
Sets the style of the window.
Please note that some styles cannot be changed after the window creation and that Refresh() might need to be called after changing the others for the change to take place immediately.
See Window styles for more information about flags.
Reimplemented from wxWindow. | https://docs.wxwidgets.org/trunk/classwx_aui_tool_bar.html | CC-MAIN-2019-47 | refinedweb | 210 | 59.19 |
Created on 2009-12-21 21:07 by rbcollins, last changed 2016-01-11 16:39 by mcepl. This issue is now closed..
Could you provide a more complete recipe for reproducing the problem,
please? I created a test_foo.py containing 'import blert', and running
python -m unittest test_foo does not mask the import error for blert in
loadTestsFromName:
...
File "/usr/lib/python2.6/unittest.py", line 576, in loadTestsFromName
module = __import__('.'.join(parts_copy))
File "test_foo.py", line 1, in <module>
import blert
ImportError: No module named blert
mkdir thing
touch thing/__init__.py
echo "import blert" > thing/test_foo.py
python -m unittest thing.test_fooTrace "/usr/lib/python2.6/unittest.py", line 875, in <module>
main(module=None)84, in loadTestsFromName
parent, obj = obj, getattr(obj, part)
AttributeError: 'module' object has no attribute 'test_foo'
Thank you. I can reproduce this on trunk as well. I'm leaving stage
set to test needed because we need to turn this into a unit test.
Note: this problem is similar in some ways to issue 5230, and a similar
solution might be appropriate (or might not :).
I'll try and look at both these issues in the next few days unless one
of you beats me to it. :-)
I'm scratching an itch at the moment, I just noted this in passing ;)
I'm partial to the 'turn it into a fake test case' approach, its what I
would do if I get to it first.
Line 348 in trunk/Lib/test/test_unittest.py has a test case to
specifically test that in the described situation, the test returns an
AttributeError. Should this test be changed so that it passes if the
exception is in fact an ImportError?
def test_loadTestsFromName__unknown_attr_name(self):
loader = unittest.TestLoader()
try:
loader.loadTestsFromName('unittest.sdasfasfasdf')
except AttributeError, e:
self.assertEqual(str(e), "'module' object has no attribute
'sdasfasfasdf'")
else:
self.fail("TestLoader.loadTestsFromName failed to raise
AttributeError")
I'm attaching a patch (against trunk) which I think is a step in the
right direction but I could use some feedback.
This patch modifies 'loadTestsFromName()' so that it saves and re-raises
an ImportError.
Further this patch introduces a new unittest
(test_loadTestsFromName__badimport) and slightly modifies two existing
unittests (test_loadTestsFromName__unknown_attr_name,
test_loadTestsFromNames__unknown_attr_name) in test_unittest.py. Also, I
think a second new unittest is needed (test_loadTestsFromNames__badimport).
Hope everyone had a good new year's. I've attached an updated patch which adds a new unittest, test_loadTestsFromNames__badimport.
Both the new unittests can use better documentation, hopefully one of you can help me with that.
Wouldn't this be a backwards incompatible change of tested behaviour though?
I'm unhappy with a straight change in behaviour because it will break code that is currently catching AttributeError.
A slightly less invasive change would be to raise an AttributeError if the module doesn't exist, otherwise letting the original error propagate.
That means distinguishing between a module not existing and an ImportError raised whilst importing the module. Example code that does this by walking the stack:
In addition we could add a new method that loads a test from name, returning an 'ErrorHolder' if loading the test fails. (A TestCase that reraises the original error when run - test discovery already does this in fact so that a test module failing to load doesn't halt discovery.)
I was also hit by this today.
For the sake of clarity, I will restate two of the scenarios that have been mentioned in this discussion:
(1) An ImportError raised whilst importing a module (original issue)
(2) A sub-module not existing.
I think the error text should be better in both cases and not just in case (1).
Currently, both (1) and (2) yield an error like the following:
AttributeError: 'module' object has no attribute 'subpackage1'
But also in case (2), the AttributeError reveals less information than the exception that was trapped earlier:
ImportError: No module named subpackage1.subpackage2
I think in both cases the error text should state not just what module was being imported but also what module was being imported from -- e.g. root_package.subpackage1.subpackage2. In other words, it should also include the leading parts of--
'.'.join(parts_copy)
In my case, I passed a list of modules to unittest, and it wasn't clear which one it was failing on by looking at only the trailing segment. Thanks.
> I think in both cases the error text should state not just what module was being imported but also what module was being imported from
FYI, I filed the following report partly in response to some of the comments I made above:
(regarding the AttributeError not displaying the name of the module from which the caller is trying to get the attribute)
This patch implements Michael's suggestion (but not the ErrorHolder part):
The unit tests all pass with no change. If this approach looks good to you, I can add a unit test to the patch that checks that this bug has been fixed.
Also, Twisted Matrix's web site doesn't seem to be responding too well at the moment, but if I recall correctly, their code has a permissive (MIT?) license that should allow a small snippet like this to be copied without taking extra steps.
Rietveld link:
This patch changes unittest.TestLoader.loadTestsFromName() so that ImportErrors will bubble up when importing from a module with a bad import statement. Before the method raised an AttributeError. The unit test code is taken from a patch by Salman Haq. The patch also includes code adapted from .
(This is my first patch, so any guidance is greatly appreciated. Thanks.)
The unit test passes on trunk for me without the fix applied.
Thanks, David. Sorry about that. The test probably requires one additional level of nesting so that "parts_copy" is not False:
+ if not parts_copy or not module_not_found:
raise
FYI, there seems to be a bug in the code cited above:
For example, _importAndCheckStack('package.subpackage.module') raises
_NoModuleFound in the following scenario:
package/subpackage/__init__.py:
import no_exist
when it should instead raise an ImportError from the buggy __init__.py.
I now think there should be at least a few unit tests to cover this case and a couple similar permutations.
Four failing unit tests (context code can use clean-up).
The new unit tests pass with this patch (minor clean-up still needed).
Thank you very much for those tests. I think you can simplify them a bit. For example, you can use assertRaises. You also might be able to use the test_support.temp_cwd context manager in your context manager, even though you don't need the cwd part.
I've attached an alternate, simpler patch to fix this bug, based on a similar fix I did in pydoc. The disadvantage of my patch is that it contains a hardcoding of the name of the function doing the import. I think this is acceptable given the much greater simplicity of my patch. I may be missing some subtlety, though, that the twisted folks know about. Or perhaps people will just find the hardcoding itself objectionable.
Thanks for your suggestions on the test code. I will do that.
It seems like the hard-coded approach would be more brittle. For example, if someone wants to replace __import__ with their own, e.g.
old__import__ = __builtins__.__import__
def __my_logging_import(*args, **kwargs):
print "Importing %s..." % args[0] # module name
return old__import__(*args, **kwargs)
__builtins__.__import__ = __my_logging_import
Then the stack traces would be different:
File "/Users/chris_g4/dev/Python/trunk/Lib/unittest/loader.py", line 92, in loadTestsFromName
module = __import__('.'.join(parts_copy))
File "unittests.py", line 8, in __my_logging_import
return old__import__(*args, **kwargs)
ImportError: No module named sdasfasfasdf
This causes the unit tests not to pass.
> I think you can simplify them a bit. For example, you can use assertRaises.
Actually, assertRaises doesn't seem to permit checking error text. That may be one reason why try-except-else is being used instead throughout.
Patch update: added unit test to cover replacing __import__, incorporated R. David Murray's suggestion to use test_support.test_cwd(), and overall code clean-up.
Also uploaded as Patch 3 to--
May I just add that I also ran into this and give my +1 for any fix :-)
Michael, if you have no objection to this patch I'm willing to commit it.
My thinking on this has evolved a bit. Changing an import error into an attribute error is just a bad api. We should just fix the bad api.
I'm still getting hit with this. In what versions is it okay for us to fix the bad API, as Michael suggested?.
My favoured fix is to catch the exception and generate a failing test that re-raises the *original exception* (with traceback) when run. That way a single failing module doesn't kill a whole test run (although it does mean later feedback about misspelt imports). It also means (the main problem being reported here) that unittest no longer masks exceptions whilst importing test modules.
This would be a new feature / api change - so it would be Python 3.3 only (but it would go into unittest2).
I updated the tests to Python3, and attempted to replicate the fix using the new importlib qualname support. Even if it had worked, this would not have finished the patch, since Michael wants to generate a failing test instead of raising the import error.
However, I'm running into weird problems and am shelving this for the moment. The issue is that if I run the tests like this:
./python -m unittest test.test_unittest
(or via regrtest) they fail with the wrong name in the error message. If I run them like this:
./python -m unittest unittest.test.test_loader.TestLoader.<name of test>
the right name is in the message. I suspect the bug is in the tests, but I'm not spotting it. Maybe someone else will see it.
Thanks. It looks like the issue with the latest patch is caused by side effects of calling importlib.import_module().
Working from the patch, I got it to the point where inserting the following four lines somewhere in the code--
try:
importlib.import_module('foo__doesnotexist')
except:
pass
caused the exception raised by the following line--
module = importlib.import_module('package_foo2.subpackage.no_exist')
to change from this--
...
File "<frozen importlib._bootstrap>", line 1250, in _find_and_load_unlocked
ImportError: No module named 'package_foo2.subpackage.no_exist'
to this--
...
File "..../Lib/importlib/_bootstrap.py", line 1257, in _find_and_load_unlocked
raise ImportError(_ERR_MSG.format(name), name=name)
ImportError: No module named 'package_foo2'
It looks like this issue is cropping up in the tests because the test code dynamically adds packages to directories that importlib may already have examined.
In the reduced test case I was creating to examine the issue, I found that inserting a call to importlib.invalidate_caches() at an appropriate location resolved the issue.
Should loadTestsFromName() call importlib.invalidate_caches() in the new patch implementation, or should the test code be aware of that aspect of loadTestsFromName()'s behavior and be adjusted accordingly (e.g. by creating the dynamically-added packages in more isolated directories)? For backwards compatibility reasons, how does loadTestsFromName() currently behave in this regard (i.e. does importlib.import_module() behave the same as __import__ with respect to caching)?
Thanks for figuring that out. And no, it doesn't matter if it is importlib.load_module or __import__, since both are provided by importlib now and both use the cache.
It's an interesting question where the cache clear should go. I *think* it should go in the test, based on the idea that the cache is part of the environment, and therefore should be reset by tests that change what's on the path. I'm not sure how we'd write an environment monitor for that, since not all changes to the import cache need to be reset. I wonder if it would be worth putting a reset into DirsOnSysPath.
Not sure what DirsOnSysPath is, but I have been only calling importlib.invalidate_caches() as needed in order to not slow down tests needlessly.
And as for detecting an environment change as necessary, that's essentially impossible since it's only needed if something changed between imports which would require adding a hook to notice that an import happened *and* a directory already covered by sys.path_importer_cache (not sys.path since that doesn't cover packages) changed w/o calling invalidate_caches().
OK, let's just do it in the individual test, then.
Because we don't know if the rest of the test code will adhere to this, we might want to consider clearing the cache before each test as well.
Alternatively, we could avoid having to call importlib.invalidate_caches() at all (and having to think about for which tests it is necessary) if we do each test in a different directory and with a different name for the test package. We could do the former as follows:
with support.temp_cwd(support.TESTFN):
dir_name = self.id().split('.')[-1] # test method name
with support.temp_cwd(dir_name) as cwd:
with support.DirsOnSysPath(cwd):
# Create package and run test.
An approach like this might be less prone to issues that are hard to troubleshoot. I verified that it works.
That would probably be OK, but I don't see why clearing the cache in those same methods (that create directories on the path) would be any harder. (It isn't necessary to clear the cache *afterward*, only before, as far as I can see, since the case of a directory not existing that the cache thinks exists should be handled correctly by importlib).
That sounds fine. I just got the sense from above that there was a desire to call invalidate_caches() as few times as possible.
And yes, I agree only before is necessary. I had just taken what you said above literally (that "[the cache] should be reset by tests that change what's on the path"), thinking that you wanted to maintain the principle that tests should leave things as they were at the beginning.
Ah, yes, I wasn't clear. Sorry.
What can I do to put this forward? It's still an issue in py2.7
My preferred fix is to wrap "an exception during import" as a test that fails instead of an AttributeError. This would definitely be a new feature rather than a bugfix - so it could only be in 3.4.
It could be made available to Python 2.7 through the unittest2 backport.
None of the current patches implement my preferred solution yet.
One relevant use case is the following:
Here the module is supposed to raise an ImportError.
Note that this issue is referred to from #15358.
Note that #8297 referenced in msg102236 is closed see changeset d84a69b7ba72.
I've just put a patch up for the related issue
I'll poke at this one briefly now, since I'm across the related code.
Ok, here is an implementation that I believe covers everything Michael wanted. I examined the other patches, and can rearrange my implementation to be more like them if desired - but at the heart of this this bug really has two requested changes:
- deferred reporting of error per Michaels request
- report missing attributes on packages as an ImportError (if one occurred)
and thus my implementation focuses on those changes.
Thanks for tackling this. It's been bugging me almost daily this past week, but as usual when this bug is in my face I had no time to actually work on a fix.
I applied this patch to default, put an invalid import in test_os, and this is the result:
rdmurray@pydev:~/python/p35>./python -m unittest test.test_os
Traceback (most recent call last):
File "/home/rdmurray/python/p35/Lib/unittest/loader.py", line 140, in loadTestsFromName
module = __import__(module_name)
File "/home/rdmurray/python/p35/Lib/test/test_os.py", line 5, in <module>
import foobar
ImportError: No module named 'foobar'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/rdmurray/python/p35/Lib/runpy.py", line 170, in _run_module_as_main
"__main__", mod_spec)
File "/home/rdmurray/python/p35/Lib/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/rdmurray/python/p35/Lib/unittest/__main__.py", line 18, in <module>
main(module=None)
File "/home/rdmurray/python/p35/Lib/unittest/main.py", line 92, in __init__
self.parseArgs(argv)
File "/home/rdmurray/python/p35/Lib/unittest/main.py", line 139, in parseArgs
self.createTests()
File "/home/rdmurray/python/p35/Lib/unittest/main.py", line 146, in createTests
self.module)
File "/home/rdmurray/python/p35/Lib/unittest/loader.py", line 202, in loadTestsFromNames
suites = [self.loadTestsFromName(name, module) for name in names]
File "/home/rdmurray/python/p35/Lib/unittest/loader.py", line 202, in <listcomp>
suites = [self.loadTestsFromName(name, module) for name in names]
File "/home/rdmurray/python/p35/Lib/unittest/loader.py", line 145, in loadTestsFromName
next_attribute, self.suiteClass)
ValueError: need more than 1 value to unpack
I get similar errors if I misspell the module name in on the command line.
From my point of view this is still an improvement over the status quo, but I don't think it is what you had in mind :).
You may need to apply the patch from first as well - I was testing with both applied.
OK, with both patches applied the output looks good. With a bit of luck I'll have some time to actually review the patches in a couple of hours.
This is what I see in my tree:
E
======================================================================
ERROR: test_os (unittest.loader.ModuleImportFailure)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/robertc/work/cpython/Lib/unittest/case.py", line 58, in testPartExecutor
yield
File "/home/robertc/work/cpython/Lib/unittest/case.py", line 577, in run
testMethod()
File "/home/robertc/work/cpython/Lib/unittest/loader.py", line 36, in testFailure
raise exception
ImportError: Failed to import test module: test_os
Traceback (most recent call last):
File "/home/robertc/work/cpython/Lib/unittest/loader.py", line 146, in loadTestsFromName
module = __import__(module_name)
File "/home/robertc/work/cpython/Lib/test/test_os.py", line 5, in <module>
import broken
ImportError: No module named 'broken'
Raced with your comment. Great - and thanks!
Patch polished up and updated - ready for review IMO.
Thanks for the review, updated patch here - I'll let this sit for a day or two for more comments then commit it Monday.
I've updated the patch to try and address the niggling clarity issues from the review. Please let me know what you think (and if I hear nothing I'll commit it as-is since the review was still ok).
New changeset 708b2e656c1d by Robert Collins in branch 'default':
Close #7559: ImportError when loading a test now shown as ImportError.
Could we backport this one to 3.x and 2.7? It's leads to really bad UX.
I would love that, but I think the fix depends on a feature. Robert will know for sure.
Its backported in unittest2 0.8.0 which is available on pypi for 2.6+ and 3.2+.
The changes are large enough that I'd hesitate to backport them in cPython itself.
It looks to me like this is complete, so closing. | https://bugs.python.org/issue7559 | CC-MAIN-2020-40 | refinedweb | 3,202 | 66.54 |
,
I'm having trouble understanding something. I build an exe with 0.6.5
py2exe and cherrypy 2.1.0 and it worked fine.
I upgraded to cherrypy 2.2.1 and py2exe no longer copies all the
contents of one of the subpackages into the library.zip file. It does
copy some, but only three of the ~15 pyc files from cherrypy/filters.
I have tried manually moving these files into the build/blah/blah
package directory, but they don't get bundled into library.zip either.
Furthermore if I copy them into the zip file myself they don't seem to
solve the problem. So I understand that these files need to be
recompiled with relative paths in to reflect their final destination.
I've tried to include the 'filters' as a package, but this doesn't work
either the files are not included. I guess the filters are loaded only
by some file that is not loaded when the
How does py2exe decide what should be bundled? Does it look at the
import statements of only my source code and not the source code of the
site-packages themselves, because I am suspecting that the locations of
the sub packages in site-packages is incorrect.
cheers, Alex.
-- | https://sourceforge.net/p/py2exe/mailman/py2exe-users/thread/44963AE8.8060005@psi.com.au/ | CC-MAIN-2018-05 | refinedweb | 210 | 73.37 |
When executing TestNG tests, there may be some scenarios where you may have to disable a particular test or a set of tests from getting executed.
For example, consider a scenario where a serious bug exists in a feature due to certain tests belonging to certain scenarios that cannot be executed. As the issue has already been identified we may need to disable the said test scenarios from being executed.
1. How to disable test
Disabling a test in TestNG can be achieved by setting the enabled attribute of the
@Test annotation to
false.
@Test( enabled=false )
This will disable the said test method from being executed as part of the test suite. If this attribute is set for the
@Test annotation at the class level, all the tests inside the class will be disabled.
2. Example of disabling tests
In below test, we have three test methods i.e.
testMethodOne(),
testMethodTwo() and
testMethodThree(). Out of these
testMethodTwo() needs to be disabled.
public class DisableTestDemo { @Test(enabled = true) public void testMethodOne() { System.out.println("Test method one."); } @Test(enabled = false) public void testMethodTwo() { System.out.println("Test method two."); } @Test public void testMethodThree() { System.out.println("Test method three."); } }
Output of above test run is given below:
[TestNG] Running: C:\Users\somepath\testng-customsuite.xml Test method one. Test method three. PASSED: testMethodOne PASSED: testMethodThree =============================================== Default test Tests run: 2, Failures: 0, Skips: 0 ===============================================
As you can see in the previous results, only two methods were executed by TestNG. The method with attribute enabled value as false was ignored from test execution.
By default the attribute value of enabled is true, hence you can see the test method with name
testMethodThree() was executed by TestNG even when the attribute value was not specified.
Happy Learning !! | https://howtodoinjava.com/testng/testng-disable-ignore-tests/ | CC-MAIN-2020-45 | refinedweb | 295 | 58.08 |
All non-code documentation such as tutorials, installation instructions, and the developer guide is written inside Markdown files such as this one. These files must be placed inside
docs/Tutorials,
docs/MainSite, or
docs/DevGuide according to what they document. Each Markdown file must start with the following line
where
The title is replaced with your desired title, and
the_tag with the tag you want to use to reference the Markdown file and documentation. Each main heading of the file starts with a single octothorpe and can have a tag. For example,
While the
file_name portion is not necessary, it is useful for reducing the likelihood of reference collisions. You can add a table of contents using the Doxygen command
\tableofcontents. All sections, subsections, subsubsections, etc. are shown in the table of contents if they have a tag, if not they do not appear.
We require you to add Doxygen documentation for any of the following you may have added to the public interface in any hpp file:
Documentation begins on the line immediately above the declaration with either a triple slash
/// or a
/*!.
Examples:
/// A brief description of the object to be documented /// /// Doxygen comments can be made /// using triple slashes... class ExampleClass{ ... rest of code }
/*! * \brief A brief description of the object to be documented * * Doxygen comments can also be made * using the "slash-star, star-slash" pattern, in this way. */ class ExampleClass{ ... rest of code }
Build your documentation by running
make doc in your build directory. You can then view it by opening
BUILD_DIR/docs/html/index.html in a browser and using the file navigator in Doxygen to locate your file.
In addition to providing a file directory of all the source files in SpECTRE, Doxygen also conveniently provides two additional organizations of the files, Modules and Namespaces. To ensure that your documentation is easily found from within Doxygen, we recommend that you add any new objects to Modules and any new namespaces to Namespaces.
///Doxygen syntax does not require a
\brief, while the C-style
/*!does.
Within a Doxygen comment, use the Doxygen keyword
\ingroup
followed by the name of the Module (you can find the list of existing Modules in
docs/GroupDefs.hpp).
Within
docs/GroupDefs.hpp, add the name of your Module (which follows the naming convention "YourNameForModule" followed by "Group") among the rest, taking care to keep the list of Modules in alphabetical order.
In the hpp file in which the namespace is declared for the first time, add a Doxygen comment to the line directly above the namespace. Subsequent files which use this namespace will not need a Doxygen comment.
We also strongly encourage you to:
Within a Doxygen comment, begin and conclude your expression with
\f$
Example:
\\\ We define \f$ \xi : = \eta^2 \f$
Note that if this expression spans more than one line, your Doxygen comment must of the "slash-star, star-slash" form shown in the previous section. One can also use (within a Doxygen comment) the form
\f[ expression \f]
to put the expression on its own line. We also encourage you to use the latex env
align for formatting these multiple-line equations. Please prefer the
align environment over the
eqnarray environment. See the texfaq for an explanation as to why. When using out-of-line equations it is important to have a blank Doxygen line above and below the equation so that ClangFormat does not merge the equation with other lines. For example,
* word word word * * \f{align}{ * a &= b \\ * c &= d * \f} * * word word word
prevents ClangFormat from changing the code to
word word word \f{align}{ a &= b \\ c &= d \f}
which may not render properly and makes the source code harder to read.
When you refer to publications or books in the documentation, add a corresponding entry to
docs/References.bib. Follow these guidelines when editing
docs/References.bib:
:from its key and add the
urlfield (see below). We remove the colon because it can create problems in HTML related to its function as a CSS selector.
(<Author>[a-zA-Z]+)(<Year>[0-9]{4})(<ID>[a-z]*). Good keys are, for instance,
Einstein1915or
LVC2016a. For books you may omit the year.
urlfield whenever possible. If a DOI has been issued by the publisher, use<doi>and also fill the
doifield of the entry. Else, use the URL provided by the publisher.
{}when capitalization is important, or when BibTeX keywords should be ignored (e.g.
andin author lists).
To cite an entry from the
docs/References.bib file in the documentation, use the Doxygen keyword
\cite
followed by the BibTeX key at the place in the documentation where you want the citation to appear. It will render as a numbered link to the bibliography page. It will also show a popover when hovering over the link, which displays the bibliographic information and provides quick access to the publication.
First, please compress your image to be under 130kB. As most images will be diagrammatical in nature this is certainly achievable!
Second, add the directory that will contain your image to the
docs/Images/ directory. Create the appropriate directories such that the directory structure in
docs/Images matches that of
src and
tests/Unit.
Finally, include the image by using the Doxygen keyword
\image html NameOfImage.png
in your hpp file.
DocStrings... | https://spectre-code.org/writing_good_dox.html | CC-MAIN-2021-49 | refinedweb | 888 | 54.42 |
SYNOPSIS
#include <numaif.h>
int get_mempolicy(int *mode, unsigned long *nodemask,
unsigned long maxnode, unsigned long addr,
unsigned long flags);
Link with -lnuma.
DESCRIPTION
get_mempolicy() retrieves the NUMA policy of the calling process or of
a memory address, depending on the setting of flags.
A NUMA machine has different memory controllers with different dis-
tancespol-
icy() pol-
icy multi-
ple of sizeof(unsigned long).
If flags specifies both MPOL_F_NODE and MPOL_F_ADDR, get_mempolicy()
will return the node ID of the node on which the address addr is allo-
cated
RETURN VALUE
On success, get_mempolicy() returns 0; on error, -1 is returned and
errno is set to indicate the error.
ERRORS.23 of the Linux man-pages project. A
description of the project, and information about reporting bugs, can
be found at. | http://www.linux-directory.com/man2/get_mempolicy.shtml | crawl-003 | refinedweb | 130 | 53.31 |
#include <MinorPlanet.hpp>
This class implements a minor planet (an asteroid).
There are two main reasons for having a separate class from Planet:
Some of the code in this class is re-used from the parent Planet class.
Get a string with data about the MinorPlanet.
Asteroids support the following InfoStringGroup flags:
Reimplemented from Planet.
renders the subscript in a minor planet provisional designation with HTML.
sets absolute magnitude (H) and slope parameter (G).
These are the parameters in the IAU's two-parameter magnitude system for minor planets. They are used to calculate the apparent magnitude at different phase angles.
set the minor planet's number, if any.
The number should be specified as an additional parameter, as englishName is passed as a constant to Planet's constructor. The number can be set only once. Any further calls of this function will have no result.
sets a provisional designation.
At the moment, the only role is for it to be displayed in the info field. | http://www.stellarium.org/doc/0.11.2/classMinorPlanet.html | CC-MAIN-2014-41 | refinedweb | 166 | 51.44 |
Comment on Tutorial - Garbage collection and Finalize() method By aathishankaran
Comment Added by : nishanth
Comment Added at : 2014-06-16 08:58:04
Comment on Tutorial : Garbage collection and Finalize() method By aathishankaran
Clear explaination..Thank. #include <iostream>
using namespace s
View Tutorial By: Jorgeus at 2012-08-30 09:07:03
3. In the case of Basic validation is it must to spec
View Tutorial By: Uma shankar at 2014-07-09 00:58:05
4. Nice Article....
View Tutorial By: Vipin Joshi at 2008-04-13 15:35:42
5. Hi Friends.... This code is working correctly with
View Tutorial By: kasi at 2009-11-25 23:52:56
6. Hi there,
this doesnt work in IE7 or firefo
View Tutorial By: Gerrard at 2009-10-17 15:19:24
7. It is really very good good notes of Public versus
View Tutorial By: Nitin Gavande at 2011-07-16 08:47:56
8. Awesome work! Ramlak, thank you for your help!
View Tutorial By: ico at 2011-03-21 04:23:11
9. Hi Jon,
It really depends on the ap
View Tutorial By: Hong at 2009-05-04 20:40:28
10. good work done.
View Tutorial By: Nitin at 2009-08-29 10:51:41 | https://www.java-samples.com/showcomment.php?commentid=39555 | CC-MAIN-2019-47 | refinedweb | 210 | 74.08 |
An Object Oriented Programming (OOP) is one of the styles of writing robust, modular, reusable, and maintainable code. A programming style that revolves around objects knows as object oriented programming (OOP). It follows the principle of software engineering called DRY “Don’t Repeat Yourself” which helps in minimizing the repetition of code.
Let’s understand the object oriented programming concepts in java by combining it with a real word example.
Classes and Objects in Object Oriented Programming
Class in java allows us to define all the variables and methods at one place related to a particular entity. For example, Let’s say we want to build a car (in this case car is the entity) then for that we first have to create a blueprint or a design of that car and that will contain the car’s dimensions like width & height, car’s name, model no, car’s speed, braking system, auto or manual mode, etc. These are the things that we first have to figure out related to the car, and based on this data or blueprint we can create the actual physical car.
In OOP, the class is where we define all of such data and because of that class is also called a blueprint. The data which is stored inside a class is in a form of variables and methods. As just after creating a blueprint or a design of a car the physical car is not created, the same way whenever we define a class in java no object will be created which means no car will be created.
To create a car in java we first have to create an object of that class. Creating an object simply means allocating memory to the class which we have created. This is done with the help of a new keyword in Java. After allocating the memory, the object will now have all the data (variables and methods) which we have defined inside our class. Using this object, we can manipulate the data which is present inside that object. You can create as many car objects as you want from the Car class provide different properties to every object. Refer to the figure shown below which will provide you with a pictorial view of how the classes and objects work.
The above image contains a Car class and using this class we are creating multiple car objects. This Car class contains two variables, company (the company who manufactured the car), speed (speed of the car) and lastly, we have a method called as getSpeed() which prints the speed of the car.
To create a physical car we first have to create an object of this class with the help of a new keyword in Java. So, here we have created 3 objects from this class, the first one represents the Honda Car which has a speed of 100 km/hr, the second object represents the Jeep car with a speed of 500 km/hr and the third object represents the BMW car with the speed of 800 km/hr.
The above example of the class and objects is representation in the code below.
import java.io.*; class MainClass {
public static void main(String[] args) {
Car honda = new Car();
honda.company = "Honda";
honda.speed = 100;
honda.getSpeed();
Car jeep = new Car();
jeep.company = "Jeep";
jeep.speed = 500;
jeep.getSpeed();
Car bmw = new Car();
bmw.company = "BMW";
bmw.speed = 800;
bmw.getSpeed();
}} class Car{ String company; int speed;
void getSpeed(){
System.out.println(company+" car's speed is "+ speed+ " Km/hr");
}}
Output: Honda car's speed is 100 Km/hr Jeep car's speed is 500 Km/hr BMW car's speed is 800 Km/hr
Don’t worry if you didn’t understand each and everything which is written inside the above code. As we move along, everything will make sense.
Constructor in Java
A constructor tells us how much space to allocate to an object in memory. Every class in java has a constructor inside it and this constructor is called the default constructor. This default constructor is created by java and will be used to allocate memory to the object. By default, while creating an object a default constructor will be called. The reason why java calls a default constructor is that the constructor knows how much memory will be required to create an object of that class. You can also create your own constructors and a class can support any number of constructors.
A job of a constructor is to allocate space in memory for an object and to initialize the variables at the time of object creation. A constructor is also called a member method because it is present inside the class, it has the same name as the class name and it is represented by round brackets ‘( )‘. A constructor will always have a public access modifier because it can be called from inside any class.
class Car{ // This is a default constructor public Car(){ } }
Whenever you will create a class you will not see the above code for the default constructor. But it will be there and while compiling the code the java compiler will call this default constructor if the compiler doesn’t find any other constructor.
Now with the default constructor, you manually have to initialize your variables after the object is created which is quite hectic at times. For, example, as we have seen above, whenever we were creating the object of the Car class at that time we were assigned the company name and the speed to the Car object manually inside our code. But we can also initialize any of these parameters at the time of object creation. To achieve this you can create your own constructors. The advantage of creating your own constructor is that you can initialize any number of variables present inside the class at the time of object creation.
class Car{ int speed; String engineType; // This is a default constructor public Car(){ } // Creating your own constructors // Constructor which takes one parameter public Car(String speed){ this.speed= speed; } // Constructor which takes two parameter public Car(int speed, String engineType){ this.speed= speed; this.engineType = engineType; } // You can call any one of the above constructors }
Here, The constructor which you will be creating will look the exact same as the default constructor, the only difference is the parameters which it will take. You can create any number of constructors as you want but the only condition is that it should take different numbers of parameters.
Calling a constructor in Java
In order to create an object, we use a new keyword in Java. By using this keyword Java compiler understands that you want to create an object. But just using the new keyword will not create an object for you as you also need to know how much space you need in memory to allocate for the object.
For that, you have to call the constructor. So, after the new keyword, you also have to write the constructor name (either the default constructor or the constructor which you have created) by passing appropriate parameters. This will call the constructor that will then tell the Java compiler how much space the object will require and the new keyword will allocate that much space and then the entire object will be stored inside a variable.
Below diagram illustrates this process.
Here, our aim is to simply create a Mercedes physical car using the Car class (blueprint). For that, we first need to know how much space we will need to store our Mercedes car object in memory (this is nothing but creating a physical car in the real world). To get the space needed to store the object we have to call the Car constructor. In this case, we are calling the Car constructor which we have created that only takes a single parameter called speed. Since we want to initialize the speed variable at the time of object creation we will call the constructor which we have created and pass in the value 100 which represents speed to the constructor.
After that, the new keyword will allocate that much amount of space to the object. This will create our Mercedes car object. Now to access this object we first have to store it in a variable and the name of that variable can be anything, here we have given mercedes as the variable name. This variable will be of type Car because the type of the object which we are storing inside this variable is also Car. So they both (object and variable) must be of compatible types.
import java.io.*; class MainClass {
public static void main(String[] args) {
// Calling our custom constructor & Creating the object
Car mercedes = new Car(100);
mercedes.company = "Mercedes-Benz";
mercedes.getSpeed();
}} class Car{ String company; int speed;
// Creating our own custom constructor
// which takes speed as a parameter
public Car(int speed){
this.speed = speed;
}
void getSpeed(){
System.out.println(company+" car's speed is "+ speed+ " Km/hr");
}}
Output: Mercedes-Benz car's speed is 100 Km/hr
Keys points to remember about a Constructor in object oriented programming
- A constructor is a member method.
- It has the same name as the class name.
- It will never return anything.
- It tells us how much space in memory needs to be allocated for an object.
Keywords used in object oriented programming
Since the Java programming language follows the object oriented programming style of writing code, it supports various keywords like static, this, super, final, which can make our life much easier in writing and maintaining our Java code and while working with object oriented programming style. These Java keywords are explained in detail below.
Static Keyword in Java
Whenever you want to call any method in java we first have to create an object of that method and then only we can call that method. Now when will the object be created? When your program execution will start. From where the program execution starts in java? From the main method, Right. But here is a catch, main() is also a method itself, Right? Yes, then who creates an object of the main() method? The answer is no one creates an object of the main() method.
But we have seen that to call a method we have to create an object of that method and here we are saying we don’t create an object of the main() method. Here, the problem is main() is the starting point from where our program execution will start, so before starting the program execution how can we can an object which is not possible. This is a deadlock condition.
To solve this deadlock, java provides us with a keyword called static. Using the static keyword you can directly call a method without creating an object in Java. That’s the reason why we use a static keyword before the main() method in our program. You can use this keyword not just for main() but for any method which you want to call without creating an object of it.
‘this’ keyword in Java
Whenever you have the same name for instance variable and for local variable then in that case we use this keyword. We have already seen this keyword in practice while we created our own constructor and passed the value of the speed variable at the time of object created.
class Car{ // instance variable int speed; // speed variable inside the constructor is a local variable public Car(int speed){ this.speed = speed; } }
Inside this class, we have declared a variable speed which is known as an instance variable. When we are creating our own constructor by passing in a variable speed as a parameter then this variable is called a local variable. Our aim here is to assign the value of local variable speed to the instance variable speed. Since both of these variables have the same name then how would you differentiate between them? This can be done with the help of this keyword.
Whenever we use this keyword on a variable it will tell the Java compiler that this variable is an instance variable and the value of the local variable needs to be assigned to this instance variable.
Super keyword in Java
The super keyword is present inside each and every constructor. You will not explicitly find the super() written inside the constructor but by default, it will be there. During inheritance, the super keyword will be used to call the default constructor of the parent class from the child class. If you want to call a constructor other than the default constructor of the parent class then you have to write the super keyword and pass in the parameters accordingly based on which constructor of the parent class you want to call from the child class.
import java.io.*; class Vehicle{
public Vehicle(){
}
public Vehicle(int i){
System.out.println("You called a constructor with 1 parameter of Parent class.");
}} class Car extends Vehicle{
public Car(){
}
public Car(int i){
//This will call the second constructor of Vehicle class
super(i);
System.out.println("Calling vehicle class constructor"); }} public class MainClass{ public static void main(String args[]){ Car myCar = new Car(10); } }
Output: You called a constructor with 1 parameter of Parent class. Calling vehicle class constructor
final keyword in Java
The final keyword can be used with a variable, method, or class.
final keyword with variable
Whenever you want to keep the value of the variable constant throughout the execution of the program then in that case you can use the final keyword. For example, every car will always be having 4 wheels. No matter what happens this value will never change. So what we can do is we can make the wheels variable as final in our program and give it a value of 4. Now, this value will remain the same you cannot change it later.
final int wheels = 4;
final keyword with a class
Now let’s see why we even need to make our class as final. Let’s say, we have 3 classes, first is the Main class, second is the Car class (child class) and third is the Vehicle class (It is a parent class. The vehicles can represent cars, bikes, trucks, etc).
The Vehicle class has a method called accelerate() using which our vehicles will move. Our Car class also wants to implement such a method so that our cars can move. But implementing the same thing again which is already present is not a good idea. So, in java, there is something called inheritance using which we can inherit the properties of the other class and access them inside our own class. This is done with the help of the extend keyword.
import java.io.*; class Vehicle{ void accelerate(){ System.out.println("move..."); } } class Car extends Vehicle{ } public class MainClass{ public static void main(String args[]){ Car myCar = new Car(); myCar.accelerate(); } }
Output: move...
In the above code, notice that after creating an object of the Car class even though the accelerate() method is not present inside the Car class still, we are able to access it with the help of inheritance. Now to avoid using any methods or variables of a class by another class (i.e to disable inheritance) we can make that class has final. In this case, we will make the Vehicle class final using the final keyword.
final class Vehicle{ void accelerate(){ System.out.println("move..."); } }
Now no other class will be able to access the methods of this class.
final keyword with a method
We will take the same example which we have used for understanding the final keyword with class, but this time we will have another accelerate() method inside our Car class as well.
import java.io.*; class Vehicle{ void accelerate(){ System.out.println("move..."); } } class Car extends Vehicle{ void accelerate(){ System.out.println("move my car..."); } } public class MainClass{ public static void main(String args[]){ Car myCar = new Car(); myCar.accelerate(); } }
Output: move my car...
In this case, we are overriding the accelerate() method inside our Car class. The overriding a method simply means that the method is already present inside a parent class (in this case Vehicle class) and then you are also creating a method with the same name and signature inside the child class (in this case Car class). In this way, you can override the contents inside the accelerate() method of the parent class with the accelerate() method of the child class. To avoid this we can make the method present inside the Vehicle class (parent class) as final so that no other class can override its methods.
class Vehicle{ final void accelerate(){ System.out.println("move..."); } }
That’s all for this blog post. In the upcoming blogs of the object oriented programming series in Java, we will see the 4 object oriented paradigms i.e Polymorphism, Inheritance, Encapsulation, and Abstraction of the object oriented programming concepts in java.
Thanks for the read. If you like the content then support us on Patreon. Your support will surely help us in writing more of such content.
To read more such blogs about Object oriented programming related stuff visit our blogs page on LionGuest Studios. | https://liongueststudios.com/object-oriented-programming-in-java/ | CC-MAIN-2021-25 | refinedweb | 2,885 | 61.67 |
Container pages for EPiServer CMS 6 based on PageTypeBuilder
Remember the new feature called Container-pages that came with CMS 6 R2 edition? If you don’t remember it is ok cause most of the project never use them since PageTypeBuilder did not support that. I say did cause I am not that updated on PageTypeBuilder at the moment.
But I think they are a nice feature that I also promote at developer courses. When I build new websites and structure the content I tend to use them and in the early days of EPiServer we used ordinary pagtypes for this. If you do not know what they are I suggest you read the blog post that Linus wrote when this feature were released,
So, a quick answer is: A PageType without a template!
They will have a special rendering inside edit-mode looking like the image below and also other nice features that Linus mentioned in his blog post.
Render Container-pages with PageTypeBuilder
The problem with PageTypeBuilder is that by default if you leave the “Filename” empty it will fallback to default.aspx or something like that. So we need to force the website to render specific PageTypes like container pages. This can be done in Global.asax.
Add EventHandlers to Global.asax
We need to add two new eventhandlers to global.asax, these will be added to Application_Start.
protected void Application_Start(Object sender, EventArgs e)
{
EditPanel.LoadedPage += new LoadedPageEventHandler(EditPanel_LoadedPage);
DataFactory.Instance.LoadedPage += new PageEventHandler(Instance_LoadedPage);
}
Next we create a class for handling all the PageTypes that should be rendered as ContainerPages.
ContainerPages.cs
Here we use PageTypeResolver from PageTypeBuilder to get our Id:s for our different pagetypes.
public class ContainerPages
{
//Pagetypes without view mode
public static readonly int?[] ContainerPageIds = new[]
{
PageTypeResolver.Instance.GetPageTypeID(typeof (MyPageType)),
PageTypeResolver.Instance.GetPageTypeID(typeof (OtherPageType))
};
}
Next we add some logic to the newly created eventhandlers, so we open global.asax again.
Our code in global.asax
public void EditPanel_LoadedPage(EditPanel sender, LoadedPageEventArgs e)
{
if (e.Page != null && ContainerPages.ContainerPageIds.Any(containerPageId => e.Page.PageTypeID == containerPageId))
{
e.Page.HasTemplate = false;
}
}
public void Instance_LoadedPage(object sender, PageEventArgs e)
{
if (e.Page != null && ContainerPages.ContainerPageIds != null && ContainerPages.ContainerPageIds.Any(containerPageId => e.Page.PageTypeID == containerPageId))
{
e.Page.HasTemplate = false;
}
}
Finally we need to add some code to our PageTypes, telling them that the do not have any Template:
[PageType(Name = "MyPageType", FileName="")]
public class MyPageType : TypedPagedData
{
public MyPageType()
{
HasTemplate = false;
}
}
That is about it.
Not sure this is the best way or if I am doing anything wrong but it looks like it is working ok. It also might work with only the last piece of code, so please give feedback!
I'm not sure if I got the idea correctly, but we are dealing with this by defining that page does not have a template in constructor of PageType class (your's last code fragment).
Yes, as i mentioned I think that is good enough but I came up with that in last minute before I published the post. The solution above has been used before I did that in the constructor of the pagetype. Great comment, exactly what I was looking for :)
Having the constructor is basically the simplest implementation. But what is the purpose of the events?
But remember to make Page Template inherit SimplePage or any other class that somehow inherits SimplePage and you will trigger LoadCurrentPage() which in turn is responsible to throw a 404 for your visitor.
The events is based on Linus Ekströms blogpost about container pages as mentioned. As i said that was my first solution and what I was showing was a way to get hold of pagetypeid on a project based on pagetypebuilder and make them as container pages. Therefore I added the last piece of code at the end since iÍ came up with that 1 week after i started the blogpost ;)
Great feedback.
I see, but if you want plain Container functionality (and inheriting from correct Page Template base class) I think it's enough with the constructor.
EPiServer seems to handle what fields to show and the 404 based on that since PageTypeBuilder has it's proxy loading tightly woven into EPiServer. | https://world.episerver.com/blogs/Eric-Pettersson/Dates/2012/12/Container-pages-for-EPiServer-CMS-6-based-on-PageTypeBuilder/ | CC-MAIN-2020-45 | refinedweb | 701 | 63.8 |
Calculating a Postfix Expression using Stack in C++
Today we will write a program to calculate the value of a postfix expression using stacks in C++.
What is Postfix Notation/Expression?
A postfix notation is where the operators are placed after the operands in the expression.
For example, the postfix notation for,
A+B is AB+
A+B/C*(D-A)^F^H is ABCDA-FH^^*/+
2+4/5*(5-3)^5^4 is 24553-54^^*/+
How to calculate Postfix Expressions
- Start reading the expression from left to right.
- If the element is an operand then, push it in the stack.
- If the element is an operator, then pop two elements from the stack and use the operator on them.
- Push the result of the operation back into the stack after calculation.
- Keep repeating the above steps until the end of the expression is reached.
- The final result will be now left in the stack, display the same.
C++ code to calculate Postfix Expression using Stack
#include<iostream> #include<stack> #include<math.h> using namespace std; // The function calculate_Postfix returns the final answer of the expression after calculation int calculate_Postfix(string post_exp) { stack <int> stack; int len = post_exp.length(); // loop to iterate through the expression for (int i = 0; i < len; i++) { // if the character is an operand we push it in the stack // we have considered single digits only here if ( post_exp[i] >= '0' && post_exp[i] <= '9') { stack.push( post_exp[i] - '0'); } // if the character is an operator we enter else block else { // we pop the top two elements from the stack and save them in two integers int a = stack.top(); stack.pop(); int b = stack.top(); stack.pop(); //performing the operation on the operands switch (post_exp[i]) { case '+': // addition stack.push(b + a); break; case '-': // subtraction stack.push(b - a); break; case '*': // multiplication stack.push(b * a); break; case '/': // division stack.push(b / a); break; case '^': // exponent stack.push(pow(b,a)); break; } } } //returning the calculated result return stack.top(); } //main function/ driver function int main() { //we save the postfix expression to calculate in postfix_expression string string postfix_expression = "59+33^4*6/-"; cout<<"The answer after calculating the postfix expression is : "; cout<<calculate_Postfix(postfix_expression); return 0; }
Output
The answer after calculating the postfix expression is: -4
The working of the above code is as:
- Push ‘5’ and ‘9’ in the stack.
- Pop ‘5’ and ‘9’ from the stack, add them and then push ‘14’ in the stack.
- Push ‘3’ and ‘3’ in the stack.
- Pop ‘3’ and ‘3’ from the stack, and push ‘27’ (3^3) in the stack.
- Push ‘4’ in the stack.
- Pop ‘4’ and ‘27’ from the stack, multiply them and then push ‘108’ in the stack.
- Push ‘6’ in the stack.
- Pop ‘6’ and ‘108’ from the stack, divide 108 by 6 and then push ‘18’ in the stack.
- Pop ‘18’ and ‘14’ from the stack, subtract 18 from 14 and then push ‘-4’ in the stack.
- Print -4 as the final answer.
Note
- We have written the above code considering only the five basic operations, that are:
- addition(+)
- subtraction(-)
- division(/)
- multiplication(*)
- exponent(^)
- We have included numbers from only 0 to 9 in our code. However, the scope of the program can be broadened over to more numbers too.
If you just want to convert infix to postfix without calculating the result, you can give a read here:
C++ program to convert infix to postfix | https://www.codespeedy.com/calculate-a-postfix-expression-using-stack-in-cpp/ | CC-MAIN-2022-27 | refinedweb | 572 | 63.9 |
A try block can also have zero or one finally block. A finally block is always used with a try block.
The syntax for using a finally block is
finally { // Code for finally block }
A finally block starts with the keyword finally, which is followed by an opening brace and a closing brace.
The code for a finally block is placed inside the braces.
There are two possible combinations of try, catch, and finally blocks: try-catch-finally or try-finally.
A try block may be followed by zero or more catch blocks.
A try block can have a maximum of one finally block.
A try block must have either a catch block, a finally block, or both.
The syntax for a try-catch-finally block is
try { // Code for try block } catch(Exception1 e1) { // Code for catch block } finally { // Code for finally block }
The syntax for a try-finally block is
try { // Code for try block } finally { // Code for finally block }
A finally block is guaranteed to be executed no matter what happens in the associated try and/or catch block.
Typically, we use a finally block to write cleanup code.
For example, we may obtain some resources that must be released when we are done with them.
A try-finally block lets you implement this logic.
Your code structure would look as follows:
try { // Obtain and use some resources here } finally { // Release the resources that were obtained in the try block }
The following code demonstrates the use of a finally block.
public class Main { public static void main(String[] args) { int x = 10, y = 0, z = 0; try {/*from w w w .j a v a 2 s .c o m*/ System.out.println("Before dividing x by y."); z = x / y; System.out.println("After dividing x by y."); } catch (ArithmeticException e) { System.out.println("Inside catch block a."); } finally { System.out.println("Inside finally block a."); } try { System.out.println("Before setting z to 2."); z = 2; System.out.println("After setting z to 2."); } catch (Exception e) { System.out.println("Inside catch block b."); } finally { System.out.println("Inside finally block b."); } try { System.out.println("Inside try block c."); } finally { System.out.println("Inside finally block c."); } try { System.out.println("Before executing System.exit()."); System.exit(0); System.out.println("After executing System.exit()."); } finally { // This finally block will not be executed // because application exits in try block System.out.println("Inside finally block d."); } } }
The code above generates the following result.
An exception that is caught can be rethrown.
public class Main { public static void main(String[] args) { try {/* w w w . j a v a 2 s .c o m*/ m1(); } catch (MyException e) { // Print the stack trace e.printStackTrace(); } } public static void m1() throws MyException { try { m2(); } catch (MyException e) { e.fillInStackTrace(); throw e; } } public static void m2() throws MyException { throw new MyException("An error has occurred."); } } class MyException extends Exception { public MyException() { super(); } public MyException(String message) { super(message); } public MyException(String message, Throwable cause) { super(message, cause); } public MyException(Throwable cause) { super(cause); } }
The code above generates the following result. | http://www.java2s.com/Tutorials/Java/Java_Object_Oriented_Design/0420__Java_finally_block.htm | CC-MAIN-2017-22 | refinedweb | 522 | 51.95 |
The World of Module Development
Web application platforms like DotNetNuke (DNN), aka web portals, have grown in popularity over the years because they do a very good job of solving the problem of basic web application plumbing. Security, user creation and management, forgotten passwords, page layout, backups, and multi-site/single-footprint capabilities are all common among major portal systems.
Web portal systems do all that for you, but that�s where they stop. Or rather, that�s where you start.
Web application platform and infrastructure is obviously necessary, but businesses need custom solutions for the problems they face. Fortunately, platforms like DotNetNuke make it possible to extend basic functionality by running custom programming within the site pages. You can do this without getting into the core programming of the portal system. Called modules in DotNetNuke, these self-contained business application components are known by many names in other portal systems: SharePoint calls them WebParts, Java-based portal servers call them Portlets, and PHP-Nuke calls them blocks.
DotNetNuke allows you to get down to the business of implementing great new web site features without having to worry about the basics of user management, pages, and security. While the process of creating your custom DNN modules isn't difficult it can be hard to get your mind wrapped around how it all works.
What I hope you will learn from this article:
I originally started down this path a year ago when I read the excellent article Creating a DotNetNuke� Module - For Absolute Beginners
The author also has a follow-up article that looks to be a good adjunct and touches on some of the same issues as this article Creating a Super-Fast and Super-Easy DotNetNuke� Module - for Absolute Beginners!
While the process of adding a DNN Module is straightforward and has a consistent internal logic, once you understand how all the pieces fit together, it sure can seem confusing and daunting at first! In order to support as wide a range of business rules and design needs as possible the DNN architecture is very robust. That same robustness however means that it is not �simple�.
I can remember that my first attempt at Dot Net Nuke module development using the DNN development tools was confusing to say the least. I followed the very detailed and well written directions from a post here on the CodeProject (Creating a DotNetNuke� Module - For Absolute Beginners) and while at the end I had a working module, I didn�t really know how it worked! This is NOT a criticism of the article, I'm just slow sometimes, the fault lies totally with me
The process is very Menu intensive and has multiple steps that at first seem disconnected from each other. I had built a module following the directions that worked exactly how it was supposed to, but I had no idea if I could build one from scratch that operated differently from the tutorial. It took 2 days of reading, DNN core code review and study, multiple Hello World attempts that did things differently at different points in the process before I felt I understood what was going on beneath the covers. So in order to help those like me who don't pick up things as quickly, I would like to lead you thru an example of adding a module, but I want to make sure that when we are done, you also understand enough of how DNN works that you can make your own module with its own functionality.
I'll show you how to create a module from scratch. You will learn to benefit from the native Microsoft .NET framework and all its power, as well as gain insight into the organization of DotNetNuke modules and related APIs. Creating modules from scratch opens a world of possibilities for commercial distribution of your creations and tight integration with DotNetNuke.
To get started, let�s take a look at the finished product we are going to create. This is a fully-functional ToDo Task List that you can begin using today to track important action items.
The ToDo Task List we will create.
Now, let�s look at how to get there.
So what exactly are we going to build? Before we get started, we should take a few moments and look at the map.
Our mission is to create a To Do Task list that allows our users to enter tasks to be completed, indicate when they are completed.
Our Functional Specification is as follows:
I strongly recommend that you first create and test your module in a separate DNN Website on a server other than your production DNN server machine. Once you have successfully downloaded and installed the DNN templates and followed Mr. Walker�s instructions on how to create a DNN Web Project, we can get started on our Module, so go ahead, follow those steps, I'll wait... Welcome back, All done? Good! In this article we will complete the following steps
That last requirement is a bit of a �cheat�. DNN has a full-featured security role system that would allow us to set up different permissions for the List based on the login but that is beyond the scope of this tutorial. For simplicity and brevity, we are just going to use the simplest case of security with this module. In a full production system or deployed module, this would not be recommended! Please see the CodeProject article Creating a Super-Fast and Super-Easy DotNetNuke� Module - for Absolute Beginners! for an example of how to implement security in a more robust way.
Sub-directories under the DesktopModules folder is where the individual modules that give DNN its functionality are located in conjunction with sub-directories in the App_Code folder, and where we will be working to add our custom modules functionality.
So let�s get started by adding the new module. DNN depends on the physical placement of modules within the project tree in order to find and load modules correctly, so it is important that the new module be added in the correct place. To make sure that your new module is added correctly, click once on the root project node before proceeding (the root project node in the figure above would be the �C:\Src\DNNModuleDevelopment� node).
Once you have clicked and put focus on the web project�s root node click File on the menu bar, then New and then File�
and the Add New Item dialog is displayed
As you can see in the dialog graphic above, the DotNetNuke Starter Kit has added a new DotNetNuke Dynamic Module template to the Add New Item dialog under My Templates.
Select your language of choice (either Visual Basic or C#), select the DotNetNuke Dynamic Module item, give the module the name, ToDoTaskList, and click Add.
Mixed C# / VB Web Project VooDoo
If you look carefully at the figure above, you may have noticed that I�m added a C# module to a VB web project, and the natural question is �can you actually do this�? The answer is �yes�, if you do a little extra work.
If you added your module using VB as the language, you can skip this section but if you added your module as C# as I did, you will need to make a modification to the web.config file so the build process knows which directory under the App_Code folder contains your module. It will treat your module�s folder as �different� and at compile / build time will determine the correct compiler to use.
Open the web.config file and find the
<compilation>node. Inside of that node near the end, you will find a commented out section. Uncomment the section and modify it so it reads as:<codeSubDirectories> <add directoryName="ToDoTaskList"/></codeSubDirectories>
After you have added the module, the development environment will show you a helpful "To Do" list that was added to your project by the template telling you what you need to do next to make your To Do Task List work (which makes this a recursive exercise, wouldn�t you say?).
The first thing we need to do, just as the instructions say, is rename the added folders that contain the skeleton of our module. Under both the App_Code and the DesktopModules folders, a ModuleName folder has been added; right mouse click on each of the ModuleName folders, select rename and rename them ToDoTaskList.
The module template added the files for your module, but it has inconveniently decided that the name of your company is � YourCompany. Actually, that is a placeholder for you to replace with the name of your choosing.
You are welcome to use the find and replace function in Visual Studio to replace YourCompany with the name of your choice, but I�m going to leave it as YourCompany. If you do want to change it, now is the time before we go any further. Save your work by clicking File on the menu bar then Save All and then build the project by clicking Build on the menu bar, then Build Web Site, just to make sure everything still compiles and the site builds correctly before we proceed.
In previous versions of the starter kit a file used to be added that you could run in Sql Server Query Analyzer or in DNN to let the DNN framework know about your module, but with 4.4.x that has been removed and now you need to use the DNN interface to register your module. You can view the official blog entry here, or you can read my cited excerpt below
The following section was excerpted and modified (to use ToDoTaskList instead of SuperSimple) from originally prepared by Michael Washington.
While logged into your DotNetNuke site as "host" in the web browser, from the menu bar select "Host". Then select "Module Definitions".
Click the black arrow that is pointing down to make the fly-out menu to appear. On that menu select "Create New Module".
In the Edit Module Definitions menu:
Then click UPDATE
Enter "ToDoTaskList" for NEW DEFINITION
Then click "Add Definition"
Next, Click "Add Control"
In the Edit Module Control menu:
Then click UPDATE
End of Excerpted section, thank you to Mr. Washington
Now let's add one more control. Click "Add Control" again and this time in the Edit Module Control menu:
Then click UPDATE
While we won't be actually using this Edit Control in exactly the way the template anticipates in this tutorial, I wanted to hook it up so that later on when I give you some more information on DNN architecture / Module interaction, it will help make sense. Also I expect you will want to use this code as a starting point for your own work, and by taking the time to put it in here, you are better prepared to extend this example.
The extra string entry of "Edit" that we made here for the KEY is used by the plumbing of DNN to display the correct control depending on what "mode" the module is being displayed in. As I said this will all make more sense a little further down the line, so keep it in mind and trust me!
Back in Visual Studio open the user control ViewToDoTaskList.ascx file under the DesktopModules\ToDoTaskList folder, and switch to Design mode. This user control was added by the module template and has been registered as the main view into your module. This control will be displayed by DNN when our module is added to a web page. As created by the module template it displays a simple list of user text entries in a ASP.NET control, to complete the �Hello World�.
We won�t be using any of its current functionality. In order to support / display our task list we are going to tear this control down and rebuild it from the ground up. Select the asp:datalist on the control and delete it!
Next let�s add a Label to the control and set it�s text to �My ToDo Task List�, and the font size to Large
The next thing to do is remove the code that the Template inserted to fill the asp:datalist we just deleted / replaced. The code inserted by the template was put in a Code Behind file. You can access the code behind file by clicking the plus symbol next to the ViewToDoTaskList.ascx node in the solution explorer and then double clicking on the ViewToDoTaskList.ascx.cs file
Once you have opened up the ViewToDoTaskList.ascx.cs code behind file, open the Event Handlers region if necessary. Find the
lstContent_ItemDataBound procedure and delete it.
Finally, in the
Page_Load procedure, delete everything in the Try block. We have just removed code that was used to fill the asp:datalist with a list of simple text entries and is no longer required. Save your work and from the menu bar, select Debug ? Start Without Debugging� and login as the Host one more time.
Once you are logged in, at the top of the window, let�s add our module
Select the ToDoTaskList in the Module drop down, set the title to �Tasks�, and set the Pane drop down to TopPane, finally click the Add link. Once you have clicked the Add link our empty control module control is added to the page
Now that we have the UI ready for our modifications, it is time to build in the database support for our module. Let�s start by opening the DNN database. The first step is to find the Database.mdf in the Solution Explorer under the App_Data folder and double click it
Once you have double clicked it, a new data connection to the database will be added to the Server Explorer window, which will allow you to add and modify database structures
Looking at our specification, we will need to add a table to the DNN database to hold our ToDo Task List. Right mouse click on the Tables node under the Database.mdf in the Server Explorer and click Add New Table
We need to add the stored procedures to support Select, Update, Insert, and Delete for our task list. You add stored procedures the same way you added the new table; right mouse click on the Stored Procedures node under the Database.mdf in the Server Explorer and click the Add New Stored Procedure.
The following five procedures allow us to retrieve the data for a particular task by ID, retrieve the data for all the tasks in the table, update a particular task�s values, insert a new task, and finally delete a particular task. Add these procedures to the database.
CREATE PROCEDURE ToDoTaskSelect @ID int AS BEGIN SELECT ID AS ItemId, Completed, Subject FROM [ToDoTask] WHERE ID = @ID END CREATE PROCEDURE ToDoTaskListSelect AS BEGIN SELECT ID AS ItemId, Completed, Subject FROM [ToDoTask] END CREATE PROCEDURE ToDoTaskUpdate @ID int, @Completed bit, @Subject varchar(MAX) AS BEGIN UPDATE [ToDoTask] SET [Completed] = @Completed, [Subject] = @Subject WHERE [ID] = @ID END CREATE PROCEDURE ToDoTaskInsert @Completed bit, @Subject varchar(MAX) AS BEGIN INSERT INTO [ToDoTask] ([Completed], [Subject]) VALUES (@Completed, @Subject) END CREATE PROCEDURE ToDoTaskDelete @ID int AS BEGIN DELETE FROM [ToDoTask] WHERE [ID] = @ID END
Now that the database is ready to work with the Task data, we need to modify the DNN data layer to work with the stored procedures we just created. Before we continue I think now would be a good time to give you a quick high-level overview of the DNN n-tiered architecture.
DNN was an outgrowth of Microsoft�s IBuySpy example web site, which was meant to highlight and recommend Microsoft�s �Best Practices� recommendations for the first release of ASP.Net. Consequently, DNN has a strong n-tiered architecture, with clear separation between the layers. The User Control that we modified earlier is one of the elements for the UI Layer. It communicates with the specific Controller and business objects for our Module that we will be modifying a little later on, and that Controller will in turn communicate with the Data Access Layer.
There are a couple of ways to proceed here, but for our example, I intend to start down in the Data Access Layer, making modifications down in the data provider to support the structure of our ToDo Task List table and stored procedures and then let those changes percolate to the top UI Layer.
While the core DNN engine depends on SQL Server to do its internal stuff, you as a module developer are not restricted to SQL Server as your backend. If you want to have your module run against an Access Database, or a MySql Database, or Oracle, or even simple text files you have that option.
Maybe you even want to have an advanced module that will support being run against either Access or MySql or SQL Server depending on what the consumer of the module wants to do.
So how exactly does the DNN architecture support this flexibility? in order to explain that let's take a look at some of the boilerplate code created by the module template. Let's take a look at the Business Layer class that was created by the template, which is located in the ToDoTaskListController.cs file. You can find that file in the App_Code\ToDoTaskList folder
.
Open the Controller class�s code and in the Public Methods region look at the first method.
public void AddToDoTaskList(ToDoTaskListInfo objToDoTaskList) { if (objToDoTaskList.Content.Trim() != "") { DataProvider.Instance().AddToDoTaskList(objToDoTaskList.ModuleId, objToDoTaskList.Content, objToDoTaskList .CreatedByUser); } }
I�d like you to look at the fifth line 5 and the interesting
DateProvider.Instance(). The
DataProvider is an abstract class that defines the methods the controller can use to interact with the actual data layer, and the Instance() is a method that will return an implementation of the DataProvider abstract class for a specific type of data access. The idea here is that the Controller runs against the DataProvider which maps thru to the specific data access that is wanted. In our case, we are only going to support SQL Server so we don�t need to make any changes to the
Instance() method. If we did want to support a data access layer other then Sql Server we would need to write an implementation of the DataProvider abstract class that goes against our specific data backend and override the
Instance() method to return it.
Ok, enough with the theory! Let�s modify some of these data layer classes and that may help you to understand where theory becomes fact.
For the next few steps, we are going to be working in the App_Code\ToDoTaskList folder and the classes that are in there. Let�s start by modifying the DataProvider.cs file.
We won�t be making any changes to Shared/Static Methods region, but we are going to be making some changes in the Abstract Methods region. This region in the DataProvider class defines the data access functions that we will be using later on when we hook up our business layer objects.
The default methods created by the module template are:
AddToDoTaskList(int ModuleId, string Content, int UserId)
GetToDoTaskList(int ModuleId, int ItemId)
GetToDoTaskLists(int ModuleId)
UpdateToDoTaskList(int ModuleId, int ItemId, string Content, int UserId)
DeleteToDoTaskList(int ModuleId, int ItemId)
Let�s modify this list as follows:
AddToDoTask(bool Completed, string Subject)
GetToDoTask(int ItemId)
GetToDoTaskList()
UpdateToDoTask(int ItemId , bool Completed , string Subject)
DeleteToDoTask(int ItemId)
You may have noticed that we pulled a little sleight of hand here. In addition to modifying our procedure names to be more meaningful, we also eliminated the one parameter that was common to all of the original methods;
int ModuleID.
For most DNN modules, if you add a module to a page, its contents on that page are unique from all other instances of the same module on other pages.
If you drop a documents module on page 1, its contents are not the same as another documents module you put on the same page or on page 2, nor would you want them to be.
The exception to this general rule is that if you specify the �add to every page� option in the document�s module setting; that functionality is even more advanced, and beyond the scope of this tutorial.
Most modules accomplish this page specific content by using the ModuleID. When a module is added to a page, that module�s instantiation is assigned a unique ModuleID. When the page loads the module, that unique id is available so that you can make the particular content for that module on that page show up.
In our case however, we are not going to worry about that. For our task list, if there is a task that needs to be done, we want to make sure you see it! Anywhere you add our module, all the tasks will show up, in this case it is perfectly correct behavior for the user to click on a button on one instance of the module and return data from another instance of the module! I leave it as an exercise for you to make module specific task lists (hint: you will need to add ModuleID to the database table and stored procedures).
Save your work and try to compile now (be prepared for some errors!). Now that we have changed the abstract DataProvider class, we are going to need to modify the SqlDataProvider that inherits from the DataProvider to make the method signatures the same. Our modifications to the abstract methods mean that any class that inherits from the DataProvider class needs to be updated to support those changes.
Open the SqlDataProvider.cs file and look in the Public Methods region. You should notice two things here; first of all, if you tried to compile, all the methods in here are marked as an error, and second, the list of methods are the same as the list of abstract methods that we modified in the DataProvider class.
You need to go through each of the methods and modify them so their signatures match with the abstract methods we just modified in the DataProvider.
AddToDoTask(bool Completed , string Subject)
DeleteToDoTask(int ItemId)
GetToDoTask(int ItemId)
GetToDoTaskList()
UpdateToDoTask(int ItemId , bool Completed , string Subject)
As well as modifying the signature, you obviously also need to modify the body of these methods. The DNN development team has used the Application Blocks from Microsoft, and we get to leverage that work to simplify this step.
The first time you do this, however, it can be a little confusing, so we�ll step thru modifying the
UpdateToDoTaskList method, explaining as we go along.
Start by looking at the original unmodified method.
public override void UpdateToDoTaskList(int ModuleId, int ItemId, string Content,int UserID) { SqlHelper.ExecuteNonQuery(ConnectionString, GetFullyQualifiedName( "UpdateToDoTaskList"), ModuleId, ItemId, Content,UserID); }
Let�s do the easy part first and modify the signature
public override void UpdateToDoTask(int ItemId, bool Completed, string Subject)
The next line is the SqlHelper.ExecuteNonQuery. A little explanation is in order here.
Microsoft has provided a set of best practice open source application blocks that are available for you to use in your projects. You can find out more about these at �Microsoft patterns & practices: Application Blocks� located at
I won�t cover the application blocks in detail, but I highly recommend you investigate their applicability for inclusion in your projects. One of the application blocks is the Data Application Block that adds an extra abstraction layer on top of the .NET data access libraries. The Block simplifies and standardizes database calls regardless of the target data engine.
Please note that while DNN continues to use the first Microsoft Application Blocks v1.0 release, there was a major overhaul and update to these blocks in 2006 and they are now called Enterprise Application Blocks v2. At the time this article went to press Version 3.0 of the Enterprise blocks was in CTP. I heartily recommend for your projects use the version 2.0 or better. Better performance, scalability, reliability, etc.
The DNN team has used the Microsoft.ApplicationBlocks.Data.SqlHelper to allow easier access to the database. By using the SqlHelper class, we can save ourselves a lot of keyboard typing, but it is helpful, even with less typing to understand how it works.
We would like to break down the SqlHelper�s call.
SqlHelper.ExecuteNonQuery( ConnectionString, GetFullyQualifiedName( "UpdateToDoTaskList"), ModuleId, ItemId, Content, UserID);
The first argument required by the ExecuteNonQuery is a database connection string. This argument�s value is supplied by the ConnectionString property within the SqlDataProvider class, and was initialized in the constructor to the value stored in the web.config file; No need to change anything with this first argument.
The next argument required by the ExecuteNonQuery is the name of a stored procedure to run. This argument�s value is supplied by the
GetFullyQualifiedName() method also within in the SqlDataProvider class. This is provided in order to support a variety of naming methodologies to help you manage and separate your stored procedures from the many other ones added by DNN core and the many modules that are out there.
We are not going to use that functionality for this walk thru, so we will replace the argument with just the name of the Update stored procedure we created: ToDoTaskUpdate.
All of the remaining arguments for the ExecuteNonQuery are part of a parameter array. The ExecuteNonQuery takes the values in this parameter array and assigns them to the parameters of the stored procedure that was specified in the second argument. These arguments must be supplied in the correct order and of the correct type for the referenced stored procedure.
So taking a look at our ToDoTaskUpdate stored procedure, we can see it takes three parameters, @ID, @Completed, @Subject; and as luck would have it, they are exactly the parameters that were specified in the method signature. Putting in place all of our changes we end up with:
public override void UpdateToDoTask(int ItemId, bool Completed, string Subject) { SqlHelper.ExecuteNonQuery( ConnectionString, �ToDoTaskUpdate�, ItemId, Completed , Subject); }
Following that as a guide, go ahead and modify the other methods.
Still need help?
If you still aren�t sure how to modify the other methods, you can see what they should look like in the Appendix at the end of this article or look in the zip download for the source.
Our data layer work is done, now is the time to save your work and try to compile� Once again, be prepared for errors! We now have some work to do on the Business Layer.
We have completed our work on the data layer, but in the process, we seem to have broken our business layer. This is actually a good thing as our specs are beginning to percolate up thru the system.
Our compiler errors are now in the Controller, but before we start trying to �fix� that class, let�s modify the ToDoTaskListInfo class to be more applicable.
The ToDoTaskListInfo class is used to represent a single task. It is thru this class that we will modify our task information. First things first, let�s rename both the file and the class to be more reflective of what it is; a single task. Rename the ToDoTaskListInfo.cs file to ToDoTask.cs. Locate the file in the Solution Explorer, right mouse click on it and select Rename
Now open the newly renamed file by double clicking on it, rename the class ToDoTask, and modify the constructor appropriately
With a better name, let�s move on to the properties in this class. The Module Template created five properties and their private member variables.
While we will need the ItemID, we don�t need the other ones, so go ahead and delete them. Add private
bool and
string member variables and name them
_Completed and
_Subject respectively. Finally, create public property gets and sets for the variables as shown in the code example below.
private bool _Completed; private string _Subject; public bool Completed { get { return _ Completed; } set { _ Completed = value; } } public string Subject { get { return _Subject; } set { _Subject = value; } }
Our UI control will access and modify the values of the individual tasks using these properties.
When modifying the class, it is important that the names of the properties be the same as the names of the columns returned from the SQL select statements (which is why if you go back and look at the SQL select Statements I specified earlier, the ID column was returned named as ItemId). The reason why this is important is that by adhering to this standard, later in the Controller we can leverage a DNN built in utility that can build and populate our objects for us, saving us some coding time. We�ll cover how this �magic� works a little further on.
That�s all we need to do with this class, so save your work.
Now we need to finish our modification of the Business layer by modifying the ToDoTaskListController.
Since we renamed our ToDoTaskListInfo class ToDoTask, the first thing we need to do in the controller is update it to reflect that change. Open the ToDoTaskListController.cs file and click Edit on the menu then click Find and Replace then click on Quick Replace and do the replacement as shown here
There is some other cleanup we need to do next; let�s start with the interfaces that the template added to our class. We will not be implementing those interfaces, so we can safely delete them. The class declaration for the controller,
public class ToDoTaskListController : ISearchable , IPortable {
should be modified to read as
public class ToDoTaskListController {
In addition, please delete the entire Optional Interfaces region from the Controller source file which would normally be used to support the interfaces we have removed from the class declaration
The ISearchable and IPortable Optional Interfaces
The ISearchable and IPortable interfaces can be implemented by your controller to let DNN know that your module supports these optional interfaces. So what do they do exactly?
� ISearchable
The ISearchable interface lets DNN know that your module should be searched when the built in DNN Search function is used. Every time the content in the module is added, deleted, or modified, DNN will use the ISearchable to walk thru your module�s individual items and add them to the search index so that users can search for content within your modules.
� IPortable
The IPortable interface is used by DNN to support Module Content copy. When the IPortable is supported, the user can elect to copy the module�s contents (the copy must be in an XML format, and you need to implement the serialization of the module�s contents), and then copy those contents to another module of the same type.
Ok, with that housekeeping out of the way, it is time to get to the meat of the modification of the Controller class. Open the Public Methods region and examine the methods contained in it.
public void AddToDoTaskList(ToDoTask objToDoTaskList) public void DeleteToDoTaskList(int ModuleId , int ItemId) public ToDoTask GetToDoTaskList(int ModuleId , int ItemId) public List<ToDoTask> GetToDoTaskLists(int ModuleId) public void UpdateToDoTaskList(ToDoTask objToDoTaskList)
Those should look familiar to you by now, they are the same calls we have modified in Data Layer, but the argument list for these methods looks a little different than the ones we have been working with so far. The earlier methods we modified in the Provider classes had parameters for the values that were being modified / added. These methods take a ToDoTask object and the values will be retrieved from the object. We obviously need to modify these signatures, and since we are working in C# we'll be good net developers and use Camel Casing instead of Hungarian
The Add, Delete, and Update functions are straightforward, so we will start by modifying them, all we need to do is remove the extraneous ModuleID parameter.
Let�s change the names and signatures so they match the following:
public void AddToDoTask(ToDoTask toDoTask) public void DeleteToDoTask(ToDoTask toDoTask) public void UpdateToDoTask(ToDoTask toDoTask)
Now we need to modify the body of the procedures. The
DeleteToDoTask method body will need to be modified to call the appropriate method in the
SqlDataProvider class. In the case of
DeleteToDoTask we want to call the SqlDataProvider�s
DeleteToDoTask(int ItemId) method. Of course you have noticed that the argument passed into this
DeleteToDoTask is a
ToDoTask object, not an int. We will retrieve the
ItemID from the
ToDoTask object that is passed in, thusly:
public void DeleteToDoTask(ToDoTask toDoTask) { DataProvider.Instance().DeleteToDoTask(toDoTask.ItemId); }
The Add and Update functions need to be modified to call the appropriate methods in the
SqlDataProvider class in the same way.
public void AddToDoTask(ToDoTask toDoTask){ DataProvider.Instance().AddToDoTask( toDoTask.Completed,toDoTask.Subject); } public void UpdateToDoTask(ToDoTask toDoTask) { DataProvider.Instance().UpdateToDoTask(toDoTask.ItemId, toDoTask.Completed, toDoTask.Subject); }
Remember
DataProvider.Instance()points to our instantiated SqlDataProvider class during run time.
The Get functions also require just some simple modifications, but there is a little behind the scenes magic going on that is worth taking the time to look at. First up, here are the modifications required for the Get methods:
public ToDoTask GetToDoTask(int itemId){ return CBO.FillObject<ToDoTask>( DataProvider.Instance().GetToDoTask(itemId)); } public List<ToDoTask> GetToDoTaskList() { return CBO.FillCollection<ToDoTask>( DataProvider.Instance().GetToDoTaskList()); }
The name change, and modification to the called function on the
Instance() method should be straightforward to you by now, but you are probably wondering about the
CBO.FillObject and
CBO.FillCollection; what are these?
You may remember back when we modified the
ToDoTask class, we made mention of the need to make sure the property names for the class matched the column names returned from our Select stored procedures, the CBO functions are why:
The CBO (which I believe stands for
Core Business Object, but don't quote me!) is a DNN Core Utility support class that can be used to build and populate our ToDoTask object, or a collection of
ToDoTask objects in an automated fashion, provided we followed the correct naming convention. These functions use .NET Reflection to attempt to create and fill our objects.
The functions are Generic functions, where we specify the type of object we will be working with inside the
< >, in this case, they are marked as
<ToDoTask>. This tells the functions to create an object of
ToDoTask type and once the object has been created, fill it will data.
The
GetToDoTask and
GetToDoTaskList functions called on the
DataProvider each return an IDataReader. The CBO functions then use reflection to examine the properties of the class type specified in the < > (
ToDoTask in our case) and attempt to find a column in the returned
IDataReader with the same name. When a match is found, the functions set the object�s property values from the data in the current row for that column. In the case of the
GetToDoTaskList it will do this for each row in the Datareader. As long as you adhered to the naming standard, the CBO utility will create and fill your ToDoTask objects with data for you.
Shameless Plug Follows: Stay tuned, in the next few weeks I will be posting up an article here at the code project where I have extracted out the relevant code for this functionality from DNN's CBO, updated it to use the newest Enterprise Library, plus caching and other improvements, [better support for true nulls] and even "reversed" the process, so Updates and Inserts can take an object too instead of having to be coded out.
Ok, once again, save your work and compile (and yes� be prepared for some errors� again!).
Finally it�s time to modify the UI! We are back to working under the DesktopModules \ ToDoTaskList folder.
Let�s see if we can get rid of those compile errors. That will be easy to do, but again a little explanation will be in order so you can understand exactly what we are doing. We will start by getting rid of the errors, the theory behind our actions will follow afterwards.
Open the EditToDoTaskList.ascx file by double clicking it in the Solution explorer and switch to the Source view if necessary.
Delete the entire table construct and all of its content. Then delete the cmdUpdate and cmdDelete linkbuttons; leave the cmdCancel on the page.
Add the follow text before the cmdCancel �There is no separate editable content for the ToDo Task List�.
Your finished source should like something like this:
<%@ Control</asp:linkbutton> </p> <dnn:audit
Open up the code behind file EditToDoTaskList.ascx.cs; again by clicking the plus symbol next to the EditToDoTaskList.ascx file and then double clicking on the .cs file.
In the Page_Load event, delete the entire contents of the Try block. Leave the
cmdCancel_Click event, but delete completely the
cmdDelete_Click and cmdUpdate_Click methods. Save your work and compile� and once again, we are back in a working state. To confirm this click Debug on the menu then click Start Without Debugging and make sure the web site comes up and our ToDo Task List is visible in the browser
Working once again (Finally!!)
So exactly what did we just delete and why? (You can skip this explanation if you want to get on with implementing the task list at Making the Task List Visible, the next major section).
DNN provides a built-in security system that allows for the definition of User Roles, Assignment of users to those roles, and Module Access permissions for those roles. A role can be denied access to a module, have just the ability to view the module content in read-only mode, or have the ability to edit the module and its contents.
This functionality is available to be used with your module without any coding on your part.
If a person is denied access when the page loads, the module won�t be loaded. If the person can view the module, but does not have edit permissions, the module will be displayed with its contents, but there will not be any way for the person to edit the module as is shown here:
If the person had Edit Module permissions, DNN will automatically provide the user with the links to Add / Edit content and modify the modules settings as shown here:
Notice the Add Content link and the Settings icon at the bottom right of the screen. When the user clicks that Add Content link, the Module is put into Edit mode and the control associated with the module that has its Key value set to "Edit", in our case the EditToDoTaskList User Control is displayed (This is the part where I finally explain to you that extra control we added in Module Definition all the way back at the beginning, remember?)
By adding the code to Add/Edit the contents of your module to the EditToDoTaskList.ascx user control, DNN will take care of security permissions for you. This seems like a good thing, and we will want people to be able to add and edit the content, so why did I have you make this control do nothing?
The problem is that when you give a person access to edit a module�s content using the built in DNN Security support, they also get the ability to edit the actual module. That means they could rename it, move it to a different pane, change its container, change the role permissions, or even delete the entire module all together! That would be bad in this case.
We want our users to be able to add tasks, and mark them as complete without giving them access to the module�s settings, so we are going to do all the editing in the ViewToDoTaskList.ascx control instead of the EditToDoTaskList.ascx. This way, as long as the user is able to view the task list, they will be able to interact with its contents.
Now I don't want you to think this is a "hole" in DNN architecture or it's security model (although I did have a developer who works with DNN a lot and should KNOW better try to tell me that my approach wasn't safe "70% of the time", but that using the built in system where someone who can edit content could also delete, move or rename the module "...is only un-secure 20% of the time", I guess that is like being a little bit pregnant). I actually think the DNN security model is very robust and advanced. I strongly urge you to study it and think carefully on how you can implement the best security for your problem domain. And in fact we wouldn't want an anonymous user to be able to edit our content, so we will be adding a little bit of security later on to restrict the ability to add / edit our task list items to registered users only.
It is time to modify the ViewToDoTaskList.ascx user control so we can work with our tasks (and about time too)!
Open the ViewToDoTaskList.ascx user control and switch to Design view if necessary. In the Toolbox window, select the Data section and drag and drop an
ObjectDataSource control onto the surface of the designer
Now that we have added an
ObjectDataSource we need to tell it what business object it should use to retrieve / work with Data. If you remember from the DNN architecture diagram, our main source of data from the UI Layer is our Controller. We just need to tell the
ObjectDataSource to use it.
Switch to source view and inside the opening tag for the
ObjectDataSource, add a new attribute
TypeName and set its value to
YourCompany.Modules.ToDoTaskList.ToDoTaskListController
Now switch back to Design view, right mouse click on the ObjectDataSource and click on Show Smart Tag (or you can click on the Common Tasks icon for the ObjectDataSource control ), and finally click on Configure Data Source�
On the first screen of the wizard, you can see that the value we just set in the source view is listed as the business object that we will bind to; Click Next.
In the next screen, we have four tabs; for each tab, we need to set the appropriate method from the Controller for the indicated function of the tab. Set them as follows.
Once you have set all the tabs, click Finish.
In the Toolbox, select the Data section and drag a
GridView onto the surface of the designer
Right mouse click on the GridView control, click on Show Smart Tag, and set the Choose Data Source dropdown to
ObjectDataSource1
With the GridView Tasks menu still visible, click on the
ItemID column header and then click Remove Column
Check the Enable Paging, Enable Editing, and Enable Deleting options in the GridView Tasks menu.
One last property to set on the ToDo Task list and we are done with it. Because we have removed the column that contains the
ItemId, if we left it like that, the row would not have access to that information which is needed for the
Delete and
Update functions. We need to make sure that the rows still have access to the
ItemId value. We accomplish this by setting the
DataKeyNames collection to include all columns that are not visible but are required for data operations.
Click on the GridView and in the Properties window find the
DataKeyNames property in the Data section and click on the ellipses button.
In the dialog that comes up, add the ItemId data field to the Selected list and click ok.
Save your work and compile. The task list could now be viewed and edited on your DNN web site, but we haven�t yet added a way to add new tasks; that�s next.
Drag a TextBox control from the Standard section of the Toolbox onto the designer.
Next drag a Button onto the designer and add it after the TextBox, name it AddTaskButton and set its text property to "Add Task".
Double click on the Add Task button so an Event Handler is added to the code behind. In the code behind, we will instantiate a new
ToDoTask object, set its Subject to the text in the TextBox, and tell the controller to add it to the list.
protected void AddTaskButton_Click(object sender , EventArgs e) { //create a new instance of the controller ToDoTaskListController cntrlr = new ToDoTaskListController(); //create a new ToDoTask and set it's values ToDoTask toDoTask = new ToDoTask(); toDoTask.Completed = false; toDoTask.Subject = TextBox1.Text; //add the Task using the controller cntrlr.AddToDoTask(toDoTask); TextBox1.Text = ""; //refresh the GridView this.GridView1.DataBind(); }
Finally we need to add some code to the
Page_Load event so that only registered users can edit our task list. In order to do that we will reference some functions in the DNN
PortalModuleBase class that our UserControl inherits from to get some information about the security permissions of the currently logged in user. If they are not registered we won't let them add or edit Tasks.
Open the code behind for the ViewToDoTaskList.ascx by clicking the plus symbol in the solution explorer and double clicking on the ViewToDoTaskList.ascx.cs.
Modify the Page_Load so it looks like the following.
protected void Page_Load(System.Object sender, System.EventArgs e) { try { if( !PortalSecurity.IsInRole("Registered Users") && !PortalSecurity.IsInRole( "Administrators") ) { this.AddTaskButton.Visible = false; this.TextBox1.Visible = false; this.GridView1.Columns[0].Visible = false; } } catch (Exception exc) //Module failed to load { Exceptions.ProcessModuleLoadException(this, exc); } }
PortalSecurity is a Static class provided by DNN's core, using it's static members we can check to see what security role permissions the current user has. Based on those permissions we can then set up the visibility, level of functionality supported by our control.
That is it; our ToDo Task List is done; go ahead and run it and see it in action.
The ToDo Task List in action.
To recap, we added a module using the template from the DotNetNuke Team. We registered our module, and then created the database table and stored procedures to support our functionality. Next starting at the bottom of the N-Tiered architecture, we modified the data layer classes to support the Task List functionality and call the correct stored procedures. Those changes were percolated up to the business layer where we modified the Controller and modified the template supplied Business Object to represent a ToDo task. Finally we modified the View control to display / edit our ToDo task list and added it to a page.
public override void AddToDoTask(bool Completed , string Subject) { SqlHelper.ExecuteNonQuery( ConnectionString, "ToDoTaskInsert", Completed,Subject); } public override void DeleteToDoTask(int ItemId) { SqlHelper.ExecuteNonQuery(ConnectionString , "ToDoTaskDelete" , ItemId); } public override IDataReader GetToDoTask(int ItemId) { return (IDataReader) SqlHelper.ExecuteReader( ConnectionString, "ToDoTaskSelect", ItemId); } public override IDataReader GetToDoTaskList() { return (IDataReader)SqlHelper.ExecuteReader( ConnectionString, "ToDoTaskListSelect"); } public override void UpdateToDoTask(int ItemId, bool Completed, string Subject) { SqlHelper.ExecuteNonQuery( ConnectionString, "ToDoTaskUpdate", ItemId, Completed, Subject); }
/*** Object: Table [dbo].[ToDoTask] Script Date: 07/04/2006 07:55:50 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[ToDoTask]( [ID] [int] IDENTITY(1,1) NOT NULL, [Completed] [bit] NOT NULL CONSTRAINT [DF_ToDoTask_Active] DEFAULT ((0)), [Subject] [varchar](max) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL CONSTRAINT [DF_ToDoTask_Subject] DEFAULT (''), CONSTRAINT [PK_ToDoTask] PRIMARY KEY CLUSTERED ( [ID] ASC )WITH (PAD_INDEX = OFF, IGNORE_DUP_KEY = OFF) ON [PRIMARY] ) ON [PRIMARY] GO SET ANSI_PADDING OFF GO
General
News
Question
Answer
Joke
Rant
Admin | http://www.codeproject.com/KB/applications/LCTDNNModDev.aspx | crawl-002 | refinedweb | 7,944 | 58.01 |
Creating First HTTP Service using ASP.NET Web API: Part1 of Many
Consuming ASP.NET Web API Service using HttpClient: Part2 of Many
In this post, we will step by step walkthrough that How to Self-Host ASP.Net Web API. We are going to host Web API in a console application. To do that creates a Console Application.
After creating Console Application make sure to change target framework to .NET Framework 4.0. To change framework right click on the project and select Properties and choose .NET Framework 4 from drop down
Next we need to add reference of ASP.Net Web API. We will add reference using NuGet. We will add NuGet Web API package. To add this right click on the project and click on Manage NuGet Package
In the search box type Microsoft.AspNet.WebApi.SelfHost and click on search button. Make sure to install Microsoft ASP.NET Web API Self Host in the project.
Accept the license term to install the package.
By this time we have set up the environment for self-hosting of Web API. Next we will add a Model class. To add that right click and add a class to the project.
Bloggers.cs
namespace webapihostapp { public class Bloggers { public string Id { get; set; } public string Name { get; set; } public string AreaOfIntrest { get; set; } } }
Next we will add a Controller class. To add that right click and add a class to the project. Make sure that you are appending Controller with the class name. For example you want to give controller name as abc then make sure that you are giving class name ABController. In this case we are giving controller name BloggersController .
Controller class needs to be inherited from ApiController class.
Next we need to write Action in the controller. We are writing a simple Action and this is returning List of Bloggers. Controller class will look like following
BloggersController.cs
using System.Collections.Generic; using System.Web.Http; namespace webapihostapp { public class BloggersController :ApiController { public List<Bloggers> GetBloggers() { return new List<Bloggers> { new Bloggers { Id="1", AreaOfIntrest ="Sql Server " , Name ="Pinal Dave"}, new Bloggers { Id="2", AreaOfIntrest ="ASP.Net " , Name =" Suprotim Agarwal " }, new Bloggers { Id="3", AreaOfIntrest ="C Sharp " , Name ="ShivPrasad Koirala"}, new Bloggers { Id="4", AreaOfIntrest ="Sql Server" , Name =" vinod Kumar " }, new Bloggers { Id="5", AreaOfIntrest ="JavaScript " , Name ="John Papa"}, new Bloggers { Id="6", AreaOfIntrest ="Dan Wahlin " , Name ="HTML5" }, new Bloggers { Id="7", AreaOfIntrest ="Business Intelligence " , Name ="Stephen Forte"}, new Bloggers { Id="8", AreaOfIntrest ="Web API " , Name ="Glen Block" }, new Bloggers { Id="9", AreaOfIntrest ="Windows Azure " , Name ="Gaurav Mantri"}, new Bloggers { Id="10", AreaOfIntrest ="Entity Framework" , Name ="Julie Lerman " }, new Bloggers { Id="11", AreaOfIntrest ="HTML" , Name ="John Bristow"}, new Bloggers { Id="12", AreaOfIntrest ="Silverlight" , Name ="Kunal" }, }; } } }
As of now we have Model and Controller in place. We will write code in Program file to host the Web API. Very first add the following namespaces in Program.cs
Then create instance of HttpSelfHostConfiguration
Next add a default route
After adding default route we need to create instance of HttpSelfHostServer and pass the configuration we just created as parameter.
Consolidating all the discussion together code to self-host ASP.Net Web API would be as following
Program.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web.Http; using System.Web.Http.SelfHost; namespace webapihostapp { class Program { static void Main(string[] args) { var config = new HttpSelfHostConfiguration(""); config.Routes.MapHttpRoute( "API Default", "api/{controller}"); using (HttpSelfHostServer server = new HttpSelfHostServer(config)) { server.OpenAsync().Wait(); Console.WriteLine("Press Enter to quit."); Console.ReadLine(); } } } }
Now press F5 to run the application
Now browse to URL and should able to download Bloggers detail as JSON.
In this way we can self-host ASP.Net Web API in a console application. I hope you find this post useful. Thanks for reading.
Pingback: ASP.Net Web API Service in Windows Phone: Part 4 of Many « debug mode……
Pingback: Dew Drop – October 8, 2012 (#1,417) | Alvin Ashcraft's Morning Dew
Does Self-Host ASP.Net Web API work on WP8(Windows Phone 8)? | https://debugmode.net/2012/10/06/how-to-self-host-asp-net-web-api-part-3-of-many-2/ | CC-MAIN-2016-40 | refinedweb | 682 | 68.26 |
On Fri, Feb 08, 2013 at 02:20:25PM -0500, Scott Stark wrote: > I? It is an interesting idea. You can certainly view a multi-tenancy jvm as another type of virtualization / hypervisor, and from that POV it would seem relevant for libvirt. I guess from my POV the big unknown is just how well it would fit in with the APIs and XML description that libvirt currently defines. ie are the current libvirt APIs / XML too focused on virtualizing operating systems to be practical for interaction with the JVM capabilities > I believe there would need to be a jvm specific section in a > separate namespace similar to the qemucmdline section. This ties into my question above, about how it would fit in with the current XML. The current QEMU specific namespace is something that we consider to be *unsupported* in libvirt - it is just there as a "get out of jail free" card. The goal is that anything in the QEMU namespace will be mapped to real libvirt APIs / XML over time. So I wouldn't want to have a JVM driver where use of a custom namespace was a fundamental part of its usage. For it to be viable, a JVM driver needs to be useable with the standardized XML schema, and any JVM specific namespace would just be for temporary hacks/ edge cases that should rarely be used. Regards, Daniel -- |: -o- :| |: -o- :| |: -o- :| |: -o- :| | https://www.redhat.com/archives/libvir-list/2013-February/msg00737.html | CC-MAIN-2015-18 | refinedweb | 237 | 66.88 |
Math::ConvexHull - Calculate convex hulls using Graham's scan (n*log(n))
use Math::ConvexHull qw/convex_hull/; $hull_array_ref = convex_hull(\@points);.
None by default, but you may choose to have the
convex_hull() subroutine exported to your namespace using standard Exporter semantics.
Math::ConvexHull implements exactly one public subroutine which, surprisingly, is called
convex_hull().
convex_hull() expects an array reference to an array of points and returns an array reference to an array of points in the convex hull.
In this context, a point is considered to be a reference to an array containing an x and a y coordinate. So an example use of
convex_hull() would be:
use Data::Dumper; use Math::ConvexHull qw/convex_hull/; print Dumper convex_hull( [ [0,0], [1,0], [0.2,0.9], [0.2,0.5], [0,1], [1,1], ] ); # Prints out the points [0,0], [1,0], [0,1], [1,1].
Please note that
convex_hull() does not return copies of the points but instead returns the same array references that were passed in.
New versions of this module can be found on or CPAN.
After implementing the algorithm from my CS notes, I found the exact same implementation in the German translation of Orwant et al, "Mastering Algorithms with Perl". Their code reads better than mine, so if you looked at the module sources and don't understand what's going on, I suggest you have a look at the book.
In early 2011, much of the module was rewritten to use the formulation of the algorithm that was shown on the Wikipedia article on Graham's scan at the time. This takes care of issues with including collinear points in the hull.
One of these days, somebody should implement Chan's algorithm. | http://search.cpan.org/~smueller/Math-ConvexHull-1.04/lib/Math/ConvexHull.pm | CC-MAIN-2015-48 | refinedweb | 286 | 61.26 |
There = { ... debug 'org.hibernate.SQL' }
The problem with
logSql is that it’s too simple – it just dumps the SQL to stdout and there is no option to see the values that are being set for the positional
? parameters. The logging approach is far more configurable since you can log to the console if you want but you can configure logging to a file, to a file just for these messages, or any destination of your choice by using an
Appender.
But the logging approach is problematic too – by enabling a second Log4j category
log4j = { ... debug 'org.hibernate.SQL' trace 'org.hibernate.type' }
we can see variable values, but you see them both for
PreparedStatement sets and for
ResultSet gets, and the gets can result in massive log files full of useless statements. This works because the “Type” classes that Hibernate uses to store and load Java class values to database columns (for example
LongType,
StringType, etc.) are in the
org.hibernate.type package and extend (indirectly)
org.hibernate.type.NullableType which does the logging in its
nullSafeSet and
nullSafeGet methods.
So if you have a GORM domain class
class Person { String name }
and you save an instance
new Person(name: 'me').save()
you’ll see output like this:
DEBUG hibernate.SQL - insert into person (id, version, name) values (null, ?, ?) TRACE type.LongType - binding '0' to parameter: 1 TRACE type.StringType - binding 'me' to parameter: 2 DEBUG hibernate.SQL - call identity()
When you later run a query to get one or more instances
def allPeople = Person.list()
you’ll see output like this
DEBUG hibernate.SQL - select this_.id as id0_0_, this_.version as version0_0_, this_.name as name0_0_ from person this_ TRACE type.LongType - returning '1' as column: id0_0_ TRACE type.LongType - returning '0' as column: version0_0_ TRACE type.StringType - returning 'me' as column: name0_0_
This isn’t bad for one instance but if there were multiple results then you’d have a block for each result containing a line for each column.
I was talking about this yesterday at my Hibernate talk at SpringOne 2GX and realized that it should be possible to create a custom
Appender that inspects log statements for these classes and ignores the statements resulting from
ResultSet gets. To my surprise it turns out that everything has changed in Grails 2.x because we upgraded from Hibernate 3.3 to 3.6 and this problem has already been addressed in Hibernate.
The output above is actually from a 1.3.9 project that I created after I got unexpected output in a 2.1.1 application. Here’s what I saw in 2.1.1:
DEBUG hibernate.SQL - /* insert Person */ insert into person (id, version, name) values (null, ?, ?) TRACE sql.BasicBinder - binding parameter [1] as [BIGINT] - 0 TRACE sql.BasicBinder - binding parameter [2] as [VARCHAR] - asd
and
DEBUG hibernate.SQL - /* load Author */ select author0_.id as id1_0_, author0_.version as version1_0_, author0_.name as name1_0_ from author author0_ where author0_.id=? TRACE sql.BasicBinder - binding parameter [1] as [BIGINT] - 1 TRACE sql.BasicExtractor - found [0] as column [version1_0_] TRACE sql.BasicExtractor - found [asd] as column [name1_0_]
So now instead of doing all of the logging from the types’ base class, it’s been reworked to delegate to
org.hibernate.type.descriptor.sql.BasicBinder and
org.hibernate.type.descriptor.sql.BasicExtractor. This is great because now we can change the Log4j configuration to
log4j = { ... debug 'org.hibernate.SQL' trace 'org.hibernate.type.descriptor.sql.BasicBinder' }
and have our cake and eat it too; the SQL is logged to a configurable Log4j destination and only the
PreparedStatement sets are logged.
Note that the SQL looks different in the second examples not because of a change in Grails or Hibernate but because I always enable SQL formatting (with
format_sql) and comments (with
use_sql_comments) in test apps so when I do enable logging it ends up being more readable, and I forgot to do that for the 1.3 app:
hibernate { cache.use_second_level_cache = true cache.use_query_cache = false cache.region.factory_class = 'net.sf.ehcache.hibernate.EhCacheRegionFactory' format_sql = true use_sql_comments = true }
Reference: Logging Hibernate SQL from our JCG partner Burt Beckwith at the An Army of Solipsists blog.Related Whitepaper: | http://www.javacodegeeks.com/2012/10/logging-hibernate-sql.html | CC-MAIN-2014-15 | refinedweb | 700 | 59.09 |
Any user can delete all issues and merge requests
Jobert from HackerOne reported this issue:
Vulnerability detailsVulnerability details
The state filter in the
IssuableFinder class has the ability to filter issues and merge requests by state. This filter is implemented by calling
public_send with unfiltered user input. This allows an attacker to call
delete_all or
destroy_all. Because the method is called before the project / group scope is applied, it deletes all issues and merge requests of the GitLab instance.
Proof of conceptProof of concept
Create two users and a new project for each of them. It doesn't matter if they're private or not. Now create an issue (or merge request) for each project. Now browse to the Issues overview. When clicking All, you'll be redirected to hxxp://gitlab-instance/root/xxxx/issues?scope=all&state=all. Simply substitude
all with
delete_all in the URL and ALL issues will be deleted: hxxp://gitlab-instance/root/xxxx/issues?scope=all&state=delete_all. To delete all merge requests, substitude
issues with
merge_requests. When requesting the
delete_all URL, a 500 internal server error will be shown. This is caused by the
delete_all method returning a boolean instead of an
ActiveRecord::Relation class.
OriginOrigin
The vulnerability comes from the fact that un-sanitized user input is passed into a
public_send call that is being called on
model.all. Here's the
execute method of the
IssuableFinder:
def execute items = init_collection items = by_scope(items) items = by_state(items) items = by_group(items) items = by_project(items) items = by_search(items) items = by_milestone(items) items = by_assignee(items) items = by_author(items) items = by_label(items) items = by_due_date(items) sort(items) end
Now take a look at the
by_state method:
def by_state(items) params[:state] ||= 'all' if items.respond_to?(params[:state]) items.public_send(params[:state]) else items end end
The controllers are passing the
state parameter without any form of sanitization or validation to the finder. Since you're passing around ActiveRecord relations,
delete_all can be called early on in the relation chain. Since the scope hasn't been applied (the
by_project is called later), this will affect all issues and merge requests.
RemediationRemediation
Never pass un-sanitized or unvalidated user input to
public_send or
send.
I've verified this is exploitable. | https://gitlab.com/gitlab-org/gitlab-ce/issues/25064 | CC-MAIN-2018-09 | refinedweb | 371 | 55.03 |
/* Fundamental definitions for GNU Emacs Lisp interpreter.. */
/* Declare the prototype for a general external function. */
#if defined (__STDC__) || defined (WINDOWSNT)
#define P_(proto) proto
#else
#define P_(proto) ()
#endif
/* These are default choices for the types to use. */
#ifndef EMACS_INT
#define EMACS_INT int
#define BITS_PER_EMACS_INT BITS_PER_INT
#endif
#ifndef EMACS_UINT
#define EMACS_UINT unsigned int
#endif
/*,
#ifdef LISP_FLOAT_TYPE
Lisp_Float,
#endif /* LISP_FLOAT_TYPE */
/* This is not a type code. It is for range checking. */
Lisp_Type_Limit
};
/* This is the set of datatypes 28
#endif
#ifndef GCTYPEBITS
#define GCTYPEBITS 3
#endif
/*
};
#ifndef NO_UNION_TYPE
#ifndef WORDS_BIG_ENDIAN
/* Definition of Lisp_Object for little-endian machines. */
typedef
union Lisp_Object
{
/* Used for comparing two Lisp_Objects;
also, positive integers can be accessed fast this way. */
int i;
struct
{
int val: VALBITS;
int type: GCTYPEBITS+1;
} s;
struct
{
unsigned int val: VALBITS;
int type: GCTYPEBITS+1;
} u;
struct
{
unsigned int val: VALBITS;
enum Lisp_Type type: GCTYPEBITS;
/* The markbit is not really part of the value of a Lisp_Object,
and is always zero except during garbage collection. */
unsigned int markbit: 1;
} gu;
}
Lisp_Object;
#else /* If WORDS_BIG_ENDIAN */
typedef
union Lisp_Object
{
/* Used for comparing two Lisp_Objects;
int type: GCTYPEBITS+1;
int val: VALBITS;
int type: GCTYPEBITS+1;
unsigned int val: VALBITS;
} u;
struct
{
/* The markbit is not really part of the value of a Lisp_Object,
and is always zero except during garbage collection. */
unsigned int markbit: 1;
enum Lisp_Type type: GCTYPEBITS;
unsigned int val: VALBITS;
} gu;
}
Lisp_Object;
#endif /* WORDS_BIG_ENDIAN */
#endif /* NO_UNION_TYPE */
/* If union type is not wanted, define Lisp_Object as just a number. */
#ifdef NO_UNION_TYPE
#define Lisp_Object EMACS_INT
#endif /* NO_UNION_TYPE */
#ifndef VALMASK
#define VALMASK ((((EMACS_INT) 1)<<VALBITS) - 1)
#endif
((int) ((unsigned int)ise) (((a) << (BITS_PER_INT-VALBITS)) >> (BITS_PER_INT-VALBITS))
#endif
/* Extract the value as an unsigned integer. This is a basis
for extracting it as a pointer to a structure in storage. */
#ifndef XUINT
#define XUINT(a) ((a) & VALMASK)
#endif
#ifndef XPNTR
#ifdef HAVE_SHM
/* In this representation, data is found in two widely separated segments. */
extern_INT-VALBITS)) >> (BITS_PER_INT-VALBITS))
#else
#define XINT(a) ((a).s.val)
#endif /* EXPLICIT_SIGN_EXTEND */
#define XUINT(a) ((a).u.val)
#define XPNTR(a) ((a).u.val)
#define XSET(var, vartype, ptr) \
(((var).s.type = ((char) (vartype))), ((var).s.val = ((int) (ptr)))) */
/* Extract a value or address from a Lisp_Object. */
#define XCONS(a) ((struct Lisp_Cons *) XPNTR(a))
#define XVECTOR(a) ((struct Lisp_Vector *) XPNTR(a))
#define XSTRING(a) ((struct Lisp_String *) XPNTR(a))
#define XSYMBOL(a) ((struct Lisp_Symbol *) XPNTR(a))
#define XFLOAT) ((struct Lisp_Process *) XPNTR(a))
#define XWINDOW(a) ((struct window *) XPNTR(a))
#define XSUBR(a) ((struct Lisp_Subr *) XPNTR(a))
#define XBUFFER)
/* Misc types. */
))
#ifdef USE_TEXT_PROPERTIES
/* guaranty. */
struct interval *parent;
/* The remaining components are `properties' of the interval.
The first four are duplicates for things which can be on the list,
for purposes of speed. */
unsigned char write_protect; /* Non-zero means can't modify. */
unsigned char visible; /* Zero means don't display. */
unsigned char front_sticky; /* Non-zero means text inserted just
before this interval goes into it. */
unsigned char rear_sticky; /*, i) \
{ if (!STRINGP ((x)) && !BUFFERP ((x))) \
x = wrong_type_argument (Qbuffer_or_string_p, (x)); }
/* Macro used to conditionally compile intervals into certain data
structures. See, e.g., struct Lisp_String below. */
#define DECLARE_INTERVALS INTERVAL intervals;
/* Macro used to conditionally compile interval initialization into
certain code. See, e.g., alloc.c. */
#define INITIALIZE_INTERVAL(ptr,val) ptr->intervals = val
#else /* No text properties */
/* If no intervals are used, make the above definitions go away. */
#define CHECK_STRING_OR_BUFFER(x, i)
#define INTERVAL
#define DECLARE_INTERVALS
#define INITIALIZE_INTERVAL(ptr,val)
#endif /* USE_TEXT_PROPERTIES */
/*. */
#ifdef HIDE_LISP_IMPLEMENTATION
#define XCAR(c) (XCONS ((c))->car_)
#define XCDR(c) (XCONS ((c))->cdr_)
#else
#define XCAR(c) (XCONS ((c))->car)
#define XCDR(c) (XCONS ((c))->cdr)
/*)))
/* Like a cons, but records info on where the text lives that it was read from */
/* This is not really in use now */
struct Lisp_Buffer_Cons
{
Lisp_Object car, cdr;
struct buffer *buffer;
int bufpos;
};
/* Nonzero if STR is a multibyte string. */
#define STRING_MULTIBYTE(STR) \
(XSTRING (STR)->size_byte >= 0)
/* Return the length in bytes of STR. */
#define STRING_BYTES(STR) \
((STR)->size_byte < 0 ? (STR)->size : (STR)->size_byte)
/* Set the length in bytes of STR. */
#define SET_STRING_BYTES(STR, SIZE) ((STR)->size_byte = (SIZE))
/* In a string or vector, the sign bit of the `size' is the gc mark bit */
struct Lisp_String
{
EMACS_INT size;
EMACS_INT size_byte;
DECLARE_INTERVALS /* `data' field must be last. */
unsigned char data[1];
};
/*];
};
/* In a symbol, the markbit of the plist is used as the gc mark bit */
struct Lisp_Symbol
{
struct Lisp_String *name;
Lisp_Object value;
Lisp_Object function;
Lisp_Object plist;
Lisp_Object obarray;
struct Lisp_Symbol *next; /* -> next symbol in this obarray bucket */
};
/*, i) \;
/* Used in a symbol value cell when the symbol's value is per-buffer.
The actual contents resemble a cons cell which starts a list like this:
(REALVALUE BUFFER CURRENT-ALIST-ELEMENT . DEFAULT-VALUE).
The cons-like structure is for historical reasons; it might be better
to just put these elements into the struct, now.
BUFFER is the last buffer for which this symbol's value was
made up to date.
CURRENT-ALIST-ELEMENT is a pointer to an element of BUFFER's
local_var_alist, that being the element whose car is this
variable. Or it can be a pointer to the
(CURRENT-ALIST-ELEMENT . DEFAULT-VALUE),
if BUFFER does not have an element in its alist for this
variable (that is, if BUFFER sees the default value of this
variable).
If we want to examine or set the value and BUFFER is current,
we just examine or set REALVALUE. If BUFFER is not current, we
store the current REALVALUE value into CURRENT-ALIST-ELEMENT,
then find the appropriate alist element for the buffer now
current and set up CURRENT-ALIST-ELEMENT. Then we set
REALVALUE out of that element, and store into BUFFER.
If we are setting the variable and the current buffer does not
have an alist entry for this variable, an alist entry is
created.
Note that REALVALUE can be a forwarding pointer. Each time it
is examined or set, forwarding must be done. Each time we
switch buffers, buffer-local variables which forward into C
variables are swapped immediately, so the C code can assume
that they are always up to date.
Lisp_Misc_Buffer_Local_Value and Lisp_Misc_Some_Buffer_Local_Value
use the same substructure. The difference is that with the latter,
merely setting the variable while some buffer is current
does not cause that buffer to have its own local value of this variable.
Only make-local-variable does that. */
struct Lisp_Buffer_Local_Value
{
int type : 16; /* = Lisp_Misc_Buffer_Local_Value
or Lisp_Misc_Some_Buffer_Local_Value */
int spacer : 13;
unsigned int check_frame : 1;
unsigned int found_for_buffer : 1;
unsigned int found_for_frame : 1;
Lisp_Object realvalue;
Lisp_Object buffer, frame;
Lisp_Object cdr;
/* In an overlay object, the mark bit of the plist is used as the GC mark.
START and END are markers in the overlay's buffer, and
PLIST is the overlay's property list. */
struct Lisp_Overlay
{
int type : 16; /* = Lisp_Misc_Overlay */
int spacer : 16;
Lisp_Object start, end, plist;
};
/* Like Lisp_Objfwd except that value lives in a slot in the
current kboard. */
struct Lisp_Kboard_Objfwd
int type : 16; /* = Lisp_Misc_Kboard_Objfwd */
int spacer : 16;
int offset;
};
/* To get the type field of a union Lisp_Misc, use XMISCTYPE.
It uses one of these struct subtypes to get the type field. */
union Lisp_Misc
{
struct Lisp_Free u_free;
struct Lisp_Marker u_marker;
struct Lisp_Intfwd u_intfwd;
struct Lisp_Boolfwd u_boolfwd;
struct Lisp_Objfwd u_objfwd;
struct Lisp_Buffer_Objfwd u_buffer_objfwd;
struct Lisp_Buffer_Local_Value u_buffer_local_value;
struct Lisp_Overlay u_overlay;
struct Lisp_Kboard_Objfwd u_kboard_objfwd;
};
#ifdef LISP_FLOAT_TYPE
/* Optional Lisp floating point type */
struct Lisp_Float
{
Lisp_Object type; /* essentially used for mark-bit
and chaining when on free-list */
#ifdef HIDE_LISP_IMPLEMENTATION
double data_;
#else
double data;
#ifdef HIDE_LISP_IMPLEMENTATION
#define XFLOAT_DATA(f) (XFLOAT (f)->data_)
#else
#define XFLOAT_DATA(f) (XFLOAT (f)->data)
#endif
#endif /* LISP_FLOAT_TYPE */
/* A character, declared with the following typedef, is a member
of some character set associated with the current buffer. */
#ifndef _UCHAR_T /* Protect against something in ctab.h on AIX. */
#define _UCHAR_T
typedef unsigned char UCHAR;
/* Meanings of slots in a Lisp_Compiled: */
#define COMPILED_ARGLIST 0
#define COMPILED_BYTECODE 1
#define COMPILED_CONSTANTS 2
#define COMPILED_STACK_DEPTH 3
#define COMPILED_DOC_STRING 4
#define COMPILED_INTERACTIVE 5
/* Flag bits in a character. These also get used in termhooks.h.
Richard Stallman <rms@gnu.ai.mit.edu> thinks that MULE
(MUlti-Lingual Emacs) might need 22 bits for the character value
itself, so we probably shouldn't use any bits lower than 0x0400000. */
#define CHAR_ALT (0x0400000)
#define CHAR_SUPER (0x0800000)
#define CHAR_HYPER (0x1000000)
#define CHAR_SHIFT (0x2000000)
#define CHAR_CTL (0x4000000)
#define CHAR_META (0x8000000)
#define CHAR_MODIFIER_MASK \
(CHAR_ALT | CHAR_SUPER | CHAR_HYPER | CHAR_SHIFT | CHAR_CTL | CHAR_META)
/* Actually, the current Emacs uses 19 bits for the character value
itself. */
#define CHARACTERBITS 19
#ifdef USE_X_TOOLKIT
#ifdef NO_UNION_TYPE
/* Use this for turning a (void *) into a Lisp_Object, as when the
Lisp_Object is passed into a toolkit callback function. */
#define VOID_TO_LISP(larg,varg) \
do { ((larg) = ((Lisp_Object) (varg))); } while (0)
#define CVOID_TO_LISP VOID_TO_LISP
/* Use this for turning a Lisp_Object into a (void *), as when the
Lisp_Object is passed into a toolkit callback function. */
#define LISP_TO_VOID(larg) ((void *) (larg))
#define LISP_TO_CVOID(varg) ((const void *) (larg))
#else /* not NO_UNION_TYPE */
/* Use this for turning a (void *) into a Lisp_Object, as when the
Lisp_Object is passed into a toolkit callback function. */
#define VOID_TO_LISP(larg,varg) \
do { ((larg).v = (void *) (varg)); } while (0)
#define CVOID_TO_LISP(larg,varg) \
do { ((larg).cv = (const void *) (varg)); } while (0)
/* Use this for turning a Lisp_Object into a (void *), as when the
Lisp_Object is passed into a toolkit callback function. */
#define LISP_TO_VOID(larg) ((larg).v)
#define LISP_TO_CVOID(larg) ((larg).cv)
#endif /* not NO_UNION_TYPE */
#endif /* USE_X_TOOLKIT */
/* The glyph datatype, used to represent characters on the display. */
/* The low 19 bits (CHARACTERBITS) are the character code, and the
bits above them except for the topmost two bits are the numeric
face ID. If FID is the face ID of a glyph on a frame F, then
F->display.x->faces[FID] contains the description of that face.
This is an int instead of a short, so we can support a good bunch
of face ID's (i.e. 2^(32 - 19 - 2) = 2048 ID's) ; given that we
have no mechanism for tossing unused frame face ID's yet, we'll
probably run out of 255 pretty quickly. */
#define GLYPH unsigned int
/* Mask bit for a glyph of a character which should be written from
right to left. */
#define GLYPH_MASK_REV_DIR 0x80000000
/* Mask bit for a padding glyph of a multi-column character. */
#define GLYPH_MASK_PADDING 0x40000000
/* Mask bits for face. */
#define GLYPH_MASK_FACE 0x3FF80000
/* Mask bits for character code. */
#define GLYPH_MASK_CHAR 0x0007FFFF /* The lowest 19 bits */
/* The FAST macros assume that we already know we're in an X window. */
/* Given a character code and a face ID, return the appropriate glyph. */
#define FAST_MAKE_GLYPH(char, face) ((char) | ((face) << CHARACTERBITS))
/* Return a glyph's character code. */
#define FAST_GLYPH_CHAR(glyph) ((glyph) & GLYPH_MASK_CHAR)
/* Return a glyph's face ID. */
#define FAST_GLYPH_FACE(glyph) (((glyph) & GLYPH_MASK_FACE) >> CHARACTERBITS)
/* Slower versions that test the frame type first. */
#define MAKE_GLYPH(f, char, face) (FAST_MAKE_GLYPH (char, face))
#define GLYPH_CHAR(f, g) (FAST_GLYPH_CHAR (g))
#define GLYPH_FACE(f, g) (FAST_GLYPH_FACE (g))
/* Return 1 iff GLYPH contains valid character code. */
#define GLYPH_CHAR_VALID_P(glyph) \
((GLYPH) (FAST_GLYPH_CHAR (glyph)) <= MAX_CHAR)
/* The ID of the mode line highlighting face. */
#define GLYPH_MODE_LINE_FACE 1
/* Data type checking */
#define NILP(x) (XFASTINT (x) == XFASTINT (Qnil))
#define GC_NILP(x) GC_EQ (x, Qnil)
#ifdef LISP_FLOAT_TYPE
#define NUMBERP(x) (INTEGERP (x) || FLOATP (x))
#define GC_NUMBERP(x) (GC_INTEGERP (x) || GC_FLOATP (x))
#else
#define NUMBERP(x) (INTEGERP (x))
#define GC_NUMBERP(x) (GC_INTEGERP (x))
#define NATNUMP(x) (INTEGERP (x) && XINT (x) >= 0)
#define GC_NATNUMP(x) (GC_INTEGERP (x) && XINT (x) >= 0)
#define INTEGERP(x) (XTYPE ((x)) == Lisp_Int)
#define GC_INTEGERP(x) (XGCTYPE ((x)) == Lisp_Int)
#define SYMBOLP(x) (XTYPE ((x)) == Lisp_Symbol)
#define GC_SYMBOLP(x) (XGCTYPE ((x)) == Lisp_Symbol)
#define MISCP(x) (XTYPE ((x)) == Lisp_Misc)
#define GC_MISCP(x) (XGCTYPE ((x)) == Lisp_Misc)
#define VECTORLIKEP(x) (XTYPE ((x)) == Lisp_Vectorlike)
#define GC_VECTORLIKEP(x) (XGCTYPE ((x)) == Lisp_Vectorlike)
#define STRINGP(x) (XTYPE ((x)) == Lisp_String)
#define GC_STRINGP(x) (XGCTYPE ((x)) == Lisp_String)
#define CONSP(x) (XTYPE ((x)) == Lisp_Cons) | https://emba.gnu.org/emacs/emacs/-/blame/0f0912e6442b71ed549b625bfc694581787da97e/src/lisp.h | CC-MAIN-2021-31 | refinedweb | 1,944 | 51.99 |
parsing XML file
Discussion in 'Java' started by Christine Mayer,
Parsing XML input from web form into namespaced xml fileJason, Apr 27, 2007, in forum: XML
- Replies:
- 2
- Views:
- 690
- Jason
- Apr 28, 2007
What libraries should I use for MIME parsing, XML parsing, and MySQL ?John Levine, Feb 2, 2012, in forum: Ruby
- Replies:
- 0
- Views:
- 831
- John Levine
- Feb 2, 2012
[XML::XSLT] empty result while parsing xml filePL, Dec 9, 2004, in forum: Perl Misc
- Replies:
- 2
- Views:
- 276
- Brian McCauley
- Dec 14, 2004
Different results parsing a XML file with XML::Simple (XML::Sax vs. XML::Parser)Erik Wasser, Mar 2, 2006, in forum: Perl Misc
- Replies:
- 5
- Views:
- 655
- Peter J. Holzer
- Mar 5, 2006 | http://www.thecodingforums.com/threads/parsing-xml-file.533208/ | CC-MAIN-2015-27 | refinedweb | 120 | 67.62 |
I form checking how much physical memory my machine has to any typo in JVM parameters, only to find out that instead of M, I had put MB there. Java accepts both small case.
Invalid initial and maximum heap size in JVM
java -Xmx4056M -Xms4056M HelloWorld
Issue: Error occurred during initialization of VM , The size of the object heap + VM data exceeds the maximum representable size
Cause: value of either -Xms or -Xmx is higher than or close to size of physical memory, as my machine has 4GB memory.
java -Xmx1056M -Xms2056M HelloWorld
Issue: Error occurred during initialization of VM , Incompatible minimum and maximum heap sizes specified
Cause: value of -Xms is higher than -Xmx
java -Xms2056M HelloWorld
Issue: Error occurred during initialization of VM , Could not reserve enough space for object heap
Cause: Only -Xms was provided and -Xmx was not provided. you will also get this error if you have typo and instead of -Xmx you have specified -Xms two times, happened to my friend last time.
Command: java -Xms1024 M -Xmx1024M HelloWorld
Issue: Error occurred during initialization of VM , Too small initial heap
Cause: If you had space between 1024 and M than JVM assumes size of -Xms as 1024 bytes only and print error that its too small for JVM to start.
Invalid heap sizeAnother scenario when "invalid heap size" issue comes while restarting JVM is, when you configure 64 bit JVM to accept memory more than 4GB but its running on 32 bit data model. This "invalid heap size" occurs particularly in Solaris box where J2SE installation continas both 32 bit and 64 bit J2SE implementation. On other environment like Windows and Linux 32 bit and 64 bit JVM are installed separately. 64 bit JVM installed on Solaris machines runs with 32 bit model if you don't specify either -d32 or -d64, which won't accept Maximum heap size of 4GB, hence "invalid heap size". You can resolve this issue by running Solaris JVM with option -d64. -d64 command line option allows JVM to use 64 bit data model if available.
public class HelloWorld{ public static void main(String args[]){ System.out.println("HelloWorld to Java"); } }
$ test@nykdev32:~ java -version java version "1.6.0_14" Java(TM) SE Runtime Environment (build 1.6.0_14-b08) Java HotSpot(TM) Server VM (build 14.0-b16, mixed mode) $ test@nykdev32:~ java -Xmx4096M HelloWorld Invalid maximum heap size: -Xmx4096M The specified size exceeds the maximum representable size. Could not create the Java virtual machine. $ test@nykdev32:~ java -d64 -Xmx4096M HelloWorld HelloWorld to Java
If you run Java program from command line than you will also get message say Could not create the Java virtual machine with each of invalid heap error but if you run your program from Eclipse you will not get message "Could not create the Java virtual machine", instead you will just see error message in console..
Other Java tutorials you may find useful
4 comments :
Hello, I am getting following error, while starting a core Java based Server in a shared Solaris host "Error occurred during initialization of VM
Could not reserve enough space for object heap" , Program was running fine few days ago, but when I am restarting it now, it's giving me this error. There is no change in JVM arguments passed to program, I also tried with different heap size (4GB, 2GB, 500MB) , but still same error, please help
Thanks for this, this saved my day. I am getting below error in Maven, while running mvn install while building a Java project on Eclipse IDE :
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Later I realized that I was using JDK 1.7 32-bit virtual machine and configuring Maven's surefire plugin, which is used to run all JUnit test cases with following JVM memory arguments :
-Xms800m -Xmx800m -XX:MaxPermSize=500m
Since this configuration was actually for 64-bit JVM, it was throwing Invalid Heap Size error. There was two ways to fix that, either moving to 64-bit JDK or reducing memory size to half e.g.
-Xms400m -Xmx400m -XX:MaxPermSize=200m
For me second solution works fine. Thanks
I am getting following error while running my maven build :
Error occurred during initialization of VM
Incompatible minimum and maximum heap sizes specified
Please help
The particular error listed at the top ("Invalid initial heap size: -Xms=1024M") is caused by having the equals sign, so changing it to just "-Xms1024M" should take care of it, as I just found out from a misconfiguration of my own. | http://javarevisited.blogspot.com/2012/12/invalid-initial-and-maximum-heap-size.html | CC-MAIN-2015-22 | refinedweb | 782 | 53.65 |
Oracle Asks Apache To Rethink Java Committee Exit
kdawson posted more than 3 years ago | from the with-sugar-on-top dept.
.'"
First Trout! (-1)
Anonymous Coward | more than 3 years ago | (#34518094)
They reconsidered (5, Insightful)
Arancaytar (966377) | more than 3 years ago | (#34518098)
Answer is still no.
Re:They reconsidered (2)
hedwards (940851) | more than 3 years ago | (#34518118)
Re:They reconsidered (5, Interesting)
SerpentMage (13390) | more than 3 years ago | (#34518212) (1)
badboy_tw2002 (524611) | more than 3 years ago | (#34518412)
What's wrong with sailing? If you had said "no holds barred bloodsport" that might have fit your argument a little more.
Re:They reconsidered (5, Informative)
PCM2 (4486) | more than 3 years ago | (#34518462):They reconsidered (1)
ocdscouter (1922930) | more than 3 years ago | (#34518526)
Re:They reconsidered (2)
peragrin (659227) | more than 3 years ago | (#34518570)
I spend 25 weeks every summer racing sailboats, 3-4 times a week.
And ellison's boat isn't the fastest in the world, but it is among them. The fastest went 55 knots in 25 knots of wind.
Re:They reconsidered (5, Funny)
Anonymous Coward | more than 3 years ago | (#34518826)
I spend 25 weeks every summer racing sailboats, 3-4 times a week.
And ellison's boat isn't the fastest in the world, but it is among them. The fastest went 55 knots in 25 knots of wind.
What planet?
Re:They reconsidered (1)
Elbart (1233584) | more than 3 years ago | (#34519022)
Re:They reconsidered (1, Informative)
david_thornley (598059) | more than 3 years ago | (#34519054) racing sometime. Same principle.
Re:They reconsidered (2)
PitaBred (632671) | more than 3 years ago | (#34519186)
Look at the bolded text in the post you replied to.
He was wondering on what planet summers were 25 weeks long. Not on what planet you could do 55 knots with a 25 knot wind.
Re:They reconsidered (1)
LordLucless (582312) | more than 3 years ago | (#34519492)
Planets with two hemispheres? I know snowboarders who chase winter around the world for half of the year.
Re:They reconsidered (0)
Anonymous Coward | more than 3 years ago | (#34519292)
It's complicated, and you don't need to understand the mechanics unless you like sailboats, but, yes, it is possible to move faster than the wind speed. If you have a chance, watch iceboat racing sometime. Same principle.
I still don't think any of that will get you 25 weeks of summer per year
;)
Re:They reconsidered (0)
Anonymous Coward | more than 3 years ago | (#34519588)
I think the GP (different AC, BTW) meant "on what planet do you have 25 weeks of summer per year".
Re:They reconsidered (1)
claytonjr (1142215) | more than 3 years ago | (#34519174)
He must sail his boat around Gulf Coast, near Mississippi, where the 4 seasons are Almost Summer, Summer, Still Summer, and Christmas.
Re:They reconsidered (1)
SerpentMage (13390) | more than 3 years ago | (#34518704)
Thanks for clearing that up. Yeah that is exactly what I meant.
Re:They reconsidered (1)
BigFootApe (264256) | more than 3 years ago | (#34519444). It is a life and a career.
Re:They reconsidered (3, Interesting)
0100010001010011 (652467) | more than 3 years ago | (#34518224):They reconsidered (1)
mark72005 (1233572) | more than 3 years ago | (#34518228)
Re:They reconsidered (1)
nigelo (30096) | more than 3 years ago | (#34518274)
...less important to do things that may have nebulous or down-the-road benefit in favor of only putting effort into things from which you can draw a straight line to profit.
Which has been Oracle's apparent MO since the beginning, I would say.
Re:They reconsidered (1)
Red Flayer (890720) | more than 3 years ago | (#34519052)
What?
Oracle has been acquiring companies up the vertical* for many years.
I think they've been trying to avoid corporate bloat while still making acquisitions that make sense.
*And by 'up the vertical', I don't mean 'where the sun don't shine'. I mean middleware, consulting, etc.
Re:They reconsidered (5, Insightful)
erroneus (253617) | more than 3 years ago | (#34518398) (1)
Anonymous Coward | more than 3 years ago | (#34518444)
I thought MySQL was already forked to the point of too many prongs.
Re:They reconsidered (1)
Pharmboy (216950) | more than 3 years ago | (#34519026)
And PostgreSQL has gained interest and mindshare. Microsoft is probably giddy with excitement over all the fragmentation.
Re:They reconsidered (1)
SplashMyBandit (1543257) | more than 3 years ago | (#34519210)
Re:They reconsidered (4, Insightful)
SplashMyBandit (1543257) | more than 3 years ago | (#34519190):They reconsidered (1)
M. Baranczak (726671) | more than 3 years ago | (#34518966):They reconsidered (1)
TemporalBeing (803363) | more than 3 years ago | (#34519042):They reconsidered (2)
interval1066 (668936) | more than 3 years ago | (#34518678)
Best quote ever. (5, Insightful)
Pharmboy (216950) | more than 3 years ago | (#34518128)
'All that remains is a zombie, walking the streets of the Java ecosystem, looking for brains.'
Best quote ever. Hopefully, Oracle will get the clue and realize that you have play nice, even when you own the toys. Otherwise, you play alone.
Re:Best quote ever. (4, Insightful)
SerpentMage (13390) | more than 3 years ago | (#34518262) (5, Funny)
Anonymous Coward | more than 3 years ago | (#34518174)
Oracle has the Midas Touch. Everything they touch turns into a profitable venture--I mean, if you don't count the ones that became completely useless as a result.
Re:King Midas (1)
rtfa-troll (1340807) | more than 3 years ago | (#34519430):King Midas (1)
thanasakis (225405) | more than 3 years ago | (#34519712)
"not a Midas touch of Gold, but a Midas touch of death"
I like when people talk (-1, Offtopic)
kubitus (927806) | more than 3 years ago | (#34518178)
Cynical but true... (5, Interesting)
Anonymous Coward | more than 3 years ago | (#34518402)... (3, Interesting)
rudy_wayne (414635) | more than 3 years ago | (#34518888)... (1)
Doomdark (136619) | more than 3 years ago | (#34519056); although mostly to MySQL which may not be complete solution. But at least for now MySQL support is still much less expensive than Oracle DB, and may remain so because of different profiling (expensive "enterprise" DB, slightly less expensive "medium-size" mysql).
These fears are well-founded; Oracle is competent at squeezing more money out of existing customers. That's why they are so profitable.
Re:Cynical but true... (2)
SplashMyBandit (1543257) | more than 3 years ago | (#34519246)
Re:Cynical but true... (4, Interesting)
ozbird (127571) | more than 3 years ago | (#34519236)
Too bad Mono isn't more mature (1)
msobkow (48369) | more than 3 years ago | (#34519270):Cynical but true... (1)
Mike Van Pelt (32582) | more than 3 years ago | (#34519352).
Looking at the bigger picture (5, Insightful)
Bruce Perens (3872) | more than 3 years ago | (#34518450) (0)
Anonymous Coward | more than 3 years ago | (#34518550)
Re:Looking at the bigger picture (1)
lakeland (218447) | more than 3 years ago | (#34519460)
Which is a shame, because from a technical perspective I really like
.NET.
Re:Looking at the bigger picture (2)
Jason Earl (1894) | more than 3 years ago | (#34519768)
People that think Microsoft is more evil that Oracle simply haven't been paying attention. Oracle is basically suing Google for cloning Java. Microsoft has actually *helped* Novell clone
.NET.
Re:Looking at the bigger picture (0)
Anonymous Coward | more than 3 years ago | (#34518602)
You meant that in a "look at this Java mess, why the fuck would anyone want to mess around with MS?" way, right?
:)
Re:Looking at the bigger picture (5, Insightful)
inode_buddha (576844) | more than 3 years ago | (#34518646):Looking at the bigger picture (1)
abigor (540274) | more than 3 years ago | (#34519256)
This debate has nothing whatsoever to do with the Apache webserver.
Re: Doh (1)
hexwyrds (948410) | more than 3 years ago | (#34519386)
Tomcat is an Apache based server
Re:Looking at the bigger picture (1)
rtfa-troll (1340807) | more than 3 years ago | (#34519450)
Re:Looking at the bigger picture (1)
ToasterMonkey (467067) | more than 3 years ago | (#34519802):Looking at the bigger picture (1)
asc99c (938635) | more than 3 years ago | (#34518650) (5, Interesting)
eln (21727) | more than 3 years ago | (#34518666) (3, Interesting)
fwarren (579763) | more than 3 years ago | (#34518856):Looking at the bigger picture (1)
eln (21727) | more than 3 years ago | (#34518936)
One wonders what would have happened if, say, RedHat had bought Sun (leaving aside the financial impossibility of such a thing) and simply been silent for this long. I somehow doubt so many forks would have been created. Right or wrong, the impetus for most of this activity on the community's side has been based primarily on Oracle's pre-existing reputation rather than its actions.
Re:Looking at the bigger picture (3)
M. Baranczak (726671) | more than 3 years ago | (#34519082)
You want actions? Just off the top of my head, there was the Google lawsuit, and the killing of OpenSolaris.
Re:Looking at the bigger picture (1)
ByteSlicer (735276) | more than 3 years ago | (#34519660)
There is no step 4. Step 2 [wikipedia.org] is the ? step, step 3 is Profit!
Re:Looking at the bigger picture (1)
tangent (3677) | more than 3 years ago | (#34519064)
"Very timidly"? Nonsense. You want an example of open source timidity, look at Microsoft: how many substantial open-source programs do they provide? By comparison, Sun was profligate. Oracle is a clear regression back along the continuum toward the Microsoft end.
The question in my mind is, does Oracle actually intend to regress like this, or are we just seeing the fallout of standard merger problems? Is this all just stemming from mismanagement, resource allocation battles, and general confusion, or is there a mandate from the top to regress?
Re:Looking at the bigger picture (2)
saleenS281 (859657) | more than 3 years ago | (#34519126)
Re:Looking at the bigger picture (1)
rtfa-troll (1340807) | more than 3 years ago | (#34519466)
Re:Looking at the bigger picture (1)
saleenS281 (859657) | more than 3 years ago | (#34519558)
the 'closed' nature of GPL? (1)
fireylord (1074571) | more than 3 years ago | (#34519568)
well the only thing 'closed' about the GPL in comparison to BSD licences is the Free Lunch counter (unless you give those downstream in the foodchain the same lunch menu)
Re:Looking at the bigger picture (0)
Anonymous Coward | more than 3 years ago | (#34519170)
This is what really puzzles me about this whole thing. Now that Sun has been acquired by the Evil Empire (tm), everybody acts like Sun was some paragon of Open Source virtue. Sun always approached open source very timidly, and only ever seemed to make the bare minimum gestures toward open source, just enough to generate some good press about it. None of Sun's "open source" licenses have been anywhere near what most people would consider really "open". Open Source has always been more about marketing than philosophy with Sun.
What exactly "really 'open'"?
CDDL was open source 'verified' by the OSI. They GPLed Java. They GPLed OpenOffice. They gave the NFS spec to the IETF. They GPLed some of their CPUs (and allowed SPARC in general to be licensed by third-parties).
What exactly is/was not open source about Sun? Which company has done better?
Re:Looking at the bigger picture (1)
DragonWriter (970822) | more than 3 years ago | (#34518768)
Possibly. Certainly, the fact that Oracle is publicly appealing for them to return demonstrates that by participating, they have achieved an important role that even Oracle recognizes. Clearly, that influence wasn't enough to resolve their problems without leaving (perhaps because any suggestions they may have made that they were willing to leave over the issues weren't believed), but I don't think its at all clear that no that they have left, Oracle won't do something to accommodate their concerns to get them to come back.
Re:Looking at the bigger picture (0)
Anonymous Coward | more than 3 years ago | (#34518900)
I think they at least had some hope that Sun would eventually see the errors of their ways. GPL'ing the J2SE VM and class library was a step forward, and the fact that the JCP even existed at all was an attempt at openness.
Now that Oracle runs the show, and has been threatening Google over Android (which uses Apache's Harmony class library), there's probably no chance of any realistic community involvement.
Re: The Licensing Picture (3, Insightful)
hexwyrds (948410) | more than 3 years ago | (#34519156) with.
Re:Looking at the bigger picture (1)
SplashMyBandit (1543257) | more than 3 years ago | (#34519294)
Re:Looking at the bigger picture (1)
Bruce Perens (3872) | more than 3 years ago | (#34519380)
Re:Looking at the bigger picture (1)
Blakey Rat (99501) | more than 3 years ago | (#34519316) there that's open source friendly, I think telling people "move off Java" is a waste of time... of course they're not going to move! There's nothing to move *to*!
Re:Looking at the bigger picture (2)
Bruce Perens (3872) | more than 3 years ago | (#34519366)
Re:Looking at the bigger picture (1)
Blakey Rat (99501) | more than 3 years ago | (#34519480)-time compiler? Does that currently exist?)
Plus, it's hard to Google anything related to Go because of it's stupid name. But that's relatively minor.
Personally, I'd like a solution based on JavaScript, with a couple of features added-- (optional) strong-typing and namespaces. The benefit here is that JavaScript interpreters get faster every year. The downside is the same as Go, you'd need to develop the libraries and GUI ecosystem.
But this all kind of distracts from my general point, which is: right now, the replacement for C#/Java *does not exist* in the open source community. Sure, if a hundred developers started coding their pants off on Go, maybe in 2-3 years we'd have something, but right now? Nada. This is a huge problem, if you're trying to get people to move off of C#/Java.
Re:Looking at the bigger picture (3, Interesting)
ChunderDownunder (709234) | more than 3 years ago | (#34519562)?
Does Larry Ellison read Oscar Kiss Maerth? (0)
Anonymous Coward | more than 3 years ago | (#34518482)
Well... (1)
Stregano (1285764) | more than 3 years ago | (#34518542)
Don't worry Oracle (1)
wiredlogic (135348) | more than 3 years ago | (#34518592)
You can always run your Java stuff from WebSphere.
Its the old joke (3, Interesting)
mlwmohawk (801821) | more than 3 years ago | (#34518624):Its the old joke (1)
interval1066 (668936) | more than 3 years ago | (#34518718)
:Its the old joke (1)
mlwmohawk (801821) | more than 3 years ago | (#34518778)
My response to that is this:
If you want to know what god thinks about money, look at the people he gives it too.
Re:Its the old joke (2)
interval1066 (668936) | more than 3 years ago | (#34518896)
So lets put the religious theories away, shall we?
Re:Its the old joke (1)
SplashMyBandit (1543257) | more than 3 years ago | (#34519406)
Re:Its the old joke (1)
rleibman (622895) | more than 3 years ago | (#34519540)
Re:Its the old joke (1)
mlwmohawk (801821) | more than 3 years ago | (#34519726) those that are rich. It seems to be a trend that the "jerseylicious" types have money showered upon them, where as good and decent, hard working people struggle.
So, Larry Ellison is rich? So what, look at most of the rich people and you'll see that it says nothing about character or ability.
Re:Its the old joke (2)
Blakey Rat (99501) | more than 3 years ago | (#34519382):Its the old joke (0)
Anonymous Coward | more than 3 years ago | (#34518890)
Well yes, but look at all the stupid stuff he's done after that
:p
(Samurai castle ftw)
Re:Its the old joke (1)
SplashMyBandit (1543257) | more than 3 years ago | (#34519368)
IBM (1)
Zancarius (414244) | more than 3 years ago | (#34518814)
Times like these make me wish IBM had bought Sun instead. At least they're a services company, so they know how that ecosystem works, and their existing investment in Java would've been better for us all...
Re:Its the old joke (1)
ozbird (127571) | more than 3 years ago | (#34519304)
Personally I agree with Oracle suing Google (1)
msobkow (48369) | more than 3 years ago | (#34519314)
Google did not deliver a JVM. They pilfered the Java syntax to compile for a different machine. No sympathy.
Re:Its the old joke (1)
lakeland (218447) | more than 3 years ago | (#34519532) price of SQL Server and Oracle, and at the standard edition level Oracle is cheaper. Later the company grows and needs partitioning - they're not going to migrate to SQL Server enterprise and they're unlikely to have run across EnterpriseDB.
Oh, and one point I would disagree on. I think MySQL's existence is good for Postgres. MySQL strongly focuses on ease of setup / use by beginners and I think that that competition is good for encouraging Postgres to cater for beginners.
Re:Its the old joke (1)
mlwmohawk (801821) | more than 3 years ago | (#34519770)?
JCP directives (1)
Anonymous Coward | more than 3 years ago | (#34518676)
1. Serve the public trust
2. Protect the innocent
3. Uphold the law
4. (HIDDEN)
Re:JCP directives (1)
SiChemist (575005) | more than 3 years ago | (#34518818)
Bravo, AC, Bravo!
Re:JCP directives (1)
snspdaarf (1314399) | more than 3 years ago | (#34519034)
Question (1)
Charliemopps (1157495) | more than 3 years ago | (#34519028)
Re:Question (4, Informative)
M. Baranczak (726671) | more than 3 years ago | (#34519362):Question (1)
SplashMyBandit (1543257) | more than 3 years ago | (#34519452) don't have several independent implementations that are designed to be perfectly compatible (eg. MS
.NET and Mono have hugely different [non-portable] libraries)).
Java Compatibility Kit (1)
chris_7d0h (216090) | more than 3 years ago | (#34519254)
Fine Oracle, give Apache a JCK already !
Do that and they will have a reason to care about the future of Java.
Anyone who jumped ship from Oracle to MySQL (0)
Anonymous Coward | more than 3 years ago | (#34519390)
should probably be rethinking that move. Sure am glad I dropped Oracle for PostgreSQL about 7 years ago... And Solaris? not even worth mentioning... | http://beta.slashdot.org/story/144892 | CC-MAIN-2014-41 | refinedweb | 3,027 | 68.1 |
-Plasma-MainScript=code/main.py.
# Copyright stuff.
# Continued from above.
# Continued from above
updateSourceEvent is the main function needed for a DataEngine, as it takes care of updating and storing the data from a specific source (in our case, tz, a timezone). As a first step, we set localName to be "Local", and we compare the timezone supplied to the function to it. If they're the same, i.e. local time on the computer, we set the data to current time and date (QTime.currentTime() and QDate.currentDate()), and then we get the name of the timezone using KSystemTimeZones.local().name().
The important part here is setData. That is how we put data inside a DataEngine. setData accepts a source name, a key which will be used to look up the information, and the actual information, stored as a QVariant.
If "Local" is not the timezone supplied to updateSourceEvent, we obtain data on the timezone itself using KSystemTimeZones.zone(tz) and we assign it to newTz. Of course we may have supplied a non valid timezone, so we check it with newTz.isValid(), and we return False if it is not. After that, it's a matter of getting time and date relative to this timezone, through KDateTime.currentDateTime(KDateTime.Spec(newTz)). Then, we set the data into the DataEngine relative to date and time, and we assign timezone to tz.
Then, we set the timezone name (for example, "Europe/Rome") into the DataEngine. We also want to get continent and city into the DataEngine, so we split the string into a list with "/" and we check if contains two or more elements. If so, we set the first (for example "Europe") as continent and the second ("Rome") as city. Then the function returns True. updateSourceEvent should return True if succesful, and False if otherwise.
def CreateDataEngine(parent): return PyTimeEngine(parent)
The last two lines deal, in a similar manner as applets, with creating the DataEngine.
First of all, zip the directory contents (see the Getting Started tutorial), then invoke plasmapkg like this:
plasmapkg -t dataengine -i <zip file name>
Plasma can't automatically determine the type of package you are installing (defaults to applet) so you have to manually specify the -t dataengine option. Once installed, you will be able to use this DataEngine in your applets.
Run the plasmaeengineexplorer application (see the Using DataEngines tutorial) and select the plasma-dataengine-pytime DataEngine. If all went well, it will behave in the same manner as the time DataEngine.
You can effectively separate presentation and data handling in your applets by creating DataEngines which deal with all the needs for data. In a few lines of code, you can set up your sources, retrieve data and then store it for applets to use.
Using your own python dataengines in KDE 4.2.0 leads to a crash. The problem is fixed in KDE 4.2.1. | https://techbase.kde.org/index.php?title=Development/Tutorials/Plasma/Python/Writing_DataEngines&diff=60649&oldid=37728 | CC-MAIN-2015-11 | refinedweb | 487 | 64.91 |
12 August 2009 17:43 [Source: ICIS news]
By Nigel Davis
?xml:namespace>
The deadline for the first batch of substance dossiers that have to be submitted to fully register chemicals under Reach is not that far away. The first high-volume products, whether produced in the EU or imported into the region, have to be registered by 1 December 2010.
The data show that the agency had accepted 2,293 dossiers for processing by 5 August out of a total of 3,749, with the difference being those that are in one way or another incomplete. By 12 August, the ECHA had received the contact details of 1,190 lead registrants. Most of them, it said, intended to register by the 2010 deadline.
A lead registrant makes the first submission of a dossier for a substance and usually represents a group of companies, importers or other parties interested in that substance. It needs to register early to give co-registrants time to act.
It is widely felt that the first submissions of substance dossiers from lead registrants in particular need to be made by around mid-2010 to ensure eventual consensus among multiple registrants and to give co-registrants time to act.
So is the Reach registration process working effectively yet? And can the ECHA be expected to cope with a rush of registrations as the deadline nears? The Reach systems could be inundated later this year or earlier next.
Pre-registration caused so many headaches that the ECHA and, it must be said, most players in the chemicals industry, want to see this stage of Reach proceed effectively.
The full registration deadline will be a major event for the ECHA and for the chemical industry. It should further demonstrate that the ECHA systems work. But, more importantly, it should also show that sellers of chemicals in
Given the number of pre-registrations, there could be close to 2.7m full registrations. However, the number is expected to be much lower than that. There were anomalies in the pre-registration process. At least one organisation pre-registered the entire EU chemicals directory, helping put considerable strain on the pre-registration process. Eventually 150,000 substances were pre-registered.
But registration itself is expensive: €31,000 ($44,000) for high-tonnage substances and less for low tonnage products sold by small to medium-sized enterprises (SMEs). The effort and costs required to put together a full registration dossier are likely to limit registrations only to those that are essential.
It cannot be forgotten, however, that the onus of Reach falls squarely on the shoulders of producers and other sellers of chemicals. It has taken time to get that message across and, for those that pre-registered a substance or substances, to come to terms with establishing the substance information exchange forums (SIEFs) and the consortia deemed necessary to streamline the Reach registration process.
Creating and managing the SIEFS and consortia has been far from easy, and practical advice has often been difficult to find. The agencies set up by national and regional trade groups and others have reported slow progress on SIEF formation, even though SIEFS will be the driving force behind the Reach registration process.
Reasonable progress is being made, some believe. And it seems as if the best SIEFS are getting there. But there are numerous issues around SIEF formation and operation that need to be addressed and, perhaps, publicised more widely.
The European Commission is concerned enough to be organising with the ECHA a workshop for lead registrants in
The lead registrant’s role in leading the SIEF, gathering data and information on end-uses and submitting the initial registration is vitally important. It is they who submit the initial joint dossier and chemical safety report.
Talking about and disseminating best practice at this stage is vitally important, but it is an aspect of the Reach process that appears to be lacking. At an ECHA stakeholder day at the end of May of this year, the frustration felt by so many about the SIEF process was widely apparent.
The September meeting will either expose further frustration in the sector and downstream, or show that progress is being made.
A renewed sense of urgency on SIEF formation and operation on the part of the agency is, however, likely to be apparent as it launches a series of webinars, a helpdesk service and an electronic discussion platform for signed-up lead regist | http://www.icis.com/Articles/2009/08/12/9239478/insight-industry-echa-need-to-get-to-grips-with-reach-forums.html | CC-MAIN-2014-35 | refinedweb | 743 | 51.28 |
Opened 8 years ago
Closed 8 years ago
Last modified 8 years ago
#11824 closed enhancement (fixed)
Remove //Since// version information from TracIni documentation — at Version 13
Description
Discussed on the mailing list in gmessage:trac-dev:c136Ptgl_WU/FeZNjNkR06YJ, the Since x.y version information will be removed for Trac < 0.12.
Change History (13)
comment:1 by , 8 years ago
follow-up: 3 comment:2 by , 8 years ago
Did you miss the
("enabled" added in 0.11), or was it intentional to keep just that one in
trac/config.py? Other changes look right. Thanks for taking care to clean this up.
comment:3 by , 8 years ago
Did you miss the
("enabled" added in 0.11), or was it intentional to keep just that one in
trac/config.py? Other changes look right. Thanks for taking care to clean this up.
Yeah, I wasn't consistent in changing the API documentation. I was wondering whether the same approach should be taken, removing mentions of Trac < 0.12, or if the Trac 0.11 documentation might still be useful for plugin developers.
We should probably just remove mention of Trac < 0.12 from the API documentation too, but I'll just save all changes to the API documentation for another ticket and take a consistent approach when making the changes.
follow-up: 5 comment:4 by , 8 years ago
Committed to trunk in [13304].
I was using the PEP-0008 docstring conventions, putting the trailing
""" on a separate line for multiline strings.
However,
cleandoc doesn't strip the trailing whitespace for cases like this: trunk/trac/search/web_ui.py@:50#L39
#: trac/search/web_ui.py:48 msgid "" "Minimum length of query string allowed when performing a search.\n" " " msgstr ""
I propose a fix for this in log:rjollos.git:t11824.1.
follow-up: 6 comment:5 by , 8 years ago
I propose a fix for this in log:rjollos.git:t11824.1.
Be careful,
cleandoc_ is a keyword for message extraction (see setup.cfg), so using it for things like
cleandoc_(m) is wrong (not sure if it triggers an error, but it doesn't feel right).
comment:6 by , 8 years ago
Be careful,
cleandoc_is a keyword for message extraction (see setup.cfg), so using it for things like
cleandoc_(m)is wrong (not sure if it triggers an error, but it doesn't feel right).
Thanks, I guess I was unlucky enough that it didn't blow up! I've reworked the changes in log:rjollos.git:t11824.2.
follow-up: 8 comment:7 by , 8 years ago
follow-up: 9 comment:8 by , 8 years ago
Changes from comment:6 committed in [13311]. New extraction in [13312]. I did some testing by modifying po files, however I'm sure I don't have as good of an eye towards potential problems as translators do. Please let me know if you spot any issues.
Why is
cleandoc added to
trac/util/__init__.py at [13311#file2], for backward compatibility?
trac/config.py
diff --git a/trac/config.py b/trac/config.py index 862b0ca..b6fd874 100644
trac/dist.py
diff --git a/trac/dist.py b/trac/dist.py index e65f5de..c3d8c8b 100644
trac/util/__init__.py
diff --git a/trac/util/__init__.py b/trac/util/__init__.py index 43eca24..c2f4c46 100644
comment:9 by , 8 years ago
Why is
cleandocadded to
trac/util/__init__.pyat [13311#file2], for backward compatibility?
Reconsidering,
trac.util.textis better location for
cleandoc, rather than
trac.util
- Or, put implementation of
cleandocon
trac.utiland
trac.util.translationuse
from trac.util import cleandoc.
follow-up: 11 comment:10 by , 8 years ago
I encountered what look like circular import effects when trying to put the
cleandoc definition of
cleandoc in
trac.util or
trac.util.text.
When locating in
trac.util.text, the following error results:
Python: /home/user/Workspace/t11944/py2.7/bin/python Traceback (most recent call last): File "contrib/make_status.py", line 7, in <module> from trac.util.text import print_table, printout File "/home/user/Workspace/t11944/teo-rjollos.git/trac/util/__init__.py", line 36, in <module> from trac.util.compat import any, md5, sha1, sorted File "/home/user/Workspace/t11944/teo-rjollos.git/trac/util/compat.py", line 24, in <module> from trac.util.text import cleandoc File "/home/user/Workspace/t11944/teo-rjollos.git/trac/util/text.py", line 30, in <module> from trac.util.translation import _ File "/home/user/Workspace/t11944/teo-rjollos.git/trac/util/translation.py", line 22, in <module> from trac.util.text import cleandoc ImportError: cannot import name cleandoc make: *** [status] Error 1
We can work around that by moving the import of
_ in
trac.util.text. See log:rjollos.git:t11824.3.
comment:11 by , 8 years ago
I encountered what look like circular import effects when trying to put the
cleandocdefinition of
cleandocin
trac.utilor
trac.util.text. […] We can work around that by moving the import of
_in
trac.util.text. See log:rjollos.git:t11824.3.
Oh, I missed circular references. Your changes look to me. Thanks!
Proposed changes in log:rjollos.git:t11824. | https://trac.edgewall.org/ticket/11824?version=13 | CC-MAIN-2022-40 | refinedweb | 861 | 53.07 |
Testing Practices and Principles
Kent C. Dodds
Utah
wife, 4 kids, & a dog
PayPal, Inc.
Please Stand...
if you are able ❤️ ♿️
What this talk is
Fundamentals behind tests and testing frameworks
Distinctions of different forms of testing
Writing unit and integration
Test doubles (mocks/stubs/etc.)
Use TDD to write new features and to find and fix bugs
Core principles of testing to ensure your tests give you the confidence you need
What this talk is not
- Technology-specific
- How to configure tools
- Free of trade-offs
- Long presentation
- Covering all forms of testing
Setup
If you can, do it now, even if you've already done it...
git clone cd testing-workshop npm run setup --silent
Logistics
- 🙋 Raise your hand to ask and answer questions. Feel free to make relevant comments as well!
- 💬 🌎 Use the workshop chat room (gitter.im/kentcdodds/testing-workshop) to ask and answer each others questions.
- 💬 😀 Chat with me one-on-one (gitter.im/kentcdodds). I'll try to respond during exercises.
- 📑 Fill out the elaboration and feedback forms for every exercise.
- 📧 Ask questions on my AMA (kcd.im/ama).
- 🐦 Follow me on twitter 😉 (twitter.com/kentcdodds).
Routine
- Demos_4<<
What kind of bugs are there?
Business Logic 🕷
Security 🕷
Accessibility 🐜
User Interface 🐞
Performance 🐛
Regression 🐞
Internationalization 🕷
Integration 🐜
Scaling 🐛
import {assertRoute} from '../utils' describe('authentication', () => { it('should allow users to register', () => { const user = {username: 'bob', password: 'wiley'} cy .visitApp() .getByText('Register') .click() .getByLabelText('Username') .type(user.username) .getByLabelText('Password') .type(user.password) .getByText('Login') .click() cy.url().should('equal', '') cy.getByTestId('username-display').should('contain', user.username) }) })
🚗 Test Driven Development 🏎
Red
Green
Refactor
🐛 Fixing Bugs 🐜
Bug
Find Code
Write Test
Fix Test
The Testing Trophy
¢heap
💰🤑💰
🏎💨
🐢
Simple problems 👌
Big problems 😖
Resources
My blog/newsletter has a lot of content about testing too: blog.kentcdodds.com
Thank you!
Testing Practices and Principles
By Kent C. Dodds
Testing Practices and Principles
The goal of a test is to increase your confidence that the subject of your test is functioning the way it should be. Not all tests provide the same level of confidence (some provide very little confidence at all). If you’re not doing things correctly, you could be wasting your time and giving yourself a false sense of security (even worse than having no tests at all). | https://slides.com/kentcdodds/testing-principles | CC-MAIN-2019-43 | refinedweb | 379 | 55.95 |
Perl Basics
You write Perl using a simple text editor, like pico or nano. Log on to a UNIX computer and use a text editor to open a file called script.pl, e.g.
nano script.pl
Perl scripts traditionally end in .pl. This isn’t a requirement, but it does make it easier to recognise the file.
Now type the following into the file;
print "Hello from Perl!\n";
Save the file. You have just written a simple Perl script! To run it, type
perl script.pl
This line uses the Perl interpreter (called perl) to read your perl script
and to follow the instructions that it finds. In this case you have told Perl
to print to the screen the line “Hello from Perl!”. The
\n represents a
return (newline). Try removing the
\n, or adding multiple
\n’s and rerunning
the script to see what I mean.
This was a simple script, but Perl is a language designed to help you write small and simple scripts. Indeed, in my opinion Perl is the best language around for writing small and simple scripts (less than 100 lines of code).
This script has introduced three of the basic building blocks of Perl;
- A command
- A string
Hello from Perl!\n. A string is just a piece of text, which can contain multiple lines. Strings are always enclosed in double quotes.
- A line of code
print "Hello from Perl!\n";. A line of code forms a complete instrucution which can be executed by Perl. Perl executes each line of code, one at a time in order, moving from the top of the file downwards until it reaches the end of the file. Note that each line of Perl code must end with a semicolon
;.
A string is a type of variable. A variable is a value in a script that can
be changed and manipulated. Variables in Perl are identified using the dollar
sign
$. For example, use a text editor to write a new Perl script, called variables.pl
nano variables.pl
Type into the script the following lines (remember to include the semicolons at the end of each line!);
$a = "Hello"; $b = "from"; $c = "Perl!"; print "$a $b $c\n";
What do you think will be printed when you run this script? Run the script by typing;
perl variables.pl
Did you see what you expected? In this script we created three
variables,
$a,
$b and
$c. The line
$a = "Hello"; sets the variable
$a
equal to the string
Hello.
$b is set equal to the string
from
while
$c is set equal to
Perl!.
The last line is interesting! The
$a $b $c\n. However, Perl knows
that
$a,
$b and
$c are variables, so it substitutes their values into
this string (so
$a is replaced by its value,
Hello,
$b is replaced with
from and
$c is replaced with
Perl!). Thus the
Hello from Perl!\n to the screen.
Perl can also put numbers into variables. Create a new script (numbers.pl) and write this;
$x = 5; $pi = 3.14159265; $n = -6; $n_plus_one = $n + 1; $five_times_x = 5 * $x; $pi_over_two = $pi / 2; print "x equals $x. pi equals $pi. n equals $n.\n"; print "Five times x equals $five_times_x.\n"; print "pi divided by two equals $pi_over_two.\n"; print "n plus one equals $n_plus_one.\n";
What do you think will be printed to the screen when you run this script?
Run this script (
perl numbers.pl). Did you see what you expected? | https://chryswoods.com/beginning_perl/basics.html | CC-MAIN-2018-17 | refinedweb | 584 | 85.69 |
the comment "... none of them attached to a power station." is not strictly true.
Hazelwood Power Station in Australia has had a trial plant running for many years.
Source
is it really that global warming originate from the released of CO2? scientists even cannot give a clearly explanation to us~~
Actually it's time for intelligent life on earth to reject and ignore these theories. They are fraudulent and incompetent.
Our respected Economist even says that ocean levels are rising. This is a fraud.
Carbon capture is so contrary to nature that it's insane.
Plant life in oceans, plankton, converts CO2 to oxygen.
The wrong kind of people are in control of these issues, and I think the Economist is beholden to them.
Plants both consume and produce CO2 - they only take it out of the air for good when they die and are entombed in rock (ie, how coal and oil are formed). Obviously this happens on geological time scales, not human ones, which is why the concentration of CO2 is shooting up out of control. Just look at any old engineering textbook that gives the composition of air. If you used their numbers, your design wouldn't work. I hope that gives you a little bit of pause.
Pause: are you saying the whole idea of the O2/CO2 balance of nature was completely untrue all these millenia?
CO2 and O2 are in balance so long as the rate of carbon burial (into oil, coal, etc) is the same as the rate of carbon return (tar seepage, volcanoes). This has been true through most of the millenia of earth's existence.
The only thing which could break the balance is if huge amounts of old carbon were dug up and burned all at once. That would be a big mistake.
This might be a curious point. I've learned that plants release CO2 in the dark. Does this apply to evergreens? But what is the arithmetic - what fraction is released compared to what is absorbed. You sound completely wrong implying that on balance plants do not convert CO2 to O2.
I know CO2 is increasing but disaster theories are mad fiction. "Out of control" is a false and subjective assertion. No reason to fear a difference. Incompetence and fraud. And there is no such thing as a tipping point.
Another point: The amount of carbon on earth if fixed. It should be possible to recycle it indefinitely.
Thanks for the comments.
In politics, you follow the money - in organic chemistry, you follow the carbon. Plants take in CO2 during the day, making sugars, and release CO2 at night when they make energy from the sugars. The only way to take CO2 and not put it back is to incorporate the carbon into the plant by growing more wood, more leaves, etc. And whatever carbon is in the plant material is released again as CO2 when the plant is eaten or decays. On balance, no CO2 is removed except that which turns into sediments - which you can see if you follow the carbon.
CO2 is literally out of control; we are changing the composition of the air and we have no way to stop. I doubt we'll stop until carbon-free sources of energy are cheaper than burning carbon. Research is the pressing need at the moment (I don't have much patience for subsidies).
The amount of carbon on earth is fixed, if you include all the buried carbon. But that's no comfort - when that carbon started to be buried, ages ago, the percentage of carbon dioxide in the atmosphere was higher than any animal can survive. If we put all the earth's buried carbon back in circulation at once, we would return to that state.
"If people are serious about carbon capture and storage, they will have to pay for it."
Where are these "people"? Not in America or China at least.
Well, as luck would have it we have access to a device that converts sunlight, CO2 and water into sugar. Trees! Actually lots of different kinds of plants. Ideally we would maintain large rain forests that could get rid of CO2 in the form of biomass. Obviously the need to cut down forests and replace them with human habitations is part of the problem so going backwards is likely not the best solution. We do have access to other forms of power, which could support indoor growing. One could power a large series of skyscrapers with each floor equipped with indoor lights and ventilation. The roof tops of such buildings and indeed of many other types of buildings could be planted and would only need irrigation. If CO2 could be aggregated and pumped into the grow chambers, even more CO2 could be converted by plants.
There ARE practical "tree solutions":
"Irrigated afforestation of the Sahara and Australian Outback to end global warming"...
and
"Replacing coal with wood: sustainable, eco-neutral, conservation harvest of natural tree-fall in old-growth forests"...
These techniques would allow the use of bio-sequestration to both reduce atmospheric CO2 down to pre-industrial levels (about 280 ppm), AND simultaneously provide a source of harvestable wood as a sustainable energy source for a world population of 10 billion.
The net cost is less than CCS and there is no threatening storage problem! Only barren, presently non-productive land is used for the irrigated forests.
When I read the headline for the story I was quite excited about a success story of carbon capture! But the story is actually a laundry-list of factors which doom the new test facility to economic failure without subsidy or huge rate increases. The existing methods also are presented as either too expensive, energy-consuming, or not practical for a retrofit to existing plants. Unfortunately, there were few details regarding actual government costs, as I suspect that the claims are probably more favorable than reality.
I am all for reducing CO2 but I am also interested in reducing heavy-metal emissions and the fly-ash which all coal produces. I don't want either disposed of carelessly, nor do I want the water pollution which always occurs when coal is mined, burned, and disposed of. Natural gas has none of these issues, and I bet the new method of CO2 capture would work with natural gas as well, but the story does not say.
A technically and economically successful CSS program would be necessary to responsibly continue to burn fossil fuels. Some say CSS is an unattainable panacea, used to justify business as usual, thereby delaying the change to renewable energy and ignoring the effects of fossil fuel use. I'm comfortable, and think there is much to be said for energy produced and used just the way it is now. So, I hope it works.
The eyes of the world will be on this project. And its success or failure may affect the course of technology, geopolitics, maybe even humanity. Gee, I hope it works, but if it doesn't, I'd like to know that too.
This is more about money than anything else. It is not unlike the nuclear waste issue which has no answer but to somehow store it for thousands or millions of years instead of finding a way to neutralize it so it is not a threat to humans or environment. Here with this crazy carbon capture scheme it is the same. Except this time we're going to bury it...but it doesn't make it go away...it sits there until one day it will find a way to re-release into the environment. Earthquakes, earth shifts, seeping out of the earth in ways we cannot even envision as we have no long-term history for unpredictable outcomes. God forbid this should happen in a sudden rush...can you imagine what would happen to the planet? We have to be more mindful about rushing into new fandangle ideas that solve one problem only to create another. This gentleman singing the praises of his invention in Norway is making a bundle. Let's find a way to just stop putting pollution into our atmosphere from the get go, not deferring the problem for another day and another generation with great risk for a catastrophic event (e.g. nuclear waste)
It is most definitely a good step for reducing the CO2 in the atmosphere .But on the other hand I feel emerging economies won't accept it because of the cost related to it is very high.A mandate has to be passed for all the countries otherwise this will be of no use.
An alternative view is that capturing CO2 from a power plant (especially a coal-fired one), is in fact rather hard for a non-obvious reason. The “Elephant-in-the-corner” that people do not like to talk about is that the trace NOx & SOx present in the flue gases tend to exothermically combine with the water vapor and oxygen to make (nitric and sulfuric) acids. These acids then “poison” the amine solution by forming heat stable salts, which eventually prevent the amine solution being regenerated. CO2 capture can thereby grind to a halt, until the amine solution is (expensively) replaced. AEP has indicated in the past a very low threshold for combined NOx & SOx of just several ppm. A major attraction of the Chilled Ammonia process was supposed to be a much higher tolerance (e.g. 20 ppm) – which is still a highly-challenging task to meet consistently. For example, the unscrubbed flue gases of a coal-fired power plant may contain 2,000 ppm of SO2 alone. Unfortunately, the 21-month “Validation” test of Alstom’s Chilled Ammonia approach at AEP’s Mountaineer coal-fired power plant succeeded in capturing and sequestering only a small fraction of the amount of CO2 that had been targeted.
It is most laudable that Statoil is now (at considerable expense) providing worldwide leadership at the Mongstad Test Center by not only sensibly formally testing the energy requirements for CO2 capture of Aker Clean Carbon’s special amine solution and of Alstom’s Chilled Ammonia solution, but also testing the tolerance of the two solvents of NOx (& even SO2?). Mongstad’s flexible set-up should provide invaluable and long overdue results, which many should benefit from.
Most of the focus on CCS to date has been on “single-technology” approaches. This is natural as vendors have a strong economic incentive to promote their own technology. However, we may yet find that hybrid approaches (of processes that have been dismissed as flawed as an entire process) may have a lower energy and financial cost for CO2 capture, a much smaller physical footprint, and a tolerance of NOx & SOx that is orders of magnitude higher. Even in CCS, might Diversity offer a compelling benefit?
Please excuse my ignorance but is the fact that CO2 has a high solidification point of minus 74 degrees Celsius not been considered for developing a physical rather than a chemical separation-isolation of the gas?
Not ignorant, but rather perceptive! There is a small group in Utah with some DoE funding seeking to take advantage of exactly this angle. In Canada, a small group is testing cryogenic capture of CO2 in liquid form - which needs even less cooling.
Of more commercial interest is however a large new cryogenic CO2 capture plant in the Rockies, with an energy cost for a stream with 80% CO2 of just 0.17 GJ/ton of CO2 captured. This process is therefore an ideal “last step” in the type of hybrid approach referred to in my Post above. The energy cost of 0.17 GJ/ton of CO2 captured (based on detailed correspondence with the manufacturer) may be compared to the more than 4 GJ/ton of CO2 (including compression) commonly associated with most amine plants. Perhaps Aker Clean Carbon can do much better than this? We hope so, and we shall soon find out. That is why the world should be grateful for the important Mongstad initiative. Perhaps the Mongstad test results will help the UK develop some momentum with their own CCS program, once we all have some hard results to look at. Amine-based capture of CO2 from the flue gases of a gas-fired power plant is not new though. It was done on a commercial basis for a number of years in Massachusetts.
Nice comment, a positive one!!
Ten years ago shale gas and oil was a marginal uneconomic process. Now it is set to transform global supply.
Today CCS is a marginal uneconomic process. With work like the above going on, tomorrow it will likely be transformational because unlike other strategies it could be scalable to match the worlds energy resources.
Similarly renewables will also become more economic
And nuclear, despite recent setbacks, will be a significant contributor.
We might also find that the outcome will be a changing mix of all of the above, or maybe CERN, or someone in a shed somewhere, will change the whole game and render our plans moot?
Our company recently received an invitation. The caller was an electricity generating plant. The auction was a surplus of carbon dioxide resulting from the 1,000 megawatt power plant, the output of power plant smokestacks.
We've contacted various technology vendor companies. Almost all of them replied that it was expensive and not affordable.
Interestingly, the 180 km distance from the plant, there is a workshop production of carbon dioxide from natural gas. The shop sells its CO2 to soft drink manufacturers!
In our area, the price is 30 cents per kilogram of carbon dioxide under standard conditions. It can be seen, collected carbon can be profitable.
Thermal power plants emit substantial quantities of carbon dioxide in the atmosphere. With specific legislation, thermal power plants produce carbon dioxide should be the only license holders.
Noteworthy that the carbon dioxide produced in thermal power plants is economically recyclable. Technology can be defined for it. Government regulatory requirements will help to implement this critical issue. Concentration of carbon dioxide produced in power plants is a potential that should immediately be converted to actual possibilities.
In CHP,
Hospitals, industrial and manufacturing plants, airports, leisure centers, shopping centres, academic centers, train stations, subways etc are major CHP customers . Financial interests is an important issue for these customers. These centers can pay a lower energy prices. Prorated overhead costs are for the power plants too. The fuel is supplied with the best efficiency of energy utilization. These are huge amounts of savings.
They should focus on capturing methane, for instance from farms where cows produce tons of such environmental hazard and source of energy.
WAKE UP PEOPLE1 Carbon dioxide is not the cause of global warming. It's the heat emitted by the combustion of the fossil fuels, (as well as from nuclear power). Removing CO2 from the stacks is like locking the barn door after the horse is gone! The heat emitted is enough by itself to raise the atmospheric temperature annually by 0.17^F by our present consumption rates until equilibrium is reached. It is actually rising at a rate of 0.04*F annually due to melting of glaciers and heating of the rest of the earth's mass.
May I ask where I can read more on your revolutionary hypothesis on global warming? At a single stroke you have rendered the work of thousands of scientists obsolete. Looking forward to next years Nobel's ceremony.
Dear AngryViking, it is not my fault that the scientists did not bother to calculate the amount of heat released by our energy use. We use about 16 terrawatts of energy yearly. That is equivalent to 50x10E16 BTUs. Our atmosphere has a mass of 530x10E16 kilograms. It is easy to determine the temperature rise in this mass by this amount of heat.What happens to this heat? Does it just magically escape into outer space without consequence? If greenhouse gasses keep heat in isn't the energy we use a contributor to the total? We burn fossil fuels solely for the heat, the CO2 is just a by-product. The 60 ppm that we have added is a very small incremental addition to the greenhouse gasses( most of which is water vapor). If Al Gore can get one for pointing out the effects of global warming, it would be unjust not to give me one for pointing out the real cause. Also looking forward to next years Nobel ceremony. I hope we wont be disappointed. I sincerely do appreciate your comment because it is the reaction most people have since the Kyoto scientists are so highly regarded. Nevertheless- the Emporer has no clothes. I hope you will continue to respond. If my hypothesis is incorrect I would like to find out where it fails ( other than it goes against the presently accepted hypothesis). There is no proof that CO2 causes global warming. The correlations of temperature rise and CO2 rise do not show that CO2 is a cause. CO2 rise is an effect, the cause being a result of fossil fuel combustion in our present time, and the result of rising temperatures due to periodic shifts in the earth's orbit, tilt, and wobble causing more solar heat to be absorbed (Malenkovich cycles) during the previous 400,000 years.
I forgot to mention that you can read more on my revolutionary hypothesis at March7,2012. Kathleen Holton , editor of the Alvin Sun, was kind enough to give me a guest editor spot.
You've completely ignored any energy transfer in or out of the atmosphere via radiation which is how ~100% of it is transferred.
All else equal, adding heat would only temporarily raise the temperatures. The raised temperature would then increase the amount of longwave radiation that is emitted and get rid of that heat. The new equilibrium would be reached very quickly. Adding heat (from burning) cannot result in a sustained increase in temperatures unless there are also changes to the atmospheric composition which increase the amount of long-wave radiation that is reabsorbed.
So, I guess it is theoreticaly possible that the heat is a contributor, but alone it is not even a factor.
Randy T . The geothermal heat flow is 44 terrawatts. If we add an additional 16 TW annually when will we reach a new equilibrium and how much increase in temperature would that be? Heat loss by radiation is a fourth power function of absolute temperature. I have tried to calculate this but I am not confident of my assumptions. Maybe you can tell me what you think. When we add heat to the atmosphere some of the heat raises the temperature of the earth, and geothermal flow maintains it, and eventually if the 16TW is maintained a new equilibrium is reached whereby that 16TW is then radiated to outer space. Greenhouse gasses trap heat, but I believe that the incremental addition of 60 ppm CO2 over the past century is of minor consequence compared to the tenfold increase in heat emissions for the same period. I hope we can continue the dialogue.
Sir,
It is true that CCS is expensive at the moment, but its cost has been reduced in recent years. In 2009 a paper published at the Harvard Kennedy School of Government estimated costs between $100-150 per tonne of CO2 for first-of-a-kind plants. Now, professor Herzog estimates price in the range of $50-100
Also, the CCS project in Alberta announced its cancellation on April 26th, not May 1st. Although it is true that the CO2 economics for this project influenced in the decision, the prices of gas also influenced considerably. Many companies across the world are experiencing losses because of low prices for gas due to the exploitation of shale gas.
Jose Condor, Sr Analyst Alberta Department of Energy, Edmonton, Canada
Hi,
Carbon capture and storage. “Captivity thence captive, us to win”. Carbon capture solution is simple plant trees.
I have heard that planting fast growing bamboo and then burying them underground (in old coal mines?) and then capturing the methane releases from decay (can even be burned), is a simpler way of doing this. Maybe sinking the bamboo to "dead" areas of the deep ocean would acomplish the same thing?
The combustion (or co-firing) of Biomass for power generation, in conjunction with CCS, can obviously be carbon negative. Lovelock has argued that if seasonal crop residues are used, the benefit can be very large indeed. This approach (including variations with Biochar) is very much more economic than the various exotic schemes for Air Capture of CO2 currently being promoted.
Biochar (with its ability to adsorb moisture and foster beneficial microbial growth) may allow trees to be grown in currently arid areas.
It is terrifying to think that people would capture carbon in any form and then sink it in the ocean! Uggh!!!
Here's an article on the Alberta project (Keephills) that was cancelled last month: | http://www.economist.com/comment/1428941 | CC-MAIN-2014-42 | refinedweb | 3,520 | 63.39 |
This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.
You are right that wrapping the specialization in std is required by the standard: on undefined behavior unless the declaration depends on a user-defined name of external linkage and unless the specialization meets the standard library requirements for the original template." However, the behaviour as shown by gcc 2.95.3 is not standard-compliant, according to: ------------------------------------------------------------------- A template explicit specialization is in the scope of the namespace in which the template was defined. [Example: namespace N { template<class T> class X { /* ... */ }; template<class T> class Y { /* ... */ }; template<> class X<int> { /* ... */ }; // ok: specialization // in same namespace template<> class Y<double>; // forward declare intent to // specialize for double } template<> class N::Y<double> { /* ... */ }; // ok: specialization // in same namespace --end example] ------------------------------------------------------------------- So my code should be legal and it seems a bug of gcc 2.95.3. And in this case Borland C++ and Visual C++ are more standards-compliant. How do you think? Does gcc 3.0 have this problem? Could a later release of gcc 2.x solve it? Or still I err somehwhere? Best regards, Wu Yongwei --- Original Message from Phil Edwards --- > Gcc 2.95.3 in default configuration compiles it well. GCC 2.x did not fully support namespace std. GCC 3 does. Code which assumes the existence or non-existence of std:: will often behave differently when moving from 2.x to 3.x. > I have to wrap the definition in namespace std to make it compile, > which seems against the C++ standard. It's required by the standard. If you are going to specialize a template declared in namespace std, then you must re-open namespace std to write the specialization. Writing std::hash isn't enough. Note that hash_map and the hash template are /not/ part of the C++ standard. They're sitting in namespace std in GCC 3.0 for hysterical raisins. For a future GCC release they will be in a different namespace. Phil | http://gcc.gnu.org/ml/gcc-bugs/2001-12/msg01057.html | crawl-001 | refinedweb | 340 | 69.79 |
Chapter 14. Finishing Your First Game: Bounce!
In the previous chapter, we got started creating our first game: Bounce! We created a canvas and added a bouncing ball to our game code. But our ball will bounce around the screen forever (or at least until you turn your computer off), which doesn’t make for much of a game. Now we’ll add a paddle for the player to use. We’ll also add an element of chance to the game, which will make it a bit more challenging and fun to play.
Adding the Paddle
There’s not much fun to be had with a bouncing ball when there’s nothing to hit it with. Time to create a paddle!
Begin by adding the following code just after the
Ball class, to create a paddle (you’ll stick this in a new line below the
Ball draw function):
def ...
Get Python for Kids now with O’Reilly online learning.
O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers. | https://www.oreilly.com/library/view/python-for-kids/9781457172397/ch14.html | CC-MAIN-2020-05 | refinedweb | 176 | 81.33 |
This article was inspired by Robert Kuster's Three Ways to Inject Your Code into Another Process. At first, I was looking for some pieces of code that would allow me to easily inject my own DLLs into a remote running process. So I did a search on CP and found Robert Kuster's; it was really an excellent article I have to say, but unfortunately, none of those three solutions worked on my Windows 98 (Second Edition). In theory, the "first way" should work on all Windows platforms but it did not (that's why some programmers including me hate Win9x so much). The fix was actually very easy, but since Robert Kuster's code was rather a technical tutorial than an encapsulated reusable library, I thought why not write one for the ease of future uses.
While DLL injection being extremely easy on NT platforms, Win9x users are out of luck because
::CreateRemoteThread is unsupported on Win9x. There are of course other solutions,
::SetThreadContext, for example, coupled with
::CreateProcess, can handle the job for you, but it'd be a bit difficult to inject code into an already-running process because suspending a running thread on Win9x is relatively complicated.
Another simple solution is using
::SetWindowsHookEx, as Robert Kuster explained in his article, thread-hooking (in contrast to global-hooking) a window will result the entire DLL (where the hook procedure resides) be mapped into the target window's creator process; this gives us an opportunity to do any dirty work inside the target process' virtual space, including but not limited to, calling
::LoadLibrary or
::FreeLibrary to map/unmap third-party DLLs into/from the target process, A.K.A., DLL injection.
The down-side of using Windows hooks is that this technique requires the remote process to have at least one valid window, which means you cannot inject your DLLs into window-less applications or services. And that's why I provided two sets of loading/unloading functions for Win9x and NT respectively; those for Win9x require the target process to have a window, whereas those for NT do not. If, however, you want to inject DLLs into running window-less processes on Win9x, this article may not be of help.
The source code attached to this article is a Win32 DLL project. Compile it (or simply download the "DLL binary files" package) and you will get RemoteLib.dll. This DLL acts like an "intermedium" or "bridge" between the target process and your own DLL. It basically handles the code injection in the following way:
::LoadLibraryAor
::LoadLibraryW, depending on whether
UNICODEis defined.
To un-inject your code from the target process, step 2 is changed, RemoteLib.dll will call
::FreeLibrary instead.
I'm not going to discuss the
::CreateRemoteThread approach in details since it won't work on Win9x at all, this article will explain more on Windows hooks.
First of all, since Win9x does not support
::VirtualAllocEx and
::VirtualFreeEx, we need to find a way to pass our DLL name string into the target process for subsequent calls to
::LoadLibrary and
::GetModulehandle, and the
::GetModuleFileName call will also require a string buffer in the remote process' virtual space to temporarily store the DLL name string. Luckily, we have a linker option to do this:
#pragma data_seg ("SHARED") static HHOOK g_hHook = NULL; // Hook handle. static wchar_t g_szDllPath[MAX_PATH + 1] = { 0 }; // DLL path. // other shared data... #pragma data_seg () #pragma comment(linker, "/section:SHARED,RWS")
Then, we need to choose the correct hook type, the most commonly used
WH_CALLWNDPROC will not work on Win9x, as MSDN states:
Windows 95/98/ME, Windows NT 3.51: The
WH_CALLWNDPROChook is called in the context of the thread that calls
SendMessage, not the thread that receives the message.
That's completely against the purpose of this project. So we must use another hook type instead. While there may be better choices, I personally found out that
WH_CBT is by no means a bad one.
////////////////////////////////////////////////////////////////// // Pseudo-code for injecting a DLL into a remote running process. ////////////////////////////////////////////////////////////////// // First we save the DLL name in our shared string buffer. ::strncpy((LPSTR)g_szDllPath, "c:\\test\\MyTest.dll", MAX_PATH); // Then RemoteLib.dll maps itself into the remote process through windows hook g_hHook = ::SetWindowsHookEx(WH_CBT, (HOOKPROC)HookProcA, g_hModInstance, dwTargetWndThreadID); if (g_hHook == NULL) { // Error handling... } // Send a special system message to the target window if (!::SendMessageTimeoutA(hTargetWnd, WM_SYSCOMMAND, 0, REMOTE_LOADLIBRARY, SMTO_ABORTIFHUNG | SMTO_BLOCK, 2000, NULL)) { // Error handling... } if (g_hHook) { // Make sure we remove the hook, in case it wasn't removed by "HookProc" ::UnhookWindowsHookEx(g_hHook); g_hHook = NULL; } // Send a dummy system message // to the target window to force unloading RemoteLib.dll ::SendMessageTimeoutA(hTargetWnd, WM_SYSCOMMAND, 0, 0, SMTO_ABORTIFHUNG | SMTO_BLOCK, 2000, NULL);
Above code will map RemoteLib.dll itself into the target process, and unmap after
::SendMessageTimeoutA returns. But what happens in between? Now we need to take a look at the hook procedure and see what it does.
/////////////////////////////////////////////////////////////////////// // HookProcA (Pseudo-code) /////////////////////////////////////////////////////////////////////// LRESULT CALLBACK HookProcA(int code, WPARAM wParam, LPARAM lParam) { if (code == HCBT_SYSCOMMAND && lParam == REMOTE_LOADLIBRARY) { if (g_hHook) { // Remove the hook ASAP ::UnhookWindowsHookEx(g_hHook); g_hHook = NULL; } // Since we are now inside // the target process's virtual space already... g_dwProcResult = (DWORD)::LoadLibraryA((LPCSTR)g_szDllPath); g_dwProcError = ::GetLastError(); return 1; // Returns 1 so the window won't receive this "meaningless" message } return ::CallNextHookEx(g_hHook, code, wParam, lParam); }
So, what the hook procedure does is simple, because at that moment, the code was already executed inside the target process' virtual space. Calling
::LoadLibrary there just maps any given DLL into the target process, and we are done.
That's the main idea of this implementation. Of course, there are a lot more factors that need to be taken into account, for example:
I will leave all remaining details to the readers, please have a look at the project source code and see how those problems are solved.
To use the library, you need to:
For example, to inject/un-inject "c:\Tools\d2Hackit.dll" into Diablo2 game process, which always has a window whose class name is "Diablo II". Assuming that the user may be using Win9x, so this sample uses the Windows hook technique:
#include "RemoteLib.h" #include <stdio.h> void DisplayError(DWORD dwErrorCode) { char szMsg[256] = ""; sprintf(szMsg, "Function failed. Error code: %d", dwErrorCode); ::MessageBoxA(NULL, szMsg, "RemoteLib Error", MBOK); } int main() { // Find the Diablo2 game window HWND hWnd = ::FindWindow("Diablo II", NULL); if (hWnd == NULL) return 1; // Game window not found. // Inject our DLL HMODULE hModule = RemoteLoadLibrary(hWnd, "c:\\Tools\\D2Hackit.dll"); if (hModule == NULL) { DisplayError(::GetLastError()); // Why did the function fail? return -1; // Injection failure. } /* DLL injected successfully. DO some stuff here... ... ... No we are going to un-inject the DLL */ // If for some reason you // lost the previous hModule, you can have it back: // hModule = RemoteGetModuleHandle(hWnd, "c:\\Tools\\D2Hackit.dll"); // Un-inject our DLL BOOL bOK = RemoteFreeLibrary(hWnd, hModule); if (!bOK) { DisplayError(::GetLastError()); // Why did the function fail? return -2; // Un-injection failure. } return 0; // Every thing went fine... }
This library encapsulates all backend work for DLL injection, and provides a very simple interface to developers who want to inject code into other running processes. Functions exported by this library are all clearly self explained by their names, so I don't think I need to provide something like an "API reference", do I? It works for both Win9x and NT platforms, but please remember that on Win9x, it requires the remote process to have at least one valid window.
RemoteGetModuleHandleand
RemoteGetModuleHandleNTso you do not have to specify absolute DLL paths, instead, you now can specify relative paths or plain file names without paths, even without file extensions.
General
News
Question
Answer
Joke
Rant
Admin | http://www.codeproject.com/KB/DLL/RemoteLib.aspx | crawl-002 | refinedweb | 1,275 | 52.6 |
Visual C# Kicks
Using simple math we can convert between angles (in degrees) and XY-coordinate points. Useful when working with circle elements.
Platform: .NET Framework 2.0
/// <summary> /// Calculates a point that is at an angle from the origin (0 is to the right) /// </summary>; } /// <summary> /// Calculates the angle a point is to the origin (0 is to the right) /// </summary> private float XYToDegrees(Point xy, Point origin) { int deltaX = origin.X - xy.X; int deltaY = origin.Y - xy.Y; double radAngle = Math.Atan2(deltaY, deltaX); double degreeAngle = radAngle * 180.0 / Math.PI; return (float)(180.0 - degreeAngle); }
Back to C# Code Snippet List | http://www.vcskicks.com/code-snippet/degree-to-xy.php | CC-MAIN-2021-43 | refinedweb | 105 | 61.12 |
CodePlexProject Hosting for Open Source Software
Hi,
I have added a IShapeTableProvider to try to insert an alternate Content template for my Blog Post detail page. So far I have the below working
IShapeTableProvider
public class DataShapeProvider : IShapeTableProvider
{
private readonly IWorkContextAccessor workContextAccessor;
public DataShapeProvider(IWorkContextAccessor workContextAccessor)
{
this.workContextAccessor = workContextAccessor;
}
public void Discover(ShapeTableBuilder builder)
{
builder
.Describe("Parts_Common_Body")
.OnDisplaying(displaying =>
{
displaying.ShapeMetadata.Alternates.Add("Parts_Detail__BlogPost");
});
}
}
But the problem is that the alternate applies to all Parts_Common_Body shapes so it's not selective enough (my about me page displays the changes for blog posts which is not what I want). On bertrands post about alternates he uses the content item to work
out if the page was the homepage and only then supply an alternate. How do I do the same for Blog Post pages. I tried to access the ContentItem by calling.
ContentItem contentItem = displaying.Shape.ContentItem;
But this returned null.
How do I work out that I am displaying a Blog Posts Detail page?
Thanks,
Ian
displaying.Shape.ContentPart.ContentItem should work.
Thanks you are correct. But what I am failing to understand is how you know that (besides the fact you work on the team of course). When writing the statement I get intellisense for displaying.Shape.ContentPart and displaying.Shape.ContentItem. The ContentItem
on the shape is null.
My normal instinct is the use the debugger to explore the object graph (thats how I would normally learn the system) but this just simply doesn't work for me because all the objects are dynamic.... It is very frustrating.
For example breaking on display.Shape the debugger doesn't show the ContentPart or ContentItem properties. Is there a technique for debugging dynamic objects that I am missing?
I looked at how the shape was getting created in the driver. We are currently working on new debugging tools for shapes. It will get better. In the meantime, digging into the shapes can be done by going into its behaviors. But it's hard.
Are you sure you want to delete this post? You will not be able to recover it later.
Are you sure you want to delete this thread? You will not be able to recover it later. | https://orchard.codeplex.com/discussions/244869 | CC-MAIN-2016-50 | refinedweb | 369 | 60.11 |
Having trouble making a lorawan using 2 lopy4 devices
R
Roberto Duca about an hour ago
Hi there! I am quite new to Iot and lorawan.
I am trying to set up a small network between two lopy4 devices using lorawan in Australia using the 915 frequency. One device is set up as a gateway using the example off the github drive
for the config i am currently using the following settings in my config file
LORA_FREQUENCY = 916800000
LORA_GW_DR = "SF12BW500"
LORA_NODE_DR = 8
on the things network i have the device registered with teh following frequency plan: AU_915_928_FSB_2
the gateway seems to connect to the internet and shows being active on ttn console, but unfortunately I am not achieving any communication between the node and gateway using lorawan.
I have tried a couple of various pieces of code i've found but suspect it must be how i am registereing the end device. in my code i am trying this code at the moment to no avail:
from network import LoRa import time import binascii import pycom pycom.heartbeat(False) #needs to be disabled for LED functions to work pycom.rgbled(0x7f0000) #red #Set AppEUI and AppKey - use your values from the device settings --> app_eui = binascii.unhexlify('removed') app_key = binascii.unhexlify('removed') lora = LoRa(mode=LoRa.LORAWAN, public=1, adr=0, tx_retries=0) # Remove default channels for index in range(0, 72): lora.remove_channel(index) # Set AU ISM 915 channel plan for TTN Australia for index in range(8, 15): lora.add_channel(index, frequency=915200000+index*200000, dr_min=0, dr_max=3) lora.add_channel(65, frequency=917500000, dr_min=4, dr_max=4) for index in range(0, 7): lora.add_channel(index, frequency=923300000+index*600000, dr_min=0, dr_max=3) #Join TTN Network via OTAA lora.join(activation=LoRa.OTAA, auth=(app_eui, app_key), timeout=0) # wait until the module has joined the network while not lora.has_joined(): pycom.rgbled(0x7f7f00) #yellow time.sleep(5) print('Trying to join TTN Network!') pass print('Network joined!') pycom.rgbled(0x007f00) #green while not lora.has_joined(): pycom.rgbled(0x7f7f00) #yellow time.sleep(5) print('Trying to join TTN Network!') pass print('Network joined!') pycom.rgbled(0x007f00) #green
i have tried OTAA and ABP but it doesnt seem to work. i think the hardware is working because if i set up a raw lora gateway and node i can see packets being sent to each other.
i am not sure what i might be doing wrong? any advice or help would be much appreciated.
Thanks,
Rob
@Roberto-Duca yes, you need to use only the frequency chosen on the gateway.
Note that the network may (and probably will) send it’s on list of channels and frequencies after the join, so ideally you should configure the network to only send that single frequency (don’t know if you can do that on TTN), or you will have to reset the list of channels after the join (or rather before each transmit).
Also I believe the nano-gateway only listen on a single DR, so likewise, you should restrict your node to that single DR (both for join and subsequent traffic).
Remember that a nano-gateway is just there for a bit of testing, it’s by far not a real LoRaWAN-compliant gateway.
@jcaron
Thanks for your reply!
ok so when i set the frequency on the gateway of 916.8MHz that is the listening frequency?
i should then restrict the channel frequencies to 916.8MHz on the node then too?
This post is deleted!
@Roberto-Duca the nano gateway only listens on a single frequency rather than 9 or so a real gateway does. You must remove all channels and only use the signe channel the gateway listens on. | https://forum.pycom.io/topic/7254/having-trouble-making-a-lorawan-using-2-lopy4-devices | CC-MAIN-2022-05 | refinedweb | 621 | 65.62 |
I cannot seem to get os.uname() in a console.alert()
So, I'm trying to make a Pythonista script that has this code:
import os import sys import sysconfig #def uname(): #os.uname() def alert(message): alert_result=console.alert('Kernel/uname info',message, button1='Dismiss',hide_cancel_button=True) return alert[os.uname()]
However, I get a error of so:
**TypeError:** 'function' object has no attribute '__getitem__'
Can someone help?
teacher walks into class okay bye! Will see responses after class in an hour :) thanks community!
import os import sys import console #def uname(): #os.uname() def alert(message): alert_result=console.alert('Kernel/uname info',str(message), button1='Dismiss',hide_cancel_button=True) return alert(os.uname())
alert needs round brackets, message needs to be converted to a string and you have to import console.
Okay, thanks! I must have been tired so I didn't realise my mistake (having slight fever and sore throat :/) 😅 | https://forum.omz-software.com/topic/2866/i-cannot-seem-to-get-os-uname-in-a-console-alert | CC-MAIN-2018-30 | refinedweb | 152 | 53.37 |
Agenda
See also: IRC log
<trackbot> Date: 06 August 2009
<Bob> scribe: Ashok Malhotra
<Ashok> scribenick: Ashok
Bob: Letting eventing have a bit of a rest ... awaiting AIs
Doug: No way to create metedata
in MEX
... MEX lets you access and manipulate metadata but not create it.
<scribe> ... new operation createMetadata
UNKNOWN_SPEAKER: adds to or overrides existing metadata
Geoff: Not clear we have a
usecase for creating metadata
... and then we will add delete?
... we are adding Transfer operations to MEX
... two ways of doing the same thing
... concerned about adding operations to service endpoint
... security considerations
... we may need a separate endpoint
... is this really necessary?
Gil: Think abt a management tool
Geoff: Don't think this meets the 80/20 cut ... security is a considertation
Bob: Are you arguing for CNA?
Geoff: I'm struggling to see the usecase
Dug: If you can get metadata why
not allow update?
... security is always a concern
... there is no way to create metadata. Transfer create is different
... there is no duplication
Asir: Dug wants to know how you
associate metadata created with the endpoint
... the service will make the association
... if I allow others to create metadata for me I will provide a metadata resource factory
... and use transfer create on it.
Dug: Where is that defined?
... there is no notion of a metadata factory
Asir: We can add wording re. metadata resource factory
<Tom_Rutt> dug wants creation of metadata and linking it to an endpoint to be dedfined in this spec, while asir wants it to be outside the scope
<Yves> metadata is not data?
Dug: Metadata factory is not the right solution
Tom: How do you expose the factory in a std way?
Dug: How do I get the factory?
Asir: Out of band
Dug: My proposal makes it part of the standard ... in band
Gil: Where is this factory discussed
Asir: Section 4 of Transfer
Gil: There are a lot of dotted lines
Geoff: Reminds us of implict
operations. We would be adding another implicit operation
... this has side effects
... separate EPR provides security
Dug: Not the same as a Transfer
create
... Transfer create creates a brand new resource
... my usecase associates metadata with an existing resource
Bob: Would a Transfer PUT do it
for you?
... you are looking for an in band solution
Dug: Could work if PUT was decorated with appropriate flags
<asir> As always, a service endpoint can be a metadata resource, metadata resource factory, etc.
Bob: If we provided handles to the factory would that be sufficient
Asir: optional handles
Gil: I go to the Endpoint, gate the factory EPR then do a Transfer PUT on that
Dug: I want to see the details
Bob: Consider a proposal where we have an operation to get Metadata factory
<Yves> always the same issue, link between resource and metadata on the resource. sharing the same URI or EPR is a solution, as it creates an implicit link, but it's suboptimal exactly because of the conflicts of verbs used to manipulate resource and the metadata
Gil: I want to see the proposal
Dug agrees to write a new proposal along these lines. Extend MEX to add operations to get appropriate EPRs
<DaveS> 1) Resource is:
<DaveS> 2) The metedata EPR is:
<DaveS> 3) There is also a factory EPR:
<DaveS> 4) To create a meta data at I send a T-Create to with args (,, metadata).
Asir: That's how it works today
Dug: It is not defined
Asir: We can add more words
Dave: I want to see the proposal
Asir: I am not aware of any
implementations of GET METADATA method
... who would implement such a method
... they always have another EPR
Dave: That's a separate issue
Asir: If we add these operations who will implement?
Dug/Bob: That's premature
Bob: Agreement on direction. Add operations to MEX to expose factory EPR so that TRANSFER optional operation may be used on the factory EPR to create/modify metadata
Asir: There ia a single operation on factory ... CREATE
Dug: May also allow PUT
<asir> As always, a service endpoint can be a metadata resource, metadata resource factory, etc.
<dug> Add optional operation to mex to expose factory EPR so that Transfer operations (e.g. create, put) may be used on the factory EPR to create/modify metadata.
<asir> Asir: need to wait for a proposal
Bob: The above is a directional resolution to issue 6411. Dug will create proposal along these lines.
Bob: make RFC 3986 a normative
reference esp. Section 6.2 that defines comparison or
URIs
... 6.2.1 defines the simplest case --- string comparison
... Resolve by adding the above as normative reference
<dug> MUST use RFC3986 section 6.2.1 for the comparison
<Bob> URI comparisons are performed according to RFC3986 section 6.2.1
RESOLUTION: Issue 7194 resolved by adding "URI comparisons are performed according to RFC3986 section 6.2.1" and adding normative reference
BREAK for 15 minutes
RESUMING after BREAK
<Bob>
Gil: Is the text in Bugzilla
accurate? If so, we should add it
... Add text as 3rd para to section 5
<dug>.
<dug> To retrieve metadata about an endpoint, a requester MAY send a GetMetadata request message to the endpoint to retrieve its metadata.
<dug> To retrieve metadata about an endpoint, a requester MAY send a GetMetadata request message to the endpoint to retrieve metadata about the endpoint.
<dug> A requester MAY send a GetMetadata request message to the endpoint to retrieve metadata about the endpoint.
<gpilz> To retrieve metadata about an endpoint, a requester MAY send a GetMetadata request message to the endpoint to retrieve the metadata associated with the endpoint.
<gpilz> A requester MAY send a GetMetadata request message to the endpoint to retrieve the metadata associated with the endpoint.
<dug> A requester MAY send a GetMetadata request message to an endpoint to retrieve the metadata associated with that endpoint.
RESOLUTION: Issue 6679 resolved with wording in Comment #1 in Bugzilla
Dug: Can we skip this one for now ...
Bob: I will connect to implicit
operations issue
... 6694
<Bob>
Asir: High-level proposal is at
... creates a WS-Policy assertion for filter dialects in Enum
... has Endpoint scope
... can specify multiple dialects supported
... if people agree we can use this as a template to create further assetions
Wu: We needf namespace to put the assertions
Geoff: What about optional
operations?
... how would they be represented in policy?
Asir: We need to look at
that
... on a case-by-case basis
Dug: We need to consider how easy
or hard we want policy interesection to be
... these proposals require domain-specific logic for intersection
Wu: Asks abt domian-specific logic
Dug: This assertion is specific to enum.
Gil: Explains use of assertion
Asir: We shd try and avoid
domain-specific processing.
... Shd the dialect be parameter or nested assertion
... nested assertion with QNames for each dialect would allow domain independent processing
<dug>
Gil: Discusses use of optional on the filter dialect ... use case to test only if enum is supported or not
Dug: My proposal uses nested assertion and uses non domian-specific logic
Wu: Combine assertions into one
Asir: Let's avoid talking abt domain-specific because it is complicated
Straw poll: We need to match on filter dialects
scribe: also strong preference to aviod domian-spefic processing
Dug: we need to be abls to says
1. Enum supported or not
2. What features supported
<Yves> if you go the route of describing all the capabilities, then you will end up with a lengthy one and not usable in implementations anyway
3. Nested vs. siblings
<Yves> (like Accept: headers in http to list all the mime types, but even worse :) )
3 (amended) support clients who do not care about the features
Asir: Put assertions in namespace owned by this WG
Gil: But I can define by own dialect in my namespace
Dug: We already poach on other namespaces e.g. XPath
Dave: If we define it we shd own it
Asir: QNames for assertions we define shd be in our namespace
<Bob> 1. Enum supported or not
<Bob> 2. What features supported
<Bob> 3 support clients who do not care about the features
<Bob> 4. QNames for assertions we define shoud be in our namespace
Wu: Do we have one namespace or one per document
<Bob> 5. assertions shall be concrete
Directional decision to create proposal based on above 5 principles.
<scribe> ACTION: Dug and Asir to prepare proposal for issue 6403 [recorded in]
<trackbot> Created ACTION-90 - And Asir to prepare proposal for issue 6403 [on Doug Davis - due 2009-08-13].
<dug> If the oversize item is the last item to be returned for this enumeration
<dug> context and the data source skips it, it MUST include the wsen:EndOfSequence
<dug> item in the Pull response and invalidate the enumeration context; that is, it
<dug> may not return zero items but not consider the enumeration completed.
<dug>
Dug: Erase text after ; ?
Geoff: Have to be careful when
invalidating enum context
... thats what the end of the sentence is saying
... clarifies client and servers versions of the enum context
<Bob> proposed: strike"; that is, it may not return zero items but not consider the enumeration completed. See the discussion of wsen:EndOfSequence below"
<Bob> and . s/oversized/oversized
RESOLUTION: Issue 7192 resolved with above resolution
BREAK fot 1 hour ... return at 12:42
<asir> Scribe: Asir S Vedamuthu
<asir> ScribeNick: asir
<scribe> ACTION: Wu (and Ashok) to prep infoset proposals for all the WS-RA specs [recorded in]
<trackbot> Created ACTION-91 - (and Ashok) to prep infoset proposals for all the WS-RA specs [on wu chou - due 2009-08-13].
Bob: these should not introduce
any functional changes
... okay to process this work post-Last Call
Issues - 6568-6572
<scribe> ACTION: Ram to prep concrete proposals for issues 6568-6572 (due - 4 weeks before last call or Hursley F2F) [recorded in]
<trackbot> Created ACTION-92 - Prep concrete proposals for issues 6568-6572 (due - 4 weeks before last call or Hursley F2F) [on Ram Jeyaraman - due 2009-08-13].
Bob: please review these proposals before the August 18th meeting
<Ram> ACTION: Ram to check the latest drafts including RFC 2119 terms. [recorded in]
<trackbot> Created ACTION-93 - Check the latest drafts including RFC 2119 terms. [on Ram Jeyaraman - due 2009-08-13].
Bob: these are pending decision
on ws-fragment
... what is the impact of WS-Fragment on RT
Doug: have not done any analysis
<Zakim> asir, you wanted to talk about infosets
Asir: concerned about the amount of work on infosets
Bob: classify infoset related issues as Last Call issues
Returning to RT issues ...
Geoff: can Doug and Ram articulate what RT issues are related to WS-Frag and what remaining issues are related to RT
<scribe> ACTION: Ram to review RT issues and re-classify the targets - WS-Frag | RT | Moot [recorded in]
<trackbot> Created ACTION-94 - Review RT issues and re-classify the targets - WS-Frag | RT | Moot [on Ram Jeyaraman - due 2009-08-13].
[Conspiracy to assign all PM actions to Ram :-)]
Agreed to defer this issue to the next F2F
Geoff: add a new fault to indicate that the result is too large
Bob: too large, whose point of view (sender | requestor | etc)
Geoff: too large for the receiver to handle
Doug: is this for all the Transfer operations?
<dug> code, subcode,reason
Doug: if the group can agree on
the three bits - code, subcode and reason, then I can take a
stab at this
... ResultTooLarge
[discussing whose fault this is ...]
sender fault?
Asir: result is not a keyword in transfer
silence
MessageTooLarge
Receiver
code=Receiver
ResponseTooLarge
Applies to Get, Put and Create operations
<Yves> every method returning something might generate that. Even delete (as the limit might be different than from get or put)
May apply to any SOAP message
Proposal: CWNA
Resolution: closed issue 6632 with no action
this issue is superceded by 6401
Proposal - superceded by the direction that the WG agreed for 6401
Resolution: superceded by the direction that the WG agreed for 6401 - closed issue 6401
Tom prefers to keep it open
Applies to put and create
Doug: may be implementation detail
Dave: do you get into trouble for omiting the namespace
Bob: who would figure that out:
Transfer or a resource?
... could be server based implementation
emerging proposal - cwna - head in the sand
Resolution: closed issue 6633 with no action
emerging proposal - cwna
Transfer/@dialect attribute accomodates the use case
Resolution: close 6675 without any action
Gil: workload is smaller than the RM work\
client-side, server-side, etc. kind of discussion in-progress
asir: from a timing point of
view, this could be done during LC
... from a readability point of view, this could be a great piece of work in the primer
Bob: agrees on timing
... prefer to see in the spec
<jeffm> +q
jeff: agrees with Jeff
Wu: perhaps, in an appendix
Asir: when can we see these drafts
Gil: second week of September
Gil agrees to produce state tables in the second week of September
<scribe> ACTION: Gil to draft state tables for Eventing and Enumeration no later than the second week of September [recorded in]
<trackbot> Sorry, couldn't find user - Gil
<scribe> ACTION: Gilbert to draft state tables for Eventing and Enumeration no later than the second week of September [recorded in]
<trackbot> Created ACTION-95 - Draft state tables for Eventing and Enumeration no later than the second week of September [on Gilbert Pilz - due 2009-08-13].
Need both clien-side and server-side state tables
Bob: close 6635 without any
action?
... resources are in the eyes of the beholder
Resolution: close 6635 without any action
Dave S introduced a proposal
Geoff: can someone define 'application developers'
Doug: we don't have to decide what role
Wu: this is confusing .. who is an app dev or inf dev, they could play both
<Bob> acl li
<Yves> warnings like that may be primer material
+1 to Yves
<Yves> but we should also add "thou shall not write bugs"
<Bob> /me ;-)
<Wu> A web service standard should not impose implementation preference in nomartive specs to enforce one implementation against another
Gil: both parties use policy
assertions
... then everyone is happy
... say someone is using a primitive stack
... they don't have support for policy or policy assertions
... what does it mean to say I support eventing?
wu: use policy assertion to
indicate that you are using implicit operations
... should not constrain implementations
<jeffm> +q
<Wu> +1 asir
li: interop is at the message level, wsdl to bootstrap
jeff: forgot
<jeffm> +q
<jeffm> i remember now ;-)
dave: want some means to not see implicit operations
<li> 1) there must be a way for a service to expose its wse wsdl
<li> 2) two different wsdls creates interoperability issues
<gpilz> what do you want if you don't have policy?
geoff: want to understand the issue on the tooling side
<gpilz> w/out policy any indication of support infrastructure is an out-of-band assertion
<Yves> a good tool would ignore things in WSDL if they ever appear
<gpilz> considering that the actual name of the operation is not significant - what do I look for?
or as I explained .. if an assertion is used then ops would never show up in a wsdl
<Yves> the time used to discuss that issue is far more that what is needed to code ignoring things in WSDL in available tools
+2 to yves
<Bob> +1 to yves
<li> gil can write you a xslt in no time to remove implicit operations
<gpilz> only if you agree to name them exactly the way they occur in the spec
<dug> not this year - he already wrote one this year
jeff: what are you defending against
<gpilz> not next year either
<gpilz> 1 every 2 years
<Wu> +1 yves
Ram: is there any reason why we are prohibiting app dev to not use wsdls
Bob: one man's infrastructureis another man's app
<Yves> also if you have a MUST NOT, and it's not respected by the other party, what should we do? (ie: let's not define universal error-recovery mechanisms here)
<gpilz> if you violate the MUST NOT you have put yourself outside of our spec
<gpilz> and we can't make any promises about what may or may not happen
<gpilz> it may work - it may not
<gpilz> but its not our problem
<Yves> right it's not our problem, with or without that text
Ram: folks may want to use stacks and may implement their own eventing stack
<gpilz> if we don't say MUST NOT, then we have to address what happens in our spec
Bob: can we agree that if we use a ws-ra policy assertion then we can claim what operations are supported
<Bob> How about: When WS-RA behavior is indicated by the use of policy assertion(s) then WS-RA operations have been implicitly defined.?
Agree with Gil and Wu that this is product documentation
<Wu> There is no interoperable issue without forcing all operations to be implicit, because either it decorated by WS-Policy or through your platform documentation.
yep
Bob: got to specify things that are testable and interoperable
[Recessed for 15 minutes]
<li> the only way to increase interop at message level is to use the same wsdl
<gpilz> define "the same wsdl"
Bob: hear that some folks say
that this is an interop issue and some that this is not an
interop issue
... suggest that if this is an interop issue then demonstrate that
Gil: which spec to use to demo
Bob: use one of ws-ra specs
... if you were to use anotehr spec then it is a step away from WS-RA deliverables
Asir: suggest that we use ws-ra specs
Bob: use ws-ra specs
Bob: Aug 24th - will be
away
... 24th is still tentative for Bob
... asks Yves to chair the call
Yves: if available yes
Bob: if not, the Aug 24th call will be cancelled
Setting expectations .. Aug 18th
2119 issues
6568-6572 (before the sep F2F)
[ai walk through ...]
6401 for the next con call
WS-Fragment - Doug and Ram will try their best to have it for the next call
Bob: thanks for the lovely facility, for supporting the wg, for the lovely breakfast and lunch ...
Round of applause
<li> any leftover?
<li> bye
This is scribe.perl Revision: 1.135 of Date: 2009/03/02 03:52:20 Check for newer version at Guessing input format: RRSAgent_Text_Format (score 1.00) Succeeded: s/wait/way/ Succeeded: s/matadata/metadata/ Succeeded: s/facatory/factory/ Succeeded: s/theis/this/ Succeeded: s/operations/optional operation/ Succeeded: s/6.2.2/6.2.1/ Succeeded: s/By/But/ Succeeded: s/Ersae/Erase/ Succeeded: s/prosed/proposed/ Succeeded: s/oversise/oversized/ Succeeded: s/7015/6632/ Succeeded: s/issue 7127/Topic: 7127/ Succeeded: s/close/closed/ Succeeded: s/ack gil// Succeeded: s/+2/+2 to yves/ Found Scribe: Ashok Malhotra Found ScribeNick: Ashok Found Scribe: Asir S Vedamuthu Found ScribeNick: asir Scribes: Ashok Malhotra, Asir S Vedamuthu ScribeNicks: Ashok, asir Default Present: [Microsoft], li, Yves, Vikas Present: [Microsoft] li Yves Vikas Agenda: WARNING: No meeting chair found! You should specify the meeting chair like this: <dbooth> Chair: dbooth Found Date: 06 Aug 2009 Guessing minutes URL: People with action items: ashok asir dug gil gilbert ram wu[End of scribe.perl diagnostic output] | http://www.w3.org/2009/08/06-ws-ra-minutes.html | CC-MAIN-2015-35 | refinedweb | 3,255 | 57.2 |
: September140 Related Items Preceded by: DeFuniak herald (De Funiak Springs, Fla. : 1992) Full Text .2 .2-, 2.'.. - I ~ ii - ~i~! .~. The DeFuniak Springs PUBLISHED CONTINUOUSLY SINCE 1888 I - REP. BROWN DISCUSSES PROPERTY INSURANCE Speaks on insurance reform at Chamber lunch. 1-C ;-,? .UMBER.37 .-.3 SECTIONS THURSDAY, SEPTEMBER 13, 2007 50 CENTS PER COPY INSIDE WALTON COUNTY BUDGET MEETING SETS LIMITS $9.4 million decrease from current budget. 1-C SHERIFF INVESTIGATES MORE BURGLARIES Six residential break- ins in Seacrest, Blue Mountain Beaches. 8-A TOOLS, TOILS AND TURPENTINE A look at early life in the Florida Panhandle. 1-B WALTON KNOCKS OFF TOP-RANKED FAMU HIGH The Braves chopped the heads off FAMU Baby Rattlers with a 27- 13 victory. 8-B CITIES & STATES VS. FEDS The Herald series on illegal immigration in Walton County contin- ues with Part Four. 9-A LOCAL ARTIST DONATES 9/11 ORIGINAL On Sept. 11, Santa Rosa Beach artist Donna Burgess donated an original painting to the SWFD. MOVIE REVIEW CATCH THE "3:10 TO YUMA" 01 111 1 2II o 9 49 22 7 31 72 2 DFS Council adopts more impact fees By ALICIA LEONARD The Defuniak Springs City council met on Septem- ber 10, 2007 to consider a presentation on the Trans- port Impact Fee study. Coun- cil members Don Harrison and James Huffman both voiced their concerns over amounts that would be charged to new homeowners for transport impact fees. Mayor Harold Carpenter agreed that the rates would be a concern and the Council agreed to shelve the issues until the members could have more time to think about it. The Council then approved five to zero the adoption of Ordinance 756 regarding public safety im- pact fees for law enforce- ment. The Council also reviewed a motion to change land use for a 1.9 acre corner located at Quail Run and North 331. Residents came out to speak with the council before the vote asking for a fifty-foot buffer zone from the business area, as well as a restriction of certain types of business if the ordinance was ap- proved. Kathy Herra spoke to the council on behalf of her neighbors about their con- cerns, "We live in a very quiet and safe neighborhood. I and my neighbors are concerned about too much traffic and noise a business like a con- venience store or fast-food restaurant may bring." Ordi- nance 755 was approved by a five to zero vote for the re- zoning of the corner from residential to C-1 zone and will include a 20-foot buffer zone between residential and business as well as a six-foot fence that will separate prop- :erty line when a new busi- ness is built. City Planner Greg Scoville also informed the Council of the proposed site plan right of way with the Lowe's project and updated the council on large scale amend- ments for future plans for the Yahootie project that covers a large expanse of property on south U.S. 331 just past Interstate 10. No action was required on either update.;. Citizen J. B. Hillard then discussed Communities For A Lifetime project with the Council. Former Governor Jeb Bush started the pro- gram and, to date, 160 com- munities in Florida are par- ticipants. Hillard said of the program, "This program is a partnership with Elder Af- See FEES 11-A School board handles waivers, but not cleavage MARIA MILTON, librarian of the Gladys N. Milton branch of the Walton County Library System and daughter of the celebrated midwife for whom the library is named. Milton fights to save library By CHRIS MANSON Last week the cash regis- ter was removed from the Gladys N. Milton branch of the Walton County Library System. No new books have arrived here since August. The air conditioner hasn't worked for almost a month, although a few strategically placed fans provide a tempo- rary solution. The propped- open door to the Flowersview Community Center has at- tracted a small army of what librarian Maria Milton iden- tifies as love bugs. For Milton-the daughter of the celebrated midwife for whom the library is named--closing seems inevitable. Walton County Citizen Services Division Director Ken Little said the state leg- islature mandated that $5.6 million be cut from the 2008, budget. He added that the Milton library accounted for just one percent of the county's library usage in 2006. "We have a brand new bookmobile that can service that area," Little said. Milton said the. entire north end of Walton County would be impacted if the Wal- ton Country Board of County Commissioners (BCC) votes to close the library. The Milton library services Pax- ton along with unincorpo- rated rural communities like Flowersview, Glendale, and Mossy Head. Milton said the' library also provides Internet access for many low-income residents. "It's a big thing lately. The offices where people apply for food stamps want you to do that online now. Also, some students with transportation prob- lems are using the online schools." When Milton first sus- pected the library might be closing, she called District 2 Commissioner Kenneth Pridgen. "They said we don't have to worry," Milton said. "But I'm very worried we're going to close. This may seem like a small decision to them, but it has a big effect oh the people who come to the li- brary." If the budget is approved at the Sep. 24 hearing, the li- brary would cease to operate on Oct. 1. That's why Milton is urging all residents of the north end of the county to get involved. She has posted fly- ers in the library and at the nearby corner store encour- aging patrons to call Com- missioner Pridgen's office prior to Sep. 18. "Before she died, my mother tried to get this li- brary opened," Milton said. "She didn't live to see it open, but she knew the importance of education. She devoted a lot of her life to helping people. She realized a library was definitely something a lot of underprivileged people needed." Milton said the library's circulation has increased sig- nificantly since she began working here last June. "But you can go into Paxton.and find 10 people who don't know the library is here and don't know about the services we provide." The library has offered computer classes and Spanish language classes in the past and has audiobooks and DVD movies available for checkout. "They are not even spend- ing four percent of their bud- get on this library," Milton said. "It's, almost like a double standard here. This is a matter of'we can shut them down because their vote doesn't matter.' That's the attitude they're giving. But the community has made an effort. People are coming in and asking what they can do to help. "If we can at least bring it to the commission's attention that this library is important to the entire north end of the county, I won't give up hope." By PATRICK CASEY The Walton County School Board met on Tuesday, Sep- tember 4 in DeFuniak Springs to discuss waivers, the dress code, and the pos- sibility of a land purchase in southern Walton County for a future school site as part of the regular bi-weekly agenda. Superintendent Carlene Anderson informed board members that the waiver cri- teria for letting school chil- dren in and out of the district has run into a road block with the county's neighbors. Okaloosa County does not want to update the agree- ment at this time and Bay and Holmes County like the current' waiver policy that exists. This essentially ties the district's hands as to making any changes when the dis- tricts next door to Walton County see no reason to change the current process. One allowance the board is willing to make is for the chil- dren of students whose par- ents work for the Walton School District to be able to go to school in Walton, even if they do not meet the nor- mal criteria. The recommen- dations also include a provi- sion that students who do not maintain good FCAT levels that enter the county will have to return to their home district at some point. The issue, like many the board dealt with on the night, is a complex one where changes may affect several legal interpretations on resi- dency and right for a child to obtain a public education as attorney Ben Holley pointed out. The board will continue to watch the waiver issue closely, but without adjacent counties willing to discuss the issue, is unlikely to see change in the near future. The Walton County School Board has an opportunity to, purchase 40 acres of land in southern Walton County as the district is always on the lookout for property in that region to build schools in the future. District Planner Torn Blackshear informed board member that the 40-acres sought is strategically lo- cated north of U.S. 98 and east of CR-395. Blackshear said the land has only a small area of wetlands in its com- pilation in the northwest cor- ner of the tract and is con- sidered a viable option if ac- cess can be obtained via. an easement for the landlocked parcel. Blackshear stated that this is the best choice of 16 parcels they have looked at, but that none of the sur- rounding landowners want to give up an easement so fart The district needs a 100- foot easement across Divi- sion of Forestry land to ac- cess the property, but that entity will likely want some- thing in return for doing so. Board attorney Ben Holley reminded board members that they have until Septem- ber 21 under the current con- tract to find a solution to the easement issue or else they will need to ask for an exten- sion if they wish to pursue that parcel of land. The board discussed the new dress code for Walton County students, which has caused some problems in in- terpretation and enforce- ment. Superintendent Carlene Anderson recom- mended allowing shirts that do not show cleavage, as this seems to be the main concern with V-neck shirts. The board members agreed to re- move collarbone exposure as a limitation, something that was causing a problem in finding compliant garments under the dress code. Since the dress code comes under the Student Code of Conduct, the matter has to be adver- tised. Board member Mark Davis asked to adjust the shirt description further and simply define it as a shirt that does not show any cleav- age or midriffs and is not sleeveless. The change in rule terminology was ap- proved and the layering of clothing is fine as long as it meets dress code and the stu- dent is covered underneath. Board members examined and discussed school irfi provement plans as part of the agenda. Board member Mark Davis commented that there were four schools that lost a letter grade, but met the goals of the school im- provement plans. He noted the board had approved the plans, but asked if they need to set goals higher so that goals can't be met and have the school grade go down. Because of the complexity of state and federal school grad- ing initiatives, it was not guaranteed that the same situation would not arise again. Board members ad- mitted that the problem lies with having a federal pro- gram, a state program and a local objective that do not necessarily concur with the others and the board only has an effect on the local ele- ment. The Walton County School Board will hold their next regular meeting on Septem- ber 18, 2007, at 5 p.m. at the Tivoli Administrative Co- / plex. I :: --rp---;------ --;----r----- I THE DeFUNIAK SPRINGS HERALD, THURSDAY, SEPTEMBER 13, 2007 Anderson appointed to serve on State Articulation Coordinating committee WALTON COUNTY LIBRARIAN Dan Owens (left) accepting donated bilingual ;':',* Rosemary Pendery, Eta Chapter member of Delta Kappa Gamma. Walton County School District's Superintendent Carlene Anderson has been appointed by the Commis- sioner of Education to serve on the statewide Articulation Coordinating Committee. "Mrs. Anderson was recom- mended by the Florida Asso- ciation of District School Su- perintendents," said Dr. 1Heather Sherry with the .Florida Department of Edu- cation Office of Articulation. "Mrs. Anderson's experience in Florida's K-12 educational system will be invaluable to books this group." The Articulation Coordi- nating Committee (ACC) is a K-20 advisory body ap- pointed by the Commissioner of Education. It is comprised of representatives from all levels of public and private education: the state univer- sity system, the community college system, independent postsecondary institutions, public schools, nonpublic schools, career and technical education. The committee coordinates ways to help stu- denlts move easily from insti- tution to institution and from one level of education to the next. Mrs. Anderson is one of three K-12 representatives statewide and one of only two superintendents appointed to the committee. The commit- tee has four standing mem- bers from the FLDOE repre- senting the state university system, the community col- lege system, public workforce education, and the public pre-k-12 schools. Fourteen members are ap- pointed by the Commis- sioner for two-year terms with three representing the state university system, three representing the state community college system, one.representing career edu- cation, three representing public schools, two repre- senting nonpublic postsecon- dary institutions, one repre- senting nonpublic secondary education and one represent- ing students. New books in Spanish and English donated Books in Spanish and En- glish have been added to the Walton-DeFuniak Library to benefit those learning either language. The Eta Chapter of Delta Kappa Gamma So- ciety, International, for key women educators has re- cently donated bilingual books for beginning students of either Spanish or English and a comprehensive picto- rial dictionary for anyone learning either language to Walton, Okaloosa, Santa Rosa, and Escambia County libraries. Each of these books has the dual languages printed side-by-side for con- venience. Last year, a local member of the Eta Chapter, Rose- mary Pendery, saw a need for a bilingual section for new language students at the lo- cal DeFuniak-Walton Li- City of DeFuniak Springs to hold public, hearing The City of DeFuniak Springs will hold the first public hearing on tentative millage and budget on Thursday, September 13, 2007, at 5:30 p.m. at City Hall, 71 US Highway 90 West, DeFuniak Springs, Florida. Sept. 17-23 designated as Constitution Week , The week of Sept. 17-23 was designated Constitution Week, by Public Law 915, Aug. 2, 1956. This year marks the 220th anniversary of the signing of the U.S. Constitution. American Colonists sacri- ficed and died to establish the freedoms guaranteed by the Constitution of the United States of America. "These farsighted citizens provided a republic which established laws to protect the rights of all citizens. To- day, people throughout the world battle for the rights many take for granted," says Sarah C. Levesque, constitu- tion week chairperson, Choc- tawhatchee Bay Chapter, DAR. The Daughters of the American Revolution invites all patriots to read the Con- stitution again and know the rights, privileges and respon- sibilities afforded Americans by this great document. brary. After conducting an in- dependent survey with the help of Dan Owens, Walton County Librarian, and the library staff, it was deter- mined what Spanish-lan- guage books were currently available and which of those were most frequently checked out by library pa- trons. After discussing this with Gene Williams, Spanish in- structor at Okaloosa-Walton College (OWC), and the Spanish and English stu- dents in her class at OWC, Pendery approached the ILlta Kappa Gamma chap- ter with the idea of selecting and donating books for this purpose. Her suggestion was met with enthusiasm and work was begun to locate bi- lingual books for beginning students in both languages. Ginny .McCall, Dr. Dale Yount, Devone Barron and Eta Chapter president Sharon Richardson aided Pendery in the selection pro- cess. For teaching purposes, an understanding and apprecia- tion for both cultures as well as a satisfying learning ex- perience was part of the cri- teria used by Delta Kappa Gamma. After the initial re- view, 121 books were se- lected, including 88 bilingual dictionaries, to be used by Americorp volunteers trained at OWC to aid new Spanish-speaking students in making the transition into the four-county school sys- tems. Care was taken to in- clude traditional stories from both cultures. Taking an interest and helping to fund this project was the Book Store on Baldwin Ave. in DeFuniak Springs, and the local Wal- Mart store on U.S. 331. Books selected for Walton- DeFuniak Library are: DK First Spanish Dictionary; The Ugle Duckling (El Patito Feo) an adaptation by Merce' Escardo' I Bas; Have You Fed the Cat? (Le has dado de comer al gato?) by Michele Coxon; With My Brother ( Con Mi Hermano) by Eileen Roe; Just Like Home (Como en mi tierra) by Elizabeth I. Miller; Calling the Doves (El canto de las palomas) by Juan Felipe Herrera; In My Family (En Mi Familia) by Carmen Lomas Garza; The Lizard and the Sun (La Lagartija y el Sol) by Alma Flor Ada; Baby Rattlesnake (Viborita De Cascabel) told by Te Ata, adapted by Lynn Moroney; Moon Rope (Un lazo a la luna) by Lois Ehlert; Cockoo (Cucu') by Lois Ehlert. Dan Sullivan ajenlcy Q Nationwide' Insurance & Financial Services 892-21 64 Nationwide Is On Your Se Life insurance underwritten by Nationwide Life Insurance Company. Nationwide Mutual Insurance Company and Affiliated Companies, Home Office: Columbus. OH 43215-2220 L2 11/00 A new screen pool enclosure by Hurricane will keep your pool area free from bugs, pool clean from leaves and grass clippings and help provide child protection while still enjoying the natural outdoor environment. _. .... Built to withstand 140 mph winds Many styles, shapes, and colors FAST SCREEN REPAIRS Call 654-1308 Free Estimates AMERICAN CADET ALLIANCE Annual Boot Camp Training 2007 was held June 23- July 15 at Camp Atterbury, IN. These young people graduated on July 16, 2007 from annual training. Back row (l-r) Unit Commander CPT Jimmy 4qcon. C/CPL Scott Kruschke, CIPFC Garrett Herndl, C/CPL James Sydensticker, CI/C'F Jo'nhatan Kruschke, CIPV2 Johnathan Lancer; (front row) C/PV2 Britney Newhouse, C / PFC Jackie.Jordan II, and C/PFC Kelyah Hurley. Anyone interested in the Military Cadets program may contact Macon at (850) 978-2489 or (850) 892-0897. S .Share your News,Events nd Photos dfsherald@gmail.com -i Arm Fedi Lock i rat( ly Aviation Center, eral Credit Union Walton County's Credit Union , in your ow .9 APR with a Fixed Rate Home Equity Loan Do you want... Borrow up to $100,000 at No Closing Cost 100%of your home's value Fixed Up to 15 Year less any existing mo, tiages "I 1, .. r i, Iwo L rI |[e r i i, res fp rM d 1P inw0ro ramp p o n te w -l w a fS jp i J.'w. t I THE DeFUNIAK SPRINGS HERALD, THURSDAY, SEPTEMBER 13, 2007 PAGE 3-A Fall Festival offers unique treasures for early Christmas shoppers The Walton County Art League will hold its 16th an- nual Fall Festival on Sept. 15, 2007 at the Walton County Farmer's Market in DeFuniak Springs. Vendors will begin accepting shoppers at 9 a.m. and will not close until 4 p.m. The annual festival is a fund raiser for the Walton County Art League which was established in 1965. The Art League, incorporated as a non-profit organization in 1998, uses its funds to intro- ducepeople of all ages to the arts and provide venues for artists to show their work, meet with each other and share ideas and talents. Funds from earlier festi- vals were used to add a meet- ing room under the farmers' market area. The Walton County Art League members meet there the second Thurs- -day of each month for busi- ness meetings and art dem- onstrations. The Art League also sponsors programs that the public may attend, most without charge or at a nomi- nal charge in efforts to share our interests and introduce others to the arts. The Fall Festival provides a variety of vendor-made items and all would make wonderful Christmas or birthday gifts that are not available in department stores. Vendors come from all over the panhandle and work hard all year to provide unique and varied items. This year there will be origi- nal works of art, note cards from original art, re-created hand-crafted jewelry and boxes and china. For more information or di- rections, contact Janis Hannon at 850-835-4929. Boy Scouts on the lookout NEW FLORISTS IN TOWN, Duane and Sherry Hicks stand ready for business at DeFu- niak Florist on Baldwin Avenue. New florist opens on Baldwin Avenue By BRUCE COLLIER Duane and Sherry Hicks have been laboring since La- bor Day weekend to clean up and renovate their new flo- rist shop, DeFuniak Florist, at 702 Baldwin Avenue in DeFuniak Springs. The shop, formerly the Gift Bar, needed some work to get up and run- ning for the store's official opening on Sept. 12. The Hicks did the work with the help of "a ton of friends and family." Duane said that work be- gan on Sept. 2. He and Sherry and their helpers have put in "long days" since then, bringing in equipment and merchandise. This is their second flower shop, the first being in Geneva, AL. DeFuniak Florist will open at 9 a.m. on Wednesday, Sept. 12, and will be open Monday Saturdays. Their telephone number is 892- 4747. AFTER: DeFuniak Florist open for business on Baldwin Avenue. BEFORE: Baldwin Avenue storefront exterior, former Gift Bar. CHEVROLET *BUCK AUCTION By ROBIN NEWTON Scoutmaster David, O'Brien has been busy noti- fying everyone about BSA Pack 25. While it is easy to reach those in public school through flyers, the homeschool community is a bit more difficult to reach. Scoutmaster O'Brien invites all parents and youth living in north Walton County who are interested in scouting to learn more about the Troop 25 via their web site at http:/ /bsatroop25.clubspaces.com or contact him directly at 859-0236, or e-mail bsatroop 25@embarqmail.com. - Walton Career Development to hold open house Walton Career Develop- ment will hold its annual Open House on Monday, Sept. 17, 2007 from 6 until 7 p.m. Everyone is invited to meet the faculty and staff, learn about opportunities for high school students to enroll in magnet academies and ca- reer education classes. Information will-also be available regarding full and part-time enrollment aswell as post-secondary education opportunities. Everyone is invited. WCDC is located at 751 North 20th Street in DeFu- niak Springs. F o r more information or direc- tions to the school, contact Walton CDC at 850-892- 1241. GULF AE home. And we'll use those answers to recommend ways to make it more energy POW ER efficient. Log on today. It only takes about five minutes. Or call Gulf Power and A SOUTHERN COMPANY we'll mail an Energy Checkup to your home. 1-877-655-4001 gulfpower.com Silent Auction On Vehicles Costing $2.000 & Less 2nd Friday Of Every Month! Starts Sept 14 475 US Hwy. 90 East Nelson Avenue DeFuniak Springs, FL 850-892-2151 "ARE YOU GOING TO DIG?" "DO YOU KNOW WHERE THE GAS LINES ARE LOCATED?" The City of DeFuniak Springs is now under the Sunshine State One-Call System in order to reduce risk of excavation damage to underground pipelines. Before digging, please call 1-800-432-4770 forty- eight (48) hours in advance for the location of underground natural gas pipelines. This service is provided free of charge by the City of DeFuniak Springs. Monday Friday 7:00 A.M. 5:00 P.M, at 1-800- 432-4770 Emergency Number after 5:00 P.M. and week- ends at (850) 892-8512 Your cooperation in the above matter will be greatly appreciated. is /. ,"' / 4/ ,. . ;< i:: PAGE 4A a 0. '* t 0 "Copyrighted Material' | l Syndicated Contentv 0 . Available from Commercial News Providers . 04 0 0V A t M v 0WW .4 S , ^rh e 4 *B Subscribe Today Mastercard Visa 892-3232 The DeFuniink Springs Herald/Breeze, Inc. 740 Ba4durnld. S'5 Per Year El,,here: $3)1 Per Ycar PRESIDENT/PUBLISHER......Garn Benjamin Woodhamn EDITOR Ron Kelles ASSISTANT EDITOR Bruce Collier ADVERTISING SALES MANAGER......Gary Woodham ADVERTISING SALES STAFF................anice Jackson HERALD-BREEZE NEW\S STAFF............Patrick Casel, Kris Chaiez. Bruce Collier, Ben Grafton. Chuck Hinson, Dotty Ni-t, Joshua Smith. Leah Stratmann, and Jeffrey Po ell HERALD-BREEZE OFFICE STAFF..............Alisha Brown. Sandra McHenry. Norma Rediker. Lisa \1indhanim and Candace Scott (fGRAPHICS) Lisa W\indham (PRINTING PLANT FOREMANi Benjamin \,oodham (PRESSMAN) Alan Rich All ad copy and tcxt originating from The DeFuniak Springs Herald/Breeze, Inc. are sole property of The DeFuniak Herald/Breeze. Inc. and may not he reproduced without permission. rin eze. Im. 74b [3.d..hkI'~IIiAt.. DeFuni~ik Spuings. FL 32435 i'50i -92 3232 uli c ( I ..cj Thiui ,.di!.,;- I dj, .i hBrovic office The Beach Breeze. 44011tI.S. l~9 Santa Rosa Beijcli. FL 3-14,i i '50'j 131-9 .'S I-0918 Ea 2 3 1 -ff)28~ suIIC Letters to the Editor Editor: I had intended this to be a letter not an editorial, but as I saw in last week's paper some lengthy correspondence, I hope you will grant me the same courtesy and space. I will try to be as brief as possible, but this is a subject that should con- cern us all. During the summer vacation I heard on Channel 13 that Bay County, with money from Tallahassee, had a system up and ready to go as follows. Should there be a lock-down at any Bay County School, all parents/guardians would be noti- fied by phone all information pertaining to the situation and what was happening to the children. This would be done within an hour. As this sounded an excellent idea, I called the Walton County School Board to inquire if we had the same for our children. The first lady I spoke to did not know anything about such a plan, but transferred my call to another person. She, too, did not know, but passed my call to a gentleman. He said that, yes, we were going to use this new system. It was not ready at that point, but would Pe ready 'when the school year started. I called back a week after school had started. Guess what? Yet another person I spoke to said we hadn't even received Our grant from Tallahassee yet, but they j would start working on the system when finances were received and it would be up and working before the end of the year. Please bare in mind, I am not being personal towards any- one. The people I spoke to at the school board were more than courteous and really tried to find out the information for me. Perhaps I would have let this slip by, but after hearing that two bomb-threatening phone calls were made to the hospital (and in other parts of the country Wal-Mart stores were be- ing threatened), it is obvious we are not as far removed from this sort of thing as we thought. It is possible to walk into a couple of our schools without being questioned, or detected. I would ask the superintendent of schools to please explain' to the public what has happened to this necessary plan. If Bay County has the project up and running, it must have been in the works for many months. In answer to a previous email I sent to Sharon Roberts, she replied, "I received your email and was interested in this too. I called the School District's chief financial officer (Mr. McCall) and he said he'd make some calls to find out about this for me. When I hear anything I'll be sure to,email you back." In answer to an email I sent to Mark Davis, he replied "Thanks for the information. I will bring it up during the next board meeting in my comments section of the agenda. Frankly, I review pretty carefully the categorical funding that' the State of Florida gives us every year and I did not see the money you described for this system for our district. 'However, I will diligently see what the situation is and thanks again for the.information." His reply to a friend who sent a similar inquiry was "We have both policies and procedures in place for emergencies. Our policies and procedure include everything from 'intrud- ers on campus' to 'fire' emergencies. We also have policies and procedure for foul weather emergencies. After Colum- bine, these policies were required by both the State of Florida (He didn't say who the other party was). The intruder police does include procedures for lock-down and parent notifica- tion. If you need specifics about the policies, please contact the district office at 892-1100 and they will be able to get you copies." We have not heard anything further from both parties. Ap- parently the Walton School Board is not aware of these pro- cedures. If these procedures are handled in the same way as the hospital bomb scare, we are in deep trouble. These are the facts as I know them. There may be others I do not know about. But our children and their teachers are too precious to be left unprotected and our parents and grand- parents do not need to be running all over town wondering where the students are and if they are safe. I do hope you will print this letter because these are fright- ening times we live in and we need to know answers to this situation. Sincerely, Wendy Holliday DeFuniak Springs Correction Last week's Beach Breeze ran a photo and caption, incor- rectly identifying DeFuniak Springs City Council mem- ber Wayne Graham as '"Wayne Carlisle." The person in the photo i- Wayne Graham, who was recently appointed to the Ukaloosa-Walton Transportation Planning Orga- nization. \Ve regret the error THE DEFUNIAK SPRINGS HERALD, THURSDAY, SEPTEMBER 13, 2007 - S --aqwm ;^. , /V . . i.. "Ask Auntie Em" Life got you down? Are there problems you can't seem to fix? Do your best friends run for the hills when they see you coming? Does your dog growl at you when you come home? Are you Dejected in DeFuniak, Frustrated in Free- port, Peevish in Paxton or Saucy in south Walton? Well, move over, Oprah, and get out of the way, Dr. Phil, because Auntie Em is here to help with all the woes that trouble you. Auntie Em has sage advice for the heartbroken, the confused or the purely bewildered. So don't be shy, there is always room at Auntie Em's kitchen table for you. Send your letters to "Ask Auntie Em to the Her- ald, 720 Baldwin Avenue, DeFuniak Springs, Fl., 32435 or email her at dfsherald@gmail.com and read the next edition to get your answers. Life will be sweeter, your friends won't run from you and, who knows, your dog might even start wag- ging his tail at you again. So remember, just Ask Auntie Em! L.________ . "Copyrighted Material S- Syndicated Content S Available from Commercial News Providers" --- - - -. *0 b . - --.0 * - - %- 0.6-.-00 - mfld h 0 'W 4- b 4m m - ~ ~ ~ m 41Da- -~-a .~ -~ .~ - a - -- ~ m - --..do qa -.. 9= ft- .a a- qmll p- . a. a . p. -I.p- NS. amS~ 4- -- --now- 4w- 40b - - e r - S -a- - S . 4b4m- wp- Now -a a 4b ~ QUIaW4D aw* o IN -mom -.gu . A M I I '- 4 - - 4w dP' ft-" ft adob- 41bb - 4 - - "tjqm Isu *1 fw)* tig I EDITORIAL PERSONAL COMMENTS LETTERS TO THE EDITOR Editor's Comments 'le 'War On Freedom' By RON KELLEY There can be no question that one result of President Bush's 'War On Terror' has been the president's 'War On Freedom.' National news is filled with fresh examples al- most daily. The measures that this administration has taken toward eliminating civil rights have been deep and unprec- edented. Overturning such poisoned democracy should be near the top of every current presidential candidate's agenda. I haven't heard one of them mention a thing about it. I'm sorry to admit that these Draconian measures were steadfastly supported by a Republican-led Congress. But I'm also sorry about the tragic failure of the new Democratic- led Congress. After maligning Pres. Bush for countless assaults on Americans' privacy and civil rights, the House Democrats had a chance to deny the president even greater powers - including eavesdropping on Americans without any warrant and leaving oversight of the electronic surveillance program to Attorney General Alberto Gonzales. For most people, such a proposal would be a no-brainer. After all, with Gonzales' poor record, that's just putting the foxes in charge of the henhouse. One might think that mem- bers of Congress, wise to the ways of politics and politicians and their flunkies, would see this bill for what it is another steps toward unlimited governmental power. So what did these Nancy Pelosi-led hard chargers do when given the chance to slap the administration's hand on an excessive, Nazi-style secret police program? They so feared negative spin by this same administra- tion and of being labeled as "Soft On Terror," they swallowed their anger and resentment, along with their honor and cred- ibility, and passed the bill. After all, how could they "take away the tools that America's spy agencies need to fight ter- rorism" and what if there's an attack? They'd be blamed for sure! So they decided not to risk.their long-term professional political careers. (Teddy just needs a few more terms before he is eligible to retire.) I regret to tell you, Faithful Reader, that one of your most important civil liberties just went away quietly. It was elimi- nated with the stroke of a pen and it's not ever coming back. Limitless electronic surveillance on any American citizen, and the shadow-men don't even have to bother with the for- mality of a warrant? Sweet! In defense, Democrats stressed that the law would expire in six months. Hmmm, right. Believe me, any attempt to limit or sunset that law will be vetoed by President Bush and whoever follows him. Many people feel that since government hasn't yet at- tempted to really use all the power its given, itself, that it won't. That's naive and dangerous. Absolute power corrupts absolutely whether you are the president or just a member of Congress, obviously. NEWS FROM THE CAPITOL e. M 0 Thrift- Quest a A Food Stamps 1-- Way Supermarket September 13 19, 2007 Hwy. 90 DeFuniak Springs, FL C3j 3 Savings Plus Oo : t~;ey Specials Best Buys Evey,.5/ :,'. Fresh Ground Beef Patties Call Ahead for Large Orders lb. Family Pack Fryer Breast lb. $129 * SuAr Saus B. Family Pack New York Strip Steaks lb. Sunset Farms Smoked Sausage lb. 199 Boston Butt Pork Roast lb. $119 Boneless Beef Pork Steaks or Country Style Ribs lb.$139 Fresh Pan Sausage lb.$139 Bar S Chuck Roast.......lb. $ 59 Hot Dogs........... 2 oz.98 C10 POUND MEAT PACKAGES 0 Fresh Fresh Ground Ground Chuck $2190 Beef $1490o Fryer Leg Quarters $690 Kelley's Smoked Sausage $2190 Assorted Pork Chops 1690 J I Each additional $10 food order, SUPER BONUS BUYS excluded, entitles you to your choice of one SUPER BONUS BUY! Flavorite Milk gallon$329 Flavorite Sugar 4 lb. 2 Shawnee Best Flour 5 lb.$139 Shur Fresh White Bread 20 oz. $109 Flavorite Medium Eggs dozen 89C Homebest Bleach 96 oz. $119 Super Chill Soda 12pk.$269 r FRLETE Hot Pockets..............Asst. 2/$500 Fresh Frozen Italian Green Beans...............2 lb. Chill Ripe Turnips 3 lb. $229 $299 Hunt's Tomato Paste..........6 oz. Hunt's Tomato Sauce...... 8oz. Del Monte Sliced Peaches 15oz. Libby's Vienna Sausage... 5 oz.2/89 Shopper's Value Tea Bags 100ct. 890 Old Orchard Apple J uice.............64 oz. Kellogg's Frosted Flakes........23 oz. $ Mahatma Rice 5 lb. $399 Flavorite Mac & Cheese... 7.25 oz. 5/$200 Maxwell House Coffee 13 oz. $2" Kraft Mayonnaise qt. 2 Flavorite Sugar 4lb. $ Totino's Pizza 9-10 oz. 2/$300 OPEN MONDAY THRU SATURDAY 6 A.M. 8 P.M. WE RESERVE THE RIGHT TO LIMIT SALE STARTS THURSDAY, 8 A.M. NOT RESPONSIBLE FOR TYPOS Globe Grapes lb. $129 Tomatoes ........lb. 990 Cauliflower head $169 Potatoes 10 lb. $299 Cole Slaw 1b. $129 Green Peanuts lb. $169 I- I N I r- Have Your Caplets Become Time Capsules? Having expired products in your medicine cabinet isn't just inconvenient, it's dangerous. The Medicine Shoppe.. .5" tIll dt%4 Qt 5, 1 4 if 5, 5, ,. , Pharmacy reminds you to clean out your medicine cabinet regularly. Medicine cabinet clutter could cause you to con- fuse medicine, accidentally take expired prescriptions or not be able to find your medications quickly when needed. Vi-Ge di cme Shoppe~o P H AR M AC Y elM 6 e xd w & W k k4 . When refreshing Replace expired your essentials cabinet, be certain with safe and affordable Medicine Shoppe' Brand Products. If you have any ques- tions about the items in your medicine cabinet, visit your local Medicine Shoppe Pharmacist. They'll help clear up your confusion and clean out your medicine cabinet. .15' 14 Ross Centanni, R. PH. & Bill Ray, R.Ph., Allan 674 U.S Hwy. 331 South DeFunLak Springs, FL 32433 rl-F .1 6 P.1M Sat 8 AAM 2 PM Ruther \'t $4 1500 OFF New or Transferred Prescription Ca1 l FPurli3se 5 .' *..15 O0 ff 'i ran,. prescripion -ford, R.Ph. p.n..or Prescripicrr Card i';, i 1 onr, ci fr..edcine S r,.opr .e ranr, ProductS : 850-951-0859/850-951-0498 Iir, orre,.:,r.licr,) i M edicineshoppe.com --// ,it \\. ,, _. it L -...I I I II I- J Southern Homes, Inc. "UPSCALE MANUFACTURED HOMES & MODULARS" COMPLETE LAND/HOME PACKAGES Electric, well, septic, etc. included FHA VA Conventional + Home Only Loans Available. Located 42 Laird Rd. Mossy Head, FL (850) 892-2232 it Southern Homes, Inc. 0H -- Hwy. 90 Mossy DeFuniak Head Springs It matters which air conditioning company you call to service or maintenance your central system. When you place your trust and confidence in American Air, it matters alot to us. Call 892-2804 CfNTA4L EA ,C-.ID--- HEATk FTI --mrw 224~ t3 56c II 83,DFS Fl.CcrtiriedLclL. CAC1814381 MerI [2(71 Walton Cot ItlyCoid tactot s CotoipctCtwx' FBoard A Real Estate Group LLC "Te ol Sanar i RalEsat Srvce NEW LISTING: 4 BR/2 BA with over 2100 'SF. Home has family room with a stone fireplace, many kitchen cabinets includ- ing a work island and all appliances. The master bath has a garden tub and sepa- rate shower. In addition, a bonus room could be a 5th bedroom or used as an office. This home sits on one acre just outside the city limits of DeFuniak Springs. Call today 850-892-0896. CALL US BEFORE YOU'RE TOO HOT. Ti d but 1ftii '111 LI|.I IIIn ',. O til hII>hll"" \'k L,-I f," ->I I-L ILCp Ill .,r ll 1 ',llm b iI 11,i 'i li, ' TAYLOR AIR CONDITIONING & ELECTRICAL INC. 4P6 SALES. SERVICE & INSTALLATION ,, .:4 .N Lit, St DeFurl, l plring, FL 850-892-3955 S.. .. .. . "Where Courtesy, Convenience, and Price All Meet" - AF. ... ..- - Barber's Milk] G 10al n 3.49 11 Now Pumping Gas & Diesel Fuel Bring Ad In For A FREE Coffee or Fountain 935 US Hwy. 90 W., DeFuniak Springs 951-9732 OPEN 7 DA YS A WEEK (..... . (850) 892-9311 OFFICE Licensed in Alabama TRICIA and Florida ERSON e-mail: CRS, GRI arealestategroup 902-0896 @gmail.com rIGUARDIAN I. PEST CONTROL SCIENTIFIC PEST AND TERMITE CONTROL NO NEED To empty cabinets with our Specialized application equipment and techniques NO ODOR To upset your allergies .:.- * 24 Hr. Personal Care Staff * 3 Scrumptious Meals Daily * Recreational Activities * Weekly Housekeeping & Laundry Services Available r Fire Sprinkler System Intercom System '^ " Many More Accommodations 5209 Hwy. 331 South DeFuniak Springs, FL 850-892-8348 s. Stanley House ai Assisted Living Conmmunity . 7 7I8 Walton Road ., -. DeFuniak Springs. Florida 32433 : Phone: 850-951 -188) Fax:. 850-951-2846 .. -- ; ..,. Personalized, Compassionate Care Provided By Our Experienced Staff In A Beautiful Home-like Setting. SI,'lt v Hosls' ,i ssisved $1.11iI O IFF ofl our I.2imergeciy call system liviniig ( t intlsin ity third ruiill ntli's ('lioic of studio or line bedroom I 7IS \lhm Roa. rents ne\er (iI .aiarlnoent Dcl iun.k Sp rinsis. i .32433 son Fo ake the o* Fi calendar of activities niio e It a nie% and Nledlicl anin management Ciall 850-951 II S80 o I' o exciting arelree iPersonal Care assistance 01-M1011atio AL#9616 I a) oflite...bnt it ihlld be to I t' e. Weekly housekeeping l* Pr atle mail boxes LI J locally owned and operated STANLEY lHOUSF EXCITING SPECIAL OFFER S. StaiideY Ilose is leased to anniiiiounce a special offer available only for a S limited time. MoI e in during tie month io September 2007. ,and receive $1.1111 Si ( lOFFt the third month's relt! Moving in has never been easier... ci ie select YOLR apartmieint today! zif7?1/kz Si-q On Menu $3.99 Voni.-Fri. includes tea 11 am 2 pm Hours: Mon.-Thurs. 11 al 10 opm Fri. & Sat. 11 am 11 pm Sun. 11 am 9 pm OPEN 7 DAYS A WEEK AUTHENTIC MEXICAN RESTAURANT DAILY SPECIALS MON. -$1.25 Margaritas small on the rocks $1.25 Small Draft $1.25 Tacos TUES. 2 for 1 Small Margarita on the rocks WED. -$3.00 off Fajita Dinner THURS. $5.00 Athru S5I)ledicine hoppedo Ross A. Centanni, R.Ph. 674 Freeport Hwy. S. DeFuniak Spgs, FL 32433-3349 across from Po'Boys Gun & Pawn (850) 951-0859 (.";6 The Pharmacy That's All About Your Health." 5,1 medicine ei Y~nolia TerrOce Assisted Living Facility A GREAT PLACE TO CALL-HOME ALF #1.0903 SERVICES/AMENITIES: - i npa I Lunch S MMM ARAOKE Everv Thurs. a Sal. 6-9 PW , ,w 1892-44 I THE DEFUNIAK SPRINGS HERALD THURSDAY, SEPTEMBER 13,20407 PAGE 6-A C- p I "", THE DeFUNIAK SPRINGS HERALD, THURSDAY, SEPTEMBER 13, 2007 HomeGrown Kids 4-H Club still growing By ROBIN NEWTON HomeGrown Kids 4H Club has undergone some changes. Former leader Robin Newton has passed the gavel to Melissa Bailey. Bailey and her two sons have been a part of the group for several years and she is as- suming the leadership of the club to take it in a new di- rection. The club used to meet at the Red Bay Community Center but will now hold meetings at the Coastal Branch Library meeting room in south Walton on the second Thursday of each month from 2:45 to 3:30 p.m. The first meeting for the 2007-2008 year will be on Thursday, September 13 at 2:45 p.m. Although the club was es- tablished for homeschooled children, the new meeting time will make it available for all children, between the ages 5-18. Unlike many other 4H Clubs, HomeGrown Kids was and will remain a community club, where each member de- cides upon an area of inter- est for their yearly project. The HomeGrown Kids 4H Club has always focused on community service. They are best known for their creation of four butterfly gardens at the Stanley House Assisted Living center. Anyone interested in learning more about HomeGrown Kids 4H Club can go to Homegrownkids 4hclub@Yahoo.com or call the Walton County Extension Office at 850-892-8172. All programs and related activities sponsored for, or assisted by, the Institute of Food and Agricultural Sci- ences are open to all persons with non-discrimination with respect to race, creed, color, religion, age, disability, sex, sexual orientation, marital status, national origin, politi- cal opinions or affiliations. PRIME TIME Personal Enrichment Classes at OWC: Register Now Registration for PRIME TIME personal enrichment classes at Okaloosa-Walton College is now in progress at all six OWC locations until classes start or are filled. On- line registration is available for those who have previ- ously enrolled at OWC. Open to adults of any age, non-credit PRIME TIME classes start throughout September, October and No- vember. Courses are de- signed for leisure learning with no grades or tests given and focus on computers, health, travel, foods, politics, arts & crafts and more. Fees range from $10 to $65. For a schedule, see the OWC web site at- ule or any OWC college loca- tion, area chambers of com- merce and public libraries. More than 45 courses will be offered at the OWC Niceville campus. A new PRIME Time Walking Club will meet in local area parks and neighborhoods. The popular "Chefs Choice" se- ries will meet at Destin and DeFuniak Springs area res- taurants. Two classes in Con- versational Spanish, one for beginners and one more ad- vanced speakers, will be held at the OWC Chautauqua Center in DeFuniak Springs. New courses being offered for Fall 2007 include: As- tronomy, a new PRIME TIME Walking Club, Behind the Palace Walls Royal Scandals, Digital Cameras, Power Point, Mixed Media with Watercolors, Pen & Ink, and Parapsychology. New short term workshops in- clude: Coral Reefs, Barber- shop Harmony Music Appre- ciation and Panama & the Panama Canal. For information, call 729- 6084 or 729-6085. AMBASSADOR ASHLEY ESTES, a student at Walton High School, spent part of her summer traveling and learn- ing in Europe. "People to People" student ambassador enjoys European vacation By BRUCE COLLIER Ashley Estes is a 15-year- old sophomore at Walton High School, but her "sum- mer job" took her quite a dis- tance from her native DeFu- niak Springs. This past July, Ashley and a group of fellow student ambassadors spent 20 days in Europe, part of People to People Student Ambassador Programs. People to People was founded in 1956, and has enjoyed the support of eight U.S. presi- dents. The current honorary chairman is President George W. Bush. Ashley joined People to People last September, and raised the funds for the July trip on her own. Her travels took her to England. France, Belgium, the Netherlands, Germany, and Switzerland. Among the sights she saw were Buckingham Palace, the Tower of London, Stonehenge, the Normandy beaches, the Louvre Mu- seum, the Eiffel Tower, and the Black Forest. She also took a bobsled ride down the Alps. In Germany, Ashley was the guest of a German family and had a taste of German home life. Ashley's trip earned her high school credit, and she has been invited to join the People to People's 2008 del- egation to tour Australia and New Zealand. The People to People pro- gram, based in Spokane, WA., offers international educational and cultural op- portunities for students in grade school, middle, and high school. Their online site can be accessed at Countryside Festivl, MislcFestI Musical Talent Contest l S Saturday, October 6, 2007, at 6 PM Sponsored by Dave's Music! ,* Entry Fee: $10- Individual; $20- Two or more 4. _. Il.. A f" Is I Ii ze:. 2nd Prize: $75 d Pi: 3rd Prize: $50 Deadline for Registration is September 20, 20071 Turn Registration Forms and Entry Fee in to Dave's Music at 756 Baldwin Avenue, DFS Registration Forms are Available from: Dave's Music 756 Baldwin Avenue, DFS Chamber of Commerce Circle Drive, Chautauqua Auditorium Friendship House 353 Juniper Lake Road, DFS Or call Dave's Music at 892-7073 j 30C4i3c, (~jkieeb~c lttwots& Accessories t..,,,, Itn, L.3243t I Cwn Avalabl de4l ece PAGE 7-A Calling all vendors, dogs, and talented folk By ROBIN NEWTON The Countryside Festival on October 6, 2007 is fast ap- proaching. Craft vendors are needed for the marketplace area of the festival. The Dog Show will be fun for all ages and open to chil- dren and adults. Dogs will be judged on everything from most spots to the most obe- dient to best of show and ev- erything in between. The Aidmore Clinic is sponsoring the Dog Show and applica- tions can be picked up at their office on Baldwin Av- enue. The number at the clinic is 850-892-5435. Dead- line for registration is Sep- tember 20. Dave's Music is sponsor- ing the musical talent con- test during the evening of the festival. Walton County is filled with talented folks and everyone is encouraged to participate. Applications can be picked up at the Dave's Music on Baldwin Avenue. For more information, call 850-892-7073. Deadline for registration is September 20. The Brain Disorder Sup- port Foundation wishes to thank the sponsors for these events, as well as all who will be participating. There are still some spaces left and more vendors are welcome to sign up. Spaces are $10 each ($20 gets a tent.) No. food to be sold, please. Please call 850-830-5051 to reserve a spot. Deadline for registra- tion is September 15. 1674 US Hwy 90 W. DeFuniak Springs, FL 850-951-9680 Fax 850-951-9681 A J 5A I's I' 'I ' The Proven Professionals ,lt REALTY &Assolatces.a Inc.- $ 776 BALDWIN AVE. 951-2488 onM44,e26" What really matters when it comes to .planning a funeral? Is it who has the largest facility or the biggest staff? Or, is it a funeral home that offers the very best care for your loved one, all the guidance and support you need and a variety ofservice options? We think that better service makes a better funeral home. Come see for yourself. Clary-Glenn ,- FUNERAL HOMES Ucally owned 'and family operated Clary-Glenn Funeral Home 230 Park Avenue DeFuniak Springs, FL (850) 892-2511 Clary-Glenn Freeport Chapel Funeral Home 150 East Highway 20 Freeport, FL (850) 835-2511 IM'l Glenn, LFD, Owner Paula Glen', Owner/Prentd agent Joel and Paula Glenn NOTICE OF LAW ENFORCEMENT IMPACT FEE The City Council of the City of DeFuniak Springs, Florida, on September 10, 2007, adopted Ordinance #756 which establishes impact fees to be used for law enforcement. The impact fee rates for the respective land use category forth below: Law Enforcement Impact Law Enforcement Impact Fee Fee Land Use Category Residential $188.14 per Dwelling Unit Commercial $1.08 per Square Foot Industrial/Warehouse $0.60 per Square Foot Institutional $0.61 per Square Foot are as set The impact fees shall take effect on the 13th day of December, 2007. CLAYTON J.M. ADKINSON #74-07 1tc: 9-13 CITY ATTORNEY Coastal Express Tax Service, LLC Bookkeeping, P&L Statements, Sales Tax, Business Consultation for LLC's, Partnerships, Corporations Triangle Chevrolet Buick congratulates AUGUST , SALES CONSULTANT OF THE MONTH DANA RAY GOMILLION See Dana for all your vehicle purchases. CHEVROLET BUICK 475 US Hwy. 90 East Nelson Avenue DeFuniak Springs, FL 850-892-2151 web page: Email: sales@trianglecbo.com I PAGE 8-A County burglaries investigation continues By CHRIS MANSON The Walton County Sheriff's Office (WCSO) an- nounced Friday that they have a "person of interest" in connection with a recent se- ries of home burglaries in Seacrest Beach and Blue Mountain Beach. The bur- glaries occurred over the last few weeks. A total of six un- occupied vacation homes were burglarized, some by forced entry. Among the items stolen were six televi- sions ranging in size from 20 to 42 inches and a laptop computer. The WCSO said more in- formation on these crimes will be released as it becomes available. FHP releases preliminary report on Labor Day fatalities By CHRIS MANSON The Florida Highway Pa- trol (FHP) has released its preliminary statistics for La- bor Day holiday traffic fatali- ties. One of the fatalities oc- curred in Okaloosa County and none in Walton County. The statistics released by the FHP are preliminary and include only crashes investi- gated by FHP troopers. The 23 deaths were spread over 20 separate incidents with roughly 15 percent confirmed to have been alcohol-related. Investigations are pending in another 11 crashes. Four of the fatalities were pedestri- ans, six were motorcyclists, and one was a golf cart driver. Fifty-seven percent of the crashes took place at night. Additionally, the FHP par- ticipated in Operation Com- bined Accident Reduction Ef- fort (CARE). Operation CARE is a national program that aims to reduce the num- ber of crashes on interstate highways during holiday weekends. During the official Labor Day weekend-from Friday, Aug. 31 through Mon- day, Sept. 3-the FHP inves- tigated 1,328 collisions, 110 of them alcohol-related. Troopers charged 178 people with driving under the influence and issued 7,742 speeding citations dur- ing this period. They also is- sued citations for 1,301 seat belt and child restraint vio- lations and provided assis- tance to 3,165 motorists on Florida highways. DeFuniak Springs Police ar- rested the following'people dur- ing the week ending September 9, 2007: Johnny Branch, Age and ad- dress not given, Possession and sale of crack cocaine, Elizabeth Thompson, 23, Ad- dress not given, DWLSR, Robert M. Labuda, 28, Tinley Park, IL., Uttering an altered in- strument, Erica Brown, 27, Address not given, Violation of probation, ,* Theresa Ann McCullough, 28, DFS, Disorderly intoxication, resisting w/o violence, Jammie Lee Johnson, 49, DFS, Battery domestic. THE DeFUNIAK SPRINGS HERALD, THURSDAY, SEPTEMBER 13, 2007 SCrime Stoppers seeks fugitives WANTED is Stephen Rob- ert Reddish, last address un- known. WANTED is Michael Lloyd Smith of Harold, KY. WANTED is Jimmy Donald Suttles Jr. ofPaxton. WANTED Stephen Paul Butler of Santa Rosa Beach. WANTED is Richard Jo- seph Humpert of Freeport. WANTED is William Cuartas of Davenport. Glossary of abbreviations The following is a list of definitions or expla- nations of abbreviations used in the WCSO and DFSPD arrest lists: VOP: Violation of probation MVOP: Misdemeanor violation of probationg lndpr the influence (drugs or.-aco- hol) . WC: Worthldfeh 61k(s) DWLSR: Drlvingwh license suspended or revoked LEO: Law enforcement officer By law, juvenile arrestees' names are listed only as abbreviations, e.g., "John Smith" would be"J.S." Crime Stoppers of Walton County, Inc. is currently look- ing for information for the following fugitives who are wanted as of Sept. 10, 2007. Crime Stoppers will pay a reward of up to $1,000 for in- formation leading to their arrest. Stephen Paul Butler is wanted for failure to appear in court for the original charges of conspiracy, princi- pal to uttering a forged in- strument, and third degree grand theft. Butler is a white male, 41, 5 feet 9 inches tall, 175 pounds, with brown hair and green eyes. His last known address is 28 Crissman Road, Santa Rosa Beach, FL. William Cuartas is wanted for third-degree grand theft and trafficking in stolen property. Cuartas is an Hispanic male, 41, 5 feet 7 inches tall, with brown hair and brown eyes. His last known address is 418 Buckingham Circle, Daven- port, FL. Richard Joseph Humpert is wanted for failure to ap- pear in court on the original charges of no seatbelt, felony fleeing and eluding law en- forcement officers, and felony driving with license sus- pended or revoked. Humpert is a white male, 33, 6 feet tall, 215 pounds, with brown hair and blue eyes. His last known address is 316 Cedar Ave, Freeport, FL. Stephen Robert Reddish is wanted for felony violation of probation on the original charge of grand theft. Reddish is a white male, 52, 5 feet 9 inches tall, 152 pounds, with brown hair and blue eyes. Reddish has a tattoo on his left forearm- with the name "Bobby." His last known address is un- known. Michael Lloyd Smith is wanted for felony violation of probation on the original charges of dealing in stolen property and two counts of grand theft. Smith is a white male, 32, 6 feet tall, 242 pounds, with brown hair and blue eyes. His last known ad- dress is 41 First Street, Harold, KY. Jimmy Donald Suttles, Jr. is wanted for lewd and las- civious molestation of a child under age 12. Suttles is a white male, 41, 5 feet 8 inches, tall with red hair and blue eyes. His last known address is 580 Suttles Drive, Paxton, FL. Anyone with any informa- tion on these fugitives is asked to call Crime Stoppers at 1-866-718-TIPS (8477) or the Walton County Sheriff's Office at 850-892-8186. Call- ers do not have to give their name or appear in court, and could be eligible for a cash re- ward of up to $1,000. Sheriff's office warns against scams By CHRIS MANSON The Walton County Sheriff's Office' (WCSO) is- sued a reminder to all, citi- zens that "no employee or af- filiate of the (WCSO) is per- mitted to contact them to so- licit donations on behalf of the Sheriff's office." In light of.some recent oc- currences, the WCSO. has urged that no money be do- nated to individuals solicit- ing funds on their behalf. WALTON COUNTY SHERIFF'S REPORT Walton County Sheriff's Depu- ties arrested the following people during the week ending Septem- ber 9, 2007: Simon Torres, 28, SRB, FTA, no valid DL, no insurance, Jude Stogner, 23, Freeport, Retail theft, Rosemary Whittle, 21, Shalimar, FTA, Johnny Matthews, 51, FWB, MVOP, Candice Nichols, 24, DFS, MVOP, Harry MacPike, 37, SRB, FVOP, Douglas Duane Mullinix, 46, SRB, FVOP, Donald Wilkerson, 44, DFS, Violation of injunction, Shelley F. Johnson, 44, DFS, Grand theft, Joey Harrison, 47, Westville, FVOP, Jeremy Praytor, 33, Freeport, Battery, Agnes Bowman, 54, Free- port, FVOP (Santa Rosa Co.), Janice Holmes, 32, DFS, FVOP, David Blaker, 37, Freeport, FVOP (Santa Rosa Co.), Kelvin Clayton, 36, DFS, FVOP, James Matthews, 28, Free- port, FVOP (Okaloosa Co.), Teresa Nettles, 38, Bonifay, Grand theft, Daphne Bruce, 33, Samson, FVOP, ' Shandi Davis, 23, Miramar Beach, FTA, Tony Austin, 36, DFS, DWLSR, attached tag not as- signed, Harold Simpson, 49, SRB, FVOP, Linda Cherry, 23, Destin, FVOP, Patricia Coughlin, 63, Oceanville, N.J., Giving false in- fotmation at scene of accident, Chance Chemotti, 20, Free- port, Retail theft, selling alcohol to person under 21 years old, *James Ingle, 64, DFS, MVOP, Press Adkins, 52, Address not given, Sale of oxycodone, Kendrick Nichols, 28, Mount Vernon, FL., FVOP, Martha Moore, 50, SRB, FVOP, Michael Steve Treadway, 46, Freeport, DUI, Robert Kyle Danley, 18, Free- port, Battery domestic, Lum Jermaine Davenport, 26, DFS, Out of county warrant (Escambia Co.), David Michael Schulman, 43, DFS, Expired driver's license, no insurance, no motorcycle en- dorsements, Michael Edward Pettit, 40, DFS, FVOP (Okaloosa Co.), Robert Duncan, 50, DFS, Violation of community control, William Charles Simmons, 22, Freeport, VOP, FTA, Cheryl Mosley, 54, SRB, FVOP, Erica Nowling, 27, DFS, Vio- lation of community control, James Alan Roland, 38, DFS, Possession of marijuana + 20 grams, poss. w/intent to sell within 1,000 feet of school, Alphonise Hall, 27, Mobile, Trespass warrant (Escambia Co.), David Batres-Rocha, 34, FWB, DWLSR, Robert D. Hutson, 33, Alford, FL., DWLSR, Michael Hallman, 23, Niceville, Petit theft, E.C. Ramirez, 20, DFS, DUI, *C.C.H., 17, SRB, Possession of marijuana -20 grams, poss. of drug paraphernalia, Edward Patrick Lee, 39, Free- port, MVOP, E.F. Vargas, 26, SRB, Aggra- vated assault w/deadly weapon, resisting w/o violence, no valid DL, T. Allen Martin, 26, DFS, DWLSR. Alltel Retail Stores Pace Eglin AFB * These Retail Stores Now Open Sunday, 5090 U.S. Hwy. 90 1 (850) 994-5000 Cell-N-Accessories | (850) 651-7051 Crestview Pensacola Ft. Walton Beach SCrestview Corners Shop Ctr. 1(850) 682-1799 Airport (850) 505-4624 Wireless Advantagel (850) 243-6664 Destin * Emerald Coast Emporium | (850) 650-2188 Ft. Walton * 133 Beal Pkwy. N.W.| 1(850) 664-2000 Niceville 4576 Hwy. 20 E. 1 (850) 729-1001 * cordova Mall I (850) 478-5420 *4600 Mobile Hwy. 11(850) 457-0196 * Shops at Milestone 1 (850) 478-7035 Shop at a participating retailer: Equipment & promotional offers at these locations may vary. Defuniak Springs The Wireless Company I (850) 951-1211 For Business & Government Accounts call 1-866-WLS-BIZZ or visit alltelbusiness.com Gulf Breeze Cellular Services | (850) 916-1007 Hurlbert AFB Cell-N-Accessories | (850) 581-2388 Pace Cellular Services (850) 995-0099 Nexcall (850) 995-6099 Pensacola Cellular Services | (850) 473-6884 Cellular Services (850) 484-3977 Gulf States Wirelessl (850) 549-3512 Gulf States Wireless 1(850) 607-7107 TC Wireless I (850) 505-0171 WAL*MART Way to Go Gators! AlItel at the discretion of Alltel. n oif ,ri, a qualifying rate plan. Contact Alitel to determine if you are eligible. Limit 1 rebate per qualifying purchase. Phone cannot be returned once mail-in rebate certificate has been submitted. Customer pays 111. applicable taxes. See rebate form for details. Bluetooth Wireless Technology: The Bluetooth features of this handset may not be compatible with all devices that are Bluetooth enabled; Atltel cannot be C -",M \ responsible for compatibility with devices not sold by Alltel. Additional Information: This offer may be limited due to time, supplies, coverage or participating locations. $25 non-refundable activation fee & i&mnnatlon possible $200 early termination fee applies per line. Service is according to the Terms & Conditions for Communications Services & other information available at any Alitel store or alltel.com. All product I cll. & service marks referenced are the names, trade names, trademarks & logos of their respective owners. Screen images are simulated. 2007 Alltel. All rights reserved. DeFUNIAK SPRINGS ..........POLICE REPORT PAGE 9-A THE DeFUNIAK SPRINGS HERALD, THURSDAY, SEPTEMBER 13, 2007 Cities and states vs. feds (PART FOUR of the Herald series on the impact of illegal immigration on Wal- ton County) By ALICIA LEONARD In July 2007, one small town's effort to take the law and interpretation of the con- stitution into its own hands was thwarted when a federal judge voided an ordinance aimed at controlling illegal immigration. Hazleton, PA., proposed tougher laws on landlords and employers do- ing business with illegal aliens. Businesses who em- ployed illegal aliens would have lost their business li- cense for five years, and land- lords would have been fined $1,000 per undocumented renter. English-as-the-only language was included in this proposal as well. Louis J. Barletta, Hazleton's mayor; stated in August 2006 interview with the Washing- ton Post, that "he wanted his town to be the toughest place on illegal immigrants in America." The push against illegal aliens in Hazelton was spurred by charges against Joan Romero and Pedro Cabrera, illegal immigrants from the Dominican Repub- lic, for the murder of local citizen Derek Kichline in May 2006. Kichline was al- legedly shot in the head by the duo, but the district at- torney dropped the charges in July 2007, due to lack of, evidence and witnesses being deported or changing their story. Federal authorities are now holding the pair, for de- portation.' U.S. District Court Judge James M. Munley opined that Hazleton's ordinance violated the U.S. Constitu- tion and due process of un- documented immigrants un- der federal law. In his 206- page opinion he wrote, "Fed- eral law prohibits Hazleton from enforcing any of the pro- evisions of its -ordinance aimed at expelling illegal im- migrants. Whatever frustra- tions the city of' Hazleton' may feel about the current state of federal immigration enforcement, the nature of the political system in the United States prohibits the city from enacting ordi- nances that disrupt a care- fully drawn federal statutory scheme." The city of Hazleton has vowed to appeal the ruling South Wltrn ML quKo Con Wat. Mq.t and has received over $400,000 in donations from across the country to help with the legal costs incurred. So far, $200,000 of that has been spent and the city has been hit with a $2.4 million bill from the American Civil Liberties Union (ACLU) and other organizations that fought the ordinance. Lead counsel Witold "Vic" Walczak - who is also legal director of the Pennsylvania ACLU - stated in the fee petition that the city was at fault for the legal bills. "Hazleton has used this court as its labora- tory. Defendant's experimen- tation over the past year comes at a price," states the petition. Benjamin Stevenson,. ACLU staff attorney in the Panhandle, reaffirmed the stance in an interview with the Herald. "This is generally an issue for federal law. It's a complex issue that needs to be addressed at the federal level by Congress. It's a tenu- ous and specific topic that should be handled by those equipped to change the law and not piece-mealed to- gether at a city or state level.' Constituents should look to Congress and not cities or states for a comprehensive solution." Hazleton is not the first city to run afoul of the fed- eral government, where lax immigration enforcement has caused a groundswell of ordinances and laws to be en- acted and put to the test across the country's judicial systems. In June 2007, the last immigration bill fell through in the Senate and spurred municipalities and states to take action. According to USA Today and the ACLU, "About 100 communities have proposed ordinances in the past year, most penalizing landlords who rent to illegal immigrants and businesses that hire them. Forty have .passed." Multiple small towns are passing "English- only" ordinances to offset the cost of interpreters for city and county offices and to re- duce the cost of duplicating all official paperwork in Spanish. Hazleton's "En- glish-only" ordinance was re- moved from the ACLU law- suit and re-written into an- other ordinance that so far stands. Illinois, Alabama, Califor- nia and other states are COMMISSIONER SARA Comander wants the county to refuse to hire companies that hire illegal aliens. starting to see cities use laws meant to punish drivers as a tool in the struggle against illegal aliens. The Decatur Daily reported on a new law enacted in Athens, AL. The law "impounds vehicles driven by unlicensed motor- ists." The Athens ordinance took effect Aug. 10 and snaked 299 vehicles off the street in less than four weeks. Police averaged nearly 18 vehicles per day. To retrieve vehicles, owners must pay fines, towing fees, a $25 administrative fee and show proof of liability insur- ance. Only a licensed driver can get the vehicle out of im- pound. Since the law took effect, one Athens towing company employee said the rate of car accidents has decreased dra- matically, but towing ser- vices are busy with impound- ments. Critics of the law say it targets Hispanics and other immigrant groups, but the county's representatives say it ensures safer roads and public safety by remov- ing uninsured and unli- censed drivers and keeps auto insurance rates lower. Huntsville, AL., has a law like this in place and Decatur is working toward establish- ing new laws, based on the Athens results. I Counties in almost every state are getting in the ille- gal immigration battle, as well. Two counties in Virginia have been at the news fore- front lately on illegal immi- gration. Prince William and its neighbor, Loudon County, recently passed tough mea- sures cracking down on ille- gal aliens. A resolution was unani- mously approved in July 2007 by the Prince William County board of supervisors allowing county staff to de- termine and deny, if appli- cable, local public benefits to residents who are illegally in the country. The resolution also empowers'local officers to ask for immigration status of suspects. According to the national publication, County News, an August 2007 interview with Prince William County board chairman Corey A. Stewart expands on the rea- son counties are stepping up to the issue. "The resolutions are not a response to the latest failure by the federal government to do something about illegal immigration, but frustration over several years of the fed's failures to do anything about it," said Stewart, who isn't worried that Prince William County will suffer the same fate as Hazleton in the war on illegal aliens due to the difference in the resolutions. "We are using federal author- ity specifically granted to lo- calities by congress in Sec- tion 287(g) of the Immigra- tion and Nationality Act to require our police officers to ask for immigration status when they have probable cause to believe someone is an illegal alien." London County's resolu- See FEDS 10-A IL ............. This service is free and available to residents of Walton County 4tc: 9-6.13,20.27 Wi.L iM VA. A --I BACK ROW (LEFT TO RIGHT) Brittany Holmes, Kayla Jackson, Adam Reddick, Klariz Teves Front row (left to right) Nicholas Carroll, Adam Hall, Amanda Stokes. Not pictured: Brandon Shankle. Kiwanis Club Student of Month The DeFuniak Springs Kiwanis Club continued with their mission of changing the world one child and one com- munity at a time as they held their first Student of.the Month recognition for the new school year. The stu- dents are selected from each Walton elementary and middle school by the teach- ers and staff. Recognized this month was Brandon Shankle from Van R. Butler Elementary; Nicho- las Carroll from Freeport El- ementary ; Brittany Holmes from Maude Saunders El- ementary; Adam Hall from. Paxton Elementary; Kayla Jackson from west DeFuniak Elementary; Brianna Cryar from Emerald Coast Middle School; Adam Reddick from Freeport Middle; Klariz Teves from Walton Middle and Amanda Stokes from Paxton Middle who came with her mother. The students received a certificate of recognition and a goodie bag with coupons for free meals and other prizes from sponsors like: McLain's Restaurant, Wal-Mart, BanTrust Bank, Sonic Drive In, Arby's, Pizza Hut, CHELCO, Sugar Barrel Cafe, Marvin's, WZEP AM 1460 and AXAAdvisors. The featured speaker for the day was Karen Szulczewski, Communica- tions Director with the Bet- ter Business Bureau of Northwest Florida, Inc. She talked about what the BBB can do for you. They offer business reliability reports, industry reference lists, local charity reports, dispute reso- lution, consumer information and advertising review. A s S P a s ... The Proven Professionals & AssociatesIne. Rachael Earley Sales Associate Office: (850) 951-2488 776 Baldwin Avenue Suite B DeFuniak Springs, FL 32435 Cell: (850) 225-6478 www enaylor.com Thank You To all patients and the community for the great support you have afforded me throughout the years. Practicing in Walton County and Niceville since 1975. RETIRED JULY 31, 2007 Sincerely, Dr. Reodica NOTICE OF FIRE SAFETY IMPACT FEE The City Council of the City of DeFuniak Springs, Florida, on August 13, 2007, adopted Ordinance #751 which establishes impact fees to be used for fire safety. The impact fee rates for the forth below: respective land use category are as set Fire Impact Fee Fire Impact Fee Land Use Category Residential $374.22 per Dwelling Unit Commercial $0.55 per Square Foot Industrial/Warehouse $0.06 per Square Foot Institutional $0.82 per Square Foot The impact fees shall take effect on the 13th day of, D.e ., ,. CLAYTOCNKMW bk1NSON #75-07 1tc: 9-13 CITY ATTORNEY The Walton Board of County Commissioners is sponsoring a project to collect, recycle, treat, and. propertylak' THE DeFUNIAK SPRINGS HERALD, THURSDAY, SEPTEMBER 13, 2007 FEDS FROM PAGE 9-A tion runs parallel to that of Prince William's, except their board of county commission- ers wanted conditions de- fined when the county could pull or decline contracts, building permits or business licenses, when companies defer from federal immigra- tion laws. Federal, state or * emergency medical benefits would not be endangered by the county's resolutions. Walton County Commis- sioner Sara Comander has been closely watching the county vs. illegal alien trends. Comander told the Herald, "I thought perhaps, for us, the first way to go would to be to address this issue from a business stand- point." Comander is specifi- cally looking at employers who hire illegal aliens in Walton County. She contin- ues, "If you are a contractor and hire illegal aliens, then I think you should be re- moved from the bid process or ineligible to work for the county or to hold county con- tracts if you're breaking fed- eral law." Comander has brought up ideas to help the county with the issue in a prior meeting with Bill Imfeld, the finan- cial director for Walton County, on a rough draft per- taining to policy and proce- dures for purchases concern- ing illegal alien hiring prac- tices in Walton County. Comander concludes, "I am hoping that these issues and this rough draft will be com- ing up within the month for us to start working on." The disturbing trend in Walton County of unlicensed illegal alien drivers also bothers Comander on a pub- lic and a more personal level; "I keep seeing illegal aliens in our county being picked up for not having a drivers li- cense and, as a mother and a grandmother, that concerns me. Some of the most pre- cious things in my life are my grandchildren, and if some- one is driving without a li- cense and can't read English, how can they obey traffic signs and laws and .be safe drivers? Or, for that matter, follow directions when build- ing a building?", Senators and representa- tives in many states share Comander's concerns, as well. States join in the immi- gration battles mainly due to pressure from voters, as well as financial drains from ille- gal immigrants not being re- couped from the federal gov- ernment. According to Stateline.org, an online data-pool of state immigration laws, "Immigra- tion laws in Colorado, Ari- zona and Georgia may be the toughest state' actions yet." The National Conference of State Legislation declared "As of April 13, 2007, state legislators in all of the 50 states had introduced at least 1,169 bills and resolu- tions related to immigration or immigrants and refugees. This is more than twice the total number of introduced bills (570) in 2006. Up to this point in the 2007 legislative sessions, 18 states (Arkan- sas, Colorado, Hawaii, Idaho, Indiana, Kansas, Kentucky, Maryland, Montana, North Dakota, Nebraska, New Mexico, New York, South Da- kota, Utah, Virginia, West Virginia and Wyoming) have enacted at least 57 bills in this policy arena, already two-thirds of the total num- ber of laws enacted in 2006. State legislatures have also adopted at least 19 resolu- tions and memorials in their 2007 sessions." Most states work on immi- gration from a public service standpoint. They look to withhold funding for public services, enforcing more stringent rules when apply- ing for identification cards and tighter enforcement of employee job relations and identity. During a recent interview with an area television sta- tion, Florida's First District congressman, Representa- tive Jeff Miller, spread the word about what he calls "a northwest Florida crisis. Be- cause of the strain that some of these illegal aliens are put- ting on the healthcare sys- tems, even the school sys- tems." He says this situation is clearly reflected in north- west Florida. Miller said this community is still very vul- nerable to an even bigger wave of illegal immigration. "You have parts in the north- east where you have large populations of illegals that have congregated and they keep looking to the federal government to bail them out." Even closer to home, state Representative Don Brown told the Herald about a first draft of a bill targeting ille- gal aliens and their drain on Irregular Heartbeat Dr. James Lonquist Cardiovascular Surgeon Wednesday, Sept. 19 10:00 a.m. Suite 3 Resource Center Conference Room Sacred Heart Hospital on the Emerald Coast Call now to register or receive more information: (877) 416-1600 ALL FEET WERE NOT CREATED EQUAL... local and state resources. Brown filed the bill with state bill writers about two weeks ago. The proposed leg- islation is tentatively titled the "Florida Taxpayer and Citizen Protection Act of 2008." The bill includes more stringent verification process for a Florida driver license, a streamlined process be- tween local and government enforcement, tougher laws on employers and contractors and the curbing of social ser- vices to undocumented immi- grants. Brown said, "The Florida effort is somewhat based on a bill that was passed in Okalahoma and drafted to match current Florida law. Current immigration prob- lems fall to the congress and particularly the senate." When asked why he decided to draft the bill, Brown replied, "It's some- thing states can do in the meantime and may cause the federal government to wake up and get moving on this is- sue. I wanted to introduce some type of meaningful leg- islation on the behalf of my constituents." Brown says he is open to suggestions from the citizens he serves, "I want input from everyone on this subject and the bill. I am open to all sug- gestions and would like for people to be able to take part in the lawmaking process and maybe we can get some- thing moving on.this issues at the state level, since it seems frozen at a federal one." Throughout the interview, Brown affirmed that commu- nities and states will pick up this issue as long as the fed- eral government drags its heels toward a solution. In the meantime, he says, this will only increase litigation between immigration-rights groups and the communities that are trying to keep laws that the federal government has on the books, but do not have the money, manpower or the gumption to enforce. Next Week: Sanctuary and Schools caught in the immigration battle. Subscribe Today! VISA MASTERCARD 892-3232 Gladly Welcoming New Patients f 4. * am 5:30 pm 7 am 5:30 pm : 7:30 am 4:30 pm Fri. 7:30 am 2 pm Dr. Stacey Tempkin, D.O. Tues., Wed., Thurs. 7:30 am 4:30 pm Fri. 7:30 am 2 p.m. 0*0 0 located 21 WEST MAIN S i Ka: Oxygen Ul Batteries Supplies are limited, Get them while they last TO-DAY M O DAY THRU FRIDAY NOW ACCEPTING New Patients & Most Major Insurance Including Medicare Your Locally Owned MRI Facility (850) 951-6200 888-892-3523 101 Microspine Way, DeFuniak Springs, FL Located in the MicroSpine Medical Plaza PAGE 10-A howkmA THE DeFUNIAK SPRINGS HERALD, THURSDAY, SEPTEMBER 13, 2007 PAGE 11-A Armed Services Academy Day at OWC Congressman Jeff Miller (R-FL-01) has announced he will be sponsoring the Acad- emy Days to provide prospec- tive service academy appli- cants information on the nomination process. An Academy Day will be held at the Okaloosa-Walton College Niceville campus on Satur- day, Sept. 15 at 10 a.m. in the community gallery located in Building K. "This is a great opportu- nity for students, parents and educators of the First District to find out what it takes to apply and possibly attend one of our nation's ser- vice academies. I hope these events will serve as a cata- lyst to our future leaders to chase their dreams and serve our country" said Miller. The Academy Days are open to any interested high school student, counselor or educator with a presentation from representatives of the five academies. Breakout sessions will discuss the spe- cific requirements of high school students followed by individual and small group consultation on the admis- sions procedures and pro- cesses for their respective institutions. "On Your Side" WMBB Anchor Team "It's not often we have the opportunity to meet celebri- ties that we see everyday but never have the opportunity to meet. Television reporters are depended upon to provide the public with daily weather and news reports. Rarely does the public have the op- portunity to meet these re- porters. Well, that is going to change when the news an- chor team from -WMB'B- Channel 13 comes to town next week," says J.B. Hillard, president of Chautauqua Cyber Club of DeFuniak Springs. The Chautuaqua Cyber Club and Okaloosa-Walton College are co-hosting a pub- lic forum to hear Chief Fore- caster Jerry Tabatt discuss his many years as a weather forecaster. Tabatt will present his experiences of reporting hurricanes in Northwest Florida, and the changing environment. "The 'On Your side' news team of Amy Hoyt and Jerry Brown come into our homes every day with the latest lo- cal and national news. The one-on-one interviews by Mrs. Hoyt are a favorite, and Jerry Brown keeps the pub- lic informed with his special interest reporting," Hillard said. Participating will be the Walton County Citizens Ser- vices and Emergency Ser- vices Departments who will provide special information on hurricane evacuations and answer any questions that might "pertain to the county. This event is open to the public, and will be held at the OWC Chautauqua Center in DeFuniak Springs on Sep- tember 20 at 10 a.m., room 154. For more information call Barbara Jones at 892- 8100 or Hillard, 974-2620. Each year, dozens of aspir- ing students are nominated by the congressional office for appointments to each of the national service academies: WC Heritage Museum reducing its hours of operation The Walton County Heri- tage Museum is temporarily reducing its hours of opera- tion for the next two weeks to Wednesday and Saturday afternoons from 1 p.m. until 4 p.m. The Okaloosa-Walton Col- lege Science Department will hold a free seminar on Fri- day, Sept. 21 from 11 a.m. to noon in the college's Robert E. Greene, Jr. Science build- ing on the Niceville campus in the main lecture hall. Mr. William "Sandy" Pizzolato will speak on "It's Your Darter: Recovery of the En- dangered Etheostoma okaloosae." The presentation on the Okaloosa.darter will high- light the U.S. Air Force's commitment to environmen- tal stewardship in preserving The U.S. Air Force Academy, The U.S. Naval Academy, The U.S. Military Academy, The U.S. Merchant Marine Academy, and The U.S. Coast the natural resources of the Choctawhatchee Bay and how Eglin Air Force Base carries out its ecosystem management in aquatic habitats. Pizzolato is an adjunct pro- fessor at OWC and works as a research associate for the Eglin AFB Natural Re- sources' Forestry Section. He holds a master's degree in geosciences from the Uni- versity of Louisiana-Monroe and has worked as a hydro- logic field technician with the U.S. Geological Survey. and as an environmental soils technician for the U.S. Army Guard Academy. Those that receive appointments earn a four-year scholarship worth approximately $100,000 fol- lowed by an exciting and re- Corps of Engineers. Part of the OWC monthly series, Science, Technology, and Society, the event is open to the public. Groups are en- couraged to call ahead to en- sure seating. Future semi- nars this semester will be Oct. 19 with OWC Assistant Professor Dr. Lisa Struck on "What's in a Computer Chip?" and Nov. 16 with OWC Professor Dr. Gail Baker on "Antibiotic Resis- tance." For more information con- tact the OWC Science De- partment office at 729-5376. FAMU Computer Science and IT info session at OWC Representatives from the K community gallery,. discussed. The event is Florida A & M University hosted by OWC's Advanced (FAMU) Computer and In- Information about careers Technology and Design De- formation Science Depart- in computer science and in- apartment and the OWC Ca- ment will present an infor- formation technology, reer Resource Center. mation session on Monday, FAMU's bachelor's and Sept. 17, at 12 noon, at the master's degree programs, Call OWC at 729-5217 or Okaloosa-Walton College transfer to FAMU from OWC 729-6467 for additional infor- Niceville Campus, Building and FAMU admission will be m them the best attention and care. Call 654-4641 and will give Sacred Heart Medical Group k 'Welcomes Melinda Graham, M.D. S. Trained in Obstetrics & Gynecology at Louisiana State University and the University of Alabama at Birmingham SSpecial interests in women's health, wellness and infertility S1 Now delivering babies at the Family I Birth Place at Sacred Heart , 4 I +Saced ear ALEXANDER NEIM BOARD CERTIFIED II LOCATE 1031 US H\V DEFUNIAK S AMERICAN BUSI' CALL FOR AN 8 APPOINTMENTS OIIC[E HOUI Monday, Tuesd Wednesday 8:30 AM- 2 PP Thursday 12 NOON 6 P Friday 8 AM- I. I IN-OffIC[ lAB FACILITY (4DULT PRACTICE ONLY) IAN, M. D. N INTERNAL MEDICINE ED AT Y 90 WEST SPRINGS. FL NESS COMPLEX 92-09971 Diabeles lyperlension Cholesterol Screenings Kidney Trouble nations For: * Tetanus Diptheria DARREN PAYNE, MD * 15 Years Experience * A Friendly'Caring Manner * Full-Time Medical Director of Crestview &IN M warding career in the armed forces. In addition, ROTC repre- sentatives will discuss schol- arship opportunities avail- Adult Vacc *Flu Pneumonia 'M .12 able through the many col- lege university programs around the country. For fur- ther information, call 850- 479-1183. (COMMUNITY CALENDARS FEES FROM FRONT THE EUCHEANNA COMMUNITY CENTER will hold its annual meeting and dinner at 4 p.m., Saturday, October 13, 2007, at the community center (old school house) on McKinnon Bridge Road. All who volunteered and participated in the restoration of the old school house will be honored. The key note speaker will be District One County Com- missioner Scott Brannon. All elected county officials have been invited. The meeting will include the election of officers and direc- tors for 08-09. All paid-up members may vote. A dinner will be served immediately following the annual meeting. Main course and drinks will be provided. Please bring a potluck dish or a dessert. Any questions, call Patsy Foss at 892-9112. fairs and is a positive way to promote integration with a focus on older citizens. It will improve the quality of life for the entire community and not just that of senior citi- zens." The motion to adopt a resolution to become a "Com- munity for a Lifetime," was approved unanimously and Hillard was given an action from the Council to take the city adoption to a request the same on a county level. Property, liability and workers comp insurance re- newals were next on the agenda. The council agreed to follow staff recommenda- tions and begin a new policy with the League of Cities in- surance company. The change over is estimated to save the city a little over $6,000. Other highlights included a presentation of a plaque to the garden club in recogni- tion of their efforts to beau- tify the city. City Marshall Mike Adkinson received ap- proval for bids on new com- puters, software and updated emergency medical packs for all patrol cars. Tiffany McCaskill from the South Walton Tourist De- velopment Council (SWTDC) presented City Hall with a painting by Justin Gaffery. The artwork is a part of a program sponsored by the SWTDC called, "Art in Pub- lic Places." McCaskill said the program is intended to promote art and artist in the county. It creates a sense of pride and pleasure and serves as an inspiration to our community." The paint- ing will be displayed in City Hall for the next year. NEW! Introducing Beltone Marq. Designed to Disappear ... Beltone Marq is unlike any hearing instrument you've ever seen: . * Tiny and feather-light, it's the smallest, lightest hearing aid in its class. * Its ergonomic shape follows the contours of your ear, virtually disappearing behind it. * It reduces unwanted noise and allows you to follow conversation around you, so you can hear sound in a clear and natural way. * Receiver-in-the-ear technology delivers m Oa rq exceptional performance. .Look, she's wearing it!" Call owa FREE ......F $800on FREE B E a Beltone Marq hearing system HEARING -,;. .- SCREENING -" , :op- I.~ *Beltone i o.pi..... Beltone -- ---------- -- ---- :z= -**------------- Benefits of hearing aids vary by type and degree of hearing loss, noise environment. accuracy of hearing evaluation and proper fit. 2007 Beltone Electronics ^^B~~~~~ :0I *iils :*M .iiiSs^ i~ 5 ~ii^^AJ^fmg~^iC ^B ^3^ The Fiest i LEE MULLIS, MD * Over 25 years experience * National Leader in Painless No-Stitch Cataract Surgery OWC Science seminar, Sept. 21 on Okaloosa Darter iceville UtOfficeS Darren Payne, MD A kind and friendly way Lee Mullis, MD Board Certified Eye Board Certified Eye Physician & Surgeon Physician & Surgeon Special interest in Senior Eye Care, including Cataracts, Glaucoma, Droopy Eye Lids and Retina Problems. * Accepting new OB/GYN patients Hours: Monday Thursdav, 8 a.m. 5 p.m. and Friday, 8 a.m. 12 p.m. Most major insurance plans accepted. Disease of HIeart & Lungs Stomach Problems vs Cancer Screening ay, Pap Smears ACCEPTING MEDICARE & MlDIeCan) AS \\ ELL \S MtOST Hl \LTH INSURANCE Mullis Eye ]Institute 930 N. Ferclon Blvd., Crestview, FL 32539 1003 W. College Blvd., Niceville, FIL 32532 (850) 682-5338 (850) 678-5338 1 NII'DICARE ASSIGNMENT ACCEPTED I I I -j 90 W.~U~WRi PAGE 12-A Hogans joins Prince A local trumpet player has, in Las Vegas,. NV. As part of Prince's band, Hogans has also had the opportunity to play with Elton John. This is not the first time Lee Hogans has had success as part of a megastar's band. Lee just finished up a CD tour with Sean"Diddy" Combs, a rap artist and hip hop mogul. Lee Hogans is also an accomplished jazz artist who got his start in music at Morrow High school' in Clayton County, GA. He then attended Georgia State University, where he studied classical music under Mark Hughes, principal trumpeter of -the Atlanta Symphony Orchestra. In 2003, Hogans earned a masters degree in Jazz Performance at Rutges University under the guidance of the renowned jazz educator William Fielder, instructor to award winning artists such as Terence Blanchard and Wynton Marsalis. Hogans' artistic ability has been heard from Savannah, GA. to Italy, Japan, and Portugal. He has traveled extensively with international touring band. "Total Package," and under the big top of UniverSoul Circus with the "Poppin Soul Band.". He has also ,performed with world-renowned musicians including Stanley Cowell, Ralph Peterson, Ralph THE DeFUNIAK SPRINGS HERALD BREEZE, THURSDAY, SEPTEMBER 13, 2007 Beasley, Scoville, Vorwald, speak S at Rotary The DeFuniak Springs Rotary Club recently welcomed Bobby Beasley, Walton County Supervisor of Elections, and Bill Vorwald of the Vote in Honor of a Vet program. Beasley gave an update on activities of his office, and Vorwald explained the goal of the Vote in Honor of a Vet program, which is to recognize Walton County veterans by encouraging voter participation among the entire voting population. At another luncheon, Shaneika McKenzie, Senior Health Educator for the Walton County Health Department, gave an excellent presentation about diabetes. McKenzie explained the symptoms and risk factors of this increasingly prevalent disease as well as preventative measures, such as regular exercise and a diet rich in fruits, vegetables, and whole grains. The presentation was very timely for some of the Rotarians in attendance. Rotary is a worldwide organization of business and professional leaders that provides humanitarian services and encourages high ethical standards in all vocations. The Rotary Club meets each Wednesday at noon at McLean's Steak House and welcomes visitors and prospective members. City Planning Director Greg Scoville recently spoke with the DeFuniak Springs Rotary Club about some lessons of the issues his office must address. His major responsibility is to define a vision for the growth and development of the city by setting forth its goals and objectives. Among the many issues he must consider in the near future are the comprehensive plan, public safety impact fees, and alternative traffic routes for highways 331 and 90. DeFuniak Springs is now home to about 5,300 people, a figure that is expected to grow in the near future. Along with that growth comes the need for livable- wage jobs and available housing. LEE HOGANS is part of a four member horn section and performs behind Prince. Bowerm Christ Potter, the late great saxophonist Illinois Jacquet, R&B star Stevie Wonder, and shared the stage with the legendary Ray Charles as a part of his orchestra, under the direction of Victor Vanacore. Hogans' accomplishments do not stop there. He debuted his first album, "The Vibe Orientation" in 2006. The Vibe Orientation is a soulful mix of jazz and R&B that was largely written and produced by Hogans himself. Lee Hogans may travel all over the country following his love of music, but he calls Atlanta home. His parents, William and Belinda Hogans, live in Tyrone ,GA; his grandmother, Ruth Hogans, lives in DeFuniak Springs, FL; his great-grandmother, Mary Anna Clemmons, resides at the Chautauqua Rehab and Nursing Center in DeFuniak Springs, they are still his biggest fans. COMMUNITY CALENDAR A BENEFIT FOR MAC CAMPBELL will be .held on September 27, from 11 a.m. 6 p.m. at First United Methodist Church in DeFuniak Springs, Florida. A pork chop meal will cost $10., TRI-COUNTY COMMUNITY COUNCIL, INC., Board of Directors will meet on Thursday, September 13, 2007 at 6 p.m. at Simbo's Restaurant in Bonifay. Finally a place that you can call home. A place for everyday living. Homes priced from $189,000 (Homesites from $75,ooo-ask about additional incentives!) "- d * J'I:IIIr ,iJ | Sterling Realty, LLC A i i,- ,,:- : .-1 jmnenities subject to change without notice. V' Meet Our Family of Featured Builders: Greg Goodwin Construction, Inc. CGC1508331 Key Lime-Homes, Inc. CBC040879 Randy Wise Homes, Inc. RGoo29913 Spence Brothers Construction, Inc. CGCo61631 Coming Soon: Classic Communities. For more information, please contact us: 866-399-4461 or visit PUBLIC HEARING NOTICE TO CONSIDER STIPULATED SETTLEMENT AGREEMENT Notice is hereby given that the City of DeFuniak Springs City Council will hold a public hearing on Monday, September 24, 2007, beginning at 7:00 p.m., or as soon thereafter as may be heard at the DeFuniak Springs City Hall, 71 US Hwy 90 W, DeFuniak Springs, Florida, to consider the adoption of the following proposed settlement agreement and transmitting the proposed settlement agreement to the Florida Department of Community Affairs. 1. A STIPULATED SETTLEMENT AGREEMENT BETWEEN THE STATE OF FLORIDA, DEPARTMENT OF COMMUNITY AFFAIRS, CITY OF DEFUNIAK SPRINGS, AND PEC DEVELOPMENT GROUP AND YAHOOTIE LLC. REGARDING COMPREHENSIVE PLAN TEXT AMENDMENTS LSA 2006-LSA-02 AND 2006-LSA-08. The proposed stipulated settlement agreement. Gregory L. Scoville, AICP Planning Director #78-07 ltc: 9-13 PAGE 1-B THE DeFUNIAK SPRINGS HERALD BREEZE, SEPTEMBER 13, 2007 Tools, toil and turpentine A scar, It "C ili 4 ~mb~w..Jw*. ' o RA.YMON MELVINpoints out one of the earliest turpentine cups used in the Panhandle. These early cups often came from France as ballast in ships. (Photo by Jeffrey Powell) By JEFFREY POWELL Few industries have affected the Florida Pan- handle like the Turpentine industry. Even fewer people have the depth and scope of knowledge concerning the industry like Santa Rosa County resident Raymon' Melvin. Melvin, a fourth-gener- ation Panhandle resident, has collected the tools, folk- lore and personal knowl- edige to be considered an expert in the history of this vital link to the past. "My daddy, granddaddy aid great granddaddy all worked around the turpen- tine business," Melvin said. "My ancestors have been in the area since .1855."'' - Simply put, the turpen- tine process consisted of the collection of pine pitch (sap) from live trees by scar- ring the tree and placing a ceramic or metal cup at the base of the scar. The col- lected pitch was then taken to a distillery and rendered into turpentine. The final product was stored in wood- en barrels and transported by wagon to a shipping point for distribution. According to Melvin, hu- mans have been collecting pitch for use in the ship- ping industry for over 2,500 years. In the southeast United States the practice seems to have been started around 1700 in the North Carolina area and headed south. "The workers traveled south thinking there was no end to the pine trees," Melvin said. "We all know now they were wrong." Locally the turpentine industry peeked around 1912 when there were close to 150 stills on what is now Eglin Reservation and the surrounding countryside. By 1960, the process was all but dead in the Panhandle. . Melvin's presentation titled "Tools, Toil and Tur- pentine" was given at the Heritage Museum of North- west Florida in Valparaiso on September 6, as part of the facilities "History Sand- wiched In" series. Visitors. are encouraged to bring a brown bpg lunch and enjoy, the presentations. "What a pleasure it is to have Mr. Melvin share his knowledge on such a significant portion of our .local history," said Heritage Museum Director Michelle Severino. "His knowledge and vast collection of tools and associated items are certainly museum worthy." For more informa- tion concerning mu- seum programs, contact 850.678.2615. .4/rplRAK Evr terSna 12- P 'I ~K-R-A-,-, Ever 'hus.a.t Lunch Special #1-9 On Menu $3.99 Monday-Frida y includes tea 11 am 2 pm AUTHENTIC MEXICAN RESTAURANT DAILY SPECIALS MONDAY $1.25 Margaritas small on the rocks $1.25 Small Draft $1.25 Tacos TUESDAY 2 for 1 Small Margarita on the rocks WEDNESDAY $3.00 off Fajita Dinner THURSDAY $5.00 A thru L on Menus $1.99 Beer Mexican & Domestic FRIDAY & SATURDAY 2 for 1 Margaritas SUNDAY $2.00 Off Taco Salad & S#48, #49 & #50 On The Menu FULL BAR SPECIALTY DRINKS Hours: Mon.-Thurs. 11 am 1o pm Fri. & Sat. 11 am 11 pm Sun. 11 am 9pm OPEN 7 DAYS A WEEK 1317 Hwy 331 South D r kfil (850) -'5 2f' ' DAILY HAPPY HOURS 4-7PM * 2 for 1 Margaritas On The Rocks *$4.25 Pitcher Draft * 2 for 1 Draft Beer ~~1, N: 1. -- ?, \^ 'V ''I - at it k MELVIN SPEAKS TO AN INTERESTED attendee concerning the use of turpentining tools. (Photo by Jeffrey Powell) 'I ii iii I' I, I, IA p1 ii - I i I ii rr~-~ll CL ~C~\~DI~_~~_iB~7~a~ePg~~l~9~e~ePL~_r '. 's_ S~cOOOF THE DeFUNIAK SPRINGS HERALD, THURSDAY, SEPTEMBER 13, 2007 SociaC '4,.... .. ' Mr & vrs. Lfoyd uFloyd Anniversary Announcement AL,. !- .A. We're having a party, We've reason to celebrate! We're inviting relatives and friends We just can't wait!! Our mama and daddy have been together 50 years, Raising us two kids through laughter and tears! We'll eat and we'll visit We'll just have a ball! Please make plans to come If you know them at all! Write something about them, a funny story will do- If you have an early picture, We'll take that too! We're gathering at their house As so many times before, Bring what you'd like to eat It will just add more. The 22nd of September Is the date we have set Be there around 2:00, Please don't forget. They live in the country As you well know Dress to be comfortable We're just having fun -no show! Family of Lloyd and Clarese Floyd *, D3S friends of the Library to sponsor booksale The DeFuniak Springs Friends of the Library (FOL) will be sponsoring a book sale on Sept. 15, 2007, at the Wal- ton County Fairgrounds. The hours of the sale are 9 a.m. to noon. Members of the FOL Board will be at the fair- grounds to accept donations on Friday, Sept. 14, from 3-4 p.m. Open ,Door Club The Open Door Commu- nity Club of DeFuniak Springs will hold its opening meeting for the 2007-2008 year on Sept. 13, in the meet- ing room at the Crossroads Best Western Motel. The so- cial time begins at 11 a.m. with lunch to follow at 11:30 'mug^ "FOL has been collecting wonderful materials all sum- mer, so the assortment will be large and varied. All are invited to come browse through the many pa- perbacks, hardbacks, tapes and DVDs", said Anne Ryan, secretary-treasurer of the DFS Friends of the Library. to hold meeting a.m. The .business meeting will begin at noon. All ladies in the area are invited to come and join the group for socializing, fun and good deeds. Open Door chooses two organizations to sponsor each year. 4-, N9ewborn/Loyed announce engagement Mr. and Mrs. James M. Newborn of DeFuniak Springs, Florida wish to announce the engagement of their daughter Bridget Michelle Newborn to Michael James Loyed son of Randy Loyed and Karen Williams of DeFuniak Springs, Florida. Bridget is a graduate of Paxton High School and is cur- rently attending OWC College where she is studying to be- come a teacher. Michael is a graduate of Walton High School and is em- ployed by Block USA in DeFuniak Springs. The wedding is scheduled for 4 p.m. on November 17, 2007, at the Cluster Springs Baptist Church, DeFuniak Springs, FL. All family and friends are invited to attend. 1Hearther Rose Sutton to wed Ryan David RIushing i i; Mrs. Marion F. Sutton and the late Leon E. Sutton, Jr. would like to invite you to join them in a celebration of love as their daughter, : Heather Rose, is united in marriage to Mr. Ryan David Rushing, son of Mr. and Mrs. Kenny Rushing and the late Penny Rushing, on Saturday, the twenty second of September two thousand and seven at five o'clock in the evening at the Chautauqua Building, 96 Circle Drive, DeFuniak Springs, FL. Reception to follow. All family and friends are invited. SGILMORE JEWELRY Co . . lL ,H ... Mon. Fri. 9 5:30 Sat. 9 4 1023 JOHN SIMS PKWY, NICEVILLE (next to Kelly's) 678-1411 ~, *~ ~ PRESCHOOL REGISTRATION yvL'r3, o OlVOLUNTARY 'SL es PREKINDERGARTEN ,'yf Providing every 4-year-old child a high quality Prekindergarten program Register now for the Fall ROEHM PRESCHOOL & AFTERCARE AGES CENTER, INC. HOURS 2 12 1595 HWY 83 N. DeFUNIAK SPRINGS, FL 32433 6:30 5:30 OWNERS < PHONE TEDDY & BRENDA ROEHM Q__._ (850) 951-2002 A .~) ~' I- k~ 41 4- *4- a 'Ilk also Mr. an ul andM ' '1 parents .4 ofSte h' erecep at betw .-Y. J dMrs. 'Steven Ratfwf united in marriage O L i-_ of Megan Mancif r. and Mrs. MarO of Steven Robert invite .Ra thel Rathel, ~Rathell U to join in celebrating the recent marriage even and Megan Rathel They were married Sa private ceremony At 10, 2007, in Tennessee. tion honoring their marriage Shel[dSeptember 15, 2007, Ceonia Baptist Church een the hours of4-1 6p.m .4V .4 ':4. 'V k -4 .4, .4, Community Calendar THE ANNUAL PAXTON HERITAGE FESTIVAL will be held on October 27 in Paxton, FL. The Festival will start at 10 a.m. and end at 3 p.m. at the Walton County sheriff's substation (old welcome station) on US 331 in downtown Paxton. Crafter and demonstrators are needed. Music, blacksmithing, crafts, and Civil War Enactors are now sched- uled and the festival hopes to have much more for the kids and families. For more information or sign up, contact Alice at alicem@gtcom.net or 850-834-3031 (home) 850-978-0968 (cell). ' Ruritan is a CIVC organization dedicated to the better- ment of the community. Now Open "Our Place" Custom Framing PHOTOS, ART, PRINTS, NEEDLE ART & MORE 108 Pisces Lane off Oakridge between 331 & Sunrise By Appointment Call Skippy 850-892-3037 Art Lessons For Adults & Children Call For Information smooth move Treat yourself to the sweet sensation of hands that feel renewed, soothed and pampered every day. The Satin Hands Pampering Set leaves hands supple with a fresh peach scent. Call me today for a free pampering session! Carol Doxey Independent Beauty Consultant cdoxey2@marykay.com 850-859-2742 ' Csilla Nelson 4 of J YOUR FACIAL CARE SPECIALIST Facial Treatments Body Waxing Body Exfoliation Back Facials Hand Treatments Scalp & Hair Treatments Eyebrow/Lash Tinting All Natural Products From PROFESSIONAL MAKE-UP FOR AVEDA WEDDINGS Gift Certificates Available PAGEANTS (850) 892-0404 PROMS 1598 W. Nelson Ave., DeFuniak Springs, FL rA*Uit~i~~iA~d(*)li~i)jLij~ii~i11Ai j" d IMli ,IB *11t .1 C" "I" PAGE 2-B .t i ~ THE DeFUNIAK SPRINGS HERALD, THURSDAY, SEPTEMBER 13, 2007 -1 1 9 1, PAGE 3-B q v.'s;;ljr~i~ V K ~***, A Camden Brody Zodrow Camden HBrody born Creighton and Capri in Sacred Heart Hospital. Zodrow joyfully announce Camden weighed 7 pounds the arrival of their son, and 1 ounce and was 19 1/2 Camden Brody. Camden was inches long. He is welcomed born at 2 p.m. on July 21st home by his brother, Cayden. Gir[Scouts kick-off another year Girl Scouts throughout northwest Florida kick-off another year of adventure celebrating 95 years of Girl Scouting worldwide. Since 1912, Girl Scouts has been the vehicle for girls to develop the skills and confi- dence necessary for success. Character development, community service, leader- ship and outdoor adventure remain at the heart of the Girl Scout movement. Girl Scouts of Northwest Florida invites all girls be- tween the ages of 4 -17 to join the world's preeminent orga- nization for girls. Specially designed age level programs for Daisy (4-5 yearsold), Brownie (6-8 years), Junior (8-11yrs.), Cadette (12-14 years) and Senior Girl Scouts (14-17 years) are provided to girls in Escambia, Santa Rosa, Okaloosa and Walton counties. Annual member- ship in Girl Scouts is just $10. , This year girls will have the opportunity to 'Camp Like a Girl, Cook Like a Chef, explore international cul- tures, travel back in time, start their own business and serve their local communities through a variety of volun- teer projects geared for each age level. "Every year we have Girl Scout troops volun- teer for various events and activities and many of these girls keep coming back so we've gotten to know them and rely on them year after year," said Vicki Horton, ex- ecutive director of Gulf Coast Kids House. And Girl Scouts today don't just sell cookies. This week, Girl Scouts throughout northwest Florida launch their fall fundraiser offering a variety of premium nuts and candy produced by the Trophy Nut Company. Twelve varieties are avail- able this year, including chocolate mint trefoils in a limited edition collector's tin; peanut brittle; whole cash- ews; chocolate toffee al- monds; natural pistachios; pecan supreme; cranberry trail mix; dulce deleche; spicy cajun mix; sugar free choco- late toffee bits,peanut butter cups, and fruit slices. Prices range from $4 $8. Girls be- gin taking orders on Sept. 14, and deliveries begin on Oct.29. Like the Girl Scout Cookie Sale, the Nut Sale is an im- portant source of income that helps fund program activities for girls. "It's not just the money that helps these girls... they really do learn a lot of basic values about working, planning and sav- ing for what they want. Even the young ones learn to make choices based on priorities knowing they can't have ev- erything now, but they can have some of the things they're willing to work for," said Pensacola troop leader Ginger Given. A unique aspect of the Nut Sale is the Young Business Owner-in-Training program for girls in 7-12th grade. This program goes beyond tradi- tional youth sales programs by providing girls the option of operating as a sole propri- etor or partnership,, selling direct to area businesses. The pre-packaged product, a holiday gift tin filled with Pecan Supremes, is designed for corporate gift-giving and includes a UPS shipping sleeve for easy mailing. Some people think kids can't or don't understand sales, marketing and finan- cial management but the truth is that while they may not be able to spell 'entrepre- neur' they certainly grasp the concept. This is evident by the recognition and awards presented every year at our annual banquet," said. Cindy Nelson, executive di- rector of Girl Scouts of North- west Florida. "Believe me, they get it." For more information on enrolling your daughter in Girl Scouts and volunteer op- portunities in your area call 1-800-624-3951. . Madison, Makayla and Christian Stewart Madison Dakota welcomed home by siblings Madison Dakota Stewart, Makayla and Christian. daughter of Todd and Sharon Stewart of Gainesville, Madison was born August Florida was welcomed home 13, 2007 at 7:19 p.m. and by big sister and brother, weighed 7 pounds, 7 ounces. Doors open again at ODCC The Open Door Commu- nity Club (ODCC) will open its doors once again at 11 a.m., Thursday, September 13, 2007, at the Best Western Crossroads Inn on 331. Newly-elected president Anne Ryan invites all women to come and enjoy the friend- ship and fellowship at each meeting. Welcoming new women to the community is the foun- dation upon which the Open Door Club is built. The club began in March of 1980 when a small group of women wanted to make a difference in their community. At the first gathering, held in the home of Elizabeth Jeffcoat, they discussed the need to welcome women who were new to the area. The follow- ing month, the ODCC started its long-standing tradition of meeting for lunch and fellow- ship at the former Ramada Inn, now the Best Western Crossroads. , The tradition goes on to- day as women of the commu- nity gather for the purpose of friendship, cultural activi- ties, and community service. Members are encouraged to bring a friend, old or new, to the meetings. To learn more about the ODCC, visit their website at. Special thanks to Robert Nelson and his staff at I-Fix- Computers, Inc., for hosting the website for the club. ......'..... .................. NEWS FOR YOU FIRT NWlSST CBS RADIO FRN STATE NEWS wzep @ wzep1460.com "From quiet homes and first beginning, Out to the un- discovered ends, There's nothing worth the wear of winning, But laughter and the love of friends. Hilaire Belloc Kelsey Ann Phillips Xelsey Ann Phiilips arrives Nelson and Kathy (Jones) Jones of New London. Pater- Phillips of New London, NC nal grandparents are Jane announce the birth of their Phillips and the late Roger daughter, Kelsey Ann. She Phillips of Albemarle, NC. was born June 1, 2007. She Great-grandfather is Floyd weighed 6 lbs. 6 ozs. and was Phillips of Albemarle. 18 1/2 inches long. Her maternal grandpar- She was welcomed home ents are Douglas and Ann by her brother, Joshua. COE EXELNE NE LIECR d-U tro' IIF~ dP It is our promise-our covenant-to provide excellence in compassionate care for all people, to broaden and fulfill life's journey. * In-home care, 24-hour availability * Comfort and pain management * Physician home visits * Bereavement and family support * Not-for-profit, charitable organization. HOSPICE a special kind of caring - Licensed in Florida in 1983 - 370 West Redstone Ave. Crestview (850) 682-3628 Faces of Life. book ool 01ispinwlhirhrSllS 01n,10 dl pdii Ilhi' < wnl iu h'n is muailale' o r $29 Q5 at 'in,'coventinth spitU' 0r or aiuy C vleulntul Hospw((' lo tion. ..... .. ..... .. 1 1 . . --- I I A im w - THE DeFUNIAK SPRINGS HERALD, THURSDAY, SEPTEMBER 13, 2007 Things which God cannot do By DR. ROBERT M. JAYE In Irclhind a teacher asked a little boy if there was .mi thin, God could not do. TIi,- Imlti fellow said, "-cs' He cannot see my sins through the blood of Jesus Christ." In Titus 1:2 we are taught that God cannot do certain things, Those who mocked Jesus told a great truth about Him in Matthew 27:42: "Ht--1, It' He cannot save." Christ Himself placed Him- self under a necessity and ann:mip.'bhiliiy. In order to save us from the conse- quence of sin, He could not save Himself from the cross. From all eternity there had existed the necessity of His dying for sin. Again, "The Scripture can- not be broken" (John 10:35). The sacred writings cannot be gainsaid nor altered in the slightest. They are immu- table, uncharging, eternal, and unalterable. Our Lord "cannot deny Himself" (2 Timothy 2:13). Being the faithful One, He binds Himself under the law of keeping His word. He would not go back from it if He could, and He could not even if He would. Remember our text of Titus 1:2: "God cannot lie." His promise is unbreakable. His Word is impregnable. His truth invulnerable. This is all because He is the embodi- ment of truth. Hebrews 12:27 tells us that there are "things which cannot be shaken." Things which God Himself makes permanent must be like Himself. Hebrews 12:22-24 tell of at least seven things which cannot be shaken. There awaits believers a "kingdom which cannot be moved" (Hebrews 12:28). Earthly dynasties fall, early monarchies are de- posed, and earthly crowns perish. The heavenly king- dom is an everlasting one. Believe on the Lord Jesus and I will see you there! ' CHURCH DIRECTORY~xiz 0 I ff-M", OFTTrr--rT-MiniTrrLqiTrilIM- 27 Mi. 0 ARGYLE BAPTIST CHURCH, 252Argylelak -ide RRD. F'RST- days at 6. John C, Scott, D. Min. St. Agatha s is the home of the Lakeside Concert Series. For information, call (850) 892- 9 II I II -r I I I PAGE 4B THE DEFUNIAK SPRINGS HERALD THURSDAY, SEPTEMBER 13, 2007 THESE MARINES are all active-duty personnel sta- tioned at Eglin and they were working to earn money to de- fray some of the expenses ofat- tending the Marine Corps 300th Birthday Ball to be held at the Hilton Hotel- Sandestin on November 10, 2007. Each of the Marines working at the car wash has served a tour of duty in Iraq and some of them up to three tours. There were about a dozen of them washing cars. Marines living in or just visiting this area are invited to join their comrades for the Birthday Ball. Call Bill Vickers at 837-7797. A SCONIERS Sconiers graduates basic O'Donnell completes basic training at Marine Corps Recruit Depottraining O'Donnell completes basic training at Marine Corps Recruit Depot Marine Corps Pvt. Tyran K. O'Donnell, son ofDebra D. Currid of Freeport, FL., re- cently completed 12 weeks of basic training at Marine Corps Recruit Depot, Parris Island, S. C. designed to chal- lenge new Marine recruits both physically and mentally. O'Donnell and fellow re- cruits began their training at 5 a. m., by running three miles and performing calis- thenics. In addition to the physical conditioning pro- gram, O'Donnell spent nu- merous hours in classroom and field assignments which included learning first aid, uniform.regulations, combat water survival, marksman- ship, hand-to-hand combat and assorted weapons train- ing. They performed close or- der drill and operated as a small infantry unit during field training. O'Donnell and other re- cruits also received instruc- tion on the Marine Corps' core values--honor, courage and commitment, and what the core values mean in guid- ing personal and professional conduct. O'Donnell and fellow re- cruits ended the training phase with The Crucible, a 54-hour, team evolution cul- minating in an emotional ceremony in which recruits are presented the Marine Corps Emblem, and ad- dressed as "Marines" for the first time in their careers. Air Force Airman Glen A. Sconiers has graduated from basic military training at Lackland Air Force Base, San Antonio, TX. The airman is the son of Glen Sconiers of S. 26th St., DeFuniak Springs, FL. Sconiers .is a 2003 gradu- ate of Walton High School. WaltnCuty1 =(PlanninglI Progressive1 mlGrowIt1 '~~1(1~ing11 Shop Early For Chris.tm.as RHOD S JEW ELERS, INC. For All your Fall Special Occasion Gifts! WB( See Our Extensive Collections Gol ldf) Now Carrying Cross & Quill Pensoii, Gold & Enjoy the sunsets while dining8 overlookini the beautfuC Choctawhatchee 'Bay!! 7585 State Hwy 20 West Tuesday Sunday 850-835-2222 IIAM-8:30PM BRYAN'S CRANE SERVICE, LLC NEED A "- ,LIFT? Call Bryan & His .. " 38 Ton Crane ',. 20 YEARS EXPERIENCE Office (850) 892-6004 Cell (850) 685-8822 Bryan Withey, Owner/Operator S ph IN M- vi tf In \With tie/ Phaniatri. Hit\ 20. Fi l,,cin i < Ctomen See Us In September *S -0 4 ** I*Z I a D ...4 _ S Authoriwd Deiier For: '." J i t' s - (SORRELL) 850835-0047- ISCASH AND C FREEPORT LOCATION GRAYTON BEACH LOCATION Highway 20 East 113 Logan Lane FREEPORT, FL (beside Regional Utilities) 835-4221 231-0500 IN THE ZONE (Located in Old Town Plazc with Hungry Howies) OPEN Come On In & Play snacks & 7 DAYS Pool Foos Ball Dartrnks A Availab- f WEEK! Air Hockey Right Chess Checkers & Mer school (850) 699-6888 __ f RHODES JEWELERS, INC. Seiko & Pulsi Watches 42 South DeFuniak FALL SPECIAL OCCASION GIFTS Wedding Anniversary Birthdays ar < WE BUY GOLD Spgs, FL (850) 892-3621 Southern Homes, Inc. "UPSCALE MANUFACTURED HOMES & MODULARS" COMPLETE LAND/HOME PACKAGES Electric, well, septic, etc. included FHA VA Conventional + Home Only Loans Available. Located 42 Laird Rd. Mossy Head, FL (850) 892-2232 H Southern E Homes, Inc. D D-- Hwy. 90 Mossy DeFuniak Head Springs L~P -*-* ' 850-835-4153 18374 U.S. Hwy. 331 S. Freeport, FL 32439 To view our local listings visit our website at [] I "FREEPORT FOOT CLINIC 271 Highway 2), Suite #C (I nocated across frnm thp Pnst Office) Call (850) 835-2718 For Appt. John T. Saeva, D.P.M., Board certified. American Board of Podiatric Surgery Rentals For The Contractor Or Homeowner THE RIGHT EQUIPMENT el RIGHT Now u- (850)835-4500 S15787 Hwy. 331South Freeport, FL 32439 42 SOUTH 9TH STREET, DEFUNIAK SPRINGS e (850) 892-3621 I, I I I-s~s I L I I I r Ir~r Eil su -~i-- I I I PAGE 5-B :Seiko & Beadtiful Pulsar Diamond & CDian, Watches Stone Riyngs S / .. F PAGE 6B tur- H1--r dad t,,r te-ach in. l ier the_ r: lpe t t Al sinIII t- p i'i,-, .r t ,-il,- v.hic .i l,,i i ,. .-, 'f".., .. .1 perh-.- 'tc-tio nl.t in .'-'n. ,' h, -r 011%.many lu'.ibi:- Slit w- Oft, + % a il't-d vith tl,- tl.ll- t t, bt' L i e .'e> ti\ve w.illi ih-ign in her AI Ii Pr^' '-^ 1 y[K-I *i iiii il liIi o fiii h iThi l' nL11 d l entor wa ; .ulii 'd fu r e t ls Bi ac l el- -. e e .and e -.inl ngitural b aut ,, .,al n ne, Billity to handle- b i h. r s ti v. lth de slnatel 2 in, Jlr.i Ind -ur'.t ed bli h r, t "0 1,1l- \V.,Ithf iu LleM n in.1 ctr :Bea - 13; her parents, Bill Wade Laura Lee and Evie Ingram Hogan of DeFuniak Springs; one sis- HT Toan ter, Billie Jo Gaffrey, hus- band Justin, their son, Jus- August 26, 1964, tin, Jr. and daughter, Aria, August 20, 2007 of Blue Mountain Beach. She had numerous aunts, "I am following the path uncles and cousins. Also a God laid for me. I took his very special person in her hand when he called. Don't parents' life, Mrs. John grieve for me. I am free and (Piper Gaffrey) Eley. dwell in the house of our In the past couple years, Lord," says Laura Lee Hogan. Laura had returned to the The parents' precious daugh- ancestral roots of her par- ter departed to a better life on ents' Meadowed Farm with August 20, 2007. Laura grew numerous animals she up in Fort Walton Beach, and loved. graduated from Chocta- Cremation was provided whatchee High in 1983. She and she returned to her be- had many loving memories of loved Gulf of Mexico. Fort Walton and the Destin A memorial service will be area. cherished by loving family Laura had two special men- and friends at a later date. 'home. "Bug" leaves to cherish his memories his siblings, A.D. (Ida Mae) Hogans, Ebro FL., Reverend Roosevelt. Hogans, Ponce de Leon, Randall Hogans, Columbus, GA., Marion (Johnny) Phillips, Pensacola, FL., Shirley McRae, Eunice H. Vann, Mary H. Williams, all S' of DeFuniak Springs, FL., and Elizabeth (Ralph) Brown of Ebro; numerous HTo ans aunts, uncles, nieces, neph- ews and sorrowing friends. Roy Hogans Jr., also known Park Funeral Home was as "Btg" to some and "Uncle entrusted with arrange- Bug" to others, the son of the ments late Roy Mathrew Hogans Sr. and Mary Barker Hogans, Perhaps 'was born on July 4th 1932 in Perhaps you sent a lovely Ponce de Leon, FL. card,or sat quietly "Bug" was a faithful.worker,, in a chair a member of the American i P h Legion, on the board of a perhaps ou sent trustee for Euchee Valley If so we saw it there Cemetery Committee and Ifsoe sa o it the served his country in the P erhap s you spoke the United States Army. That anyone could say. He was a lifelong resident That anyone could say. of Ponce de Leon, loving and not here at all, devoted brother and uncle. Just thought of Although he was not a biologi- us that day cal father, he was a father who Whatever you did to raised and mentored many in console our hearts, and around his community. We thank you so much He was preceded in death by whatever the part... her parents and five sisters, Ida Lene, Vida Lene, Odis, The late Mr. and Mrs. Irien, and Gladys. The late Mr. and Mrs. On August 25,2007 the sun Roy Hogans, Sr. and set for "Bug" at 2 p.m. in the family. afternoon while he was at Young Patricia "Pat" Gail Young, brother, Felix H. Parker, Sr. 49, of Pensacola, FL., went She is survived by her home to her heavenly Father mother, Mrs. Alma J. Will- on Sept. 4, 2007. She was iants;. one brother, Zachary bornDec. 4,1957 in DeFuniak V. Bunkley (Carolyn); her Springs, FL., the daughter of sisters,. Hattie Mosley Willie B. Young and Alma J. House (Michael), Terry (Young) Williams. Young Brinston (David), Young graduated from and Sarah Williams Tolliver Washington High School in (Clarence) and a host of 1975. She attended Alabama nieces, nephews, cousins, State University in Montgom- and friends. ery and later received licen- sure in cosmetology and ca- Funeral services were tering. She worked for many held Saturday, Sept. 8,2007, years with the Head Start at 11 a.m. at Greater Saint Program and volunteered Joseph African Methodist with the Sickle Cell Disease Episcopal Church in DeFu- Association of Escambia niak Springs, with Rev. County. She loved her God Cecil William's officiating. Children, Helena "lane-lane" Burial followed in Mag- Nixon and RiChie Wilson; her nolia Cemetery. God Mother, Ruth Graham Smith, and her special friend, Arrangments and ser- Tony Fairley. She is preceded vices were under the direc- in death by her father and her tion of Jerry Evans. Williams Billy Luther Williams of Westville, FL., passed away on Saturday, September 1, 2007. He was 66 years old. A graveside service was held at 10 a.m. on Saturday, Sept. 8, 200 ,, at Beulah Anna Baptist CIi. I Cemetery, with Rev. David Hidle officiating. Williami is survived by his daughter, Lisa Marie Vice; son, 1, '..'ii Christian Will- iams; two grandsons, Bryan and Ethaun Vice, all of' Burlison, TX.; two sisters, Joyce Vickers and husband, Randy, ofWestville, FL. and Judy Goddin of Marianna, FL.; two brothers, James W. Goddin of Westville, FL., and Roy Goddin of Port St. Joe, FL.; two nieces, Angie Linder and husband, Chris, of Westville, and Vicki Fountain, and husband, Nathan, of Glendale, FL. Pittman Funeral Home of Geneva was in charge of the arrangements. THE DEFUNIAK SPRINGS HERALD, THURSDAY SEPTEMBER 13, 2007 Spence Floyd Spence, 89, of De- Funiak Springs, FL., passed away Sunday, Sept. 9, 2007 in Pensacola, FL. He was born June 17, 1918 in Wal- ton County, FL. to Insel and Bama Adkinson Spence. Spence was a lifelong resident of Walton County. He was Baptist by faith and a member of Southwide Baptist Church. He was a veteran of WWII serving his country in the U.S. Army. He worked at Eglin Air Force Base in Civil Service as a forest ranger for 33 years. He enjoyed attending church. Spence was preceded in death by his father and mother. Spence is survived by his wife, Elizabeth Ann Spence, of DeFuniak Springs; two sons,Tommy Spence and wife, Amanda, of Houston, TX. and Mike Spence and wife, Cindy, of DeFuniak Springs; one daughter, Judy Carnely and husband, Lee, of Pensacola; five grandchil- dren, and three great-grand- children. Funeral services were con- ducted Tuesday, Sept. 11, 2007, at Southwide Baptist Church with Revs. Doug Hogg and Mark Rathel officiating. Donations may be made to the Southwide Baptist Church Building Fund,1307 County Hwy. 288, DeFuniak Springs, FL. 32435. Those asked to serve as pallbearers were Lyle Seigler, Robert Seigler, Joe Williams, Jimmy Brannon, Fred Brown, and Bob Butler. Burial followed in the Southwide Baptist Church Cemetery with military hon- ors. Family and friends may now go online to view obitu- aries, offer condolences and sign a guest book, at Clary-Glenn Funeral Home was in charge of arrange- ments. Cordle Q. G. "Gene" Cordle, 66, MSGT/Retired, passed away Sunday, Sept. 9, 2007, in a Montgomery, AL. healthcare facility. He was born July 30, 1941, in Walton County, the son of Bertha Cordle. He was a graduate of Paxton High School graduating with the Class of 1959. Af- ter graduation he entered the U.S. military where he served 26 years as a medi- cal services technician. Af- ter a long and very deco- rated career with commen- dations for valor, and honor and conduct and a tour of duty during the Viet Nam Crisis he retired from active service with the rank of se- nior master sergeant. After retirement he was em- ployed with Highland Ex- press Shuttle Services until his death. Cordle is predeceased by his mother and his brother, Bennie Huey Cordle, and his sister, O'day Johnson. Among survivors are his son, David G. Cordle, of Douglasville, GA.; his nieces, Michelle Raney and April Cordle; his nephews, Pastor Ben Cordle and Kenneth Cordle; his uncle, Robert Cordle, and several great- nieces and nephews. Numer- ous cousins also survive. Honorary pallbearers will be Thomas Long, Cad Turner, David Johnson, Billy Ray Cordle, Larry Cordle, Bobby Cordle, Joe Cordle, Charles Cordle, John Cordle, and Cecil Cordle. 'Floral arrangements are being accepted. Visitation will be one hour prior to fu- neral time Thursday. Funeral services will be at 10 a.m. Thursday, Sept.13, 2007, in Jerry Evans Chapel with Rev. Ike Bird officiating. Burial with full military honors will follow in Glendale Presbyterian Church Cem- etery. Arrangements and services are under the direction of Jerry Evans. Weatherford Lenton Velpo "Poe" Wea- therford, age 88, of Valparaiso, FL. passed away Monday, September 10, 2007 at the Ft. Walton Beach Medical Center. He was born Sept. 24, 1918 in Union, Mississippi to Henry and Maudie Johnson Weatherford. Weatherford was a resi- dent of Valparaiso, FL. He was Baptist by faith and a member of the First Bap- tist Church of Valparaiso. He was a veteran of WWII serving his country in the U.S. Army Air Corps as a sergeant. He served as an aerial photographer having photographed the Beach at Normandy before the inva- sions. He also served at the Battle of the Bulge. He worked as an educator in Mississippi and in Okaloosa County, and was also a school principal at Edge El- ementary School for 20 years. He was a graduate of Mississippi College and re- ceived his Master's Degree from the 'University of Southern Mississippi in 1954. He was a dedicated Christian, husband, father, educator and church leader. Weatherford was pre- ceded in death by his father and mother, three sisters, Bonnie, Mildred, and Patsy, and one brother, Billy. Weatherford is survived by his wife of 58 years, Jane Causey Weatherford of Valparaiso; three sons, David L. Weatherford of Valparaiso, Stanley P. Weatherford and wife, Vickie, of Crystal Springs, MS., and.Scott Weatherford and wife, Tara, of Tallahas- see, FL.; one daughter, Judy Pinter and husband, Ron, of DeFuniak Springs, FL.; two brothers, Murry Weatherford of Meridian, MS. and Louie Weatherford of Spanish Fort,AL.; one sis- ter, Dwanda Love of Vir- ginia; six grandchildren, Pamela Lathinghouse and husband, Taylor, Lisa Pinter, Caleb Weatherford, Calah Weatherford, Aaron Wea- therford, and Jill Carter, and one great -granddaugh- ter, Emma Lathinghouse. Funeral services will be conducted at 10 a.m., Thurs- day, Sept. 13, 2007, at First Baptist Church of Valparaiso, with the Rev. Ernest Walker officiating. Floral arrangements are being accepted or donations. may be made to the Fellow- ship of The Hills Church, 930 Thomasville Road, Suite 106 Tallahassee, FL. 32303. Those asked to serve as pallbearers are as follows: Caleb Weatherford, Aaron Weatherford, Taylor Lath- inghouse, Ron Pinter, Blaine Tiller, Gary Weatherford, Robert Dale Causey and Will Causey. Honorary pallbearers are the Deacons of the First Baptist Church of Valparaiso and First Baptist Church of Crystal Springs, MS. Burial will follow in the Sunset Cemetery with Mili- tary Honors. -Family and friends may now go online to view obitu- aries, offer condolences and sign a guest book, at Clary-Glenn Funeral Home is in charge of arrangements. 4e42'tee rna4~4 a~ ~ What really matters when it comes to planning a funeral? Is it who has the largest facility or the biggest staff? Or, is it a funeral home that offers the very best care for your loved one, all the guidance and support you need and a variety of service options? We think that better service makes a better funeral home. Come see for yourself. SClary-Glenn n FUNERAL HOMES I.(I(l\ um l mned aromihu l) ,a'd Clary-Glenn Funeral Home 230 Park Avenue DeFuniak Springs, FL (850) 892-2511 Clary-Glenn Freeport Chapel Funeral Home 150 East Highway 20 Freeport, FL (850) 835-2511 Ior/ Ghln, LFD, OIw'r I'daula G/lnm, Ou'r/Irri'd ag,'nl Joel and PIiiihi Glomi~ See OBIT Pg 7B .f In Memory SeBrina Lynn Coleman September 11 We miss you so much, your laughter, your:smile, your touch. You always brightened our days, \ ithi all the things-, you did in your special ay. We\\ need youi aS our angel. to alwaVs \ atch oulit for us. We need \ou a- our guiding angel. to give us peace of mind. We like to think you are near to us And to, know that you are there. Even thioiiEh we cannot see y aou \te teel that you are near. tIu knolwa \ell never forget you ior you'll always be in our heart. We liVe and isnk you more each day a- \te celebrate your birthday. Love imn iima, Dad. Jo1ce. Curlee. Belinda. YOulanda. Nena. Ra ndv. and TeRhonda MEMORIALS & MAUSOLEUMS, INC. 1-888-834-4345 . GRANITE & MARBLE MONUMENTS BRONZE MEMORIALS PRE-NEED VAULTS ALL WORK 3979 STATE HWY 2 WEST ALL CEMETERY GUARANTEED beFUNIAK SPRINGS, FL 32433 NEEDS Ward Memorial Granite Marble Bronze Monuments Markers Benches Coping & Chips Death Dates Visit Our Showroom ......... 892-3332 Credit Cards Personalized Accepted 31,31 Hwy. 83 N. Service TMarble & Granite Quality doesn't cost more... It pavs more 'Monuments 'vlemoriafs '4ausoleums * Custom interiors Cemetery Work Custom Signs (800) 892-3213 Fax (850) 892-2534 zi . AM 1I PAGE 7B THE DEFUNIAK SPRINGS HERALD, THURSDAY, SEPTEMBER 13, 2007 Missionaries invade Walt( The On Mission Celebra- tion (OMC) is taking place here in Walton County. Throughout the week of Sep- tember 20-23, 2007, eight missionaries will be speaking at local churches in Walton County. A luncheon will be served on Friday, Sept. 21, at 12 p.m. First Baptist Church of De- Funiak Springs will be host- ing this event. Guest speak- ers will be Last Frontier missionaires, Mike ,and Pat Scott. There is no cost but RSVP the Walton County Baptist Association. On Saturday, September 23 at 6:30 p.m., Friendship Bap- tist Church will be hosting a OMC banquet. There will be a $6 charge. To purchase tick- ets contact the Walton County. Baptist Association Monday Friday during busi- ness hours of 8 am 1:30 p.m. CARLOS .L DE LA BARRA Carlos De la Barra is a church planting missionary with the North American Mission Board. He and his wife, Cristina, are starting several new churches in Kentucky. He assisted in creating Blue Grass His- panic Ministry, Inc. to pro- mote and plant new minis- tries among Hispanics in central Kentucky. De la Barra will be speaking at FBC of Mossy Head on Fri- day, September 21, at 6:30 p.m., at Pleasant Ridge Bap- tist Church on Sunday, Sept tember 23, at 10:45 a.m., and at First Baptist Church of DeFuniak Springs on Sunday, September 23 at 6:30 p.m. 0 CHARLES HARDIE Charles Hardie is a retired Southern Baptist mission- ary, originally appointed as a missionary in 1974. He was a teacher in Taiwan from 1977-1978. He then worked as an evangelist with the Baptist Education Center and as a discipleship consultant in Taiwan. He transferred to Eastern Eu- rope in 1993 and did reli- gious education promotion ,in Russia. Mr. Hardie will be speaking at Cluster Springs Baptist Church on Friday, September 21, at 7 p.m., at First Baptist Church of Liberty on Sunday, Sep- tember 23, at 11 a.m., and at Pleasant Grove Baptist Church on Sunday, Septem- ber 23, at 6 p.m. < I PHYLLIS HARDIE Phyllis Hardie is a retired Southern Baptist missionary. While a college student, she was a summer missionary in Texas and she was originally appointed as a missionary in 1974. She was a church and home worker in Taiwan from 1975-1984 and an evangelist in Taiwan from 1984-1992. She then transferred to East- ern Europe in 1993 and was a church and home worker in Russia. Hardie will be speaking at Westside Baptist Church on Friday, September 21, at 6 p.m., at Calvary Bap- Community Holiness Church hosting women conference The Community Holiness Church will be hosting Lift- ing Up Jesus, Women Confer- ence 2007 on September 20- 22. Guest speakers will be Sharon Chance from Frankleton, LA. Registra- tion begins at 6:30 p.m. on Thursday and Friday nights. Thursday and Friday night service begins at 7 p.m. Sat- urday morning begins at 10 a.m. For more information call Betty Taylor at 892-4704 or Janice Bird at 859-2729. New Harmony Baptist plans homecoming New Harmony Baptist 10:30 a.m. All are invited to church will be provided by Church will be having their hear the preaching of God's Katie Belle Thorn. Homecoming Sunday, Sept. word by Todd Camp. Special There will be great food 16, 2007. Service will begin at music and the history of the and fellowship. Innerfire to be performing at Northside Baptist Church A celebration at Northside Baptist Church in Ponce de Leon will begin Saturday, Sept. 15, with a barbecue at 5 p.m., followed by a concert presented by Innerfire at 7 p.m. The celebration will con- tinue on Sunday morning with Sunday School at 10 a.m. and worship service at 11 a.m. A fellowship meal will follow the morning wor- ship service. Innerfire is from Nashville, TN. The group is comprised of Johnna Howell Carroll, (formerly from Ponce de Leon) and Faith and Bernie Joyrier from Murfreesboro, TN. "Faithful Trio" coming to Center Ridge United Methodist Church The gospel singing group, "Faithful Trio", will be bless- ing listeners Saturday, Sep- tember 15, 2007, 6 p.m. at Center Ridge United Meth- odist Church located east of SR-83 on CR-1883, DeFu- niak Springs, Florida. Refreshments will follow. Contact Rev. Nancy Snyder at 850-859-2464'for any questions. September 15, Otter Creek UMC Redemption Singers to perform There will be a reunion of ist Church on Saturday, Sep- miles north of Ponce de Leon the Redemption Singers at tember 15 at 7 p.m. off Hwy. 81. Otter Creek United Method- The church is located four Everyone is invited. Darlington Baptist Church to host retreat Darlington Baptist Church will be hosting a women's day retreat featuring a Beth Moore Video, with her "Lov- ing Well' retreat in a box at Darlington Baptist Church, Saturday, September 15, from .8 a.m. 3 p.m. OBIT Lunch will be provided. Childcare will be provided. . Call 859-1090 for more in- formation. From Pg 6B Stroup John Commodore Stroup, 81, of Freeport', FL., passed away Sunday, Sept. 9,2007 at his residence. He was born Nov. 11,, 1925 in Atlanta, GA. to John Stroup, Jr. and Mary Lewis Stroup. Stroup was a resident of Freeport. He worked as a li- censed plumber and electri- cian. He was a veteran of WWII serving his country in the U.S. Navy as a .Seaman First Class. He enjoyed fish- ing, gardening and spending time with his grandchildren. He also enjoyed talking about the old days. Stroup was preceded in death by his father and mother, and wife, Mag- edalene Stroup. Stroup is survived by his three daughters, Judy L. Wardorp, of Marietta, GA., Donna L. Edwards of Free- port, and Johnnie H. Crain and husband, George, of Freeport; one sister, Doris Johnson of Blacksb'urg, S.C.; eleven grandchildren, Richie Mauldin, Anna Altman and husband, Kent, David Mauldin, Natayia Via and husband, Johnny, Kristie Mauldin and Cletus, Jonathan Saylor and wife, Cynthia Hall, David Hamrick and wife, Melissa, Matthew Mauldin, Stella Justice, Mariaph Bell and Jo- seph Justice, and Angela Ward. He is also survived by thirty-two great-grandchil- dren. Funeral services were con- ducted Wednesday, Sept. 12, 2007 at Clary-Glenn Free- port Chapel Funeral Home in Freeport, with Rev. Louis Taunton officiating. Burial followed in the Antioch Cemetery. Family and friends may now go online to view obitu- aries, offer condolences and sign a guest book at Clary-Glenn Freeport Chapel Funeral Home was in charge of arrangements. tist Church on Sunday, Sep- tember 23 at 11 a.m. and at Pleasant Grove Baptist Church on Sunday, Septem- ber 23, at 6 p.m. KEITH IVEY Keith Ivey is a missionary with the North American Mission Board. He and his wife, Amy, are currently serv- ing in Georgia, where he is a resort missionary. He re- cently served as pastor for Rehoboth Baptist Church in Georgia. Other missionary positions include minister of youth and summer college minister. Ivey will be speak- ing at Southwide Baptist Church on Friday, September 21, at 6 p.m., at Gaskin First Baptist Church on Sunday, September 23, at 11 a.m. and at Freeport First Baptist Church on Sunday, Septem- ber 23, at 6:30 p.m. Kenneth Wilson is a mis- sionary with the North Darlington Baptist Church hosting revival ,Darlington Baptist Church will observe revival Sept. 17- 19, 6:30 p.m. The speaker will be Garry Winstead from Ino Baptist Church. Everyone is invited. KENNi America and his rently s where h sions fo Associa served strategic sociatio cian pri tor for s( linois. N ing at B tist Chi tember Red Ba: Sunday a.m., Woodlai tember Mike Last Fr They wi on County OMC luncheon on Friday, September 21, at First Bap- tist Church of DeFuniak Springs at noon. For those S interested in attending the luncheon, RSVP by Sept. 15 by calling 892-2849. They will be speaking at Indian Creek Baptist Church on Friday, September 21, at 6:30 p.m. and at Darlington Bap- tist Church on Sunday, Sep- tember 23, at 5 p.m. Mike Scott will be speaking at Ar- gyle Baptist Church on Sun- day, September 23, at 11 a.m. E- 1 =0 and Pat Scott will be speak- ETH WILSON ing at Seagrove Baptist Church Sunday, September 23, at 10 a.m. in Mission Board. He Pam Ferrand is a local mis- wife, Cindy, are cur- sionary and wife of Rev. Bill serving in Michigan, Ferrand, pastor of First Bap- le is director of mis- tist Church of Mossy Head. r Northland Baptist In the past, she served along nation. He. recently with her husband, in Yemen. as church planter Ferrand will be speaking at st for Northland As- East Baptist Church on Sun- n. He was an electri- day, September 23, at 10:30 or to serving as a pas- a.m. and at Paxton Baptist, several churches in II- Church on. Sunday, Septem- Wilson will be speak- ber 23, at 6 p.m. 3aldwin Avenue Bap- Everyone is invited to at- urch on Friday, Sep- tend and celebrate with all 21 at 6:30 p.m., at of these missionaries about y Baptist Church on what God is doing in their , September 23, at 11 lives and in the lives of those and at FBC of with whom they work. wn on Sunday, Sep- For more information, con- 23, at 5 p.m. tact Sonny Pritchett at the and Pat Scott are Walton Baptist Association, frontier Missionaries. 892-2849 or Lynda Melson, ll be the guests at the 951-4514/859-2745. "Preserving and Sharing Our Pentecostal Heritage" Come be a part of a newly, formed church that still believes in old time Pentecost and the full gospel message. We would love for you to join us at any of our services which are held at the Woodlawn Community Center just south of Defuniak Springs on Hwy 331 south. SERVICE TIMES: Sunday 10:30 am, 6:00 pm, Wednesday 7:00 pm Pastor JohnRichbourg L OLjLEY MONUMENT AND VAULT COMPANY W. " .. ' for only.. .695 When you decide to buy your memorial and fix your ceme- The priceswill vary--- some may be lower, some may be higher but, there is no substitute for quality and profes- sioThinal workmanship that we at Lolley Monument Company offer. We have been family owned and operated and serving your area for over 45 years. Call for a price quote or to set up an Wheointment We will be lad to meet with you at your convenien ce. 1-800-443-2731 604 East Main Street Samson, AL PAGE 8-B SPORTS THE DeFUNIAK SPRINGS HERALD, THURSDAY, SEPTEMBER 13, 2007 SCORE BY QUARTERS Walton knocks off top-ranked FAMU High 27-13 S TONUATERS AFMUTT By Patrick Casey Tarrell Bramlet tossed four touchdown passes and Walton scored 21 points in the second half to rally for a 27-13 victory over Tallahas- see FAMU. The Baby Rat- tlers, the top-ranked team in Class B entering the contest, committed two costly turn- overs in the second half that allowed Walton to escape with a road win and improve to 2-0 on the season. Walton missed a 32-yard field goal in the first quarter only to see FAMU break a big play off for a touchdown on their first series as Troy Curry got free on a 93-yard run for a 7-0 lead for the Rat- tlers. After each team went on a long drive but failed to score and then punted on the following possessions, Wal- ton put together a six-play, 59-yard drive that saw Issac Jackson catch a short pass and turn it into a 24-yard touchdown to cut the margin to 7-6. Walton failed to con- vert the extra point as a bad snap from center foiled the kick and Devron Ford was tackled trying to scamper in for the two-point conversion. The second half saw Wal- ton take advantage of a short punt to set up shop on the Rattlers' 34-yard line to start their initial possession. Wal- ton needed only three plays for Bramlet to hook up with Michael Campbell on a 23- yard scoring strike for a 13-6 -*T - final margin of 27-13. Larel Jackson sealed the deal with an interception with just 89 seconds left in the game. Walton amass'ed'293 pass- ing yards while limiting FAMU to 95 total yards in the second half of play. Rich- ard Watson was held to 90 yards on 20 carries, but Troy Curry rushed for 140 yards on just seven attempts, though 93 yards came on his touchdown run in the first quarter. Walton defeated FAMU for the fourth time in five years and will put their 2-0 record on the line on Friday when they host the Northview Chiefs(1-1) at 7 p.m. at Everett Yates Memo- rial Stadium on Friday, Sep- tember 14.- . Northview fell to Chipley 49-36 last Friday and will be playing their first road game of the 2007 season. The Chiefs are led by Nakita Myles and feature a solid rushing attack that will chal- lenge a Walton defense that has allowed only 20 points in the first two games this sea- son. advantage. FAMU caught a break af- ter punting the ball to Wal- ton on their next possession as Bramlet was picked off by Rattlers linebacker Willie Ferrell, who promptly re- turned the interception to the Walton 44-yard line. FAMU marched in for the score on six plays as fullback Richard Watson crashed in from two yards out to tie the score at 13-13. Walton's Sean Allen blocked the extra point to keep FAMU from regain- ing the lead on the conver- sion attempt. Early in the fourth quar- ter Michael Campbell made one of the plays of the night as he turned a screen pass into a 77-yard touchdown as he broke free from a pileup and outraced everyone to the endzone down the Braves sideline. After Walton stopped FAMU on their next posses- sion, the Braves caught an- other break as FAMU fumbled Walton's punt on the following possession and Kadeem Ingram fell, on the loose football to give Walton excellent field position at the Rattlers 33-yard line. Three plays produced no gain, but Walton put the dag- ger into the Rattlers with a 33-yard touchdown pass to Beau Rushing on a 4th-and- 8 play that saw Rushing make a spectacular grab over his left shoulder in the left corner of the endzone for the *92 . -. V~...4 3totu 1 2 3 4 F 0 6 7 14 27 7 0 6 0 13 SCORING SUMMARY FAMU- Curry 93 run (Harris kick) WAL- I.Jackson 24 pass from Bramlet (run failed) WAL- Campbell 23 pass from Bramlet (Ford kick) FAMU- Watson 2 run (kick blocked) WAL- Campbell 77 pass from Bramlet (Crishon run) WAL- Rushing 33 pass from Bramlet (kick failed) TEAM STATTSTTCS WA, FAMIT First Downs 15 Rushes-Yards 23-59 Passing Yards 293 Comp.-Att.-Int. 18-29-1 Plays-Total Offense 53-352 Return Yards 46 Punts-Average 2-42 Fumbles-Lost 2-0 Interceptions-Yards Ret 1-0 Penalties-Yards 4-27 Time Of Poss 22:07 410 41-266 15 3-6-1 47-281 74 5-33 1-1 1-19 8-56 25:53 INDIVIDUAL STATISTICS Rushing: WAL- I.Jackson 14-52, Bramlet 5-16, Campbell 1- (-2), TEAM 3-(-7). FAMU- Curry 7-140, R.Watson 20-90, Btyant 10-47, Johnson 4-(-11). Passing: WAL- Bramlet 18-29-1-293. FAMU- Johnson 2-3-0-7, Bryant 1-3-1-8. Receiving: WAL- Campbell 5-131, L.Jackson 5-16, Aguilar 3-71, I.Jackson 3-36, Rushing 2-39. FAMU- McGee 2-8, Richardson 1-7. 14. k i Waltonij's Kthe A-iu lcr works to get open from hi, wide receaiter spot durtim the first half of Walton's victory over top-ran I.,ed FAMIL on ThItrzday night Walton's Austin Wilson(71) and Logan Alford(62) await the snap on defense for the Braves against FAMU High last Thursday. 1 T) fll '' I', 1 .1 771 I1 Walton's Tarrell Bramlet (10) fights for yardage during Walton's 27-13 victory over FAMU High on Thursday night in Tallahassee. i 1 1 Ll_ 1_ I THE BOARD OF DIRECTORS OF THE DEFUNIAK SPRINGS LITTLE LEAGUE ANNOUNCES THE... 2007 D.F.S, Little League Annual Membership Meeting In accordance with it's Constitution and By- Laws the DeFuniak Springs Little .League Association will hold it's annual general member- ship meeting on Tuesday, September 18, 2007 at 6:30 p.m. at the DeFuniak Springs Community Center located off Highway 83 North. Annual membership dues are $3 per per- son or $5 for couples. Please plan on attending and volunteering to serve during the 2008 Season. FOR MORE INFORMATION: CONTACT OUR LEAGUE SECRETARY CORY GODWIN AT 892-8121 OR 892-2794 YOU MAY ALSO E-MAIL TO cortam3 @aol.com I ."". :T' T *. I. TI 1.. II I LINT> .L]L&K "V 1\ 9 ii K-) I N j \ 'C I) k it. ~.1 A K I -y =. $ E V M _u LI"Vl u 4* ,.s#. V 11ffi4fl0 - ..~- A -c THE DeFUNIAK SPRINGS HERALD, THURSDAY, SEPTEMBER 13, 2007 Wewa By PATRICK CASEY Sophomore Chance Knowles broke open a close game with a pair of fourth quarter touchdown runs as Wewahitchka knocked off South Walton 25-7 in a non- district contest. Knowles, who rushed for 160 yards on only 11 carries, had scoring runs of 64 and 44 yards less than a minute' apart in game time to turn a 12-7 contest into a 25-7 vic- tory. The game started with Billy Burnett scoring on the opening possession for the Seahawks as he turned a quarterback keeper into a 47-yard touchdown run for a 7-0 lead just two minutes into the contest. A South Walton fumble set up the Gators lone score in the first half as Ryan Myers capped a 16-yard scoring drive with.a 3-yard run to cut the deficit to 7-6. The extra point failed, though, leaving the Seahawks a slim lead at halftime after the two squads played in a solid rainstorm By Patrick Casey. Holmes County rallied from a 10-0 deficit as sopho- more quarterback Matthew Carroll hit Brad White with a 13-yard touchdown pass in the third quarter as the Bluedevils claimed an 18-16 road victory over the Freeport Bulldogs. Freeport started quickly as the defense provided the first score as Spencer Martin scooped up a Tyler Cooey fumble at the Bulldogs 20- yard line and returned the miscue the rest of the way for an early 7-0 lead. The Bulldogs added to the lead on their next possession as they marched 36 yards in eight plays as Spencer Mar- tin connected on a 43-yard field goal to up the margin to 10-0. Holmes County awoke with a 73-yard kickoff return by Ty Short to set Holmes County up on the Freeport 7-yard line. Randall Works finished the drive with a 7-yard scamper as Holmes County cut the deficit to 10- 6. Holmes County took the lead on their next possession as Ty Short connected with Daniel Herberth on a half- back pass from 32 yards out for a 12-10 advantage after one quarter of play. The Bulldogs defense stopped Holmes County on a drive late in the first half and promptly marched 65 yards for the go-ahead score in less than 90 seconds using some trickery of their own. Cole Weeks hit Hoss Morrison on a short pass only to have Morrison toss the ball to Nathan Hendrickson who was trailing the play. Hendrickson took the hook- and-ladder play the remain- ing 45 yards to give the Bull- dogs a 16-12 halftime advan- tage. hands South for most of the second quar- ter. Wewahitchka didn't let the Seahawks hold on to the lead for long as the Gators took the second half kickoff and marched 57yards for the go-ahead score as Chase Harvey snuck in from a yard out to giveWewa a 12-7 lead they would never relinquish. South Walton's offense could not get on track in the, second half as" Kenzie Clemmons suffered a leg in- jury that limited his ability to carry the ball and the Seahawks passing game couldn't help the rushing at- tack break out of the dol- drums. The Seahawks did not help themselves as they fumbled the ball away four times for'the second consecu- tive week and could manage only 28 total yards of offense Holmes, County scored on their first drive of the third SCORE BY QUARTERS HOLMES CO. FREEPORT quarter to take the lead 18- 16 as both squads had 1 23 4 F 12 0 6 0 18 10 6 0 0 16 SCORING SUMMARY FRE- Martin 20 fumble return (Martin kick) FRE- Martin 43-yard FG HC- Works 7 run (kick failed) HC- Herberth 32 pass from Short (kick blocked) FRE- Hendrickson 45 pass from Weeks (pass failed) HC- White 13 pass from Carroll (kick blocked) TEAM STATISTICS First Downs Rushes-Yards Passing Yards Comp.-Att.-Int. Plays-Total Offense Return Yards Punts-Average Fumbles-Lost Interceotions-Yards I FRE 10 36-125 96 5-9-1 46-221 65 4-29 1-1 Ret 0-0 Penalties-Yards 7-75 Time Of Poss 24:00 INDIVIDUAL STATISTICS HC 9 37-93 70 5-7-0 44-163 126 4-31 2-1 1-37 12-100 24:00 Rushing: FRE- Thomas 13-59, Hendrickson 9-44, Farris 6-14, Durso 2-13, Bates 2-9, Hayhurst 1-2, Weeks 3-(-16). HC- Works 17-61, White 8-30, Carroll 6-22, Griffin 2-5, Cooey 1-(-4), TEAM 3-(-21). Passing: FRE- Weeks 5-9-1-96. HC- Carroll 4-6-0-38, Short 1-1-0-32. Receiving: FRE- Morrison 4-41, Martin 1-10, Hendrickson 0-45. HC- White 2-11, Marshall 1-32, Short 1-15, Sellers 1- 12. TO TE i THINGS T ODO The Proven Professionals ..Navlor Bruce Naylor Owner-Broker R REALTY & .AsoLiatUs, Inc.- 776 BALDWIN AVE. 951-2488 Walton in the second half. Wewa came out with re- newed vigor in the second half as they churned out 235 rushing yards after South Walton dominated them in the first half by allowing the Gators only 14 total yards. The loss drops South Wal- ton to 1-1 as they prepare to host Panama City Bozeman on Friday, September 14, at 7 p.m. at Seahawk Stadium. ~N '1 ' As' :/, m71 0 Q,, D;1 n7 -. r.........LP _L I- I A - trouble putting points on the board in the final 15 minutes of play. Freeport had a drive stopped with less than four minutes to play when Cole Weeks tossed an interception at the Bluedevils 26-yard line, then saw a final oppor- tunity disappear when the Bulldogs muffed a punt re- turn in the closing seconds that allowed Holmes County to run out the clock and claim the win. Freeport (0-2) will have this Friday off as they pre- pare for a game at Wewahitchka on September 21. first loss 25-7 SCORE BY QUARTERS 1 2 3 4 F WEWAHITCHKA 6 0 6 13 25 SOUTH WALTON 7 0 0 0 7 SCORING SUMMARY SW- Burnett 47 run (Brown kick) WEWA- Myers 3 run (kick failed) WEWA-. Harvey 1 run (kick failed) WEWA- Knowles 64 run (run failed) WEWA- Knowles 44 run (Harvey' kick) TEAM STATISTICS. SW First Downs 9 Rushes-Yards 40-135 Passing Yards 27 Comp.-Att.-Int. 2-3-0 Plays-Total Offense 44-162 Return Yards 75 Punts-Average 4-30 Fumbles-Lost 8-4 Interceptions-Yards Ret 0-0 Penalties-Yards 9-66 Time Of Poss 21:18 WEWA 12 46-243 6 1-4-0 51-249 21 5-27 2-0 0-0 9-105 26:42 INDIVIDUAL STATISTICS Rushing: SW- Burnett 8-39, Stewart 13-39, Clemmons 9-34, Adams 6-15, Schutte 3-8, Delaney 1-0. WEWA- Knowles 11-160, Myers 20-71, Noble 6-27, Wade 1-(-1), TEAM 1-(-2), Veasey 1-(-4), Harvey 6-(-8). Passing: SW- Burnett 2-3-0-27. . WEWA- Harvey 1-4-0-6.' Receiving: SW- Davies 2-27. WEWA- Tifft 1-6. South Walton's Bryant Adams fights for yardage against Wewahitchha during Friday's game with the Gators. G e. .' R 'ir & Cleanin Wewahitchka during Friday's game with the Gatoirs 205 Perdue Road 892-5095 Z425 EZTRAKTM RIDING MOWER X300 SELECT SERIESTM TRACTOR S*23HP Briggs & I '17HP V-twin Stratton V-Twin, I John Deere iTorqueTM aircooled engine P power System 48" .EdgeT mower Twin TouchT ,-^ deck with 1/4" cutheight ,, automatic transmission '. increments *Tight 16" Turning *8-mph ground speed .. Radius it7 wi" '1A "Sysem wth 38" deck No Interest, No Payments For 12 No Interest, No Payments For 12 Months"'" Months-" VISIT YOUR GOLD STAR CERTIFIED JOHN DEERE DEALER TODAY! m .....S.., EQUIPMENT CO. RPWm 2480 East 1-65 Service Rd. N Mobile. AL PIl }l)4CI6F- I':qI 33 Industrial Ct Freeport. FL IR.Ol 835-3337 4625 Hwy 231 N Panama City, FL IP \rh 7(,r|..1iq!A D,74BODD0802 0A3XIO091DSH ew 00030111 3195 W Nine Mile Rd. 9231 W Oak Lawn Rd. Pensacola, FL Biloxi, MS i nuIl O iur8), 1d39o-2660 O" Equal Oppor tunilv Lendler 1 ne ;eanawRs Duty B urnett gets oT a upune oetore mre vators rush can get mmn during South Walton's 25-7 loss to Wewahit'hka on Friday. Holmes County edges Freeport 18-16 *g 1 ioolBHS 'S AfB^ CHEC MA Pa Da Lan ," ,""" PAGE 9-B i , , THE DEFUNIAK SPRINGS HERALD THURSDAY, SEPTEMBER 13, 2007 'Growng Wot Amenca* Goodyear Passenger Truck OTR NATIONAL TIRE BROKERS CORP 829 Highway 90 West DeFuniak Springs, FL 32433 Tires, Brakes, Alignments & Auto Service 850-892-5191 1-800-252-2888 Landscape Tree Removal/Trimming Stump Grinding Full Service Lawn Maintenance DeFuniak & Freeport Area ONE MAN AND A TRACTOR SPECIALIZING IN SMALL JOBS LANDSCAPING BUSHHOGGING LIGHT LAND CLEARING DRIVEWAYS FREE ESTIMATES 850-585-9189 OR 850-865-0159 Scott and Heather Marshall TAYLOR Pon Air Conditioning & Electrical Incorporated Sales, Service & Installation (850) 892-3955 684 North 9th Street DeFuniak Springs FL 32433 James Hessler Construction, LLC CARTER'S Residential Contractor I A Home Maintenance And Repair Additions Remodels Restorations Custom Home Upgrades Windows Electrical Plumbing & More SUBCONTRACTING I INC. DANNY TAYLOR President SNew Construction ,.t Remodel * Home Inspections * Construction Management Services Residential & Commercial 951-0447 :850) 951-3109 L Lic#RR282811441 At C Li 1 7 n0nfoo i 23 (850) 892-2241 jhessbuild@yahoo.coti Licensed & Insured RR282811837 (850) 892-6259 (850) 585-5111 JI mat iou 'Directoryc *zuy. 98 East Santa Rosa Beach, FL 32459 (850)231-0918 Fax:231-0928 email:bieeze@dfsi.net VO'S TAILORING (850)"892-0466 Your Satisfactiqn Is Our Priority 931 US Hwy 331 S.,DFS TAYLORS A/C & ELECTRIC, INC. LIC'S RM0048225 RG00048207-ER00015 892-3955 AMERICAN AIR SYSTEMS LLC ReihLliiy. Comfort & Performance. LIC. RA0064836 IAUTO SALVAGE 442 CT.Y HWY 1087 MOSSY HEAD 850-892-3256 FREE DISABLED & JUNK VEHICLE REMOVAL. 850-892-7051, ERRAND LLC (PD Ihru 9.7-07) ADVERTISE HERE! 3 Lines * $10 per month (Po1-1-o05) NEW & USED BOOKS TRADE-INS DOWNTOWN ON BALDWIN & 6TH M-SAT. 10-5, 892-3119 RV SITE, WATER, ELECTRIC, SEWER, CABLE 892-7229 HICK'S CARPET CLEA[NIJG FREE ESTIMATES 892-2623 NEW LOOK CLEANING COMPANY JOHN & TOBY STONE, OWNERS LIC. FREE EST. 892-4573 OR 259-5856 S - OKALOOSA WALTON CHILD CARE HRS & UNITED WAY 892-8560 COMPUTER REPAIR I FIX COMPUTERS, INC. CREDIT CARDS ACCEPTED 892-0977 GLOBAL DATA SYSTEMS ALL COMPUTER REPAIRS & NETWORK SERVICES. 892-6794 CONCRETE, ERRAND LLC 850-892-7051 (PD th8-17-07) , Construction WE SPECIALIZE IN SMALLER JOBS. HAULING, BACKHOE WORK, DRIVES. ETC. LAWRENCE & SON 892-3873 CARTER'S SUBCONTRACTING, INC. Lic. & Ins. New Construction & Remodel. (850) 892-6259, 585-5111 RR282811837 Decks -Fences-Doc NO JOB TOO SMALL: CLEANING, SHOPPING. HANDY MAN JOBS. LET SUSIE & RHONDA BE YOUR HANDY HELPERS. 305-8319, 537-9307. Errands, Decorating, Transportation, etc. DISCOUNT FOR SENIOR CITIZENS -HANDYMAN 30 YEARS CONSTRUCTION EXPERIENCE 850-892-7051 (817.07 Home Repair, Tile Work: Kitchen & Bath, Floors & Patios. Ex. References, Carlan Const., LLC 850-249-0075, 850-819-4351 HANDYMAN CHARLES CARPENTER, LLC. SERVING BUSINESSES IN DEFUNIAK. 305-1768. PRESSURE WASHING, LANDSCAPING, BUILDING MAINTENANCE (9.30.07) NATURE'S HEALTH FOOD STORE 756-C BALDWIN AVENUE 892-2356 HOME REPAIRS PAINTING ODD JOBS LANDSCAPING 850-834-4187 iTHRUNOV 12) PATRIOT CONSTRUCTION LLC for all your carpentry needs. Lic. & Ins. Free Estimates. Call Tom 850-585-5489. Ihru 12 19 PCSI LAND CLEARING BUSHHOGGING, EXCAVATION, DRIVEWAYS, HAULING, 685-8586 PD TIL 7,77)), - DOYLE'S MAINTENANCE, LLC WELDING/FABRICATION, REMODELS LANDSCAPING/LAWNCARE, INT/EXT. PAINTING, RRIGATIO:I.REPAIR,. HAULING. LICENSED & INSURED 419-4323, 217-0047 W. HWY. 90, DFS, FL 892-2214 (CTFN) -PAINTING PRESSURE WASHING INTERIOR EXTERIOR, FREE EST. CELL 850-218-9879, H. 850-892-4313 HUNGRY HOWIE'S PIZZA & SUBS WALTON PLAZA. WE DELIVER -,951-0484 JEMCO PLASTERING INC. 892-5524 QUALITY IS OUR GOAL BARLEYS UTILITY SERVICES BACKFLOW PREVENTER COVERS 892-3299 RF0066219 IPD In 151 Pra le udn HALLMARK PORTABLE BUILDINGS HWY 90 PONCE DE LEON (850) 836-4545/4455 PRESSURE WASHING, HOUSES, CONCRETE, ROOFS, NO JOB TOO SMALL, EXP., LICENSED & INSURED cell 585r8412 RENT ME STORAGE UNITS $40 & UP 585-2563 SOUTHERN ROOFING ALL TYPES RE-ROOFS & REPAIRS, LIC. #RC0056527. 956-4325 SLAY'S SALVAGE WE BUY JUNK CARS & TRUCKS (850) 956-2870 (pd.2-13-oB) WINDHAM SEPTIC SERVICE, INC. 67 JOE CAMPBELL RD. 835-3356 ALL'S SMALL ENGINE REPAIR REPAIRS'TUNE-UPS*OVERHAULS FREE Pickup & Delivery 850-892-7887 STUCCO PLASTERING STONE - REPAIRS, ERRAND LLC JOHNSON SURVEYING DEFUNIAK SPRINGS, FL PH. 850-892-3639 FAX. 850-892-6326 CRUISES, VACATION PKGS & MORE 24/7 @ OR SHERYL AT.(850) 892-2244 BARBER'S TREE SERVICE Free Est. TRACTOR & TREE SERVICE (850) 956-2676, 1-866-848-6651 McDONALD TREE SERVICE BUCKET TRUCK & STUMP GRINDINt LIC. & INS. (850) 892-7380 ARGOMLS Y --S ANGELO'S VINYL SIDING & SCREEN ROOMS, FREE EST., REFERENCES 892-4006, 585-4715 Eddie Carter, Contractor ADVERTISE your BUSINESS Here... This Business & Service Directory Could Serve Your Needs For Advertising Information call Janice at 892-3232 - I I I 1. I PAGE 10-B ;B High school football round-up By PATRICK CASEY Marianna rallied from a 22-15 deficit at Gracevile scoring 28 second-half points for a 43-22 victory as the Bulldogs improved to 2-0 on Friday night. Bradley Battles scored three touch- downs for Marianna and rushed for 209 yards in the win. Tate's Terrel Witherspoon returned a David Kooi pass for a touchdown as the Aggies knocked off Pensacola Catholic 28-25. David Figueroa missed a 26-yard field goal with seven seconds Holmes Co. Baker South Walton Northview Vernon Last Week's Results Holmes Co. 18 Wewahitchka 25 Chipley 49 Baker 45 Jay 16 Pens. Catholic Marianna Walton District W L PFPA 0 0 0 0 0 0 0. 0 0 0 0 0 0 0 0 0 0 0 0 0 Freeport So. Walton Northview Franklin Co Vernon This Week's Game Baker at PC. Arnold Northview at Walton P.C. Bozeman at South Walton Graceville at Holmes Co. District W L PFPA 0 0 0 0 0 0 0 0 0 0 0 0 left in the game that would have sent the contest into overtime for the Crusaders. Tate built a 14-0 lead and never trailed in the contest as the Crusaders have lost a pair of close games to start the 2007 season. Jay put together a 94-yard touchdown drive and owned the football for nearly the entire fourth quarter as they won their first game of the year 16-8 over the Vernon Yellowjackets. Royals backup quarterback Steven Brabham hit Devin Castleberry with a 30-yard scoring pass to even Jay's record at 1-1 on the year. Brabham, a sophomore, was filling in for Brandt Hendricks who was unable to play due to a concussion. Blountstown senior full- back Ryan Baker scored the game-winning touchdown on a 17-yard run in the third quarter and then helped the Tigers' defense protect the lead by making 17 tackles and forcing a fumble as they defeated West Gadsden 14-7. Baker, an LSU commitment, Golf tournaments set for By CHUCK HINSON The weather will be a little" bit cooler and golfers will be hitting the links more often. What a geat time to test your skills with an open invitation DID YOU KNOW? Five Sports Facts 1. Walton's Andrea Stuckey scored the first touchdown in the inaugural football game between Walton and Freeport in 1979. 2. The Georgia Bulldogs are 7-0 in their regu- lar season football'openers under Head Coach Mark Richt. 3. TCU recorded a college football record 15 sacks in their game with Nevada during the 2000 season. 4. Issac Jackson rushed for 207 yards against Freeport in the season opener, just the fourth back to run for more than 200 yards in a game for Wal- ton in the last 16 years. 5. There are 620 colleges and universities com- peting in NCAA football in all divisions entering the 2007 season. 2007 STANDINGS CLASS A, DISTRICT 1 District Overall Liberty Co. Wewahitchka Sneads Jay Port St. Joe Freeport Franklin Co. West Gadsden W.L 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Last Week's Results Holmes Co. 18 Liberty Co. 42 Wewahitchka 25 Jay 16 Baker 45 Blountstown 14 This Week's Game Sneads at Franklin Co. West Gadsden at Crestview Wewahitchka at Cottondale Port St. Joe at Blountstown PF 61 25 37 23 14 23 24 14 SFreeport Cottondale South Walton Vernon Franklin Co. West Gadsden 7 p.m. 7 p.m. 7:30 6:30 Overall 16 7 36 o. 18 8 7 p.m. 7 p.m. 7 p.m. 7 p event is,spon- sored by the OWC Founda- tion. Throughout the day there will be lectures, golf instruc- rushed for 92 yards on 13 car- ries. Blountstown's Malcolm Ivory added 88 yards on 12 carries along with a 25-yard touchdown run. West Gadsden was led in rushing by Leroy Smith as he had 16 carries for 76 yards. Blountstown is 1-1, while West Gadsden falls to 0-2. Jeremy Jackson rushed for 209 yards and two touch- downs to lead the Liberty County Bulldogs to a 42-14 victory over Cottondale. Lib- erty County's Kevin McCray added 103 yards and two touchdowns for a Liberty October. 2007 NEXTEL Cup Series schedule Date I .J ,. '~~ ~ ; .;1.,:JI ABC ABC ABC ABC ABC ABC ABC ABC ABC 300 400 267 188 334 500 325 334 267 317.4 400 400.5 500.08 501 263 500.5 500.5 400 :'i& 'S RED GIBSON (left) and dad, Larry Gibson, caught this Black Drum while fishing in Choctahatchee Bay recently. The fish measured 43 1/4 inches. Dad caught the smaller fish, a Red Snapper. Several fishermen helped in pulling in the drum. Freeport Little League to hold board elections Freeport Little League in Freeport L.L., or be' a Baseball announces that the member. Membership cost is regular scheduled board elec- $3. tion will be held on Sept. 12, at 6 p.m., at the old Freeport "There will be many new Post Office. challenges. The voters help The purpose is to elect and involvement can make board members from the this upcoming season a great Freeport area to represent one," said Charles Simmons. Freeport Youth Baseball. To Numbers for information be eligible to vote, voters are Simmons, 835-5179 or should have children playing James McLeod, 835-4041. Walton High School cheer- leaders planning annual alumni spaghetti supper The Walton High School zodrowca@walton.k12.fl.us (WHS) cheerleaders are with questions or concerns. planning the annual alumni spaghetti supper for all former WHS cheerleaders. The supper is scheduled for Wednesday, September 19, at M' R . 6:30 p.m. in the lunchroom at ,omr i ui:? cMC, WHS. The alumni cheerlead- ers will also be meeting at - the homecoming game dur- ing the third quarter to lead the crowd in a cheer. Contact Capri Zodrow at < 830-1035 or 4. , Overall W L 0 2 2 0 2 0 Last Week's Results Tate 28 P.Catholic Walton 27 FAMU Marianna 43 Graceville Subscribe Today 892-3232 'This Week's Game Northview at Walton 7 p.m. P. Catholic at Navarre 7 p.m. Alvin L. Hartzog Sales Manager County squad that won the game going away despite los- ing six fumbles in the contest to the Hornets. Cameron Domangue ran for four touchdowns and threw for another as Baker got a road win over Franklin County 45-18. Northview and Chipley staged a track meet as the Tigers escaped with a 49-36 win in Northview over the Chiefs. Chipley built a 49-28 lead and hung on for the win as the two squads combined for nearly 1,000 in total of- fense on the night. SCHOOL SPORTS CALENDAR WEDNESDAY- SEPTEMBER 12 Walton Golf at Pensacola A.C. Reed 1 p.m. Walton Middle School Cross Country Meet at DeFuniak Lakeyard 3 p.m. THURSDAY- SEPTEMBER 13 PDL Middle School Basketball at Laurel Hill Girls and Boys 4 p.m. (4 games) Walton Volleyball at Northview 4/5 p.m. Pensacola Catholic at South Walton Volleyball 4:30/6 p.m. Walton Middle School Girls Basketball at Freeport 5/6 p.m. Paxton Boys Middle School Basketball at Central 5:30/6:30 p.m. Chipley JV Football at Walton 6 p.m. South Walton JV Football at P.C. Bozeman 6 p.m. Freeport JV Football at Holmes Co. 6 p.m. FRIDAY- SEPTEMBER 14 Northview at Walton Football 7 p.m. P.C. Bozeman at South Walton Football 7 p.m. SATURDAY- SEPTEMBER 15 South Walton in Emerald Coast Eye Opener in Niceville 7:30 a.m. Walton Cross Country Meet at OWCC 8 a.m. Walton Middle School Cross Country Meet at OWCC 8:30 a.m. MONDAY- SEPTEMBER 17 Walton Golf at Marianna Indian Springs 3 p.ml PDL Middle School Basketball at Bethlehem Girls & Boys 4 p.m. (4 games) Paxton Middle School Basketball at Laurel Hill Boys & Girls 4 p.m. (4'games) Walton Volleyball at Cottondale 4:30/6 p.m. Crestview Volleyball at South Walton 4:30/6 p.m. Emerald Coast Middle School Basketball at Walton Girls 5/6 p.m. P.C. Bozeman at Freeport Volleyball 5/6 p.m. TUESDAY- SEPTEMBER 18 Freeport Golf at Walton 3:30 p.m. Paxton, Walton at Freeport Cross Country Meet 3:30 p.m. Holmes Co. Middle School at PDL Girls Basketball 4/5 p.m. Freeport at South Walton Volleyball 4:30/6 p.m. Seadside at Freeport Middle School Girls Basketball 5/6 p.m. Walton Middle School Girls Basketball at Baker 5/6 p.m. Emerald Coast Middle School at Freeport Football 6 p.m. Holmes County Middle School at Walton Football 6 p.m. i p Saturday, September 15th WALTON COUNTY FAIRGROUNDS DeFUNIAK SPRINGS, FL FEATURING... TIGER LEE MISS FIREDor Open SOUTHERN N EXPRESS TRIPLE THREAT6:30 enM M.* THE YORKS PLUS OTHERS Belltime MOM CARDS SUBJECT TO CHANGE 7:30 PM , VSOUIET YO I 24OS -@00 e Venue Laps Race length TV CHASE FOR THE CUP CLASS 2B, DISTRICT 1 Southern Pro Wrestlingl PRESENTS FAN APPRECIATION NIGHT CLASS 2A. DISTRICT 1 do% - __ 91VIW LW -, THE DeFUNIAK SPRINGS HERALD, THURSDAY, SEPTEMBER 13, 2007 PAGE 11-B HOPE students at WHS build success one paper tower at a time Hope means more than just "the feeling that what is wanted can be had" at Wal- ton High School (WHS). For members of the freshman class, it also refers to the new 'Health Opportunities through Physical Education class (HOPE), the newest graduation requirement for the class of 2011. The new class is an additional way for WHS to conduct its "Aca- demic Ambush" the 2007- 08,theme for educational suc- cess. HOPE replaces the 'Life Management Skills' class and personal fitness courses of the past, but still maintains focus on young people developing . - responsible decision making behaviors and interpersonal communication talents, and learning about the preven- tion and control of lifestyle diseases like HIV/AIDS, other STDS, heart disease and diabetes. The second. component of HOPE concen- trates on individual fitness choices and the importance of a lifetime commitment to physical well-being. Recently, students in the HOPE class had the oppor- tunity to evaluate their role in group dynamics, as well as the way American teenagers relate to each other, by build- ing construction paper tow- ers. The objective was to brainstorm all possible ideas and then create a freestand- ing tower of maximum height with only six pieces of paper, masking tape, glue, and scissors. The students added the competitive spirit and the battle was on. Several groups chose the skinny tube approach, while . others styled their master- pieces after Oriental pago- das or elementary stacks of blocks. The activity con- cluded with written self- evaluations about individual personalities traits that func- tion as strengths and weak- nesses in small group assign- ments. Ian I' WALTON'S BETSY STEVENSON sets the ball for her team mate during their game against South Wallton. The Lady Braves t',iltt ,, Il w ot l ..;-I Usk Iv, .I Ikw 4LALi AARA& 3- '~.d~.'. -.]sr~ -7 U,:Owwrp v Oil t\I l'd~' -_ ..- _____-- .- - --- - -- --- i HOPE CLASS members pose behind their paper towers during a recent WHS class. L to R Sierra Jones, Abby Johnson, Kaylee Schipper, Brekki Hogan, Tyler Howell, 'and Brittney Taunton. 3S- T-R-E-T -Zu-,h YOUR HARD EARNED DOLLAR HERE! Family Pack, Fryer Drumsticks............lb 99 Family Pack Fryer Thighs lb. 89W Family Pack Loin End $139' Pork Chops lb. Boneless Shoulder Roast lb. 2 Family Pack Family Pack Shoulder Pork Steak lb. I Steaks lb. Small Pack Pork Steak lb. Family Pack Top $199 Blade Steak lb. Fresh Boston Butt Pork Roast lb. $129 Meat Bundle # 3 5 lb Sliced Bacon 5 lb Pork Steak 5 lb Chuck Steak 5 lb Fryer Leg Quarters /10 lb 73% Ground.cLeef Lee Mild Roll Pork Johnsonville Smoked Brats $109 $ $199 Sausage 16 oz. $109 Sausage Links...............16 oz. $1 Hillshire Farm Polish or Original fohnsonville Beddar/Cheddar $269 i 1 $99 Sausage 16 oz. $2 Links 16 oz. Kelley's Hickory Smoked Sausage Mild or Hot -- Fully Cooked -- Heat and Serve $259 lb. Prices Good 9/13-9/18 ADVERTISED MERCHANDISE POLICY In the event an advertised item is not available, we will provide a rain check upon request, or you may purchase a similar item at the Sale Price. ATM L EBT CARDS Our Meat SDepartment will special cut your meat. Just ask Gordon Stop By and Check Out Our Specially Priced Meat Bundles Meat Bundles I Temorar Pic Reucios With each $10 food order, you have a BUDGET SAVER special which may be redeemed at any ' time: Hillsdale Medium Eggs Doz. 75y Dairy Fresh Milk 1 gallon $300 Classic Coke or Reg. Pepsi (2 liter) 89 Velvet Paper Towels Roll 75 Glad Tall $250 Kitchen Bags 12 ct. 2 Turkev and Cheese with Gravy 2/9 Friskies 5.5 oz. 90 With Beef . Alpo 13.2 oz. U06 J Wesson $150 Vegetable Oil 16 oz. 1 l ^ To) 2/90 | Mix Vegetables i15oz. 290, Hy Top Lasagna Noodles 16oz. 99 Velveeta $219 Mashed Potatoes 11.75 oz. L Vlasic Oval $-1 75 Pickles 16 oz. J X Delmonte Whole 2/$1 00 New Potatoes 14.5 oz. 1. Liberty Gold $109 ij Pineapple Slices 20 oz. HLuInts Tomato Puree 10.75 oz.7997 All Flavors $350 I Kool Aid Mix Singles 16 ct. 0 SOUTH WALTON'S BROOKE CANNON PUTS IT UP and waits for her team mate to put'it over. The Lady Seahawks fell to intracounty rival Walton, 21-25, 26-24, 25- 13, 25-20. O Community Calendar I. MODEL AVIATORS of DeFuniak Springs meets the first Tuesday night of each month at McLain's Restaurant at 7 p.m. /^\.-J.. A II ....... FROZEN FOOD Orieda All Favors$ 175 Twice Baked Potatoes 10 oz. . Chicken Broccolli and Cheese $269 Lean Pockets 9 oz. 2 Green Giant Create A Meal $300 Lo Mien 21 oz. 00 Lender's All Flavors $ Bagels 12 oz. $125 Stouffer's (14 oz.) $3 15 Chicken Monterey....... Bryers Butter Pecan Ice Cream...................56 oz. Pict Sweet Lima Beans..............32 oz. $400 $300 U DAIRY PRODUCTS | Hy Top Squeezable Spread Margarine..................1....2 oz. $125 Galaxy American Sandwich Slices....16 ct. 75 Merico jumbo Buttermilk Biscuits 16 oz. $125 PRODUCE Cucumbers............ Lettuce.............head Extra Large Tomatoes...........lb. $109 Bi Color Corn 3/$2 Del Monte Tropical Fruit CupS.......each $179 I - 2/$1 $119 ?II~II~.~~~~~IIIl~~~rrIlI -~r~~III`IIIl~~~~~~~71~~1~~~~71~11 ______~I~. THE DeFUNIAK SPRINGS HERALD, THURSDAY, SEPTEMBER 13, 2007: PAGE 10-B ,$ . ," .::'- '- i *. !:t .., ... *.: .. :', .. . ., .' .. ' THURSDAY, SEPTEMBER 13,. 207 INSIDE SCHOOL BOARD HANDLES WAIVERS, BUT NOT CLEAVAGE Student waivers and land purchases are easy. V-neck shirts make the dress code a touchy topic. 1-A SHERIFF INVESTIGATES MORE BURGLARIES Six residential break- ins in Seacrest, Blue Mountain Beaches. 8-A TOOLS, TOILS AND TURPENTINE A look at early life in the Florida Panhandle. 1-B CITIES & STATES VS. FEDS The Herald series on illegal immigration in Walton County contin- ues with Part Four. 9-A Officials set 2007-08 mileage rate By DOTTY NIST According to a Sept. 10 de- cision, Walton County's bud- get for 2007-08 is not to ex- ceed $128,168,120, repre- senting a $9.4 million de-* crease as compared with the current year's budget. The proposed county-wide millage rate is not to exceed 8.3563 mills, plus voted debt service of 0.0144 mills, total- ing 3.3707 mills, and 0.5069 mills for the North Walton Mosquito Control District. This represents a 9.01 per- cent decrease below the rolled-back rate, the rate that would have essentially generated the same ad valo- rem tax revenue as the cur- rent year. One, mill amounts to one dollar for each $1,000 in as- sessed property value. Decisions on the maxi- mum budget amount and millage rate were reached unanimously by the Walton County Board of County Commissioners (BCC) this week. Some adjustments to the budget remain to be made and will be considered at the final county budget hearing on Sept. 24. It is still possible for the proposed budget to be lowered, but not increased. This year's state tax re- form legislation required Florida counties to cut taxes back to 2006-07 fiscal year levels. Also, Walton County was one of 17 Florida coun- ties subject to an additional nine-percent cut as man- dated by the Florida Legis- See RATE 4-C TDC ARTS AND CULTURAL COMMITTEE REPRESENTATIVE Joe Stanko speaks as local artist Donna Burgess looks on. (Photo by Jeffrey Powell) Local artist donates 9/11 original By JEFFREY POWELL Well-known local artist Donna Burgess has donated her original artwork titled "911" to the South Walton Fire District's (SWFD) head- quarters located at 911 N. CR-393 in Santa Rosa Beach. The installation ceremony was part of the South Wal- ton Tourist Development's (TDC) ongoing Art in Public Places program. The cer- emony was held on Septem-- ber 11, six years after the New York City tragedy. "We are honored to accept this commemorative art- work," said SWFD Chief Rick Talbert. "As we see the paint- ing from day to day it re- minds us of our brother firefighters who sacrificed their lives for others on Sep- tember 11, 2001 and will give us added motivation to follow our mission of prompt, com- petent and caring response in time of need." Approximately thirty people attended Tuesday's ceremony held at station 3. Those attending received a complimentary "911" print., The painting was created in the days following Septem- ber 11-, 2001 to raise money for the New York Police and Fire Widow and Children Benefit Fund. The endeavor raised $50,000 in just six weeks and was a profound experience for Burgess. "This was the most re- warding task I have ever taken on," said Burgess. "Sometimes we have to be torn apart to be put back to- gether again." .The Art in Public places program was created by the TDC Arts and Culture Com- mittee. The committee cre- ated this program in an ef- fort to compliment public buildings to create a sense of pride, place and enhanced community identity and to promote the arts community in Walton County. "The TDC is honored to be able to facilitate this event today in memory of those af- fected by 9-11," said TDC spokesperson Tiffany McCaskill. SWFD PERSONNEL STAND PROUDLY during Tuesdays 9-11 ceremony. (Photo by Jeffrey Powell) MOVIE REVIEW CATCH THE "3:10 TO YUMA" 2-C SWTDC's beach safety campaign receives 'Award of Distinction' The 'Award of Dis- tinction' was re- ceived recently at the Florida Public Relations Associa- tion Image Awards Banquet held in Sarasota. 2-C 0 941111112 I I 94922 73172 Brown addresses property insurance issue By DOTTY NIST "It's not an insurance cri- sis," was Don Brown's sur- prising comment to members of the Walton County Cham- ber of Commerce on Sept. 5. In the opinion of the Dis- trict 5 state representative, the high cost of property in- surance in Florida is a "symptom" of a problem, and that problem is "Florida's enormous vulnerability to hurricanes." Brown's remarks came on the occasion of the Sept. 5 Walton County Chamber of Commerce Power of Busi- ness Luncheon at the Sandestin Linkside Center. Brown, a DeFuniak Springs insurance agent, served on the Florida Legislature's Property Insur- ance and Casualty Insurance Reform Committee, which was created in 2006 to exam- ine problems with the insur- ance market and make rec- ommendations for solutions. Earlier this year the legisla- ture met in special session with the goals of reducing property insurance premi- ums, increasing availability of property insura improving the stabi property insurance Brown fa Florida leader not having tal tion to reduce sure to hurr risks since the expensive-ev riod for hurri 2004-2005, nine hurricane the state wit 14-month frame. One result was le aimed at providing ians greater access zens Property Insu state-subsidized "iE last resort" set up b; in 1972. The insure nce, and dustry lobbied against this lity of the expansion. industry. Brown was critical of the legislature's recent actions regarding property insur- iulted ance, proclaiming the solu- tions crafted to be "doomed .rs for to failure." .en ac- "Much of what we did was pure sleight of hand and gim- expo- mick," he added. ricane "We did precious little to reduce the cost of the next most- hurricane," Brown com- er pe- plained, warning that the decisions made would come canes, back to haunt Florida. when He summed up the major results of the special session Les hit as shifting "who will pay" for th hurricanes from southeast thin a Florida residents to "every- time one" and changing the method of payment to "debt not capital." Brown faulted Florida leaders for not having taken action to reduce exposure to ;gislation hurricane risks since the g Florid- most-expensive-ever period to Citi- for hurricanes, 2004-2005, irance, a when nine hurricanes hit the insurer of state within a 14-month time y Florida rance in- See ISSUE 2-C REP DON BROWN I 1_1 _X~~ II ':' PAGE 2-C Don't miss this train: "3:10 to Yuma" THE DeFUNIAK SPRINGS HERALD, THURSDAY, SEPTEMBER 13, 2007 By BRUCE COLLIER Westerns manage to get made in every decade. Most are still worth watching, even those hobbled by the fashions and social con- sciences of their respective decades. Remember all those flared trousers and Fu Manchu mustaches in 1970s westerns, giving way to mul- lets in the '80s and frock coats in the '90s? Westerns have variously offered thinly- veiled metaphors for McCarthyism, grim celebra- tions of male violence, even the occasional feminist state- ment. The best ones offer simple conflicts between right and wrong, and stories based on the consequences of choosing one or the other. James Mangold's "3:10 to Yuma" pulls together some of the most compelling ele- ments of the classic West- erns. The plot is deceptively simple: will the good guy get the bad guy on a train to prison before the bad guy's gang can spring him? The screenplay, based on a story by Elmore Leonard, lays on a few complications, all char- acter-driven. Good guy Dan Evans (Christian Bale) has a wooden leg, a drought- starved ranch, and a son who doesn't think much of him. Bad guy Ben Wade (Russell Crowe) is a murderous rob- ber of armored payroll coaches, but is also courteous to women, quotes the Bible, and is a fair sketch artist. Wade's "family" of robbers is shepherded by Charlie Prince (Ben Foster), a cold- eyed killer utterly devoted to his boss. When Wade slips up and gets himself caught af- ter a heist, Evans and a hast- ily-improvised posse are hired by the railroad to es- cort their prisoner to a train to Yuma prison, and the gal- lows. The chase becomes a war of wills and wits between Evans and Wade. The movie contains most familiar Western set-pieces - the cattle ranch, saloons, stage coaches, a railroad work camp, hostile Indian territory, and finally the sta- tion platform with the epony- mous prison train. Mangold takes a little time setting up the relationships and mark- ing off the conflicts, then lets the apparatus run. What makes it look as effortless 'as it does is mainly due to his actors. From the two name stars to the supporting and bit players, the casting choices are all near-perfect. Crowe has had great suc- cess playing heroic, self-sac- rificing types, while Bale is probably the only actor in history to have played both: Jesus Christ and Batman. The fact that both come from the former British Empire (Bale is Welsh, Crowe a New Zealander) accounts for their near-flawless American West accents. Of the two, Bale has the tougher acting assign-, ment. Evans is a very ordi- nary man, teetering on the edge of bitterness and des- peration, who takes the Yuma job because he needs the money to keep his ranch from foreclosure. Otherwise, his is a reluctant courage. Evans does the most chang- ing, reaching deep into him- self to finish a job "when no- body else would." Crowe is frequently the good guy in his films, even when flawed. His success with Wade comes from mak- ing the outlaw charming, even occasionally admirable, all the while protesting that he's really "rotten as hell." Crowe avoids the tired cli- ches of the latter-day West- ern bad guy psychopathic stares, maniacal laughs, ran- dom acts of sadism and gives a very plausible por- trait of a dangerously likable killer. When Evans' oldest son William, a devoted reader of dime novels about bandits like Wade, disobeys his father and catches up with the escort, Wade needles Evans, "He's notfol- lowing you, he's following me." Other good performances come from Gretchen Mol as Mrs. Evans, Alan Tudyk as Potter, the town horse doctor who rides along to patch up the wounded, and Logan Lerman as William, whose hero-worship gradually shifts focus. An almost-un- recognizable Peter Fonda has a juicy role as Byron McElroy, a Pinkerton guard with a long-standing grudge against Wade. ."3:10 to Yuma" offers plenty of shooting and deadly violence, but it's not the bloody acrobatics of "The Quick and the Dead." It's a moral tale, more in the tra- dition of "High Noon" or "Unforgiven" than the nobly- intentioned "Dances With Wolves." Master Western di- rector John Ford may not have approved of this movie's ending, but he would have understood the road it takes to get there, and the ques- tions that are raised and answered in all really clas- sic Westerns. All aboard. United Way needs volunteers to help in DFS KATHY MORROW By Ronda Davenport. United Way of Okaloosa- Walton Counties The United Way of Okaloosa and Walton Coun- ties is counting on commu- nity volunteers to make the annual Day of Caring a suc- cess. Day of Caring in De- Funiak Springs will be held on Tuesday, Sept. 18, with volunteers and United Way agencies teaming up to strengthen their community. The day will begin at 7:30 a.m. with breakfast at McLain's Family Steak- house under the leadership of Day of Caring Chair, Kathy Morrow of CHELCO. Follow- ing breakfast, volunteers will report to their assigned projects, including yard work, painting and other tasks, throughout DeFtiniak Springs. When work ends around 11:30, volunteers will gather back at the CHELCO Center where lunch will be sponsored by Domino's Pizza. Any local company that would like to be a Day of Caring sponsor, or would like to provide volunteers to serve on Sept. 18, call the United Way, at 243-0315, or email Ronda, at RondaD@united-way.org By JEFFREY POWELL, "This award means a lot for the South Walton Tourist Development Council," (SWTDC) said SWTDC Di- rector of Public Relations and Visitor Services Tracy Louthain. "We have been working on this campaign for the past three years." The 'Award of Distinction' was received recently at the Florida Public Relations As- sociation (FPRA) Image Awards Banquet held in Sarasota. The FPRA Golden Image Awards sets the stan- dard for excellence among public relations campaigns in Florida. Over the past three years the SWTDC, has spear- headed an aggressive beach safety campaign to educate the public about beach safety and the flag warning system. Visitors from outside the area are often 'unfamiliar with the dangers associated with rip currents. A series of nine drownings due to rip currents over the 2003 Me- morial Day weekend prompted the SWTDC to ISSUE FROM FRONT frame. 'Brown told the gathering that Florida is at the top of the nation in terms of in- sured coastal exposure at a total of almost $2 trillion. "Nearly 80 percent of Florida's insured exposure is coastal," he added. Brown ob- served that there has been little interest in recent years by residents, permitting au- thorities, or developers in limiting development in the state's disaster-prone areas. Legislators have also been "loath to pass laws nega- tively impacting develop- ment in their home districts," he added. Brown predicted that "the worst is yet to come" in terms of losses associated with hur- ricanes. He estimated that losses from a repeat of the 1926 Miami hurricane could easily exceed $500 billion. He spoke to the need for the state to attract new capi- tal to finance risk-taking as- sociated with development in disaster-prone areas. Other recommendations by Brown included strength- ening of building construc- tion standards, enforcement of building codes, fortified home iroti ,illin raising pub- lic awareness of hurricane risks, and insurance rates based on .olnd actuarial principles" that would be ad- equate and correspond to ac- tual risks, rather than rates controlled by the govern- ment. While the last recommen- dation would result in higher insurance rates for some property owners, based on their location, Brown argued that to do otherwise would only perpetuate the "conduct of the past" at the root of the situation at hand. Fully recognizing his stand on the property insur- ance issue to be a controver- sial one, Brown nevertheless passionately vowed to perse- vere. "In your business, your po- litical life, there are some things worth fighting for, worth dying for," he con- cluded. The Waltoniak ": u" .. This service is free and available to residents of Walton County 4tc: 9-6,13,20,27 pursue an aggressive beach safety campaign that has grown under the Beach Safety Education Commit- tee, appointed in 2003 by the Walton Board of County Commissioners. An intricate part of the education process are the lifeguards on the beaches. According to the. "SWTDC, inii July, lifeguards interacted with more than 11,600 beachgoers, educating them on the flag warning system and other potential beach hazards. "As education and preven- tion remains a top priority for beaches of south Walton', it is an honor that this cam- paign continues to receive awards and now has been recognized at the state level," said SWTDC Executive Di- rector Kriss Titus. "The beach safety campaign has evolved over the last three years and today is enhanced through the TDC's unique partnership with the South Walton Fire District, Walton County Sheriffs Office and the community." According to Louthain, the campaign has been so suc- cessful that other communi- ties are using the SWTDC's as a guide. We have been in discus- sions with other Florida beach destinations that would like to fashion their beach safety campaigns after ours," Louthain said. All of the efforts made by the SWTDC, during this cam- paign are geared toward visi- tor safety, Louthain stressed. "We. want the people that come to the beaches of south Walton to have a safe and enjoyable experience." gThe Proven Professionals r nBab t REALTY & Associates,I nc.- iN 776 BALDWIN AVE. 951-2488 Bruce Naylor owner-BrClker lor and will give them the best attention and care. Call 654-4641 St| I I u I %;t.e-'%., ^-Sm.v: a t LI i wi SOUTH WALTON TOURIST DEVELOPMENT COUNCIL staffer Tracy Louthain proudly displays the Beach Safety Campaign 'Award of Distinction.' (Photo by Jeffrey Powell) SW TDC's beach safety campaign receives 'Award of Distinction' PAGE 3-C THEF nDTWTTNTAK SPRINGS HERALD THURSDAY, SEPTEMBER 13, 2007 Atrts Entertainment .(C/i t I-CLLLtLf1 __---- He has written country hits for TW T i m McGraw and Mont- gomery Gentry, while at the same time topping the charts with many of his more than 300 hits. Jeffrey Steele is considered one of the hottest country mu- sic performers, songwriter and pro- ducer today and he makes his way to Rosemary Beach on Oct. 6 For the third year in a row, Rosemary Beach and the Rosemary Beach Foundation present Tunes By The Dunes. This benefit concert gives proceeds to various local and regional charities. This year the charity is the Children's Health Network that affords children who are uninsured to get the medical and dental services they need. Steele has been to Rose- mary Beach before with per- former Kim Carnes, but this year the multi-award win- ning artist returns with his own show and special guests. Steele has been well-re- 1V Art Clip 7'.1 t IL' I ceived over the past two years, that he was asked to come back on his own. His musical career has spanned more than a decade. The more than 300 songs he has written and produced, have made him a staple in the country music industry. With songs like Tim McGraw's The Cowboy in Me," Steve Holy's "Brand New Girlfriend," and "These Days" and "My Wish," by Ras- cal Flatts, Steele has made a name for himself not only in Nashville, but around the world as one of the top sing- ers, songwriters and produc- ers. Steele performs frequently around the country, solo, with his band or with such artists as Delbert McClinton, Brad Paisley, Lynyrd Skynyrd and Keith Urban. When he is not on the road performing, he is in the studio recording with such artists as Keith Ander- son and Montgomery Gentry. Each year the Rosemary Beach Foundation donates thousands of dollars to vari- ous charities and causes throughout the Florida Pan- handle and the southeast. From hurricane relief after Katrina hit the Missis- sippi Gulf Coast and New Orleans, to raising much needed funds for the Children's Volunteer Network, an organization that helps those children in the area with medical and dental needs and who are un- insured. Once again, proceeds from the Oct. 6 concert will go to benefit this organization. A portion of this year's pro- ceeds, along with the contri- bution to the Children's Vol- unteer Health Network, will also go to benefit The Alex LaVassuer Fund at the Com- munity Foundation of Middle Tennessee, in memory of Jef- frey Steele's son. The concert is being spon- sored by Utility Solutions, Rosemary Beach Realty, Cot- tage Rentals and the Prop- erty Owners Association, Top Shelf Storage, Moonpize, Jan and Steve Stevens and Chris- tian Tennant Custom Homes of Florida. Tickets are on sale now for $40. Children under five are admitted free with adult ticket holder. No coolers are allowed, and those attending are en- couraged to bring a low-sit- ting beach chair or blanket. For more information about Tunes By The Dunes, call Hilltop Productions at 951-2148, or for ticket reser- vations, call 877-815-8718. EVENTS around the South I I Tunes by the Dunes: The benefit concert returns to Rosemary Beach on Oct. 7, and will showcase singer, songwriter, producer, Jeffrey Steele. The award-winning performer will be joined by several other. singer- songwriters for a night of music and charity with pro- ceeds benefitting the Children's Volunteer Health Network. For more information, call Hilltop Productions at 951- 2148, or for tickets, call Rose- mary Beach at 278-2017., exhib- its and other cultural events. For more information, call 892-3696, or log on to.. KNOWN FOR ALWAYS WEARING HIS baseball cap, Jeffrey Steele has amazed and entertained thousands. He returns with a few friends to Rosemary Beach on Oct.6 for the third annual Tunes by the Dunes benefit concert. AtThe MOVIES -4.. | F..i A A L- THE SOUTHERN BREEZE Wine and Culinary Tour returns to Rosemary Beach, Oct. chefs from all across the country, will once again take part in the event. For more information and ticket reservations, call 278-2017. 19-21. Numerous wineries and Crestview Cinema 3 NorthviewPlaza, Crestview, 682-3201 Halloween (R) Bourne Ultimatum (PG-13) Rush Hour 3 (PG-13) Twin Cities 1047 E. John Sims Pkwy., 678-3815 Live Free or Die Hard (PG- 13) Chuck and Larry (PG-13) Rave Motion Pictures 4100 Legendary Dr., Destin, 337-8777 Halloween (R) Death Sentence (R) War (R) Resurrecting the Champ (PG-13) The Nanny Diaries (PG-13) Mr. Bean's Holiday (G) The Invasion (PG-13) Superbad (R) Rush Hour 3 (PG-13) Stardust (PG-13) Daddy Day Camp (PG) Underdog (PG) Bourne Ultimatum (PG-13) The Simpsons (PG-13) No Reservations (PG-13) Hairspray (PG) Transformers (PG-13) Destin Cinema 10 759 E. Hwy. 98, Destin, 654- 2992 Halloween (R) The Nanny Diaries (PG-13) Superbad (R) The Last Legion (PG-13) Rescue Dawn (PG-13) Stardust (PG-13) Rush Hour 3 (PG-13)) Bourne Ultimatum (PG-13) Chuck and Larry (PG-13) Hairspray (PG) OWC Art Galleries Music &Theater around the South 2007-2008 Art exhibit season The Mattie Kelly Fine & Performing Arts Center at Okaloosa-Walton College in Niceville features two art galleries which host a series of touring and local art exhi- bitions. All exhibits in the OWC McIlroy and Holzhauer Galleries are free of charge and open to the public. The OWC Mattie Kelly Arts Center Galleries are open Monday to Thursday from 9 a.m. to 4 p.m. and Sunday from 1 to 4 p.m. The galleries are closed Friday, Saturday and college holi- days. The art galleries also feature a volunteer corps of docents who assist with the art exhibits. Two simultaneous art ex- hibits appear Sept. 9 to Oc- tober 11 "Tactile Traces - Fine Art Quilts" and "War- riors: The Navajo Code Talk- ers of WWII." "Tactile Traces" represents the work of three artists and features more than a dozen fine art quilts. The exhibit's title refers to the legacy of stitching and cloth as coming from and through the hands of women. Each artist has exhibited widely in both na- tional and international ven- ues and their works are in- cluded in museums and pri- vate collections. The fine art quilts in the exhibit repre- sent a wide range of the ex- pressive power of thread, cloth and color. The "Navajo Code Talkers of WWII" exhibit features 40 black and white photo- graphs; 20" x 24" in format. The photos are by Kenji Kawano, a Japanese photog- rapher who is the official Navajo Code Talkers Associa- tion photog-rapher. It was the work of the Code Talkers who provided the USA our nation's only totally secure cryptogram speaking in their native language to re- lay vital information between the front lines and USA war- time headquarters. The cryp- tograms of the Code Talkers were a vital part of the war effort, because the Japanese and others were not able to decipher the messages. For more information about the exhibit schedule or the docent program, contact the OWC galleries at 729- 6044. Pensacola * REO Speedwagon and Styx, Oct. 20, Pensacola Civic Center Jacksonville *Sinbad, 10/12, Florida The- atre *Clint Black, 10/13, Florida Theatre *Acoustic Alchemy, 10/23 *Jethro Tull, 12/11, Florida Theatre Gulfport/Biloxi Subscribe Today! MC Visa Accepted 892-3232 *CMT on Tour, 10/20, MGCC Birmingham *Phantom of the Opera, Oct. 10-23, BJCC Tallahassee *Cats, Dec. 6 7, TLCCC -: SUPERBID., FRI 400.6045,900 SAT 1:00.400.645.900 SUN 1 00. 400.645 MON -THURS 4 00 6 45 HALLOWEEN FRIDAY 4 00. 9 00 SATURDAY 9 00 SUNDAY 4 00., 7 00 MON -THUR 700 CHUCK AND LARRY ..., FRI 700 SAT 4 00 7 00 SUN 1 00 MON -THURS 4 00 ADULTS $7.00 MATINEES $5 00 CHILD & SENIORS $5.00 www crestviewcinema3 corn L_ ,.v v.^ 5 Atlanta " *ZZ Top, 9/7, Chastain Park * Reo Speedwagon, 9/29, Chastain Park *The Police, Nov. 17, Philips Arena TWIN CITIES CINEMA 2 PALM PLAZA NICEVILLE 678-3815 STARTS FRIDAY, SEPTEMBER 14TH WAITRESS . FRI. 4:00. 6:45, 9:00 SAT. 4:00, 6:45, 9:00 SUN. 1:00, 4:00, 6:45 MON.-THURS. 4:00, 6,45 STAR DUST.. FRIDAY 4:00, 6:30, 8:45 SATURDAY 1:00, 4:00, 6:30.8:45 SUNDAY 1:00, 4:00,6:30 MON.-THUR. 4:00, 6:30 ADULTS 7.00 MATINEE $5.00 CHILD & SENIORS $5 00 wwOwiOrSE0lOM;O or t Cc) ~6i K LJL -Ul: I U N IZ IV J IJM I --- -- I-) - I Ki mow" J,,] ^' .;. " :w , PAGE 4-C THE WALTON COUNTY Board of County Commis- sioners met on Sept. 10 for the first of two public hearings for consideration on the 2007- 08 county budget. Kay Brady of the Council on Aging ad- dresses the commissioners. THE DeFUNIAK SPRINGS HERALD, THURSDAY, SEPTEMBER 13, 2007 RATE FROM FRONT lature. Lowered penny sales tax collections funding the county landfill, a cut in federal Housing and Urban Development funding, and reduced recreational plat fee revenues from new development were among the non-ad valorem budget items that resulted in further reduction of the proposed 2007- 08 budget, according to Walton County Finance Director Wil- liam Imfeld. To be determined is the county's funding level for the Coun- cil on Aging. The county had proposed putting $75,000 in the budget for the organization in order to ensure that none of the meals being provided to seniors would have to be cut out. Discussion at the Sept. 10 meeting was inconclusive as to whether that funding level would be sufficient not to im- pact the meal programs. An addition to the budget as proposed at the county's July budget workshop is $19,500 in funding for the Resources for Human Development nonprofit organization, which coordi- nates jobs programs for the developmentally disabled. Previous uncertainty over Walton County Sheriff Ralph :Johnson's 2007-08 budget was resolved at the Sept. 10 hear- ing, with Johnson agreeing to forego hiring any new person- nel with the agreement that his current employees receive up to an eight-percentpay raise. Sheriff's Office employees got only a three-percent raise Public Works crew update District One: Hauling clay to Hawthorn Road; hauling asphalt to pav- ing project; routine mainte- nance and grading continues. District Two: Completed placing sod on Vann and Ingle Road; com- pleted work on parking lot at courthouse; hauling asphalt to paving project; routine maintenance and grading continues. District Three: Continue work on Long Road phase two and Williams Road; hauling asphalt to pav- ing project; routine mainte- nance and grading continues. District Four: Working on Hawthorn Road project; placing sod on Whitfield Road and Miley Road; hauling asphalt to pav- ing project; routine mainte- nance and grading continues. District Five: Working on North Church Street; hydro-seeding the ditches and shoulders on Peach Tree Circle; finished cleaning out ditches on Mon- arch Drive; hauling asphalt to paving project; hauling clay from Landfill Pit to Blue Mountain stockpile; routine maintenance and grading continues. Right of Way: Pursuing right-of-way ac- quisition to facilitate the Dirt to Pave Program: Williams Road 99 percent right-of-way obtained; Punch Bowl Road phase two 95 percent right-of-way ob- tained; Joe Campbell Road - 40 percent right-of-way ob- tained; Linda Lane 50 per- cent right-of-way obtained. Clearing Crew: Helping with Williams Road dirt work. Drainage Crew: Working on Dick Saltzman Road; working on North Church Street and West Nursery. Stabilization Crew: Working on Hawthorn Road; completed work on the southern end of Whitfield Road. Paving Crew: Completing work on pav- ing courthouse parking lot; working on paving Dick Saltzman Road. Bridge Crew: Maintenance and repairs to Oak .Grove Road Bridge. County Wide Crew: Working on various ditches in District One and District Four. COMMUNITY CALENDAR -) HOSPICE OF THE EMERALD COAST has volunteer op- portunities Teresa Smith at (850) 689-0300 for more details. under the current year's budget, in contrast with county em- ployees, who got a maximum seven-percent pay raise with merit increase in the 2006-07 budget. No funding had originally been proposed in the new bud- get for the Economic Development Council of Walton County (EDC), a nonprofit organization. However, on Sept. 10, the commissioners opted to extend one-fourth of the $77,000 that had been the county's contribution to the EDC for the cur- rent year. The amount is to come from $500,000 budgeted for economic development but unencumbered. Additional funding to the organization from the budgeted economic development funds is to be considered in three months. In the meantime, the commissioners said they wanted to meet with the EDC and "seek solutions" with regard to eco- nomic development. "I think the objective is to make it better for all involved," said District 3 Commissioner Larry Jones. "I'mi very much interested in accountability," said District 4 Commissioner Sara Comander. Additional discussion concerned the Gladys Milton Li- brary in Flowersview, which had been scheduled to be closed on Oct. 1. Maria Milton, a citizen, brought forward concerns about the closing. Milton told the commissioners that this is the only county library branch in northern Walton County and that it is being used "more and more" by students and by citizens who need computers to apply on-line for services. Imfeld noted that the county has "a preliminary finding" that there is an asbestos problem in the library building. Milton did not dispute the presence of asbestos but said Walton County Upcoming Events By WALTON COUNTY CITIZEN SERVICES Thursday, September 13, 2007 5 p.m. Planning Commission-SW Courthouse Annex, 31 Coastal Centre Boulevard, Santa Rosa Beach. Normal monthly meet- ing. Monday, September 17 6 p.m. Recreation Board-Freeport Community Center, 16040 U.S. 331, Freeport, FL. Normal monthly meeting. Tuesday, September 18 5 p.m. Walton County School Board meeting- School District 'Office, 145 Park Street, DeFuniak Springs. Regular semi-monthly meeting Wednesday, September 19 8:30 a.m. Technical Review Committee- South Walton Courthouse Annex, 31 Coastal Centre Blvd, Santa Rosa Beach. 9 a.m. month- been changed f Tourist Development Council Board Meeting-Tourist Development Council Office, U.S. 98 at U.S. ,331. Normal ly meeting. Date has from Wednes- day, Sept. 12, to Wednesday, Sept. 19. 10 a.m. Walton County Health Improvement Partnership-Freeport Community Cen- ter, 16040 U.S. 331, Freeport. The vision of this partnership is for a collaborative health system that includes health pro- viders, local and county government, edu- cated and concerned citizenry empowered to promote wellness and a healthy envi- ronment for all residents and visitors in Walton County. The mission of this partnership is as fol- lows: To monitor health status and di- agnose and investigate health problems in the community while ensuring indi- vidual privacy; to inform, educate, and empower people about health issues; to develop and advocate for policies and plans that support individual and com- munity health efforts; to promote and support the enforcement of laws' and regu- lations that protect health and en- sure safety; to link people to needed per- sonal health services and resources. share your sports news, social events and photos: dfsherald@gmail.com that if it does exist it has been there for the entire seven years that the library has been open. "This is a late, late, late, late excuse," she charged. The commissioners were aware that a $65,000 cut had been proposed for the county library system but indicated that they had not known that it would result in the closing of any library. "I didn't know this was happening," said District 5 Com- missioner Cindy Meadows. "We want to serve the public," said Ken Little, county citi- zen services director. Little commented that he had thought the county would be "remiss" in continuing to use the build- ing in the presence of asbestos. He explained that the plan had been to expand bookmobile services to fill the need in that community. He added that the Flowersview library rep- resented two percent of the total business of the county li- brary system last year. Milton stated that the bookmobile would not serve, the need. "We very much want to keep a library open at Flowersview," said Comander. County staff members were directed to research ways to continue with a community library in the Flowersview com- munity, including removal of the asbestos and use of a tem- porary building. The proposed county budget may be viewed on-line on ,the county Web site, under the finance division section. The final budget hearing is set for 5:05 p.m. on Sept. 24 at the Walton County Courthouse in DeFuniak Springs. ACAS Civil War Gold presentation slated The Emerald Coast Ar- chaeology Society presents a video journey into the under- Ak~rk water world of Archaeology. The public is invited to visit the remains of the S.S. Re- public, a Civil War ship sunk during a hurricane in 1865. The S. S. Republic was a paddlewheel ship built in Baltimore in 1853, originally christened the S. S. Tennes- see. She plied the waters of the Eastern seaboard and journeyed to Europe. During the Civil War she saw action in both the Confederate and Union Navies. Damaged in the war, she was acquired by a New York shipping mag- nate who renamed her. Learn the rest of her story and what happened to her passengers and a fortune in gold and sil- ver coins on that final voyage. Saturday, Sept. 22, atl p.m., at the Indian Temple Mound Museum, 139 Miracle Strip Parkway, Fort Walton Beach. Dance to health program underway The Walton County Health Department in conjunction with the University of Florida Extension Office and the Walton County Board of County Commissioners is encouraging residents to "dance to health" by offering line dancing classes. Classes will be offered on Thursday evenings, beginning Sept. 6, 2007 and ending on Nov. 8, 2007. The line dancing classes will be taught by instructor Lisa Black; Participants will obtain memory improvement skills, burn calories, learn to eat for health, and compete on a team to win great prizes. The class schedule for in- termediate classes are 6- 7 p.m. and from 7 8 p.m. for beginners. Cost is $16 (due by Sept. 6, 2007). Make checks payable to Lisa Black c/o Walton County Extension Office, 732 N. 9th Street, DeFuniak Springs, FL 32433. Prior registration is re- quired for the classes and space is limited. Interested residents should call 892- 8172 to register. For more in- formation, contact Shaneika McKenzie with the Walton County Health Department at (850) 892-8015 or Kendra Hughson with the University of Florida Extension Office at (850) 892-8172. A SST IS TO PLACE CLASSIFIED ADS CALL 892-3232 VISA & MASTERCARD ACCEPTED C 1 L IS 1 CLASSIFIED & LEGAL DEADLINE IS MONDAY 4:30 P.M. WHAT'S HAPPENING LOOK OUT BOYS-The sleeper is com- ing. TO ALL BLOCK HEADS of a dying breed. Red's granny has come to town to buy groceries on a Sweet 67 Chevelle Sleeper. And she said I could borrow it to make some grocery money so first on the list. PERRY BELL, Rusty Red Camaro still running. JOHATHON SMITH, Any legal fast cars yet. ERIC EWARDS. Get out of the mud play- ing with trucks. YES, OLD JOE PITTS. Can you still shift, if not go to an automatic, (Oh! I forget you already have) Blows'em up, all the time. ALEX FLOYD Build'em right they last longer. DONNIE WOODS Have you got a gear yet, heck, it still wouldn't help you. Sorry I forgot a few nuckleheads last time RONALD BISHOP Just buy a car, you got the money or borrow it from Joe. 0 Yes in deed, JOHN DAY, Do you put that GOAT out to pasture to eat weeds. Whats up with a Harley; at least it doesn't have training wheels -like that old fart LARRY BELLS, MICHAEL GRIGGS, - (67 BLUE BUNNY). It's fuel injection that's fast. Yes (High Dollar Man) KEN SPIKES-stop polishin them, drive'em and drive'em hard, Yes, QUIN FINK, Forget Fords they can't even touch GRANNY'S GROCERY GET- TER. DAVID BELL finish that white bomb, lets line'em up. To all you boys ENJOY LIFE.HAVE FUN. Yes Small Blocks Do Rock! Just a 67 CHEVELLE Small Block guy Old School Red. P.S. If I forgot ANYBODY with a really fast old car. Just look me up! 249wds FOR SALE OFFICE EQUIPMENT FOR SALE All items in excellent condition. * IBM COMPUTER with key board, mouse modern printer, mic. $450.. *BROTHER COPY MACHINE runs great. $75. *XEROX plain paper copier. $50. MISC. ITEMS FOR SALE *110 FT. RADIO TOWER. $500. (Must take down.) *BATHTUB SHOWER chair. Brand new. $50. *EX-LARGE BBQ GRILL. All steel. $30. ? OFFICE REFRIGERATOR- $60 - 835-2163 45wds tfc 6/21 (2) ROSE ROCKING CHAIRS $50 each. OBO. Very good cond. 859-0363. l1tp 9/ 13 BLUEPRINT SIZE XEROX-Xerox model 2515, copies up to 36-inch-wide docu- ments. $1,800 OBO. Call 850-233-6445. tfp 9/13 NOW LEASING MINI-WAREHOUSES 1504 US HWY 90W For Reservations or Info Call 892-3612 15" AUDIOBAHAN Speaker with 1200 watts-Volfsenhag Amp with speaker box. Wires included. Pd $600. Asking $400. Call 333-1467. tfc 8/9 BAHIA HAY-large rolls 4x5. $30. 859- 0096. 3tc 8/30-9/12 BEAUTIFUL 1 CTtw. HONDO ELECTRIC guitar with amp. $50. 836-4321. 2tp 9/13-9/20 PRECIOUS ANGEL PAGEANT DRESS- with crinoline Pink & white. Child's size 8. Worn once. Exc. Cond. Floor length. $75. 333-1178. tfc 8/9 ALICE'S ANTIQUES, Collectibles, and used furniture. Back from Vacation-NOW OPEN. 2374 S. 2nd Street (280A) Open Tues-Fri, 10-5, Sat. 12-4 Ph. 892-4074. Antique dressers, chest of drawers, table & chairs, wicker, china, teapots, cups'/ saucers, vintage/depression glassware, jewelry, linens and much, much, more. Check out the old tool shed and "Grandma's Attic. "Alice's Painted Cot- tage Furniture" Wall to wall with antiques and used furniture. A must see shop. We buy and sell. tfc 8/9-67wds CEDAR CHEST $100. Dresser w/mirror $100. Entertainment center. $40. 892- 5509.2tp 9/13-9/20 MUSCADINE GRAPES: u/pick $6. and $12. buckets. We pick available. Mon- Sat. Located Hwy. 331-4 miles. SoPax- ton. 850-834-2000. 4tp 8/23-9/13 KENMORE WASHER/DRYER unit. Like new-$500. Call 850-534-0509. 2tp 9/6- 9/13 WE BUY CARS, boats, trailers, miscel- laneous items. 334-477-6078, 850-305- 1957.6tp 8/16-9/16 PERENNIAL PEANUT HAY-50 pounds square bales, $6. per bale. 850-834- 3881. 2tp 8/9-9/16 COMPUTERS, monitors, keyboards, components, and parts. 892-2811. tfc 6/ 14 WAREHOUSE MARKET MALL & FLEA MARKET-Antiques, Trash & Treasures. 32,000 square feet, 50+ vendors & grow- ing. 23380 Fifth Ave (main) Street, Florala,. LIONS, TIGERS, BEARS oh my! The sleeper in town. WANTED WANTED-BASS PLAYER for starting small country band. Sober only. Call John 859-2935. 2tp 9/6-9/13 LIVESTOCK FOR LEASE-10 Stall barn with pasture & large arena. Call Iron Horse Realty. 951-2703. tfc 8/16 MOBILE HOMES MOBILE HOME FOR SALE 14X61 FLEETWOOD in excellent condition. Clean, air/heat & kitchen appliances. $15,000. OBO. Call 834-4905.4tp 9/6-9/ 20 PALM HARBOR ZONE 2 Manufactured home. Gorgeous custom built in 2004. 4bd/ 3 full baths. 2,400 sq. ft. Living space. $79,900. 850-534-0819.4tp 9/13- 10/4 MOBILE HOME FOR SALE-1999 Fleetwood 14x60.2br/1ba. Excellent con- dition/great starter home. Major appli- ances/some furnishings included. CH/A. $16,500 OBO. Call 333-1978 today. ltp 9/13 AUTO 95 CHEVY BARETTA-Runs good. $1,000. Call Chuck 305-1768. l1tp 9/13 1995 CHEVROLET S-10 EXT. CAB. 5 spd. manaul Trans. 2 ton color, cruise control. AC, and V-6 engine. $3,500.859- 2520.2tp 9/6-9/13 1996 FORD AEROSTAR VAN. New tires, runs great. $1,400. OBO. 334-858-3704 or 850-333-7073. 1tp 9/13 95 BLAZER, Needs Motor. $500 OBO. 892-7419. 3tp 9/13-9/27 - 97 DODGE CAR-One owner in very good condition. $3.000. Call 892-6663. 2tp 8/ 9/6-9/20 1975 4-DR/CREW CAB PICKUP. w/454- Engine runs like a tank. $1,300. Call (850) 835-2163. tfc 7/27 1989 ISUZU PICKUP, blue, 5 speed, a/ c, am/fm, one owner. $1,000. 892-6864. Leave message if no answer. 2tp 9/13-9/ 20 1997 BMW M3 3.2 lit inline 6, sedan, ZF 5-spd AT Montreal blue metallic, light- weight wheels w/toyo proxes tires, full size spare, leather interior, dual-zone cli- mate control, 12 disc. CD changer, sunroof, power everything. Rebuilt en- gine, w/ 24,000 miles, stock, 24 valve DOHC. All service records, well-docu- mented, 2-owner car. Fast and agile. A real must-drive! Call Reid at 850-865- 1987. tfp 7/26 TRAVEL TRAILERS/RV'S 2007 25 FT TRAVEL TRAILER CAMPER Make: Forest River Cherokee Life. Electronic tongue jack and sway control. 2 yrd transferable extendedwar- ranty, sleeps six. Only used twice. MSRP $21,675. Asking $14,500. Phone 850- 836-5152'or 850-326-4668 4tp 9/13-10/ 4 PETS/PET SUPPLIES COCKATIEL, cage, playset, and acces- sories. Must be familiar with birds and have lots of time to give attention. $60. 836-4321. 2tp 9/13-9/20 RESCUED GUINEA PIGS-Must have proper knowledge of care and proof of C&C cage before adoption. for cage de- tails. $25 each. 836-4321.2tp 9/13-9/20 BOATS & BOAT SUPPLIES HEAVY EQUIPMENT 2004 JOHN DEERE 310SG backhoe. Low hours. Serviced. 2 bucket 18" & 24"." * Flat Roofs Shingle Roofs * Metal Roofs Leaks ti* m A ~ am $37,400. 892-0503. itc 9/6 15wds 98 CROSLEY- 12-ton. Tag-along equip- ment trailer. 8 new Good Year tires. New boards. All lights work. Very good condi- tion. $5000 firm. 892-0503. ltc 9/6 PACKAGE DEAL ONLY. 04 Backhoe. 98 Trailer and 98 international dump. $72,400. 892-0503. 1tc 9/6 SERVICES CHILD CARE in my home. Birth to 4 years. FT & PT. References available. 305-6882. ltp 9/13 WILL DO IRONING in my home. Excel- lent work, reasonable rates. Call 892- 0453 or 974-7037. 2tp 9/13-9/20 I AM A CNA-and I would like to sit with your elderly loved ones or children-2 years old or under -in your home. 892- 5744. 2tp 9/6-9/13 HANDYMAN SERVICE-Home repairs. Tile work -Kitchen and bathroom floors and patios. Excellent references. Carlan Const. LLC. 850-249-0075/850-819- 4351. 4tp 8/30-9/20 HOME IMPROVEMENT SPECIALIST. 20 years experience. Reasonable rates (850) 333-1966. tfc 8/23 CONCRETE BY CHARLES: Remove, replace, repair concrete, stamped con- crete, stenciled concrete, acid staining Ihe I, .-.'".,hl. t.ilo overlays, retaining walls. 22 years expe- rience. Free estimates. 334-477-6078, 850-305-1957. 6tp 8/16-9/20 JERRY'S HANDYMAN SERVICE plumb- ing, painting, cleaning, yard work. No job too small. Free estimates. 850-951-0245. 8tp 7/26-9/13 PREMIUM LAWN SERVICES-(850) 419- 9164 (cell) 1 time or every time, mow, cut, edge, blow. County-wide. 2tp-9/6-9/13. "BIG C"TREE & STUMP REMOVAL. Free estimates. 850-836-4985. 24tp 7/ 19-?? 9/6-9/27 YARD SALE 8 am -12 pm. Plants, clothing, glassware, gold & silver jewelry, Hwy. 90 West to Laird Rd. at Mossy Head. 4 miles north to 5177 Richardson Road. 305-8319. ltp NOW ACCEPTING APPLICATIONS FOR 1, 2 & 3 BR APTS. AT HERITAGE & QUAIL RUN APT., 315 S. 19TH ST., DEFUNIAK SPGS. GOVERNMENT ASSISTANCE IF QUALIFIED. S CALL 892-5232/TDD 771 EQUAL HOUSING OPPORTUNITY i SPECIALIZING IN 6" SEAMLESS GUTTERS We Will BEAT COMMERCIAL~-.RESIDENTIAL Any LICENSED INSURED Competitor's Written CALL PAUL Estimate On 6"Gutters Phone (850) 259-9093 Fax (850) 835-4859 PO Box 992' Freeport, FL 32439 ilum i, ui LIP Best . Prices. "*I, ' 334-858-6050 De....liver 334-858-6051(faxi ailable NUE IAl 413111 It i 14I f 1 11I11111 S11ULU dli [FIU"i 11 ASK ABOUT OUR POLE BARN KITS Most Orders installation Available Filled In 2-3 Days -- -.... LIN SOME AREAUSI . * Gutters * Repairs When it comes to rootin ... BARN KITS *j Southern nLINC. Deck Kits Available 8'x10' $259 6 1xR' U79 S-- -. A -.s V A0 P1 7 .........M F 8 am 5 pm Sat. 8 am Noon 12'x16' $579 Cross Ties Fence Posts Windows Doors Fluorescent Light Fixtures Gates & Fence Wire Power Poles New Hardware. Electrical & Plumbing Supplies Laminate Flooring .99W SF* 12"xl16' Lap Siding $8.99 Business & Residential Installations & Prewire Ne-wlel Communkiations, LLC Voice & ta Busines Sstem (850) 892-2934 All Major Brands! Local Phone Service Cat 5 Cabeling Fiberoptics Voicemail [ Sales, Lease & Repair af Authorized Shipping Outlet NEW-TEL Communications (850) 892-2934 23 South 7th Street 1-800-827-2934 DeFuniak Springs, FL Fax: (850) 892-6357 32435 E-Mail: newtelcomnm@panhiandle.rr.com Serving NWFlorida & South Alabama since 1983 HALLMARK PORTABLE BUILDINGS Factory DI-rect Prices Easy Patjmevts (850) 836-4545 or 836-4455 Hwy. 90 Ponce de Leon, FL r ~ e I THE DEFUNIAK SPRINGS HERALD THURSDAY, SEPTEMBER 13, 2007 PAGE 5-C w EADE~ PAGE 6-C 9/6 YARD SALE SAT. SEPTEMBER 8.6 am - till. Proceeds benefit the American Heart Association. One man' junk is another man's treasure. Help the employee of the Clerk of Court and Tax Collector's office raise money for the American Heart As- sociation. Come find a treasure among our yard sale goods. The American Heart Association will hold their annual Heart's Walk on Saturday, September 29th. *8 am at OWC-Niceville. The pub- lic is encourage to donate to the yard sale. Contact Crystal Sconiers at 892- 8115 or Kara Stallings 892-8121. YARD SALE-CHRISTIAN LIFE VIL- LAGE. Faith Ave. DFS. Sept. 14-15. 8 am- 5 pm. Hurry B-4 it's gone. Furniture, Auto parts, building materials, electrical supplies, power tools, 892-6280 leave message. No calls on sale days. 1tp 9/6 BIG-HUGE-GIGANTIC YARD SALE. 464 Pinewood Drive. Ten Lakes Estates. (Hwy 83N) Fri. 7:30 a.m 4:30 p.m. & Sat. 7:30 a.m. 12:30 p.m. Flea Market Close Out.-Just in time to start Christmas Shopping. Lots of new items-loads of jew- elry (watches, bracelets, rings)- Designer Inspired Handbags (new) -Furniture- knives, swords, mens & women's plus size clothes. 859-2121. We'll be looking for you. 1tp 9/13 MOVING/4 FAMILY vehicles, furniture, clothes -newborn to 6T, girls and boys. Adult, mens, women, juniors, and some maternity. Newborn to children toys, books, and a whole lot of other stuff. 176 Juniper Lake Road, just off of Walton Rd. Itp 9/6 YARD SALE-Sat. 7-12 a.m at 6361 County Hwy. 1087, power tools, fans, video tapes, craft supplies, clothes and much more. Take 90 W to 1087 then right for 6.5 miles. It's worth the drive. Cancel if rain. 834-5317. ltp 9/13 THE DEFUNIAK SPRINGS HERALD THURSDAY, SEPTEMBER 13, 2007 YARD SALE: 9/15/07 Baby items, clothes, furniture, household, handcrafted items, Take Hwy. 83 North, to Hwy.185, Turn right, follow signs. 7 until. ltp 9/13 YARD SALE Sept. 14 & 15. 25th & Lin- coln Ave. All kinds of things 8 until 4 of rain next week. 1tp 9/13 ---- HUGE 2 FAMILY YARD SALE. House- hold furniture, including lamps, tables, dishes. cookware, floral arrangements, art, mirrors, seasonal decor. clothing-in- fant to adult, and jewelry. Saturday, 8:00 am 12. noon. 8783 State Hwy. 83, Glen- dale 8 miles from DeFuniak Springs. Watch for signs. PERSONAL ROOM FOR RENT ROOM FOR RENT in Freeport. (850)642-1477. 2tp 9/6-9/13 RENT STORAGE WAREHOUSE FOR RENT. 1,000 sq. ft. by month or lease. In DeFu- niak Spgs. Call 850-496-5043. tfc 8/30 PAXTON 3BD/1BA HOUSE, Range, refridg., ceil- ing fans & storage. $625. Month/deposit/ lease. No smoking/pets. Call 834-5187. tfc 9/6 ' 2BD/1BA TRAILER FOR RENT-Electric & dish network furnished. $500 mo. Lo- cated in Mossy Head. 951-0805/978- 8260. 2tp 9/13-9/20 LAKE JUNIPER WATERFRONT 3br/2ba, large kitchen, quiet, wooded lot. $850 mo. & dep. No HUD/pets. 892-4740/ 259-1720. ltc 9/13 NEAR LAKE YARD, BAY AVE. Spacious 2br/2ba, Lr, Dr, Den, hardwood floors. large yard. No HUD/Pets. 892-4740 or 259-1720. ltc 9/13 16x80 MOBILE HOME for rent. 3br/2 full baths. No pets. Prefer non-smokers. For more infor call 892-7357. 3tp 9/13-9/27 3BD/2BA CENTRAL H/A Large utility room plus storage shed-413 Van Buren Ave. $750 a month plus $600 security. No pets/No HUD security. No pets No HUD. Call 892-3750. ltp 9/13 1 BD APT. for rent. $625/mnth $400 sec. deposit includes lights-water-cable. No pets. No HUD. 533-1250 for appointment. 1tp 9/13 FOR RENT-3bd/2ba mobile home. Front & back deck. $600 & deposit. No pets of any kind. (850-419-3599) 829-2984. 2tp, 9/13-9/20 3BD/1 BA HOUSE. 239 Fredrick Dr. $600 mo. $600 DD. No pets. 892-7012/892- 3394. tfc 9/13 NEW 2BD/2BA Juniper Lake Home on 1 acre, all appliances, includes W/D, CH/ A, Storage shed, No smoking or Pets per- mitted. Lawn Maint. Include. Available 9/ 15/07. First/sd. $950 monthly. Ref. req'd 1 yr lease. (850)233-6280/850-960-6029. 4tc 9/6-9/27-34wds DELUXE APARTMENT 2br/2ba Cen. H/ A, carpeted, kitchen w/stove, frig/freezer/ icemaker and dishwasher. 11000 sq. ft. Large LR/DR combo plus large 10x20 covered deck over looking court yard. Reserved parking. No children, no pets. Must be seen to be appreciated. 892- 0157. tfc 8/30-39wds VIEW LAKE STANLEY 3bd/3ba, 2,200 spacious open floorplan, many updates. Must see $1,200/mnth, plus deposit, no smoking/pets/lease option available. 850- 502-1525. 4tp 9/6-9/27 1BD APT. Includes cable & water. $300 deposit. Lease required. $550 month. Call 892-3221.4tc 8/30-9/27 2BD/1.5 BA MOBILE HOME. Nice clean sits on 1/2 acre. Near Lake Holley. Total electric. 825-F Martin Rd. $550 mo & $550 sd. No pets. 892-2979/978-0414. 3tc 8/30-9/13 MOSSY HEAD-New 4bd/2ba-one car garage. Sale $149,500. Rent. $950/mnth. 496-5022. 3tp 8/30-9/13 3BD/2BA DOUBLEWIDE MH. Clean no pets. $450/dep $650/mnth. 892-2387.tfc 9/6 2BD/2BA furnished and unfurnished mo- bile homes on beautiful sites. Quiet coun- try setting. Call 850-859-0188 or 239- 682-2094. tfc 9/6 FOR RENT: Two Bedroom/One Bath Mo- bile Home. Mossy Head area. HUD Wel- come. $550 per month plus $550 secu- rity deposit. 850-865-1062.2tp 9/13-9/20 COMPLETELY FURNISHED and unfur- nished Mobile Home in secluded loca- tion. 892-7424 or 865-0417. 1tc 9/13 OFFICE SPACE &Warehouse Space for rent in DeFuniak Springs. Call Iron Horse Realty. 951-2703. tfc 8/16 3BD/2BATH ON 5 ACRES. Dogs and horse OK. $950. dd $950 mo. 204 Rogers Rd. DeFuniak-951-0447. 4tp,8/30-9/20 LOTS AND ACREAGE Serving Walton County for more than 20 years 3A 0 Licensed in Florida & Alabama. S<* Alice Forrester & Mickey I [I \ L 1,TY r Whitaker, Brokers. Seagrove Beach: 850-231-5030 Blue Mountain Bch: 850-622-2735 Freeport: 850-835-1331 PARK.K- -AVENUE I, t. \ t. .. >:, '. ,, +r 1 I: AU i The Proven Professionals .i Naylor it AsftcEREALTY & Associates Inc. .acnael arley Sales Associate Office: (850) 951-2488 oll- (R.m 9[ 2-6.478 776 Baldwin Avenue Suite B DeFuniak Springs, FL 32435 wI\n hrn moenarlnr conm RENTAL IN DEFUNIAK SPRINGS. FL! SSPACIOUS 3 BR/2 BA, w/carport, lakefront and quiet subdivision. $900/mo., 1st/last mo. + dd required available 9/15/07. F) COMFORTABLE 2 B/1-1/2 BA w/porch lake- side. 1064 SF. $725/mo., 1st/last mo. + dd required available NOW! 2 STORY 3 B/3 BA, w/porches on acre wooded lot. $925/mo, 1st/last mo. + dd F required available 10/1/07. - (850) 892-3334 DAYS - (850) 830-8888 EVENINGS ROCK SOLID IN REAL ESTATE '- ,,-- 5-"''- , 1 "." K p n I -. 33- .* . NEW ON THE MARKET (R-1583) Remodeled 3 BR/2 BA home with over 1300 SF split floor plan new laminate floors, fresh paint. Chain link fence, corner lot, close to lake yard. Looks and feels brand new. $129,900 NEW LISTING - MOSSY HEAD (R-1584) 3 BR/2 BA home move in ready. Freshly painted interior, new CA/H this year, fire- place, appliances included, garage, patio and fenced back yard. $139,000 GREAT BUY (R-1552) Great like new 3 BR/2 BA home located just minutes from town. Home offers split floor plan, open living room with corner fireplace, dining area plus large master suite. Only $149,900 NEW LISTING (R-1581) Get away from it all, own your own per- sonal estate! 40 acres with large home and paved drive. $589,900 PAXTON- PRICE REDUCED! (R-1407) Motivated seller! 3 BR/2 BA home on large lot in the City of Paxton, close to school, beautifully landscaped yard with several fruit trees. Fenced yard. Make offer! $88,500 :' '- *" "" : .1 .. . LAUREL HILL ACREAGE (R-1520) 21 acres just north of Laurel Hill - adjoins proposed S/D Harmony Village. Includes pond and some pasture remaining wooded. $417,900 Sally R. Merrifield Broker, Owner 850-865-0640 Terry J. Pilcher Broker, Owner 850-865-2541 74 LAKE ROSEMARY CT (R-1357) Seller will assist with closing costs. 3 BR/2 BA, 2003 doublewide manufactured home. Family room with fireplace, 8x12 front deck. Best price available. $72,900 271 US Hwy 20 E, Suite D Freeport, FL 32439 Phone (850) 880-6109 Website: prudentialmprealty.com Licensed in Florida & Alabama Christa Merrifield-Mitchell Realtor, Owner 850-978-2973. Butch Lawrence 850-259-9554 Ronnie Jones 850-585-8204 Dawne Miller 850-225-7710 Debbie Jones 850-865-2541 Luke Langlori 850-685-5890 Jack Cole Kevin Hulion Elizabeth Brannon Leanne Lloyd Amy Wells Bonnie Nick Judy Keith Tony Thompson Karen Boyd 850-585-6707 850-419-1870 850-585-8016 850-428-2882 850-685-9265 850-865-4597 850-499-2622 850-259-5422 850-322-1082 / 682 Baldwin Avenue DeFuniak Springs, FL 32435 Phone (850) 892-9650 Toll Free 1-888-892-9658 Fax 850-892-9651 Merufed & Pentcheial Menifield & Pilcher Realty SELLING WALTON COUNTY """ %,t!ll. koov) c U.-V-t f L) VVVVVV.L) I uttv I I c3y I ul.%,U If 1 M.MMU71; A .i~ I i- I I IU T-C~---PP~O- IBI C-~ g -DI 111 -~- ----- I THE DEFUNIAK SPRINGS HERALD THURSDAY, SEPTEMBER 13, 2007. 1. FLORALA, AL Reduced! Appraised price $68,500 for 3/1 home with a 4th bedroom or office, newley remodeled on' large corner lot. 2. $56,500 for 5.9 acres zoned rural vil- lage, 2 homes per acre as per appraiser, King Lake fishing privileges as per owner. FOR SALE BY BUILDER 3 bedroom/2bath, 1,071 sq. ft. house just 7 miles from DeFuniak Springs. Tile in laundry room, dinign room, kitchen and both bathrooms. Upgraded carpet through out remainder of house. Up- graded lighting package with ceiling fans in living room and all bedrooms. Glass tops range and microwave hood fans in- cluded. House on a quarter acre lot on a county maintained roat. Builders warranty with home. Asking $129,900. Closing cost paid by builder. Contact 850-537-9292 or 850-978-0438. 79wds 3BD/2BA-Manufactured Home. 1,440 sq. ft. w/fireplace. Beautifully landscaped with double carport/front and rear decks. exterior completely renovated with vinyl siding, windows and new roof. Interior completely renovated with all new appli- ances, including central heat and air, cus- tom ceramic bathrooms, base, trims, doors.and paint with new carpet. (Only pre-qualified applicants need apply.) $129,995. (850)233-6280. 850-960- 6029. 52wds 4tc 9/6-9/27 LAKE JUNIPER WATERFRONT-3Br/ 2Ba, large kitchen, quiet, wooded lot, $850 mo & dep. No HUD/pets. 892-4740 or 259-1720. ltc 9/13* NEAR LAKE YARD, BAYAVE. Spacious 2br/2ba, LR, DR, den, hardwood floor, large yard, No Hud/pets. 892-4740 or 259-1720. ltc 9/13 NEW BRICK HOME Custom 3 Bdr/2.5 Ba. DeFuniak Springs area. $249,900/Offers considered. Ph. 758-9096 or 951-0444. Homes by Germain, Inc. tfc 8/16 2BD/2BA CABIN in Gatlinburg. Contact Deborah Korlin (865) 429-2111 MLS#131458 to view cabin Century21lmvp.com 4tp 9/13-10/4 FOR SALE BY OWNER DBL wide mo- bile home-code 3 on 1/2 acre. 3bd/2ba - Very nice. $92,000 with $3,000 discount (you choose your carpet) 892-6827. 3tc 9/13-9/27 BEAUTIFUL KING LAKE side home at 906 Paradise Island Dr. 3/2.5 garage- dock boat ramps. Come see it. $375K. 892-6048. tfc 9/6 WARNING! If you're selling your home, don't list with a real estate agent until you read this special free report. It reveals the 11 hidden mistakes most home sellers make and how to avoid them. This report could save you thousands of dollars! For free recorded information and your Free copy call 1-800-585-1459 ext 4006 any- time 24 hrs. 58wds 2tc 9/6-9/13 SOUTH WALTON-C-20A Seacrest Bch. Fully furnished w/inground pool. $1,600 monthly. Includes all utilities, cable & phone. No pets. Available now thru March 8. 850-892-5080. 2tp 9/13-9/20 1 ACRE IN BLUE MOUNTAIN on 83 near 30A intersection. Zoned 12 units per acre. High growth area. Call Linda Coiro at Markham Real Estate @ 850-543-4604. tfc-2/14 I BUY HOUSES, Lot$ and Acreage. No HA$$LE$. Quick closing$ Call now 892- 2284. tfc 3/10 EMPLOYMENT LABORER Unloading rock from rail cars & general maintenance. Valid DL req'd. EOE/DFWP. 104 Lees Place, De- Funiak Springs. 17wds 2tc 9/13-9/20 CONVENIENT STORE CASHIER Far above average salary. Apply in Petro Food Market. Located at 1805 E Nelson, 892-7620. tfc 2/8 AUTO MECHANIC Auto mechanic needed. Apply at Firestone, 618 U.S. Hwy. 90 E, DeFuniak Springs, FL. 892-3613. tfc6/7 & Florala SERVICING MECHANIC'S helper/clean up man. mentally agile person with good mechanical aptitude capable of upgrad- ing with training and experience to assist truck servicing. $7-$9/hr. 834-2974. 2tc 9/13-9/20 AMERIGAS PROPANE BULK DRIVER needed. Must have Class ,B, CDL, Hazmat, & tankers endorsement, benefits, well paid. Apply in person. 87 US Hwy. 331 N. DeFuniak Springs, 2tc 9/13-9/20 DRIVER TRAINEES NEEDED NOW! No CDL? No problem! Earn up to $900/wk. Home weekends with TMC. Company endorsed CDLTraining. 1-866-280-5309. 4tc 9/6-9/27 CONSTRUCTION GC, SRB, Experi- enced in carpentry and maintenance work, dependable, drug free, self moti- vated. 699-1024. 2tc 9/13-9/20 NEEDED: CDL Driver's, CAD Techni- cian, mechanics and surveyors. Top pay. Full benefits. Apply at B&H Contract- ing, Inc. 2408 Caton Road. Florala, AL. 36442. 334-858-6666. tfc 10/19 ESE TEACHER needed immediately, DJJ Facility in Ponce de Leon, e-mail re- sumes to frost@hdsp.org or call Phil Frost (850)548-5524. 2tc 9/13-920. 45wds 4tc 8/9- 8/30 Florala -9/6/-927 DDC INC is accepting applications for concrete laborers. Call 892-6780 for in- formation. 4tp. 9/13-10/4 INDUSTRIAL MANUFACTURING MANAGERS * Manage 3 shift operation * Responsibility for personnel and team success * JIT, Kaizen, Lean manufacturing * QC Mechanical inspectors * Knowledge in employee development and training * Leadership ability * CNC Machining background Great career opportunity, compensation and benefits package. Send Resume to: P.O. Box 5466, Niceville, FL 32578. Fax: 850-682-3543. ltc 9/6 49wds THE CITY OF DEFUNIAK SPRINGS is accepting applications for one (1) Ac- counts Representative in the DeFuniak Springs Utility Billing Department. The main .duties of this job are waiting on customers, enter utility payments, pro- duce final utility bills, and answer the phone. Person is to provide general as- sistance with utility billing as well as other office duties. High School Diploma required with profi- ciency in computer skills and operation of office equipment. Applicant should demonstrate the ability to perform arith- metic computations accurately and quickly as well as effectively communi- cate both verbally and in writing. Applications may be obtained at the City Manager's Office, City Hall, 71 US Hwy. 90 West, DeFuniak Springs, FL 32435 Applications will be received during regu- lar office hours until position is filled. The City of DeFuniak Springs is an Equal Opportunity/Affirmative Action/ADA Em- ployer/Drug Free Work Place. 137wds 2tc 9/13-9/20 #PO 53856 THE CITY OF DEFUNIAK SPRINGS is now accepting applications for two (1) Police Officer in the DeFuniak Springs Police Department. Qualification for this position will include the following: Non-supervisory work in the protection of life and property through the enforcement of laws and ordinances. High School Diploma, one (1) year of experience in police work, and Certificate of Compliance asa Law Enforcement Officer with the state of Florida. Must have a valid Florida Drivers License. Applications may be obtained from the Administrative Assistant's office, 71 US Hwy 90 West, DeFuniak Springs, Florida 32433, or by calling (850) 892- 8500. Applications will be received during regular office hours, Monday through Sjohndanilow.com f1 \ for select north Walton listings A broker-associate of 30-A Realt SGOOD LOTS: 1/2 to 1+ acre 1KL .lM.TV 1 PRIME ACREAGE: 10 to 40+a( phone: 850-217-8104 Friday from 8:00 a.m. until 5:00 p.m. We will be taking applications until the job is filled. The City of DeFuniak Springs is an Equal Opportunity/Affirmative Action/ ADA Employer/Drug Free Workplace. 139wds 1tc 9/13 po #538050 IN THE CIRCUIT COURT OF THE FIRST JUDICIAL CIRCUIT, IN AND FOR WALTON COUNTY, FLORIDA CASE NO. 07-CA-000629 CECIL J. FLOYD and Estate of JAMES H. PRESCOTT, deceased, Plaintiffs, vs. LEON V. DEVOE and JEAN ANN DEVOE, Defendants. NOTICE OF ACTION TO: Defendants noted below, and all parties claiming interests by, through, under or against said party: Leon V. Devoe and Jean Ann Devoe 417 Hill Street Harrison, NJ 07029 YOU ARE .HEREBY NOTIFIED that an action has been filed to quiet tax title to property described in Wal- ton County official records, Book 2701, Page 2780, and described at LOT 48, BLK N, Juniper Lake Es- tates, Unit 6 of Oakwood Hills, OR 479-153, and that you are required to serve a copy of your written de- fenses, if any, to it on: David H. Milam, Esquire Dunlap, Toole, Shipman & Whitney, P.A. 1414 County Highway 283 South, Suite B Santa Rosa Beach, FL 32459 Attorneys for Plaintiffs, Cecil J. Floyd and Estate of James H. Prescott, deceased on or before September 28, 2007, and file the original with the clerk of this court at: Clerk, Walton County Walton County Courthouse P.O. Box 1260 DeFuniak Springs, FL 32435 before service on Plaintiffs, or im- mediately thereafter. If you fail to do so, a default may be entered against you for the relief demanded in the complaint. Copies of all court documents in this case, including orders, if any, are available at the office of the Clerk, Walton County Courthouse. You may review these documents upon re- quest. You must keep the Clerk of the County Court notified of your current address. Further papers in this law- suit will be mailed to the address on record at the clerk's office. One copy of this Notice of Action was mailed by regular United States mail to the Defendant at the follow- ing address and another will be pub- lished in a newspaper pursuant to Florida law. Leon V. Devoe and Jean Ann Devoe KING LAKE REALTY, INC. 43 LAIRD ROAD CRESTVIEW, FL 32539 2 Hwy. 393 Crestview $60,000 $600 Down & $600 Month 1/2 Acre Waterfront Lake Rosemary Ct $40,000 $400 Down & $400 Month 1/2 Acre Waterfront Lake Rosemary Ct $42,500 2 Acres in DeFuniak Springs $35,000 $350 Down & $350 Month $80,000 10 Acres North Walton County $800 Down & $800 Month 10 Acres Sunrise Rd $100,000 .. A S y c U A 1 JUBILEE UL E S Affordable homes built on your land. Call for Current Promotions (334) 678-8401 jubileebuilders.com 6885 US Hwy 231 South I Dothan, Alabama 36301 PARK-, -AVENUE Rt I \ I ~T. \T I. 1614 US Hwy 90 West DeFuniak Springs, Fl 32435 850-951-2019 Brandy Davis 850-401-4552 -. M.LS Now Hiring Licensed Agents for our Freeport Office! The benefit, tc. t ir.ig C. IJi.elol iear er Preshie Agent are $2,000 towards Advertising! Free Continuing Ed Classes! No Desk Fees! International Recognition! ~ Heavy Web Presence! Developer Associations! Heathcare through Coldwell Banker Business Advantage Program - Coldwell Banker Works and more... Freeport is Walton County's HUB! Get in on the ground floor and expand your business today! m 7s -^ ^lE-U ^ ^ Join Our Exceptional Real Estate Team Today! PRkT II' f 850.835.2470 i 1 1 I I I \ n IN coldwvvellankerpresticle.com (- C'ol to learn rnorei Acres n "i uuvu INVESTORS 712 ACRE POTENTIAL SUBDIVISION off Juniper Lake Rd., paved. road, city water available close to schools & shopping. $120,000 Large Acreage 90 up to 3000 Acres DeFunriak Springs, Mossy Head and Paxton **Prices starting from $4,500 per Acre** (Other properties available all Owner Financed!) Call today for information! Call Bonita Bryan for details (850) 892-2103 OR (800) 741-5253 SOpen Moi. -Fri. 9:00 a:m. until 4:30 p.m. Sat. By Appointment . The Proven Professionals Naylor REALTY & Assodats,. Inc.- 776 BALDWIN AVENUE (850) 951-2488 www brucenaylor.com ENSED IN FLORIDA & ALABA AGENTS Bruce Naylor Rachael Earley- Dale Co! non Sue Rushing Alex Alexander T lB iaM ^^- ^---- ------- REDUCED! Very attractive large lot in established S/D that is almost completely built but. The lot adjoins one of the largest common areas in the S/D. Natural vegetation surrounds this beautiful lot and only minutes from Topsail Hill State Park's sugar sand beaches. A great place to getaway! $189,000 A PLACE TO BEGIN Brand new quality built home in DFS. Home is 1000 SF and 3 BR/2 BA with no wasted space. Floor plan features an open kitchen/living room/dining area. Kitchen has custom cabinets, plenty of counter space with breakfast bar, and black Kenmore appliances. Great starter home. Must see to believe! $117,500 I -~ mf CLASSIC DeFUNIAK 3 BR/1.5 BA within walking distance to Lake DeFuniak. Refinished oak flooring. Updated kitchen. Oversized walk in shower. Plenty of large oak trees. Stove, refrigerator, washer and dryer all included in sale. Priced right and great location! $125,000 Just reduced! Seeing is believing! farmhouse. Totally remodeled. " New roof, new kitchen, new CH&A. Beautiful 200-300 year old live Oaks. PEACEFUL COUNTRY SETTING Just reduced! Seeing is believing! 8.8 acres in pasture. Woodframe farmhouse. Totally remodeled. New roof, new kitchen, new CH&A. Beautiful 200-300 year old live Oaks. Hurry!! Call today! $179,500 rIL. "..- ." 1 BEST BUYI Completely renovated white brick 1500 SF 2 BR/2 BA home close to DeFuniak Springs. Living & dining room feature high ceilings and laminated floors. Kitchen has stainless steel appliances & laundry has washer/dryer combo.. Both bedrooms are carpeted & the baths are tiled. Covered front porch and landscaped patio off of the carport. $185,000 CROSS CREEK SHORES Nice high and dry lot located in S/D in Freeport. Wooded and very close to the bay. This lot is priced to sell and ready for your new home. S/D has covenants and restrictions. $49,500 PAGE 7-C 417 Hill Street Harrison, NJ 07029 Dated this 16th day of August, 2007. Martha Ingle As Clerk of Court /s/ By: June D. Hartzog As Deputy Clerk (seal) 4tc: August 23, 30; September 6, 13, 2007 793G IN THE CIRCUIT COURT IN AND FOR WALTON COUNTY, FLORIDA CASE NO; 07-DR-327 IN RE: The Marriage of: AUDREY LORRAINE THOMPSON, Petitioner, TOMMY HOMER THOMPSON, Respondent. NOTICE OF ACTION FOR DISSOLUTION FOR MARRIAGE TO: Tommy Homer Thompson INCOME PRODUCING. 3BR/2BA SW manufactured home. Double garage w/efficiency apartment above. Two lots! Convenient to boat launch. $152,500. FISHING RETREAT. 2BR/iBA manufactured home, city water, 2 out buildings. Walking distance to Launching ramp on Black Creek.' $155,000. SANTA ROSA BEACH. Nice cleared, level lot, ready to build on. In a fast growing area,, close to schools, shopping, and the Beautiful Beaches, of South Walton. $75,000. FREEPORT. Unrestricted wooded lot, city water available, walking distance to Bay. $6o,ooo. WATERVIEW COVE. 1,713 SF 3/2 brick home on 2 lots. Reduced. $296,500. DEFUNIAK SPRINGS. (1 UNDER CONTRACT, 3 REMAIN) Four, 1+/- ac, wooded lots, city water available. $21,5oo Each or discount if you buy remaining 3. CANAL FRONT. 129' water- front on nice canal that leads to Black Creek. Lot has been cleared, city water tap paid, sep- tic tank, electric and walkway to canal. Ready for'that dream home. $155,ooo. (850) 835-4153 To view all listings go to. - We Can SELL Your Property! WMA le om Hecker I "I BRING YOUR ANTIQUES! 'Beautiful updated historic home. 2318 SF with 3 BR/3'/2 BA! Corner lot. Wrap-around front porch. Open floor plan. Master BR on main. Huge kitchen, plus office, original fireplace mantle & woodwork. Two blocks to the lakeyard. Motivated Seller! Call today! $209,500 GREA I NVESME GREAT INVESTMENT Nice doublewide mobile home on 1.46 acres in the heart of DeFuniak, just a few blocks from the lakeyard. Property consists of 9 city lots; which can be divided into 5 building lots. Mobile has 3 BR/2 BA, newer metal roof, swimming pool, gazebo, and garage/workshop. Lots of potential & motivated seller! Bring us an offer! $129,500 t. , JUST REDUCED! Reasonably priced lot between Santa Rosa Beach and Sandestin. Minutes from Sacred Heart Hospital. Back of property adjoins peaceful State Forest. Numerous golf courses, Topsail Hill State Park, and gulf beaches just minutes away. $89,000 I___ ___ ___ ___ ___ ___ _ Analysis LIC E Scott Bran .I Homes Pyk! Road.413R/213A home on 1.5 acres with shed, pole bam& garage ... SI 2:7,COO DM Lane.313R/213A double wide on 10 acres, fenced pasture, stream .... $d %-7,000 Stagecoach Road.3i3A/2BA manufactured home on 4 acres creek ........ $2319,500 Ten Lake Drive.313R/313A brick waler vicav home, fenced yard ............ $199,5001 Pinewooid Drive.Double wide on completely fenced 13 acres with stable.,T2wom The Pine-s.new home subdivision brick homes starting at .................... A 34,900 ;:.I - 6.-A -0 I 20) (t*1 Kf\fnn $1500 Down 1500UU IVlontn I J-1-TA, 7' PAGE 8-C Unknown Address You are notified that an action has been filed against you and that you are required to serve a copy of your written defenses, if any, on Ryan Mynard, Attorney at Law, 1031 Hwy. 90 West, Suite 3, DeFuniak Springs, Florida 32433, on or before October 21, 2007, and file the original with the Walton County Clerk's Office, Post Office Box 1260, DeFuniak Springs, Florida 32435, before service on the Petitioner or immediately thereafter. If you fail to do so, a default may be entered against you for the re- lief demanded. Future papers in this lawsuit will be mailed to the address on record at the clerk's office. Warning: Rule 12.285, Florida Family Law Rules of Procedure, re- quires certain automatic disclo- sure of documents and informa- tion. Failure to comply can result in sanctions, including dismissal or striking of pleadings. Dated: August 15, 2007 Clerk of Circuit Court /s/ By: Renee Day (seal) 4tc: August 23, 30; September 6, 13, 2007 801G IN THE CIRCUIT COURT OF THE FIRST JUDICIAL CIRCUIT, IN AND FOR WALTON COUNTY, FLORIDA CASE NO.: 07000443DR Rosa Sanchez, Petitioner and Hector Allusson Respondent. NOTICE OF ACTION FOR DISSOLUTION OF MARRIAGE TO: (Name of Respondent) APPROX. 5 BEAUTIFUL ACRES $45,000.00, fully wooded, large timber, spring head. A special home site to build a walk out basement and storm shelter, and only 30 minutes to Eglin AFB. Call 850-859-2888 TFC:5-10 Hector Allusson (Respondent's last known address) 1160 Ocean Ave. Apt. 1 (City, State, Zip) Brooklyn, NY 11230 YOU ARE NOTIFIED that an action has been filed against you and that you are required to serve a copy of your written defenses, if any, to it on (name of Petitioner) Rosa Sanchez, whose address is 208 Grand Island Blvd. Panama City Beach, FL 32417 on or before (date) September 21, 2007, and file the original with the clerk of this Court at (clerk's address) Wal- ton County Courthouse, 571 Hwy. 90E, DeFuniak Springs, FL, 32433,, before service on Petitioner or imme- diately- - 1614 US Hwy 90 West __ DeFuniak Springs, Fl 32435 850-951-2019 Philip A. Spires 850-305-2186 #1 in North Walton Real Estate Sales # of sales was taken from the Emerald Coast Board of Realtors for the N. Walton County Area. When Results Matter ! caii A WALTON I^^850-951-4899^ I Associated with KELLER WILLIAMS RE- An Independent member Broker Sour850-951-4899 Stop by our office for FREE brochure of Listings in North Walton County Area. 14 South 9th Street, DeFuniak Springs, FL 32435 LOCATED AT THE INTERSECTION OF HWY 90 & 83 McKEE HOMES INc. Registered Residential Contractor Office: 850-892-4413 Lic. #RR0067175 PARK- -AVENUE .. \ ....... A T I. : . ,"a, .---, -Cave he in Freeport.- n,. .. oo90 K AlS -- C- -- ,I-- IL I i --- IT I I -- I - 01. Oft THE DEFUNIAK SPRINGS HERALD THURSDAY, SEPTEMBER 13, 2007 quires certain automatic disclosure of documents and information. Fail- ure to comply can result in sanc- tions, including dismissal or strik- Ing of pleadings. Dated: August 13, 2007. CLERK OF THE CIRCUIT COURT /s/ By: Tina Potts Deputy Clerk (seal) 4tpd: August 23, 30; September 6, 13, 2007 802G PUBLIC HEARING NOTICE The Walton County Code En- forcement Board will hold their regu- lar meeting on September 20, 2007, beginning at 6:00 p.m. to be held at the DeFuniak Springs Courthouse. The following violations of the Wal- ton County Ordinance 97-28, Land Development Code will be heard... 01. Arthur Blackwell and Robin Blackwell, 319 DeFuniak Street, Santa Rosa Beach, Florida 32459, regarding 11.04.02 (A) regarding Building Permits on parcel identifica- tion number 11-4N-21-38000-001- 0080. 02. Willis, Krenkel, Maclin & Black Properties, LLC, Post Office Box 1566, Santa Rosa Beach, Florida 32459 regarding 12.03.05 (D) regard- ing Stop Work Orders, Effect of fail- ure to Comply With Directives of Stop Work Order on parcel identification numbers 02-4N-21-38000-001-0000, 02-4N-21-38000-001-0010, 02-4N- 21-38000-001-0011, 03-4N-21- 38000-001-0000, 03-4N-21-38000- 001-0020, 03-4N-21-38000-001- 0030, 03-4N-21-38000-001-0040, 04-4N-21-38000-001-0000, 04-4N- 21-38000-001-0020, 05-4N-21- 38000-002-0000, 09-4N-21-38000- 001-0000, 10-4N-21-38000-001- 0000, 10-4N-21-38000-001-0010, 10-4N-21-38000-001-0020, 11-4N- 21-38000-001-0000, 11-4N-21- 38000-001-0020, 14-4N-21-38000- 002-0000, 15-4N-21-38000-001 - 0000, 15-4N-21-38000-001-0010, 33-5N-21-39000-001-0000, 34-5N- 21-39000-001-0000, 35-5N-21- 39000-003-0000, 35-5N-21-39000- 003-0020.: August 30; September 6, 13, 20, 2007 824G TDA# 07TX1972 NOTICE OF APPLICATION FOR TAX DEED NOTICE IS HEREBY GIVEN, that ALAN J. ARMSTRONG & KAY K. ARMSTRONG the holder of the fol- lowing certificate has filed said certifi- cate for a tax deed to be issued thereon. The certificate number and year of issuance, the description of the property, and the names in which it was assessed are as follows: Certificate No. 593 Year of Issuance 2005 Description of Property TOWN OF GLENDALE LOT 100 OR 992-311 Parcel ID No. 11-4N-19-20010-00- 1000 Base Bid $ 1.282.26 Name in which assessed: JAMES LLOYD MILLER Said property being in the County of WALTON, State of Florida. Unless such certificate shall be re- deemed according to law the property described in such certificate shall be sold to the highest bidder at the court- house door on the 9th day of OCTO- BER, 2007 at 11:00 A.M. Dated this 24th day of AUGUST,. 2007. MARTHA INGLE Clerk of Circuit Court Walton County, Florida By: Kathy Douglass Deputy Clerk (seal) 4tc: August 30; September 6, 13, 20, 2007 829G PUBLIC HEARING NOTICE The Walton County Technical Re- view Committee will hold a public hearing on Wednesday, September 19, 2007 at 8:30 a.m. at the Coastal Branch Library in Santa Rosa Beach, FL 32459. **PLEASE NOTE LOCATION CHANGE FOR THIS MEETING ONLY. The following items are scheduled for review and action: MARGARET (parcel number 34-2S-21-42000-046- JACKSON/ 0000.) SHARON RUSSELL LOT SPLIT - Project number 07-002-00027. This is a lot split application requesting to split a 6.28 acre lot with a future land use of general agriculture. The property is located at 220 Tri-Rose Way, approxi- mately 0.5 miles west of Highway 83 (parcel number 34-4N-19-20000-007- 0010.) CHRISTOPHER & JACQUE ENCARDES LOT SPLIT Project number 07-002-00028. This is a lot split application requesting to split a 6.94 acre lot with a future land use of general agriculture. The property is lo- cated at 74 Popcorn Avenue (parcel number 27-4N-21-38000-042-0000.) SARE HANS LOT SPLIT Project number 07-002-00029. This is a lot split application submitted by Moore- Bass Consulting, Inc., requesting to split a 1.26 acre lot with a future land use of NPA/infill. The property is lo- cated at 320 Walton Way (parcel num- ber 36-3S-18-16100-000-0851.) ENCLAVE AT INLET BEACH PLAT Project number 07-003-00017. This is a preliminary plat application submitted by Michael Ramsey, con- sisting of a 9 townhome subdivision on 1.6 +/- acres with a future land use of NPA/infill. The site is located at 32 East Park Avenue (36-3S-18-16100- 000-2190.) ENCLAVE AT INLET BEACH LTM Project number 07-013-00030. This is a less-than-minor application sub- mitted by Enclave at Inlet Beach LLC, requesting an amendment to an ex- isting development order for the pur- pose of preservation restoration; The site is located at 32 East ParkAvenue, units 601 and 601 (parcel number 36- 3S-18-16100-000-2190.) SUSAN RUSHING PETITION FOR ABANDONMENT Project number 07-008-00007. This is an abandon- ment application submitted by Scott Spies, requesting to abandon a por- tion of Joseph Avenue and a portion of Crestview Street in the TOWN OF VILLATASSO plat, as recorded at Plat Book 3, Page 28 in the Public Records of Walton County, Florida. The site is located in the Villa Tasso Subdivision (adjacent to parcel numbers 30-1S- 21-41100-040-0070,30-1 S-21-41100- 038-0010, and 30-1 S-21-41100-040'- 0060.) BAYOU VIEW SUBDIVISION PLAT Project 07-003-00016. This is a preliminary plat application submit- ted by Jenkins, Stanford and Associ- ates, consisting of a 4 lot single fam- ily subdivision on 1.6 +/- acres with a future land use of NPA/infill. The site is located off of East Mack Bayou Drive, south and west of Shelter Cove Drive (24-2S-21-42000-011-0000.) EMERALD COVE CONCEPTUAL PUD Project number 07-001-00064. This is a major development order ap- plication submitted by JSA, Inc., con- sisting of 39 single family units on 19.78 acres with a future land use of CR 2:1. The project is located on the east side of Old Blue Mountain Road, north of U.S. 98 (parcel number 36- 2S-20-33290-000-0010.) TRI-STATE CHRISTIAN FELLOW- SHIP CAMP Project number 07-00 1- 00061. This is a major development order application submitted by Johnny Arnold, requesting to add new build- ings to 11,842 existing square feet. The request consists of a 2,400 square foot dining hall, 6 cabins at 700 square feet each, a 2,000 square foot Mini-Retreat Center, an 18,000 square foot Multi-Purpose building, a 32,400 square foot Adult Retreat Center, a 2,000 square foot Welcome Center, 2 residential staff homes at 3,200 square feet each, and a 2,162 square foot staff building, for a total of 69,562 added square footage. This will give the camp 81,404 total square feet on 43.7 acres with a future land use of rural village. The site is located at 100 Christian Camp Road (parcel number 19-3N-19-19000-006-0010.) GREDAN ACRE SUBDIVISION - Project number 07-001-00059. This is a minor development order applica- tion submitted by Gredan Develop- ment, LLC, consisting of 7 single fam- ily units on 80 acres with a future land use of general agriculture. The project is located on West Shady Lane, ap- proximately 5.5 miles west of Highway 85 (parcel number 06-5N-21-39000- 013-0000.) OSPREY POINTE Project nurrm- ber 07-001-00066. This is a minor de- velopment order application submit- ted by Connelly & Wicker, Inc., con- sisting of 93 multi-family units in 3 buildings on 7.81 acres with a future land use of Coastal Center. The project is located on Heron Drive, ap- proximately 0.10 mile east of the Sandestin main gate traffic circle (par- cel number 26-2S-21-42100-000- 0010.) TANG-O-MAR LTM WALL - Project number 07-013-00031. This is a less-than-minor application submit- ted by Patrick O'Neill, requesting ap- proval for an 8' block wall for privacy purposes along the property line be- tween Holiday Travel Park and Tang- O-Mar subdivision. The site is located 9.0 miles west of the US 98 & US 331 intersection on Tang-O-Mar Drive BAYTOWN AVE. IMPROVE- MENTS Project number 07-013- 00029. This is a less-than-minor ap- plication submitted by MacTec Engi- neering, requesting to create an ad- ditional left turn lane and add a round- about at the intersection of Baytowne Avenue and Blue Heron Road. The site is located on Baytowne Avenue (parcel number 26-2S-21-42300-000- 0010.)59G NOTICE OF PUBLIC HEARING The Walton County Coastal Dune Lake Advisory Board will hold their regularly scheduled meeting on Sep- tember meeung a iis61 G ADVERTISEMENT FOR BIDS Separate sealed BIDS for the con- struction of TIMBER WIND DRAIN- AGE IMPROVEMENTS will be re- ceived by the CITY OF DEFUNIAK SPRINGS, FLORIDA until 2:00 pm, local time, SEPTEMBER 18. 2007 at the CITY HALL at 71 U.S. Hwy. 90 West, DeFuniak Springs, FL 32433. 'BIDS received after this time will not be accepted. BIDS will be publicly opened and read. The work generally consists of 4 ea. tree removal; 665 l.f. of ditch grad- ing/regrading; 1,500s.y. of sodding; and all necessary appurtenances. All work shall be completed within 30 consecutive calendar days. Bidding Requirements, Contract Forms, Specifications, Drawings, and other Contract Documents may be examined during normal business hours at the following: (1) City of De- __m"__- I I REAL ESTATE SALE HOME ON 1.1 AC. MOSSY HEAD AREA 130 RAINBOW DR. WALTON COUNTY SELLING BY OWNER FOR ESTATE MOBILE HOME, FURNISHED, W/BUILT OVER ROOF, SCREENED FRONT PORCH, CARPORT, 2 BR, 2 BATH, CENTRAL HEAT & AIR & DECK ON 1.1 AC. AT FLA. HWY. 285 & U.S. HWY. 90 GO WEST ON HWY. 90, 2 MI. & R. ON RAINBOW DR. TO (A NICE, QUIET, LEVEL, ROOM TO ROAM SETTING) CALL NOW FIRST COME! INFO. CALL: 240-0481 Located just off Hwy 331 in Freeport. If you need help with directions, please call 951-4899 d Funiak Springs, 71 U.S. Hwy. 90 West, DeFuniak Springs, FL 32433, (850) 32-8500; (2) Peters Municipal Associates, Inc. Freeport Office - 289 Madison Street, Freeport, FL, (850) 835-0455; or (3) Peters Munici- pal Associates, Inc., 300 North Fos- ter Street (P.O. Box 6523), Dothan, Alabama 36303 (36302), (334) 793- 5378.' Bidding Documents may be ob- tained from the ENGINEER, Peters Municipal Associates, Inc., or from the OWNER, City of DeFuniak Springs. No partial or "split sets" will be issued. The OWNER reserves the right to reject any and all BIDS and to waive any informalities and award in the best interest of the City of DeFuniak Springs. The City of DeFuniak Springs is an Equal Opportunity/Af- firmative Action/ADA Employer and a Drug Free Work Place. CITY OF DEFUNIAK SPRINGS, FLORIDA KIM KIRBY, CITY MANAGER 2tc: September 6,13, 2007 865G Request for Bids-Specifications The City of DeFuniak Springs will be accepting sealed bids for a new Camera System for the Sewer De- partment. The City will accept sealed bids until September 19, 2007 at 2:00 p.m. CST. Proposals will be opened in the Council Chambers on the above date and time: The proposals shall be marked on the outside of the envelope sealed bid "Sewer Depart- ment Camera System." Any bids re- ceived after 2:00 p.m. CST. on the above date will not be accepted and will be returned unopened to the bid- der. The following is a minimum list of equipment: 1. Sewer Line Camera System Same as or Equivalent to Gen- Eye 3 Camera System with Locator The complete list of specifica- tions: Camera with built in antenna Must be able to camera 2' to 12' pipe 400' of push rods On-screen distance counter Built-in titler Picture inverter 9" color TV/VCR Locator/Transmitter66G Request for Bids-Specifications The City of DeFuniak Springs will be accepting sealed bids for a new Trailer-Mounted Sewer Jetter for the Sewer "Sewer Department Jetter 2007." Any bids received after 2:00 p.m. CST. on the above date will not be accepted and will be returned unopened to the bidder. The following is a minimum list of equipment: 1. Trailer-Mounted Sewer Jetter Same as or Equivalent to CamSpray model STB3508H The minimum list of specifica- tions: ' 5000 Ib axle with 15" tires and electric brakes 300 gallon water tank with float switch 8 GPM, 3500 PSI 24 HP engine 3/8" x 300' Hose Standard equipment should in- clude: pressure gauge, thermal relief valve, power pulse valve, remote throttle control, hour meter and strobe light with five foot extension. 12 volt electric hose reel.67G Request for Bids-Specifications The City of DeFuniak Springs will be accepting sealed bids for a new Backhoe for the Water Department. The City will accept sealed bids until September 19, 2007 at 2:00 p.m. CST. Proposals will be opened in the Council Chambers on the above date and time. The proposals shall be marked on the outside of the enve- lope sealed bid "Water Department Backhoe 2007." Any bids received af- ter 2:00 p.m. CST. on the above date will not be accepted and will be re- turned unopened to the bidder. The following is a minimum list of equipment: 1. Loader Backhoe Same as or Equivalent to John Deere Model 310SJ The complete list of specifica- tions: Canopy with lights, flashers, turn signals, beacon warning light Extendable bucket 24" Heavy duty bucket 12.5/80--18 front tires 19.5-24 rear tires Open cab with windshield is ac- ceptable 1.4 yd Heavy-duty loader bucket with bolt-on cutting edges 89hp turbocharged, four-cylinder engine Four-wheel drive with front driveshaft guard68G Request for Bids-Specifications The City of DeFuniak Springs will be accepting sealed bids for a new 4" Engine Driven Trash Pump for the Water "Wa- ter Department 4" Trash Pump 2007." Any bids received after 2:00 p.m. CST. on the above date will not be accepted and will be returned un- opened to the bidder. The following is a minimum list of 869G ADVERTISEMENT FOR BIDS CITY OF FREEPORT FOURMILE CREEK PARK NOTICE TO RECEIVE SEALED BIDS .The CITY OF FREEPORT will re- ceive sealed bids from any qualified person, company or corporation inter- ested in constructing the following project: FOURMILE CREEK. PARK Plans and specifications can be obtained at: Preble-Rish, Inc., 5365 Scenic Hwy. 30A, Suite 102, Santa Rosa Beach, FL 32459 (850) 231-3902. There will be a mandatory prebid meeting on September 20, 2007 at 2:00 p.m. All contractors intending to bid must attend. Completion date for this project will be 150 days from the date of the No- tice to Proceed presented to the suc- cessful bidder. The City of Freeport reserves the right to select one bid- der for all projects or individual bid- ders for separate road improvement projects. Thne contract t imeirame will be negotiated by The C'ly of Freeport and any individual contractor that is awarded an individual road improve- ment proje'tt Liquidated damages for failure to complete the project on the specified date will be set at $500.00 per day. 'Please include on the envelope that this is a sealed bid, the project name, and what the bid is for. Along with the bid, contractors are to submit a bid bond amounting to 5 percent of base bid. Before finalizing a contract, contractors are to furnish performance, labor and material bonds amounting to 100 percent of contract sum. An authorized agent who is a resident in Florida, who is qualified for the execution of such in- struments, shall countersign these bonds and the bond shall. have at- tached thereto Power of Attorney of the signing official. Bids accompanied by the Public Entity Crime Statement and Bid bond, must be submitted upon the standard Brick, 3 Bdr, 2.5 Bath thru 389 Bob McCaskill Saturday 9 am Phone: 5 pm 850-758-9096 Bif e-- *^ Jt 2 HOMES ON 160 ACRES Fenced pasture with several ponds and watering holes. Some planted pines. Approximately 1/2 mile of paved road frontage and additional dirt road frontage. Several barns and sheds. $1,455,000 MLS# 474445 NICE 3 bedroom 2 bath doublewide on a half acre near several lakes and close to town. Paved road frontage and in a nice neighborhood. $71,000 MLS# 460336 * 10 ACRES cleared just north of DeFuniak. MLS #473862 $85,000 * REDUCED!! Great buy, 10 acres located near DeFuniak Springs. MLS#471726...$59,000 *NICE 1 ACRE LOT west of DeFuniak.MLS #431094 $22,500 *SELLER FINANCING! Nice level lot in Juniper Lake Estates. MLS #417756...........$25,000 OFFICE SPACE and warehouse space for rent on Hwy. 90 west in DeFuniak Springs S;, HOMES LAND COMMERCIAL 1147 HWY. 90 W. DEFUNIAK SPRINGS .".i. AVAILABLE 2417 BY PHONE OR BY APPOINTMENT LICENSED IN FLORIDA & ALABAMA PAGE 9-C equipment: 1. 4" Engine Driven Trash Pump The same as or Equivalent to Gorman-Rupp Model 14D52-CH23S/ G The complete list of specifica- tions: Cast Iron Construction Electric Start Self Priming up to 25 feet Gas engine 15 to 16 HP Maximum flow 580-600-GPM TDH Maximum 95 feet/41.13 PSI Solids Handling up to 2-5/8" diam- eter Heavy Duty steel roll cage Wheeled cart for pump to be pulled behind vehicle (DOT Trailer) L I L II a- PAGE 10-C forms furnished by Preble-Rish, Inc. The bid must conform to Section 287.133(3) Florida Statutes, on pub- lic entity crimes. The right is reserved, as the interest of the Owner may re- quire, to reject any and all bids and to waive any informality in bids received. Attention of bidders is called to the Licensing Law of Florida. All bidders must comply with all applicable state and local laws concerning licensing, registration and regulation of contrac- tors doing business in Florida. Attention of the bidders is particu- larly called to the requirements as to conditions of employment to be ob- served and minimum wage rates to be paid under the Contract, Section 3 Segregated Facilities, Section 109, Executive Order 11246, and all appli- cable laws and regulations of the Fed- eral Government and State of Florida. The City of Freeport is an Equal Opportunity Employer and encour- ages minority and women owned busi- nesses to participate in this project as prime or sub-contractor. Bids will be received until 2:00 P.M. Central Time, on October 5,2007 at The City of Freeport 112 Highway 20, Freeport, FL 32439 and will be opened and read aloud at the City of Freeport Council Chambers on October 5 at 2:05 p.m. The City reserves the right to reject any and all bids. Cost for Plans and Specifications will be $150.00 per set and is non-re- fundable. Checks should be made payable to Preble-Rish, Inc. 4tc: September 6, 13, 20, 27, 2007 873G IN THE CIRCUIT COURT OF THE 1ST JUDICIAL CIRCUIT, IN AND FOR WALTON COUNTY, FLORIDA CIVIL DIVISION CASE NO.: 07-CA-000483 COUNTRYWIDE HOME LOANS, INC., Plaintiff, vs. LUIS HARO A/K/A JOSE' LUIS HARO, et al, Defendants. NOTICE OF ACTION TO: ETELKA BOEHM Last Known Address: 264 Plantation Way, Santa Rosa Beach, FL 32459 and 749 Beach Drive, Destin, FL 32541 Also Attempted at: 675 Bay Grove Road, Freeport, FL 32439 Current Residence Unknown LUIS HARO A/K/A JOSE' LUIS HARO Last Known Address: 264 Plantation Way, Santa Rosa Beach, FL 32459 and 749 Beach Drive, Destin, FL 32541 Also Attempted at: 675 Bay Grove Road, Freeport, FL 32439g~1' Current Residence Unknown YOU ARE NOTIFIED that an ac- tion for Foreclosure of Mortgage on the following described property: LOT 25, PALMETTO PLANTATION, A SUBDIVISION IN SECTION 26, TOWNSHIP 2 SOUTH, RANGE 20 WEST, WALTON COUNTY, FLORIDA, ACCORDING TO THE PLAT RECORDED IN PLAT BOOK 13, PAGE 40, OF THE PUBLIC RECORDS Oct. complaint. 31st day of August, 2007. Martha Ingle 'As Clerk of the Court /s/ By: Tina Potts As Deputy Clerk (seal) 2tc: September 6,13, 2007 874G , IN THE CIRCUIT COURT IN AND FOR WALTON COUNTY, FLORIDA CASE NO.: 07-CA-00384 CREOLE CONSTRUCTION, INC. a Florida Corporation, Plaintiffs, v. RICHMOND M. FLOWERS, III, Defendant. NOTICE OF ACTION To: Richmond M. Flowers, III 9201 Market Street Inn, Unit #247 247 Tupelo Courtyard Miramar Beach, FL 32550 Richmond M. Flowers, III 3618 Beverly Ridge Drive Sherman Oaks, CA 91423 Richmond M. Flowers, III 5378 Pine Ridge Villas Miramar Beach, FL 32550 YOU ARE NOTIFIED that an ac- tion to enforce a construction lien on the following property in Walton County, Florida: Richmond M. Flow- ers, III, 9201 Market Street Inn, Unit #247,247 Tupelo Courtyard, Miramar Beach, FL 32550, has been filed against you and you are required to serve a copy of your written defenses, if any, to it on Winter E. Spires, Esq., of Pleat & Perry, P.A., the Plaintiff's attorney, whose address is 4477 Leg- endary Drive, Suite 202, Destin, Florida 32541, on or before 10/08/07, and file the original with the Clerk of this Court either before service on the Plaintiff's attorney or immediately thereafter; otherwise a default will be entered against you for the relief de- manded in the complaint or petition. Dated this 30th day of August, 2007. Martha Ingle Walton County Clerk of Court /s/ By: Tina Potts Deputy Clerk 4tc: September 6, 13, 20, 27, 2007 875G IN THE CIRCUIT COURT OF THE FIRST JUDICIAL CIRCUIT OF THE STATE OF FLORIDA, IN AND FOR WALTON COUNTY GENERAL CIVIL DIVISION CASE NO. 2007-396-CA WELLS FARGO FINANCIAL SYSTEM FLORIDA, INC. Plaintiff vs. RANDOLPH SCOT JOHNSON; UN- KNOWN SPOUSE OF RANDOLPH SCOT JOHNSON; and UNKNOWN OCCUPANTS, TENANTS, OWN- ERS, AND OTHER UNKNOWN PAR- TIES, including, if a named defen- dant is deceased, the personal rep- resentatives, the surviving spouse, heirs, devisees, grantees, credi- tors, and all other parties claiming by,, through, under or against that defendant, and all claimants, per- sons or parties, natural or corpo- rate, or whose exact legal status is unknown, claiming under any of the above named or described defen- dants Defendants. NOTICE OF SALE Notice is hereby given that, pur- suant to the Order or Final Judgment entered in this cause, in the Circuit Court of Walton County, Florida, I will sell the property situated in Walton County, Florida, described as: LOTS 6, 7, 8, AND 9, BLOCK B, WALTON HEIGHTS, AS RECORDED IN THE PUBLIC RECORDS OF WALTON COUNTY, FLORIDA, IN PLAT BOOK 2 AT PAGE 5; TOGETHER WITH A MOBILE HOME SITUATED THEREON, DESCRIBED AS A 2002 SUMMER, WITH VEHICLE IDENTIFICATION NUMBERS C1610113PAAND C1610113PG; TITLE NUMBERS 85420602 AND 85420668; DECAL NUMBERS 35162428 AND 16686745, WHICH IS AFFIXED TO THE AFOREDESCRIBED REAL PROPERTY AND INCORPORATED THEREIN. at public sale, to the highest and best bidder, for cash, at the front lobby, Walton County Courthouse, 571 High- way 90 East, DeFuniak Springs, Florida at 11:00 a.m. (Central Time) on September 24 2007. ANY PERSON CLAIMING AN IN- TEREST IN THE SURPLUS FROM THE SALE, IF ANY, OTHER THAN THE PROPERTY OWNER AS OF THE DATE OF THE LIS PENDENS, MUST FILE A CLAIM WITH THE CLERK OF COURT WITHIN 60 DAYS AFTER THE SALE. DATED this 30th day of August, 2007. MARTHA INGLE Clerk of Circuit Court /s/ By Sharla Hall Deputy Clerk (seal) In accordance with the Americans With Disabilities Act, persons needing a special accommodation to partici- pate in this Hearing should contact the A.D.A. Coordinator not later than seven (7) days prior to the proceed- ing 30th day of August, 2007. MARTHA INGLE Clerk of Circuit Court /s/ By: Sharla Hall New Today _. Delta Health Care Center Part-Time LAUNDRY AIDE NEEDED No experience required. Contact Randall Hethcox at (850) 267-2887 or apply at 138 Sandestin Lane Destin, FL 32550 (beside Sacred Heart Hospital) Deputy Clerk (seal) 2tc: September 6,13,2007 876G IN THE CIRCUIT COURT OF THE FIRST JUDICIAL CIRCUIT OF FLORIDA IN AND FOR WALTON COUNTY CASE NO. 07-CA-529 NOTICE OF FORECLOSURE SALE REGIONS BANK Plaintiff, vs. NHUT TRANG THI HUYNH et. al. Defendants. NOTICE IS HEREBY GIVEN pur- suant to a Final Judgment of Foreclo- sure dated August 27, 2007 and en- tered in Case No. 07-CA-529, of the Circuit Court of the First Judicial Cir- cuit in and for Walton County, Florida, wherein REGIONS BANK, is a Plain- tiff and NHUT TRANG THI HUYNH, IF LIVING, AND IF DEAD, THE UN- KNOWN SPOUSE, HEIRS, DEVI- SEES, GRANTEES, ASSIGNEES, LIENORS, CREDITORS, TRUSTEES AND ALL OTHER PARTIES CLAIM- ING AN INTEREST BY, THROUGH, UNDER OR AGAINST NHUTTRANG THI HUYNH; HOA VAN NGUYEN, IF LIVING, AND IF DEAD, THE UN- KNOWN SPOUSE, HEIRS, DEVI- SEES, GRANTEES, ASSIGNEES, LIENORS, CREDITORS, TRUSTEES AND ALL OTHER PARTIES CLAIM- ING AN INTEREST BY, THROUGH, UNDER OR AGAINST HOA VAN NGUYEN; DRIFTWOOD ESTATES HOMEOWNERS' ASSOCIATION, INC; UNKNOWN TENANT #1; UN- KNOWN TENANT #2; are the Defen- dants. I will sell to the highest and best bidder for cash at in the front lobby, second floor, Walton County Court- house 571 U.S. Highway 90 East, DeFuniak Springs, Walton County, Florida, at 11:00 a.m. on September 26, 2007, the following described property as set forth in said Final Judg- ment, to wit: THE WEST 100.00 FEET OF LOT 29, IN BLOCK D, OF DRIFTWOOD ESTATES, ACCORDING TO THE PLAT THEREOF, AS RECORDED IN PLAT BOOK 5, AT PAGE 28 THROUGH 28V, TOGETHER WITH SURVEYOR'S AFFIDAVIT RECORDED IN OFFICIAL RECORDS BOOK 1703, PAGE 306, /s/ By: Sharla Hall As Deputy Clerk (seal) Dated this 30th day of August,. 2tc: September 6, 13, 2007 877G IN THE CIRCUIT COURT IN AND FOR WALTON COUNTY, FLORIDA CASE NO. 2007 CA 000179 REGIONS BANK, successors by merger with AMSOUTH BANK, Plaintiff, vs. FARBOD S. ZOHOURI and Driver Jacksonville Terminal J HOME EVERY WEEKEND GUARANTEED! TOP PAY for Exp'd Drivers! NO TOUCH FREIGHT 65% preloaded/pretarped CDL-A rea'd. 877-428-5627 wwcrv- s.c THE DEFUNIAK SPRINGS HERALD THURSDAY, SEPTEMBER 13, 2007 CHELCO Services, Inc. Has an Immediate Opening for an experienced Tree Trimmer Must be able to run a chain saw and cut around high voltage lines from a bucket truck, and perform Groundsman duties as required. Florida CDL Class A is a plus and earns you extra pay. Top pay availability for demonstrated ability and experience. Applicant must be willing to work in all weather condi- tions Monday through Friday with some overtime. Excellent pay and benefit package includes: payment toward insurance, vacation, holiday pay, productivity incentive, 401(k) and more. Apply in person at CSI located at 99 South 18th Street, DeFuniak Springs (Across from the DFS post office) Between 9 a.m. and 4 p.m. Drug Free Workplace/EEO. GEORGE F. MAYNARD, Defendants. NOTICE OF ACTION TO: FARBOD S. ZOHOURI YOU ARE NOTIFIED that an ac- tion to foreclose a mortgage lien on the following described real property in Walton County, Florida: COMMENCE AT THE INTERSEC- TION OF THE EAST LINE OF THE WEST 1/2 OF THE EAST 1/2 OF THE NORTHEAST 1/4 OF THE SOUTHWEST 1/4 OF SECTION 27, TOWNSHIP 3 SOUTH, RANGE 18 WEST, WALTON COUNTY, FLORIDAAND THE SOUTH RIGHT OF WAY LINE OF STATE ROAD S- 30-A; THENCE PROCEED SOUTH 00 DEGREES 00 MINUTES 00 SECONDS EAST ALONG SAID EAST LINE FOR A DISTANCE OF 255.00 FEET TO A CONCRETE MONUMENT MARKING THE NORTHERLY RIGHT OF WAY OF A PRIVATE ROAD DESCRIBED IN OFFICIAL RECORD BOOK 423 AT PAGE 402 OF THE PUBLIC RECORDS OF SAID COUNTY; THENCE CONTINUE SOUTH 00 DEGREES 00 MINUTES 00 SECONDS EAST ALONG THE EAST LINE OF SAID PRIVATE ROAD FOR A DISTANCE OF 23.23 FEET TO THE SOUTHERLY RIGHT OF WAY LINE OF SAID ROAD; THENCE PROCEED NORTH 70 DEGREES 44 MINUTES 00 SECONDS WEST ALONG SAID SOUTHERLY RIGHT OF WAY LINE FOR A DISTANCE OF 170.50 FEET THE NORTHWEST CORNER OF THAT PARCEL OF LAND DE- SCRIBED IN OFFICIAL RECORD BOOK 1970 AT PAGE 185 OF THE PUBLIC RECORDS OF SAID COUNTY AND THE POINT OF BEGINNING; THENCE CONTINUE NORTH 70 DEGREES 44 MIN- UTES 00 SECONDS WEST ALONG SAID SOUTHERLY RIGHT OF WAY LINE FOR A DISTANCE OF 107.00 FEET; THENCE DEPARTING SAID RIGHT OF WAY LINE PROCEED SOUTH 00 DEGREES 22 MINUTES 00 SECONDS WEST FOR A DISTANCE OF 105.74 FEET TO A POINT BEING NORTH 63 DE- GREES 19 MINUTES 57 SEC- ONDS WEST AND 100.63 FEET FROM A POINT HEREINAFTER, REFERRED TO AS POINT "A"; THENCE CONTINUE SOUTH.00 DEGREES 22 MINUTES 00 SECONDS WEST FOR A DIS- TANCE OF 113 FEET, MORE OR LESS TO THE WATERS EDGE OF THE GULF OF MEXICO; THENCE MEANDER SOUTHEASTERLY ALONG SAID WATERS' EDGE FOR A DISTANCE OF 97 FEET, MORE OR LESS TO A POINT LYING SOUTH 00 DEGREES 00 MINUTES 00 SECONDS EAST OF THE AFORESAID POINT "A"; THENCE DEPARTING SAID WATERS' EDGE PROCEED NORTH 00 DEGREES 00 MINUTES 00 SECONDS WEST FOR A DISTANCE OF 156 FEET; MORE OR LESS; THENCE PROCEED NORTH 11 DEGREES 00 MINUTES 02 SECONDS EAST FOR A DISTANCE OF 62.88 FEET TO THE POINT OF BEGINNING, CONTAINING 0.47 ACRES, MORE OR LESS. has been filed against you and you are required to serve a copy of your written defenses, if any, to it on Mel- issa Holley Painter, Esquire, the plaintiff's attorney, whose address is P.O. Box 13010, Pensacola, Florida 32591-3010 on or before October 8, 2007 and file the original with the Clerk of this Court either before service on the plaintiff's attorney or immediately New Today _AHL Delta Health Care Center Dietary Aide needed for Evening Shift No experience required. Contact Teddy Vincent at (850) 267-2887 or come by 138 Sundestin Lane .(beside Sacred Heart Hospital) Destin, FL 32550 thereafter; otherwise a default will be entered against you for the relief de- manded in the complaint. DATED this 28th day of August, 2007. MARTHA INGLE Clerk of the Court /s/ Crystal Zert By: Deputy Clerk (seal) 2tc: September 6, 13, 2007 878G IN THE CIRCUIT COURT OF THE FIRST JUDICIAL CIRCUIT OF THE STATE OF FLORIDA, IN AND FOR, WALTON COUNTY CIVIL DIVISION CASE NO. 07000618CA FIFTH THIRD MORTGAGE COMPANY, Plaintiff, vs. ROBERT GAWRYS; UNKNOWN SPOUSE OF ROBERT GAWRYS; IF LIVING, INCLUDING ANY UN- KNOWN SPOUSE OF SAID DEFENDANTSS, IF REMARRIED, AND IF DECEASED, THE RESPEC- TIVE UNKNOWN HEIRS, DEVI- SEES, GRANTEES, ASSIGNEES, CREDITORS, LIENORS, AND TRUSTEES, AND ALL OTHER PER- SONS CLAIMING BY, THROUGH, UNDER OR AGAINST THE NAMED DEFENDANTSS; SOUTHSHORE HOMEOWNERS' ASSOCIATION, INC.; WHETHER DISSOLVED OR PRESENTLY EXISTING, TO- GETHER WITH ANY GRANTEES, ASSIGNEES, CREDITORS, LIENORS, OR TRUSTEES OF SAID DEFENDANTS) AND ALL OTHER PERSONS CLAIMING BY, THROUGH, UNDER, OR AGAINST DEFENDANTSS; UNKNOWN TEN- ANT #1; UNKNOWN TENANT #2; Defendant(s) NOTICE OF ACTION TO; ROBERT GAWRYS; UN- KNOWN SPOUSE OF ROBERT GAWRYS; IF LIVING, INCLUDING ANY UNKNOWN SPOUSE OF SAID DEFENDANTSS, IF REMARRIED, AND IF DECEASED, THE RESPEC- TIVE UNKNOWN HEIRS, DEVI- SEES, GRANTEES, ASSIGNEES, CREDITORS, LIENORS, AND TRUSTEES, AND ALL OTHER PER- SONS CLAIMING BY, THROUGH, UNDER OR AGAINST THE NAMED DEFENDANTSS; fore- closure of mortgage against the fol- lowing described property, to wit: LOT 6, SOUTH SHORES, AC- CORDING TO THE PLAT THEREOF, AS RECORDED IN PLAT BOOK 16, PAGE 25, OF THE PUBLIC RECORDS OF WALTON COUNTY, FLORIDA. A/K/A IWackoenhut.t Now hiring, for Sandestin, Santa Rosa Beach. Wages beginning at $9.75 hr. Benefits available. HS/GED required. Call 800-527-5941 EOE/M/F/D/V 4tc:9-13 Chautauqua Rehabilitation and Nursing Center is now hiring C.N.A.'s. *New Pay Scale based on years of Certification. * New Benefit Package including 3 options of Blue Cross Blue Shield Health Policies, Dental, Vision, Short and Long Term Disability, Life Insurance, 401K and much more... Weekend lhcentive Pay, Shift Differential and the list goes on and on!! Equal Opportunity Employer. Come Join our Team!!!! Apply in person at 785 South 2nd Street or call 892-2176. MOONLIT SHORES LANE LOT 6 SANTA ROSA BEACH, FL 32459 If you fail to file your answer or writ- ten defenses in the above proceed- ing, on plaintiff's attorney, a default will be entered against you for the relief demanded in the Complaint or Peti- tion. DATED at WALTON County this 28th day of August, 2007. Clerk of the Circuit Court /s/ By: Renee Day Deputy Clerk (sal) In accordance with the Ameri- can with Disabilities Act of 1990, persons needing a special accom- mod: September 6, 13,2007 879G IN THE CIRCUIT COURT OF THE FIRST JUDICIAL CIRCUIT IN AND FOR WALTON COUNTY, FLORIDA CASE NO.: 06-CA-670 AMERICAN GENERAL HOME EQUITY, INC., Plantiff, vs. HERBERT D. HERRINGTON, Defendent. NOTICE OF SALE NOTICE IS HEREBY GIVEN that pursuant to a Summary Final Judg- ment of Foreclosure dated the 21st day of August, 2007, in the above- styled cause, I will sell to the highest bidder for cash at the front lobby, second floor, of the Walton County Courthouse, 571 Hwy. 90 East, De- Funiak Springs, Walton County, Florida, in accordance with Section 45.031, Florida Statutes, at 11:00A.M. on the 24th day of September, 2007, the following described property: Lot 2, More particularly described as follows: A portion of Lot 32, Section 27, Town- ship 2 South, Range 20 west, Santa Rosa Plantation Company Subdivi- sion as recorded in Plat Book 2, at Page 4 of the Public Records of Wal- ton County, Florida, being more par- ticularly described as follows: Begin at the Northwest corner of the ajoresaid Lot 32, thence go South 8956'44" East along the North line of aforesaid Lot 32 a distance of 190.65 feet; thence go South 0003'12" West a distance of 182.79 feet; thence go Norin 89'57'19" West a distance of '190 43 feet ic. the'West Ine ol Lot 32, thence go North 00000'52" West along the aforesaid line, a distance of 182.83 feet -to the Point of Beginning. The above described parcel is being made subject to a 33 foot access and utility * Experience preferred * Full Or Part Time * Semi-Private Booths Paid Vacation PRIME TIME TO JOIN OUR TEAM AT HAIR CRAFTERS located Hwy. 90 West DeFuniak Springs (next to OWC) 850-892-4455 or 850-333-0434 Ask for Dennis THE DEFUNIAK SPRINGS HERALD THURSDAY, SEPTEMBER 13, 2007 easement along the North line. The property also includes a 19 Litton mobile home, Serial GMHGA234915391. In accordance with the America with Disabilities Act, persons needii a special accommodation to participa in this proceeding should contact'tl law office of Cecilia Redding Boy P.A., 1007 Jenks Avenue, Panan City, FL 32401 (850) 872-8514. Dated this 27th day of Augus 2007. Walton County Clerk of Cou By: Margaret Bish( Deputy Cle (sea 2tc: September 6, 13, 2007 880G IN THE CIRCUIT COURT IN AND FOR WALTON COUNTY, FLORID PROBATE DIVISION CASE NO.: 07CP000175 IN RE: ESTATE OF TRELLE SAWYER PHILLIPS Deceased. NOTICE TO CREDITORS The administration of the estate Trelle Sawyer Phillips, deceased, Fi Number 07CP000175, is pending the Circuit Court for Walton Count Flojida, Probate Division, the address of which is Walton County Cour house, at 571 U.S. Highway 90 Eas DeFuniak Springs, Florida 32433. Th names and addresses of the person representative and the persona representative's attorney are set fort below. All creditors of the decedent an other persons, who have claims or de mands against decedent's estate, ir cluding un-matured, contingent or ur liquidated claims and who have bee served a copy of this notice, must fil their claims withthis Court WITHII THE LATER OF THREE (3) MONTH AFTER THE DATE OF THE FIRS PUBLICATION OF THIS NOTICE 01 THIRTY (30) DAYS AFTER TH DATE OF SERVICE OF A COPY O THIS NOTICE ON THEM. All other creditors of the deceder and other persons who have claim or demands against the decedent' estate, including un-matured, contir gent or unliquidated claims, must fil their claims with this Court WITHII THREE (3) MONTHS AFTER THI DATE OF THE FIRST PUBLICATION OF THIS NOTICE. ALL CLAIMS NOT SO FILED WIL BE FOREVER BARRED. NOTWITHSTANDING THE TIME PERIODS SET FORTH ABOVE, AN' CLAIM FILED TWO (2) YEARS OF MORE AFTER THE DECEDENT'S DATE OF DEATH IS BARRED. The date of the first publication o the Notice is September 6, 2007. Hampton H. Hogg, Personal Representative E. Allan Ramey Ramey and Bytell Attorneys.at Law 1250 Circle Drive DeFuniak Springs, Florida 32435 (850) 892-2108 Fla. Bar No. 128994 Attorney for Personal Representative 4tc: September 6, 13, 20, 27, 2007 881G IN THE CIRCUIT COURT OF THE FIRST JUDICIAL CIRCUIT OF FLORIDA IN AND FOR WALTON COUNTY CIVIL DIVISION CASE NO. 07-000533-CA BANK OF NEW YORK AS TRUSTEE FOR THE CERTIFICATEHOLDERS CWALT, INC. ALTERNATIVE LOAN TRUST 2006-OA6 MORTGAGE PASS-THROUGH CERTIFICATES, Plaintiff, vs. ASHLEY HEIMANN, TRUSTEE OR ANY SUCCESSORS IN TRUST, UN- DER THE CLOUD 9 REVOCABLE TRUST DATED NOVEMBER 7,2005, MORTGAGE ELECTRONIC REGIS- TRATION SYSTEMS, INC., AND UN- KNOWN TENANTS/OWNERS, Defendants. NOTICE OF SALE Notice is hereby given, pursuant to Final Judgment of Foreclosure for Plaintiff entered in this cause on Au- gust 24, 2007, in the Circuit Court of Walton County, Florida, I will sell the property situated in Walton County, Florida described as: LOT 9, SEASIDE 15, ACCORDING TO THE PLAT THEREOF AS RE- CORDED IN PLAT BOOK 15, PAGE(S) 38, OF THE PUBLIC RECORDS OF WALTON COUNTY, FLORIDA. and commonly known as: 40 VENICE CIRCLE, SANTA ROSA BEACH, FL ,32459; including the building, appur- tenances, and fixtures located therein, at public sale, to the highest and best bidder, for cash, Sales are held in the front Lobby, Second Floor, Walton County Courthouse, 571 Highway 90 East, DeFuniak Springs, Walton County, Florida, on September 24, August, 2007. Clerk of the Circuit Court By: Margaret Bishop 92 Deputy Clerk # (seal) 2tc: September 6, 13, 2007 ns 882G ng ite PUBLIC AUCTION NOTICE he *d, Registered Owner na DEMARIO HARRIS 109 HOLLAND AVE. TROY, AL 36081 st, Description of Vehicle 96 FORD urt Vin# 1 FALP6535TK206606 op rk Towing and Storage Company al) Day's Service Station Inc. P.O. Box 10 / 11 Railroad Ave Argyle, FL 32422 850-892-3935 This auction will be held at Day's Ser- A vice Station Inc. at 11 Railroad Ave., Argyle, FL on September 21, 2007 commencing at 7:00 a.m. We hereby reserve. of le 1tc: September 13, 2007 in 891G y, ,s PUBLIC AUCTION NOTICE t- 3t, Registered Owner ie MARK SEARS al 1201 STETSON STREET al ORLANDO, FL 32804 :h Description of Vehicle 2002 ACURA d Vin# JH4DA1743KS005745 e- n- INSURANCE: n- UNITTIN DIECT PROPERTY n ONE KEMPER DRIVE e LONG GROVE, IL. 60049 N S Towing and Storage Company T Day's Service Station Inc. R P.O. Box 10 / 11 Railroad Ave E Argyle, FL 32422 F 850-892-3935 This auction will be held at Day's Ser- nt vice Station Inc. at 11 Railroad Ave., s Argyle, FL on October 22, 2007 com- s mencing at 7:00 a.m. We hereby re- i- serve the right to auction this vehicle e according to the Florida Statutes, Sec- N tion 713.78 in order to recover any and E all unpaid charges for towing and stor- N age fees on the above listed vehicle. No offers will be taken prior to the date L of the sale of this vehicle. 1tc: September 13, 2007 E 892G PUBLIC AUCTION NOTICE Registered Owner SANTIAGO CRUZ-HERNANDEZ 114 W. BOCH DRIVE DEFUNIAK SPRINGS, FL 32433 Description of Vehicle 1994 MERCURY Vin# 2MELM75W8RX643989. ltc: September 13, 2007 -893G PUBLIC AUCTION NOTICE Registered Owner STEPHAN HAYNES 69 PLACID LAKE DR. DEFUNIAK SPRINGS, FL 32433 Description of Vehicle NISSAN Vin# 1N4AB41 D6WC75685694G PUBLIC AUCTION NOTICE Registered Owner ISRAEL G. DIAZ 513 S. 19TH STREET DEFUNIAK SPRINGS, FL 32435 Description of Vehicle 1998 Chevy Vin# 1GCCS1444W825468595G PUBLIC AUCTION NOTICE Registered Owner, DEVIN T. WRIGHT 3400 S. TROPICAL TRAIL MERRITT ISLAND, FL 32952 Description of Vehicle .1995 SATURN Vin# 1G8ZK5279S226217896G PUBLIC AUCTION NOTICE Registered Owner CURTIS D. RICHARDSON 1751 W. CAHABA AVE. LINDON, AL. 36748 Description of Vehicle 2003 JEEP Vin# 1J4GL48K83W706678 thp date of the sale of this vehicle. 1tc: September 13, 2007 897G IN THE CIRCUIT COURT IN AND FOR WALTON COUNTY, FLORIDA CASE NO. 2007-CP-000136 IN RE: THE ESTATE OF LAWRENCE LAWSON, Deceased. NOTICE TO CREDITORS The administration of the ESTATE OF LAWRENCE LAWSON, de- ceased, File Number 2007-CP- 000136 is pending in the Circuit Court of Walton County, Florida, Probate Division, the address of which is Wal- ton County Courthouse, 571 U.S. Highway 90 East, DeFuniak Springs, FL, 324THE FIRST PUBLICATION OF THIS NOTICE OR 30 DAYS AF- TER THE DATE OF SERVICE OF A COPY OF THIS NOTICE ON THEM. ALL OTHER CREDITORS of the decedent and other persons having claims or demands against decedent's estate, including unmatured, contin- gent or unliquidated claims, must file their claims with this Court WITHIN 3 MONTHSAFTER THE DATE OFTHE FIRST PUBLICATION OF THIS NO- TICE. ALL CLAIMS NOT SO FILED WILL BE FOREVER BARRED. The date of first publication of this Noticeis September 13, 2007. /s/ CAROLYN LAWSON CHADWICK Personal Representative P.O. Box 683 Valparaiso, FL 32580-0683 /s/ JOHN T. MARSHALL Florida Bar No..0022760 H. BART FLEET Florida Bar No. 0606900 FLEET, SPENCER & KILPATRICK, P.A. 12873 N. Eglin Parkway, Suite A Shalimar, FL 32579 (850) 651-4006/(850) 651-5006 fax ATTORNEYS FOR THE ESTATE OF LAWRENCE LAWSON 2tc: September 13, 20,2007 898G IN THE CIRCUIT COURT FOR WALTON COUNTY, FLORIDA PROBATE DIVISION File No. 07CP000055 IN RE: THE ESTATE OF MARTIN COMER MCKENZIE, Deceased. NOTICE TO CREDITORS The administration of the estate of Martine Comer McKenzie, deceased, whose date of death was June 10, 2006, is pending in the Circuit Court for Walton County, Florida, Probate Di- vision, the address of which is P.O. Box 1260, DeFuniak Springs, FL, 32435. The names and addresses of the personal representatives and the personal representatives' PUBLICA- TION September 13, 2007. Attorney for Personal Representa- tives: /s/ Scott B. Barloga Attorney for Personal Representatives Florida Bar No. 048143 POPE & BARLOGA, P.A. 438 N. Cove Boulevard P.O. Box 1'609 Panama City, FL 32402 Telephone: (850) 784-9174 Fax: (850) 784-9175 /s/ Paul F. Turner, Jr. Co-Counsel for Petitioners Florida Bar No. 0036664 Johnston, Hinesley, Flowers, Clenney & Turner, P.C. P.O. Box 2246 291 North Oates Street (36303) Dothan, AL 36302 Personal Representatives /s/ Daniel B. McKenzie P.O. Box 220 Eufala, AL 36027 /s/ Mary McKenzie Garrison 1461 Country Club Road Eufala, AL 36027 2tc: September 13,20, 2007 899G PUBLIC HEARING NOTICE The Walton County Zoning Board of Adjustments will hold their regular public hearing on September 27. 2007 at 6:00 P.M. at the South Walton Courthouse Annex in Santa Rosa Beach, Florida 32459. The fol- lowing items are scheduled for review and action: MICHAEL MEEKS PETITION -FOR VARIANCE Project number 07-005-00010. This is a petition for variance submitted by Michael Meeks requesting a variance from the Wal- ton County Land Development Code, section 5.00.03 (A)(1), requiring struc- tures to setback 20-feet from the front, 15-feet from the rear and 7_ feet from the side property lines. The subject of this petition is to reduce the side setbacks for the installation of a por- table two-car garage. The site is lo- cated at 63 North 3rd Street, Santa Rosa Beach, Florida in the Chat Holly area (parcel number 22-2S-20-33120- 068-0070.) TIMOTHY & TAMMY HARRIS PE- TITION FOR VARIANCE Project number 07-005-00012. This is a peti- tion for variance submitted by Timo- thy and Tammy Harris, requesting a variance from the Walton County Land Development Code, section 5.00.03 (A)(1), requiring structures to setback 15-feet from the rear. The subject of this petition is to reduce the rear set- backs to 9 feet to accommodate an existing covered patio. The site is lo- cated at 153 Leeward Drive (parcel number 28-2S-21-42600-000-0430.) Circuit Court of Walton County. In accordance with Section 286.26, Florida Statutes, whenever any board or commissioner of any state agency or authority, or of any agency or authority of any county, municipalcorporation, or other politi- cal subdivision that 900G NOTICE OF PUBLIC HEARING The Walton County Board of County Commissioners will hold a regular meeting on Tuesday. Sep- tember 25, 2007, at 5:00 p.m. or as soon thereafter as may be heard at the Walton County Courthouse lo- cated at 571 US Highway 90, DeFu- niak Springs. Florida. The following items will be heard: LEGISLATIVE ITEMS: 1. CONSTRUCTION PERMIT FEE ORDINANCE An ordinance amending a portion of Ordinance 2005-29, known as the Walton County Construction Permit Fee Authorization Ordinance, providing for severability, providing for repeal of conflicting pro- visions, providing for an effective date. QUASI-JUDICIAL ITEMS: 2. SOUTH WALTON UTILITIES' TOWER Project number 07-005- 00011. This is a major development order application submitted by South Walton Utility Company, Inc., request- ing to remove a 285-foot tower and reconstruct it ona separate parcel. The site is located on Goldsby Road north of US Highway 98 near the Sa- cred Heart Hospital (parcel number 25-2S-21-42000-012-0000.) 3. WILDWOOD VILLAGE PUD Project number 07-001-00050. This is a major development order ap- plication submitted by Jenkins, Stanford, and Associates, Inc., con- sisting of 67 single family homes on 8.97 acres with a future land use of NPA/infill. The site is located at the NE intersection of Wildwood Trail and Freedom Way (parcel numbers 36- 3S-18-16100-000-0200, 36-3S-18- 16100-000-0201, 36-3S-18-16100-' 000-0204,36-3S-18-16100-000-0202 and 36-3S-18-16100-000-0205.) 4. THE STABLES AT SANDY PINES Project number 07-001- 00032. This is a major development order application submitted by JP-En- gineering, consisting of 25 single fam- ily units on 282.72 +/- acres with a fu- ture land use of general agriculture and large-scale agriculture. The site is located on the east and west sides of Champion's Way, north of S.R. 81 and south of Buddy McGill Trail (parcel numbers 04-1N-17- 04000-001-0000, 05-1 N-17-04000- 001-0010, 05-1N-17-04000-001- 0020,05-1 N-17-04000-001-0030,05- 1N-17-04000-001-0040, 08-1 N-17- 04000-001-0000, and 09-1N-17- 04000-001-0030.) 5. SERENITY ESTATES - Project number 06-001-00025. This is a major development order appli- cation submitted by Choctaw Engi- neering, Inc., consisting of 4 single family units on 0.873 +/- acres with a future land use of neighborhood plan- ning area/infill. The site is located on the north side of Lee Pladce, east of Robert Ellis Street (parcel numbers 24-3S-19-25000-018-0000 and 24- 3S-19-25000-018-0020.) 6. HERON'S LANDING - Project number 07-001-00012, This is a major development order appli- cation submitted by Emerald Coast Associates, Inc., consisting of 13 buildings with 127 multi-family units having a total of 19,077 square feet on 28.63 acres with a future land use of NPA/infill. The site is located on C.R. 393, 950 feet south of U.S. 98, (parcel numbers) 35-2S-20-33280- 000-0590, 35-2S-20-33280-000- 0600, 35-2S-20-33280-000-0610). 7. ANGELOS Project num- ber 06-001-00079. This is a major de- velopment order application submit- ted by Emerald Coast Associates, consisting of 13 multi- family units on 3.57 acres with a future land use of NPA/infill. The site is located on the west side of Beachside Drive south of San Roy Road (parcel number 19- 3S-18-16080-000-0162). 8. STONEGATE Project number 07-001-00021. This is a ma- jor development order application sub- mitted by Jenkins, Stanford, and As- sociates, Inc., consisting of a 39 lot single family subdivision on 19.63 acres with a future land use of CR 2:1. The site is located on West Hewitt Road just north of Preston Path and directly across from Kimberly Ann Drive (parcels numbers 30-2S-20- 33230-000-0400 and 30-2S-20- 33230-000-0410). 9. SUNRISE VILLAGE - Project number 06-001-00094. This is a major development order appli- cation submitted by Jenkins, Stanford & Associates, consisting of 60 single family units on 31.02 +/- acres with a future land use of rural village. The site is located at the intersection of Highway 331 and Sunrise Road (par- cel numbers 08-3N-19-19000-001- 0000 and 08-3N-19-19000-001- 0010.) 10. right side of Winston Lane, approxi- mately 11.27 miles from the intersec- tion U.S. 98 & U.S. 331 (parcel num- ber 36-3S-18-16100-000-0320). 11. WALTON COUNTY NA- TURE CENTER Project number 07- 001-00057. This is a major develop- ment order application, consisting of a 1;200 square foot education center and a parking lot on 9.54 acres with a future land use of infill. The site is lo- cated on the north side of Nursery Road in south Walton County (parcel number 14-2S-20-33000-006-0020.) 12. WALTON COUNTY IN- DUSTRIAL PARK PUD Project number 06-001-00082. This is a k PAGE 11-C major development order application, requesting conceptual approval for a master plan consisting of office space with less than 300,000 square feet of gross floor area, retail/service space with less than 400,000 square feet of gross floor area or less than 2,500 parking spaces and manufacturing space on 320 acres with a future land use of industrial. The site is located west of Mossy Head on S.R. 285 be- tween 1-10 and U.S. 90 (parcel num- ber 22-3N-21-37000-012-0010.) All interested parties wishing to be heard regarding these amendments may appear at the above mentioned meeting. In accordance with Section 286.26, Florida Statutes, 13, 20, 2007 901 G PUBLIC HEARING NOTICE The Walton County Board of County Commissioners will hold a public hearing on Tuesday, Septem- ber 25, 2007 at 5:00 p.m. or soon thereafter, at the Walton County Courthouse, 571 US Highway 90, Defuniak Springs, Florida. The purpose of this public hearing will be to consider adoption of the fol- lowing ordinance: An ordinance amending a por- tion of Ordinance 2005-29, known as the Walton County Construction Permit e.Fe Authorization Ordi- nance, providing for severability, providing for repeal of conflicting provisions, providing for an effec- tive date, Copies`of the proposed draft ordi- nance are available for review at the Planning and Development Services Division located at 31 Coastal Center authority, or of any agency or au- thority of any county, municipal corpo- ration, or other political subdivision, which has scheduled a meeting at which official acts are to be taken re- ceives, 902G STATE OF.FLORIDA DEPARTMENT OF ENVIRONMENTAL PROTECTION NOTICE OF CONSENT ORDER The Department of Environmental Protection gives notice of agency ac- tion of entering into a Consent Order with the Walton County Board of County Commissioners pursuant to Section 120.57(4), Florida Statutes. The Consent Order addresses the fail- ure to comply with permit limits at the Green Acres Road domestic waste- water treatment plant. The Consent Order is available for public inspec- tion during normal business hours, 8:00 a.m. to 5:00 p.m., Monday through Friday, except legal holidays, at the Department of Environmental Protection, 160 Governmental Center, Pensacola, Florida 32502-5794. Persons whose substantial inter- ests are affected by this Consent Or- der have a right to petition for an ad- ministrative hearing on the Consent Order. The Petition must contain the information set forth below and must be filed (received) in the Department's PAGE 12-C Office of General Counsel, 3900 Com- monwealth Boulevard, MS# 35, Tal- lahassee, Florida 32399-3000, within 21 days of receipt of this notice. A copy of the Petition must also be mailed at the time of filing to the District Office named above at the address indi- cated. Failure to file a petition within the 21 days constitutes a waiver of any right such person has to an administra- tive hearing pursuant to Sections 120.569 and 120.57, Florida Statutes.The petition shall contain the following information: (a) The name, address, and telephone number of each petitioner; the Department's identification number for the Consent Order and the county in which the subject matter or activity is located; (b) A statement of how and when each petitioner received notice of the Con- sent Order; (c) A statement of how each petitioner's substantial interests are affected by the Consent Order; (d) A statement of the ma- terial facts disputed by petitioner, if any; (e) A statement of facts which petitioner contends warrant reversal or modification of the Consent Order; (f) A statement of which rules or stat- utes petitioner contends require rever- sal or modification of the Consent Or- der; (g) A statement of the relief sought by petitioner, stating precisely the ac- tion petitioner wants the Department to take with respect to the Consent Or- der. If a petition is filed, the adminis- trative hearing process is designed to formulate agency action. Accordingly, the Department's final action may be different from the position taken by it in this Notice. Persons whose sub- stantial par- ticipate as a party to this proceeding. Any subsequent intervention will only be at the approval of the presiding of- ficer upon motion filed pursuant to Rule 28-106.205, Florida Administra- tive Code. A person whose substantial inter- ests are affected by the Consent Or-. der may file a timely petition for an ad- ministrative hearing under Sections 120.569 and 120.57, Florida Statutes, or may choose to pursue mediation as an alternative remedy under Sec- tion 120.573, Florida Statutes, before the deadline for filing a petition. Choosing mediation will not adversely affect the right to a hearing if media- tion does not result in a settlement. The procedures for-pursuing media- tion are set forth below. Mediation may only take place if the Department and all the parties to the proceeding agree that mediation is appropriate. A per- son may pursue mediation by reach- ing a mediation agreement with all parties to the proceeding (which in- clude the Respondent, the Depart- ment, and any person who has filed a timely and sufficient petition for a hear- ing) and by showing how the substan- tial interests of each mediating party are affected by the Consent Order. The agreement must be filed in (re- ceived by) the Office of General Coun- sel of the Department at 3900 Com- monwealth Boulevard, MS #35, Tal- lahassee, Florida 32399-3000, within 10 days after the deadline as set forth above for the filing of a petition. The agreement to mediate must include the following: (a) The names, addresses, and telephone numbers of any persons who may attend the mediation; (b) The name, address, and tele- phone number of the mediator se- lected by the parties, or a provision for'select- ing a mediator within a specified time; (c) The agreed allocation of the costs and fees associated with the mediation; (d) The agreement of the parties on the confidentiality of discussions and documents introduced during me- diation; (e) The date, time, and place of the first mediation session, or a deadline for holding the first session, if no me- diator has yet been chosen; (f) The name of each party's rep- resentative who shall have authority to settle or recommend settlement; and (g) Either an explanation of how the substantial interests of each mne- diating party will be affected by the action or proposed action addressed in this notice of intent or a statement clearly identifying the petition for hear- ing that each party has already filed, and incorporating it by reference. (h) admin- istrative hearing. Unless otherwise agreed by the parties, the mediation must be concluded within sixty days of the execution of the agreement. If mediation results in settlement of the administrative dispute, the Depart- ment must enter a final order incor- porating the agreement of the parties. Persons whose substantial interests will be affected by such a modified fi- nal decision of the Department have a right to petition for a hearing only in accordance with the requirements for such petitions set forth above, and must therefore file their petitions within 21 days of receipt of this notice. If me- diation terminates without settlement of the dispute, the Department shall notify all parties in writing that the ad- ministrative hearing processes under Sections 120.569 and 120.57, Florida Statutes remain available for disposi- tion of the dispute, and the notice will specify the deadlines that then will THE DEFUNIAK SPRINGS HERALD THURSDAY, SEPTEMBER 13, 2007 apply for challenging the agency ac- tion and electing remedies under those two statutes. 1tc: September 13, 2007 903G NOTICE OF SHERIFF'S SALE NOTICE IS HEREBY GIVEN That pursuant to a Writ of Execution issued in the CIRCUIT.Court of PINELLAS County, Florida, on the 27TH day of FEBRUARY, 2007 In the cause wherein CHRISTIAN TELEVISION NETWORK, INC, was plaintiffs) and GLENN BURKETT CORP. ET AL, was defendantss, being Case No. 054956CI15 in said Court. I, RALPH L JOHNSON, as Sher- iff of WALTON County, Florida, have levied upon all the right, title and in- terest of the defendant, GLENN BURKETT CORP. ET AL, in and to the following described property, to- wit: PARCEL 19-2S-19-27131-OOA-0070 LOTS 7,8 AND 9, BLOCK A OF PIECES COVE 1ST ADDITION ac- cording to the plat thereof as recorded in PLATT BOOK 5, PAGE(s) 2 AND 2A of the Public Records of Walton County, Florida And on the, 15th day of OCTO- BER, 2007 at the front entrance to the Walton County Sheriff's Office in the City of DeFuniak Springs, Walton County, FL, at the hour of 11:00 am or as soon as possible thereafter, I will offer for sale all of the said defendant's GLENN BURKETT CORP, ET. /s/ Ralph L Johnson, Sheriff Of Walton County, Florida 4tc: September 13, 20, 27; October 5, 2007 904G NOTICE OF SALE KEITH W. WEBER 645 JAMES LEE RD. APT. 214 FT. WALTON BEACH, FL 32547 99 KAWASAKI Vin: #JKAZX2C13XA030952 This auction will be held at Hinson's Wrecker Service at 354 US Hwy 90 West, DeFuniak Springs, FL on Sep- tember 25, 2007 commencing at 9:00 a.m. We hereby reserve the right to auction: September 13, 2007 #905G Notice of Budget Workshop Meeting CITY OF PAXTON SEPTEMBER 18, 2007, 7:00 PM PAXTON CITY HALL THE PAXTON CITY COUNCIL WILL HOLD A BUDGET WORKSHOP ON SEPTEMBER 18, 2007 AT 7:00 pm AT PAXTON TOWN HALL. THE CITY COUNCIL WILL BE ADOPTING THE FY 08 BUDGET FOR THE CITY OF PAXTON. THE PUBLIC IS INVITED TO ATTEND. 1 tc: September 13, 2007 .906G NOTICE OF RULE DEVELOP- MENT BY THE SCHOOL BOARD OF WALTON COUNTY, FLORIDA The School Board of Walton County, Florida, pursuant to the provi- sions of Section 120.54, Florida Stat- utes, hereby gives notice that it is de- veloping a Revision to the 2007-2008 District Uniform Code of Student Con- duct, which, after adoption, will become part of the School Board Rules. The 2007-2008 Revision District Uniform Code of Student Conduct sets forth the rights and responsibilities of students attending school in the Walton County School District, .provide the rules of conduct and discipline that apply to such students. The specific legal au- thority for the proposed rule is Sections 230.22 and 230.23(6)(d), Florida Stat- utes. Any interested persons may ob- tain a preliminary draft of the proposed 2007-2008 Revised District Uniform Code of Student Conduct from Kaye McBroom, 145 Park Street, Suite 3, DeFuniak Springs, Florida 32435, tele- phone number (850)892-1100, ext. 1314 at no cost. /s/ CARLENE H. ANDERSON Superintendent of schools Walton County School District itc: September 13, 2007 907G IN THE CIRCUIT COURT FOR WALTON COUNTY, FLORIDA PROBATE DIVISION CASE NO. 07-CP-000179 IN RE: ESTATE OF VIRGINIA C. WHITCOMB, Deceased. NOTICE TO CREDITORS The administration of the estate of VIRGINIA C. WHITCOMB, de- ceased, whose date of death was No- vember 24, 2006 and whose social secuirty number is 418-26-9925, is pending in the Circuit Court for Walton County, Florida, Probate Division, the address of which is 571 U.S. Highway 90 East, DeFuniak Springs, FL 32435. The names and addresses of the per- sonal representative September 13, 2007. Attorney for Personal Representa- tive: /s/ Gary W. Huston Florida Bar No. 044520 Clark, Partington, Hart, Larry, Bond & Stackhouse 125 W. Romana Street, Suite 800 P.O. Box 13010 Pensacola, FL 32591-3010 (850) 434-9200 Personal Representative: /s/ Virginia Kathryn Whitcomb 6127 Woodcrest Drive Tuscaloosa, AL 35404 2tc: September 13, 20, 2007 908G PUBLIC HEARING NOTICE The Walton County Recre- ation Board will hold their regular monthly meeting on Sept. 17, 2007, 6:00 p.m. at the Old Freeport Post Office, 41 Hwy. 20 E., Freeport, FL 32439. The following items are sched- uled to be heard: 1. Chairman Report 2. Managers Report 3. New Business 4. Other In accordance with Section 286.26, Florida Statutes,. 1tc: September 13, 2007 909G NOTICE OF SALE Warren & Lara Simpson P.O. Box 1421 Paxton, FL 32538- LIEN HOLDER Wells Fargo Finc. P.O. Box 250 Effington, Penn. 19029 2005 Dodge Pickup VIN#1 D7HA18N85J506415. ltc: September 13, 2007 for towing and storage fees on the above vehicle. No offers will be taken prior to the day of sale. 1tc: September 13, 2007 912G NOTICE OF ABANDONMENT Notice is hereby given that the City Council of the City of DeFuniak Springs, Florida, intends to abandon that portion of North 8th Street and East Toledo Avenue which is located in the City of DeFuniak Springs, Florida and being more particularly de- scribed as follows: A PARCEL OF LAND LYING IN THE CITY QF DEFUNIAK SPRINGS, . WALTON COUNTY, FLORIDA DE- SCRIBED AS FOLLOWS: COM- MENCE ATTHE INTERSECTION OF THE E R/W LINE OF N 8TH STREET WITH THE S R/W LINE OF TOLEDO AVE. ACCORDING TO THE MAP OF THE VICINITY OF DEFUNIAK SPRINGS BY W. J. VANKIRK, COPY. OF SAID MAP BEING ON FILE IN THE OFFICE OF THE CLERK OF CIRCUIT COURT OF WALTON COUNTY, FLORIDA., SAID POINT ALSO BEING THE POINT OF BE- GINNING; THENCE S0443'46"W 26.00 FT ALONG THE E R/WAN LINE OF N 8TH STREET; THENCE N8446'57"W 8.22 FT; THENCE N04043'45"E 40.00 FT; THENCE S84046'57"E 108.34 FT; THENCE S0513'03"W 14.00 FT TO THE S R/ W LINE OF TOLEDO AVE.; THENCE ALONG SAID R/W LINE N84046'57"W 100.00 FT TO THE POINT.OF BEGINNING. SAID PAR- CEL "B" CONTAINING 0.04 ACRES +/- with the condition that should the structure that is currently located on the portion being abandoned cease to exist, this abandonment shall be come null and void resulting in said aban- doned property reverting back to the City, The City Council shall vote on such abandonment at its regular meeting on September 24, 2007, at 7:00 P.M. at City Hall, DeFuniak Springs, Florida.,. 1tc: September 13, 2007 913G AGENDA A WORKSHOP MEETING SCHOOL BOARD OF WALTON COUNTY, FLORIDA Tivoli Administrative Complex, 145 Park Street, Suite 3, DeFuniak Springs, FL 32435 ' Thursday, September 13, 2007 5:00 p.m. 81 BOARD WORKSHOPS - 81.01 Workshop: Budget Discussion of the Proposed Budget for 2007-2008 Fiscal Year. MARK D. DAVIS Chairman of the Board CARLENE H. ANDERSON Secretary to the Board WEEKLY RACING ROUND UP Lucky Keeton of Toomsuba, MS has all but wrapped up his second straight StormPay.com. Weekly Racing Series West Region Championship, and while Frank Wilson, of Milton, FL., leads the Weekly Racing Series South Region, there is a new challenger in James Ussery, of Cottondale, FL., coming on strong with three weeks remaining in the season. There are three West Re- gion events left on the sched- ule and 30 bonus points available before the season ends on September 30. Keeton has 786 points based on his top 16 finishes in 25 starts with 12 wins. Larry Murphy, of Merid- ian, MS., picked up his first StormPay.com Weekly Rac- ing Series West Region win of the season on Saturday night at Whynot Motorsports Park in Meridian, MS, which moved him up to the second spot in the West Region standings with 691 points based on his.top 16 finishes in 17 starts. ,Brandon Keeton, of Toomsuba, MS., finished sec- ond at Whynot Motorsports Park on Saturday night, and he now rides in third spot in the West Region with 687 points based on his top 16 fin- ishes in 18 starts. This could set up the possibility of a fa- ther and son finishing one- two in the StormPay.com Weekly Racing Series West Region. Frank Wilson leads the StormPay.com Weekly Rac- ing Series South Region with 742 points based on his 16 best finishes in 40 starts and has a 35-point lead over Josh Huss, of Flomaton,AL. Huss is second with 707 points based on his 16 best finishes in 25 starts, and Jonathan Joiner, of Milton, FL., is third with 684 points based on his 16 best finishes in 20 starts. Donald Watson, of Greenwell Springs, LA., took his ninth StormPay.com WRS South Region win of the season on Saturday night at Pike County Speedway in McComb, MS., and is now tied for the fourth spot with Bobby Morrison, of Milton, FL. Each driver has 664 points based on their 16 best finishes. Watson has 19 starts, and Morrison has 29 starts. Joshua Joiner, of Milton, FL., is in the sixth, and final, South Regional Point Fund paying position with 661 points based on his 16 best finishes in 20 starts. Ricky Haugen ,of Pace, FL., is sev- enth with 641 points based on his 16 best finishes in 17 starts, and Richard Guidry, of Port Allen, LA., is eighth with 636 points based on his 16 best finishes in 18 starts. Ussery captured a pair of wins in StormPay.com WRS South Region action over the weekend to vault him into a tie for the ninth spot in the South Region standings with Scott Sessions, of Milton, FL. Ussery took the win on Fri- 91 0G NOTICE OF SALE Dennis Evans 318 S. 22nd St. DeFuniak Springs, FL 32433 1987 Buick Regal VIN#1 G4GM11 Y9HP404040ofida State Statutes, Section 713.78 in order to recover any and all unpaid charges for towing and storage fees on the above vehicle. No offers will be taken prior to the day of sale. 1tc: September 13, 2007 911G NOTICE OF SALE Jennifer Mosley 294 King Lake Rd. DeFuniak Springs, FL 32433 1988 Lincoln Town Car VIN#1 LNBM81 F6Y685330 This auction will be held at Wendall's Wrecker Service at 41 Gillis Rd. De- Funiak Springs, FL 32433 on Septem- ber 20th commencing at 7:00 am. We hereby reserve the right to auction this vehicle according to the Florida State Statutes, Section 713.78 in order to recover any and all unpaid charges SOUTH REGION: CAR # 72 25 56, 52 91 24 22g USA1 53 71 77 17 97 27 18 10 17 11 21 30 POS 1 2 3 4- 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 DRIVER TOTALRACES Frank Wilson 742 40 Josh Huss 707 25 Jonathan Joiner 684 20 Bobby Morrison 664 29 Donald Watson 664 19 Joshua Joiner 661 20 Ricky Haugen 641 17 Richard Guidry 636 18 Scott Sessions 620 29 James Ussery 620 14 ' Michael Santangelo 609 19 Chris Coggin 596 15 Ryan Little 591 17 Danny Joe Thomas 588 15 Will Henderson 574 17 Nathan Ingersoll 560 16 Silas Martin 559 15 Larry Cifra 556 15 Mickey Trosclair Jr. 555 15 Bert Tompkins 540 14 Subscribe Today Visa Mastercard 892-3232 day night Blackman Motor Speedway in Blackman, FL., and posted his ninth win of the season on Saturday night at Southern Raceway i-n Milton, FL. Both Sessions and Ussery have 620 points. Sessions' total is based on his 16 best finishes in 29 starts. The key to Ussery getting into the championship hunt for the South Region title is that he has earned his 620 points in just 14 starts, and he still has two events to earn full points. If Ussery can pull off two wins with a field of 14 cars in his next two starts, he can earn 100 more points. Wil- son, and the rest of the driv- ers in the top ten of the StormPay.com WRS South Region point standings have reached the 16-start mark, and are now netting points, or replacing their worst fin- ish of the season with a higher point finishing posi- tion. . Wilson's three lowest point totals among his 16 best finishes are three 42s, which means he has to fin- ish fourth or better in events with a car count of over 14 in order to net any more points. Ussery's lowest point total in his 14 starts is a 34. If Ussery can win again with a high car count after his 17th start, lie could net another 16 points, and if Wil- son finishes outside the top four, Ussery could move to within six points of Wilson. Ussery's next two lowest point totals are a pair of 40s, so there is a possibility he could net another 20 points. In other StormPay.com Weekly Racing Series South Region action over the week- end, Ryan Little, of Satsuma, AL., picked up his fourth se- ries win of the season on Sat- urday night at Deep South Speedway in Loxley, AL., and Richard Stephens, of Phenix City, AL., won his first South Region event of the season on Saturday night at Butler County Motorsports Park in Greenville, AL. Michael Santangelo ,of St. Rose, LA., took his fifth win of the season on Saturday night at Al Raceway in Slidell, LA., and Stephen Brantley, of Monroeville,AL., won his first South Region event of the season on Sat- urday night in the first of two feature races at Southern Raceway. For a complete rundown of the StormPay.com Weekly Racing Series poiit stand- ings in the South, West, and East Regions, visit, the Points page on the series web site at. SOUTHERN RACEWAY - MILTON, FL: 1sT Feature: 1. 02 Stephen Brantley. 2. 58 Larry Boutwell 3. 56 Jonathan Joiner 4. 2 Bo Slay 5. 71 James Ussery 6. 7 Calvin Cook 7. 72 Frank Wilson 8. 31 Craig Turner 9. 27 Danny Joe Thomas 10. 23 Sean Hickerson 11. 54 Mike Head 12. 12 Scott Sessions 13. 52 Bobby Morrison 14. 00 Chris Hoomes 15. 22g Ricky Haugen 16. 24 Joshua Joiner 17. 37 Martin Tucker 18. 47 Steve Church 19. 82 Russell Flynn 20. 39 John Melton 21. 25JoshHuss 22. 95 Jesse Barnhill 2nd Feature: 1. 71 James Ussery 2. 72 Frank Wilson 3. 02 Stephen Brantley 4. 95 Jesse Barnhill 5. 56 Jonathan Joiner 6. 31 Craig Turner 7. 54 Mike Head 8. 22g Ricky Haugen 9. 2 Bo Slay 10. 00 Chris Hoomes 11. 82 Russell Flynn 12. 27 Danny Joe Thomas 13. 7 Calvin Cook 14. 23 Sean Hickerson 15. 47 Steve Church 16. 53 Scott Sessions 17. 52 Bobby Morrison 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/UF00028316/00140 | CC-MAIN-2014-10 | refinedweb | 54,802 | 72.87 |
Knative was recently accepted as a CNCF incubation project and there are so many exciting things about it(!), one of them being the evolution and adoption of its components. Through this blog, we will be looking at one such component -
func plugin; creating a function in
go runtime in our local machine and then pushing it to a github repository and finally initiating its deployment. Once the function is deployed, we will be provided with a URL through which we can access it.
The expectation out of this is for a developer to get as comfortable as possible with writing functions, and essentially reach a point where they no longer have to worry about low level k8s resources (and ops in general). This would also mean that to run our code in a k8s cluster, we'd essentially need to run just one command.
Prerequisites
A v1.21 k8s cluster or later versions. It is possible to run this blog on older versions, but for that, knative and tekton versions will have to be installed accordingly - check their releases for more details.
Warning: This blog requires administrator privileges on the k8s cluster, and the function builds happen on privileged containers.
Installing Knative and Tekton
Knative has many components but for this blog we will stick to serving which is the only component required to run functions and enable features like deployment, scaling, ingress configuration - basically the component that helps with the lifecycle of a function.
For installation refer to installing Serving documentation or run the following commands:
- kubectl apply -f
- kubectl apply -f
- kubectl apply -f
- kubectl patch configmap/config-network \ --namespace knative-serving \ --type merge \ --patch '{"data":{"ingress.class":"kourier.ingress.networking.knative.dev"}}'
For this blog we are going to use slightly changed
funccli (which usually can be installed from kn-pluging-func releases), so we can clone the forked repo and run
make installto generate the binary, and use it like any other cli. This change is still a WIP in upstream, to know more about it, you can follow this issue and this pr.
To install Tekton Pipelines refer to Tekton Pipelines documentation or run the following command:
kubectl apply -f
Check that both Knative Serving and Tekton Pipelines components are running by checking the status of pods in
knative-serving and
tekton-pipelines namespaces.
Writing the function
Following command will create a local repository
kcd-chennai containing the function signature in
handle.go and the function configuration parameters in
func.yaml.
$ func create -l go kcd-chennai Created go Function in /home/shashank/kcd-chennai $ ls func.yaml go.mod handle.go handle_test.go README.md
Now we can edit the
handle.go file to add our custom code like this:
package function import ( "context" "fmt" "net/http" ) // Handle an HTTP Request. func Handle(ctx context.Context, res http.ResponseWriter, req *http.Request) { fmt.Println("received a request") fmt.Fprintln(res, "Hello from KCD Chennai! Read more about us here:") // Send KCD community link back to the client }
Info: Notice that we didnt have to write most of the go code that we'd usually write, we simply just added our business logic.
This is an
http template, but there is also a
cloudevent template which is more relevant in the world of FaaS and serverless, but out of scope for this blog.
Building the function
Now we will see, how we can build this code and deploy it on kubernetes and successfully invoke it using a URL.
Building locally
We can run the following command:
$ func deploy
Our function is now available on the URL.
To access this URL from outside the k8s cluster, ideally we'd need the
kourier service in
kourier-system namespace to have a discoverable
ExternalIP, but for this blog we can try to hit the function URL from within the cluster using the following two commands:
export ingressIP=$(kubectl get svc kourier --namespace kourier-system -ojsonpath='{.spec.clusterIP}') curl $ingressIP -H "Host: kcd-chennai.default.example.com"
Info: It's possible to configure the hostname of this function to a custom value, or to even explicitly make the function private to our cluster and then access it using (we can also use this URL to access the function instead of the above 2 commands).
Building from github repo on-cluster
To do this, we'd need to push our local code to a github repo and create some tekton resources as describe below, tekton being a cloud native CICD system, will use those resources to run a pipeline for things like - cloning our code, building it and then deploying the function.
Warning: We'd need persistent volume claims to be working in our cluster, since the code will be cloned in there.
For tekton to do its job, we need to run following commands:
- kubectl apply -f
- kubectl apply -f
- kubectl apply -f
Next we have to change the configuration in
func.yaml to look like this:
build: git git: url: revision: master
Now, run the following command:
$ func deploy
Follow the video below to see the progress of build and how we can access the function.
Inherent function features from Knative
Since the functions are running with knative serving layer, it leverages some of the features listed below (non exhaustive):
- autoscaling on the basis of rps/concurrency.
- automatic ingress configuration, we use tls as well.
- scale to and from zero by default.
- can work with many languages like go, python, rust, node, springboot etc.
- readiness and liveness probes configured automatically for functions.
- no need to create service, deployment and other resource files with labels, ports etc.
- easier and faster deployments.
- prometheus metrics like
http_requests_totalwith respective response codes are exposed.
- traffic splitting, progressive rollouts available.
- ability to handle unstable windows, sudden traffic bursts with scaling configuration.
- easy integration with an event driven architecture because of the usage of cloudevents.
- more secure deployments because function builds use Buildpacks under the hood.
- by using Tekton for builds, we can easily configure the pipeline to add features like cloning code from a private github repo and more.
Things you can explore as a follow-up to get more comfortable with what we did in this blog:
-
-
-
-
-
If you got stuck at any of the steps in the blog or want to report any issues, feel free to ping me (Shashank Sharma) in the knative slack - thanks!
Discussion (0) | https://practicaldev-herokuapp-com.global.ssl.fastly.net/kcdchennai/building-functions-with-knative-and-tekton-php | CC-MAIN-2022-33 | refinedweb | 1,066 | 50.97 |
sl_se_command_context_t Struct Reference
SE mailbox command context.
#include <sl_se_manager_types.h>
SE mailbox command context.
This structure defines the common SE mailbox command context used for all SE Manager API functions that execute SE mailbox commands. The members of this context structure should be considered internal to the SE Manager and should not be read or written directly by the user application. For members that are relevant for the user, the user can access them via corresponding set and get API functions, e.g. sl_se_set_yield().
Field Documentation
◆ command
SE mailbox command struct.
◆ yield
If true, yield the CPU core while waiting for the SE mailbox command to complete.
If false, busy-wait, by polling the SE mailbox response register. | https://docs.silabs.com/gecko-platform/latest/service/api/structsl-se-command-context-t | CC-MAIN-2022-40 | refinedweb | 118 | 56.86 |
Hi,
This is my latest version of Ext.ux.form.MultiSelectField (for ExtJS 3.x)
Ext.namespace("Ext.ux.form");
/**
* @class Ext.ux.form.MultiSelectField
* @extends Ext.form.TriggerField
*....
Thanks existdissolve
Plugin to enable a context menu for the grid cells, configured according to the data of each cell.
Please refer to code documentation to discover plugin features and capabilities.
Source code...
Where do I can get some documentation about this event ? I've looked directly into source code (through API docs) but I didn't find any information about "cellclick" event on Ext4 grids or views.
Thanks. Code updated on first post of this thread. | https://www.sencha.com/forum/search.php?s=e40d7eba369bd4d83540d52637e27398&searchid=19530670 | CC-MAIN-2017-34 | refinedweb | 106 | 52.76 |
<ac:macro ac:<ac:plain-text-body><![CDATA[
<ac:macro ac:<ac:plain-text-body><![CDATA[
Zend_File_Transfer is a component to handle File Up- and Downloads within the Zend Framework in a standardized way. No requirements...
But to receive upload-processing informations a pecl extension and minimum PHP 5.2 is needed.
Zend Framework: Zend_File_Transfer Component Proposal
Table of Contents
1. Overview
2. References
3. Component Requirements, Constraints, and Acceptance Criteria
Otherwise the class can not provide the processing information.
<ac:macro ac:<ac:plain-text-body><![CDATA[
Zend_File_Transfer is a component to handle File Up- and Downloads within the Zend Framework in a standardized way.
Zend_File_Transfer is a component to handle File Up- and Downloads within the Zend Framework in a standardized way.
No requirements...
But to receive upload-processing informations a pecl extension and minimum PHP 5.2 is needed.
4. Dependencies on Other Framework Components
- Zend_Exception
5. Theory of Operation
This component is meant to handle file up- and downloads within the Zend Framework. Is should provide an simple and generic way for all users. Several tasks are possible:
- Upload multiple files
- Set validators
- Set filters
- Set paths
- Rename files
- Provide a way to get the download progress data for the handled
files (could be limited to 5.2)
- Wrapper for downloads
- Different adapters for HTTP POST, WEBDAV, FTP, AJAX and so on...
6. Milestones / Tasks
- Milestone 1: [FINISHED] Proposal finished
- Milestone 2: [FINISHED] Proposal accepted
- Milestone 3: Working release
- Milestone 4: Unit tests
- Milestone 5: Documentation
- Milestone 6: Future enhancements
7. Class Index
- Zend_File_Transfer_Exception
- Zend_File_Transfer
- Zend_File_Transfer_Protocol
- Zend_File_Transfer_Protocol_Http
- Zend_File_Transfer_Procotol_Ftp
- Zend_File_Transfer_Procotol_WebDav
- Zend_File_Transfer_Procotol_Ajax
8. Use Cases
Default for transfer is http download. This code shows the simplest way to have downloads integrated.
Validators can be used to check several options of files which are loaded. Validators could possibly be Zend_Validate validators... but this would be checked at time of integration. Not sure if this would fit all needs. But Zend_File_Transfer will integrate several own validators like FileSize, FileExtension, MimeType and so on...
Validators can also be set for single files, or for all. Also isUploaded can check for all or single files. Of course the API supports fluid interface where applicable.
With filters it is possible to change content of downloaded files before they are stored. Doublicate transfered files to a second directory, or change content with self written filters in this example change linebreaks of textfiles from unix to windows. Several filters are thinkable.
Also other adapters can be used. In our example http put, but also other adapters like FTP, WEBDAV or AJAX will be integrated. Within all adapters the API will be the same.
The API can also be used for downloads. It will work as wrapper so the user does not see where the original files is located and ZF will send the file to the user.
All adapters use the same API... here WebDav
There is also an idea of creating an Ajax adapter which would make it possible to upload files in a form while the user has not to wait until the upload is finished and can work on the form or make other things while the file is uploaded in background with ajax. Also the status (amount of downloaded files, progress and so on) is avaiable to the user while the upload is in progress and can be displayed to him as additional information.
Actually there is no code because this will also have to be integrated in the form or the view the user get's displayed.
103 Commentscomments.show.hide
Apr 27, 2007
Matthew Ratzloff
<p>a) How is this easier than using the native functions?<br />
b) When I have multiple file uploads, often I want to move them to different locations<br />
c) If this were to be adopted, shouldn't it maybe be <code>Zend_File_Upload</code> instead?</p>
Apr 27, 2007
Thomas Weidner
<p>a) Until now I often saw people creating own classes for handling file uploads... I just wanted to give a standard way for ZF users... as with all other ZF classes... you dont need to use them if you do not want to... My opinion is that a standard way is better than no way with everybody cooking his own soup.</p>
<p>b) This is supported... see setDestination/move... for each file or a collection of files a destination can be set</p>
<p>c) It was your name-cousine (Matthew-Weier-O'Phinney) who choose the name in january... see ZF-818<br />
Zend_File_Upload expects the user to have other file manipulating classes like _Download _Compress _Copy and so on... I am not related to Zend_Update... I just wanted to have a simple, small name and this one was already written several times ago within the mailing list</p>
Apr 27, 2007
Matthew Ratzloff
<p>Re: c) Matthew's opinion isn't a divine writ. <ac:emoticon ac: In any event, he said "Zend_Upload (or similarly named)".</p>
<p>I anticipate other <code>Zend_File</code>-related classes (in fact, I am developing some now in conjunction with my as-yet unproposed <code>Zend_Io</code>). Makes sense to plan for the future instead of having related classes all over the place.</p>
Apr 29, 2007
Thomas Weidner
<p>I already mentioned that I am not related to Zend_Upload...<br />
I just want to serve the functionallity to the Zend Framework.</p>
<p>But what you wrote is quite confusing to me... <ac:emoticon ac:<br />
On one side you wrote "shouldn't it be Zend_File_Upload instead"<br />
and on the other side you wrote "you anticipate other Zend_File related classes".<br />
What about Zend_Http_Client_Form_Download_Multiple_Files_With_This_Class ? <ac:emoticon ac: <ac:emoticon ac:</p>
<p>But however we name it, are there any neg's for providing a standardized way of handling file uploads ?? (and maybe file downloads in the future) <ac:emoticon ac:</p>
May 02, 2007
Matthew Ratzloff
<p>Don't get me wrong; I'm in favor of this class. It would replace my own file upload class. It's just been said again and again that classes that wrap PHP functions without adding value (beyond object-orientation) won't be approved for inclusion. If this is approved, this class pushes the door open for the inclusion of other wrapper classes.</p>
May 03, 2007
Andries Seutens
<p>Thomas, I like it as is. No more further suggestions. <ac:emoticon ac:</p>
May 03, 2007
Andries Seutens
<p>One comment:</p>
<p>Zend_Upload's constructor is still PHP-4 style (using the class name), but that's a minor issue __construct would be more suitable.</p>
May 03, 2007
Thomas Weidner
<p>Of course you are right <ac:emoticon ac:<br />
Blame on me <ac:emoticon ac:</p>
May 04, 2007
Sylvain Philip
<p>I have ever made my own upload class to extend Zend Framework and I use it like this (very similar than you):</p>
<ac:macro ac:<ac:plain-text-body><![CDATA[
try
catch (Smoos_Http_Upload_Exception $e) {}
]]></ac:plain-text-body></ac:macro>
<p>I can manage if extention are accepted or not not accepted...</p>
<p>Also, why not Zend_Http_Upload ?</p>
Jul 11, 2007
Florian Sonner
<p>a) I would prefer Zend_Http_Upload too..</p>
<p>b) Did you took file-arrays in consideration? "<input type="file" name="name[]" />" ..</p>
<p>c) Maybe it's possible to use Zend's Filters and Validators for file-name-validation - but on the other hand this might bloat the class.. <ac:emoticon ac:</p>
<p>c) I like your current ideas for methods, but I would prefer a bit more control over file-handling. Hence I would propose a more object-style structure:</p>
<ul>
<li>Zend_Http_Upload (or whatever the final package will be)</li>
</ul>
<ul>
<li>Zend_Http_Upload_Group<br />
Primary used to group files with same options to make validation easier. As example: You want an upload-form with 20 files, where 10 should be .doc with a maximum filesize of 10kb and 10 should be images with a max. filesize of 100kb, you can use this class to make 2 groups with the specific settings.</li>
</ul>
<ul>
<li>Zend_Http_Upload_File<br />
Like "Group", but on a per-file base. This class can be passed to "Upload" and "Upload_Group" instead of field-names. The developer can define some settings (max filesize, allowed filetypes) here, as well as in "Upload" and "Upload_Group".<br />
This class could also be extended, to include support for some more specific cases - e.g. "Upload_File_Image" could be easily written to validate images (their types, their size, etc.).<br />
For this, there will be the need to return some usefull error-information to developers, so they know why a file is not valid.</li>
</ul>
<p>Thus there will be three layers of validations. On global scope ("Upload"), on a per-group scope ("Upload_Group") and on a per-file scope ("Upload_File").</p>
<p>This would be really complicated and bloated if you simply want to check if a file is within a specific filesize, so it should be possible to use just the first layer (see examples below).</p>
<p>I'm currently not a registered developer here, but if these ideas turn out to be useful I could help, if help is needed. <ac:emoticon ac:</p>
<p><strong>Some examples</strong></p>
<p>Simplest validation-example:</p>
<ac:macro ac:<ac:plain-text-body><![CDATA[
$upload = new Zend_Http_Upload();
// alternative syntax: addFile(new Zend_Http_Upload_File('docfile'));
$upload->addFile('docfile');
// set max size for all files (in byte)
$upload->setMaxTotalSize(100000);
// set max size for a single file ('docfile' can just be 50kB big, not 100kB)
$upload->setMaxSingleSize(50000);
// syntax from Sylvains class
$upload->setValidExtensions(array('doc', 'odt', 'xml'), 'accept');
// catch all errors from all files at once (constant randomly named)
if($upload->isValid() != UPLOAD_ERROR_NONE) {
// display error..
} else {
// process upload..
}
// catch just errors from 'docfile' (in our case this is like the first example)
if($upload->docfile->isValid() != UPLOAD_ERROR_NONE) {
// display error..
} else {
// process upload..
}
]]></ac:plain-text-body></ac:macro>
<p>A bit more complicated example:</p>
<ac:macro ac:<ac:plain-text-body><![CDATA[
$upload = new Zend_Http_Upload();
// init new image-upload
$image = new Zend_Http_Upload_File_Image('photo');
// image can just have a filesize of 100000 byte
$image->setMaxSize(100000);
// set min and max image size (using image-functions)
$image->setMinDimension(100, 100);
$image->setMaxDimension(500, 500);
$upload->addFile($image);
$photoValid = $upload->photo->isValid();
if($photoValid == UPLOAD_ERROR_IMG_MINSIZE) {
// error no. 1
} else if($photoValid == UPLOAD_ERROR_IMG_MAXSIZE) {
// error no. 2
} else if($photoValid != UPLOAD_ERROR_NONE) {
// general error
} else {
// proccess upload..
}
]]></ac:plain-text-body></ac:macro>
Jul 12, 2007
Vincent Dupont
<p>hi,</p>
<p>this is a good idea I think...</p>
<p>Do you check the file type on the file extension, or on the mime type?<br />
(does this question make sense?)</p>
<p>vincent</p>
Jul 12, 2007
Florian Sonner
<p>If your comment was a reply to mine:</p>
<p>Since the methods name is "setValidExtensions(..)", the method just checks the file-extension. Because the mime-type can be changed on the browser-side, it's maybe a better idea to rely on an extension-check (<a href=""></a>, <a href=""></a>). The extension might be changed as well, but on a normal server (which just parse .php as PHP) a changed extension will also stop the server to parse the file. Are there other security issues which should be taken into consideration?</p>
<p>Greetings, Florian</p>
Jul 30, 2007
Nicolae Dima
<p>1) In my opinion validating a file name by its extension is not the safest way to handle file uploads.</p>
<p>2) I must agree that Matthew Ratzloff is write better rename it Zend_File_Upload because probably in the future many operations with files will be implemented (for sure archiving would be a good idea).</p>
<p>3) The third thing that i don't understand is the if chains:</p>
<p>if($photoValid == UPLOAD_ERROR_IMG_MINSIZE) {<br />
// error no. 1<br />
} else if($photoValid == UPLOAD_ERROR_IMG_MAXSIZE) {<br />
// error no. 2<br />
} else if($photoValid != UPLOAD_ERROR_NONE) {<br />
// general error<br />
} else {<br />
// proccess upload..<br />
}</p>
<p>Can this be avoided? </p>
Aug 06, 2007
Thomas Weidner
<p>to 1)<br />
This is just one way to limit given files.</p>
<p>In the proposal is also another way with the "addCheck" function which acts as callback to an self-defined checking function.</p>
<p>How the upload is checked depends on the checks you apply to the instance.</p>
<p>to 2)<br />
No... better is "Zend_Http_Upload" as already stated before. As this class is not meant to handle FTP or UDP or other fileuploads...<br />
It's designed as extension to Zend_Http.</p>
<p>to 3)<br />
First... never use if-chains... we have a "switch - case" statement within php <ac:emoticon ac:<br />
Second... in my proposal I never stated that I will return a "UPLOAD_XXX_ERROR_CONSTANT"...</p>
<p>What you will get is a "true" or "false" on the isxxx functions.<br />
Or an exception when processing the files.</p>
<p>And in my opinion an exception is the right way for the framework.</p>
Jul 30, 2007
Nicolae Dima
<p>Another thing, i saw that $files->setOptions will receive an array, this may create a confusion because there are to many parameters and you are forcing someone to remember all, in my opinion the method should set the parameters but should receive only two values, key and value. It would be easier to check for consistency.</p>
Aug 06, 2007
Thomas Weidner
<p>No, I dont agree with you, because almost all classes within the framework use arrays as options parameter.</p>
<p>See Zend_Date, Zend_Db, Zend_Filter, Zend_Session, Zend_Translate and many other classes.</p>
<p>Having scalar values as input would mean that you have to call the same method several times to set all wished options.</p>
<p>With Arrays you can have all your options stored within an config array (Zend_Config) and simply give this array.</p>
Jul 30, 2007
Felipe Ferreri Tonello
<p>I agree with this idea, to make a Zend Upload object.<br />
I belive is better to rename it Zend_Http_Upload, cuz we need to remember that maybe will be a Zend_Ftp_Upload.</p>
<p>Nicolae,<br />
Your 1) topic is very interesting, I must agree with that.</p>
Aug 06, 2007
Thomas Weidner
<p>As already written to Nicolae...<br />
What is checked depends on the restrictions you give for the upload.</p>
<p>Restrictions can for example be:</p>
<ul>
<li>Name</li>
<li>Type</li>
<li>Size (max, min)</li>
<li>Mime</li>
<li>If it already exists</li>
<li>...</li>
</ul>
<p>You can even apply an selfwritten check with "addCheck" if you for example have to check if your image includes a watermark <ac:emoticon ac:</p>
<p>If you dont restrict the filetype it will not be checked.</p>
Aug 10, 2007
Felipe Ferreri Tonello
<p>Yes, there are a lot of ways to restrict the archive.</p>
<p>I don't understand this "addCheck". You are saying that you can includes a watermark in the uploaded image?<br />
But, this is more work then Zend_Http_Upload tasks. I think that one Zend_Image can do that?</p>
<p>By the way, when Zend_Http_Upload will be integrate to the ZF?</p>
Aug 10, 2007
Thomas Weidner
<p>You can think of the addCheck Method as a hook where you can plug in self created checker-functions.</p>
<p>This could be a watermark-check, a regex-based filename check or something completly different. It depends on what you want to check...<br />
Maybe it will also provide the possibility to change the content of the file before storing it to the server... I haven't finished thinking of all pro's and con's.</p>
<p>Related to "when it will be integrated"...</p>
<p>Until now I had not the time to finish my thoughts about this proposal.<br />
Any I am not sure if it will be accepted in the actual state.<br />
This is related to Matthews comment at 2.May.2007 about adding enough value.</p>
Nov 20, 2007
Marcin Lewandowski
<p>Hi,</p>
<p>Is this good coding practice? This code in progress...</p>
<ac:macro ac:<ac:default-parameter>php</ac:default-parameter><ac:plain-text-body><![CDATA[
class Zend_Http_Upload
{
/**
*/
const ACTION_REPLACE = 'replace';
/**
*/
const ACTION_ERROR = 'error';
/**
*
*/
protected $_files = array();
/**
*
*/
public function __construct($files = null, array $options = array())
/**
*
*/
public function addFile($file, array $options = array())
/**
*
*/
public function addFiles($files, array $options = array())
/**
*
*
*/
public function setOptions(array $options = array())
/**
*
*/
public function setMaxSize($size, $files = null)
{
foreach ($this->_files as $field => $options) {
if (is_array($files) && !in_array($field, $files))
$this->_files[$field]['maxsize'] = $size;
}
}
/**
*
*/
public function setFileType($type, $files = null)
{
foreach ($this->_files as $field => $options) {
if (is_array($files) && !in_array($field, $files))
$this->_files[$field]['filetype'] = $type;
}
}
/**
*
*/
public function setDestination($destination, $files = null)
{
foreach ($this->_files as $field => $options) {
if (is_array($files) && !in_array($field, $files))
$this->_files[$field]['destination'] = $destination;
}
}
/**
*
*/
public function setExists($action, $files = null)
{
foreach ($this->_files as $field => $options) {
if (is_array($files) && !in_array($field, $files))
$this->_files[$field]['exists'] = $action;
}
}
/**
*
*/
public function move()
{
foreach ($this->_files as $field => $options) {
if (!isset($_FILES[$field]))
(...)
$path = $options['destination'] . DIRECTORY_SEPARATOR . $_FILES[$field]['name'];
if (!@move_uploaded_file($_FILES[$field]['tmp_name'], $path))
}
}
}
]]></ac:plain-text-body></ac:macro>
Nov 21, 2007
Thomas Weidner
<p>Actually this proposal is reviewed by the Dev-Team.</p>
<p>I tend to begin coding when an proposal has approved because I dont want to have more work than nessesary. Therefor I did not include code for now...</p>
<p>The problem is that when everyone uses your code before the proposal has approved and there is a change then all users have the problem that their code would not work anymore.</p>
<p>Because they believe that you are the author which is not true <ac:emoticon ac:</p>
<p>Actually there are enough "pre-classes" out there in several forums that it is not nessesary to include unofficial code here in my opinon.</p>
<p>If this proposal is accepted I would be able to have my code included within the incubator.</p>
<p>Related to your code:<br />
There are only some small issues, for example defining constants which are not in use, or the constructor.</p>
<p>So I am waiting for approvement from the dev team and I have not stopped working on this one. <ac:emoticon ac:<br />
Please do not add code here or use this code. You will expect problems after this class is officially finished and the API does not match.</p>
Nov 21, 2007
Thomas Weidner
<p>PS:<br />
It would be better to force the dev-team to accept this proposal or give an statement about possible problems. <ac:emoticon ac:</p>
Dec 13, 2007
Jon Whitcraft
<p>Hello,</p>
<p>I am wondering if you are going to make it so that different back ends can be set with the file upload as in my case I don't need to save it to the local file system as we have a holding server that holds all the upload that get a approved.</p>
<p>So what I do after I process the file to make sure it's valid is use ftp to move it to my holding server. Would this be a possibility to do? I think it would add a lot to the component.</p>
Dec 13, 2007
Thomas Weidner
<p>I don't quite understand what you mean or where you think that a problem with the API is...</p>
<p>Because when PHP receives a fileupload it is stored internally within the specified temporary path. <br />
And to get it out of there you have to move it.</p>
<p>And within the API you can see that you can specify the destination for each file with the move() method.</p>
Dec 17, 2007
Marcos Gil Fuertes
<p>Hi Thomas,</p>
<p>I like your proposal and hope it's accepted, since it seems useful and ZF needs a component like this.</p>
<p>I'm trying to implement it as I already need it for an application, and got some questions:</p>
<p> 1. Do you agree Marcin Lewandowski's implementation of files and options? (not talking about the code, but about the schema) I was thinking about another property for "general" options:</p>
<ac:macro ac:<ac:plain-text-body><![CDATA[protected $_options = array();]]></ac:plain-text-body></ac:macro>
<p> 2. About the 'move' method, is it supposed to call 'isUploaded' before trying to move?</p>
<p> 3. More about 'move'. What is the first argument used for?</p>
<ac:macro ac:<ac:plain-text-body><![CDATA[@param String]]></ac:plain-text-body></ac:macro>
<p>vs.</p>
<ac:macro ac:<ac:plain-text-body><![CDATA[$files->move('C:\path\to\put\files');]]></ac:plain-text-body></ac:macro>
<p> 4. Must the 'isUploaded' method check for restrictions? Or does it only check 'isset($_FILES<ac:link />)'?</p>
<p> 5. What will the 'check' method do? (if you thought about it) Checking restrictions and calling the 'check function' if set? What about the callback function?</p>
<p> 6. What about moving/copying uploaded file/s to multiple destinations? For example, you may need several copies of an image or maybe replicating the file into another server...</p>
<p>Thank you very much!</p>
Dec 17, 2007
Thomas Weidner
<blockquote><p>I like your proposal and hope it's accepted, since it seems useful and ZF needs a component like this.</p></blockquote>
<p>Hopefully I will get response from the dev-team until new year.</p>
<blockquote><p>I'm trying to implement it as I already need it for an application, and got some questions:</p></blockquote>
<p>There are a few implementations out there, but non from me because I didn't want to anticipate the decision from the dev-team.</p>
<blockquote><p>Do you agree Marcin Lewandowski's implementation of files and options? (not talking about the code, but about the schema) I was thinking about another property for "general" options:</p></blockquote>
<p>Yes and no...<br />
There will be an internal options array, and it will be protected.<br />
But it will not look like Marcin's one.</p>
<p>Keep in mind:<br />
Options in this place will be class-wide options, and not single-file options !</p>
<blockquote><p>About the 'move' method, is it supposed to call 'isUploaded' before trying to move?</p></blockquote>
<p>There will be several checks before we really "move" the file.<br />
One of it is the isUploaded method.</p>
<blockquote><p>More about 'move'. What is the first argument used for?</p></blockquote>
<p>You can define that only special files instead of all are moved.<br />
And you can define a new location for these files....</p>
<p>f.e.<br />
// all other files are ignored or can be moved in a later move operation<br />
$load->move(array('file1' => 'C:\mylocation\filex', 'file2' => 'C:\mylocation\filey'));<br />
// define a new location for all files<br />
$load->move('C:\mylocation');</p>
<blockquote><p>Must the 'isUploaded' method check for restrictions? Or does it only check 'isset($_FILES<ac:link />)'?</p></blockquote>
<p>isUploaded is only one of the checks which will be avaiable...<br />
And as the name says, it does only check if the file has been completely uploaded.</p>
<blockquote><p>What will the 'check' method do? (if you thought about it) Checking restrictions and calling the 'check function' if set? What about the callback function?</p></blockquote>
<p>It adds common checks like filesize, extension, and so on...<br />
And gives the ability to work as callback to own functions which check or even change content of uploaded files.</p>
<p>Until now I am not sure if I will add several functions one for each check or if I collect them together and run them through options.</p>
<blockquote><p>What about moving/copying uploaded file/s to multiple destinations? For example, you may need several copies of an image or maybe replicating the file into another server...</p></blockquote>
<p>See move()...<br />
How the method works depends on the set options.</p>
<p>Just keep in mind that the real implementation can be different from what you think, and you may need to adopt your code afterwards.</p>
<p>Greetings<br />
Thomas<br />
I18N Team Leader</p>
Dec 17, 2007
Marcos Gil Fuertes
<p>Thank you, Thomas.</p>
<p>About the first argument of 'move', will it be possible to be called like this?</p>
<ac:macro ac:<ac:plain-text-body><![CDATA[$load->move('file1');]]></ac:plain-text-body></ac:macro>
<p>I mean, destination will be taken from the options.</p>
Dec 17, 2007
Thomas Weidner
<p>Only if 'file1' is a downloaded file or a identifier.<br />
Otherwise it would be treated as new target.</p>
<p>Maybe switchable through generic options.</p>
Dec 17, 2007
fc
<p>Hi Thomas,</p>
<p>I like the API and I think the framework needs this class. The API is simple and consistent with other classes. It would nice if you could specify a protocol, and allow that object to handle the moving of the file. Because users might need to upload files using http (from local drive to server 1) or using ftp (from server 1 to server 2). </p>
<p>Something like this for example:</p>
<ac:macro ac:<ac:plain-text-body><![CDATA[
Zend/
Upload/
Protocol/
Abstract.php
Exception.php
Http.php
Abstract.php
Exception.php
Document.php
Image.php
Video.php
]]></ac:plain-text-body></ac:macro>
<p>In the example below $upload->file holds the protocol object and handles the adding and copying of the files.</p>
<ac:macro ac:<ac:default-parameter>php</ac:default-parameter><ac:plain-text-body><![CDATA[
$upload = new Zend_Upload_Document();
$upload->setProtocol(new Zend_Upload_Protocol_Ftp());
$upload->setMaxSize(60000);
$upload->setFileType('pdf', 'doc'); // must be a mime type
$upload->file->add('document1', array('source' => '\remote\documents', 'destination' => '\local\documents'));
$upload->file->add('*', array('source' => '\remote\documents', 'destination => '\local\documents'));
try {
$upload->file->move();
} catch (Zend_Upload_File_Exception $e) {
// Files not uploaded or other problems
}
]]></ac:plain-text-body></ac:macro>
Dec 17, 2007
fc
<p>So if the protocol object handles the moving of the file, you can pass a directory or a connection array as parameter, eg:</p>
<ac:macro ac:<ac:default-parameter>php</ac:default-parameter><ac:plain-text-body><![CDATA[
// ftp object
try {
$upload->file->move($server, $user, $pass);
} catch (Zend_Upload_File_Exception $e) {
// Files not uploaded or other problems
}
// http object
try {
$upload->file->move($path);
} catch (Zend_Upload_File_Exception $e) {
// Files not uploaded or other problems
}
]]></ac:plain-text-body></ac:macro>
Dec 18, 2007
Thomas Weidner
<p>See my generic reply...</p>
<p>Related to your testcode I see some problems which I would not solve like you:</p>
<ul>
<li>A downloadclass for each mime type - too complicated</li>
<li>Set the protocol by initiating new class - too complicated</li>
<li>File adding / source - destination - has to be simplified</li>
<li>Move with ftp connection settings - problematic, only one server allowed</li>
</ul>
<p>My implementation will add more usability and would be simpler in it's handling.</p>
Dec 18, 2007
Thomas Weidner
<p>It would be no problem also to support other mechanism than HTTP.<br />
HTTP, FTP, FILE, SOCKET,... whatever.</p>
<p>BUT:<br />
I was told that Zend_Upload is not a proper name so I had to rename it to Zend_Http_Upload.<br />
This does also mean that in this case other protocols are not supported.</p>
<p>IF we allow also to support other transport machanism, we MUST rename it back to Zend_Upload as I proposed original.</p>
<p>It would be great if we could add a generic uploader class, not only supporting HTTP but also other mechanism. But the general decision is on the dev-team, and I did not hear anything since several months.</p>
Dec 18, 2007
fc
<p>Yes, I agree. If it's just for HTTP uploads, then Zend_Http_Upload is fine. And what about having specific methods based on the file type, for example:</p>
<ac:macro ac:<ac:plain-text-body><![CDATA[
Zend/
Http/
Upload/
Abstract.php
Document.php
Exception.php
Image.php
Video.php
...
]]></ac:plain-text-body></ac:macro>
<p>That way, you could add a _convertLineBreaks() method to Zend_Http_Upload_Document, in case you want to convert Mac and/or PC line breaks to UNIX, or any other method specific to the file type that the user is uploading.</p>
<p>From the usability point of view, like I said before, your API is simple and easy-to-use. And that's always a plus.</p>
Dec 18, 2007
Thomas Weidner
<p>Basically this is a decision of the community.<br />
If there is a need for other protocols, I could also implement Zend_Upload.</p>
<p>We will clearify this in the next days.</p>
<p>Related to Document/Image and so on...<br />
First: This is no good seperation, because there are several document types out there and each one has to be handled different. This should depend on the mime typ or a user-selection.</p>
<p>Second: As I wrote in a comment before it is no problem to have own checks implemented. A check does not only mean to proove something, it could also mean to change something. So maybe the name "check" is not the right, but the mechanism of a self defined callback function should be clear.</p>
<p>Third: I am not so sure if we should implement file-changing functionality within an uploader class. Why should Zend_Upload change the content, for example strip the first three lines, and store the file elsewhere and say "it's uploaded"... </p>
<p>Of course it sounds a good idea, and it's already been discussed in the past.</p>
<p>Still there is no solution:<br />
Pro: New amazing functionality<br />
Con: No one would expect "upload" to change content</p>
Dec 18, 2007
fc
<ac:macro ac:<ac:plain-text-body><![CDATA[Hi Thomas, yes, good point.
About the Document/Image/Video separation. Is more like a grouping of mime-types. Yes, basically you are separating them into groups. Well, at least that's how I'm doing it. Each group defines its mime-types and adds its own options based on that. For example:
All the generic options are in Zend_Http_Upload_Abstract, and the mime-type specific options in Zend_Http_Upload_
.
I'm not saying that this is right or wrong, I'm just brainstorming some ideas.
]]></ac:plain-text-body></ac:macro>
Dec 19, 2007
fc
<p>Other thoughts on using classes to group type of files:</p>
<p>1. addFile($file, array $options = array()) can be an abstract method inside Zend_Http_Upload_Abstract, this will allow other subclasses add its own options and methods.</p>
<p>2. The name Zend_Http_Upload_Image, for example, improves usability and simplifies the interpretation of the class managing the upload. A user knows what type of files are being uploaded by looking at the API (if the class injects the dependency), or by looking at the code itself.</p>
<p>3. The convertLineBreaks() was just an example, what if the developer wants to add a method to deal with a specific mime-type, is he/she going to add it to is not Zend_Http_Upload or Zend_Http_Upload_Abstract? It's much better if it's added to a subclass.</p>
<p>3 points to consider.</p>
Dec 19, 2007
Thomas Weidner
<p>These are detailed which I don't want to discuss in detail.<br />
As long as there is no decission about the supported protocol this is useless in my eyes.</p>
<p>A user should never add functions to a framework class. This is a useless discussion. There are standardized framework wide ways which will be implemented.</p>
Dec 19, 2007
fc
<p>Every comment, idea and opinion is always useful, believe me.</p>
Dec 19, 2007
Thomas Weidner
<p>One class for each mime-type is unpractical as mentioned before.<br />
This will be implemented in another way.</p>
Dec 19, 2007
Michael B Allen
<p>Why do you have a <code>move()</code> method?</p>
<p>The name 'move' might be confusing for people who don't know how PHP's builtin file upload works. And it makes it look like you're just wrapping the precedure of the lower level interface.</p>
<p>Why not call it <code>accept()</code>?</p>
Dec 19, 2007
Thomas Weidner
<p>Because move() is able to do exactly that...<br />
It is able to move the file elsewhere... or even duplicate it and move it to two locations.</p>
<p>Therefor accept() would not be the right name.</p>
Dec 19, 2007
Michael B Allen
<p>Thomas,</p>
<p>The user doesn't need to know anything about moving files. The whole idea of moving files comes from the <em>procedure</em> surrounding using <code>$_FILES</code>. So you're just wrapping a procedure which does not take advantage of OOP at all. You're excluding a lot of useful subclassing scenarios.</p>
<p>Along those lines, I also agree with Matthew that the concept behind this class is files and not something specific to the HTTP protocol or the act of uploading. Therefore the class should probably be <code>Zend_File_Something</code> and not <code>Zend_Http_Something</code> or <code>Zend_Upload_Something</code>. The focus is on files. Therefore, if the focus is on files, then <code>move()</code> <em>does</em> make sense. But I still something more abstract like <code>processFiles()</code> or <code>accept()</code> would be better. A lot more can happen in <code>accept()</code> like validation, filtering the filename, etc than just moving the file. And who's to say you're really going to move the file at all - maybe the file is just processed and discarded.</p>
<p>For example (just brainstorming here) you could have <code>accept()</code> call <code>validate()</code> and then maybe <code>filterFilename()</code> and then <code>move()</code>. That way someone can subclass and provide their own move (e.g. FTP the files to a remote server), do their own filename mangling, etc.</p>
<p>I don't see you putting OOP to work. You're just wrapping an existing procedure.</p>
<p>Mike</p>
Dec 19, 2007
Thomas Weidner
<p>So, just because I did not write out the filter, validator and maybe protocol subclasses you say that this proposal is useless ?<br />
And just because the code is not working you think that it would not have advantages for the user ?</p>
<p>Sorry, but this is nonsense... I saw much people coding such a class and I was told from several other people that such a functionality is a must for this framework.</p>
<p>Of course I can also cancel this whole proposal, and people would still be frustrated that there is no standardised way and they would have to code their own class as before.</p>
Dec 19, 2007
Michael B Allen
<p>Thomas,</p>
<p>I'm sorry you're upset by my criticism. I appreciate the time you're taking to work on this. If your component is accepted (and FYI it probably will regardless of what I say) I'll probably use it on my current project.</p>
<p>However, this is not a back-slapping club. You might find that some people don't agree with you about everything. When I submitted my auth adapter proposal it got knocked around pretty good. But I didn't even <em>consider</em> getting upset. I expected it. In fact, they were right and I completely re-wrote the whole thing.</p>
<p>I think you're overreacting a little. Don't get bent. It's nothing personal. Be happy. This should be fun.</p>
<p>Mike</p>
Dec 19, 2007
Thomas Weidner
<p>Punch - Knock out <ac:emoticon ac:</p>
<p>If you're using my class I got you on my side <ac:emoticon ac:</p>
<p>Sometimes I may be react a little bit loud, but if you see what I've integrated into the framework (Zend_Currency, Zend_Date, Zend_Locale, Zend_Measure, Zend_Translate, Zend_TimeSync) you will mention that I am having fun, otherwise I would not do it.</p>
<p>I think the new API will be more what you've expected... I just added it.</p>
Dec 19, 2007
Michael B Allen
<p>Is there any way to override how the filename is filtered?</p>
<p>Perhaps you should have a <code>filterFilename()</code> method? It could have a default behavior but also allow a subclass to redefine it's bahavior. For example, files may be stored on the filesystem by MD5 hash whereas the completely unfiltered name is stored in a database. That guarantees that no funky characters can obstruct any code that might operate on those files.</p>
<p>Or perhaps a callback would be better?</p>
Dec 19, 2007
Thomas Weidner
<p>As already said several times in the past...<br />
There is a callback implemented. It's not called filterFilename() it's called setCheck().</p>
Dec 19, 2007
Michael B Allen
<blockquote>
<p>There is a callback implemented. It's not called filterFilename() it's called setCheck().</p></blockquote>
<p>Ah, ok. It wasn't clear to me how setCheck could be used to change the filename.</p>
Dec 19, 2007
Matthew Ratzloff
<p>Hi Thomas,</p>
<p>1. Looking at it again, I want to make sure that people aren't misled. This isn't a class for uploading anything; there's no <code>upload()</code> method. It's for <em>handling</em> uploaded files. Therefore, <code><strong>Zend_File_UploadHandler</strong></code> seems like the best name. Whether it's HTTP or FTP is irrelevant to the functionality, right?</p>
<p>2. It needs an <code>addFileType()</code> method.</p>
<p>3. <code>setCheck()</code> would be more in line with ZF terminology as <code>setValidator()</code>. Similarly, <code>check()</code> would then be <code>validate()</code>.</p>
<p>Otherwise, looks good.</p>
Dec 19, 2007
fc
<p>I agree with Matt, Zend_File is where you'd expect to find it. I'm not 100% sure about mixing all those classes: CookieJar.php, Cookie.php, Response.php and Upload.php in the same directory. It's confusing. And like Matt said, I'm not sure about Zend_Upload either, it's a symbolic name, but doesn't represent the purpose of the component.</p>
Dec 19, 2007
Thomas Weidner
<p>We already changed the name two times in the past.<br />
We should come to an conclusion related to the naming.</p>
<p>Zend_Upload<br />
Zend_File_Upload<br />
Zend_File_Uploader<br />
Zend_Http_Upload<br />
Zend_Http_Uploader<br />
...</p>
<p>Zend_File_UploadHandler... I don't know...</p>
<p>Btw: File would us not be related to Http, so we could also add other protocols like Ftp for example.<br />
We could also add functionality for creating the proper form elements. A related View Helper or something. They could work closed together.</p>
Dec 19, 2007
Matthew Ratzloff
<p>I guess I'm not sure how this directly interacts with HTTP or FTP. It seems like it just picks up when whatever transfer method was used is complete. Can you explain a bit how you see this tying into those? Even if that's the case, it seems like it might be something where it would rely on <code>Zend_Http</code> and an inevitable <code>Zend_Ftp</code> class.</p>
<p>"Zend_File_UploadHandler" is somewhat unwieldy, but it's the most accurate description of its purpose.</p>
<blockquote>
<p>Btw: What would a upload() function do ? Maybe we can add such functionality if it's API conform ?</p></blockquote>
<p>That's exactly my point: there's nothing for that function to do because this class is not handling file uploads, it's handling what happens after the file is transferred from a client to a server.</p>
Dec 20, 2007
Laurent Melmoux
<p>I agree with Matthew, my vote for "Zend_File_UploadHandler"</p>
Dec 20, 2007
Thomas Weidner
<p>This is only true for HTTP POST, but not for FTP nor for HTTP PUT.</p>
<p>Within FTP you are giving the connection details (site, user, pwd) and the class fetches the files you are uploading to it from there.</p>
<p>And also when you are loking at HTTP PUT, it's not the case that the files are already transfered... the class has to handle this.</p>
Dec 19, 2007
Thomas Weidner
<p>1. I just remember your second reply to this proposal...</p>
<ul>
<li>I anticipate other Zend_File-related classes</li>
</ul>
<p>And in my opinion <em>Zend_File_UploadHandler</em> is a little bit unhandy in it's naming...<br />
Btw: What would a <em>upload()</em> function do ? Maybe we can add such functionality if it's API conform ?</p>
<p>2. Of course you're right... there are several other functionalities which will need additional methods or subclasses like the standard file validators.</p>
<p>3. Good point with validator.<br />
I am not full closed with the API naming... the method names are not fixed and I think they will slightly change if needed when I implement it. There will be a amount of time where we are able to fix this...</p>
<p>To be sure... this class will not be implemented within the next release... it will stay in the incubator until we cleared all things which will cost us several weeks.<br />
As always I am open to any idea which makes sense.</p>
Dec 19, 2007
fc
<p>I think this class should be top priority. I mean, this is something we all use on a daily basis. And the functionality of uploading files is a standard requirement in almost every project.</p>
<p>You have a solid API, so it would be nice if this class is given top priority, so you can focus 100% on developing it.</p>
Dec 19, 2007
Thomas Weidner
<p>Not all people are thinking this way.</p>
<p>Maybe that's the reason why, until now, this proposal was not read, commented and accepted.</p>
<p>I will change the API as discussed before. Some things I had already in mind, but I was too lazy to write down the whole thing. Give me 1-2 days to change the API and then we can go further...</p>
<p>I will send an notification when I've finished the rework.</p>
Dec 19, 2007
fc
<p>Nice one Thomas (that was quick), I'll take this new API as your Christmas present. Looks great <ac:emoticon ac:</p>
Dec 20, 2007
Matthew Ratzloff
<p>Thomas, the reason you're getting so much push-back and confusion about this proposal is because it's not clear what you intend to do with it.</p>
<p>Why don't you flesh out your protocol adapters and show some use cases of how you intend to use them? Until then, I don't see any reason for them to exist over a separate <code>Zend_Ftp</code> class with its own <code>Zend_Ftp_Client</code>, etc. I also can't tell if the class should be called <code>Zend_File_Uploader</code> (with an -er) or <code>Zend_File_UploadHandler</code>.</p>
Dec 22, 2007
Matthew Ratzloff
<p>Okay, so now we've got a better idea of what you intend for the class.</p>
<p>This class understands HTTP POST and PUT requests. The client is sending a file to the server, and the server (via this class) is handling the file--in which case, I think <code>Zend_File_UploadHandler</code> is the most accurate name for the class, because it leaves little room for confusion. It's <em>handling</em> uploaded files, not doing the uploading itself; the client and the web server do that.</p>
<p>But then there's FTP in the last use case, and you're providing connection information. Huh? In this case, either you mean:</p>
<p>a) The server is acting as a client and sending files to a remote server (in which case, it is <em>uploading</em> files, not handling uploaded files), or<br />
b) The server is connecting to a remote server and initiating a request to receive files (in which case, it is <em>downloading</em> files)</p>
<p>Do you see what I'm getting at? In both cases, the function of the class is in question because it's doing two completely different things. If you're wanting a class to do both uploading and downloading, you might call it <code>Zend_File_Transfer</code>. Build it on <code>Zend_Http</code> and coerce someone to create <code>Zend_Ftp</code>. You'd probably want your methods named things like <code>send()</code> and <code>receive()</code> in that case.</p>
Dec 23, 2007
Thomas Weidner
<p>For HTTP PUT you have to do the downloading... the Client and the Web server do not download the files. It's quite the same as FTP... you just don't have to give a connection information.</p>
<p>I think it's a question of direction...<br />
UPLOAD means in my eyes that you want to GET files onto your server from the client. Direction is Client to Server...</p>
<p>DOWNLOAD means in my eyes that you want to send files from your server to the client.<br />
Direction is Server to Client...<br />
This is a own proposal, where I want to add wrapper technology so the client does not know where the file originally was located for example.</p>
<p>It's always the point of view. This terms are normally seen from the client, even if the server act's on them. From the server's view all is switched of course.</p>
<p>We could also integrate both ways into one class, Downloading and Uploading, and create a Zend_File_Transfer. But I don't know if that is wished and until now I didn't have thought of pro's and con's of this. Also if I would wait for someone creating Zend_Ftp I would be waiting forever as with the environment defaults for ZF which I had integrated into Zend_Locale and the other propsal was not done. I would not want to do this once more as it's irritating to the user.</p>
<p>So the general question now is:<br />
Do we want to have a generic class handling both, upload and download or do we need/want to seperate them.</p>
<p>Having both in one class would of course have impact on the API but on the other hand several methods could be used together which we would benefit from.</p>
Dec 24, 2007
fc
<p>Hey Thomas, it's recommended not to use method names like process(), they are to generic.</p>
<p>Here are some naming guidelines from Jeff Moore...</p>
<blockquote>
<ul>
<li>Keep names pronounceable.</li>
<li>Abbreviate consistently. Don't abbreviate to save only one character.</li>
<li>8 to 20 characters is best. Global and rarely used names should be longer.</li>
<li>avoid names with similar meanings, that sound similar, that are different by only one or two characters, that use numerals, or are intentionally misspelled to be shorter. (Hilite vs. Hilight)</li>
<li>Use opposites. (show & hide, open & close, insert & delete)</li>
<li>A variable or type name should refer to a real world problem rather than a programming language solution, should fully and accurately describe what the variable represents and should express what, not how.</li>
<li>Put computed qualifiers at the end of a variable name. (Total, Sum, Count)</li>
<li>Use meaningful control variable names (not i, j, or k) if the function is more than a couple lines long or the loop is nested.</li>
<li>Use meaningful names for temporary variables (SalesTotal instead of nTemp).</li>
<li>Boolean variable names should imply true or false. Avoid using not in the variable name. Prefix with is or has.</li>
<li>Use strong verbs in function names. Functions should describe their result. The name should describe everything the routine does. Consider breaking up the routine if this is not possible.</li>
<li>Avoid generic or wishy-washy verbs in function names (handle or process).</li>
</ul>
</blockquote>
Dec 24, 2007
fc
<p>Also, shouldn't Zend_File_Uploader_Protocol be renamed to Zend_File_Uploader_Protocol_Abstract? If I'm not wrong, interfaces ended with *_Interface and abstract classes with *_Abstract in ZF.</p>
<p>I still think this class should be top priority, I know that the dev-team is prioritizing Zend_Service_* components, but a lot of developers out there keep asking how come ZF doesn't ship with the basic components for web development, such as Zend_File_Uploader, Zend_File_Utility, Zend_Image and Zend_Ftp.</p>
Dec 24, 2007
Thomas Weidner
<p>There is no guideline for Abstract within ZF.<br />
This is only true for Interfaces.</p>
<p>Also, what you see within this proposal is not the code but only a visual interface for how the implementation should work. I am sure it will change a little bit through the implementation itself.</p>
Dec 24, 2007
Matthew Ratzloff
<p>Re: naming abstract classes "Abstract"</p>
<p>Maybe not, but it's pretty standard practice, right?</p>
Dec 24, 2007
Thomas Weidner
<p>I don't know Jeff Moore...<br />
Actually the naming guidelines do not recomment the above rules nor have I read them before within the ZF.</p>
<p>And if all I am not allowed to use any name which should I use then instead ?<br />
upload - not allowed<br />
process - not allowed<br />
move - not allowed<br />
download - not allowed<br />
start - not allowed<br />
go - not allowed</p>
<p>I really don't know any name to use instead...<br />
Also to mention that the API is not fleshed in stone. It will change a little bit when we realize the implementation.<br />
So the only benefit of having all negotated is that this class will not be accepted <ac:emoticon ac:</p>
Dec 26, 2007
julien PAULI
<p>Just a word about security upload rules throught HTTP POST enctyped as multipart/form-data, anyone should read this very interesting document : <a class="external-link" href=""></a></p>
<p>Ilia Alshanetsky also demonstrates others methods to taint all the $_FILES array in the "PHPArchitect's Guide to PHP Security" book.</p>
<p> PECL fileinfo extension is to be a good native C solution : it should be merged in PHP 5.3's core</p>
Dec 26, 2007
Thomas Weidner
<p>So you propose to use the PECL fileinfo extension instead of creating a generic standardized uploader class...</p>
<p>2 Negs:<br />
First: The minimum requirements are 5.1.4.<br />
Second: Until now the extension is not in the core and until then everyone would have to cook his own soup as today.</p>
<p>Target of this proposal is to give a generic and standard way of file up-/downloading.<br />
And I think most of ZF-users would not buy this book you mentioned just for downloading their files to make their own class.</p>
Jan 19, 2008
Thomas Weidner
<p>Hy interested ones,</p>
<p>I reworked the API as requested and changed the name to Zend_File_Transfer.<br />
Generally the class can now handle</p>
<ul>
<li>File uploads</li>
<li>File downloads</li>
<li>File validations</li>
<li>File filters, to change the content</li>
<li>Work with different adapters like http, webdav or ajax. Could be extended in future</li>
</ul>
<p>Waiting for approvment or another change request...</p>
Jan 25, 2008
Eran Galperin
<p>If this proposal includes file downloads it should cover http forced downloads, which allow a PHP script to send a file without revealing its actual directory and allows placing files in directories that are not directly accessible. This allows sending file based on permissions and other security benefits like preventing direct linking and so forth.<br />
Documentation on performing this caveat is rather sparse on the web, but it basically involves sending the correct http headers.</p>
<p>Something like:</p>
<p>if(is_file($file)){<br />
header("Pragma: public");<br />
header("Expires: 0");<br />
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");<br />
header("Cache-Control: private",false); <br />
header("Content-type: application/force-download");<br />
header("Content-Transfer-Encoding: Binary");<br />
header("Content-length: ".filesize($file));<br />
header("Content-disposition: attachment; filename=\"".basename($file)."\"");<br />
readfile("$file");<br />
}</p>
Jan 26, 2008
Thomas Weidner
<p>Please read the proposal carefully...</p>
<p>This is already covered as downloading files works ALWAYS as Wrapper describes as <strong>Wrapper for Downloads</strong>. This means files must only be accessable by the php process but not to the public.</p>
Jan 25, 2008
Eran Galperin
<p>Due to my own stupidity I forgot to use the wiki tags.</p>
<ac:macro ac:<ac:plain-text-body><![CDATA[
if(is_file($file)){
header("Pragma: public");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: private",false);
header("Content-type: application/force-download");
header("Content-Transfer-Encoding: Binary");
header("Content-length: ".filesize($file));
header("Content-disposition: attachment; filename=\"".basename($file)."\"");
readfile("$file");
}
]]></ac:plain-text-body></ac:macro>
Jan 26, 2008
Thomas Weidner
<p>Too complicated for normal users...</p>
<p>We will integrate a way to use a default set of headers and/or to set them via defined methods. Users should never set headers manually because most users don't know which header to set for downloads so they work properly.</p>
<p>We should make this as simple as possible.</p>
Jan 26, 2008
Eran Galperin
<p>Of course not, you missed my point - This type of implementation should be abstracted by the File_Transfer class so normal users can have this functionality without knowing the specifics. I was just suggesting an implementation of the forced download method.</p>
<p>I didn't see such functionality in the class skeletons provided, and their documentation isn't overly descriptive... I didn't understand your reference to Wrapper, and a text search only revealed an instance of the wording in one the use cases. </p>
Jan 26, 2008
Thomas Weidner
<blockquote><p>|Too complicated for normal users...</p></blockquote>
<blockquote><p>Of course not</p></blockquote>
<p>Sorry, but in my opinion many users dont know the exact headers to use... so your code is too complicated for many users.</p>
<blockquote><p>This type of implementation should be abstracted by the File_Transfer class</p></blockquote>
<p>It will not be abstracted by the transfer class itself, but within the specific adapter. Otherwise we could not have it seperated by protocol.</p>
<blockquote><p>I was just suggesting an implementation of the forced download method.</p></blockquote>
<p>How could we implement this simpler as with only one send() command ??</p>
<blockquote><p>I didn't see such functionality in the class skeletons provided</p></blockquote>
<p>A small description in the usecase for FTP download... would be implemented quite the same with http... only headers would be set automatically, the usecase it not right at this point.</p>
<p>A wrapper is a code which hides what is done behind it... the wrapper has access to the file, he sends it to the user... this means the wrapper acts as download portal, and the users must not have access to the file he wants to download. This way you can also verify if the user has the right for this file by acl or a similar solution.</p>
<p>Anyhow... if I have to document all things which can be done with this class we will have it ready for ZF 4.0 and this proposal will have 20 pages useless documentation.<br />
There is no proposal where ALL things are written. I waited now almost one year and now I am near at forgetting this proposal and delete it because until now I only got negative responses and no positive ones. <ac:emoticon ac: That's really frustrating.</p>
Jan 27, 2008
Richard Vítek
<p>Hi Thomas,</p>
<p>it would be really pity I this proposal should be thrown out. It's quite surprising, but for such a common task as file uploads there's no PHP 5 class with all the features that Your proposal has and with fine and consistent API.</p>
<p>I watch this proposal from time to time and l like the way it goes to (from common file HTTP upload/download class to generalized one with different adapters, AJAX support, etc.). It's lots of good work done on it, many thanks for Your effort (not only on this proposal but for all Your great work for ZF). Sooner or later, ZF will need such component, so it's quite surprising that users pay so little attention to this proposal.</p>
<p>Unfortunatelly, for next about two weeks I have no time to read this proposal from top to down with all the comments <ac:emoticon ac:. Just after a quick view, it looks good for me, I'd just like to ask one thing - how will be the MIME type check implemented then? In discussion above You mentioned that using PECL FileInfo extension is not a good idea, and for reasons You named I guess that using of PEAR Mime_Type is not the way to go too.. </p>
Jan 27, 2008
Thomas Weidner
<p>In general each component should look not to depend on specific extensions. Most users are not able to add extension within their hosts because of restrictions.</p>
<p>So the way to go is to use the available extensions in a sort of fallback.<br />
We will define a top - down search and use what's found...</p>
<p>Could be Pecl Mime / Pecl Fileinfo / Pear Mime / Pear FileInfo / ZF Mime...<br />
Something like that. Note that not all of this components exist, but you should get a feeling of what I meant.</p>
<p>Related to past responses:<br />
It's also a thing of security... relying only on the extension of a file is a security-hole. That's why I said that it's not a good idea in past.</p>
Jan 28, 2008
Matthew Ratzloff
<p>I did some work on a Zend_Mime_Magic component. It's in the archived proposals right now (archived because I bought a house and am fixing it up, but am almost done). However the coding is mostly done and I just have to get around to resurrecting it and finishing the unit tests.</p>
<p>It has a native magic file parser but can optionally use the Fileinfo component instead.</p>
Jan 28, 2008
Thomas Weidner
<p>I know Matthew... otherwise I would not have mentioned it.<br />
But all depends on the acceptance of this proposal.</p>
<p>What will be used will be decided later on... because there are also some other extensions which should/could be loosly coupled with Zend_File_Translate. Based on which extension is available the related functions can be used or are not active.</p>
Jan 27, 2008
Eran Galperin
<p>I'm not sure why you insist on misquoting me - This functionality IS too complicated for most users to perform manually, they obviously would NOT know the specific headers, therefor it should be handled for them by framework. I didn't say put it directly in the class, it is hard to ascertain the exact workings of your class from the class skeleton - If you say this kind of code belongs in wrapper for download, I had no qualms with that.</p>
<p>I'm sorry that you experienced negative feedback in the past, I was merely trying to contribute important functionality in my opinion, one that I would have liked available if such a class was to be included in the ZF.</p>
<p>Peace</p>
Jan 27, 2008
Thomas Weidner
<p>I'm not native english... sorry if I misunderstood you.</p>
<p>So we both have the same opinion that users should not know the exact working of wrapper or download headers. And that this component must handle this in a convinient and simple way.</p>
<p>You all should also keep in mind that this is only a proposal, not a working class where the code has been stripped off... it's the nature of such things that they will grow while coding and that they will be available several weeks in the incubator for improvments or feature enhancements. Having 30 people said that this or this feature must be integrated is on one side nice but on the other side it also means that the class itself is delayed... in the case of this proposal delayed one year.</p>
<p>Related to feedback: It was also said from the devteam in past that this class has no benefits over standard download mechanism of PHP. So I'm not even sure if they want to have such functionality integrated. They are the one to get on our side, not me <ac:emoticon ac:</p>
Jan 30, 2008
Karol Babioch
<p>Hi,</p>
<p>I think defining multiple file types should be made in a different way, because in my opinion something like 'jpg|pdf' isn't very cute.</p>
<p>Maybe this should be made trough some classes or at least a multi dimensional array.</p>
<p>Maybe it should be also be possible to exclude just some kind of files and allowing all others.</p>
Jan 30, 2008
Thomas Weidner
<p>As stated within the proposal there will be "Validators".</p>
<p>And they are extendable... this means you can also write your own or extend existing validators to fit your needs.</p>
<p>One of these validators will be used to validate if a fileextension fit's or does not... another could be to exclude files or extensions. This will grow in future depending on needs and usefullness.</p>
<p>But the whole proposal is not accepted for now and I will not make implementation details without the basics accepted.</p>
Jan 31, 2008
Jonathan Bond-Caron
<p>There's "too many things" going on with this proposal. </p>
<p>a) There should be a Zend_File_Collection / or Zend_Files which implements a Collection</p>
<p>$col = new Zend_Files;<br />
$col->addFile('foo.img');<br />
$col->filter(...);<br />
$col->etc....</p>
<p>b) You can then upload this collection of files (through some adapter)</p>
<p>$tr = new Zend_File_Transfer; // Uses some default adapter<br />
$tr->setTransport('WEBDAV', array(..options..));<br />
$tr->add('foo.txt', $col); // Can add a single file or collection of files...<br />
$tr->put('somePath/');</p>
<p>...</p>
<p>The filtering and validation <strong>should</strong> exist with the 'collection of data' - ideally similar to java or .net</p>
Jan 31, 2008
Thomas Weidner
<blockquote>
<p>There's "too many things" going on with this proposal. </p></blockquote>
<p>To provide a generic way for transferring files there is much work to do...<br />
So what's your clue ? To erase the proposal because it aims to be too generic ?</p>
<blockquote>
<p>a) There should be a Zend_File_Collection / or Zend_Files which implements a Collection<br />
b) You can then upload this collection of files (through some adapter)</p></blockquote>
<p>This is not part of this proposal and will not be implemented... but it could be a feature enhencement or when it really has to be a new class then it must be a new proposal.</p>
<blockquote>
<p>ideally similar to java or .net</p></blockquote>
<p>We are not building java or net... we are collecting ideas from all over and try to make it simpler and possibly better.</p>
Mar 05, 2008
Patrick Nijs
<p>Hi Thomas,</p>
<p>Could you please tell me what the current status of this class is?<br />
I thought I could locate it in the Incubator, but I haven't found it.</p>
<p>I second the opinion that this class should get a higher priority at the "decision board" <ac:emoticon ac:</p>
<p>Best regards,</p>
<p>Patrick</p>
Mar 05, 2008
Thomas Weidner
<p>As you can see this proposal is still under review by the dev team.<br />
It is not allowed to commit not accepted classes in the incubator.</p>
<p>As long as there is no decision that the API is ok, or that there are changes necessary to the API recommended by the dev team, I am not able to do any work. It would not be a good decision to do some coding and then throw all work away because the API is not accepted.</p>
<p>So we both have to wait some more...<br />
I am sure that with the release of 1.5 (or the next RC) the dev team has little more time to do futher reviews as for now there are much proposals which have to be reviewed in the queue.</p>
<p>Greetings<br />
Thomas, I18N Team Leader</p>
Apr 15, 2008
Giorgio Sironi
<p>I also think the class should be included rapidly. Imho Zend_Form will be much useful if it will be possible to manage file upload at the same way as textareas and inputs, without third party classes.</p>
Mar 16, 2008
Amr Mostafa
<p>Hi Thomas,</p>
<p>Thanks for putting together this proposal. I think this is a pretty useful component, and it's looking great so far!</p>
<p>I'd like to ask whether it's planned to support files array notation in this component? <ac:emoticon ac:</p>
<p>Zend_Form supports array notation, so I'd imagine that if it would rely on Zend_File_Transfer for file uploading (something I believe Zend_Form's author is planning) then support for array notation in Zend_File_Transfer would be a must. Also, unfortunately, PHP's array notation for $_FILES is a bit weird (different than that of $_POST at least. Ref: <a class="external-link" href=""></a>), so it would make for a great potential area to improve.</p>
<p>Thanks, Thomas!</p>
<p>Kind Regards,</p>
Mar 16, 2008
Thomas Weidner
<p>Yes, Zend_Form will be coupled with Zend_File_Transfer for file uploads and his name is Matthew <ac:emoticon ac:</p>
<p>And yes, array notation will be supported. As you see, you can add files with the addFiles method which takes an array of any notation. It will support $_FILES, $_POST of defined structure and also sort of self defined array. And of course there will be a way of automatism, so it will handle any detected source of files automatically.</p>
<p>Usability and Simplicity are a must criteria for me and ZF. So you can be sure that it will be improving the actual way of PHP. <ac:emoticon ac:</p>
Jun 02, 2008
Matthew Weier O'Phinney
<ac:macro ac:<ac:parameter ac:Zend Comments</ac:parameter><ac:rich-text-body>
<p>The Zend Framework team approves this component for immediate development in the standard incubator, with the following suggestions:</p>
<ul>
<li><strong>Consider extending Zend_Form_Element.</strong> There is a lot of overlap with Zend_Form_Element, particularly in terms of using validation and filter chains and use of isValid(). Our recommendation is that it extend Zend_Form_Element; that way it can be used both standalone and as an element. A targetted Zend_Form_Element_File could simply extend it to ensure it can be found by Zend_Form automatically.</li>
<li><strong>Ajax Uploads.</strong> These could be done via a decorator, if Zend_Form_Element is used as a base class.</li>
<li><strong>Validators.</strong> We recommend building some file-specific validators for checking extensions, mime type, file size, upload status, etc. These could then be used for other purposes outside the Zend_File_Transfer component.</li>
</ul>
</ac:rich-text-body></ac:macro>
Jul 26, 2008
Leo Büttiker
<p>For me the proposal code does contains too many "magic strings". Replacing them with class-constants or object would make the code more secure against programmer faults, at least when they do use an IDE.</p>
Jul 26, 2008
Thomas Weidner
<p>What do you mean with "magic strings"? Actually there are no magic strings at all.<br />
Have you looked at the actual implementation?<br />
Have you looked in the working examples I already provided in my blog?<br />
I would not know how to make this simpler as it's actually implemented.</p>
<p>If you see any problems it would be better if you give a detailed description on the problems you see with the actual implementation.</p>
Jul 28, 2008
Leo Büttiker
<p>This is no critics on you, it's just one thing I would do different in code so I suggested it and I might even agree if you have different opinion. But I might be a bit more specific as "magic strings" seems to be no common known concept. "magic strings" are the same thing to strings as "magic numbers" are to numberic values.</p>
<p>"Magic Strings" are constants represented trough a string, this makes the code harder to use because the "Magic Strings" are hardly to document, a type error can happen very fast and code complition of a IDE can not help.</p>
<p>Some Ideas how you could remove the Magic Strings from the examples above (but I know this suggestion does come very late, as the code is allready finished):</p>
<ul>
<li><em>$files->addValidator(new Zend_Validator_MaxSize(2000));</em> instead of <em>$files->addValidator('MaxSize', 2000);</em></li>
<li><em>$files = new Zend_File_Transfer(Zend_File_Transfer::</em><em>WEBDAV</em><em>, array(</em><em>'user'</em><em> => </em><em>'adam'</em><em>, </em><em>'pwd'</em><em> => </em><em>'sandler'</em><em>, </em><em>'server'</em><em> => </em><em>'myserver.com'</em><em>)); </em> instead of <em>$files = new Zend_File_Transfer(</em><em>'WEBDAV'</em><em>, array(</em><em>'user'</em><em> => </em><em>'adam'</em><em>, </em><em>'pwd'</em><em> => </em><em>'sandler'</em><em>, </em><em>'server'</em><em> => </em><em>'myserver.com'</em><em>));</em> <br class="atl-forced-newline" /></li>
</ul>
Jul 28, 2008
Thomas Weidner
<p>I havn't seen this as critism, but it's always better to discuss with examples when people don't have the same motherlanguage. <ac:emoticon ac:</p>
<p>What you see as "Magic String" is not implemented as you may expect.<br />
Let's look at the validators... there are no constants or other variables declared. When you give a string, the class looks if there is a proper validator available... so if you give 'Size' it will look for 'Zend/Validate/File/Size'... if not found it will try to load Size as it is, maybe with autoloader or whatever you may have declared as include path. So to be clear... there is no constant defined. So if you try to load 'MyValidators_File_Size' it will also be loaded.</p>
<p>You said that you want to solve this a different way... well, which way would be the right one in your eyes ?</p>
<p>You can still initiate the validators manually your own but you will then have more overhead to do yourself. And you can use the validator class also in combination with the adapter directly. But there is no bonus with this way, except that you will have to write more...<br />
new Zend_Validator_File_Size instead of 'Size'.</p>
<p>Maybe you should really first take a look at the existing code.</p>
<p>Please keep in mind that anything shown in this proposal is just a point of proove and no finished implementation. Because of this details which become clear as soon as we have working code, the end-version behaves slightly different. <ac:emoticon ac:</p>
<p>I tend always to keep things as simple as possible for users. <br />
Btw: You are declaring two different styles in your two example lines...<br />
First you say to use class declaration... method(new class(...))... <br />
And second you say to use class constants, which you declare are "magic strings", and which shall not be used ??? For me you negotate yourself. <ac:emoticon ac:</p>
<p>So to get to the point:<br />
Things are much simpler as you may expect... there are no "magic strings", as you declare them, implemented. You can eighter wait until the official implementation is ready to see this yourself, or look at the actual code and see yourself that all works like you wrote it should. Or you simply wait for 1.6RC2 to be available. <ac:emoticon ac:</p>
Jul 29, 2008
Leo Büttiker
<p>Well I know that the Zend_Loader_PluginLoader is wide spread in ZF i do run over it on the MVC part serval times (I do not use Zend_DB so I do not know there).</p>
<p>I did not find the code of Zend_File_Transfer in the svn, so I can not argue about this. If you can also give an object instead of the string that would be great. Because using the Zend namespace for your own code is somehow hacky.</p>
<p>The thing I suggested it's a tread off between tiping more and security. In my Example you have to type more (doesn't really matter if you use an IDE) but errors will be recognized much earlier by the compiler. For me the second is much more important (as we run ZF with a big team) but I know this is not for everyone an issue. And if you look at my examples again it's just two different ways to remove magic strings. The first one overgives an object because I think it's likly that one will write a own validator, the second does use a class constant (misstippes will be also fewer with an IDE and the error will be recognized earlier) because likelyhood that you write your write own backend is much lower.</p>
Jul 29, 2008
Matthew Weier O'Phinney
<p>The code is currently in the incubator, and you can test it there. And yes, you can attach both actual object instances as well as utilize the plugin loader.</p>
Jul 28, 2008
Matthew Weier O'Phinney
<p>You need to do some reading on Zend_Loader_PluginLoader. The purpose of using short strings when passed to the validators and filters is to allow the developer the ability to define their own replacements for them. The PluginLoader will only attempt to load classes based on the prefixes registered with it – so, by default, these will only be within the standard defined validators and filters. They are not constants in any way.</p>
<p>The PluginLoader is being used in a variety of places within ZF, including Zend_View and Zend_Form – for the exact same purpose.</p>
Jul 28, 2008
Matthew Ratzloff
<p>This is to save on typing. Zend_Db does this as well for the same reason.</p>
Jun 25, 2009
Sebastian Köhler
<p>Good morning every single one!</p>
<p>I have the need to download some files via FTP. Zend Framework offers File/Transfer/Adapter/Http which seems a bit not-working for my ftp-protocol.</p>
<p>Since here did none post something for about one year - I want to discuss the need (at least mine) to have a ftp-adapter.</p>
<p>I would suggest(and try) to copy the Http.php to and see how far I can implement a slightly more ftp-like functionality.</p>
<p>After some quick research I figured out, that at least a function "get file listing" is not yet available in the abstract adapter - and has to be implemented "somehow" "somewehere" (in the Ftp class?)</p>
<p>So - feel free to join the discussion about this, or if possible send me your Ftp-adapter <ac:emoticon ac:</p>
Feb 09, 2010
Andrew Schnable
<p>It looks like this has stagnated a bit - the manual states that:</p>
<p>Note: Limitation<br />
The current implementation of Zend_File_Transfer is limited to HTTP Post Uploads. Other adapters supporting downloads and other protocols will be added in future releases. </p>
<p>Is there any work on the downloader?</p>
Feb 10, 2010
Thomas Weidner
<p>There were many changes and additions which are used by all elements.</p>
<p>Additionally I worked on a PUT extension and made some pre-works and definitions for WEBDAV and FTP. But these are not official and therefor not available to public for now.</p>
<p>Additionally Downloads can already be done (limited to http) by using Zend_Http_Client.</p> | http://framework.zend.com/wiki/display/ZFPROP/Zend_File_Transfer+-+Thomas+Weidner?focusedCommentId=27456 | CC-MAIN-2014-10 | refinedweb | 12,861 | 64.41 |
.NET Interview Questions – Part 15
1. How information about the user’s locale can be accessed?
The information regarding a user’s locale can be accessed by using the System.Web.UI.Page.Cultureproperty.
2. Can you set which type of comparison you want to perform by the CompareValidator control?
Yes, by setting the Operator property of the CompareValidator control.
3..property of the control to True.
7. Define a multilingual Web site.
A multilingual Web site serves content in a number of languages. It contains multiple copies for its content and other resources, such as date and time, in different languages.
8..
9..
10..
11..
12..
13. How can we identify that the Page is Post Back?
Page object has an “IsPostBack” property, which can be checked to know that is the page posted back.
14. What is the lifespan for items stored in ViewState?
The items stored in ViewState live until the lifetime of the current page expires including the postbacks to the same page.
15..
16. What is actually returned from server to the browser when a browser requests an .aspx file and the file is displayed?
When a browser requests an .aspx file then the server returns a response, which is rendered into a HTML string.
17. How can you display all validation messages in one control?
The ValidationSummary control displays all validation messages in one control.
18. Which two new properties are added in ASP.NET 4.0 Page class?
The two new properties added in the Page class are MetaKeyword and MetaDescription.
19..
20..
21. How does a content page differ from a master page?
A content page does not have complete HTML source code; whereas a master page has complete HTML source code inside its source file.
22. Suppose you want an ASP.NET function (client side) executed on the MouseOver event of a button. Where do you add an event handler?
The event handler is added to the Add() method of the Attributes property.
23..
24...
26. SmtpClient class and set the server name, port, and credentials.
27. What is the difference between the Response.Write() and Response.Output.Write() methods?
The Response.Write() method allows you to write the normal output; whereas, theResponse.Output.Write() method allows you to write the formatted output.
28. What does the Orientation property do in a Menu control?
Orientation property of the Menu control sets the horizontal or vertical display of a menu on a Web page. By default, the orientation is vertical.
29. Which method is used to force all the validation controls to run?
The Page.Validate() method is used to force all the validation controls to run and to perform validation.
30.”);
31..
32. What is the default timeout for a Cookie?
The default time duration for a Cookie is 30 minutes.
33. How can you register a custom server control to a Web page?
You can register a custom server control to a Web page using the @Register directive.
34. Which ASP.NET objects encapsulate the state of the client and the browser?
The Session object encapsulates the state of the client and browser.
35.).
36.In which event are the controls fully loaded?
Page load event guarantees that all controls are fully loaded. Controls are also accessed in Page_Init events but you will see that view state is not fully loaded during this event
37..
38..
39. Explain file-based dependency and key-based dependency.
In file-based dependency, you have to depend on a file that is saved in a disk. In key-based dependency, you have to depend on another cached item.
40..
41. What is the use of PlaceHolder control? Can we see it at runtime?
The PlaceHolder control acts as a container for those controls that are dynamically generated at runtime. We cannot see it at runtime because it does not produce any visible output. It used only as a container.
42. What setting must be added in the configuration file to deny a particular user from accessing the secured resources?
To deny a particular user form accessing the secured resources, the web.config file must contain the following code:
<authorization >
<deny users=”username” />
</authorization>
43. How can you implement the postback property of an ASP.NET control?
You need to set the AutoPostBack property to True to implement the PostBack property of controls.
44..
45. What are the event handlers that can be included in the Global.asax file?
The Global.asax file contains some of the following important event handlers:
Application_Error
Application_Start
Application_End
Session_Start
Session_End
46. What is the difference between page-level caching and fragment caching?
In the page-level caching, an entire Web page is cached; whereas, in the fragment caching, a part of the Web page, such as a user control added to the Web page, is cached.
47. Explain how Cookies work. Give an example of Cookie abuse.
The server tells the browser to put some files in a cookie, and the client then sends all the cookies for the domain in each request. An example of cookie abuse is large cookies affecting the network traffic.
48. Make a list of all templates of the Repeater control.
The Repeater control contains the following templates:
ItemTemplate
AlternatingltemTemplate
SeparatorTemplate
HeaderTemplate
FooterTemplate
49..
50. What is a round trip?
The trip of a Web page from the client to the server and then back to the client is known as a round trip..
55. Which is the parent class of the Web server control?
The System.Web.Ul.Control class is the parent class for all Web server controls..
57. What are Custom User Controls in ASP.NET?
The custom user controls are the controls that are defined by developers. These controls are a mixture of custom behavior and predefined behavior. These controls work similar to other Web server controls.
58. What does the .WebPart file do?
The .WebPart file explains the settings of a Web Parts control that can be included to a specified zone on a Web page.
59.
60..
61.” />
62. How can you identify that the page is PostBack?
The Page object uses the IsPostBack property to check whether the page is posted back or not. If the page is postback, this property is set to true.
63. In which database is the information, such as membership, role management, profile, and Web parts personalization, stored?
The aspnetdb database stores all information.
64. How can you ensure that no one has tampered with ViewState in a Web page?
To ensure that no one has tampered with ViewState in a Web page, set the EnableViewStateMac property to True.
65. What are the major built-in objects in ASP.NET?
The major built-in objects in ASP.NET are as follows:
Application
Request
Response
Server
Session
Context
Trace
66..
67. Why do we need nested master pages in a Web site?
When we have several hierarchical levels in a Web site, then we use nested master pages in the Web site.
68. How can you dynamically add user controls to a page?
User controls can be dynamically loaded by adding a Web User Control page in the application and adding the control on this page.
69.>
…
70. What type of code, client-side or server-side, is found in a code-behind file of a Web page?
A code-behind file contains the server-side code, which means that the code contained in a code-behind file is executed at the server.
71. To which class a Web form belongs to in the .NET Framework class hierarchy?
A Web form belongs to the System.Web.UI.Page class.
72. Response objects. When this property is set to Off, the page does not store the users input during postback..
74. What is the function of the CustomValidator control?
It provides the customize validation code to perform both client-side and server-side validation.. Where is the ViewState information stored?
The ViewState information is stored in the HTML hidden fields.
78. Which namespaces are necessary to create a localized application?
The System.Globalization and System.Resources namespaces are essential to develop a localized application.HtmlInputRadioButton controls.
80..
81. Explain the AdRotator Control.
The AdRotator is an ASP.NET control that is used to provide advertisements to Web pages. The AdRotatorcontrol AdRotator control.
82. Which data type does the RangeValidator control support?
The data types supported by the RangeValidator control are Integer, Double, String, Currency, and Date.
83..
84..
85. What is the difference between absolute expiration and sliding-time expiration?
The absolute expiration expires a cached item after the provided expiration time. The sliding time does not expire the cached items because it increments the specified time.
86..
87..
88. What is difference between a Label control and a Literal control?
The Label control’s final html code has an HTML tag; whereas, the Literal control’s final html code contains only text, which is not surrounded by any HTML tag.
89..
90. What is the use of the Global.asax file?
The Global.asax file executes application-level events and sets application-level variables..
92. What do you mean by a neutral culture?
When you specify a language but do not specify the associated country through a culture, the culture is called as a neutral culture.
93./>.
95..
96. Can you post and access view state in another application?
Yes, you can post and access a view state in other applications. However, while posting a view state in another application, the PreviousPage property returns null.
97. What is the difference between ASP session and ASP.NET session?
ASP does not support cookie-less sessions; whereas, ASP.NET does. In addition, the ASP.NET session can span across multiple servers.
98. What happens if an ASP.NET server control with event-handling routines is missing from its definition?
The compilation of the application fails.
99. Which method do you use to kill explicitly a users session?
The Session.Abandon() method kills the user session explicitly.
100. Which class is inherited when an ASP.NET server control is added to a Web form?
The System.Web.UI.WebControls class is inherited when an ASP.NET server control is added to a Web form.
101..
102. Which control will you use to ensure that the values in two different controls match?
You should use the CompareValidator control to ensure that the values in two different controls match. | http://www.lessons99.com/net-interview-questions-15.html | CC-MAIN-2019-04 | refinedweb | 1,741 | 67.96 |
Table of Contents
ToscaWidgets itself has a few different configuration settings. Here’s a few ways you can modify the way ToscaWidgets renders content.
TW 0.9.9+ support resource variants. This allows the developers to point TW at a different javascript/css/image library in the event you want to change the js files that are used. This is usually employed in minification of the javascript files. This is valuable when you want to run “debug” mode on your js files in development, but “minified” on production for speedups.
You can set this variable in two ways. Add the following line to your .ini file as:
#for "minified" files toscawidgets.framework.resource_variant=min #for "debug" files toscawidgets.framework.resource_variant=debug
Note that this only works if your js wrapper has actually been set up to have multiple variants. If the library does not have variants, this variable will be ignored.
TurboGears supports both the 0.9.x branches of ToscaWidgets and the 2.x TW code. ToscaWidgets is currently at a crossroads, with the 0.9.x branch being a very stable codebase, and TW2 providing speed benefits, easier use, and a simpler, easier to debug codebase. TW2 is currently in alpha, so it’s up to you to determine it’s level of stability before usage. TW and TW2 can be used simultaneously. To use them, modify the following config options:
base_config.use_toscawidgets – Set to False to turn off Toscawidgets. (default is True)
base_config.use_toscawidgets2 – Set to True to turn on Toscawidgets2. (default is False)
What this does is to allow ToscaWidgets to provide hooks for both entry and exit. On entry, ToscaWidgets handles server requests that are directed directly to the widget itself, bypassing the TG Controllers. On exit, TW middleware provides resource injection, which can actually insert links to resources like javascript files into your HTML code automatically. Both TW 0.9.x and TW 2.x support this usage. There is more information on [tw_middleware] and [tw2_middleware].
Configure the ToscaWidgets middleware.
If you would like to override the way the TW middleware works, you might do something like:
from tg.configuration import AppConfig from tw.api import make_middleware as tw_middleware class MyAppConfig(AppConfig): def add_tosca2_middleware(self, app): app = tw_middleware(app, { 'toscawidgets.framework.default_view': self.default_renderer, 'toscawidgets.framework.translator': ugettext, 'toscawidgets.middleware.inject_resources': False, }) return app base_config = MyAppConfig()
The above example would disable resource injection.
There is more information about the settings you can change in the ToscaWidgets middleware. <>
Configure the ToscaWidgets2 middleware.
If you would like to override the way the TW2 middleware works, you might do change your app_cfg.py to add something like:()
The above example would always set the template auto reloading off. (This is normally an option that is set within your application’s ini file.) | http://www.turbogears.org/2.1/docs/main/Config/ToscaWidgets.html | CC-MAIN-2015-06 | refinedweb | 465 | 52.46 |
I am trying to
import numpy in Cygwin. I get the following error message.
I have
numpy 1.11.2-1, a.k.a. the
python2-numpy: Python scientific computing module package, installed through the Cygwin installer. I also have
Python 2.7.14-1, a.k.a. the
python2: Python 2 language interpreter package also installed through Cygwin. I don't have a local installation of Python on my machine.
$ python Python 2.7.14 (default, Oct 31 2017, 21:12:13) [GCC 6.4.0] on cygwin Type "help", "copyright", "credits" or "license" for more information. >>> import numpy Traceback (most recent call last): File "<stdin>", line 1, in <module> 14, in <module> from . import multiarray ImportError: No such file or directory
There seem to be a number of posts on this but all lacking a solution that works for me. I tried restarting my computer per, but that did not work.
I have also edited my
$PATH variable:
$ echo $PATH /usr/lib/python2.7/site-packages/numpy/:/usr/lib/python2.7/site-packages/:/usr/bin | https://superuser.com/questions/1325101/cygwin-import-numpy-error | CC-MAIN-2019-13 | refinedweb | 177 | 69.38 |
A new and enhanced version of Kiplinger TaxCut Deluxe for the Macintosh was released this week by H&R Block. The market-leader in value and functionality, TaxCut is now offered for a rebate-free price of $19.95. TaxCut's many new features and enhanced functionality combined with every day value pricing solidifies TaxCut as the best choice in tax software for Macintosh users.
Named the top tax software last year by Macworld, TaxCut Macintosh Deluxe for 2000 is full of improvements that simplify tax preparation. A new "My Taxes" pre-interview feature will further streamline the preparation process, which already takes less than two hours for 60 percent of TaxCut users. An enhanced planning feature and resource library for both taxes and finances extends TaxCut's value throughout the year. TaxCut's new "Where Am I?" Window is a navigation tool that allows users to easily see where they are in the tax preparation process, along with where they're going and where they've been. The program also features a link that gives users access to live tax advice from professional tax advisors at H&R Block. Finally, a revised Macintosh user interface makes the product more appealing than ever.
Included in the $19.95 price of TaxCut is one free electronic filing of a federal return (a $12.95 value) and a free state software download (a $19.95 value) -- each after a mail-in rebate.
"In further improving an award-winning product and giving users access to the vast network of H&R Block tax professionals through our new Ask a Tax Advisor live service, we have a created a very powerful tool for taxpayers," said Gene Goldenberg, senior vice president of e-solutions at H&R Block. "Mac users will be hard-pressed to find a better combination of value and performance than TaxCut."
TaxCut puts users in charge, letting them decide how and when to file their returns. In addition to electronic filing, all TaxCut forms can be printed and mailed to the IRS or state revenue departments. Electronic filing of the first federal return is free for Macintosh-version users after a mail-in rebate, and state electronic filing is only $2.00 if done concurrently with federal filing ($6.95 if separate). TaxCut Deluxe for the Macintosh features software for 26 states, up from 15 last tax season.
As for refunds, users can choose to receive their money by direct deposit to their banks or via check through the mail. And if users want their refund in 48 hours, they can take advantage of TaxCut's Electronic Refund Advance (ERA) program. ERA allows users to receive a tax refund advance of up to $5,000 deposited directly to their bank accounts in no more than two business days after the IRS accepts the taxpayers' electronically filed return. ERA is a loan, and a fee is charged by the lending institution, Household Bank, f.s.b.
TaxCut comes with the H&R Block guarantee. If a user is penalized because of a mistake in the program, Block will pay penalties and interest. TaxCut products can be bought wherever software is sold or downloaded from the TaxCut Web site. For more information, call 1-800-457-9525 or visit the TaxCut Web site | http://www.applelinks.com/articles/2000/12/20001228132011.shtml | crawl-002 | refinedweb | 550 | 62.38 |
How do i identify when price action gets tight?
- Sagittarius19 last edited by
Hello,
I am trying to write a script to identify and buy when the closes of the past 15 seconds stay between two prices. Below is the code i have so far. I am using tick data so the time between ticks can vary. Meaning (close[0], close[1] and close[2] can all have different spans of time between them. Hence why i am using time for my entry.
Any idea how to make this work? In this particular case, i am trying to buy when the close has stayed in a 5 cent range for atleast 15 seconds.
def next(self): for i, d in enumerate(self.datas): if (len(self.datas[i])>0): close = self.datas[i].close price_up2 = price[-1] +.02 price_down2 = price[-1] - .02 if not position: if close_up2c > close[0] > close_down2c: start_time = time.time() if time.time() - start_time <= 15: return else: self.buy(data = d)
- backtrader administrators last edited by
The first thing is to use the actual time reference
@sagittarius19 said in How do i identify when price action gets tight?:
if time.time() - start_time <= 15:
This is the time in your PC/Laptop/Raspberry Pi, which may have nothing to do with the trading time and the speed and which the data delivers ticks/bars.
See: Docs - DateTime Management
- Sagittarius19 last edited by
@backtrader Got it. Thanks for pointing this out | https://community.backtrader.com/topic/1013/how-do-i-identify-when-price-action-gets-tight | CC-MAIN-2020-40 | refinedweb | 242 | 77.33 |
(For more resources related to this topic, see here.)
Step 1 – setting up your development directory
If you haven’t done so, create a directory to work in. I’m going to keep this as simple as possible, so we won’t need a complicated directory structure. Everything can be done in one directory.Put the freemarker.jar in the directory. All future talk about files and running from the command-line will refer to your working directory. If you want to, you can set up a more advanced project-like set of directories.
Step 2 – writing your first template
This is a quick start, so let’s just dive in and write the template. Open a file for editing called hello.ftl. The ftl extension is customary for FreeMarker Template Language files, but you are free to name your template files anything you want. Put this line in your file:
Hello, ${name}!
FreeMarker will replace the ${name} expression with the value of an element called name in the model. FreeMarker calls this an interpolation. I prefer to refer to this as “evaluating an expression”, but you will encounter the term interpolation in the documentation.
Everything else you have put in this initial template is static text. If name contained the value World, then this template would evaluate to:
Hello, World!
Step 3 – writing the Java code
Templates are not scripts that can be run, so we need to write some Java code to invoke the FreeMarker engine and combine the template with a populated model. Here is that code:
import java.io.*;
import java.util.*;
import freemarker.template.*;
public class HelloFreemarker {
public static void main(String[] args)
throws IOException, TemplateException {
Configuration cfg = new Configuration();
cfg.setObjectWrapper(new DefaultObjectWrapper());
cfg.setDirectoryForTemplateLoading(new File("."));
Map<String, Object> model = new HashMap<String, Object>();
model.put("name", "World");
Template template = cfg.getTemplate("hello.ftl");
template.process(model,
new OutputStreamWriter(System.out));
}
}
The highlighted line says that FreeMarker should look for FTL files in the “working directory” where the program is run as a simple Java application. If you set your project up differently, or run in an IDE, you may need to change this to an absolute path.
The first thing we do is create a FreeMarker freemarker.template.Configuration object. This acts as a factory for freemarker.template.Template objects.
FreeMarker has its own internal object types that it uses to extract values from the model.In order to use the objects that you supply, it must wrap these in its own native types. The job of doing this is done by an object wrapper. You must provide an object wrapper. It will always be FreeMarker’s own freemarker.template.DefaultObjectWrapper unless you havespecial object wrapping requirements.
Finally, we set the root directory for loading templates. For the purposes of our sample code, everything is in the same directory so we just set it to “.”. Setting the template directory can throw an java.lang.IOException exception in this code. We simply allow that to be thrown out of the method.
Next, we create our model, which is a simple map of java.lang.String keys to java.lang.Object values. The values can be simple object types such as String or java.lang.Number, or they can be complex object types, including arrays and collections. Our needs are simple here, so we’re going to map “name” to the string “World”.
The next step is to get a Template object. We ask the Configuration instance to load the template into a Template object. This can also throw an IOException.
The magic finally happens when we ask the Template instance to process the model and create an output. We already have the model, but where does the output go? For this, we need an implementation of java.io.Writer. For convenience, we are going to wrap the java.io.PrintWriter in java.lang.System.out with a java.io.OutputStreamWriter and give that to the template.
After compiling this program, we can run it from the command line:
java -cp .;freemarker.jar HelloFreemarker
For Linux or OSX, you would use a “:” instead of a “;” in the command:
java -cp .:freemarker.jar HelloFreemarker
The result should be that the program prints out:
Hello, World!
Step 4 – moving beyond strings
If you plan to create simple templates populated with preformatted text, then you now know all you need to know about FreeMarker. Chances are that you will, so let’s take a look at how FreeMarker handles formatting other types and complex objects.
Let’s try binding the “name” object in our model to some other types of objects. We can replace:
model.put("name", "World");
with:
model.put("name", 123456789);
The output format of the program will depend on the default locale, so if you are in the United States, you will see this:
Hello, 123,456,789!
If your default locale was set to Germany, you would see this:
Hello, 123.456.789!
FreeMarker does not call toString() method on instances of Number types it employs java.text.DecimalFormat. Unless you want to pass all of your values to FreeMarker as preformatted strings, you are going to need to understand how to control the way FreeMarker converts values to text.
If preformatting all of the items in your model sounds like a good idea, it isn’t. Moving “view” logic into your “controller” code is a sure-fre way to make updating the appearance of your site into a painful experience.
Step 5 – formatting different types
In the previous section, we saw how FreeMarker will choose a default method of formatting numbers. One of the features of this method is that it employs grouping separators: a comma or a period every three digits. It may also use a comma rather than a period to denote the decimal portion of the number. This is great for humans who may expect these formatting details, but if your number is destined to be parsed by a computer, it needs to be free of grouping separators and it must use a period as a decimal point. In this case, you need a way to control how FreeMarker decides to format a number.
In order to control exactly how model objects are converted to text FreeMarker provides operators called built-ins. Let’s create a new template called types.ftl and put in some expressions that use built-ins to control formatting:
String: ${string?html}
Number: ${number?c}
Boolean: ${boolean?string("+++++", "-----")}
Date: ${.now?time}
Complex: ${object}
The value .now come is a special variable that is automatically provided by FreeMarker. It contains the date and time when the Template began processing. There are other special variables, but this is the only one you’re likely to use.
This template is a little more complicated than the last template. The ” ?” at the end of a variable name denotes the use of a built-in. Before we explore these particular built-ins, let’s see them in action. Create a java program, FreemarkerTypes, which populates a model with values for our new template:
import java.io.*;
import java.math.BigDecimal;
import java.util.*;
import freemarker.template.*;
public class FreemarkerTypes {
public static void main(String[] args)
throws IOException, TemplateException {
Configuration cfg = new Configuration();
cfg.setObjectWrapper(new DefaultObjectWrapper());
cfg.setDirectoryForTemplateLoading(new File("."));
Map<String, Object> model = new HashMap<String, Object>();
model.put("string", "easy & fast ");
model.put("number", new BigDecimal("1234.5678"));
model.put("boolean", true);
model.put("object", Locale.US);
Template template = cfg.getTemplate("types.ftl");
template.process(model, new OutputStreamWriter(System.out));
}
}
Run the FreemarkerType program the same way you ran HelloFreemarker. You will see this output:
String: easy & fast
Number: 1234.5678
Boolean: +++++
Date: 9:12:33 AM
Complex: en_US
Let’s walk through the template and see how the built-ins affected the output. Our purpose is to get a solid foundation in the basics. We’ll look at more details about how to use FreeMarker features in later articles.
- First we output a String modified with the html built-in. This encoded the string for HTML, turning the & into the & HTML entity. You will want this applied to a lot of your expressions on HTML pages in order to ensure proper display of your text and to prevent cross-site scripting ( XSS ) attacks.
- The second line outputs a number with the c built-in. This tells FreeMarker that the number should be written for parsing by computers. As we saw in the previous section, FreeMarker will by default format numbers with grouping separators. It will also localize the decimal point, using a comma instead of a period. This is great when you are displaying numbers to humans, but not computers. If you want to put an ID number in a URL or a price in an XML document, you will want to use this built-in to format it.
- Next, we format a Boolean. It may surprise you to learn that unless you use the string built-in, FreeMarker will not format a Boolean value at all. In fact, it throws an exception. Conceptually, “true” and “false” have no universal text representation. If you use string with no arguments, the interpolation will evaluate to either “true” or “false”, but this is a default you can change. Here, we have told the built-in to use a series of + characters for “true” and a series of – characters for “false”.
- Another type which FreeMarker will not process without a built-in is java.util.Date. The main issue here is that FreeMarker doesn’t know whether you want to display a date, a time, or both. By specifying the time built-in we are letting FreeMarker know that we want to display a time. The output shown previously was generated shortly past nine o’clock in the morning.
- Finally, we see a complex object converted to text with no built-ins. Complex objects are turned into text by calling their toString() method, so you can use string built-ins on them.
Step 6 – where do we go from here?
We’ve reached the end of the Quick start section. You’ve created two simple templates and worked with some of the basic features of FreeMarker. You might be wondering what are the other built-ins, or what options they offer. In the upcoming sections we’ll look at these options and also ways to change the default behavior.
Another issue we’ve glossed over is errors. Once you have applied some of these built-ins, you must make sure that you supply the correct types for the named model elements. We also haven’t looked at what happens when a referenced model element is missing. The FreeMarker manual provides excellent reference for all of this. Rather than trying to find your way around on your own, we’ll take a guided tour through the important features in the Top Features section of the article.
Quick start versus slow start
A key difference between the Quick start and Top Features sections is that we’ll be starting with the sample output. In this article, we created templates and evaluated them to see what we would get. In a real-world project, you will get better results if you worked backwards from the desired result.
In many cases, you won’t have a choice. The sample output will be generated by web designers and you will be expected to produce the same HTML with dynamic content. In other cases, you will need to work from mock-ups and decide the HTML for yourself. In these cases, it is still worth creating a static sample document. These static samples will show you where you need to apply some of the techniques.
Summary
In this article, we discussed how to create a freemarker template.
Resources for Article:
Further resources on this subject:
- Getting Started with the Alfresco Records Management Module [Article]
- Installing Alfresco Software Development Kit (SDK) [Article]
- Apache Felix Gogo [Article] | https://hub.packtpub.com/creating-your-first-freemarker-template/ | CC-MAIN-2018-17 | refinedweb | 1,999 | 66.54 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.