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
ASP.NET Graphs: Raise the Bar They say that a picture is worth a thousand words, and nowhere is this more evident than in the use of bar charts. With bar charts, it’s possible to visualize past sales history, forecast stock prices, and display survey results pictorially — among literally thousands of other applications. Bar charts become even more valuable when they can be generated dynamically. Thankfully, ASP.NET provides the means for doing just that within the existing .NET framework, via the SYSTEM.DRAWING namespace. In this tutorial, we’ll: - Examine some of the classes and methods of the SYSTEM.DRAWINGnamespace. - Learn how to determine the coordinates of an object. - Examine the code that’s used to dynamically generate a bar chart like the one shown below. You might be interested to know that the above image file was made using the code we’ll explore in this tutorial, with one slight modification. More on that later. Before we begin, you might like to download the code that we’ll use in this article. The System.Drawing Namespace The SYSTEM.DRAWING namespace provides access to basic graphics functionality that allows us to draw dynamic images, and is the basis on which we’ll build our bar chart. We’ll use the following classes: Bitmap– This class is used to create the bitmap image. Graphics– This is the surface that contains all the individual objects that comprise our bar chart. SolidBrush– This class defines a brush of a single color. Brushes are used to fill graphical shapes, which, in the case of our bar chart, will be rectangles. Pen– Pen defines an object that’s used to draw lines and curves. We’ll also use a number of methods within the SYSTEM.DRAWING namespace: Clear– This method clears the entire drawing surface and fills it with the specified background color. Its only parameter is the Color object, which specifies the color that we want to paint the background. FillRectangle– This method uses a brush to fill the interior of a shape. This is the method we’ll use to color-fill the background color of our bitmap, the background of the chart area, and the chart bars. The parameters it uses are brush, the X and Y coordinates of the upper left corner of the rectangle, and the width and height of the rectangle. DrawRectangle– This is the method with which we’ll draw a border around the bitmap, bar chart area, and the chart bars. The parameters it uses are brush, the X and Y coordinates of the upper left corner of the rectangle, and the width and height of the rectangle. DrawLine– This method is used to draw the horizontal scale lines. The parameters it uses are the pen that was used to draw the line, the X and Y coordinates of the line’s starting point, and the X and Y coordinates of the line’s end point. DrawString– This method draws text objects on our image. The parameters it uses are the text string that we want to draw, font information, the brush it uses, and the X and Y coordinates of the upper left corner of the drawn text. Determining the Coordinates of an Object Determining the X and Y coordinates that position each of the objects in our image is a topic that deserves special attention, since it has the potential to cause the biggest problems in our drawing. Unlike the information you may recall from your high school geometry class, the home coordinate — or (0,0) position — in .NET is actually located in the upper left corner of the display. Furthermore, position plotting is zero-based; that is, a rectangle that’s 200 pixels wide and 400 pixels high, for example, will have X coordinates that range from 0 to 199, and Y coordinates that range from 0 to 399. Take a look at the image below, which shows the coordinates of each corner in our 200 x 400 rectangle. Now, if we wanted to draw a line from the lower left corner of our rectangle to the lower right corner, we would plot two points: (0,399) and (199,399). This information will be useful when we determine the coordinates and dimensions of the shapes that comprise our chart. The Code to Generate our Bar Chart Image We designed all the dimension and positioning constants in a way that would allow the proportion and scale of our drawing to change as those values change. For example, the height and width are set to 450 and 400, respectively, in our sample program. If we were to change those values to, say, 850 and 1125 respectively, the height and width of our bars would change, as would the other elements in our chart. Before we dive into the code, let’s examine the global values it uses: BMP_HEIGHTand BMP_WIDTHare the dimensions of the bitmap image. CHART_LEFT_MARGIN, CHART_RIGHT_MARGIN, CHART_TOP_MARGINand CHART_BOTTOM_MARGINdefine the margins between the outside border of our bitmap and the border around the chart area. CHART_HEIGHTand CHART_WIDTHare the dimensions of the chart area. SCALE_INCREMENTprovides the increment of horizontal scale lines on the bar chart. BAR_LABEL_SPACErepresents the amount of space, in pixels, between the top of each bar on the chart, and each bar’s label. LINE_COLORis the constant object that defines the color of lines and borders around various objects. TEXT_COLORis a constant object that defines the text color for the horizontal scale labels and bar value labels. barValueis an integer array that contains the values of the bars that are drawn on the bar chart. bitmapis a class that’s used to create the bitmap image. chartis the graphics class that’s associated with our bitmap image. It represents the surface onto which all the objects of our bitmap will be placed. Now, on to the code! In some cases, the code in this tutorial has been formatted differently than the download code, so that it can conform to web display requirements. Dim bitmap As New Bitmap(BMP_WIDTH, BMP_HEIGHT) Create an instance of our Bitmap class and set its dimension to the constants, BMP_WIDTH and BMP_HEIGHT. Dim Chart As Graphics = Graphics.FromImage(Bitmap) Create an instance of the Graphics class that’s associated with our Bitmap image. This is the surface onto which all other objects for our bitmap will be placed. barValueis an integer array that will be used in drawing the chart bars, and is populated via the GetBarValues()function (below): Function GetBarValues() barValue = New Integer() {18, 45, 163, 226, 333, _ 3, 183, 305, 329, 73, _ 271, 132, 348, 272, 64} Return barValue End Function Note that these values are hard-coded for the sake of keeping our code as simple as possible. However, they could just as easily be replaced with database data, form data, or data passed into our program via query string. The next section of code comprises a series of variables that are used to define the dimensions and locations of certain objects on the chart. numberOfBars = barValue.Length numberOfBarsis the size of the integer array containing the bar values. Its main use is in determining the width of the chart bars. I could just as easily reference the barValuearray length directly using its definition, barValue.Length. However, this variable is used to help our understanding of the code. highBarValueis the highest bar value that appears on the chart, and is defined by the following function: Public Function GetHighBarValue(ByVal numberOfBars As Integer, _ ByVal barValue As Integer(), _ ByVal highBarValue As Integer) Dim i As Integer For i = 0 To numberOfBars - 1 If barValue(i) > highBarValue Then highBarValue = barValue(i) End If Return highBarValue End Function This function loops through the bar value integer array and sets the highBarValuevariable to the highest value in the array. maximumScaleValueis the highest scale value along the Y axis, and is defined by the function GetMaximumScaleValue. Let's examine each of the statements in this function. maximumScaleValue = Math.Ceiling(highBarValue / scaleIncrement) * scaleIncrement This statement calculates the highest multiple of the scale increment for the chart. In our example, the scale increment is 50 and the highest bar value is 348. Therefore, the maximum scale value is 350. If (maximumScaleValue - highBarValue) < BAR_LABEL_SPACE Then maximumScaleValue += scaleIncrement End If If the highest bar is too close to the top of the chart, its label will sit above the chart area of our bitmap. To prevent this from happening, we'll need to increase the maximum scale value by one additional scale increment. Going back to our sample chart again, we recall that the maximum scale value was calculated as 350. Our high bar value is 348, which is only 2 points away from the top of the chart area. We want the top bar value to be at least 15 points (the value of BAR_LABEL_SPACE) from the top of the chart, so we need to increase the maximum scale value from 350 to 400: numberOfHorizontalScaleLines = maximumScaleValue / SCALE_INCREMENT The number of horizontal scale lines is used as an index when the scale lines are drawn on the chart. To define it, we divide the maximum scale value by the scale increment. The total number of scale lines is also used to calculate the vertical scale ratio, which is discussed next. verticalScaleRatio = CHART_HEIGHT / numberOfHorizontalScaleLines verticalScaleRatiois the factor that ensures that the vertical positioning of the horizontal scale lines is proportional to the height, in pixels, of the chart area. verticalScaleRatiois calculated by dividing the chart's height by the number of horizontal scale lines in the chart. In our sample program, the chart height is 350 pixels, and it has 8 horizontal scale lines. Thus, the vertical scale ratio is: 350 / 8 or 43.75 pixels. This means that we need to draw horizontal scale lines every 43.75 pixels from the top to bottom of the bar chart. barHeightRatio = CHART_HEIGHT / maximumScaleValue In a similar manner to the way in which we calculated the vertical scale ratio for placement of the horizontal scale lines, we need also to calculate the bar height ratio so that the height in pixels of each bar is proportional to the chart's height. In our example, the bar height ratio is calculated as follows: 350 / 400 = 0.875. Thus, each bar value will be multiplied by a factor of 0.875. Next, let's examine the methods that draw the chart elements. DrawChartBackground The following color structures are defined for this method: clearCanvasis the base color of the bitmap image. bmpBackgroundColoris the background color of the bitmap image. chartBackgroundColoris the background color of the chart area. It represents the area onto which the chart bars and their labels will be placed. Chart.Clear(clearCanvas) The above method clears the entire drawing surface and fills it with the color specified by the color clearCanvas. Chart.FillRectangle(bmpBackGroundColor, 0, 0, BMP_WIDTH, BMP_HEIGHT) This method sets the background color of the bitmap and establishes the chart's width and height. Chart.DrawRectangle(LINE_COLOR, 0, 0, BMP_WIDTH - 1, BMP_HEIGHT - 1) The above method draws a border around the entire bitmap. chart.FillRectangle(chartBackgroundColor, _ CHART_LEFT_MARGIN, _ CHART_TOP_MARGIN, _ CHART_WIDTH, _ CHART_HEIGHT) chart.DrawRectangle(LINE_COLOR, _ CHART_LEFT_MARGIN, _ CHART_TOP_MARGIN, _ CHART_WIDTH, _ CHART_HEIGHT) The code presented here color-fills, and draws a border around, the chart area of our bitmap. Since all the elements of our bitmap must fit inside the outermost bitmap dimensions, we need to make room within the bitmap for the elements outside of the chart area. Our example displays only scale numbers in this area; however, you may wish to add other elements as you customize the code to suit your needs. DrawScaleElements The following constants are defined for this method: SCALE_Xis the X coordinate of the scale label. SCALE_Xis defined as 25, which is used to locate the X coordinate 25 pixels to the left of the chart's left margin. SCALE_Yis the Y coordinate of the scale label at the top of the chart. It is defined as 5 pixels below the chart's top margin, which ensures that the scale labels are centered vertically with respect to the horizontal scale line. iis the index variable that tracks our iterations through the loop. For i = 1 To numberOfHorizontalScaleLines - 1 chart.DrawLine(LINE_COLOR, _ CHART_LEFT_MARGIN, _ CHART_TOP_MARGIN + (i * verticalScaleRatio), _ CHART_LEFT_MARGIN + CHART_WIDTH, _ CHART_TOP_MARGIN + (i * verticalScaleRatio)) This loop draws the horizontal scale lines. Note that, here, we're drawing only the interior scale lines, as the top and bottom lines were created when we drew our border around the chart area. The starting X coordinate represents the chart's left margin; the ending X coordinate is derived from a formula that calculates the position of the right-hand side of the chart area. The starting and ending Y coordinates are both the same, and are calculated on the basis of the distance between the chart's top margin and the current scale line. For i = 0 To numberOfHorizontalScaleLines chart.DrawString(maximumScaleValue - (i * SCALE_INCREMENT), _ New Font("arial", FontSize.Large, FontStyle.Regular), _ TEXT_COLOR, _ SCALE_X, _ SCALE_Y + (i * verticalScaleRatio)) This loop draws the scale labels. The Y coordinate of the scale label is calculated similarly to the way that we calculated the scale lines' positioning. DrawChartBars This method uses the following elements: columnSpacingis the variable that's used to increment the horizontal spacing between each bar on the chart. currentBarHeightis the adjusted value, in pixels, of each individual bar, so that each bar is proportional to the height of the chart (see the previous discussion on this point). barWidthis calculated on the basis of the chart's width and the number of bars it's intended to display. fillColoris an array of SolidBrushobjects that's used to define the bar colors. numberOfFillColorsdefines the number of array elements in the fillColorarray. It's used as a counter to determine which color each bar should take. iand jare index variables. columnSpacing = barWidth This statement initializes the column spacing before the chart's bars are drawn. For i = 0 To numberOfBars - 1 currentBarHeight = Convert.ToSingle(barValue(i)) * barHeightRatio chart.FillRectangle(fillColor(j), _ columnSpacing + CHART_LEFT_MARGIN, _ BMP_HEIGHT - CHART_BOTTOM_MARGIN - currentBarHeight, _ barWidth, _ currentBarHeight) chart.DrawRectangle(LINE_COLOR, _ columnSpacing + CHART_LEFT_MARGIN, _ BMP_HEIGHT - CHART_BOTTOM_MARGIN - currentBarHeight, _ barWidth, _ currentBarHeight) chart.DrawString(Convert.ToString(barValue(i)), _ New Font("arial", FontSize.Small, FontStyle.Regular), _ TEXT_COLOR, _ columnSpacing + CHART_LEFT_MARGIN, _ BMP_HEIGHT - CHART_BOTTOM_MARGIN - currentBarHeight _ - BAR_LABEL_SPACE) j += 1 If j > (numberOfFillColors - 1) Then j = 0 End If columnSpacing += barWidth This loop formats the chart bars. Let's examine each statement individually. currentBarHeight = Convert.ToSingle(barValue(i)) * barHeightRatio This statement sets the current bar height so that it's proportional to the height of the chart. (See the previous discussion on bar height ratio for more on this point.) chart.FillRectangle(fillColor(j), _ columnSpacing + CHART_LEFT_MARGIN, _ BMP_HEIGHT - CHART_BOTTOM_MARGIN - currentBarHeight, _ barWidth, _ currentBarHeight) This section fills the bar with the appropriate fill color. The X coordinate of the bar's upper left corner is calculated as the sum of columnSpacing and CHART_LEFT_MARGIN. The Y coordinate is calculated by starting from the bottom of the bitmap, and subtracting from the Y coordinate value the chart's bottom margin and the current bar's height. chart.DrawRectangle(LINE_COLOR, _ columnSpacing + CHART_LEFT_MARGIN, _ BMP_HEIGHT - CHART_BOTTOM_MARGIN - currentBarHeight, _ barWidth, _ currentBarHeight) This code draws the border around the chart bar. This method uses the same calculations as the FillRectangle method we used for the X and Y coordinates of the upper left corner of the bar. chart.DrawString(Convert.ToString(barValue(i)), _ New Font("arial", FontSize.Small, FontStyle.Regular), _ TEXT_COLOR, _ columnSpacing + CHART_LEFT_MARGIN, _ BMP_HEIGHT - CHART_BOTTOM_MARGIN - currentBarHeight _ - BAR_LABEL_SPACE) Draw the label above the bar. The X coordinate in this method is identical to the DrawRectangle method from the previous statement. The Y coordinate is also similar to the DrawRectangle method above, except that it also subtracts BAR_LABEL_SPACE from the calculation so that the label will sit above the bar. j += 1 If j > (numberOfFillColors - 1) Then j = 0 End If This code block ensures that the bar fill colors are repeated. columnSpacing += barWidth Finally, this statement increments the columnSpacing variable so that the next bar is positioned alongside the previous one. The Finishing Touches Response.ClearContent() This method clears all the content from the output buffer. This code ensures that the only output that's sent to the browser is our image. Response.ContentType = "image/gif" bitmap.Save(Response.OutputStream, Imaging.ImageFormat.Gif) The first of these statements sets our image type to .gif. The second statement sends our image directly to the browser. If we wanted to send our image to a file instead of to the browser, we'd use the following code: Response.ContentType = "image/png" bitmap.Save("C:pathtobargraph.png", Imaging.ImageFormat.Png) You'll need to change the value of "C:pathtobargraph.png" to reflect the desired filename and path for your file. Note that when we run our page with these two statements, instead of the previous two, a blank page will display. However, if you look into the directory in which you specified the file to be saved, you'll find the image has been created as a file that you can open in your favorite graphics software. chart.Dispose() bitmap.Dispose() This last snippet releases the memory used by the Graphics object and the bitmap. Summary In this tutorial, we examined some of the classes and methods that are available within the SYSTEM.DRAWING namespace, learned how to determine the coordinates of an object, and used these skills to draw a basic bar chart. So, where do we go from here? With the skills you've acquired from this tutorial, you can easily add a report title, x-axis labels, and a legend to our sample chart. The SYSTEM.DRAWING namespace offers a number of methods that will enable you to create a range of other charts -- a pie chart is just one example. Using the advanced two-dimensional graphics functionality of the SYSTEM.DRAWING.DRAWING2D namespace, you can create charts with stunning visual appeal. I would encourage you to examine all the available namespaces and methods, see what they can do for you, then really let your creative juices flow! Learn the basics of programming with the web's most popular language - JavaScript A practical guide to leading radical innovation and growth.
https://www.sitepoint.com/asp-net-graphs-raise-the-bar/
CC-MAIN-2021-43
refinedweb
3,066
53.21
SENDFILE(2) Linux Programmer's Manual SENDFILE(2) sendfile - transfer data between file descriptors #include <sys/sendfile.h> ssize_t sendfile(int out_fd, int in_fd, off_t *offset, size_t count); file offset of in_fd; otherwise the file offset is adjusted to reflect the number of bytes read from in_fd. If offset is NULL, then data will be read from in_fd starting at the. If. copy_file_range(2), mmap(2), open(2), socket(2), splice(2) This page is part of release 4.16 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at. Linux 2017-09-15 SENDFILE(2) Pages that refer to this page: copy_file_range(2), send(2), splice(2), syscalls(2), socket(7), tcp(7)
http://www.man7.org/linux/man-pages/man2/sendfile.2.html
CC-MAIN-2018-51
refinedweb
130
64.3
- Android Studio Arctic Fox or later is required. If you haven't already done so, download and install it. - Ensure that you are using the Android Gradle plugin version 7.0 or later in Android Studio.. Create a Google Maps project in Android Studio SDK version compatible with your test device. You must select a version greater than the minimum version required by the Maps SDK for Android version 18.0.x, which is currently Android API Level 19 (Android 4.4, KitKat) or higher. See the Release Notes for the latest information on the SDK version requirements. Click Finish. Android Studio starts Gradle and builds the project. This may take some time. When the build is finished, Android Studio opens the AndroidManifest.xmland MapsActivityfiles. Your activity may have a different name, but it will be the one you configured during setup. The AndroidManifest.xmlfile contains instructions on getting a Google Maps API key and then adding it to your local.properties file. Do not add your API key to the AndroidManifest.xmlfile. Doing so stores your API key less securely. Instead, follow the instructions in the next sections to create a Cloud project and configure an API key. Set up in Cloud Console Complete the required Cloud Console Maps SDK for Android Cloud SDK gcloud services enable \ --project "PROJECT" \ "maps-android: Add the API key to your app. import android.os.Bundle; import androidx.appcompat.app.AppCompat AppCompat internal)) } } Module Gradle file The Module build.gradle file includes the following maps dependency, which is required by the Maps SDK for Android. dependencies { implementation 'com.google.android.gms:play-services-maps:18.1.0' // ... }. Use the Maps Android KTX library: This Kotlin extensions (KTX) library allows you to take advantage of several Kotlin language features while using the Maps SDK for Android.
https://developers-dot-devsite-v2-prod.appspot.com/maps/documentation/android-sdk/start?authuser=0
CC-MAIN-2022-33
refinedweb
302
59.3
An EditableWebData represents an Editable value, along with WebData. Similar to the example in Gizra/elm-storage-key lets imagine a Todo list that can be edited. And lets assume that while a todo item is being edited, or while it's being saved, we'd like to keep showing the original value. Here's a pattern we may use to solve this: import EveryDictList import StorageKey type alias TodoItem = String {-| Wrap our `TodoItem` with `EditableWebData`, thus making it have the ability of having an "original" vs "new" values, and also maintain the `WebData` state. -} type alias EditableWebDataTodoItem = EditableWebData TodoItem {-| The TodoItem ID is type safety. -} type TodoItemId = TodoItemId Int {-| We wrap the `ArticleId` with the `StorageKey`. -} type alias StorageKeyTodoItem = StorageKey TodoItem {-| We use `EveryDictList` as we want to maintain the order of the items. -} type alias EveryDictListTodoItems = EveryDictList StorageKeyArticle EditableWebDataTodoItem type alias Todo = { label : String , items : EveryDictListTodoItems } elm-package install Gizra/elm-editable-webdata Install packages: npm install -g elm-test elm-verify-examples Execute tests: ./execute-tests
https://package.frelm.org/repo/998/2.0.0
CC-MAIN-2018-51
refinedweb
169
51.78
Building a Strawpoll clone in Phoenix with channels Current Versions Elixir: v.1.1.0 Phoenix: v1.0.3 Ecto: v1.0.6 Introduction One of the things that interested me the most about Phoenix and Elixir is the capabilities that are available for real-time data synchronization and broadcasting with things like Websockets. It has become such an alluring part of Phoenix that chat applications have affectionately become Phoenix’s “hello world” example, even! The reason for this is two-fold: channels are a first-class citizen in Phoenix, so adding them does not require working AROUND the framework, and they’re so simple to add that knowledge isn’t a barrier to implementation either. Based on that, let’s implement our own coming-of-age application in Phoenix too! What is Strawpoll? Strawpoll is a realtime polling platform written in nodejs that also takes advantage of websockets. As each vote comes in, the vote is broadcast to everyone who has that poll window open and has voted. So we have a few real time concepts to deal with: receiving broadcasts when someone else votes and sending out broadcasts when we vote, as well as how the polls are modified when they are live (such as closing a poll). It also displays/updates a nice little pie chart on the side of the app in realtime, so we’ll do that too! Getting started We need to start with building our Phoenix application, which is a pretty standard and simple process: mix phoenix.new haypoll cd haypoll mix ecto.create iex -S mix phoenix.server If everything worked, you should be able to visit and see the standard Phoenix “Getting Started” page! Setting up our data model Let’s discuss what we will need from a data perspective. We want to make sure we’re persisting these polls and votes. For our polls, all we really need is the name of the poll and whether it’s still open for voting or not. > mix phoenix.gen.html Poll polls title:string closed:boolean As the command states, we need to modify web/router.ex to add the new resource path: web/router.ex: scope “/”, Haypoll do pipe_through :browser # Use the default browser stack get “/”, PageController, :index resources “/polls”, PollController end Finally, we’ll cap it off by running mix ecto.migrate and make sure that our new table is added with the appropriate columns! Now, let’s create our concept of entries: > mix phoenix.gen.model Entry entries title:string votes:integer poll_id:references:polls We don’t want to create full templates and controllers and everything for entries since they don’t really exist much on their own; they really just exist for the purpose of serving data for the polls. We also set up a reference relationship between polls and entries. Once again, run mix ecto.migrate and verify the results. This will set up the “belongs_to” relationship on entries back to polls, but not the other way around. Let’s do that really quick. In web/models/poll.ex: schema “polls” do field :title, :string field :closed, :boolean, default: false has_many :entries, Haypoll.Entry, on_delete: :delete_all timestamps end Not only do we specify the “entries” association, but we also specify some behavior for when a poll gets deleted that will delete all of the entries that were attached to that poll. We also need to modify our web/models/entry.ex model to specify a default value for the number of votes to start at 0. schema “entries” do field :title, :string field :votes, :integer, default: 0 belongs_to :poll, Haypoll.Poll timestamps end Finally, restart your server that’s running via iex to make sure it grabs these changes. Making our poll creation a little more dynamic Right now our poll creation page is a little static, and there’s no way for us to modify the list of entries available to our poll. This is a good first start but we can improve it! Let’s make it so that we can add/remove entries from this page and create the poll and associated entries. There’s going to be a lot of javascript work involved here, so we’ll start with our list of dependencies. Preparing our javascript dependencies To make this pretty simple, we’ll just use jquery to modify our dom on the fly. To get jquery installed on a global level, we’ll just use a CDN to load the jquery library, and we’ll make it accessible to our entire application via our application layout. Open up web/templates/layout/app.html.eex and add the following: </div> <! -- /container --> <script src=”//code.jquery.com/jquery-1.11.3.min.js”></script> <script src=”<%= static_path(@conn, “/js/app.js”) %>”></script> Next, we’ll need to add a simple list of entries and a way to add a new entry to our poll form. In web/templates/poll/form.html.eex: We’ve added a new section with a header of Entries and a button to add more entries. We’ve also added our initial template with a text input for creating a new entry with a particular title. It’s not super pretty, but that’s okay! We can always clean up a UI later (or pay someone else to do it!). Now, what we want to happen is that every time someone clicks “Add Entry”, the top entry gets copied with a blank value, and if someone clicks the “remove” button next to an entry, it removes that particular row. To do this we’re going to have to write some javascript code. Let’s create a new file that will serve as our workhorse for the Polls page. Create web/static/js/poll.js: I’ve commented each line so you can follow along with the javascript code. And then in web/static/js/app.js add the following to the bottom: import { Poll } from “./poll” let poll = new Poll() And clean up the display with some css by adding this to the bottom of web/static/css/app.css: .entry { margin-top: 20px; margin-bottom: 20px; } This will spread the entries apart a little bit and it will look ever so slightly better. Now, we need to modify the create action in web/controllers/poll_controller.ex to create the entries with the poll. Start off by adding a line to alias the Entry model with alias Haypoll.Entry: We have to create a new function to delegate the work and clean up our codebase a little bit, so let’s take a look at line 12 above, the create_poll function. We start off with a call to: Repo.transaction fn -> ... This is going to wrap our operation inside of a transaction. If we fail to create an entry or the poll, we want to make sure the whole thing gets rolled back. Next, we just create our standard Poll changeset; nothing exciting here. We then match on our case for a successful poll insert with the {:ok, poll} tuple. Next, we use Enum.map to call an anonymous function that will build the associated entry for the poll and then insert it. We’re expecting that an errors should fail us out of our transaction, so we use Repo.insert! instead of the standard insert function. We also match on our case for the {:error, changeset}, where if we fail to insert, we force the transaction to rollback on the changeset. In our create function, we case on the create_poll function instead of our standard Repo.insert. This just makes our logic a little easier to follow and keeps our function a little smaller. We can create a poll, with entries, but we can’t actually verify that the entries have been created yet. We’ll fix that, however, by modifying our poll show template. Open up web/templates/poll/show.html.eex: Notice that we also added a hidden input at the top with an id of “poll-id” and a value of the current poll’s primary key. We will need that later! We also add a “data-entry-id” attribute to the list item with a value of the current entry’s id, and wrap the number of votes inside of its own span. We finally add a “vote” class to the Vote button. Save this file now. Unfortunately, we’re getting a compilation error here about: protocol Enumerable not implemented for #Ecto.Association.NotLoaded<association :entries is not loaded> The reason for this is that Ecto will not allow you to shoot yourself in the foot with associations running N+1 queries all over the place. We need to explicitly tell Ecto that we need to preload any associations, so let’s head back to web/controllers/poll_controller.ex and modify the show function: We define a query to use to fetch our entries which orders by the entry’s primary key. We then feed that query into the poll query, which preloads associated entries via the entry query we wrote. Finally, we use that combined query to fetch a specific poll with a specific id, and feed that all to the show template via our assigns. Now that we have our UI for polls, it’s time to take it one step further. We’re now going to implement live voting via channels! Creating and joining a channel We need to start off by creating the actual channel. We start off working with a couple of common setup details. First, we open up web/channels/user_socket.ex to set up our poll channel and tell Phoenix where to route socket requests/responses through. In web/channels/user_socket.ex, add the following: channel “polls:*”, Haypoll.PollChannel And now we need to create our PollChannel module. Open up web/channels/poll_channel.ex: defmodule Haypoll.PollChannel do use Phoenix.Channel def join(“polls:” <> poll_id, _params, socket) do {:ok, socket} end end We have to set up a “join” function that pattern matches on which channel the user is joining. In our case, we’re creating a channel for each individual poll, so we match on “polls:” <> poll_id. This line is pretty neat; what we’re doing here is pattern matching on a part of a string. We’re expecting the string to start with “polls:”, and then anything following that we’re assigning to the “poll_id” variable. We’re ignoring the params sent in, since we’re not going to use them for anything. Finally, we accept in the socket, since we need to turn around and respond with a tuple of {:ok, socket}. Next, we need to write some javascript code to demonstrate that we can, at least, join this channel. We’ll save the actual interaction and broadcasting pieces for later. Open up web/static/js/live_poller.js and let’s begin. We’re going to start off relatively simple but build this up later: Again, I’ve commented all of the code to make it easier to follow along. When we open up the poll show page, we should now expect to see “Connected” and “Joined” show up in our javascript log, and we should not expect to see that on any of the other pages! Now we’re ready to start broadcasting and dealing with messages! Finally, open up web/static/js/app.js and add the following at the bottom: import { LivePoller } from "./live_poller" let livePoller = new LivePoller() Pushing and broadcasting messages Next, we need to be able to broadcast out when a user votes (and receive the vote as well). We can deal with this via the handle_in function in our PollChannel module. Here, we’re expecting a broadcast with a message of “new_vote” and expecting to be sent entry_id as one of the parameters. We also are required to pass in the socket. We then fetch the appropriate Entry by the entry_id and then create a changeset that increments the number of votes for that entry by 1. Then, we attempt to update that entry in the database. If the update was a success, we broadcast out to the socket with a “new_vote” message, supplying an entry_id matching the updated entry’s primary key, and then just respond out with {:noreply, socket}. If it fails, we send out an error response with a map that includes the reason. If you look back to the javascript code: .receive(“error”, reason => { console.log(“Error: “, reason) }) Notice that we’re expecting an “error” response (like the :error part of our tuple) and a “reason” in the map for our response! When you tease all of this apart, the whole channel concept really simplifies itself! Now, we have to finish up our javascript code. In setupPollChannel(), after we define our pollChannel, we need to create a new event handler to deal with new_vote messages: // Set up a handler for when the channel receives a new_vote message pollChannel.on(“new_vote”, vote => { // Update the voted item’s display this._updateDisplay(vote.entry_id) }) Notice there’s a new function call here, self.updateDisplay. We haven’t written that yet, so let’s do so: We also reference an “updateEntry” function that we need to define, so let’s do that next: _updateEntry(li, newVotes) { // Find the .votes span and update it to whatever the new votes value is li.find(“.votes”).text(newVotes) } Simple function; this is pretty much all just gruntwork to support updating the display and making the UI buttons do things. Finally, we need to write a function that will actually set up the vote buttons and hook them into broadcasting our message. We’ll define one more function: setupVoteButtons. The only part here that even pertains to the channels is that “pollChannel.push(…)” function call. It pushes a message, in our case “new_vote”, out to the channel with a list of parameters. In our case, the only parameter we actually care about is entry_id! The final contents of our web/static/js/live_poller.js file should look like the following: Your project is now functional! Not pretty, but functional! You should have live-updating voting numbers, and if you open up multiple browsers, each of your browsers will receive the results live as you go along! And we didn’t even write all that much just to make this project work! Let’s just add one final bit of shiny “interfaceness” to make this project a little more like Strawpoll. Adding in a live-updating graph Let’s take it one step further and add in a graph to track all of our votes. For this, I’ll just stick to Google’s graphing/visualization libraries in javascript as they’re pretty simple to understand and implement. I’ll leave it up to you if you want to roll with something a bit different! Let’s start by changing our Poll show template. Wrap the ul inside of a div with a class of “col-xs-8”, and then add another div below all of that with a class of “col-xs-4” and an ID of “my-chart”. We’ll also add a script tag referencing the google jsapi codebase: <div class=”col-xs-4"> <div id="my-chart"></div> </div> <script type=”text/javascript” src=”"></script> Also, update the <%= entry.title %> line to be wrapped inside of a div with the class of “title”. <span class=”title”><%= entry.title %></span> Next, update web/static/css/app.css and add an entry for #my-chart to make it a particular size: #my-chart { width: 400px; height: 400px; } Finally, we need to go digging into our live_poller.js code a little more. We’ll start by adding some more code to handle our graph: Next, at the top of our LivePoller object, add the following line: chart: null, And add a call to setupGraph inside the init() function: // And setup our graph this._setupGraph() And in our setupPollChannel function, where you build out the “new_vote” message handler, add the following lines: // And update the graph, since we have new data this._updateGraph() Everything is now complete and we should have a nice new displayed graph that live updates per each vote! Our final operation is to allow someone to close/reopen polls and broadcast the event appropriately. Closing and opening polls In our update function in web/controllers/poll_controller.ex we need to create a new broadcast when a poll is opened or closed! Haypoll.Endpoint.broadcast(“polls:#{id}”, “close”, %{closed: poll.closed}) Let’s also add a CSS class for something that should be hidden: .hidden { display: none; } Next, let’s open up the setupPollChannel function in live_poller.js and add a new handler for the “close” message: // Set up a handler for when the channel receives a close message pollChannel.on("close", status => { if (status.closed) { $("a.vote").addClass("hidden") $("#poll-closed").text("false") } else { $("a.vote").removeClass("hidden") $("#poll-closed").text("true") } }) And finally, update web/templates/poll/show.html.eex to be able to respond to all of this new data: Our UI should now look like this when someone closes our poll: Conclusion We now have a pretty awesome little live-updating live-polling application, and we really haven’t written that much new code, and certainly not complicated polling or socket code. Our application has a very good foundation now, but there are definitely still a few bugs to work out and there are zero tests for this so far! Certainly not ideal, but a great starting point. Here are some of the known bugs: - We don’t list the entries at all on the Poll edit page - Anyone can edit/delete any poll - No tests whatsoever - The UI/design kind of stinks If I were to go in and implement all of these, this long post would get much, much longer, so instead I’m going to leave these as exercises to you, intrepid readers! If you want to take a look at the code generated so far, you can grab it from.
https://medium.com/@diamondgfx/building-a-strawpoll-clone-in-phoenix-23dcb2bc4972
CC-MAIN-2018-34
refinedweb
3,018
72.56
DavidF: Majority of time spent on last-call issues. Agenda item 6 will be remaining issues. Agenda item 7, issues lacking proposals. Issue regarding IP does not appear on either agenda item, but will be discussed as new charter is published. Status of rechartering: We are a day away from seeing the new charter. Responses from the new charter were requested from AC Reps, and received from all. The new charter is ready, pending announcement of director, perhaps by the end of the week. No objection to their approval, and no requests for modifications. [misc notes on actions] Responses trickling back from implementers. Will be published in next day or two. Others have committed but provided no updates. We may have lost HP as an implementer of the specification. Question: Prioritizing dividing the implementations between must, should, etc. Is it the case that we must show two interoperable implementations for every feature, and that we must do it for the musts, and shoulds. Opinion: not required for "should's". DavidF: We have committed to implement not only mandatory but also optional. Noah: We should proceed that way and reevaluate if necessary later. [end of actions] * Primer -- no report * Spec -- no change from editors * Test collection document Anish: mail sent describing this. Almost done synching with latest version of part 1. Have not started on part 2. Intends to be done by the end of the week. Mike Champion -- WSA -- Hugo wrote something up that will be submitted by the deadline on the 18th. * Attachment feature document -- no comments back on this document yet (LC). Reminder send to chairs list by DavidF. * Last Call issues list -- it is up to date. * Implementation tracking -- status given earlier * Media type draft, nothing to report * Planning for October F2F, please send agenda items. Question: how is list of participants updated? Only 6 registrants had come through in box. It will be updated in next version. Any pushback to recently-closed issues? Henrik -- a comment regarding closing and whether resolution text was sufficient. This was sent to the chairs list. We have to be careful to say carefully why we closed things. Some of the past closings have contained no rationale at all. Comment received during last call regarding subcode. Gudge proposed not answering the questions. One question was about enumerated fault type, the other was how WSD figures out the type of subcode. Gudge suggests these are not issues for us, but we should bequeath them to the WSD working group. Resolution: No objection. Agreed to send comment to WSD working group. Gudge agreed to send appropriate email to WSD WG in email. Issue 234, are gateways intermediaries? DavidF: Listed as editorial issue, but it is an important concept that needs to be run past the WG. Noah: Agenda statement about issue is an oversimplification, it states there is agreement that a gateway is not intermediary. It may not be, but not necessarily. The wording should not rule out a gateway being an intermediary. Dave Orchard: Should we define gateways quickly, and pass future revisions to WSA working group? Noah: gateways do not appear in SOAP specification. Req??? is fine, it defines intermediary, and talks per-message. We do not talk about gateways, we should not. Proposal: close 354, taking no action except minor editorial. Rational for our position is that a gateway is not necessary a SOAP intermediary, but we are not in the business of defining what is a gateway. Henrik: Agrees. We have nothing to say about these things. We care about what comes in and goes out SOAP. Jean Jacques: Agree with Noah. Mark Baker and I came up with a joint definition for Gateway, to be included in the WSA document." Dave Orchard: So, the direction is to define gateways in WSA? Can we defer this decision for a week, because the WSA WG thread is long and I have not read it? DavidF: We'll record the general feeling of the consensus and postpone decision until next week. Issue 231: DavidF: we have already agreed to a new attribute. The text Noah proposed is the only we have. We can close this issue by incorporating Noah's text. Jacek: Noah's text covers parts of 231. The rest of the resolution regarding 231 is posted in dist-app, recorded in irc, dist app message 193. We have changed the attribute name changed to nodeType, but otherwise we can use Noah's proposed text. DavidF: Is there any objection to closing 231 as just described (and see irc) with the new name of attribute and Noah's text as referenced in agenda? No objections. DavidF: 231 is so closed. John Ibbotson to write closing text to xml-dist-app. Issue 305: DavidF: Editors started preliminary discussion of options resolving 305, URL sent in response to agenda in member archive #12. Marc to outline proposal: Marc: We have three options: 1. Push back on issue -- when we say message, that includes all information, not just the envelope. That ducks the issue a bit. 2. Accept that it is a problem and we need to split http binding into copies of nearly the same thing with different state machines. 3. More radical overhaul. Remove the duplication between http binding text and text of MEPs, pushing MEP descriptions back to section 6, removing tables, extracting descriptive text. Then refer back to the state machines in section 6. Henrik: #3 was proposed in the issue. It is a lot of work, but perhaps we should do it anyway. Other editors state agreement -- setting themselves up for a lot of work. David: Does #3 mean we will have a shorter spec? Marc: Yes, several pages shorter, eliminating redundancies from section 6, which may even be contradictory in places. Shortens http and does not lengthen MEPs much. ???: What about the mail binding, what would be the effect? Does it use response request? DavidF: Are there any major objections to adopting option #3? JohnI: If the editors are willing, I support simplification. Yves: (in response to a question about such changes pushing us back to pre-LC) If the changes are clarifications only, and even though they change the spec's appearance, they will not require us to go back to WD. No objections to adopting option #3. DavidF: There is at leats a tacit mandate at least for adopting option #3. We will leave the issue open until the changes are doneand we can see them, because they are large, and will give an opportunity to catch unintended changes that are beyond editorial. We need the changes by the end of next week. Editors agree. DavidF: We need a stable copy of spec. Any other changes between now and 18th must be there, too. Editors need to do everything for a draft by the F2F that resolves all issues. Editor's question: How should paragraph movements be handled? Text deleted from old section and added to new section. Looks bad. Is there a style sheet to hide this? No. For tables, just leave deleted caption and not entire table. Noah: Marc, is there a fifth change code that could be introduced for notes, like "3 paragraphs removed here". Henrik: Let editors take it off line. Editors instructed to make changes, issue will remain open. Issue 300: Awaiting text from Glen. Postponed. Issue 362.1 DavidF: Request to rename soap encodings ref attribute to idref, to reduce confusion related to other uses of ref, and to better reflect our use. We have a proposal to maintain the status quo noting that if we namespace qualify our attributes, it will appear in a different namespace (the WG agreed to global namespace qualification in a previous issue). DavidF: Proposal, keep the status quo, rationale: now that ref is namespace qualified, it's semantics are uniquely qualified. No objection. DavidF: This part of issue 326 is so closed. Issue 362.2 With regard to how strictly idref is enforced. Spec says we should enforce them. The request is that we MUST enforce them. Proposed resolution: Because we do not mandate XML Schema, such constraint checking is impossible. Noah: Likes proposal, but not the reason. The id could be enforced without schema. But there are other good reasons not to require it. Nothing deeply breaks if we only encourage this and do not mandate enforcement on data that applications are not interested in. DavidF: Any obection to adopting status quo with modified rationale and closing the issue? No objections. DavidF: issue 362 is so closed. Noah will send closing to xmlp-comment and originator. Issue 355: Comment information items in SOAP infoset. DavidF: Gudge was asked to create proposal on what infoset could contain, which he did. There has been a lively discussion. Can someone speak to where the issue is with respect to the discussion (Gudge not present)? Henrik: There was a question involved in signing the envelope, whether an empty header can be removed from the envelope: Noah: Two things, the decision, and the rationale. 1st model: Keep it simple, don't mess with it. 2nd model: It is a bother to keep track of whether data might be missing due to an empty header. Henrik: What if it was an argument. Noah: that was not covered by case. It was not a question of what to do if you remove the last one. Noah prefers 1st option More discussion of specific use cases with intermediaries ... Marc: This (????) would be a significant change to last-call draft, because what was allowed by intermediaries would now be disallowed. Henrik: Correct. Marc: Concerned we need to go back to another draft, which we want to avoid. DavidF: Is there a part of the proposal that we could adopt? Noah: Gudge claimed he took an action item to deal with various aspects, not just CII's. DavidF: There was a specific and a more general discussion. He considered them to be clarifications, but not everyone agrees with that. a. The proposal is large with possible WD size impacts. b. Probably goes beyond CII scope. c. People like where it went. Possible ways forward: 1. Ask Gudge to explain how semantics are not changed. (Henrik points out that intermediaries change, you could say what it applies to) 2. We need another turn of the crank. Either we choose status quo, or ask Gudge or someone to pare down the proposal to just focus on CIIs. 3. We could take Henrik's comment that it really changes things, so decide whether we want to take it on board. Would this change send us back to the beginning of last-call. Yves: Cannot say yes or no. DavidF: Several have called this a major change. What about paring this down. What about dealing with just CII's? Marc: Will we get hit with being signature unfriendly, otherwise? Noah: A middle ground beyond just do comments. Insofar as he is just expressing in infoset terms what we were saying formally, should we allow that. That part is just editorial, but can still go beyond comments. Henrik: Agreed. DavidF: Middle ground, just do CIIs, or a slightly broader proposal to use the infoset terminology and constructions throughout. Noah: do comments and reiterate that editors need to be consistent on infoset, and perhaps it is already clean in that respect. David: Should we go forward? Henrik would like to discover whether this takes us back before LC, to see if more can be done. David: parallel? More discussion... Yves to try finding out by Monday whether this is lilkely to send us back to WD. Henrik to talk to Gudge. -- 366, use generic types for struct and array Proposal to close issue with no action because it is no longer applicable since generics were removed (issue 297). DavidF: Any objections to closing the issue with this proposal? No objections raised. DavidF: issue 366 is so closed. Jean Jacques to write xmlp-comment text. -- 365, keep generics Proposal to close issue with no action because we already decided to remove generics (issue 297). DavidF: Any objections to closing the issue with this proposal? No objections raised. DavidF: issue 365 is so closed. issues for which we have no proposals. Herve: 277 Henrik: 371 Asir: 363 Jacek: 364 Marc: 294 359, will wait to see what Glen comes up with for 300 which is closely related John Ibbotson & David Fallside: 367 368 369 Proposals due for end of business on Monday. DavidF asks for committments. Committments received. [meeting closed]
https://www.w3.org/2000/xp/Group/2/10/09-minutes.html
CC-MAIN-2016-36
refinedweb
2,090
67.65
Docs | Forums | Lists | Bugs | Planet | Store | GMN | Get Gentoo! Not eligible to see or edit group visibility for this bug. View Bug Activity | Format For Printing | XML | Clone This Bug Emerging courier-imap on gentoo system, errors out with the following message: hecking fam.h usability... no checking fam.h presence... no checking for fam.h... no checking for symlink... yes checking for readlink... yes checking for strcasecmp... yes checking for utime... yes checking for utimes... yes checking for FAMOpen in -lfam... yes checking for fam.h... (cached) no configure: WARNING: The development header files and libraries for fam, configure: WARNING: the File Alteration Monitor, are not installed. configure: WARNING: You appear to have the FAM runtime libraries installed, configure: WARNING: so you need to simply install the additional development configure: WARNING: package for your operating system. configure: error: FAM development libraries not found. configure: error: /bin/sh './configure' failed for maildir I re-emerged the fam package. /usr/include/fam.h DOES exist Reproducible: Always Steps to Reproduce: 1. 2. 3. *** Bug 89480 has been marked as a duplicate of this bug. *** emerge info, and please tell if you have fam or gamin installed. Also attach config.log to the bug. fam is installed (2005.0 stage-3 install) Emerge info: Portage 2.0.51.19 (default-linux/amd64/2005.0, gcc-3.4.3, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r1 x86_64) ================================================================= System uname: 2.6.11-gentoo-r1 x86_64 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Apr 16 2005, 12:27:53)]="-march=k8 -pipe -fomit-frame-pointer -O2" CHOST="x86_64 /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=k8 -pipe -fomit-frame-pointer -O2" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox strict" GENTOO_MIRRORS="" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 OSS X acpi alsa bash-completion berkdb bitmap-fonts cdr crypt cups curl esd fam flac font-server fortran gif gpm gtk imlib ipv6 java jp2 jpeg kde lzw lzw-tiff motif mp3 mysql ncurses nls ogg opengl oss pam perl png python qt readline samba sdl ssl tcltk tcpd tiff truetype truetype-fonts type1-fonts usb userlocales xml2 xpm xrandr xv zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY Created an attachment (id=56599) [edit] config.log file from attempted build of courier-imap please attach config.log in maildir/ This also happends with courier . Okay guys, I managed to get it to compile right and it seems to be working sweet as. Seems like configure can't find the fam.h file, but what is actually happening is this fam.h includes limits.h limits.h includes the 64bit limits.h (/usr/include/gentoo-multilib/amd64/limits.h) amd64/limits.h attempts to include the compilers limits.h (/usr/lib64/gcc/x86_64-pc-linux-gnu/3.4.3/include/limits.h) but for some reason it can't find the file In file included from /usr/include/limits.h:7, from /usr/include/fam.h:44, from conftest.c:69: /usr/include/gentoo-multilib/amd64/limits.h:124:26: no include path in which to To get it to work I just modified my 64bit limits.h file to specifically include the compilers limits.h file #if defined __GNUC__ && !defined _GCC_LIMITS_H_ /* `_GCC_LIMITS_H_' is what GCC's file defines. */ /* # include_next <limits.h> */ # include_next </usr/lib64/gcc/x86_64-pc-linux-gnu/3.4.3/include/limits.h> After that it seemed to work fine, although I've changed it back after the emerge just in case it breaks something else :D Hope this helps It looks like amd64 issue. Reassign. Interresting, missed that it was marked amd64. My problem is with a dual Pentium 3. linux-headers-2.6.11 , if that helps you :) I'm getting a different error on x86 using linux-headers-2.6.11 Just create a basic C file and #include <fam.h> and you get In file included from /usr/include/limits.h:124, from /usr/include/limits.h:124, from /usr/include/limits.h:124, for ages and finally from /usr/include/fam.h:44, from x.c:1: /usr/include/limits.h:124:26: error: #include nested too deeply Easiet fix is to change line 44 of /usr/include/fam.h #include "limits.h" to #include <limits.h> With that fix in place, fam, courier-imap, courier-authlib, maildrop and mod_php still compile and work fine. Assigning to foser as he owns the fam package Created an attachment (id=58214) [edit] fixes fam.h to #include <limits.h> instead of #include "limits.h" please apply & close Roy. Thanks. Fixed in fam-2.7.0-r4 *** Bug 100948 has been marked as a duplicate of this bug. *** *** Bug 104501 has been marked as a duplicate of this bug. *** Yes, it worked. Thumbs up for resolution Turnaround time! *** Bug 104973 has been marked as a duplicate of this bug. *** *** Bug 105317 has been marked as a duplicate of this bug. *** *** Bug 105606 has been marked as a duplicate of this bug. *** *** Bug 106585 has been marked as a duplicate of this bug. *** *** Bug 106798 has been marked as a duplicate of this bug. *** *** Bug 106730 has been marked as a duplicate of this bug. *** *** Bug 110527 has been marked as a duplicate of this bug. *** *** Bug 111905 has been marked as a duplicate of this bug. *** *** Bug 113656 has been marked as a duplicate of this bug. *** Someone needs to move on bringing fam 2.7.0-r4 into stable. This problem was reported and supposedly resolved back in May, and fam stable is still at 2.7.0-r2 for amd64, which has the problem described (and resolved) here. Foser? 'zat your department ?? I just did another amd64 install and tripped on the same problem again, although emerging fam unstable fixes it. *** Bug 114502 has been marked as a duplicate of this bug. *** *** Bug 116353 has been marked as a duplicate of this bug. *** *** Bug 116527 has been marked as a duplicate of this bug. ***
http://bugs.gentoo.org/89478
crawl-002
refinedweb
1,044
61.73
class Solution { public: void reverseWords(string &s) { // vector<string> data; string word; stringstream ss(s); while(ss>>word) data.push_back(word); vector<string> rdata(data.rbegin(), data.rend()); s = accumulate(rdata.begin(), rdata.end(), string(""), [](string s1, string s2){ if(s1.empty()) return s2; else return s1+" "+s2; }); } }; i know it might be most efficiency, it gives another direction to solve problems. we are using c++, not pure c; only a container constructer and a stl function is called. have fun guys... Nice one, my version used an ostream_iterator instead of std::accumulate: using namespace std; class Solution { public: void reverseWords(string &s) { istringstream iss(s); string word; vector<string> vec; while (iss >> word) vec.push_back(word); ostringstream oss; copy(vec.rbegin(), vec.rend(), ostream_iterator<string>(oss, " ")); s = oss.str(); } }; Yeah, your answer is more delicate ! Previously i do not known "ostringstream oss" can be used in this way "oss.str()". I have learned a new grammar rule. your answer is so delicate, I'll never known "ostringstring" can be used in this way if didn't find your code Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.
https://discuss.leetcode.com/topic/3928/an-intereating-solution-using-c-very-simple-using-stl-and-iterator-though-not-fast
CC-MAIN-2018-05
refinedweb
196
59.5
From Documentation Overview ZK allows applications to handle events at both the server and client side. Handling events at the server side, as described in the previous sections, is more common, since the listeners can access the backend services directly. However, handling event at the client side improves the responsiveness. For example, it is better to be done with a client-side listener if you want to open the drop-down list when a comobox gains the focus. The rule of thumb is to use server-side listeners first since it is easier, and then improve the responsiveness of the critical part, if any, with the client-side listener. Here we describe how to handle events at the client. For client-side UI manipulation, please refer to the UI Composing and Widget Customization sections. Declare a Client-side Listener in ZUML Declaring a client-side listener in a ZUML document is similar to declaring a server-side listener, the steps are: - Declare client namespace first, URI is (aka., client) - write your logic in JavaScript Implementation Notes: - this references to the event target widget. - Use this.$f() to reference fellow widgets (Widget.$f()) - event is referenced to zk.Event. For example, <combobox xmlns: Notice that EL expressions are allowed in the JavaScript code (for the client-side listener). Thus, it is straightforward to embed the server-side data to the client-side listener. For example, <window id="wnd" title="main"> <combobox xmlns: </window> If you want to escape it, place a backslash between $ and {, such as w:onFocus="zk.log('$\{wnd.title}')". For more information about manipulating widgets at the client, please refer to the UI Composing section. Client-side Event Listener First then Server-side It is allowed to register both the client and server-side event listeners. They will be both invoked. Of course, the client-side listener is called first, and then the server-side listener. For example, <combobox xmlns: Client-side Event Controls Firing Behavior If you want to stop the event propagation such that the server won't receive the event, you could invoke Event.stop(Map). For example, the server-side listener won't be invoked in the following example: <combobox xmlns: Since ZK fires an event to the server-side based on the same Event, you can also override event.opts to affect event firing behavior. Declare a Client-side Listener in Java The other way to declare a client-side listener at the server is Component.setWidgetListener(String, String). For example, combobox.setWidgetListener("onFocus", "this.open()"); Notice that it is Java and running at the server. Also notice that EL expressions are not allowed (i.e., not interpreted) if you assign it directly. It is because EL expressions are interpreted by ZK Loader when loading a ZUL page. However, it is easy to construct a string to any content you want with Java. Register a Client-side Listener in Client-Side JavaScript Listening an event at the client could be done by calling Widget.listen(Map, int). For example, <window> <bandbox id="bb"/> <script defer="true"> this.$f().bb.listen({onFocus: function () {this.open();}}); </script> </window> where defer="true"is required such that the JavaScript code will be evaluated after all widgets are created successfully. Otherwise, it is not able to retreive the bandbox ( bb). scriptis a widget (unlike zscript), so thisreferences to the scriptwidget, rather than the parent. - Widget.$f(String) is equivalent to Component.getFellow(String), except it is a JavaScript method (accessible at the client). Register DOM-level Event Listener Notice that the event listener handling discussed in the previous sections is for handling so-called ZK widget event (Event). Though rare, you could register a DOM-level event too by the use of jQuery (API: jq). Version History
https://www.zkoss.org/_w/index.php?title=ZK_Client-side_Reference/General_Control/Event_Listening&oldid=48790
CC-MAIN-2019-26
refinedweb
629
56.35
After creating my first game using Unity. I decided to place an interstitial ad to generate some revenue. I use interstitial ad rather than a normal banner ad because I want to utilize full screen of game play and load the ad after a number of scenes play or for a period of 10 minutes play. To display an interstitial ad is quite simple. Either you choose with Google Admob or Unity Ad would be fairly easy. I will include both samples for each of the ad, so you can place them on your game app. First thing you have to do is to Import Google Admob plugin or Unity Ads plugin. For Google Admob plugin, please download the files in here. For Unity ads, you can download the plugin in Unity store. If the link below does not work, you can simply search Unity Ads plugin in google. Once you have decided which plugin you want to use, and you have setup the ad in your Google Admob account or unity ad account, you can start adding Ad banner script as below. I use C# code, so you will need Visual Studio installed on your computer. Firstly, we will need to create a static AdInitiator.cs script, which will be used to check if it is time to load the ad. In your Unity Project create a new script called AdInitiator.cs, this will be automatically opened in Visual Studio when you click the script file. using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using UnityEngine; using UnityEngine.SceneManagement; using UnityEngine.UI; namespace Assets.Scripts { public static class AdInitiator { public static int sceneCounter = 0; public static float lastActiveAdTime = 0f; public static float showAdAfterPassTime = 600f; public static float showAdAfterPassScenes = 10; } public static void ChangeScene(string sceneName) { AdInitiator.sceneCounter += 1; SceneManager.LoadScene(sceneName); } } As you can see we create 4 static global variables. sceneCounter variable will be used to record a number of scene play. While the lastActiveAdTime will be used when the first time the ad has been initially load. The showAdAfterPassScenes and showAdAfterPassTime are used as checking point when those two initial counters have been incremented and passed those values. If they have passed the fixed values we then show the advertisement. There is also a function called ChangeScene. This is used to add an increment of scene play when a user clicks a button to go to another scene. So just make sure when you switch a scene, you can use this function. Or if you have your own scene loader code, you can just call add an increment to AdInitiator.sceneCounter. Let create the AdBanner.cs for Google Admob first. using GoogleMobileAds.Api; using System.Collections; using System.Collections.Generic; using UnityEngine; public class AdBanner : MonoBehaviour { // Use this for initialization void Start () { if(AdInitiator.lastActiveAdTime <= 0f) { AdInitiator.lastActiveAdTime = Time.time; } ShowAd(); } private void ShowAd() { ); //***For Testing in the Device*** // AdRequest request = new AdRequest.Builder() //.AddTestDevice(AdRequest.TestDeviceSimulator) // Simulator. //.AddTestDevice("08fa70905f956ebb825f13aa9b652a6e") // My test device. //.Build(); // Create an empty ad request. AdRequest request = new AdRequest.Builder().Build(); // Load the interstitial with the request. interstitial.LoadAd(request); if (Utils.sceneCounter % noOfChangeScenes == 0 && Utils.sceneCounter >= noOfChangeScenes || Time.time - Utils.lastDisplayAdTime >= Utils.showAdTime) { if (interstitial.IsLoaded()) { interstitial.Show(); AdInitiator.lastActiveAdTime = 0f; AdInitiator.sceneCounter = 0; } } } } In the start method, you can see I initiate the first lastActiveAdTime variable value if the initial value is equal or less than 0. Then in the ShowAd function, we create a check condition to see if lastActiveAdTime or number of play scenes have passed the designed check point values. And do not forget to reset back the AdInitiator variables to 0. This is the next code for Unity ads. It will be called AdBanner.cs as well but with different code content. using Assets.Scripts; using GoogleMobileAds.Api; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Advertisements; public class AdBanner : MonoBehaviour { private string androidGameID = "xxxxxxx"; // Use this for initialization void Start() { if(AdInitiator.lastActiveAdTime <= 0f) { AdInitiator.lastActiveAdTime = Time.time; } Advertisement.Initialize(androidGameID); ShowAd(); } private void ShowAd() { if (Utils.sceneCounter % noOfChangeScenes == 0 && Utils.sceneCounter >= noOfChangeScenes || Time.time - Utils.lastDisplayAdTime >= Utils.showAdTime) { Advertisement.Show(); Utils.lastActiveAdTime = 0f; AdInitiator.sceneCounter = 0; } } } I hope the sample code above helps you. If you want to see how it works, you can see download my app in the following link.
http://bytutorial.com/blogs/unity/how-to-display-interstitial-ad-in-unity-after-a-number-of-scenes-play-or-a-period-of-10-minutes-play-time
CC-MAIN-2017-39
refinedweb
727
61.53
Hi Rafael, The easiest way to do this would be to create a python or EASI script to run CLIP. There is an option within CLIP to use a vector segment as the clipping layer and automatically save a separate output file for each shape. This option is only available in python and EASI scripting. I’ve included a python example below: from pci.clip import clip clip(fili=r"I:\Data\Test\irvine.pix", #input file dbic=[2], #channel(s) of input file you want to clip filo=r"I:\Data\Test\clip\clip.pix", #location for output files clipmeth="LAYERVEC_FILES", #Clipping method clipfil=r"I:\Data\Test\clip\clipfile.pix", #File with vectors used for clipping cliplay=[2], #Vector layer in clipfil laybnds="SHAPES") #Boundaries used in clipping Hope this helps, Sarah
https://support.pcigeomatics.com/hc/en-us/community/posts/207853406-Clipping-subsetting-in-Modeler
CC-MAIN-2020-34
refinedweb
134
57.98
Big Bang/Incompatible 4 Backwards compatible 4.1 Replacement 4.2 Side-by-side 5 Forwards Compatible 5.1 Must Accept Unknowns: 3 variants 5.1.1 Ignore all or only unknown part 5.2 Fallback Provided 5.3 Understanding unknown middle, prefix, suffix, common may be added to a name structure. Different variations of a language may be desirable. For example, the XHTML 1.0 Recommendation defines strict, transitional, and frameset schemas. All three of those schemas purport to define the same namespace, but they describe different languages. And additional languages may be defined by other specifications, such as the XHTML Basic Recommendation. Whatever the cause, over time, different versions of the language exist and designing applications to deal with this change in a predictable, useful way requires a versioning strategy. Whether ten, a hundred, or a million resources have been deployed, if a language is changed in such a way that all those applications will determine that texts of the new language are invalid, a versioning problem with real costs has been introduced. Ultimately, there are different kinds of languages. The versioning approaches and strategies that are appropriate for one kind of language may not be appropriate for another. Among the various kinds of languages, we find: Just Names: some languages are just list(s) of acceptable.. Attempting to deploy a system that provides no versioning mechanism puts the burden of version "discovery" on consumers and is often components that are not recognized. Consider a producer and a consumer exchanging messages of a particular language. Imagine that some future version of the language defines a new component. Because producers and consumers are distributed,vit may happen that an old consumer, one unprepared for a new component, encounters a message with a new component new component and so it would "see" a message that looks just like the old message it is expecting. For the producer, the result would be that the request is fulfilled, though perhaps not quite the way it may have hoped. component is understood, then it can change the language in a way to indicate that the new behavior is not considered optional, aka backwards compatible. Often, what is needed is some sort of middle ground solution. language should be able to produce texts in a revision supreme: Good Practice Be Extensible rule: Languages should be Extensible. A language that allows additional syntax also requires a specification of what happens when the additional syntax is in a text. By the definition of Extensibility, there is a mapping from all texts with additional syntax to texts without. If the extensibility is used in a forwards-compatible way, then by definition the software consuming the extension does not know about the extension and we call such extension an unknown extension. If the software consuming the extension "knows" about the extension, then it has been revised and uses the revised language that incorporates the extension. The behavior of software when it encounters an unknown extension, that is the mapping from texts with additional syntax to texts without, should be clear. The simplest model that enables forwards-compatible changes is to require that a language consumer must]. An extension that affects an existing component is an incompatible change because it changes the mapping of the text with the extension to one without such that a consumer that is unaware of the extension will produce Information from the text that is incompatible with the intended Information (more work...). An additional rule is required: Good Practice Preserve existing information Rule: An Extensible Language MUST require that any texts with extensions MUST be compatible with a text without the extensions. There are two specific variants of the Must Accept rule that qualify what kind of handling beyond accepting is required. One model is to remove the unknown: Good Practice Must Accept and Remove Unknowns Rule (Must Accept variant 1): model is to preserve the unknown. This rule is: Good Practice Must Accept and Preserve Unknowns Rule (Must Accept variant 2): Consumers MUST accept and preserve any text portion that they do not recognize. HTTP 1.1 [7] specifies that a transparent proxy should accept and preserve any headers it doesn't understand: "Unrecognized header fields SHOULD be ignored by the recipient and MUST be forwarded by transparent proxies.". In tree based languages, which includes all markup languages, Container practice was described in [HTML 2.0] This retains the element descendents in the processing model so that they can still affect interpretation of the text, such as for display purposes... accept Unknowns". being in the Must Understand strategy..
http://www.w3.org/2001/tag/doc/versioning-compatibility-strategies-20071026.html
CC-MAIN-2015-18
refinedweb
765
52.49
CSC/ECE 517 Fall 2012/ch2a 2w26 aj SaaS 4.6 Enhancing Rotten Potatoes again Introduction The article is intended to be an accompaniment to the SaaS video lecture 4.6 titled “Enhancing Rotten Potatoes again” [1], part of the SaaS video lecture series for the Software Engineering for SaaS hosted on the Coursera learning network. [2] The Rotten Potatoes webpage, designed in the previous lectures is enhanced for implementing a new feature to add a new movie by looking up the TMDb database rather than manually entering the movie name. The flow of this article Note : All images used in this article have been taken from screen captures of Coursera video lectures available here. All content is owned by original authors and there is no copyright infringement intended. References have been provided in the image descriptions wherever necessary Scope The scope of this article is limited only to the scope covered in the video lecture. The lecture builds upon Behavior-Driven Development (BDD) basics discussed in the video lectures before it and sets the reader up for upcoming lectures concerning Test-Driven Development (TDD). Hence for the purpose of this article, it is assumed that the reader has already read the material and watched the video lectures before this one in the series. Hence the setup for Cucumber, Capybara and BDD basics are excluded from this article. The resources dealing with these can be found in the SaaS lectures 4.1 to 4.5 in the series. Similarly, the theory and implementation of TDD as well as further discussion on BDD is excluded from the scope of this article. More details on these can be found in lectures 4.7 to 5.11 of the SaaS lecture series .[3] A Brief Recap Behavior-Driven Development (BDD) is a specialized development process which concentrates more on the behavioral aspects of the application as against the actual implementation of the application. [4] Storyboards are used to show how UI changes based on user actions. Even if it is tedious to draw sketches and storyboards, it helps build a ‘bigger picture’ understanding of the flow of the application for the non-technical stakeholders. Cucumber is one of the shining tools of Rails that is used for testing purposes. It acts as a halfway between the customer and the developer by converting user stories of 3x5 cards into tests. These tests act as Acceptance tests for ensuring the satisfaction of the customer. Also, the tests act as Integration tests that ensures the communication between modules is consistent and correct The User Story The aim of the User story described in the video is to add a new feature to the Rotten Potatoes web page, to add a new movie to the movies list on Rotten Potatoes page. But, for adding the movie to the list, it populates the data from TMDb rather than entering the information by hand. This is aimed at reducing repetitive work since the TMDb already has a good database of movies. To do so, the ability to search TMDb from Rotten Potatoes home page needs to be incorporated in the webpage. Users can then search in TMDb if the movie is present in it and then its details can be imported into Rotten Potatoes. For integrating this feature into the application, first, a Lo-Fi UI and Storyboard is designed, which is described next. The Storyboard The Storyboard is to be interpreted as follows When a person wants to add a new movie to the Movies list on Rotten Potatoes, he/she will enter the new movie name and click “Search”. The controller method should search the TMDb database for the given movie. If a match is found, i.e. the movie is present in the TMDb, then the “Match” page is displayed. If there is no match, otherwise “No Match” page is displayed. These two scenarios, are the Happy Path and Sad Path implementations respectively. Happy Path, Sad Path and Bad path Many of us are aware of the test cases being categorized as Positive or Negative test cases. Similarly, for testing using Rails Cucumber, the tests cases are being categorized as Happy, Sad of Bad[5]. A test case that results in a positive result is called a Happy Path. E.g. On entering correct username and password on login page, the application logs the user in. A test case that yields no result is called a Sad Path. E.g. Entering invalid username or password on login page, which normally returns an ‘Incorrect username or password’ message A test case to handle an exceptional condition or situation, which the system should handle elegantly and show some message to the user is a Bad Path. E.g. Uploading image size exceeds a limited amount. User can then take corrective action. Elaboration of the User Story Let us consider the sad non-existent movie (sad path) Given I am on the RottenPotatoes home page Then I should see "Search TMDb for a movie" When I fill in "Search Terms" with "Movie That Does Not Exist" And I press "Search TMDb" Then I should be on the RottenPotatoes home page And I should see "'Movie That Does Not Exist' was not found in TMDb." The Test shown above has 6 steps (The logic and code for implementing this is provided in the TDD lectures in the Coursera series). - First the test checks if the user is on the Home Page, viz. the Home page for the application exists. - Next, it checks for presence of the link to “Search TMDb for movie”. The test essentially simulates what a normal user would do when testing the application manually. - In the third step, the test populates the form for the Search, with a movie name that is not present in the TMDb (since this is a sad path implementation, the search should essentially fail.) - Next, the test checks (simulates) if the link can be clicked. - As a consequence of this, the user should navigate to the Rotten Potatoes home page. - For a Sad path, the user is shown a message mentioning that there was no match, on the home page itself. When we run the test, since there is already a home page, the first step of the scenario passes. In the second step of the scenario, there is no link on the view for adding a new movie. Hence the second step fails and the following steps are skipped. Now, we add the link for the “search_tmdb” action. For this, the HAML for Search TMDb page should contain the following: %h1 Search TMDb for a movie = form_tag :action => 'search_tmdb' do %label{:for => 'search_terms'} Search Terms = text_field_tag 'search_terms' = submit_tag 'Search TMDb' These are added into the end of app/views/movies/index.html.haml The last two lines in the above code will be expanded into the HTML code: <label for='search_terms'>Search Terms</label> <input id="search_terms" name="search_terms"type="text" /> Now there is a page and a link in place for the test. On running the test using Cucumber again, the test fails again. This is because there is still no method defined in the controller (movies_controller.rb) for actually searching in TMDb. However the video tutorial in this discussion considers only the sad path scenario. To test this Sad path implementation, a dummy/fake method is defined in the movies_controller.rb which fails everytime, i.e. the search for the movie in TMDb never returns a match. So, the following code for the fake controller method is added to the movies_controller.rb: def search_tmdb # hardwire to simulate failure flash[:warning] = "'#{params[:search_terms]}' was not found in TMDb." redirect_to movies_path end and since a new method has been added, we need to add a route to this controller method too. The following route is added to routes.db, just before or just after ‘resources :movies’: # Route that posts 'Search TMDb' form post '/movies/search_tmdb' Now, on running the test again using Cucumber, every time the method is called, it returns a failure message (since it is hard-coded). This implies that the sad path implementation passed. The actual code and logic for implementation of this action (search_tmdb) is discussed in later lectures which discuss the TDD (Test Driven Development) process So far we have considered the Sad path scenario. Let us consider the happy existing movie (happy path) When I fill in "Search Terms" with "Inception" And I press "Search TMDb" Then I should be on the RottenPotatoes home page And I should see "Inception" And I should see "PG-13" For implementation of this, instead of the hard coded Controller method, an actual controller method will have to written which searches TMDb and returns the details of the movie which will then be added to the Rotten Potatoes database. (However, this implementation is out of scope for our article. Further details of this can be found in the TDD lectures of this series.) Now, the Happy and the Sad paths have some code in common which violates the DRY principle. So, to make it DRY, Cucumber offers a solution called Background [6]. The steps which are common to both the paths are written in Background and those steps will run in the background before all the other scenarios. No matter what scenario one runs, the steps in the Background will run first, which will DRY out the code. This also helps in reducing the effort in case any steps leading up to the scenarios (setup) are to be modified. The tester will only have to change the code in one location. In this example there is only one happy path and sad path scenario i.e. only two scenarios. However, in real world examples, there would be a larger list of scenarios which could have the same ‘setup’. The advantages of the Background facility are more pronounced in this case. Summary In summary, this article demonstrates the BDD/Cucumber test behaviour with the help of examples. It discusses the enhancement of Rotten Potatoes webpage for implementing a new feature, which is addition of a new movie by looking up the TMDb database rather than manually entering the movie name. This includes designing a Lo-Fi UI, writing scenarios and step definitions, even writing new methods for successfully executing the test cases using Cucumber. The article also introduces and explains the concept of Background in Cucumber, which helps in DRYing out the repeated code in scenarios of the same feature. The next chapter will discuss the TDD/RSpec behaviour and the approach to make all the scenarios pass. Topical References - ↑ Enhancing Rotten Potatoes again, - ↑ Coursera, - ↑ Software Engineering for SaaS, - ↑ Software Engineering for SaaS, - ↑ - ↑ Background in Cucumber, Further Reading Capybara : Capybara introduction . Railscast on testing in Capybara : Railscast on testing in Capybara. Capybara and Cucumber : Capybara and Cucumber. The Truth about BDD : The Truth about BDD. BDD and RSpec : BDD and RSpec. Cucumber and Capybara for Rails : Cucumber and Capybara for Rails. Smelly Cucumbers : Smelly Cucumbers. Beginning with Cucumber : Testing with Cucumber.
http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2012/ch2a_2w26_aj
CC-MAIN-2017-17
refinedweb
1,841
61.56
We have fixed this bug for the 1.5 release. I agree that it is incorrect for the doclet to skip "overrides" or "implemented" documentation just because the method being overriden or implemented is external. xxxxx@xxxxx 2003-05-03[This bug is re-written from bug 4854934] It appears that when method A.m overrides method in external referenced class B, the "Overrides:" section is not generated (but should be). That is, if B is not passed in on the command line, javadoc does not create the "Overrides:" section for method m. If B is passed in, then it does create the "Overrides:" section. Example: Given this source file with method read() that overrides "public int read()" in FilterReader: ---------------- XReader.java --------------------- public class XReader extends java.io.FilterReader { /** * This is a doc comment */ public int read() { return 'W'; } } --------------------------------------------------- Generate the HTML documentation using Javadoc 1.4.2-beta: javadoc -d html XReader.java The generated HTML documentation for XReader.read() is missing any "Overrides:" labels. It actually looks like this: ----------------------------- read public int read() This is a doc comment ------------------------------ It should instead look like this, with override labels: ----------------------------- read public int read() This is a doc comment Overrides: read in class FilterReader ~~~~ ~~~~~~~~~~~~ ------------------------------ Adding the -link or -linkoffline option makes no difference -- the labels and links still do not appear when trying this: javadoc -d html -linkoffline "" . XReader.java In this case, "read" should be a link to java/io/FilterReader.html#read() and "FilterReader" should be a link to java/io/FilterReader.html, identical to this J2SE class that extends FilterReader: The presence of these labels and links should be independent of inheriting doc comments. FWIW, I tested for the presenece of "Specified by:" when implementing an external referenced class (to see if it's a problem), and it works just fine, producing "Specified by:" labels and links. Here's that source file: ----------------- XComparable.java ----------------------- public class XComparable implements java.lang.Comparable { public int compareTo(Object o) { return 'W'; } } -------------------------------------------------------- N/A Accepted. xxxxx@xxxxx 2003-05-02 There is really nothing to fix. I can reproduce this bug in the pre-toolkit standard doclet but not in the toolkit standard doclet. This code to insert the "overriden" or "implements" documentation is included in the toolkit so it will be fixed in every doclet that uses it. I will mark this bug as fixed when we actually get to check the toolkit into the TL workspace. xxxxx@xxxxx 2003-05-03
http://bugs.sun.com/bugdatabase/view_bug.do%3Fbug_id=4857717
crawl-002
refinedweb
411
64.1
Dask DataFrame groupby • March 9, 2022 This post explains how to perform groupby aggregations with Dask DataFrames. You’ll learn how to perform groupby operations with one and many columns. You’ll also learn how to compute aggregations like sum, mean, and count. After you learn the basic syntax, we’ll discuss the best practices when performing groupby operations. Sample dataset Let’s read a sample dataset from S3 into a Dask DataFrame to perform some sample groupby computations. We will use Coiled to launch a Dask computation cluster with 5 nodes. import coiled import dask import dask.dataframe as dd cluster = coiled.Cluster(name="demo-cluster", n_workers=5) client = dask.distributed.Client(cluster) ddf = dd.read_parquet( "s3://coiled-datasets/h2o/G1_1e7_1e2_0_0/parquet", storage_options={"anon": True, "use_ssl": True}, engine="pyarrow", ) This dataset contains 10 million rows of data and the following columns. Let’s run some Dask groupby aggregations now that we’re familiar with the dataset. Dask DataFrame groupby sum Let’s groupby the values in the id1 column and then sum the values in the v1 column. ddf.groupby("id1").v1.sum().compute() You can also use an alternative syntax and get the same result. ddf.groupby("id1").agg({"v1": "sum"}).compute() agg takes a more complex code path in Dask, so you should generally stick with the simple syntax unless you need to perform multiple aggregations. Dask DataFrame groupby for a single column is pretty straightforward. Let’s look at how to groupby with multiple columns. Dask DataFrame groupby multiple columns Here’s how to group by the id1 and id2 columns and then sum the values in v1. ddf.groupby(["id1", "id2"]).v1.sum().compute() You can pass a list to the Dask groupby method to group by multiple columns. Now let’s look at how to perform multiple aggregations after grouping. Dask groupby multiple aggregations Here’s how to group by id3 and compute the sum of v1 and the mean of v3. ddf.groupby("id3").agg({"v1": "sum", "v3": "mean"}).compute() You can pass a dictionary to the agg method to perform different types of aggregations. Let’s turn our attention to how Dask implements groupby computations. Specifically, let’s look at how Dask changes the number of partitions in the DataFrame when a groupby operation is performed. This is important because you need to manually set the number of partitions properly when the aggregated DataFrame is large. How Dask groupby impacts npartitions Dask doesn’t know the contents of your DataFrame ahead of time. So it can’t know how many groups the groupby operation will produce. By default, it assumes you’ll have relatively few groups, so the number of rows is reduced so significantly that the result will fit comfortably in a single partition. However, when your data has many groups, you’ll need to tell Dask to split the results into multiple partitions in order to not overwhelm one unlucky worker. Dask DataFrame groupby will return a DataFrame with a single partition by default. Let’s look at a DataFrame, confirm it has multiple partitions, run a groupby operation, and then observe how the resulting DataFrame only has a single partition. Read in some data to a DataFrame and compute the number of partitions. ddf = dd.read_parquet( "s3://coiled-datasets/h2o/G1_1e7_1e2_0_0/parquet", storage_options={"anon": True, "use_ssl": True}, engine="pyarrow", ) ddf.npartitions # 8 The Parquet dataset is read into a Dask DataFrame with 8 partitions. Now let’s run a groupby operation on the DataFrame and see how many partitions are in the result. res = ddf.groupby("id1").v1.sum() res.npartitions # 1 Dask will output groupby results to a single partition Dask DataFrame by default. A single partition DataFrame is all that’s needed in most cases. groupby operations usually reduce the number of rows in a DataFrame significantly so they can be held in a single partition DataFrame. You can set the split_out argument to return a DataFrame with multiple partitions if the result of the groupby operation is too large for a single partition Dask DataFrame. res2 = ddf.groupby("id1").v1.sum(split_out=2) res2.npartitions # 2 In this example, split_out was set to two, so the groupby operation results in a DataFrame with two partitions. The onus is on you to properly set the split_out size when the resulting DataFrame is large. Performance considerations Dask DataFrames are divided into many partitions, each of which is a pandas DataFrame. Dask performs groupby operations by running groupby on each of the individual pandas DataFrames and then aggregating all the results. The Dask DataFrame parallel execution of groupby on multiple subsets of the data makes it more scalable than pandas and often quicker too. Running a groupby on the index is not faster than other columns in the DataFrame. Performance optimizations related to groupby operations on the DataFrame’s index are in a pull request that’s in progress. Conclusion Dask DataFrames make it easy to run groupby operations. The syntax is intuitive and familiar for pandas users. However, unlike pandas, setting split_out is essential if your groupby operation will produce many groups. The parallel execution of groupby operations makes it easy to run groupby operations on large datasets. Slow pandas groupby operations can also be sped up with parallelization powered by Dask as demonstrated in the blog post on speeding up a pandas query with 6 Dask DataFrame tricks.
https://coiled.io/blog/dask-dataframe-groupby/
CC-MAIN-2022-21
refinedweb
901
55.44
Last week we learned about the basics of Elm. Elm is a functional language you can use for front-end web development. Its syntax is very close to Haskell. Though as we explored, it lacks a few key language features. This week, we're going to make a simple Todo List application to show a bit more about how Elm works. We'll see how to apply the basics we learned, and take things a bit further. But a front-end isn't much use without a back-end! Take a look at our Haskell Web Series to learn some cool libraries for a Haskell back-end! Todo Types Before we get started, let's define our types. We'll have a basic Todo type, with a string for its name. We'll also make a type for the state of our form. This includes a list of our items as well as a "Todo in Progress", containing the text in the form: module Types exposing ( Todo(..) , TodoListState(..) , TodoListMessage(..) ) type Todo = Todo { todoName : String } type TodoListState = TodoListState { todoList : List Todo , newTodo : Maybe Todo } We also want to define a message type. These are the messages we'll send from our view to update our model. type TodoListMessage = AddedTodo Todo | FinishedTodo Todo | UpdatedNewTodo (Maybe Todo) Elm's Architecture Now let's review how Elm's architecture works. Last week we described our program using the sandbox function. This simple function takes three inputs. It took an initial state (we were using a basic Int), an update function, and a view function. The update function took a Message and our existing model and returned the updated model. The view function took our model and rendered it in HTML. The resulting type of the view was Html Message. You should read this type as, "rendered HTML that can send messages of type Message". The resulting type of this expression is a Program, parameterized by our model and message type. sandbox : { init : model , update : msg -> model -> model , view : model -> Html msg } -> Program () model msg A sandbox program though doesn't allow us to communicate with the outside world very much! In other words, there's no IO, except for rendering the DOM! So there a few more advanced functions we can use to create a Program. For a normal application, you'll want to use the application function seen here. For the single page example we'll do this week, we can pretty much get away with sandbox. But we'll show how to use the element function instead to get at least some effects into our system. The element function looks a lot like sandbox, with a few changes: element : { init : flags -> (model, Cmd msg) , view : model -> Html msg , update : msg -> model -> (model, Cmd msg) , subscriptions : model -> Sub msg } -> Program flags model msg Once again, we have functions for init, view, and update. But a couple signatures are a little different. Our init function now takes program flags. We won't use these. But they allow you to embed your Elm project within a larger Javascript project. The flags are information passed from Javascript into your Elm program. Using init also produces both a model and a Cmd element. This would allow us to run "commands" when initializing our application. You can think of these commands as side effects, and they can also produce our message type. Another change we see is that the update function can also produce commands as well as the new model. Finally, we have this last element subscriptions. This allows us to subscribe to outside events like clock ticks and HTTP requests. We'll see more of this next week. For now, let's lay out the skeleton of our application and get all the type signatures down. (See the appendix for an imports list). main : Program () TodoListState TodoListMessage main = Browser.element { init = todoInit , update = todoUpdate , view = todoView , subscriptions = todoSubscriptions } todoInit : () -> (TodoListState, Cmd TodoListMessage) todoUpdate : TodoListMessage -> TodoListState -> (TodoListState, Cmd TodoListMessage) todoView : TodoListState -> Html TodoListMessage todoSubscriptions : TodoListState -> Sub TodoListMessage Initializing our program is easy enough. We'll ignore the flags and return a state that has no tasks and Nothing for the task in progress. We'll return Cmd.none, indicating that initializing our state has no effects. We'll also fill in Sub.none for the subscriptions. todoInit : () -> (TodoListState, Cmd TodoListMessage) todoInit _ = let st = TodoListState { todoList = [], newTodo = Nothing } in (st, Cmd.none) todoSubscriptions : TodoListState -> Sub TodoListMessage todoSubscriptions _ = Sub.none Filling in the View Now for our view, we'll take our basic model components and turn them into HTML. When we have a list of Todo elements, we'll display them in an ordered list. We'll have a list item for each of them. This item will state the name of the item and give a "Done" button. Clicking the button allows us to send a message for finishing that Todo: todoItem : Todo -> Html TodoListMessage todoItem (Todo todo) = li [] [ text todo.todoName , button [onClick (FinishedTodo (Todo todo))] [text "Done"] ] Now let's put together the input form for adding a Todo. First, we'll determine what value is in the input and whether to disable the done button. Then we'll define a function for turning the input string into a new Todo item. This will send the message for changing the new Todo. todoForm : Maybe Todo -> Html TodoListMessage todoForm maybeTodo = let (value_, isEnabled_) = case maybeTodo of Nothing -> ("", False) Just (Todo t) -> (t.todoName, True) changeTodo newString = case newString of "" -> UpdatedNewTodo Nothing s -> UpdatedNewTodo (Just (Todo { todoName = s })) in ... Now, we'll make the HTML for the form. The input element itself will tie into our onChange function that will update our state. The "Add" button will send the message for adding the new Todo. todoForm : Maybe Todo -> Html TodoListMessage todoForm maybeTodo = let (value_, isEnabled_) = ... changeTodo newString = ... in div [] [ input [value value_, onInput changeTodo] [] , button [disabled (not isEnabled_), onClick (AddedTodo (Todo {todoName = value_}))] [text "Add"] ] We can then pull together all our view code in the view function. We have our list of Todos, and then add the form. todoView : TodoListState -> Html TodoListMessage todoView (TodoListState { todoList, newTodo }) = div [] [ ol [] (List.map todoItem todoList) , todoForm newTodo ] Updating the Model The last thing we need is to write out our update function. All this does is process a message and update the state accordingly. We need three cases:_) -> ... And each of these cases is pretty straightforward. For adding a Todo, we'll append it at the front of our list:_) -> let st = TodoListState { todoList = newTodo_ :: todoList , newTodo = Nothing } (FinishedTodo doneTodo) -> ... (UpdatedNewTodo newTodo_) -> ... When we've finished a Todo, we'll remove it from our list by filtering on the name being equal.) -> let st = TodoListState { todoList = List.filter (todosNotEqual doneTodo) todoList , newTodo = newTodo } in (st, Cmd.none) (UpdatedNewTodo newTodo_) -> .. todosNotEqual : Todo -> Todo -> Bool todosNotEqual (Todo t1) (Todo t2) = t1.todoName /= t2.todoName And updating the new todo is the easiest of all! All we need to do is replace it in the state._) -> .. (TodoListState { todoList = todoList, newTodo = newTodo_ }, Cmd.none) And with that we're done! We have a rudimentary program for our Todo list. Conclusion This wraps up our basic Todo application! There are still a few more things we should learn moving on from Elm. Next week, we'll see how to implement some important types of effects any site will need. We'll see an intro to Elm's effect system, and use it to send HTTP requests. For some more ideas on building cool products in Haskell, take a look at our Production Checklist. It goes over some libraries for many topics, including databases and parsing! Appendix: Imports import Browser import Html exposing (Html, button, div, text, ol, li, input) import Html.Attributes exposing (value, disabled) import Html.Events exposing (onClick, onInput)
https://mmhaskell.com/blog/2018/11/19/elm-ii-todo-list-redux
CC-MAIN-2018-51
refinedweb
1,302
75.1
IRC log of svg on 2009-05-18 Timestamps are in UTC. 06:32:46 [RRSAgent] RRSAgent has joined #svg 06:32:47 [RRSAgent] logging to 06:32:48 [trackbot] RRSAgent, make logs public 06:32:49 [Zakim] Zakim has joined #svg 06:32:50 [trackbot] Zakim, this will be GA_SVGWG 06:32:50 [Zakim] ok, trackbot; I see GA_SVGWG()2:30AM scheduled to start 2 minutes ago 06:32:51 [trackbot] Meeting: SVG Working Group Teleconference 06:32:51 [trackbot] Date: 18 May 2009 06:33:20 [Zakim] GA_SVGWG()2:30AM has now started 06:33:28 [Zakim] +??P0 06:33:32 [heycam] Zakim, ??P0 is me 06:33:32 [Zakim] +heycam; got it 06:33:41 [Zakim] +[IPcaller] 06:33:53 [Zakim] +??P2 06:33:57 [ed] Zakim, ??P2 06:33:57 [Zakim] I don't understand '??P2', ed 06:34:00 [ed] Zakim, ??P2 is me 06:34:00 [Zakim] +ed; got it 06:35:03 [Zakim] +Doug_Schepers 06:35:07 [Zakim] +??P3 06:35:11 [anthony] Zakim, ??P3 is me 06:35:11 [Zakim] +anthony; got it 06:35:15 [jwatt] Zakim, who's here? 06:35:15 [Zakim] On the phone I see heycam, [IPcaller], ed, Doug_Schepers, anthony 06:35:16 [Zakim] On IRC I see RRSAgent, heycam, jwatt, anthony, ed, ed_work, shepazu, karl, trackbot 06:35:33 [jwatt] Zakim, [IPCaller] is me 06:35:33 [Zakim] +jwatt; got it 06:35:54 [heycam] Agenda: 06:35:57 [heycam] Chair: Cameron 06:36:16 [anthony] Scribe: anthony 06:36:31 [anthony] Topic: Revision of Param Spec 06:36:55 [Zakim] +ChrisL 06:37:03 [ChrisL] ChrisL has joined #svg 06:37:05 [anthony] DS: I basically, changed the params spec around 06:37:08 [anthony] ... a fair bit 06:37:27 [anthony] ... I took out the ref element 06:37:31 [anthony] ... and added the param elemnt 06:37:41 [shepazu] 06:37:44 [shepazu] 06:37:45 [shepazu] 06:37:56 [anthony] ... which is equivalent to the object param in HTML 06:38:19 [anthony] ... I basically the param functional notation takes the parameter name as an argument 06:38:26 [anthony] ... as opposed to the indirection I had before 06:38:34 [anthony] ... it also highlights how you can use the fall back value 06:38:45 [anthony] ... instead of having to use a separate element for that 06:39:17 [anthony] ... you use it a second value for the param property 06:39:43 [shepazu] attribute-name="param(string) [optional-string]" 06:40:09 [anthony] DS: Optional string would be the default value 06:40:20 [anthony] ... I also cleaned up the IDL 06:40:33 [anthony] ... for the parameters and the window parameter interfaces 06:40:49 [anthony] ... and started talking about how we might put params into CSS 06:41:07 [anthony] ... I reworked all the examples in the Primier 06:41:15 [anthony] s/Primier/Primer/ 06:41:18 [anthony] ... to use the new syntax 06:41:25 [shepazu] 06:41:34 [anthony] ... I added an example for adding parameterised use elements 06:41:44 [anthony] ... the very last example 06:42:38 [anthony] ... we've talked about how markers and use elements, it's hard to do anything useful with them 06:42:45 [anthony] ... if you want to change parameters on them 06:42:57 [anthony] CM: One advantage of this parameterisation use here 06:43:08 [anthony] ... is it's not very heavy weight 06:43:25 [anthony] ... substituting in one value is pretty easy 06:43:38 [anthony] DS: With different values you can get quite different results 06:44:01 [anthony] CM: Basically when you evaluate paint server references, you evaluate the paint at that point 06:44:10 [anthony] ... rather than the definition time 06:44:15 [anthony] DS: When you are using something 06:44:19 [anthony] ... the shadow tree is changed 06:44:29 [anthony] ... it's treated at its own document 06:45:20 [anthony] ... I don't see how you could it any other way 06:45:30 [anthony] CM: Probably the way implementations are handling paint servers 06:45:34 [anthony] ... might have to change 06:45:56 [anthony] ... they are kind of global at the moment, well their instances are 06:46:06 [anthony] ... that scoped thing could be interesting anyway 06:46:18 [anthony] DS: I resolved that in the my script library by cloning the element 06:46:26 [anthony] ... then changing the IDs and ID refs 06:46:45 [anthony] ... this kind of effects use 06:46:55 [ChrisL] So, can you say <path d="param(foo) M1 2 L 3 4" /> ? 06:47:11 [anthony] CM: It would be interesting to see what XBL does 06:47:24 [anthony] CL: Obviously it has to solve the same problem 06:47:36 [anthony] ... Is this restricted or can you use it on any attribute? 06:47:55 [anthony] DS: The way I saw it was that it could be used by any attribute 06:48:00 [anthony] ... yes, could be used on a path 06:48:25 [ChrisL] suggest another example where an animation is parameterised, in that case 06:48:26 [anthony] ... the way I'd like to see it is, that for elements with attribute values that don't take lists you can use the fallback 06:48:36 [anthony] ... for the ones that do take lists you can't use the fall back 06:49:00 [anthony] CL: I suggest in that case to provide an animation example 06:49:05 [anthony] ... if you provide it as a child 06:49:08 [anthony] ... then parameterise that 06:49:15 [anthony] ... you could have multiple ones of them 06:49:29 [anthony] DL: You might want to use this as only part of a value 06:49:34 [shepazu] [[ 06:49:36 [shepazu]: 06:49:43 [shepazu] ]] 06:49:55 [ed] could you do <path d="param(foo) param(bar) M1 0 ..."> ? 06:49:58 [anthony] s/DL/DS/ 06:50:06 [anthony] DS: [reads out text] 06:50:12 [anthony] ... ED, exactly, yes 06:50:29 [anthony] ... You could pass in parameters that would be components of a path 06:50:40 [anthony] ... you could get some rather interesting effects that way 06:50:57 [anthony] ED: My question was is it possible to have multiple levels of params? 06:51:04 [anthony] DS: I think that might complicate things 06:51:09 [anthony] ... I can see a use for it 06:51:22 [anthony] ... Looking at the flower example 06:51:25 [anthony] ... if we had that 06:51:28 [anthony] ... and some of the values 06:51:32 [anthony] ... instead of a gradient 06:51:36 [anthony] ... they wanted a solid fill 06:51:42 [anthony] ... they could just pass in a single value 06:51:58 [anthony] ... then in the gradient I could say, in stop one use petal one 06:52:06 [anthony] ... and for stop two use petal two 06:52:13 [anthony] ... and if they don't provide one 06:52:17 [anthony] ... use the previous 06:53:16 [anthony] CM: You're not really thinking of it as a string substitution in the list? 06:53:18 [anthony] DS: I am 06:53:29 [anthony] CL: That is not clear from the spec currently 06:53:33 [anthony] DS: I think you're right 06:54:19 [anthony] CL: Might need to define how to do the parsing 06:54:22 [anthony] ... two level parsing model 06:54:33 [anthony] ... when you construct the attribute with the param 06:54:39 [anthony] ... then parse it as per normal 06:54:42 [anthony] ... that needs to be defined 06:54:53 [anthony] ... A two stage parsing thing might be a good thing to point out 06:55:12 [anthony] CM: Advantages I saw to using this functional syntax is 06:55:20 [anthony] ... it gels well with CSS properties 06:55:37 [ChrisL] first stage looks for params and the second stage parses the result according to whatever the attribute value was originally defined as 06:55:41 [anthony] ... There may be more scope with conflicts with values that can be accepted at th emoment 06:55:56 [anthony] DS: I think if we going to do something like this, now is the time to do it 06:56:12 [anthony] CM: I can see people saying why not use the braces similar to XSLT 06:56:26 [anthony] DS: Curly braces? 06:56:30 [anthony] CM: Yes 06:56:42 [anthony] DS: That would match what Adobe do FXG 06:56:52 [anthony] ... it's their universal interchange format for XML 06:56:58 [anthony] ... for all their products 06:57:10 [anthony] ... there is post about why they didn't use SVG 06:58:18 [anthony] ... I'm fine with that idea of use braces 06:58:28 [anthony] ... if we are going to more with it like Calc 06:58:33 [anthony] ... then might have problems 06:58:43 [anthony] ... not concerned about the syntax at the moment 06:58:51 [anthony] CM: Might consider doing it that way 06:58:57 [anthony] ... if it's string substitution 06:59:27 [anthony] ... it's what level you think that it is operating on 06:59:43 [anthony] ... if you are using the CSS DOM to get the value of param 06:59:51 [anthony] ... what do you get? 07:00:04 [anthony] CL: What you should get back is what you would've gotten back normally 07:00:15 [anthony] ... the only difference is you give it an ID to later change it 07:00:49 [anthony] DS: Currently it's a similar model to CSS 07:01:07 [anthony] CM: Maybe it makes sense to expose the computed things in the animated DOM 07:01:55 [anthony] DS: Ultimately all these things should be moving to the same model 07:02:00 [anthony] ... where it makes sense 07:02:08 [anthony] ... I modified my script library 07:02:18 [anthony] ... to take into account this param use syntax 07:02:27 [anthony] ... It did increase the size of my code 07:02:36 [anthony] ... but I did have to implement a fake shadow tree 07:02:49 [anthony] ... for people that already implement a shadow tree 07:03:02 [anthony] .. it shouldn't be too much of a burden 07:03:22 [anthony] ED: I'm wondering if this spec here is saying we are adding a param in the SVG name space? 07:03:27 [anthony] ... I don't think that is a good idea 07:03:33 [anthony] ... because it will conflict with HTML param 07:03:44 [anthony] ... and it's similar to what we are doing with listener 07:03:55 [anthony] ... I think it would be better to say that this element is from HTML 07:03:58 [anthony] ... and is that name space 07:04:07 [anthony] ... I sent an email to SVG and to HTML 07:04:20 [anthony] s/... I/DS: I/ 07:04:33 [anthony] DS: Us adding elements into the SVG name space would be a good thing 07:04:37 [anthony] ... from what I gathered 07:04:47 [anthony] ... I do understand the about the conflicts problem 07:05:22 [anthony] CL: On one hand you don't want to be flipping between SVG and HTML 07:05:30 [shepazu] s/conflicts/chameleon namespace/ 07:06:11 [heycam] A problem with requiring having <param> namespaced to be in HTML is that people will use a prefix, and that that's not going to work well with SVG parsing in text/html. 07:06:44 [anthony] ED: But if you're parsing param elements in Text HTML 07:06:51 [anthony] ... you'd get the param element in HTML by default at the moment 07:06:59 [anthony] CM: So something has to be changed 07:07:31 [anthony] DS: I thought about it, if it comes down to us pleasing the HTML working group vs making things easier for authors 07:07:35 [ChrisL] Designing XML/Web Languages: A Review of Common Mistakes 07:07:39 [anthony] ... I'd rather make things easier for authors 07:08:08 [anthony] CL: If you look at Robin's paper he calls it out as a specific thing 07:08:18 [anthony] ... we should've brought that stuff into our own name space 07:08:24 [anthony] ... which is reasonable 07:08:38 [anthony] DS: In support of that, if we are thinking about the open web stack 07:09:13 [anthony] ... having features in one language in another language helps people understand that feature in the other language 07:10:44 [anthony] ... There was another piece of feedback from Robin 07:10:57 [anthony] ... if you're going to import param, import object 07:11:04 [anthony] ... just use object 07:11:23 [anthony] ... and don't change the inheritance model of use 07:11:35 [anthony] CL: I think we are already changing the inheritance model 07:12:18 [anthony] CM: use is a pain to implement, because you copy the exact same properties of an element 07:12:25 [anthony] DS: We could make a new element 07:12:36 [anthony] ... that isn't a pain to implement 07:12:59 [anthony] ... we could rely on the params spec to change various different things 07:13:22 [anthony] ... for now I think we should say we have a param element, anything that references can use it 07:13:44 [anthony] ... we could make a property called "parameters" that would take a name of list value pairs 07:13:59 [anthony] ... it could also be use from within CSS as well 07:14:33 [anthony] CL: If we start saying things like you can use this with any CSS property we may run into trouble 07:14:39 [anthony] DS: We'd have to check with them first 07:15:02 [anthony] ... this one would just be "parameters" the only thing it does is it passes in parameters 07:15:41 [anthony] CM: How is the referencing of parameters done with that? 07:15:49 [heycam] parameters="fill=param(whatever), ..." 07:16:04 [anthony] DS: It would be a pass in parameters 07:16:12 [anthony] ... not a way to receive parameters 07:16:47 [shepazu] parameters="color:red; outline:green; label:hello;" 07:17:11 [anthony] DS: Instead of having a param element you'd have this property 07:17:40 [anthony] CM: So what Chris said about defining how CSS properties work, this would still have that problem? 07:17:43 [anthony] DS: Yes 07:17:56 [ChrisL] (found robinb's paper: ) 07:18:15 [anthony] DS: I don't think the spec is done yet 07:18:21 [anthony] ... I'll take this feedback into account 07:18:31 [anthony] ... it's a better syntax and a better mechanism 07:18:55 [anthony] ... I'd like to republish with the new syntax and examples 07:19:00 [anthony] CL: I have no problems with that 07:19:41 [anthony] ED: Does the spec define what happens if you change the param in another document? 07:19:47 [anthony] ... does it have the resource 07:19:53 [anthony] ... is that implementation independent 07:20:16 [anthony] ... I'm not 100% sure if you change those params if they have some effect on the plug in for example 07:20:28 [anthony] ... I think it should be defined what should happen in such cases 07:20:33 [anthony] DS: I have defined it in the spec 07:20:40 [anthony] ED: Ok, maybe I haven't seen it 07:20:46 [anthony] DS: Let me see if I can find it 07:20:56 [anthony] CM: Plug ins if they want to notice changed param values 07:21:04 [anthony] ... they can look up the document watch those things 07:21:07 [shepazu] [[ 07:21:09 [shepazu] The user agent must make all of these parameters which have been set at the load time of the target file immediately available, and must also update the list of parameters immediately within the file when they are changed in the referencing file, or in the URL query string. 07:21:11 [shepazu] ]] 07:22:03 [anthony] DS: If somebody changes something, then it should change straight away 07:22:11 [anthony] ... I'm not sure if that's even defined in HTML 5 07:22:43 [heycam] Not sure propagating changes to URL query string parameters to the param()s in the SVG document makes sense. 07:22:48 [Zakim] -anthony 07:22:55 [ChrisL] yeah thats a difference betweena query string and a fragment. ? gets sent to the server 07:23:05 [heycam] Since the query string is outside the document; changing those in the <object data=""> would refetch a document. 07:23:31 [Zakim] +??P3 07:23:38 [anthony] Zakim, ??P3 is me 07:23:38 [Zakim] +anthony; got it 07:24:03 [anthony] CM: I noticed your button examples work in FF now 07:24:08 [anthony] DS: I could've made them work before 07:24:19 [anthony] ... I was punishing FF for not having Tref 07:24:33 [anthony] ... I just went ahead and changing the implementation 07:24:57 [anthony] CM: Where you asking whether we agree to publish this now? 07:25:03 [anthony] DS: I say publish early publish often 07:25:17 [anthony] CL: Your flowers don't work in Opera 07:25:24 [anthony] ED: What version do they work in? 07:25:30 [anthony] CL: FF beta 4 07:25:43 [anthony] DS: I change the code quite a lot 07:26:00 [anthony] ... it is possible I didn't change the code for every browser 07:26:10 [anthony] ... your right 07:26:13 [anthony] ... it doesn't work in Opera 07:26:18 [anthony] ED: I can have a look at it later 07:26:30 [anthony] ... I suspect it could be shadow tree stuff 07:26:46 [anthony] DS: Probably something funky going on in my code 07:26:56 [anthony] CL: Everything works except the flowers in Opera 07:27:09 [anthony] CM: Are there any objections to republishing this? 07:27:44 [anthony] [None heard] 07:27:48 [anthony] RESOLUTION: We will republish the params specification 07:28:30 [anthony] DS: The map is really stylised, it's not meant to be a real map 07:28:35 [anthony] ... I have an error in my code 07:28:42 [anthony] ... in Opera 07:29:02 [anthony] Topic: "Clarify getSVGDocument behavior" erratum 07:29:06 [anthony] 07:29:15 [anthony] CM: Was going through the errata document 07:29:18 [anthony] ... to get it ready for publishing 07:29:23 [heycam] 07:29:25 [anthony] ... came across one I was a bit unsure about 07:29:42 [anthony] ... this is about the getSVGDocument interface 07:29:47 [anthony] ... and the method of the same name 07:30:03 [anthony] ... the erratum says that this can return any object contained 07:30:15 [anthony] ... the IDL still says the method returns an SVG document 07:30:24 [anthony] ... so it's not possible to do this at the moment 07:30:31 [anthony] ... might want to change the IDL 07:30:57 [anthony] ... to have the return type of the document 07:30:59 [anthony] ... and keep that wording 07:31:08 [anthony] ... about it will return what ever document is being reference 07:31:23 [anthony] ... the second aspect of it 07:31:30 [anthony] ... was implementing this interface on the HTML object element 07:31:47 [anthony] ... I think it might be a good idea to have an indication of where this interface might be implemented 07:32:05 [anthony] ... If we want it to be implemented for compatibility I think we should keep the wording about HTML object 07:32:15 [anthony] s/reference/referenced/ 07:32:33 [anthony] ... any thoughts? 07:32:42 [anthony] ED: Sounds fine 07:33:04 [anthony] AG: I think the IDL should be changed 07:35:17 [anthony] ACTION: Cameron to Modify the erratum "Clarify getSVGDocument behavior" to also highlight the change require in the IDL 07:35:17 [trackbot] Created ACTION-2561 - Modify the erratum "Clarify getSVGDocument behavior" to also highlight the change require in the IDL [on Cameron McCormack - due 2009-05-25]. 07:35:19 [heycam] 07:35:34 [anthony] CM: I have the errata in a nice form for publication 07:35:55 [anthony] ... can we get a resolution to publish the errata, pending the change from the action 07:37:19 [anthony] ... any objections? 07:37:23 [anthony] [None heard] 07:37:25 [anthony] RESOLUTION: We will publish the errata pending the change from the outstanding action of Cameron 07:37:56 [anthony] Topic: "Clarification of lineto commands in the path syntax" erratum for 1.2T 07:38:18 [anthony] CM: This issue applied Tiny 1.2 as well as Full 1.1 07:38:35 [anthony] ... the errata didn't get put into Tiny 1.2 07:39:05 [anthony] ACTION: Anthony to Copy the erratum "Clarification of lineto commands in the path syntax" to the Tiny 1.2 errata 07:39:05 [trackbot] Created ACTION-2562 - Copy the erratum "Clarification of lineto commands in the path syntax" to the Tiny 1.2 errata [on Anthony Grasso - due 2009-05-25]. 07:40:09 [heycam] 07:56:14 [ChrisL] stroke-width="url(#foo)" 08:00:09 [Zakim] -ed 08:00:11 [Zakim] -ChrisL 08:00:11 [Zakim] -Doug_Schepers 08:00:12 [Zakim] -anthony 08:00:13 [Zakim] -heycam 08:00:24 [anthony] Zakim, bye 08:00:24 [Zakim] leaving. As of this point the attendees were heycam, ed, Doug_Schepers, anthony, jwatt, ChrisL 08:00:24 [Zakim] Zakim has left #svg 08:01:15 [anthony] RRSAgent, make minutes 08:01:15 [RRSAgent] I have made the request to generate anthony 08:03:23 [shepazu] ed: looks like Opera doesn't like <svg:param> 08:04:48 [ed] oh? 08:05:10 [shepazu] yeah, throws an error 08:05:14 [ed] should be treated as an unknown element, but with everything preserved 08:05:37 [shepazu] maybe it can't get the attributes list? 08:05:55 [shepazu] anyway, if you have time, maybe you could look at it? 08:06:10 [ed] sure, I'll take a look 08:06:27 [shepazu] thanks :) 08:11:39 [ed] hmm...it looks like the first one is the problem, @name 08:12:01 [ed] el.attributes[1] works fine, but el.attributes[0] is "undefined" 08:12:23 [ed] I think I know what's wrong, I'll try to push that fix into Opera 10 if possible 08:13:07 [ed] bug: some known svg attributes didn't save the text if they failed parsing 08:13:38 [shepazu] hmm 08:14:34 [shepazu] I can work around the el.attributes[0] thing in my code 08:14:56 [ed] well, if you know that it's always "name" and "value", getAttribute works fine 08:14:57 [shepazu] the other bug... is that with my code, or opera? 08:15:26 [shepazu] naw, that's not what its primary purpose is 08:15:54 [ed] it's probably a known bug (already fixed), but I'll take a closer look when I get to work 08:16:22 [ed] it's a bit weird since getAttribute worked, so that I'd like to have another look at 08:17:02 [ed] ...it 08:17:03 [ed] :) 08:33:50 [heycam] heycam has joined #svg 08:47:39 [heycam] heycam has joined #svg 09:08:44 [ed_work] shepazu: why is FF the only browser to do the gradients?
http://www.w3.org/2009/05/18-svg-irc
CC-MAIN-2016-40
refinedweb
4,002
62.27
DEVDOJO course on javaScript Basics The trim() method is used to remove white space and from both ends of a string (white space meaning characters like space, tab, no-break space and so on). It also removes line terminator characters such as carriage return (CR) and line feed (LF). SYNTAX: str.trim() where str is the string which will be returned stripped of white space from both ends. In this instance, we shall strip the string ? java ? of its white space; var init = ? java ?; console.log(init.trim()); // logs ?java? To crosscheck (It?s alright to feel something isn?t right :)): var initShort = init.trim(); console.log(init.length()); // logs 6, one white space on each side console.log(initShort()); // logs 4, no white space Sometimes str.trim() may not be natively available (not implemented specifically). If that?s the case, to use str.trim(), we would have to run this little snippet of code before any other code. if (!string.prototype.trim) { String.prototype.trim = function() { return this.replace(/^[suFEFFxAO] + |[suFEFFxAO] + $ /g, ? ?); }; } In addition to str.trim(), two ?sub-methods?, str.trimLeft() and str.trimRight() which (as you might have guessed) removes white space from the left and right ends of a string respectively. Although both are supported on Chrome, Edge and Firefox, they are recognized as non-standard and shouldn?t be used on production sites as they will not work for every user. Browser Compatibility: Desktop Browsers such as Chrome, Edge, Firefox(3.5 (1.9.1)), Internet Explorer 9, Opera 10.5 and Safari 5 support str.trim() Mobile Browsers: Most browsers on mobile platforms support str.trim() NOTE: str.trim() can only be used to remove white space before and after a string, to remove white space between the string, we would have to be a bit more creative and use str.split(? ?). join(??) An Example: var initials = ?R C?; var newInitials = initials.split(? ?).join(??); console.log(newInitials); // logs ?RC?
https://911weknow.com/javascript-properties-and-methods-string-prototype-trim
CC-MAIN-2022-33
refinedweb
325
69.58
Data Visualization with Pandas Data visualization is the discipline of trying to understand data by placing it in a visual context so that patterns, trends and correlations that might not otherwise be detected can be exposed.. Doing visualizations with pandas comes in handy when you want to view how your data looks like quickly. import numpy as np import pandas as pd import seaborn as sns import matplotlib.pyplot as plt %matplotlib inline from numpy.random import randn, randint, uniform, sample. Series is a one-dimensional labeled array capable of holding data of any type (integer, string, float, python objects, etc.). Each column of the dataframe is a Series. Below we are creatind a dataframe df which consists of 1000 random numbers generated by rand(). index specifies the index to use for resulting frame. date_range() returns a fixed frequency DatetimeIndex which start date ‘2019-06-07’. periods is used to specify the number of periods to generate. Through columns we can specify the column labels to use for resulting frame. Similarly, we are creating a Series ts. df = pd.DataFrame(randn(1000), index = pd.date_range('2019-06-07', periods = 1000), columns=['value']) ts = pd.Series(randn(1000), index = pd.date_range('2019-06-07', periods = 1000)) df.head() ts.head() 2019-06-07 0.430385 2019-06-08 1.810955 2019-06-09 3.207345 2019-06-10 -0.366252 2019-06-11 1.406304 Freq: D, dtype: float64 type(df),type(ts) (pandas.core.frame.DataFrame, pandas.core.series.Series) Line plot The cumsum() function is used to get cumulative sum over a DataFrame or Series axis. It returns a DataFrame or Series of the same size containing the cumulative sum. df['value'] = df['value'].cumsum() df.head() ts = ts.cumsum() ts.head() 2019-06-07 0.430385 2019-06-08 2.671725 2019-06-09 8.120411 2019-06-10 13.202844 2019-06-11 19.691581 Freq: D, dtype: float64 type(df), type(ts) (pandas.core.frame.DataFrame, pandas.core.series.Series) Now we will visualize ts. plot() is a function which makes plots of DataFrame using matplotlib / pylab. We can specify the figure size using figsize. We need to pass a tuple (width, height) in inches. ts.plot(figsize=(10,5)) Now we will plot the dataframe df. df.plot() load_dataset() loads an example dataset from the online repository (requires internet). Here we have loaded the iris dataset from seaborn. iris = sns.load_dataset('iris') iris.head() Now we will plot the iris dataframe. Using title we can add a Title for the plot. We have even set the axes labels. ax = iris.plot(figsize=(15,8), title='Iris Dataset') ax.set_xlabel('X Axis') ax.set_ylabel('Y Axis') Now we will plot the series again but this time we will add the style parameter. -- means dashed line style and r means red colour. Hence r-- means red dashed line. legend = True places legend on axis subplots using the name specified using label. ts.plot(style = 'r--', label = 'Series', legend = True) logy = True uses log scaling on y axis. iris.plot(legend = False, figsize = (10, 5), logy = True) Now we will see how to plot data on the secondary axis. For that we will create 2 dataframes x and y as shown below. We will plot sepal_width and petal_width on the primary axis and sepal_length and petal_length on the secondary axis. x = iris.drop(['sepal_width', 'petal_width'], axis = 1) x.head() y = iris.drop(['sepal_length', 'petal_length'], axis = 1) y.head() If secondary_y = True then data is plot on a secondary y-axis. Now we will plot x on the primary axis and y on the secondary axis of the same plot. ax = x.plot() y.plot(figsize = (16,10), secondary_y = True, ax = ax) We can adjust the tick resolution using x_compat. x.plot(figsize=(10,5), x_compat = True) Bar Plot Now we will see how to draw bar plots. The species column in iris contains non-numeric values. Hence we will drop it and save the resultant dataframe in df. df = iris.drop(['species'], axis = 1) df.head() Now we will draw a bar plot for the first row of df. df.iloc[0].plot(kind='bar') You can even draw the same plot using the line of code given below. df.iloc[0].plot.bar() Now we will load the titanic dataset from seaborn. titanic = sns.load_dataset('titanic') titanic.head() To see the distribution of a single column we can plot a histogram. Here we have drawn a histogram for pclass. The 3 bars represent the 3 different values in pclass. titanic['pclass'].plot(kind = 'hist') Now we will create a dataframe df which will have 10 rows and 4 columns. It will containd= random values which will be generated by randn(). The column names will be a, b, c and d respectively. df = pd.DataFrame(randn(10, 4), columns=['a', 'b', 'c', 'd']) df.head() df.plot.bar() Stacked Plot Now we will plot a stacked plot for df. stacked = True lots stacked bar charts for the DataFrame. df.plot.bar(stacked = True) We can even draw the same plot which the line of code givwn below. df.plot(kind = 'bar', stacked = True) Till now we have drawn vertical bar plots. Now we will see how to plot horizontal bar plots. A horizontal bar plot is a plot that presents quantitative data with rectangular bars with lengths proportional to the values that they represent. For this we will use the barh() function. plt.axis('off') turns off axis lines and labels. df.plot.barh(stacked = True) plt.axis('off') Histogram A histogram is a representation of the distribution of data. We can draw a histogram using the hist() function. iris.plot.hist() Alternatively, you can even plot it in this way. iris.plot(kind = 'hist') A histogram displays numerical data by grouping data into “bins” of equal width. Each bin is plotted as a bar whose height corresponds to how many data points are in that bin. Bins are also sometimes called “intervals”, “classes”, or “buckets”. We can use bins to specify the number of bins. iris.plot(kind = 'hist', stacked = True, bins = 50) We can draw a horizontal histogram by passing orientation = 'horizontal'. iris.plot(kind = 'hist', stacked = True, bins = 50, orientation = 'horizontal') The diff() function calculates the difference of a DataFrame element compared with another element in the DataFrame. iris['sepal_width'].diff()[:10] 0 NaN 1 -0.5 2 0.2 3 -0.1 4 0.5 5 0.3 6 -0.5 7 0.0 8 -0.5 9 0.2 Name: sepal_width, dtype: float64 We can plot the histogram of the difference. iris['sepal_width'].diff().plot(kind = 'hist', stacked = True, bins = 50) We will drop the species column as it is non-numeric and take difference of all the other columns. df = iris.drop(['species'], axis = 1) df.diff()[:10] Now if we plot the histogram we will get 4 separate subplots for each column in df. df.diff().hist(color = 'r', alpha = 0.5, figsize=(10,10)) _20<< color = {'boxes': 'DarkGreen', 'whiskers': 'r'} color {'boxes': 'DarkGreen', 'whiskers': 'r'} Now we will plot a box plot for df. We have set the colour of the boxes to DarkGreen and colour of the whiskers to r i.e. red. df.plot(kind = 'box', figsize=(10,5), color = color) We can plot a horizontal box plot by passing vert = False. df.plot(kind = 'box', figsize=(10,5), color = color, vert = False) Area and Scatter Plot An area plot displays quantitative data visually. We can pass kind='area' to draw a area plot. df.plot(kind = 'area') Area plots are stacked by default. To draw unstacked area plots we have to set the parameter stacked to False. df.plot.area(stacked = False) Now we will draw scatter plots In scatter plots the coordinates of each point are defined by two dataframe columns and filled circles are used to represent each point. This kind of plot is useful to see complex correlations between two variables. df.plot.scatter(x = 'sepal_length', y = 'petal_length') c is a parameter which decides the color of each point. Here we have passed the column name sepal_width whose values will be used to color the marker points according to a colormap. df.plot.scatter(x = 'sepal_length', y = 'petal_length', c = 'sepal_width') We can group 2 scatter plots in the same figure as shown below. Here we have drawn a plot for sepal_length vs petal_length and sepal_width vs petal_width in the same axes. ax = df.plot.scatter(x = 'sepal_length', y = 'petal_length', label = 'Length'); df.plot.scatter(x = 'sepal_width', y = 'petal_width', label = 'Width', ax = ax, color = 'r') s is used to control the size of each point. Here the size will value according to the values in petal_width. df.plot.scatter(x = 'sepal_length', y = 'petal_length', c = 'sepal_width', s = df['petal_width']*200) Hex and Pie Plot A Hexbin plot is useful to represent the relationship of 2 numerical variables when you have a lot of data point. Instead of overlapping, the plotting window is split in several hexbins, and the number of points per hexbin is counted. The color denotes this number of points. Now we will draw a hexbin plot. gridsize is used to specify the number of hexagons in the x-direction. The corresponding number of hexagons in the y-direction is chosen in a way that the hexagons are approximately regular. Alternatively, gridsize can be a tuple with two elements specifying the number of hexagons in the x-direction and the y-direction. C specifies values at given coordinates. df.plot.hexbin(x = 'sepal_length', y = 'petal_length', gridsize = 10, C = 'sepal_width') Now we will move on to pie plots. A pie plot is a proportional representation of the numerical data in a column. To start with we will only consider the first row. d = df.iloc[0] d sepal_length 5.1 sepal_width 3.5 petal_length 1.4 petal_width 0.2 Name: 0, dtype: float64 d.plot.pie(figsize = (10,10)) Now we will see how to plot a separate pie plot for each column. For that we will take the transpose of the first 3 rows of df. d = df.head(3).T d subplots = True plots separate pie plots for each numerical column independently. d.plot.pie(subplots = True, figsize = (20, 20)) You can even change the font size. autopct enables you to display the percent value using Python string formatting. d.plot.pie(subplots = True, figsize = (20, 20), fontsize = 16, autopct = '%.2f') Consider we want to). x=[0.2]*4 print(x) print(sum(x)) [0.2, 0.2, 0.2, 0.2] 0.8 Hence we can see that we have got an incomplete pie plot as sum(x) is 0.8 which is less than 1. series = pd.Series(x, index = ['a','b','c', 'd'], name = 'Pie Plot') series.plot.pie() Scatter Matrix A scatter matrix (pairs plot) compactly plots all the numeric variables we have in a dataset against each other one. First we will import scatter_matrix. from pandas.plotting import scatter_matrix Now we will plot a scatter matrix for df with the diagonal plots as Kernel Density Estimation (KDE) plots. scatter_matrix(df, figsize= (8,8), diagonal='kde', color = 'r') plt.show() KDE Plots Now we will plot a KDE plot. KDE Plot described as Kernel Density Estimate is used for visualizing the Probability Density of a continuous variable. It depicts the probability density at different values in a continuous variable. ts.plot.kde() Andrew curves Andrews curves have the functional form: f(t) = x_1/sqrt(2) + x_2 sin(t) + x_3 cos(t) + x_4 sin(2t) + x_5 cos(2t) + … Where x coefficients correspond to the values of each dimension and t is linearly spaced between -pi and +pi. Each row of frame then corresponds to a single curve. We will import andrews_curves. from pandas.plotting import andrews_curves Now we will plot andrews curves for sepal_width. andrews_curves(df, 'sepal_width') Subplots Lastly, we will see how to divide dataset into multiple separate plots. This can be done by passing subplots = True. sharex = False gives a separate x axis to all the plots. df.plot(subplots = True, sharex = False) plt.tight_layout() We can even change the layout of the subplots by using the parameter layout. df.plot(subplots = True, sharex = False, layout = (2,2), figsize = (16,8)) plt.tight_layout() Data visualization provides us with a quick, clear understanding of the information. Due to graphical representations, we can visualize large volumes of data in an understandable and coherent way, which in turn helps us comprehend the information and draw conclusions and insights. Relevant data visualization is essential for pinpointing the right direction to take for selecting and tuning a machine learning model. It both shortens the machine learning process and provides more accuracy for its outcome.
https://kgptalkie.com/data-visualization-with-pandas/
CC-MAIN-2021-17
refinedweb
2,131
68.77
This is one of the 100 recipes of the IPython Cookbook, the definitive guide to high-performance scientific computing and data science in Python. We will generate one-dimensional data with a simple model (including some noise), and we will try to fit a function to this data. With this function, we can predict values on new data points. This is a curve-fitting regression problem. import numpy as np import scipy.stats as st import sklearn.linear_model as lm import matplotlib.pyplot as plt %matplotlib inline f = lambda x: np.exp(3 * x) x_tr = np.linspace(0., 2, 200) y_tr = f(x_tr) x = np.array([0, .1, .2, .5, .8, .9, 1]) # y = f(x) + np.random.randn(len(x)) y = np.array([0.59837698, 2.90450025, 4.73684354, 3.87158063, 11.77734608, 15.51112358, 20.08663964]) plt.figure(figsize=(6,3)); plt.plot(x_tr[:100], y_tr[:100], '--k'); plt.plot(x, y, 'ok', ms=10); LinearRegressionclass). 7 observations with 1 feature. plt.figure(figsize=(6,3)); plt.plot(x_tr, y_tr, '--k'); plt.plot(x_tr, y_lr, 'g'); plt.plot(x, y, 'ok', ms=10); plt.xlim(0, 1); plt.ylim(y.min()-1, y.max()+1); plt.title("Linear regression"); np.vanderfunction. We will explain this trick in more detail in How it works.... lrp = lm.LinearRegression() plt.figure(figsize=(6,3)); plt.plot(x_tr, y_tr, '--k'); for deg, s in zip([2, 5], ['-', '.']): lrp.fit(np.vander(x, deg + 1), y); y_lrp = lrp.predict(np.vander(x_tr, deg + 1)) plt.plot(x_tr, y_lrp, s, label='degree ' + str(deg)); plt.legend(loc=2); plt.xlim(0, 1.4); plt.ylim(-10, 40); # Print the model's coefficients. print(' '.join(['%.2f' % c for c in lrp.coef_])) plt.plot(x, y, 'ok', ms=10); plt.title("Linear regression"); We have fitted two polynomial models of degree 2 and 5. The degree 2 polynomial fits the data points less precisely than the degree 5 polynomial. However, it seems more robust: the degree 5 polynomial seems really bad at predicting values outside the data points (look for example at the portion $x \geq 1$). This is what we call overfitting: by using a model too complex, we obtain a better fit on the trained dataset, but a less robust model outside this set. The ridge regression model has a meta-parameter which represents the weight of the regularization term. We could try different values with trials and errors, using the Ridge class. However, scikit-learn includes another model called RidgeCV which includes a parameter search with cross-validation. In practice, it means that you don't have to tweak this parameter by hand: scikit-learn does it for you. Since the models of scikit-learn always follow the fit- predict API, all we have to do is replace lm.LinearRegression by lm.RidgeCV in the code above. We will give more details in the next section. ridge = lm.RidgeCV() plt.figure(figsize=(6,3)); plt.plot(x_tr, y_tr, '--k'); for deg, s in zip([2, 5], ['-', '.']): ridge.fit(np.vander(x, deg + 1), y); y_ridge = ridge.predict(np.vander(x_tr, deg + 1)) plt.plot(x_tr, y_ridge, s, label='degree ' + str(deg)); plt.legend(loc=2); plt.xlim(0, 1.5); plt.ylim(-5, 80); # Print the model's coefficients. print(' '.join(['%.2f' % c for c in ridge.coef_])) plt.plot(x, y, 'ok', ms=10); plt.title("Ridge regression"); This time, the degree 5 polynomial seems better than the simpler degree 2 polynomial (which now causes underfitting). The ridge regression reduces the overfitting issue here. You'll find all the explanations, figures, references, and much more in the book (to be released later this summer). IPython Cookbook, by Cyrille Rossant, Packt Publishing, 2014 (500 pages).
http://nbviewer.jupyter.org/github/ipython-books/cookbook-code/blob/master/notebooks/chapter08_ml/01_scikit.ipynb
CC-MAIN-2018-13
refinedweb
623
61.83
Details Description The current implementation by Paj is slow and pollutes the global namespace with variables and functions. This implementation only exports the SHA1 module and also happens to be up to 3 times faster as an added bonus. See for benchmarks. Activity - All - Work Log - History - Activity - Transitions Okay ... so does that mean we can remove it? It used to be used in prepareUserAccount before 1.2.x/1.3.x _users db security changes. I just did a cursory review of where we use SHA1 in Futon and was under whelmed. As far as I can tell it's really only used in the tests even though it's included in every Futon page (creating a different issue for this). If someone cares enough about Futon tests' run time then we could replace the SHA1 implementation, but it doesn't seem like a worthwhile cause to me. Cheers. patch doesn't apply cleanly (might be because I did the json2.js update beforehand direct from json.org) Can you repost the patch against latest trunk, or a link to your git repo so I can clone directly? Thanks! Chris we'd still need it to verify that "old" user docs still work, and it might be required in the ouath tests. that means we could remove it from futon and just have it in the test suite.
https://issues.apache.org/jira/browse/COUCHDB-833?focusedCommentId=13213777&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel
CC-MAIN-2015-27
refinedweb
229
73.68
.6: Driving Practice About This Page Questions Answered: Will I soon be able to write a Scala class fluently? Topics: A synthesis of topics from earlier chapters. Additionally: Shorthand operations on vars. A few words on overloading method names. What Will I Do? Program and play with the resulting map-based car simulator. Rough Estimate of Workload:? Three hours? Four? The main assignment involves some relatively independent programming work, and there’s a chance you get stuck. We recommend that you reserve a good chunk of time, carefully read the tips you’re given, and make use of O1’s forums so that it won’t take excessively long. If you don’t get stuck, you might be done in much less time. Points Available: A5 + B80. Related Projects: CarSim (new). Nice to Know: Shorthand Operators for Variables When you assign a new value to, say, a gatherer or a stepper, you use the variable’s old value as part of the expression that determines the new value. When the variable’s type is numeric, the expression is often arithmetic. Here are a couple of examples: this.balance = this.balance + amount this.value = this.value + 1 Since such commands are common and since they contain the same code fragment twice, the designers of Scala (and other languages) have chosen to provide a way to express the same thing more succinctly. For instance, we can alternatively write the above as: this.balance += amount this.value += 1 The += operator means: “Increase the value of the variable on the left by the value on the right.” Or to be somewhat more precise: “Take the old value of the var variable on the left and the value of the expression on the right. Sum them and assign the result to the variable on the left.” (By the way, as you see, the notation += looks like the one you learned in Chapter 1.5 for adding a value to a buffer. This notation is used here for a different purpose: the addition of numbers. Of course, there is an analogy between the two uses: a buffer is updated by adding to it and a variable is updated by adding to it.) Syntactic sugar It’s common for programming languages to let us express the same meaning in different ways. Programmers often speak of syntactic sugar (syntaktinen sokeri), which refers to language constructs that aren’t necessary in terms of the language’s expressive power (i.e., they don’t enable new kinds of programs) but that make it more convenient or elegant to express certain things. The shorthand for variable assignment is an example of syntactic sugar. Syntactic sugar is a matter of taste that programmers often quibble over. Since all general-purpose programming languages (such as Scala) are equal in terms of the computations they can express, one might even say that, in a sense, programming languages in general are merely syntactic sugar. More shortcuts There are more similar shorthand operators; see the table below for examples. The Scala toolkit automatically “expands” the abbreviations. These operators are in common use and we’ll also be using them in O1. You may choose to apply them in the upcoming programming assignments, or not, as you prefer. In any case, you’ll need to be able to read code that uses the operators. A Frequently Asked Question In some widely used programming languages (such as C and Java), there is a still shorter way to express the adjustment of a variable’s value by one. For example, number++ and number-- mean the same as number += 1 and number -= 1. Do we have these operators in Scala, too? Answer: No. Scala’s designers haven’t seen that bit of additional brevity as worth pursuing. One of the contributing factors is that although there are many ways to program in Scala, one of the most common (functional programming; Chapter 10.2) makes limited use of vars . On the other hand, Scala is a flexible language, and you can extend it with “operators” of your own (Chapter 4.5). CarSim In the CarSim application, the user can direct the movements of cars on a world map. Each car is illustrated as a colored circle. Task description Fetch CarSim. It contains a good part of an application program. The GUI is ready for use. However, a key component is missing. Your task is: - to study the documentation of o1.carsim.Carthoroughly; - to write the Scala program code that implements the class, building on the given skeleton code; and - to test that your class works as specified in the Scaladocs, fixing any bugs that remain. ??? In several places within the skeleton code, there are three question marks: ???. This is a Scala expression for a part of a program that is as yet unimplemented. Attempting to evaluate such an expression yields a runtime error. (This will happen, for instance, if you try calling one of the methods in the given Car class.) We recommend that you tackle the assignment in stages, as described below. Step 1 of 6: Instance variables You need to figure out which instance variables you need so that you can keep track of car’s state between method calls. Some of the variables should be private so that users of the class can’t arbitrarily modify their values. The Scaladocs spell out the constructor parameters, as does the given code. In the code, some of the parameters have also been (correctly) associated with a corresponding instance variable. What are the other key attributes of a Car; that is, what other info does a Car object need to track in order for its methods to work? What kind of variables would help you store that information? What are the types and roles of each variable? It’s not necessary to come up with every last variable right away. You can return to this step later if the need arises. Stick to the specified interface, please Do not add public members to the class beyond those requested. On the other hand, you’re free to add private members as you see fit. This guideline applies to all of O1’s programming assignments that specify the public interfaces of the classes that you implement. Step 2 of 6: The easier(?) methods Ignore the most complex method, drive, for now. Implement the other methods first. Two methods named fuel? Did you notice that there are two different methods named fuel, with different parameter lists? Even though these are two entirely separate methods, you can use one of them to implement the other: the parameterless fuel is easy to implement simply by calling the other fuel and passing a large enough number as a parameter. Further down in this chapter, there is some additional information about methods that share a name. Step 3 of 6: Test your class as a separate component Try running the test program CarTest that uses Car separately from the entire CarSim app. Apart from driving, the test program should now produce output that makes sense. You can edit the test program to improve coverage. You can also experiment with Car in the REPL. Step 4 of 6: Test your class as part of CarSim Launch CarSim via the app object o1.carsim.gui.CarSim. Try adding cars and fueling them through the GUI. There are some usage instructions at the bottom of the GUI window. Step 5 of 6: Implement drive As the documentation says: in this assignment, you can assume that each car moves in a straight line, “as the crow flies”. Sometimes, a car will fail to reach the destination as its fuel runs out. In case you have trouble with the math required to determine where a car stops, this may help: - Despite the fact that CarSim uses the xand yof a Posto represent latitude and longitude on the Earth’s round surface, this assignment has been set up for you so that you can continue to think about Posobjects in terms of ordinary, flat, two-dimensional coordinates. - Forget programming for a while, draw a diagram of the car’s movement, and solve the mathematical problem first. Only then should you consider how you can express the solution as Scala. - You won’t need any trigonometry. Basic arithmetic (multiplication, addition, division, and subtraction) will do. In addition, you can draw on the methods of class Pos: the already-familiar distancemethod will be of use, and you may find other methods described in the docs helpful as well. - You don’t have to model the car’s velocity. Just take care of the things described in the Scaladocs. Step 6 of 6: More testing Test drive. Again, you may wish to test the method first in the separate test program, then as part of the full app. Play with CarSim. How do the cars drive about? You may be wondering how the cars of CarSim twine their way on the map even though your own implementation was so straightforward. The CarSim application does use your code but it’s clever about how it does that: it represents the complex route between the starting location and the destination as tiny straight segments and calls your drive method for each segment in quick succession. If you want, you can use CarSim’s Settings menu to display the segments. And what about finding the correct route? The application does that with the help of an an online service by Here.com, which resembles the perhaps more familiar location services provided by Google. The map images also come from an online service. If you want, you can take a look at other CarSim components, which accomplish the above. However, be warned that if you’re a beginner programmer, the code doesn’t make for easy reading. In any case, you can take from this assignment the lesson that programs can be built upon powerful external services. Submission form A+ presents the exercise submission form here. On Method Overloading Overloading and return types in Scala Chapter 1.8 brought up the fact that you can annotate any Scala function with its return type. In some contexts, these annotations are mandatory. Perhaps the most common example of such a context is an overloaded method that calls another method of the same name. We must assist Scala’s automatic type inference by explicitly defining the type of the method that calls its namesake. You can confirm this for yourself as follows. Did you implement the parameterless fuel method by calling the single-parameter fuel, as suggested? If you did, now try removing the type annotation (the colon and the word Double) in the method header. You’ll be presented with the error “overloaded method fuel needs result type”. The phenomenon is easy to observe in the REPL, too: class MyClass { def method(first: Int, second: Int) = first + second def method(number: Int) = this.method(number, number) }<console>:13: error: overloaded method method needs result type def method(number: Int) = this.method(number, number) ^ class MyClass { def method(first: Int, second: Int) = first + second def method(number: Int): Int = this.method(number, number) }defined class MyClass This business with the return type is just a little quirk of Scala’s; it has no broader significance to us. Fortunately, if you forget about it, you get a clear error message. Also remember that annotating a method with a return type is always a valid choice. Additional Material: On Accessor Methods Trouble with naming: instance variable vs. method Here are a few familiar example programs that all have a “look-but-don’t-touch” aspect: - In the Orderclass of Chapter 3.1, we wanted an order’s total price to be available to the class’s user (via the method totalPrice). However, we did not wish for the user to directly modify that information (by assigning to variable sumOfPrices). So we used a private varvariable and had the public method return its value. - We applied the same idea to FlappyBug, where the movements of the bug and the obstacle are restricted by their respective classes and recorded internally in their currentPosvariables. The classes’ user has access to their public posmethods. - In Chapter 3.4, the number of goals scored by each team was recorded in private variables ( awayCount, homeCount). Class Match’s interface provided access to these values through two corresponding methods ( awayGoals, homeGoals). - Perhaps you also did something similar in the CarSim assignment above? All the above classes have some data that is stored internally in a variable but accessed by the user via a method. The creator of the classes needs to pick two names: one for the variable, one for the method. Each is related to the same domain entity. There is no single best solution. Different programmers adopt different solutions in different cases. If you can’t come up with two good names, use the better name for the public method and the worse name for the private variable. By doing this, you prioritize the ease of use of the class. Some programmers like to use abbreviations in the names of private instance variables. If you do, make sure you still keep your code readable. Some programmers like to mark the private variables with a prefix such as mBuyer (where m = member of the class) or _buyer. Some other programming languages promote the following style: buyer (variable) vs. getBuyer (method). This convention doesn’t put usability first, however. In Scala, it’s seldom used. In most of O1’s programming assignments, the public names have been specified for you in advance and you’re free to come up with the private names. By the way: notice how this naming headache arises only when we use vars. When it comes to vals, things are simpler, because you can’t assign a new value to a val and there’s no need for a separate method. Occasionally asked question: Don’t we use “getters” and “setters” in Scala, like we do in Java? In the examples listed above, we associated a var with a so-called “getter” method that returns the var’s value. However, we haven’t defined such a “getter” for nearly all of the instance variables in our programs. In Scala programs, it’s common to leave instance variables public when they represent externally visible attributes of objects. “Getters” are more the exception than the rule. Consider this example: class Profile(val name: String, var status: String) { // methods go here } The variables that record the profile’s name and status are public. Their values can be examined by any programmer who uses the class; that user can also assign a new value to the latter variable. Had we written this class in “Java style”, it would look like this: class Profile(private val name: String, private var status: String) { def getName = this.name def getStatus = this.status def setStatus(status: String) = { this.status = status } // additional methods go here } “Getters” and “setters” like this are ubiquitous in Java programs (and in various other languages what support object-orientation). There are countless style guides that tell the beginner Java programmer to avoid public instance variables like the plague. An earlier Java-based incarnation of O1 also commanded students thus: Why? And why doesn’t that commandment apply to Scala, so that we can write public variables with impunity? Does Scala in fact actually have implicit “getters” of a sort behind the curtain, even though we don’t explicitly define them? If you’re interested, you can read up on these questions online. Here are a couple of links to get you started. - Reasoning behind the Java convention: Why use getters and setters? - Reasoning behind the Scala convention: Getters and Setters in Scala Additional Material: Constructors and Parameters Overloading constructors We just discussed overloading methods. You can also overload a constructor; that is, you can define multiple ways of instantiating a class from different parameters. You won’t need to in O1, though. Let’s write a small class as an experiment. First of all, we should be able to instantiate the class so that we pass in a word and a number as constructor parameters: new Experiment("cat", 100)res0: Experiment = an object whose word is cat and whose number is 100 Nothing new so far. This class matches the requirement: class Experiment(val word: String, val number: Int) { override def toString = "an object whose word is " + this.word + " and whose number is " + this.number } But what if we also wish to be able to instantiate the class so that we pass in just a number, in which case the class will use the default word “llama”? new Experiment(10)res1: Experiment = an object whose word is llama and whose number is 10 Moreover, we’d like to be able to just pass in a word and use a default number of 12345: new Experiment("dog")res2: Experiment = an object whose word is dog and whose number is 12345 We can enable these alternative means of instantiation by overloading the class’s constructor. Scala has a particular notation for this: class Experiment(val word: String, val number: Int) { def this(word: String) = this(word, 12345) def this(number: Int) = this("llama", number) override def toString = "an object whose word is " + this.word + " and whose number is " + this.number } def thisdenotes the start of an alternative constructor. The round brackets that follow list the parameters that are required for that instantiation method. this(... )means, roughly: “Create an instance in the normal fashion, passing in the bracketed information as constructor parameters.” For example, here we say that if just a word has been supplied, we create the instance using that word and the number 12345. If flexible instantiation is the goal, constructor overloading is not the only solution, or necessarily the most convenient one: see the next box. Default parameter values Either new Experiment2("llama", 453534) or simply new Experiment2("llama") will instantiate this class: class Experiment2(val word: String, val number: Int = 12345) { override def toString = "an object whose word is " + this.word + " and whose number is " + this.number } You can set a default value on a method parameter just as you can on a constructor parameter. Named parameters Default parameter values are sometimes convenient but you won’t need to write methods that have them in O1. Also in the same category are named parameter values, commonly known as named arguments. Challenging reads If you have prior programming experience, you may wish to do a web search for builder pattern. You should be able to find some more challenging material on constructor parameters. The article Type-Safe Builder Pattern in Scala. is an interesting read but unsuitable for beginners. Summary of Key Points - Some applications use interfaces (APIs) created by external providers. Some such interfaces are available as services on the internet. - For example, the application in this chapter used an online mapping service. - You’ll learn more about accessing network services in O1’s follow-on courses. - There are shorthand notations (e.g., +=, *=) for some common commands that manipulate varvariables. - You can overload a method name: a class can have multiple distinct methods with the same name but different parameter lists and different implementations. - In Scala, if you call an overloaded method from one of its namesake methods, you must explicitly mark the calling method’s return type. - Links to the glossary: API; to overload, signature; syntactic sugar.. nameand statusare private.
https://plus.cs.aalto.fi/o1/2018/w03/ch06/
CC-MAIN-2020-24
refinedweb
3,249
64.3
’ll need the following: - A free Twilio Account. If you use this link to register, you will receive $10 credit when you upgrade to a paid account. - Python 3.6 or newer - Ngrok. This will make the development version of our application accessible over the Internet. - A smartphone with an active number and WhatsApp installed. Creating a Python environment Let’s create a directory where our project will reside. From the terminal, run the following command: $ mkdir twilio_whatsapp_bot: A Twilio helper library that will make it easy for us to create valid TwiML. - Requests: A Python library for making HTTP requests. To install all the dependencies at once, run the following command: $ pip install flask twilio requests Creating the Bot Before we get started with building the bot, let’s quickly go through how the bot will work. In order for the bot to work as expected, messages that require conversion need to be in a particular format. So for example, a user needs to send a message in the format “Convert 5 BTC to USD”, where 5 is the number of BTC units to convert and USD is the currency code of the currency you would like to get the equivalent number of BTC units in. The Twilio API for WhatsApp makes use of webhooks to notify our application whenever our bot receives a message. Let’s create a simple function that will respond to this webhook. At the root of your project’s directory, create a main.py and add the following code to the file: from flask import Flask, request from twilio.twiml.messaging_response import MessagingResponse import requests app= Flask(__name__) @app.route('/incoming/twilio', methods=['POST']) def incoming_twilio(): incoming_message=request.form['Body'].lower() message= incoming_message.split() resp= MessagingResponse() msg=resp.message() if 'hello' in incoming_message: reply = standard_response_format() msg.body(reply) return str(resp) if len(message) < 4: reply = standard_response_format() msg.body(reply) return str(resp) btc_unit = message[1] currency_code = message[4].upper() r = requests.get("") if r.status_code == 200: rates = r.json()['data']['rates'] if currency_code in rates: unit_rate = rates[currency_code] unit_conversion = get_unit_conversion(btc_unit, unit_rate) reply=f"{btc_unit} BTC is {unit_conversion:,} {currency_code}" else: reply=f"{currency_code} is not a valid currency code" else: reply= "Something went wrong" msg.body(reply) return str(resp) def standard_response_format(): return ("Welcome to the Bitcoin Currency Converter bot!\n\n" "Please use the following format to chat with the bot: \n" "Convert 1 BTC to USD \n" "1 is the number of BTC unit you would like to convert \n" "USD is the currency code you would like to convert too \n") def get_unit_conversion(unit, unit_rate): return round(round(float(unit_rate), 2) * float(unit), 2) if __name__ == '__main__': app.run() Let’s go over what’s happening in the incoming_twilio() function. The first thing we did was to obtain the content of the message that was sent using Flask’s request object. This comes in the payload of the POST request with a key of Body. Since we’ll be doing some basic analysis on the message, the message is converted to lowercase to avoid any issue that might arise as a result of case variations. Next, the message itself is converted into a list using the split() method. Based on the agreed messaging format, the default separator in this case will be any whitespace. A further analysis is carried out to check if the keyword hello is contained in the message. If hello is found in the message, a generic response is sent to the back to the user informing them of how to make use of the bot. Similarly, another check is carried out to ensure that after the message has been converted into a list, the number of items contained in the list is not less than 4. Again, this is due to the agreed messaging format with the bot. The number of BTC units to convert and the currency code are contained at indexes 1 and 4 of the list` respectively. Next, a HTTP GET request is made to the Coinbase API to obtain the current exchange rates with BTC as the base currency. The returned rates will define the exchange rate for one unit of BTC. Here’s an example of the response received from the API. { "data": { "currency": "BTC", "rates": { "AED": "36.73", "AFN": "589.50", "ALL": "1258.82", "AMD": "4769.49", "ANG": "17.88", "AOA": "1102.76", "ARS": "90.37", "AUD": "12.93", "AWG": "17.93", "AZN": "10.48", "BAM": "17.38", ... } } } Once the response from the API has been obtained, a check is carried out to ensure that the currency code obtained from the list earlier can be found as a key under the rates payload. If it exists, the get_unit_conversion() function, which does the actual conversion, is then called passing in the unit rate of the identified currency code as well as the number of BTC units to convert. Once we’ve applied our logic to determine the bot’s response based on the body of the message received, we need to send back a reply. Twilio expects this reply to be in Twilio Markup Language (TwiML). This is an XML-based language but we’re not required to create XML directly. The MessagingResponse class from the Twilio Python helper library helps us to send the response in the right format. Setting up Ngrok Since our application is currently local, there’s no way for Twilio to be able to send POST requests to the endpoint we just created. We can use Ngrok to set up a temporary public URL so that our app is accessible over the web. To start the application, run the following command from the terminal: $ python main.py With the application running,. Configure Twilio WhatsApp Sandbox Before you’re able to send and receive messages using the Twilio API for WhatsApp in production, you’ll need to enable your Twilio number for WhatsApp. Since “Programmable SMS / WhatsApp Beta” and paste the Ngrok URL we noted earlier on the “WHEN A MESSAGE COMES IN” field. Don’t forget to append /incoming/twilio at the end of the URL so that it points at our Flask endpoint. Click “Save” at the bottom of the page. Testing You can try testing the functionality of the bot by sending messages to it from your smartphone using WhatsApp. Here’s an example of me chatting with the bot: Conclusion In this tutorial, we have created a simple WhatsApp chatbot that returns the Bitcoin equivalent price in any supported currency. This was implemented using Flask and the Twilio API for WhatsApp. The Bitcoin exchange rate was obtained from the Coinbase API. The GitHub repository with the complete code for this project can be found here. Dotun Jolaoso Website: Github: Twitter:
https://www.twilio.com/blog/build-whatsapp-bitcoin-currency-conversion-bot-python-twilio
CC-MAIN-2020-45
refinedweb
1,127
65.32
Meet Rich Burroughs by Rich Burroughs Hi, I’m Rich Burroughs, and I’ve just joined Loft Labs as a Senior Developer Advocate. I’m very excited to be here, and I’d like to share a bit about why I joined the team. Multitenancy in Kubernetes is a nightmare. Everyone knows it. Namespaces are great but they don’t provide the isolation that a lot of teams need. A developer who has access to a namespace can’t manage things like CRDs, which live outside the namespace, or see cluster-wide resources. What this leads to is one of two results, which are both pretty painful. Either you use shared clusters and your developers have to live with those problems, or you create dedicated clusters for teams. If you go that second route, you probably have multiple clusters per team for different environments. That seems to be the path that most teams are taking. How do you keep up with all of those clusters, let alone manage them? Cluster sprawl is a huge problem, and as Holly Cummins mentioned in her fantastic KubeCon 2020 EU keynote, the problem isn’t just financial. There’s an impact on the environment as well. Loft’s Spaces are a level of abstraction above namespaces that let users access a space as if it was their own dedicated cluster. Spaces are powered by Virtual Clusters, which I think are a huge advancement in how we manage clusters. You can even have idle clusters sleep to save on resources. If multitenancy was the only problem the Loft Labs team had tackled, I’d be pretty impressed. But there’s a lot more. With Loft, users can provision their own spaces when they need them. If you’ve ever opened a ticket to get someone else to provision an environment for you, you know how vital self-service is. It helps keep cycle times lower and developer happiness higher. And speaking of cycle times, the Loft team has also built DevSpace, a developer workflow tool for engineers working with Kubernetes clusters. Have you ever waited around for a new container to build so you can see if your changes work? Or even worse, for a CI pipeline to run integration tests? With DevSpace you can hot reload your app in the running container as you make changes. It’s super cool and it’s open source. You don’t have to be a Loft customer to use DevSpace. Honestly, I’m blown away by how much the Loft Labs team has built with just a few engineers. What impresses me more is that the tools they’ve built help solve the very real-world pain that engineers and platform teams feel. That’s really the thing that made me want to join the team. When I saw what they were building, I knew the vision behind it was very on point. And last but not least, I’m delighted to be working in the Kubernetes community. I first saw Kelsey Hightower speak about Kubernetes in 2015, when he was still working at CoreOS, and I was hooked. Since then, I’ve met a lot of amazing people in the Kubernetes community. I wanted an excuse to talk to them more, so in 2020 I created the Kube Cuddle podcast to interview people about their experiences with Kubernetes. You can find it in your podcast player by searching for the name or listen to episodes here. I’m excited to talk to you all about what we’re doing at Loft. If you’d like to say hi, you can find me on Twitter, in the Loft Slack, or the #devspace channel in the Kubernetes Slack. Let me know if you have any questions about Loft or DevSpace. Originally published at.
https://loft-sh.medium.com/meet-rich-burroughs-2d9c9d10146b?source=post_page-----2d9c9d10146b-----------------------------------
CC-MAIN-2022-05
refinedweb
635
72.97
Merge PDF Files using Python Want to share your content on python-bloggers? click here. In this tutorial we will explore how to merge PDF files using Python. Table of Contents - Introduction - Sample PDF files - Merge two PDF files using Python - Merge many PDF files using Python - Conclusion Introduction Merging PDF files is often a required operation after scanning multiple pages of documents, or saving multiple pages as individual documents on your computer. There are several software such as Adobe as well as online tools that can help perform this task quickly. However most of them are either paid or might not have enough security features provided. In this tutorial we will explore how to merge PDF files using Python on your computer with a few lines of code. To continue following this tutorial we will need the following two Python library: PyPDF2. If you don’t have them installed, please open “Command Prompt” (on Windows) and install them using the following code: pip install PyPDF2 In order to continue in this tutorial we will some PDF files to work with. Here are the three PDF files we will use in this tutorial: These PDF files will reside in the pdf_files folder, which is in the same directory as the main.py with our code. Here is how the structure of my files looks like: Merge two PDF files using Python In order to perform PDF merging in Python we will need to import the PdfFileMerger() class from the PyPDF2 library, and create an instance of this class. In this example we will merge two files: sample_page1.pdf and sample_page2.pdf. In this case, the two file names can be placed into a list, which we will then iterate over and append one to another: from PyPDF2 import PdfFileMerger #Create and instance of PdfFileMerger() class merger = PdfFileMerger() #Create a list with file names pdf_files = ['pdf_files/sample_page1.pdf', 'pdf_files/sample_page2.pdf'] #Iterate over the list of file names for pdf_file in pdf_files: #Append PDF files merger.append(pdf_file) #Write out the merged PDF merger.write("merged_2_pages.pdf") merger.close() And you should see merged_2_pages.pdf created in the same directory as the main.py file with the code: Merge many PDF files using Python In this section we will explore how to merge many PDF files using Python. One way of merging many PDF files would be to add the file names of every PDF files to a list manually and then perform the same operation as in the previous section. But what if we have 100 PDF files in the folder? Using the os library we can access all of the file names in a given directory as a list and iterate over it: from PyPDF2 import PdfFileMerger import os #Create and instance of PdfFileMerger() class merger = PdfFileMerger() #Create a list with PDF file names path_to_files = r'pdf_files/' #Get the file names in the directory for root, dirs, file_names in os.walk(path_to_files): #Iterate over the list of file names for file_name in file_names: #Append PDF files merger.append(path_to_files + file_name) #Write out the merged PDF merger.write("merged_all_pages.pdf") merger.close() And you should see merged_all_pages.pdf created in the same directory as the main.py file with the code: Conclusion In this article we explored how to merge multiple PDF files using Python. Feel free to leave comments below if you have any questions or have suggestions for some edits and check out more of my Python Programming tutorials. The post Merge PDF Files using Python appeared first on PyShark. Want to share your content on python-bloggers? click here.
https://python-bloggers.com/2022/05/merge-pdf-files-using-python/
CC-MAIN-2022-40
refinedweb
602
60.55
About this series This series explores application architectures that use a Service Oriented Architecture (SOA) on the back end implemented with the Grails framework. Explore how much Grails simplifies creating Web applications in general and Web services in particular. This kind of back end can be easily hooked up to any pure client-side application. In Part 1, you will use Adobe Flex to create such an application that leverages the Flash Player. In Part 2, you will use the Google Web Toolkit to create the front end in pure JavaScript. Prerequisites In this article you will build a Web application using Grails and Flex. The Grails framework is built on the Groovy programming language, a dynamic language for the Java™ platform. Familiarity with Groovy is great, but not completely necessary. Knowledge of Java can be a good substitute, or even other dynamic languages like Ruby or Python. Grails 1.0.3 was used with developing this article (see Resources). Grails can work with numerous databases or application servers, but none is needed for this article—Grails comes with both. The front end is built using Flex, an application framework that uses the ActionScript programming language and runs on the Flash Player. Again, it is okay if you are not already familiar with Flex and ActionScript. Familiarity with Java and JavaScript will help in picking up Flex. Flex SDK 3.2 or higher is needed to compile the code in this article (see Resources). To run the application, you need the Flash Player Version 10.0 or higher.. It turns out, however, that these two things work well together. You can use an SOA design to deploy services to your application servers. You can move all of your presentation logic to the client and leverage a powerful front-end technology such as Flex to create an RIA. That is exactly what you will do in this series, and you will start by creating a Web service using Grails. Web services When many developers hear the term Web service, they think of one thing: SOAP (Simple Object Access Protocol). This has a negative connotation with many developers, as they think of SOAP as being a heavy and complicated technology. However, Web services do not have to be that way. REST (Representational State Transfer)-style Web services have gained popularity because of their simple semantics. They are easier to create and to consume. They can use XML, just like SOAP services, but this can be Plain Old XML (POX) with no fancy wrappers and headers like with SOAP. The Grails framework makes it very easy to create these kind of Web services, so let's get started with a Grails domain model. Grails domain model Grails is a general purpose Web development framework. Most Web applications use a relational database to store and retrieve the data used in an application, and thus Grails comes with a powerful Object Relational Modeling (ORM) technology known as GORM. With GORM, you can easily model your domain objects and have them persisted to a relational database of your choice, without ever dealing with any SQL. GORM uses the popular Hibernate library for generating database-specific and optimized SQL, and for managing the life cycles of domain objects. Before getting in to using GORM, let's quickly discuss the application you will create and what you need to model with GORM. In the sample application, you will create a Web application that mimics the functionality of the popular site Digg (see Resources). On Digg, users can submit links to stories (Web pages). Other users can then read these stories and vote for or against them. You will capture all of this basic functionality in your application. It will let people submit and vote for stories anonymously, so you will not need to model users, just stories. With that in mind, here is the GORM model for a story in the example application, shown in Listing 1. Listing 1. The Story model class Story { String link String title String description String tags String category int votesFor int votesAgainst } That is all the code needed to model the domain object. You declare its properties and the types of those properties. This will allow Grails to create the table for you and dynamically create methods for both reading and writing data from that table. This is one of the major benefits of Grails. You only put data modeling code in one place and never have to write any boilerplate code for simple reads and writes. Now that you have the domain model in place, you can create some business services that use this domain model. Business services One of the benefits of an SOA is that it allows you to model your system in a very natural way. What are some of the operations you would like to perform? That is how you define the business services of the application. For example, you will want to be able to browse and search for stories, so you should create a service for this, as shown in Listing 2. Listing 2. Search service class SearchService { boolean transactional = false def list() { Story.list() } def listCategory(catName){ Story.findAllWhere(category:catName) } def searchTag(tag){ Story.findAllByTagsIlike("%"+tag+"%") } } The first thing you might notice is the boolean flag transactional. Grails is built on top of numerous proven technologies, including Spring. It uses Spring's declarative transactions to decorate any service with transactions. If you were performing updates on data, or you wanted this service to be used by other transactional services, then you would want to enable this. You want this service to be a read-only service. It is not going to take the place of data access, since you have a domain model that already handles all of that. The first service operation retrieves all stories. The second retrieves those for a given category. You use GORM's where-style finder for this. This lets you pass in a map of name/value pairs to form a WHERE clause in an SQL query. The third operation allows you to search for stories with a given tag. Here you use GORM's dynamic finders. This lets you incorporate the query clause as part of the name of the finder method. So to query on the tags column, you use findAllByTags. Also notice the like suffix; this is a case-insensitive SQL LIKE clause. This lets you find all stories where the tag parameter occurs as a substring of the tags attribute. For example, if a story had been tagged "BarackObama" it would show up in a search for "obama." You have created three simple but powerful ways to search for stories. Notice how succinct the syntax for this is. If you are a Java programmer, just imagine how much you would normally write to do this. The search service is powerful, but there is nothing to search yet. You need another service for managing individual stories. I have called this the Story service, and it is shown in Listing 3. Listing 3. Story service class StoryService { boolean transactional = true def create(story) { story.votesFor = 0 story.votesAgainst = 0 log.info("Creating story="+story.title) if(!story.save(flush:true) ) { story.errors.each { log.error(it) } } log.info("Saved story="+story.title + " id=" + story.id) story } def voteFor(storyId){ log.info("Getting story for id="+storyId) def story = Story.get(storyId) log.info("Story found title="+story.title + " votesFor="+story.votesFor) story.votesFor += 1 if(!story.save(flush:true) ) { story.errors.each { log.error(it) } } story } def voteAgainst(storyId){ log.info("Getting story for id="+storyId) def story = Story.get(storyId) log.info("Story found title="+story.title + " votesAgainst="+story.votesAgainst) story.votesAgainst += 1 if(!story.save(flush:true) ) { story.errors.each { log.error(it) } } story } } The Story service has three operations. First, you can create a new story. Next, you have operations for voting for and voting against a given story, via the ID of the story. In each case, notice that you have done some logging. Grails makes it easy to log—just use the implicit log object and typical log4j-style methods: log.debug, log.info, log.error, and so on. The story is saved (either inserted or deleted) using the save method on the Story instance. Notice how you can check for errors by examining the errors property of the story instance. For example, if the story was missing a value for a required field, then this would show up as part of story.errors. Finally notice that this service is transactional. This will tell Grails (and thus Spring) to either use an existing transaction (if one is already present), or create a new one whenever any of these operations are invoked. This is particularly important for the voting operations, because in those you have to read the story from the database first and then update a column. Now that you have created your basic business services, expose them as an API by creating a Web service around them, as you'll see next. Exposing the API As developers, we often think of APIs as code that we write that will be called by other developers. In a Service Oriented Architecture, this is still true. However, the API is not a Java interface or something similar; it is a Web service signature. It is the Web service that exposes the API and allows it to be invoked by others. Grails makes it easy to create a Web service—it is just another controller in a Grails application. Take a look at Listing 4 to see the API for the application. Listing 4. The API controller import grails.converters.* class ApiController { // injected services def searchService def storyService // set the default action def defaultAction = "stories" def stories = { stories = searchService.list() render stories as XML } def submit = { def story = new Story(params) story = storyService.create(story) log.info("Story saved story="+story) render story as XML } def digg = { def story = storyService.voteFor(params.id) render story as XML } def bury = { def story = storyService.voteAgainst(params.id) render story as XML } } The first thing you will notice is the presence of the business services you created in the previous section. These services will be automatically injected by Grails. Actually, they were injected by the Spring framework, one of the technologies that Grails is built on. You simply follow the naming convention ( searchService for the instance variable that will be used to reference an instance of the SearchService class and so on), and Grails does everything for you. The API presents four operations (actions) that can be called: stories, submit, digg, and bury. In each case, you delegate to a business service, take the result of that call and serialize it to XML that you send to the client. Grails makes this rendering easy, just using the render function and an XML converter. Finally, notice that the submit, digg, and bury actions all use the params object. This is a hashtable of the HTTP request parameters and their values. For the digg and bury, you simply retrieve the id parameter. For the submit action, you passed the whole params object to the constructor of the Story class. This uses Grails data binding—as long as the parameter names match up to the property names of the class, Grails will set them for you. This is just another case of how Grails makes development easier. You have written a very minimal amount of code, but that was all you needed to create the services and expose them as Web services. Now you can create a rich presentation layer that uses these services. Presentation You have used an SOA for the back end of the application. This will allow you to create many different kinds of presentation layers on top of it. You will first build a Flash-based user interface using the Flex framework. However, you could just as easily use any other client-side presentation technology. You could even create a "thick" desktop client. However, there is no need, as you will be able to get a rich user experience from a Web client. Take a look at some simple use cases below, and build the user interface for them using Flex. Let's get started by listing all of the stories. Listing stories To list the stories, you know what API to call from the back end. Or do you? When you created the back end, did you ever map any particular URLs to your API controller and its methods? Obviously you did not, but once again Grails will make your life easier. It uses convention over configuration for this. So, to call the stories action on the API controller for the digg application, the URL will be http://<root>/digg/api/stories. Since this is a RESTful Web service, this should be an HTTP GET. You can do this in your browser directly and get XML that looks something like the XML shown in Listing 5. Listing 5. Sample XML response <?xml version="1.0" encoding="UTF-8"?><list> <story id="12"> <category>technology</category> <description>This session discusses approaches and techniques to implementing Data Visualization and Dashboards within Flex 3.</description> <link>- 2008-data-visualization-and.php</link> <tags>flash, flex</tags> <title>Data Visualization and Dashboards</title> <votesAgainst>0</votesAgainst> <votesFor>0</votesFor> </story> <story id="13"> <category>technology</category> <description>Make your code snippets like really nice when you blog about programming.</description> <link> syntax-highlighting-and-code-snippets.html</link> <tags>programming, blogging, javascript</tags> <title>Syntax Highlighting and Code Snippets in a blog</title> <votesAgainst>0</votesAgainst> <votesFor>0</votesFor> </story> <story id="14"> <category>miscellaneous</category> <description>You need a get notebook if you are going to take good notes.</description> <link> sweet_decay.html</link> <tags>notebooks</tags> <title>Sweet Decay</title> <votesAgainst>0</votesAgainst> <votesFor>0</votesFor> </story> <story id="16"> <category>technology</category> <description>If there was one thing I could teach every engineer, it would be how to market. </description> <link></link> <tags>programming, funny</tags> <title>The One Thing Every Software Engineer Should Know</title> <votesAgainst>0</votesAgainst> <votesFor>0</votesFor> </story> </list> Obviously, the exact contents depend on what data you have saved in your database. The important thing to note is the structure of how Grails serializes the Groovy objects as XML. Now you are ready to write some ActionScript code for working with the services. Data access One of the nice things about moving all of the presentation tier to the client is that it is much cleaner architecturally. It is easy to follow a traditional model-view-controller (MVC) paradigm now, since nothing gets spread out between the server and client. So you start with a model for representing the data structure and then encapsulate access to the data. This is shown in the Story class in Listing 6. Listing 6. Story class public class Story extends EventDispatcher { private static const LIST_URL:String = ""; [Bindable] public var id:Number; [Bindable] public var title:String; [Bindable] public var link:String; [Bindable] public var category:String; [Bindable] public var description:String; [Bindable] public var tags:String; [Bindable] public var votesFor:int; [Bindable] public var votesAgainst:int; private static var listStoriesLoader:URLLoader; private static var dispatcher:Story = new Story(); public function Story(data:XML=null) { if (data) { id = data.@id; title = data.title; link = data.link; category = data.category; description = data.description; tags = data.tags; votesFor = Number(data.votesFor); votesAgainst = Number(data.votesAgainst); } } } Listing 6 shows the basics of the Story class. It has several fields, corresponding to the data structure you will get from the service. The constructor takes an optional XML object and populates its fields from that object. Notice the succinct syntax for accessing the XML data. ActionScript implements the E4X standard as a simplified way of working with XML. It is similar to XPath, but uses a syntax that is more natural for object-oriented programming languages. Also notice that each property has been decorated with [Bindable]. This is an ActionScript annotation. It allows a UI component to be bound to the field, so that if the field changes, the UI is updated automatically. Finally, notice the static variable, listStoriesLoader. This is an instance of URLLoader, an ActionScript class used for sending HTTP requests. It is used by a static method in the Story class for loading all of the stories via the API. This is shown in Listing 7. Listing 7. List Stories method public class Story extends EventDispatcher { public static function list(loadHandler:Function, errHandler:Function=null):void { var req:URLRequest = new URLRequest(LIST_URL); listStoriesLoader = new URLLoader(req); dispatcher.addEventListener(DiggEvent.ON_LIST_SUCCESS, loadHandler); if (errHandler != null) { dispatcher.addEventListener(DiggEvent.ON_LIST_FAILURE, errHandler); } listStoriesLoader.addEventListener(Event.COMPLETE, listHandler); listStoriesLoader.addEventListener(IOErrorEvent.IO_ERROR, listErrorHandler); listStoriesLoader.load(req); } private static function listHandler(e:Event):void { var event:DiggEvent = new DiggEvent(DiggEvent.ON_LIST_SUCCESS); var data:Array = []; var storiesXml:XML = XML(listStoriesLoader.data); for (var i:int=0;i<storiesXml.children().length();i++) { var storyXml:XML = storiesXml.story[i]; var story:Story = new Story(storyXml); data[data.length] = story; } event.data = data; dispatcher.dispatchEvent(event); } } The list method is what the controller will be able to invoke. It sends off an HTTP request and registers event listeners for when that request completes. This is needed because any HTTP request in Flash is asynchronous. When the request completes, the listHandler method is invoked. This parses through the XML data from the service, once again using E4X. It creates an array of Story instances and attaches this array to a custom event that is then dispatched. Take a look at that custom event in Listing 8. Listing 8. DiggEvent public class DiggEvent extends Event { public static const ON_STORY_SUBMIT_SUCCESS:String = "onStorySubmitSuccess"; public static const ON_STORY_SUBMIT_FAILURE:String = "onStorySubmitFailure"; public static const ON_LIST_SUCCESS:String = "onListSuccess"; public static const ON_LIST_FAILURE:String = "onListFailure"; public static const ON_STORY_VOTE_SUCCESS:String = "onStoryVoteSuccess"; public static const ON_STORY_VOTE_FAILURE:String = "onStoryVoteFailure"; public var data:Object = {}; public function DiggEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false) { super(type, bubbles, cancelable); } } Using a custom event class is a common paradigm in ActionScript development, because any server interactions have to be asynchronous. The controller can call the method on your model class and register its own event handlers that look for the custom events. You can decorate the custom event with extra fields. In this case you just added on a data field that is generic and can be reused. Now that you have looked at the model for the presentation tier, look at how it gets used by the controller. Application controller The controller is responsible for coordinating calls to the model, providing the model to the view, and responding to events from the view. Take a look at the controller code in Listing 9. Listing 9. DiggController public class DiggController extends Application { [Bindable] public var stories:ArrayCollection; [Bindable] public var subBtnLabel:String = 'Submit a new Story'; public function DiggController() { super(); init(); } private function init():void { Story.list(function(e:DiggEvent):void{ stories = new ArrayCollection(e.data as Array);}); } } The controller extends the core Flex class Application. This is an idiomatic approach to Flex that lets you associate the controller to its view in a simple way, as you will see in the next section. The controller has a collection of stories that is bindable. This will let the collection be bound to UI controls. Once the application loads, it immediately calls the Story.list method. It passes an anonymous function or lambda, as a handler to the Story.list method. The lambda expression simply dumps the data from the custom event into the stories collection. Now take a look at how this is used in the view. The view Earlier I mentioned that the controller extended the Flex Application class. This is the base class of any Flex application. Flex allows you to use MXML (an XML dialect) to declaratively create the UI. The controller is able to leverage this syntax, as shown in Listing 10. Listing 10. User interface <?xml version="1.0" encoding="utf-8"?> <ctrl:DiggController xmlns: <mx:Script> <![CDATA[ import org.developerworks.digg.Story; private function digg():void { this.diggStory(results.selectedItem as Story); } private function bury():void { this.buryStory(results.selectedItem as Story); } ]]> </mx:Script> <ctrl:states> <mx:State <mx:AddChild <works:StoryEditor </mx:AddChild> </mx:State> </ctrl:states> <mx:DataGrid <mx:HBox <mx:Button <mx:Button <mx:Button </mx:HBox> </ctrl:DiggController> Notice that the root document uses the "ctrl" namespace. This is declared to point to the "controllers" folder, and that is where you put your controller class. Thus everything from the controller class is available inside the UI code. For example, you have a data grid whose dataProvider property is set stories. This is the stories variable from the controller class. It directly binds to the DataGrid component. Now you can compile the Flex code into a SWF file. You just need a static HTML file for embedding the SWF. Running it will look something like Figure 1. Figure 1. The Digg application This is the default look and feel of a Flex application. You can easily style the colors using standard CSS like you would use for an HTML application. You can also customize the DataGrid component, specifying the columns, their order, and so on. The "Digg the Story!" and "Bury the Story!" buttons both call functions on the controller class. Also, notice that you wire-up a controller function to the double-click event for the DataGrid. The controller methods all use the model, just as you would expect in an MVC architecture. The final button, "Submit a new Story", uses several key features of Flex. Take a look at how it works. Submit a story As you can see in Listing 10, clicking the "Submit a new Story" button invokes the toggleSubmitStory method on the controller class. The code is shown in Listing 11. Listing 11. The toggleSubmitStory method public class DiggController extends Application { public function toggleSubmitStory():void { if (this.currentState != 'SubmitStory') { this.currentState = 'SubmitStory'; subBtnLabel = 'Nevermind'; } else { this.currentState = ''; subBtnLabel = 'Submit a new Story'; } } } This function changes the currentState property of the application to SubmitStory. Looking back at Listing 10, you can see where this state is defined. States allow you to add or remove components, or to set properties on existing components. In this case you add a new component to the UI. That component happens to be a custom component for submitting a story. It is shown in Listing 12. Listing 12. The StoryEditor component <?xml version="1.0" encoding="utf-8"?> <mx:VBox xmlns: <mx:Form> <mx:FormHeading <mx:FormItem <mx:TextInput </mx:FormItem> <mx:FormItem <mx:TextInput </mx:FormItem> <mx:FormItem <mx:ComboBox </mx:FormItem> <mx:FormItem <mx:TextArea </mx:FormItem> <mx:FormItem <mx:TextInput </mx:FormItem> <mx:Button </mx:Form> <mx:Binding <mx:Binding <mx:Binding <mx:Binding <mx:Binding </mx:VBox> Listing 12 only shows the UI elements for the custom component. It is just a simple form, but notice the binding declarations in it. This allows you to directly bind the UI form elements to a Story instance, called story. That is declared in a script block, as shown in Listing 13. Listing 13. Script for StoryEditor <?xml version="1.0" encoding="utf-8"?> <mx:VBox xmlns: <mx:Script> <![CDATA[ import mx.controls.Alert; import org.developerworks.digg.*; [Bindable] private var story:Story = new Story(); public var successHandler:Function; private function submitStory():void { story.addEventListener(DiggEvent.ON_STORY_SUBMIT_SUCCESS, successHandler); story.addEventListener(DiggEvent.ON_STORY_SUBMIT_FAILURE, errorHandler); story.save(); // reset story = new Story(); } private function errorHandler(e:Event):void { Alert.show("Fail! : " + e.toString()); } ]]> </mx:Script> </mx:VBox> The script block acts as the controller code for the component. You could easily put both into a separate controller class for the component, since both styles are common in Flex. Going back to Figure 1, you can click on the "Submit new Story" button, and it will show the custom component, as shown in Figure 2. Figure 2. Custom component displayed You can add a new story using the component. It will call the back-end service, which will return XML for the story. That is, in turn, converted back to a Story instance and added to the stories collection that is bound to the DataGrid, making it automatically appear in the UI. With that, the presentation code is complete and hooked up to the back-end service. Summary In this article you have seen how easy it is to create a Web service with Grails. You never had to write any SQL to create a database or to read and write from it. Grails makes it easy to map URLs to Groovy code and to invoke services and create XML for the Web service. This XML is easily consumed by a Flex front end. You have seen how to create a clean MVC architecture on the front end and how to use many sophisticated features of Flex, like E4X, data-binding, states, and custom components. In Part 2 of this series, explore using a JavaScript-based UI for the service using the Google Web Toolkit. Downloads Resources Learn - "Apache Geronimo on Grails" (Michael Galpin, developerWorks, July 2008): The application created in this article can be deployed to any application server. See an example in this developerWorks article. - "Mastering Grails: Build your first Grails application" (Scott Davis, developerWorks, January 2008): Get an introduction to creating Grails applications. - "Mastering Grails: GORM: Funny name, serious technology" (Scott Davis, developerWorks, February 2008): See the power of GORM in action. - "RESTful Web services and their Ajax-based clients" (Shailesh K. Mishra, developerWorks, July 2007): Learn about combining RESTful Web services, like the ones developer here, with Ajax applications. - "Introducing Project Zero: RESTful applications in an SOA" (Roland Barcia and Steve Ims, developerWorks, January 2008): See how REST based services fit in perfectly in a SOA system. - Grails manual: Read this for Grails questions. - "Integrating Flex into Ajax applications" (Brice Mason, developerWorks, July 2008): Read about an example of Flex and Ajax working together. - ASDocs for Flex: Check out this language reference for the classes in ActionScript and Flex. - "Mastering Grails: Changing the view with Groovy Server Pages" (Scott Davis, developerWorks, March 2008): Don't like the UI of this app? Learn all the ways to change it. - "Practically Groovy: Reduce code noise with Groovy" (Scott Hickey, developerWorks, September 2006): Are you a fan of the succinctness that Groovy provides? Learn all about its concise syntax. - "Practically Groovy: Mark it up with Groovy Builders" (Andrew Glover, developerWorks, April 2005): Groovy is another promising language that compiles to Java bytecode. Read about creating XML with it in this developerWorks article. - Grails.org: The best place for Grails information is the project's site. - The Grails manual: Every Grails developer's best friend. - A series of rough benchmarks: See how Grails has significant advantages over Rails by advantages being on top of Java, Hibernate, and Spring. - "Understand Geronimo's deployment architecture" (Hemapani Srinath Perera, developerWorks, August 2005): Deploying an application on Geronimo is easy, but there is a lot that goes on. Learn all about what it takes to deploy an application on Geronimo. - "Remotely deploy Web applications on Apache Geronimo" (Michael Galpin, developerWorks, May 2006): Find out how to deploy your Grails applications to remote instances of Geronimo. - "Invoke dynamic languages dynamically, Part 1: Introducing the Java scripting API" (Tom McQueeney, developerWorks, September 2007): Learn about other alternative languages running on the JVM in this developerWorks article. - "Build an Ajax-enabled application using the Google Web Toolkit and Apache Geronimo" (Michael Galpin, developerWorks, May 2007): See how Geronimo can be used with the Google Web Toolkit. - Visit Digg.com. - developerWorks Web development zone: Expand your site development skills with articles and tutorials that specialize in Web technologies. - developerWorks Open source zone: Visit us for extensive how-to information, tools, and project updates to help you develop with open source technologies and use them with IBM products. - developerWorks podcasts: Listen to interesting interviews and discussions for software developers. - developerWorks technical events and webcasts: Stay current with developerWorks technical events and webcasts. Get products and technologies - Grails: This article uses Grails version 1.0.3 - Get the Flex 3 SDK. - Get Adobe Flash Player Version 10 or later. - Java SDK: This article uses Java SE 1.6_05. -
http://www.ibm.com/developerworks/web/library/wa-riagrails1/
CC-MAIN-2017-09
refinedweb
4,726
57.37
Am 25.07.2012 05:41, schrieb Corey Bryant: >>> diff --git a/block/raw-posix.c b/block/raw-posix.c >>> index a172de3..5d0a801 100644 >>> --- a/block/raw-posix.c >>> +++ b/block/raw-posix.c >>> @@ -271,7 +271,7 @@ static int raw_open_common(BlockDriverState *bs, const char *filename, >>> out_free_buf: >>> qemu_vfree(s->aligned_buf); >>> out_close: >>> - qemu_close(fd); >>> + qemu_close(fd, filename); >>> return -errno; >>> } >> >>; >>> + case O_WRONLY: >>> + if ((mon_fd_flags & O_ACCMODE) == O_WRONLY) { >>> + return mon_fdset_fd->fd; >>> + } >>> + break; >>> + } >> >> I think you mean: >> >> if ((flags & O_ACCMODE) == (mon_fd_flags & O_ACCMODE)) { >> return mon_fdset_fd->fd; >> } > > Yes, that would be a bit simpler wouldn't it. :) > >> >> What about other flags that cannot be set with fcntl(), like O_SYNC on >> older kernels or possibly non-Linux? (The block layer doesn't use it any >> more, but I think we want to keep the function generally useful) >> > > I see what you're getting at here. Basically you could have 2 fds in an > fdset with the same access mode flags, but one has O_SYNC on and the > other has O_SYNC off. That seems like it would make sense to implement. > As a work-around, I think a user could just create a separate fdset > for the same file with different O_SYNC value. But from a client > perspective, it would be nicer to have this taken care of for you. Now that the block layer doesn't use O_SYNC any more, it's more of a theoretical point. I don't think there's any other place, where we'd need to switch O_SYNC during runtime. Taking it into consideration is complicated by the fact that some kernels allow to fcntl() O_SYNC and others don't, so enforcing a match here wouldn't feel completely right either. Maybe just leave it as it is. :-) > >>> + } >>> + errno = EACCES; >>> + return -1; >>> + } >>> + errno = ENOENT; >>> + return -1; >>> +} >>> + >>> /* mon_cmds and info_cmds would be sorted at runtime */ >>> static mon_cmd_t mon_cmds[] = { >>> #include "hmp-commands.h" >> >>> @@ -75,6 +76,79 @@ int qemu_madvise(void *addr, size_t len, int advice) >>> #endif >>> } >>> >>> +/* >>> + * Dups an fd and sets the flags >>> + */ >>> +static int qemu_dup(int fd, int flags) >>> +{ >>> + int i; >>> + int ret; >>> + int serrno; >>> + int dup_flags; >>> + int setfl_flags[] = { O_APPEND, O_ASYNC, O_DIRECT, O_NOATIME, >>> + O_NONBLOCK, 0 }; >>> + >>> + if (flags & O_CLOEXEC) { >>> + ret = fcntl(fd, F_DUPFD_CLOEXEC, 0); >>> + if (ret == -1 && errno == EINVAL) { >>> + ret = dup(fd); >>> + if (ret != -1 && fcntl_setfl(ret, O_CLOEXEC) == -1) { >>> + goto fail; >>> + } >>> + } >>> + } else { >>> + ret = dup(fd); >>> + } >>> + >>> + if (ret == -1) { >>> + goto fail; >>> + } >>> + >>> + dup_flags = fcntl(ret, F_GETFL); >>> + if (dup_flags == -1) { >>> + goto fail; >>> + } >>> + >>> + if ((flags & O_SYNC) != (dup_flags & O_SYNC)) { >>> + errno = EINVAL; >>> + goto fail; >>> + } >> >> It's worth trying to set it before failing, newer kernels can do it. But >> as I said above, if you can fail here, it makes sense to consider O_SYNC >> when selecting the right file descriptor from the fdset. >> > > I'm on a 3.4.4 Fedora kernel that doesn't appear to support > fcntl(O_SYNC), but perhaps I'm doing something wrong. Here's my test > code (shortened for simplicty): [...] Hm, true. So it seems that patch has never made it into the kernel, in fact... >>> + >>> + qemu_set_cloexec(ret); >> >> Wait... If O_CLOEXEC is set, you set the flag immediately and if it >> isn't you set it at the end of the function? What's the intended use >> case for not using O_CLOEXEC then? >> > > This is a mistake. I think I just need to be using qemu_set_cloexec() > instead of fcntl_setfl() earlier in this function and get rid of this > latter call to qemu_set_cloexec(). Yes, probably. And in fact, I think this shouldn't even be conditional on flags & O_CLOEXEC. The whole reason qemu_open() was introduced originally was to always set O_CLOEXEC. Kevin
https://www.redhat.com/archives/libvir-list/2012-July/msg01377.html
CC-MAIN-2015-14
refinedweb
586
61.67
Date: Mon, 16 May 2022 12:46:21 +0000 (UTC) Message-ID: <963260151.310315.1652705181302@cwiki-he-de.apache.org> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_310314_998935746.1652705181302" ------=_Part_310314_998935746.1652705181302 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: Current state: Accepted JIRA: KAFKA-4148 Released: 0.10.1.0 Please keep the discussion on the mailing list rather than commenting on= the wiki (wiki discussions get unwieldy fast). This KIP includes two parts: With KIP-33, the = brokers can now search messages by timestamp accurately. To maintain the ba= ckwards compatibility, we did not change the behavior of ListOffse= tRequest v0. In this KIP, we will introduce ListOffsetRequest v1 t= o provide more accurate search based on timestamp. In SimpleConsumer, users used to be able to search the offsets by = timestamp. This method no longer exists in the KafkaConsumer. We want to in= troduce the method to allow user to search the offsets by timestamp. This i= s useful in a few cases, for example: Another related feature missing in KafkaConsumer is the access of partit= ions' high watermark. Typically, users only need the high watermark in orde= r to get the per partition lag. This seems more suitable to be exposed thro= ugh the metrics. Although the above two parts can be two separate KIPs, but since part 2 = will be heavily depending on part 1 and may also potentially impact the sem= antic for the ListOffsetRequest v1, it might be better to discuss them toge= ther to make sure the wire protocol change can satisfy the various use case= s on the consumer side. Add ListOffsetRequest(ListOffsetRequest) v1 // ListOffsetRequest v1 <= /p> ListOffsetRequest =3D> Replica= Id [TopicName [Partition Time = MaxNumberOfOffsets]] ReplicaId =3D> int32&nbs= p; TopicName =3D> string Partition =3D> int= 32 Time =3D> int64 MaxNumberOfOffsets =3D> int32 // ListOffsetResponse v1 <= /code> ListOffsetResponse =3D> [TopicName [PartitionOffs= ets]] PartitionOffsets =3D> Partition Error= Code Timestamp Partition =3D> int3= 2 ErrorCode =3D> int16 Offset =3D> int64 Add new Error Code 43 - UnsupportedForMessageFormat This error code is added to indicate that the requested operation is not= supported by the message format version. In this KIP it means the ti= mestamp search operation is not supported by the message format before 0.10= .0 when ListOffsetRequest is v1. This error code could also be used in the = future when message format evolves again. (e.g. KIP-82). Add a new method to o.a.k.c.consumer.Consumer to allow user sear= ch offsets by timestamp. /** * Look up the offsets for the given partitions by timestamp. The returned = offset for each partition is the=20 * earliest offset whose timestamp is greater than or equals to the given t= imestamp in the corresponding partition. *=20 * This is a blocking call. The consumer does not have to be assigned the p= artitions. * * @param timestampsToSearch the mapping from partition to the timestamp to= look up. * @return For each partition, returns the timestamp and offset of the firs= t message with timestamp greater * than or equal to the target timestamp. */ Map<TopicPartition, OffsetAndTimestamp> offsetsForTimes(Map<TopicP= artition, Long> timestampsToSearch); /** * Get the earliest available offsets for the given partitions. *=20 * @param partitions the partitions to get the earliest offsets. * @return The earliest available offsets for the given partitions */ Map<TopicPartition, Long> beginningOffsets(Collection<TopicPartiti= on> partitions); /** * Get the latest offsets for the given partitions. *=20 * @param partitions the partitions to get the latest offsets. * @return The latest available offsets for the given partitions. */ Map<TopicPartition, Long> endOffsets(Collection<TopicPartition>= partitions); public class OffsetAndTimestamp { =09private final long timestamp; =09private final long offset; =09public OffsetAndTimestamp(long offset, long timestamp) { =09=09this.timestamp =3D timestamp; =09=09this.offset =3D offset; =09} =09public long timestamp() { return timestamp; } =09public long offset() { return offset; } }=20 Add ListOffsetRequest/ListOffsetResponse v1 with the following cha= nges compared with ListOffsetRequest/ListOffsetResponse v0 In ListOffsetRequest/ListOffsetResponse v0, we return a list of offsets = which is smaller than or equals to the target time. This was because the ti= mestamp search is based on the segment create time. In order to make sure n= ot to miss any messages, users may have to consume from some earlier segmen= ts. After KIP-33, we can accurately find the messages based on the timestam= ps, so there is no need to return a list of offsets to the users anymore. A= rguably we can change the request class name to OffsetRequest = as well because it no longer "list" the offsets, but it seems not worth bre= aking the backwards compatibility in this case. Also, since the messages in format 0.10 and above has timestamp with the= m, it would be natual to also return the timestamp together with the offset= of the messages as the search result. The semantic of getting the latest offset (target time =3D -1) and the e= arliest offset (target time =3D -2) will be preserved in ListOffsetRequest/= ListOffsetResponse v1. If message format on the broker side is before 0.10, i.e. messages do no= t have timestamps. ListOffsetRequest v1 will only work if target time =3D -= 1 or -2. Any other target time will result in an UnsupportedForMessageForma= t (error code 43). Implementation wise, we will migrate to o.a.k.common.requests.ListOffset= Request class on the broker side. Because Kafka request schema uses an Array to represent a <= code>Map, it is possible that users form a ListOffsetRequest= code> that contains duplicate partitions with differen timestamps. In this = case, the broker will return an InvalidRequestException(error code 42) for = that partition in the ListOffsetResponse. Add a new method to allow users to search messages by timestamp. The inp= ut of the method is a mapping from partitions to the target times. The outp= ut of the method is a mapping from partitions to the timestamps and offsets= of the messages whose timestamps are greater than or equal to the given ta= rget time of each partition. The most important use case for offsetsForTimes() = ;method is to consume from the returned offsets. The following code gives a= n example to do that: long offset = =3D consumer.offsetsForTimes(Collections.singletonMap(topicPartition, targe= tTime)).get(topicPartition).offset; consumer.seek(topicPartition, offset); ConsumerRecords records =3D consumer.poll();=20 The target timestamp have to be non-negative. Otherwise an Illegal= ArgumentException will be thrown. If no message has a timestamp that= is greater than or equals to the target time, a n ull will be = returned. earlistOffsets() and endOffsets() return the f= irst and last offset for the given partitions. This KIP is a pure addition, so there is no backward compatibility conce= rn. The new ListOffsetRequest v1 will only be used by new consumer. The old = high level consumer will still be using ListOffsetRequest v0. We will not u= pdate SimpleConsumer either as we are already in the progress of deprecatin= g it. OffsetRequest(ListOffsetRequest) v0 will be deprecated together = with old high level consumer and SimpleConsumer. Test the new consumer against broker with message format before and afte= r 0.10. Test beginningOffsets(), endOffsets(), o= ffsetsForTimes() offsetsForTimes()method all= ows user to query any topic partition without first get the partition assig= ned.
https://cwiki.apache.org/confluence/exportword?pageId=65868090
CC-MAIN-2022-21
refinedweb
1,199
54.83
So I've had a quick look around and I've seen some posts about not using loops in IEnumerators, however after reading the information available on the scripting reference there's nothing that I can see about them being particularly resource heavy or incorrect, so I figured I'd ask here. This is the script I'm using for testing: using UnityEngine; using System.Collections; using UnityEngine.UI; public class iEnumeratorTest : MonoBehaviour { public bool isRecording; public float recordingTime; public float timeTaken; public float tickTime; void Update() { if (isRecording) { recordingTime += Time.deltaTime; } else { if (recordingTime != 0f) { Debug.Log("That took: " + recordingTime); recordingTime = 0f; } } } public void ButtonClick() { StartCoroutine(Tick()); } IEnumerator Tick() { isRecording = true; for (float f = timeTaken; f >= 0; f -= tickTime) { yield return new WaitForSeconds(tickTime); } isRecording = false; } } Update() returns values roughly 10-15% higher than the time it should take to wait. For example, when tickTime was set to 0.1 and timeTaken set to 5, results returned varied between 5.15234 and 5.657412. The results have been similar when using both while and for loops and the actual time is closer to the desired time when increasing tickTime and decreasing timeTaken. This wouldn't be such a big deal however as the wait times are intended to increase dramatically towards the end 10-15% is a great deal of time to be wasted. 2 facts you should know. 1) Coroutines will halt a main thread 2) Frame times vary and it is impossible to get an exact wait time as a result :- Especially when your frames are lengthened by waiting on a coroutine. Answer by Baste · Jun 29, 2015 at 04:25 PM This is due to how Coroutines and WaitForSeconds works. A coroutine is run together with Update, until it's done. If a coroutine yields another IEnumerator, that one is called until it's done, before the main coroutine starts getting called. WaitForSeconds is implemented somewhat like this: IEnumerator WaitForSeconds(float duration) { float startTime = Time.Time; while(Time.time - startTime < duration) yield return null; } This means that it will return on the first Update frame that more time than the duration has passed. Since this is inevitably more than exactly the duration given as the argument, each WaitForSeconds will add a slight positive error. So, the lower your ticktime, the larger the error. This isn't actually a big problem - if you want to wait 5 seconds, use WaitForSeconds(5). The effect won't kick in at exactly 5 seconds, but it will kick in at the first frame that's drawn after 5 seconds has passed, so it will look exactly the same as if you somehow magically managed to make the coroutine return at exact 5 seconds. The only reason I'm using a tick system is so I can have a bar fill up gradually while reducing unnecessary resource usage in update, any idea if I can still do this without using IEnumerators or update? Yeah, you set the bar's fill to the current fill percentage: bar.fillAmount = (Time.time - startTime) / duration; Where I assume fillAmount is between 0 and 1. In general, if you have a UI bar (or element) that's reflecting some variable in a script, you shouldn't have the script both update the value, and keep the bar filled - that'll lead to your script getting huge, and possible introduce bugs where the two gets seperated. Ins$$anonymous$$d, you should put a new script on the bar that looks at the value in the first script, and fills the bar according to that, blind to what the value actually is representing. Filling the bar was never an issue, deciding when to do it was the issue since the previous solution was inaccurate. Having a separate script for essentially 2 lines of code and reading across scripts each frame is going to end up even more inefficient, guess the only other solution is on Update(). Thanks again for the help. Answer by jenci1990 · Jun 29, 2015 at 04:40 PM The 'Update' method not depend of time. It's called when the camera render was completed. Your coroutine wait fix seconds, so there are some difference. Try frame base coroutine: IEnumerator Tick() { isRecording = true; float f = 0; while (f <= timeTaken) { yield return new WaitForEndOfFrame(); f += Time.deltaTime; } isRecording = false; } Sorry for my english! 24 People are following this question. WaitForSeconds stuck 1 Answer WaitforSeconds woes 3 Answers How do I re-instantiate an object after it is destroyed from the scene? 1 Answer Multiple Cars not working 1 Answer Distribute terrain in zones 3 Answers EnterpriseSocial Q&A
https://answers.unity.com/questions/996676/waitforseconds-in-ienumerator-appears-to-be-incorr.html
CC-MAIN-2022-27
refinedweb
771
60.45
Difference between revisions of "Development/Tutorials/QtDOM Tutorial" Revision as of 14:35, 16 January 2007 Contents Short introduction to XML XML [[wikipedia. Creating a simple XML file with Qt DOM: - ) addElement( doc, node, "tag", "contents"). -. From the description above it is clear that SAX can only be used to load an XML file, while DOM can also be used to build up or modify existing XML files. In fact, we already did exactly that in the previous chapter where we created the holiday file. Introduction to XML Namespaces <> Generating XML documents with namespaces using Qt KoXmlElement KoDom::namedItemNS( const KoXmlNode& node, const char* nsURI, const char* localName ) { KoXmlNode n = node.firstChild(); for ( ; !n.isNull(); n = n.nextSibling() ) { if ( n.isElement() && n.localName() == localName && n.namespaceURI() == nsURI ) return n.toElement(); } return KoXmlElement(); } From KODom.h (by dfaure): /** * This namespace contains a few convenience functions to simplify code using QDom * (when loading OASIS documents, in particular). * * To find the child element with a given name, use KoDom::namedItemNS. * * To find all child elements with a given name, use * QDomElement e; * forEachElement( e, parent ) * { * if ( e.localName() == "..." && e.namespaceURI() == KoXmlNS::... ) * { * ... * } * } * Note that this means you don't ever need to use QDomNode nor toElement anymore! * Also note that localName is the part without the prefix, this is the whole point * of namespace-aware methods. * * To find the attribute with a given name, use QDomElement::attributeNS. * * Do not use getElementsByTagNameNS, it's recursive (which is never needed in KOffice). * Do not use tagName() or nodeName() or prefix(), since the prefix isn't fixed. * * @author David Faure <[email protected]> */ Initial Author: Reinhold Kainhofer
https://techbase.kde.org/index.php?title=Development/Tutorials/QtDOM_Tutorial&diff=7461&oldid=7460
CC-MAIN-2021-04
refinedweb
269
58.18
File Browser Command From The Foundry MODO SDK wiki Revision as of 12:46, 16 October 2013 by Mattcox (Talk | contribs) (Created page with "== Introduction == This article provides C++ source code for spawning a file browser from a command. File dialogs are documented in depth, here: [...") Introduction This article provides C++ source code for spawning a file browser from a command. File dialogs are documented in depth, here: File Dialogs Code cmd_filebrowse.cpp /* * * Implement a simple command for spawning a file browser. * * Usage: "file.browse" * */ #include <lx_plugin.hpp> #include <lxu_command.hpp> #include <lx_value.hpp> #include <lx_command.hpp> #define SERVER_NAME "file.browse" #define ARG_FILENAME "filename" #define ARGi_FILENAME 0 /* * Disambiguate everything with a namespace. This isn't necessary, * but it's good practice and allows generic names to be used for * things like the Command class. */ namespace FileBrowse_Cmd { /* * Implement the command class. This inherits from CLxBasicCommand, * which is a wrapper class that does a lot of the heavy lifting * when implementing a command. */ class Command : public CLxBasicCommand { public: static void initialize () { CLxGenericPolymorph *srv; srv = new CLxPolymorph <Command>; srv->AddInterface (new CLxIfc_Command <Command>); srv->AddInterface (new CLxIfc_Attributes <Command>); srv->AddInterface (new CLxIfc_AttributesUI <Command>); srv->AddInterface (new CLxIfc_StaticDesc <Command>); lx::AddServer (SERVER_NAME, srv); } Command (); int basic_CmdFlags () LXx_OVERRIDE; bool basic_Enable (CLxUser_Message &msg) LXx_OVERRIDE; void cmd_Interact () LXx_OVERRIDE; void cmd_Execute (unsigned int flags) LXx_OVERRIDE; static LXtTagInfoDesc descInfo[]; }; Command::Command () { /* * The constructor is a good place to add arguments and * set flags for those arguments. This command will have * a single argument for the filename. The flags will mark * the argument as optional. This will prevent modo from * launching a dialog to ask for a filename string and * instead allow the command to handle the missing argument * value by spawning a file dialog. */ dyna_Add (ARG_FILENAME, LXsTYPE_FILEPATH); basic_SetFlags (ARGi_FILENAME, LXfCMDARG_OPTIONAL); } int Command::basic_CmdFlags () { /* * The flags define if this should be an undoable command * or not. If the command changes the state of the scene, * then it should implement both the MODEL and UNDO flags. */ return LXfCMD_MODEL | LXfCMD_UNDO; } bool Command::basic_Enable (CLxUser_Message &msg) { /* * In practice, a command usually has an enabled state and * a disabled state. This function allows you to return True * or False to enable/disable the command. A message interface * is provided to allow you to pass detailed information about * the enable state back to the user. This command is always * enabled. */ return true; } void Command::cmd_Interact (unsigned int flags) { /* * When the command is executed, this function is first called. * It's the ideal place to open a file dialog and ask for user * interaction. The resulting path can then be passed to the * commands execute method using the filename argument. * * No scene or state altering code should be performed here. */ CLxUser_CommandService cmd_svc; CLxUser_Command command; CLxUser_ValueArray val_array; LXtObjectID obj = NULL; std::string filename = ""; unsigned n = 0; /* * Check if the filename argument is set, if it is, return early. */ if (dyna_IsSet (ARGi_FILENAME)) return; /* * Fire the commands to open the file dialog. */ cmd_svc.ExecuteArgString (-1, LXiCTAG_NULL, "dialog.setup fileOpen"); cmd_svc.ExecuteArgString (-1, LXiCTAG_NULL, "dialog.title {Dialog Title}"); cmd_svc.ExecuteArgString (-1, LXiCTAG_NULL, "dialog.fileTypeCustom {Quicktime Movie} {*.mov;*.mp4} mov"); cmd_svc.ExecuteArgString (-1, LXiCTAG_NULL, "dialog.open"); /* * Spawn a command that can be queried for the result. */ if (LXx_FAIL (cmd_svc.NewCommand (command, "dialog.result"))) return; /* * Query the first argument on the dialog.result command * and store the results in a value array. */ if (LXx_FAIL (cmd_svc.QueryIndex (command, 0, val_array))) return; /* * Get the number of elements in the array. There should * only be one. If there are none, return early. */ n = val_array.Count (); if (!n) return; /* * Read the string from the value array and set the filename * argument to the value of the string. */ val_array.String (0, filename); attr_SetString (ARGi_FILENAME, filename.c_str()); } void Command::cmd_Execute (unsigned int flags) { /* * As the name suggests, this is where the command is executed. * In this command, we won't actually do anything, other than * read the filename argument into a string. */ std::string filename_arg = ""; if (dyna_IsSet (ARGi_FILENAME)) attr_GetString (ARGi_FILENAME, filename_arg); } void initialize () { Command :: initialize (); } }; // End Namespace. /* * Initialize the servers. */ void initialize () { FileBrowse_Cmd :: initialize (); }
https://modosdk.foundry.com/index.php?title=File_Browser_Command&oldid=9074
CC-MAIN-2020-45
refinedweb
666
51.24
Chapter 0: Learn OpenTK in 15' So, you have downloaded the latest version of OpenTK - what now? This is a short tutorial that will help you get started with OpenTK in 3 simple steps. [Step 1: Installation] Run the installer you downloaded. It will ask where you want OpenTK to be installed. Any folder will do. [Step 2: Use OpenTK] Create a new project in your .NET IDE (don't have a .NET IDE? Check out MonoDevelop or Visual Studio Express). Make it of type "Console Application". Now, add a reference to OpenTK.dll: In your new project, right click "References" and select "Add Reference". Locate OpenTK.dll and add it. Repeat this process for System.Drawing.dll. OpenTK depends on this. Now you are ready to add some graphics! Open Program.cs and copy-paste the following code: using System; using System.Drawing; using OpenTK; using OpenTK.Graphics; using OpenTK.Graphics.OpenGL; using OpenTK.Input; namespace Example { class MyApplication { [STAThread] public static void Main() { using (var game = new GameWindow()) {); } } } } Build and run this application. You should see a window with a triangle inside. Press escape to exit. [Step 3: Play] Now it's time to start playing with the code. This is a great way to learn OpenGL and OpenTK at the same time. Every OpenTK game will contain 4 basic methods: Load: this is the place to load resources from disk, like images or music. UpdateFrame: this is a suitable place to handle input, update object positions, run physics or AI calculations. RenderFrame: this contains the code that renders your graphics. It typically begins with a call to GL.Clear()and ends with a call to SwapBuffers. Resize: this method is called automatically whenever your game window changes size. Fullscreen applications will typically call it only once. Windowed applications may call it more often. In most circumstances, you can simply copy & paste the code from Game.cs. Why don't you try modifying a few things? Here are a few suggestions: - Change the colors of the triangle or the window background (OnLoad and OnRenderFrame methods). Hint: use GL.Color4() to control the triangle color and GL.ClearColor() to control the background color. - Make the triangle change colors when you press a key (OnUpdateFrame and OnRenderFrame methods). - Make the triangle move across the screen. Use the arrow keys or the mouse to control its position (OnUpdateFrame). Hint: use Matrix4.CreateTranslation() to create a translation matrix and call GL.LoadMatrix() to load it (OnRenderFrame). - Use a for-loop to render many triangles arranged on a plane (OnRenderFrame method). - Rotate the camera so that the plane above acts as ground (OnRenderFrame method). Hint: use Matrix4.LookAt() to create a modelview matrix and use GL.LoadMatrix() to load it. - Use the keyboard and mouse to walk on the ground. Make sure you can't fall through it! (OnUpdateFrame and OnRenderFrame methods). Some things you might find useful: Vector2, Vector3, Vector4 and Matrix4 classes for camera manipulations. Mouse and Keyboard properties for interaction with the mouse and keyboard, respectively. Joysticks property for interaction with joystick devices. Don't be afraid to try things and see the results. OpenTK lends itself to explorative programming - even if something breaks, the library will help you pinpoint the cause of the error. [Step: next] There's a lot of functionality that is not visible at first glance: audio, advanced OpenGL, display devices, support for GUIs through GLControl... Then there's the subject of proper engine and game design, which could cover a whole book by itself. Hopefully, you'll have gained a feel of the library by now and you'll be able to accomplish more complex tasks. You might wish to consult the complete documentation for the more advanced aspects of OpenTK and, of course, don't hesitate to post at the forums if you hit any roadblocks! - Printer-friendly version - Login or register to post comments Re: Chapter 0: Learn OpenTK in 15' This is nice. However I have a question. I am working on Windows 7 but would like to create a graphics program that will run in both windows and Linux Desktop so I would like to try it with c# mono. When i try create a project in vs2008 using the sample here, it works and it runs successfully. But if i run the sample here in Xamarin Studio 4.0 (still in Windows 7), and when I run it, the compiler throws me an error which looks like its trying to look for x11 (libx11). What setting is missing when the project is loaded in Xamarin Studio. Is there a way to make it work seamless across desktop environments of windows and linux? thank you Re: Chapter 0: Learn OpenTK in 15' Yes, it is possible and fully supported. Please start a post in the forums :)
http://www.opentk.com/doc/chapter/0?page=1
CC-MAIN-2014-15
refinedweb
805
68.87
longest prefix match Discussion in 'Perl Misc' started by friend.05@gmail.com, Nov 24, 2008. - Similar Threads DataGrid is there a way to make a column as wide as the longest text?, Jul 27, 2005, in forum: ASP .Net - Replies: - 2 - Views: - 469 "static" prefix - to parallel "this" prefixTim Tyler, Dec 5, 2004, in forum: Java - Replies: - 36 - Views: - 1,930 - Darryl L. Pierce - Dec 10, 2004 leftmost longest match (of disjunctions)Joerg Schuster, Dec 1, 2003, in forum: Python - Replies: - 12 - Views: - 1,029 - Joerg Schuster - Dec 3, 2003 How to get the "longest possible" match with Python's RE module?Licheng Fang, Sep 12, 2006, in forum: Python - Replies: - 32 - Views: - 2,028 - Tim Peters - Sep 17, 2006 removing a namespace prefix and removing all attributes not in that same prefixChris Chiasson, Nov 12, 2006, in forum: XML - Replies: - 6 - Views: - 849 - Richard Tobin - Nov 14, 2006 re.sub(): replace longest match instead of leftmost match?John Gordon, Dec 16, 2011, in forum: Python - Replies: - 13 - Views: - 746 - Ian Kelly - Dec 20, 2011 Longest match wins - how to do it Perl way?A. Farber, May 1, 2004, in forum: Perl Misc - Replies: - 3 - Views: - 329 - Big and Blue - May 3, 2004 IP address - longest prefix match, Nov 24, 2008, in forum: Perl Misc - Replies: - 11 - Views: - 1,275 - Peter J. Holzer - Nov 29, 2008
http://www.thecodingforums.com/threads/longest-prefix-match.909006/
CC-MAIN-2016-44
refinedweb
227
77.06
Programming a Spider in Java Introduction Spiders are programs that can visit Web sites and follow hyperlinks. By using a spider, you can quickly map out all of the pages contained on a Web site. This article will show you how to use the Java programming language to construct a spider. A reusable spider class that encapsulates a basic spider will be presented. Then, an example will be shown of how to create a specific spider that will scan a Web site and find broken links. Java is a particularly good choice as a language to construct a spider. Java has built-in support for the HTTP protocol, which is used to transfer most Web information. Java also has an HTML parser built in. Both of these two features make Java an ideal choice for spiders. Using the Spider Now, you will be shown how this example program communicates with the reusable spider class. The example program is contained in the CheckLinks class, as seen in Listing 1. This class implements the ISpiderReportable interface, as seen in Listing 2. This interface allows the Spider class to communicate with the example application. This interface defines three methods. The first method, named "spiderFoundURL", is called each time the spider locates a URL. Returning true from this method indicates that the spider should pursue this URL and find links there as well. The second method, named "spiderURLError", is called when any of the URLs that the spider is examining results in an error (such as a 404 "page not found"). The third method, named "spiderFoundEMail", is called by the spider each time an e-mail address is found. By using these three methods, the Spider class is able to communicate its findings back to the application that created it. The spider begins processing when the begin method is clicked. To allow the example program to maintain its User Interface, the spider is started up as a separate Thread. Clicking the "Begin" button begins this background spider thread. When the background thread begins, the run method of the "CheckLinks" class is called. The run method begins by instantiating the Spider object. This can be seen here: spider = new Spider(this); spider.clear(); base = new URL(url.getText()); spider.addURL(base); spider.begin(); First, a new Spider object is instantiated. The Spider object's constructor requires that an "ISpiderReportable" object be passed to it. Because the "CheckLinks" class implements the "ISpiderReportable" interface, you simply pass it as the current object, represented by the keyword this, to the constructor. The spider maintains a list of URLs it has visited. The "clear" method is called to ensure that the spider is starting with an empty URL list. For the spider to do anything at all, one URL must be added to its processing list. The base URL, the URL that the user entered into the example program, is added to the initial list. The spider will begin by scanning this page, and will hopefully find other pages linked to this starting URL. Finally, the "begin" method is called to start the spider. The begin method will not return until the spider is done, or is canceled. As the spider runs, the three methods implemented by the "ISpiderReportable" interface are called to report what the spider is currently doing. Most of the work done by the example program is taken care of in the "spiderFoundURL" method. When the spider finds a new URL, it is first checked to see if it is valid. If this URL results in an error, the URL is reported as a bad link. If the link is found to be valid, the link is examined to see if it is on a different server. If the link is on the same server, the "spiderFoundURL" method returns true, indicating that the spider should pursue this URL and find other links there. Links on other servers are not scanned for additional links because this would cause the spider to endlessly browse the Internet, looking for more and more Web sites. The program is looking for links only on the Web site that the user indicated. Constructing the Spider Class The previous section showed you how to use the Spider class, as seen in Listing 3. Using the Spider class and the "ISpiderReportable" interface can easily allow you to add spider capabilities to your own programs. This section will show you how the Spider class actually works. The Spider class must keep track of which URLs it has visited. This must be done so that the spider insures that it does not visit the same URL more than once. Further, the spider must divide these URLs into three separate classes. The first group, stored in the "workloadWaiting" property, contains a list of URLs that the spider has encountered, yet has not had an opportunity to process yet. The first URL that the spider is to visit is placed into this collection to allow the spider to begin. The second group, stored in the "workloadProcessed" collection, is the URLs that the spider has already processed and does not need to revisit. The third group, stored in the "workloadError" property, contains the URLs that resulted in an error. The begin method contains the main loop of the Spider class. The begin method repeatedly loops through the "workloadWaiting" collection and processes each page. Of course, as these pages are processed, other URLs are likely added to the "workloadWaiting" collection. The begin method continues this process until either the Spider is canceled, by calling the Spider class's cancel method, or there are no URLs remaining in the "workloadWaiting" method. This process is shown here: cancel = false; while ( !getWorkloadWaiting().isEmpty() && !cancel ) { Object list[] = getWorkloadWaiting().toArray(); for ( int i=0;(i<list.length)&&!cancel;i++ ) processURL((URL)list[i]); } As the preceding code loops through the "workloadWaiting" collection, it passes each of the URLs that are to be processed to the "processURL" method. This method will actually read and then parse the HTML stored at each URL. Reading and Parsing HTML Java contains support both for accessing the contents of URLs and parsing HTML. The "processURL" method, which is called for each URL encountered, does this. Reading the contents of a URL is relatively easy in Java. The following code, from the "processURL" method, begins this process. URLConnection connection = url.openConnection(); if ( (connection.getContentType()!=null) && !connection.getContentType().toLowerCase() .startsWith("text/") ) { getWorkloadWaiting().remove(url); getWorkloadProcessed().add(url); log("Not processing because content type is: " + connection.getContentType() ); return; } First, a "URLConnection" object is constructed from whatever URL, stored in the variable "url", was passed in. There are many different types of documents found on Web sites. A spider is only interested in those documents that contain HTML, specifically text-based documents. The preceding code makes sure that the content type of the document starts with "text/". If the document type is not textual, the URL is removed from the waiting workload and added to the processed workload. This ensures that this URL will not be investigated again. Now that a connection has been opened to the specified URL, the contents must be parsed. The following lines of code allow you to open the URL connection, as though it were a file, and read the contents. InputStream is = connection.getInputStream(); Reader r = new InputStreamReader(is); You now have a Reader object that you can use to read the contents of this URL. For this spider, you will simply pass the contents onto the HTML parser. The HTML parser that you will use in this example is the Swing HTML parser, which is built into Java. Java's support of HTML parsing is half-hearted at best. You must override a class to gain access to the HTML parser. This is because you must call the "getParser" method of the "HTMLEditorKit" class. Unfortunately, Sun made this method protected. The only workaround is to create your own class and override the "getParser" method, to make it public. This is done by the provided "HTMLParse" class, as seen in Listing 4. import javax.swing.text.html.*; public class HTMLParse extends HTMLEditorKit { public HTMLEditorKit.Parser getParser() { return super.getParser(); } } This class is used in the "processURL" method of the Spider class, as follows. As you can see, the Reader object (r) that was obtained to read the contents of the Web page is passed into the "HTMLEditorKit.Parser" object that was just obtained. HTMLEditorKit.Parser parse = new HTMLParse().getParser(); parse.parse(r,new Parser(url),true); You will also notice that a new Parser class is constructed. The Parser class is an inner class to the Spider class provided in the example. The Parser class is a callback class that contains certain methods that are called as each type of HTML tag is found. There are several callback methods, which are documented in the API documentation. There are only two that you are concerned with in this article. These are the methods called when a simple tag (a tag with no ending tag, such as <br>) and a begin tag are found. These two methods are named "handleSimpleTag" and "handleStartTag". Because the processing for each is identical, the "handleStartTag" method is programmed to simply call the "handleSimpleTag". The "handleSimpleTag" method is then responsible for extracting hyperlinks from the document. These hyperlinks will be used to locate other pages for the spider to visit. The "handleSimpleTag" method begins by checking to see whether there is an "href", or hypertext reference, on the current tag being parsed. String href = (String)a.getAttribute(HTML.Attribute.HREF); if( (href==null) && (t==HTML.Tag.FRAME) ) href = (String)a.getAttribute(HTML.Attribute.SRC); if ( href==null ) return; If there is no "href" attribute, the current tag is checked to see if it is a Frame. Frames point to their pages using an "src" attribute. A typical hyperlink will appear as follows in HTML: <a href="linkedpage.html">Click Here</a> The "href" attribute in the above link points to the page be linked to. But the page "linkedpage.html" is not an address. You couldn't type "linkedpage.html" into a browser and go anywhere. The "linkedpage.html" simply specifies a page somewhere on the Web server. This is called a relative URL. The relative URL must be resolved to a full, absolute URL that specifies the page. This is done by using the following line of code: URL url = new URL(base,str); This constructs a URL, where str is the relative URL and base is the page that the URL was found on. Using this form of the URL class's constructor allows you to construct a full, absolute URL. With the URL now in its correct, absolute form, the URL is checked to see whether it has already been processed, by making sure it's not in any of the workload collections. If this URL has not been processed, it is added to the waiting workload. Later on, it will be processed as well and perhaps add other hyperlinks to the waiting workload. Conclusions This article showed you how to create a simple spider that can visit every site on a Web sever. The example program presented here could easily be a starting point for many other spider programs. More advanced spiders, ones that must handle a very large volume of sites, would likely make use of such things as multi-threading and SQL databases. Unfortunately, Java's built-in HTML parsing is not multi-thread safe, so building such a spider can be a somewhat complex task. Topics such as these are covered in my book Programming Spiders, Bots and Aggregators in Java, by Sybex. Listing 1: Finding the bad links (CheckLinks.java) import java.awt.*; import javax.swing.*; import java.net.*; import java.io.*; /** * This example uses a Java spider to scan a Web site * and check for broken links. Written by Jeff Heaton. * Jeff Heaton is the author of "Programming Spiders, * Bots, and Aggregators" by Sybex. Jeff can be contacted * through his Web site at. * * @author Jeff Heaton() * @version 1.0 */ public class CheckLinks extends javax.swing.JFrame implements Runnable,ISpiderReportable { /** * The constructor. Perform setup here. */ public CheckLinks() { //{{INIT_CONTROLS setTitle("Find Broken Links"); getContentPane().setLayout(null); setSize(405,288); setVisible(false); label1.setText("Enter a URL:"); getContentPane().add(label1); label1.setBounds(12,12,84,12); begin.setText("Begin"); begin.setActionCommand("Begin"); getContentPane().add(begin); begin.setBounds(12,36,84,24); getContentPane().add(url); url.setBounds(108,36,288,24); errorScroll.setAutoscrolls(true); errorScroll.setHorizontalScrollBarPolicy(javax.swing. ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS); errorScroll.setVerticalScrollBarPolicy(javax.swing. ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); errorScroll.setOpaque(true); getContentPane().add(errorScroll); errorScroll.setBounds(12,120,384,156); errors.setEditable(false); errorScroll.getViewport().add(errors); errors.setBounds(0,0,366,138); current.setText("Currently Processing: "); getContentPane().add(current); current.setBounds(12,72,384,12); goodLinksLabel.setText("Good Links: 0"); getContentPane().add(goodLinksLabel); goodLinksLabel.setBounds(12,96,192,12); badLinksLabel.setText("Bad Links: 0"); getContentPane().add(badLinksLabel); badLinksLabel.setBounds(216,96,96,12); //}} //{{INIT_MENUS //}} //{{REGISTER_LISTENERS SymAction lSymAction = new SymAction(); begin.addActionListener(lSymAction); //}} } /** * Main method for the application * * @param args Not used */ static public void main(String args[]) { (new CheckLinks()).setVisible(true); } /** * Add notifications. */ public void addNotify() { // Record the size of the window prior to calling parent's // addNotify. Dimension size = getSize(); super.addNotify(); if ( frameSizeAdjusted ) return; frameSizeAdjusted = true; // Adjust size of frame according to the insets and menu bar Insets insets = getInsets(); javax.swing.JMenuBar menuBar = getRootPane().getJMenuBar(); int menuBarHeight = 0; if ( menuBar != null ) menuBarHeight = menuBar.getPreferredSize().height; setSize(insets.left + insets.right + size.width, insets.top + insets.bottom + size.height + menuBarHeight); } // Used by addNotify boolean frameSizeAdjusted = false; //{{DECLARE_CONTROLS javax.swing.JLabel label1 = new javax.swing.JLabel(); /** * The begin or cancel button */ javax.swing.JButton begin = new javax.swing.JButton(); /** * The URL being processed */ javax.swing.JTextField url = new javax.swing.JTextField(); /** * Scroll the errors. */ javax.swing.JScrollPane errorScroll = new javax.swing.JScrollPane(); /** * A place to store the errors created */ javax.swing.JTextArea errors = new javax.swing.JTextArea(); javax.swing.JLabel current = new javax.swing.JLabel(); javax.swing.JLabel goodLinksLabel = new javax.swing.JLabel(); javax.swing.JLabel badLinksLabel = new javax.swing.JLabel(); //}} //{{DECLARE_MENUS //}} /** * The background spider thread */ protected Thread backgroundThread; /** * The spider object being used */ protected Spider spider; /** * The URL that the spider began with */ protected URL base; /** * How many bad links have been found */ protected int badLinksCount = 0; /** * How many good links have been found */ protected int goodLinksCount = 0; /** * Internal class used to dispatch events * * @author Jeff Heaton * @version 1.0 */ class SymAction implements java.awt.event.ActionListener { public void actionPerformed(java.awt.event.ActionEvent event) { Object object = event.getSource(); if ( object == begin ) begin_actionPerformed(event); } } /** * Called when the begin or cancel buttons are clicked * * @param event The event associated with the button. */ void begin_actionPerformed(java.awt.event.ActionEvent event) { if ( backgroundThread==null ) { begin.setLabel("Cancel"); backgroundThread = new Thread(this); backgroundThread.start(); goodLinksCount=0; badLinksCount=0; } else { spider.cancel(); } } /** * Perform the background thread operation. This method * actually starts the background thread. */ public void run() { try { errors.setText(""); spider = new Spider(this); spider.clear(); base = new URL(url.getText()); spider.addURL(base); spider.begin(); Runnable doLater = new Runnable() { public void run() { begin.setText("Begin"); } }; SwingUtilities.invokeLater(doLater); backgroundThread=null; } catch ( MalformedURLException e ) { UpdateErrors err = new UpdateErrors(); err.msg = "Bad address."; SwingUtilities.invokeLater(err); } } /** * Called by the spider when a URL is found. It is here * that links are validated. * * @param base The page that the link was found on. * @param url The actual link address. */ public boolean spiderFoundURL(URL base,URL url) { UpdateCurrentStats cs = new UpdateCurrentStats(); cs.msg = url.toString(); SwingUtilities.invokeLater(cs); if ( !checkLink(url) ) { UpdateErrors err = new UpdateErrors(); err.msg = url+"(on page " + base + ")\n"; SwingUtilities.invokeLater(err); badLinksCount++; return false; } goodLinksCount++; if ( !url.getHost().equalsIgnoreCase(base.getHost()) ) return false; else return true; } /** * Called when a URL error is found * * @param url The URL that resulted in an error. */ public void spiderURLError(URL url) { } /** * Called internally to check whether a link is good * * @param url The link that is being checked. * @return True if the link was good, false otherwise. */ protected boolean checkLink(URL url) { try { URLConnection connection = url.openConnection(); connection.connect(); return true; } catch ( IOException e ) { return false; } } /** * Called when the spider finds an e-mail address * * @param email The email address the spider found. */ public void spiderFoundEMail(String email) { } /** * Internal class used to update the error information * in a Thread-Safe way * * @author Jeff Heaton * @version 1.0 */ class UpdateErrors implements Runnable { public String msg; public void run() { errors.append(msg); } } /** * Used to update the current status information * in a "Thread-Safe" way * * @author Jeff Heaton * @version 1.0 */ class UpdateCurrentStats implements Runnable { public String msg; public void run() { current.setText("Currently Processing: " + msg ); goodLinksLabel.setText("Good Links: " + goodLinksCount); badLinksLabel.setText("Bad Links: " + badLinksCount); } } } Listing 2: Reporting spider events (ISpiderReportable.java) import java.net.*; interface ISpiderReportable { public boolean spiderFoundURL(URL base,URL url); public void spiderURLError(URL url); public void spiderFoundEMail(String email); } Listing 3: A reusable spider (Spider.java) import java.util.*; import java.net.*; import java.io.*; import javax.swing.text.*; import javax.swing.text.html.*; /** * That class implements a reusable spider * * @author Jeff Heaton() * @version 1.0 */ public class Spider { /** * A collection of URLs that resulted in an error */ protected Collection workloadError = new ArrayList(3); /** * A collection of URLs that are waiting to be processed */ protected Collection workloadWaiting = new ArrayList(3); /** * A collection of URLs that were processed */ protected Collection workloadProcessed = new ArrayList(3); /** * The class that the spider should report its URLs to */ protected ISpiderReportable report; /** * A flag that indicates whether this process * should be canceled */ protected boolean cancel = false; /** * The constructor * * @param report A class that implements the ISpiderReportable * interface, that will receive information that the * spider finds. */ public Spider(ISpiderReportable report) { this.report = report; } /** * Get the URLs that resulted in an error. * * @return A collection of URL's. */ public Collection getWorkloadError() { return workloadError; } /** * Get the URLs that were waiting to be processed. * You should add one URL to this collection to * begin the spider. * * @return A collection of URLs. */ public Collection getWorkloadWaiting() { return workloadWaiting; } /** * Get the URLs that were processed by this spider. * * @return A collection of URLs. */ public Collection getWorkloadProcessed() { return workloadProcessed; } /** * Clear all of the workloads. */ public void clear() { getWorkloadError().clear(); getWorkloadWaiting().clear(); getWorkloadProcessed().clear(); } /** * Set a flag that will cause the begin * method to return before it is done. */ public void cancel() { cancel = true; } /** * Add a URL for processing. * * @param url */ public void addURL(URL url) { if ( getWorkloadWaiting().contains(url) ) return; if ( getWorkloadError().contains(url) ) return; if ( getWorkloadProcessed().contains(url) ) return; log("Adding to workload: " + url ); getWorkloadWaiting().add(url); } /** * Called internally to process a URL * * @param url The URL to be processed. */ public void processURL(URL url) { try { log("Processing: " + url ); // get the URL's contents URLConnection connection = url.openConnection(); if ( (connection.getContentType()!=null) && !connection.getContentType().toLowerCase().s tartsWith("text/") ) { getWorkloadWaiting().remove(url); getWorkloadProcessed().add(url); log("Not processing because content type is: " + connection.getContentType() ); return; } // read the URL InputStream is = connection.getInputStream(); Reader r = new InputStreamReader(is); // parse the URL HTMLEditorKit.Parser parse = new HTMLParse().getParser(); parse.parse(r,new Parser(url),true); } catch ( IOException e ) { getWorkloadWaiting().remove(url); getWorkloadError().add(url); log("Error: " + url ); report.spiderURLError(url); return; } // mark URL as complete getWorkloadWaiting().remove(url); getWorkloadProcessed().add(url); log("Complete: " + url ); } /** * Called to start the spider */ public void begin() { cancel = false; while ( !getWorkloadWaiting().isEmpty() && !cancel ) { Object list[] = getWorkloadWaiting().toArray(); for ( int i=0;(i<list.length)&&!cancel;i++ ) processURL((URL)list[i]); } } /** * A HTML parser callback used by this class to detect links * * @author Jeff Heaton * @version 1.0 */ protected class Parser extends HTMLEditorKit.ParserCallback { protected URL base; public Parser(URL base) { this.base = base; } public void handleSimpleTag(HTML.Tag t, MutableAttributeSet a,int pos) { String href = (String)a.getAttribute(HTML.Attribute.HREF); if( (href==null) && (t==HTML.Tag.FRAME) ) href = (String)a.getAttribute(HTML.Attribute.SRC); if ( href==null ) return; int i = href.indexOf('#'); if ( i!=-1 ) href = href.substring(0,i); if ( href.toLowerCase().startsWith("mailto:") ) { report.spiderFoundEMail(href); return; } handleLink(base,href); } public void handleStartTag(HTML.Tag t, MutableAttributeSet a,int pos) { handleSimpleTag(t,a,pos); // handle the same way } protected void handleLink(URL base,String str) { try { URL url = new URL(base,str); if ( report.spiderFoundURL(base,url) ) addURL(url); } catch ( MalformedURLException e ) { log("Found malformed URL: " + str ); } } } /** * Called internally to log information * This basic method just writes the log * out to the stdout. * * @param entry The information to be written to the log. */ public void log(String entry) { System.out.println( (new Date()) + ":" + entry ); } } Listing 4: Parsing HTML (HTMLParse.java) import javax.swing.text.html.*; public class HTMLParse extends HTMLEditorKit { public HTMLEditorKit.Parser getParser() { return super.getParser(); } } Author Bio: Je. Author Contact Info: Jeff Heaton heatonj@heat-on.com 636-530-98<<
https://www.developer.com/java/other/article.php/1573761/Programming-a-Spider-in-Java.htm
CC-MAIN-2018-22
refinedweb
3,450
51.34
Introduction The new state management and postback features of ASP.NET are indeed very exciting. They provide developers with a whole new range of mechanisms for producing dynamic Web pages. The ability to write your own custom controls takes that ability to a whole new level, allowing you to write a control with custom functionality that can easily be reused in multiple pages by simply defining custom tags, similar to any other HTML element. The person implementing the layout for a page no longer needs to know all the details of how to write client-side code to get the dynamic behavior that has become so popular. However, there are some pitfalls that developers need to be aware of. ASP.NET promotes server-heavy designs. Network traffic can be dramatically increased as each client-side event can potentially cause a round trip to the server. Many of the effects that result from these frequent trips to the server can easily be accomlished with a few simple JavaScript functions. Calls to the server should be kept to a minimum, with as much being done on the client as possible. By using custom controls to generate client-side script, we can take advantage of Dynamic HTML on the client while still providing a measure of separation between the layout and the logic. Client-Side Script Generation One of the goals of generating script from a custom control is to allow a developer to create the control and specify its behavior, and then publish it for others to use without having to know how the code works. We want to encapsulate the implementation of the control and tightly couple the HTML rendering to the script that works with it to reduce the possible points of failure associated with more traditional methods of Web component reuse (such as Cut & Paste, and include files). The most straightforward approach to script generation is to write the script along with the control in the Render method of your control (see Listing 1). namespace Spotu { public class HelloWorld : Control { protected override void Render ( HtmlTextWriter writer ) { writer.Write(@" <script> function HelloWorld() { document.all('_msg')." + "Click Me</button>"); writer.Write("<div id=_msg></div>"); } } } Listing 2 shows an example of a page using the HelloWorld class with client script generation. <%@ Page language="c#" %> <%@ Register <spotu:HelloWorld </form> </body> </html> Listing 2: Page using the HelloWorld class. This approach works, and does solve the initial problem of allowing a developer to write a custom control that someone else can use in their page to provide dynamic capabilities without having to post back to the server. However, it is not very elegant, and it does have some shortcomings. Most notably, we cannot include this control in a page multiple times; doing so would cause mutiple divisions to be created with the same ID. Even if we do uniquely name the <div> elements in this example, it is still inneficient because the JavaScript gets written out with every reference to this control. This can produce a lot of overhead, transmitting the same script down to the client for each instance of the control. We need some way to have a control generate script, but generate it only once, even if multiple instances of the control are used on the same page. Fortunately for us, the developers at Microsoft thought of this and provided a way to register a script block to ensure we only write out a section of script once by using the Page.RegisterClientScriptBlock method. This method takes two parameters, an ID that identifies the script block so the Page class will know to ignore any other requests to register the same clock of code, and a string containing the script to be registered. The best place to register the script block is in the Init Event Handler for the control. To take advantage of this event, override the OnInit method of the Control class. With this in mind, the HelloWorld example could be rewritten as shown in Listing 3. using System; using System.Web; using System.Web.UI; namespace Spotu { public class HelloWorld : Control { protected override void OnInit(EventArgs e) { string strCode = @" <script> function HelloWorld(id) { document.all(id)." + "Click Me</button>"); writer.Write("<div id='" + this.UniqueID + "'></div>"); } } } Listing 3: HelloWorld rewritten to use the register script block. This approach is much better but there is still a problem. If the script that is being register is lengthy, or if there are a lot of calculations, data accesses, and so forth in generating our script, we will still take a performance hit when the page loads because the control creates this huge block of script that ends up being tossed out because it is already registered. Once a block of script is registered, we can test for it using the Page.IsClientScriptBlockRegistered method. To improve the performance of the HelloWorld control, we would include the call in out Init handler as shown in Listing 4. protected override void OnInit(EventArgs e) { if (!Page.IsClientScriptBlockRegistered("Spotu_HelloWorld")) { string strCode = @" <script> function HelloWorld(id) { document.all(id).innerText = 'Hello World'; } </script>"; Page.RegisterClientScriptBlock("Spotu_HelloWorld", strCode); } } Figure 4: OnInit using the IsClientScriptBlockRegistered test Using client script generation from custom controls provides a clean encapsulated method of enabling dynamic behavior in Web pages while still shielding the page designer from having to know the details of how to produce the desired effect. Developers are now free to concentrate on how to get a control to do what you want it to do without being bogged down with were to put it on the page, or being pestered by the marketing guy to move a control around, add a new one, or take one away. By combining this approach with designer integration controls, dynamic behaviors can easily be customized and reused across multiple pages with little or no developer interaction and without the pitfalls of server-side includes or cut & paste code reuse. Caching Some of you might be inclined to ask: How do I cache this script so it doesn't get downloaded every time? After all, client-side script tends to be fairly static, not needing to be downloaded every time a Web page is loaded. There are a couple of options for caching the output of your control. The ASP.NET approach would be to take advantage of output caching. There are a myriad of output caching options, but most of them place the responsibility of setting up that caching on the person doing the presentation by using directives and flags in the .aspx page. Also, caching the entire page may not be the desired effect. Some pages are extremely dynamic. In such cases, the ideal would be to just cache the control, or some portion of the control. ASP.NET does have some support for this, but that support is reserved primarily for user controls (.ascx files), which doesn't provide the reuse we are looking for. For custom controls providing generated script, we may want to consider using an external script file. As we have already noted, most script does not change often, if at all and can readily be cached on the client. Instead of writing out the script directly from our custom control, we can instead place the script in an external script file and simply write out a <script..> tag with a src="." attribute that references our script file. This allows the control and the page to fluctuate as often as necessary without incurring the network traffic of always downloading the script to the client. The primary drawback to the approach is the deployment. There are now two files that need to be deployed to use the control in a page and the .js file must be reachable from the page that is using it. Relative paths don't always work because each page that uses the control may be at a different level. One deployment solution is to create a directory at the top level of your application (example: includes) and reference it in your control using Request.ApplicationPath + "/includes/<your script file here>". Another approach might be to provide custom properties on you control so the location of the external source file can be specified in the .aspx page. Listing 5 is an example of a calculator implemented using this approach. using System; using System.Web; using System.Web.UI; using System.Collections.Specialized; namespace Spotu { public class Calculator : Control, IPostBackDataHandler { const string", this.UniqueID, sc_strStyleClass); _strOpButton = string.Format("<button " + "onclick='javascript:g_{0}.OnOperator(this.innerText);' " + "class='{1}'>", this.UniqueID, sc_strStyleClass); if (_strScriptSrc == null) { _strScriptSrc = Context.Request.ApplicationPath + "/includes/calc.js"; } if (_strStyleHref == null) { _strStyleHref = Context.Request.ApplicationPath + "/includes/calcStyle.css"; } string</link>"; Page.RegisterClientScriptBlock("Spotu_Calculator_Style", strStyle); } // End OnInit // Load Event Handler. Retrieve the value posted in the // display field of the calculator so we can keep the // state of the display regardless of how the form is // submitted. protected override void OnLoad ( EventArgs e ) { if (Page.IsPostBack) { _intCalcValue = Int32.Parse(Context.Request.Form[UniqueID + "_display"]); } } // End OnLoad // Render out the control protected override void Render ( HtmlTextWriter writer ) { string strHtml = string.Format(@" <script> var g_{0} = new Calc('{0}_display'); </script> <table> <tr colspan='*'> <input type='text' name='{0}_display' readonly=true value={4}> </input> </tr> <tr><td>{1}7</button></td> <td>{1}8</button></td> <td>{1}9</button></td> <td>{2}/</button></td> <td> <button class='{3}' onclick='javascript:g_{0}.OnClear();'> C </button> </td> </tr> <tr><td>{1}4</button></td> <td>{1}5</button></td> <td>{1}6</button></td> <td>{2}*</button></td> </tr> <tr><td>{1}1</button></td> <td>{1}2</button></td> <td>{1}3</button></td> <td>{2}-</button></td> </tr> <tr><td>{1}0</button></td> <td></td> <td>{1}.</button></td> <td>{2}+</button></td> <td> <button class='{3}' onclick='javascript:g_{0}.OnEqual();'> = </button> </td> </tr> </table>", UniqueID, _strNumButton, _strOpButton, sc_strStyleClass, _intCalcValue); writer.Write(strHtml); writer.Write("<INPUT type='submit' name='" + this.UniqueID + "' value='Save'></INPUT>"); writer.Write("<H3 id='" + UniqueID + "_savedVal'>" + _strSavedValue + "</H3>"); } // End Render } } Listing 5: calculator.cs <%@ Page %> <%@ Register <spotu:Calculator <hr> <spotu:Calculator </form> </body> </html> Listing 6: calculator.aspx function Calc(dispId) { this.intCurrentVal = 0; this.intLastNum = 0; this._op = ""; this.bEqual = false; this.displayId = dispId; this.EnterNumber = function(num) { if (this.bEqual) this.OnClear() if (this.intLastNum != 0) this.intLastNum += num; else this.intLastNum = num; document.all(this.displayId).value = this.intLastNum; } this.ComputeValue = function() { switch (this._op) { case '+': this.intCurrentVal = Number(this.intCurrentVal) + Number(this.intLastNum); break; case '-': this.intCurrentVal -= this.intLastNum; break; case '*': this.intCurrentVal *= this.intLastNum; break; case '/': this.intCurrentVal /= this.intLastNum; break; default: this.intCurrentVal = this.intLastNum; } document.all(this.displayId).value = this.intCurrentVal; } this.OnOperator = function(op) { if (!this.bEqual) this.ComputeValue(); this.bEqual = false; this.intLastNum = 0; this._op = op; } this.OnEqual = function() { this.ComputeValue(); this.bEqual = true; } this.OnClear = function() { this._op = ""; this.intCurrentVal = 0; this.intLastNum = 0; this.bEqual = false; document.all(this.displayId).value = this.intCurrentVal; } } Listing 7: JavaScript source file for calculator .calcButton { width=25; } Figure 8: Stylesheet for calculator buttons Examining the Code One item to note is that the reference to the stylesheet that defines the style for the calculator buttons is located in the OnInit method along with the script block registration. Registering blocks of client-side code is not limited to "script" alone. The stylesheet here is external, allowing the designer the ability to modify the look and feel of the buttons by modifying the .css file. Another approach to allowing the page designer to change the look and feel of the calculator would be to implement custom properties, or better yet, custom properties with sub-properties to group them together (example: Font-Style, Font-Size, and so forth). This approach seems somewhat limiting in that the designer then can only change the properties you have exposed. With stylesheets, the designer has all the options available to him/her that would be there if a standard HTML element was being used, options that would otherwise be unavailable because he/she does not have direct access to the HTML elements your custom control produces and would not be able to apply a class or style to them. There is one block of script that is written out when the control is rendered instead of beign included in the .js file. This allows multiple instances of the calculator control to be used in the same page. The UniqueID property inherited from the Control class is used to differentiate the controls from each other. The UniqueID property is a unique identifier that identifies an instance of a control within a page. The locations of the stylesheet and the external script file default to an /includes directory located at the virtual application root. However, there are two custom properties provided that allow the designer to override where those file are located. By using the UniqueID for the control as the name for the submit button, we make sure that the LoadPostData method for our control only gets called when the 'Save' button for that control is clicked. If we had named the text box with the UniqueID for the control, we would end up saving the calculated number for all the controls on the page, regardless of how the submit to the server was done. This example is a little contrived and if you are really serious about reducing server load, you could alter the 'Save' button so that, instead of posting the form back to the server, it does a Web Services call. Conclusion Using custom controls to generate client-side script can have tremendous benefits. The custom control will look and behave similarly to any other control written with ASP.NET, making it easy to reuse and shielding the page designer from needing to know the details of how the code works. By using client-side scripting to create the dynamic behaviors, you can greatly increase the responsiveness of the individual pages and the overall performance of your web site by significantly decreasing the number of calls that are made to the server. Using external files for your script has both positives and negatives. The pros include taking advantage of browser caching and easy access for customizability. The cons include a more complex deployment both in the production environment as well as the design time environment. DownloadsDownload demo project - 6 Kb Download source - 3 Kb There are no comments yet. Be the first to comment!
https://www.codeguru.com/csharp/.net/net_asp/controls/article.php/c5343/ASPNET-Custom-Controls--Client-Script-Generation.htm
CC-MAIN-2018-43
refinedweb
2,412
55.95
On Tue, 2005-08-02 at 16:57 +0200, Sylvain Wallez wrote: > Jason Johnston wrote: > > > Sylvain Wallez wrote: > > > >> Jason Johnston wrote: > >> > >>> Unfortunately this means that it is never included in the AJAX browser- > >>> update XML since there's nothing to ensure it's wrapped in a > >>> <bu:update> > >>> element. (Hmm, would manually wrapping it in a <bu:update> in the > >>> template do the trick? I wonder. > >>> > >> Yes, wrapping it with a <bu:update> would definitely update it. But > >> that would occur at each and every form roundtrip. > > > > I see. So I guess that would make it so that you could never exit > > AJAX mode, since there would always be at least one <bu:replace> in > > the returned XML! Yikes. > Nono, this is smarter than that! An Ajax request is identified by the > special "cocoon-ajax" parameter. If this parameter is not present, the > BUTransformer simply remove the bu:replace elements. This is what allows > the same processing chain (except the final serializer) to be used for > Ajax and non-Ajax requests. Right, I meant that when the javascript makes an AJAX request (with the cocoon-ajax header set), it checks the response for the existence of any bu:replace elements, and if none are present it allows the HTML to submit the form normally so the flow can continue. But if you were to manually insert a bu:replace in the template, that would mean that the response to each AJAX request would always contain that bu:replace, so you'd never get the empty document. Anyway, getting off-topic. > > >>> I think there's a definite usefulness in having it > >>> AJAX-enabled, so perhaps it needs to be handled further upstream, e.g. > >>> in FormsTemplateTransformer. Should it become an ft-namespaced element > >>> instead like <ft:validation-errors? Thoughts? I'm > >>> willing to take a whack at putting together a patch, with guidance. > >>> > >> > >> > >> AFAIU its purpose, that would be a widget that collects validation > >> errors from a set of other widgets. Its validate() method would check > >> the if the collected validation errors have changed, and if yes > >> trigger the page refresh. > > > > > > So you're suggesting to actually make it a widget, as in > > fd:validation-errors, rather than just a template element? That's an > > interesting idea... I think I'd rather keep it limited to the > > templating layer though, since it's really a presentation concern. > > > Ok. Tell us about your progress! Will do! For my information, once I have a patch together what's the best way to get it out there for community review? Should I open a Bugzilla entry and attach it there?
http://mail-archives.apache.org/mod_mbox/cocoon-dev/200508.mbox/%3C1122995887.23069.21.camel@jjohnston%3E
CC-MAIN-2017-34
refinedweb
436
62.07
ASP.NET MVC ModelBinder: Use ModelBinders For QueryStrings ModelBinding is popular for sending form data back to the server, but did you know that you can use ModelBinders with GETS as well as POSTS? This quick tip will show you how to pass QueryString parameters to the server using a Model. ModelBinders were introduced as a way to send your data from the page over to the server. When you post your data back to the server from a form, your POST method in your controller can use either a ViewModel or a FormCollection parameter. But did you know that when you access a page using a GET instead of a POST, you can pass QueryStrings, cookies, or any other Request parameters into a Model and use them in your pages. Let's go to our old friend the FaqController from our past post. Paging Mr. FAQ Let's have our FaqController Index page accept paging parameters. We need to make our paging model so we'll create the following class: Models\PagingModel.cs namespace ModelBindingExample.Models { public class PagingModel { public int PageIndex { get; set; } public int PageSize { get; set; } } } Now we need to tell MVC that our model attaches to a ModelBinder class. Makes sense, right? :-) For each model you want to bind, you need the ModelBinderAttribute to point your model to your ModelBinder class as shown below. using System.Web.Mvc; using ModelBindingExample.ModelBinders; namespace ModelBindingExample.Models { [ModelBinder(typeof(PagingBinder))] public class PagingModel { public int PageIndex { get; set; } public int PageSize { get; set; } } } Now let's work on our PagingBinder ModelBinder class. You can either inherit from the DefaultModelBinder class or use the IModelBinder with the BindModel method. When you use the DefaultModelBinder method, you need to override the BindModel method. }; } } } See near the top of the method where we use QueryString? We can easily replace that with any type of data in the Request object. We could use Cookies, Form Data, UserAgent, IPAddresses, or even Referral Urls. Whatever we want to grab, we can store in a model. Now that we have our modelbinder, we can use the model in our FaqController Index page. Controllers\FaqController.cs // GET: FAQ public ActionResult Index(PagingModel model) { return View(_factory.GetViewModel<FaqController, FaqViewModel>(this)); } It's all set up as a parameter in our Index page/method. When we run it for the first time using the following URL: we see our model will have the default values: Page = 0 and Size = 20. But when we use the following URL we see the values passed from the QueryString. Conclusion The ModelBinders are perfect for gathering specific data from HTTP Requests and passing them into your controllers in a neat, tidy little package instead of having HttpContext.Currents all over the place. When you receive this nice model in your controllers, it's kind of like Christmas! Ok, maybe not Christmas, but it makes your code a lot cleaner and testable in the long run. I hope this tip helps you out. UPDATE: By request, I added a quick unit test for this Model Binder with a post called Unit Testing ASP.NET MVC Model Binders.
https://www.danylkoweb.com/Blog/aspnet-mvc-modelbinder-use-modelbinders-for-querystrings-QC
CC-MAIN-2017-04
refinedweb
525
64.61
Groovier Box Scores August 29, 2007 Leave a comment I made a couple more fixes to my box scores script to make it a bit groovier. First is a trivial one, but it’s much more in the Groovy idiom than in Java. I replaced def cal = Calendar.getInstance() with def cal = Calendar.instance Groovy automatically uses the getter if you access a property of a class, as long as the property itself is private. Properties in Groovy are private by default, too, which is much more intuitive than Java’s “package-private” access. Of course, methods are public by default. The other modification I made had to do with the fact that I was concerned about reading the remote XML file line by line. I thought it might be more appropriate to read the entire file into a local variable and then parse the file. To do that, I found that the URL class had a getText() method (or, more in the Groovy spirit, a text property). That meant I could read the entire page by writing def gamePage = new URL(url).text Now the matching can be done all at once via def m = gamePage =~ pattern which results in a collection of matches. The only complication is that the pattern I’m searching for ( /${day}_(\w*)mlb_(\w*)mlb_(\d) /) appears twice in each line, once as the text value of the <a> tag and once as it’s href attribute. I figured the easiest way to deal with that was to use eachWithIndex and only worry about the even-numbered matches: def m = gamePage =~ pattern if (m) { (0..<m.count).eachWithIndex { line, i -> if (i % 2) { away = m[line][1] home = m[line][2] num = m[line][3] etc. The rest is essentially the same. A good source for figuring out the Groovy way to do things is the PLEAC Groovy page. It rocks. Recent Comments
https://kousenit.org/2007/08/29/groovier-box-scores/
CC-MAIN-2017-34
refinedweb
320
79.19
In Z3Py, how can I check if equation for given constraints have only one solution? If more than one solution, how can I enumerate them? You can do that by adding a new constraint that blocks the model returned by Z3. For example, suppose that in the model returned by Z3 we have that x = 0 and y = 1. Then, we can block this model by adding the constraint Or(x != 0, y != 1). The following script does the trick. You can try it online at: Note that the following script has a couple of limitations. The input formula cannot include uninterpreted functions, arrays or uninterpreted sorts. from z3 import * # Return the first "M" models of formula list of formulas F def get_models(F, M): result = [] s = Solver() s.add(F) while len(result) < M and s.check() == sat: m = s.model() result.append(m) # Create a new constraint the blocks the current model block = [] for d in m: # d is a declaration if d.arity() > 0: raise Z3Exception("uninterpreted functions are not supported") # create a constant from declaration c = d() if is_array(c) or c.sort().kind() == Z3_UNINTERPRETED_SORT: raise Z3Exception("arrays and uninterpreted sorts are not supported") block.append(c != m[d]) s.add(Or(block)) return result # Return True if F has exactly one model. def exactly_one_model(F): return len(get_models(F, 2)) == 1 x, y = Ints('x y') s = Solver() F = [x >= 0, x <= 1, y >= 0, y <= 2, y == 2*x] print get_models(F, 10) print exactly_one_model(F) print exactly_one_model([x >= 0, x <= 1, y >= 0, y <= 2, 2*y == x]) # Demonstrate unsupported features try: a = Array('a', IntSort(), IntSort()) b = Array('b', IntSort(), IntSort()) print get_models(a==b, 10) except Z3Exception as ex: print "Error: ", ex try: f = Function('f', IntSort(), IntSort()) print get_models(f(x) == x, 10) except Z3Exception as ex: print "Error: ", ex
https://codedump.io/share/lpfwNYzIn5c4/1/z3py-checking-all-solutions-for-equation
CC-MAIN-2018-13
refinedweb
310
62.58
Is it possible it's calling my else statement that calls for recursion even when it's not supposed to? I'm having problems with another program doing a similar thing. Is it possible it's calling my else statement that calls for recursion even when it's not supposed to? I'm having problems with another program doing a similar thing. I think somehow my testNode and currentNode are getting set to the same thing and end up pointing at each other. I think it s in this part: else if (test.getData() >... So that the first two if statements in my sortRecur method will evaluate to true if the first value is lower than the second, and it will be placed back in front. My testing code is public class A3Q2 { public static void main (String [] args) { String input = ""; int data; DoublyLinkedList testList = new DoublyLinkedList(); try I'm attempting to sort a DoublyLinkedList, but my code is producing an error in the cmd box. My problem is, I don't know what's wrong because it just prints line after line of... It simply says "Insertion Sort", I got the idea that you needed two lists from my misunderstanding of the Wikipedia article on Insertion Sorts. My new Code is: public void sort () { if (size... Ok, apparently I wildly misunderstood, I thought an insertion sort meant creating a new sorted list. I'm going to try and re-write it without making a new list. I'm having some trouble on a problem. What is supposed to happen is that a list of integers is read into an unsorted Doubly Linked List, and then sorted using an insertion sort. The code I have for...
http://www.javaprogrammingforums.com/search.php?s=cbb015d83d802b0760f186afeab72180&searchid=1272655
CC-MAIN-2014-52
refinedweb
286
71.04
A Prometheus exporter for Buildbot Project description buildbot-prometheus is a Python package that provides a Prometheus metrics exporter for buildbot. This package is build for Buildbot version 0.9. Installation $ pip install buildbot_prometheus Then add the following to your buildbot master.cfg file and restart the master. from buildbot_prometheus import Prometheus c['services'].append(Prometheus(port=9101)) The buildbot master should now be exposing metrics to Prometheus. An example of the metrics provided by the Buildbot exporter is shown below by using curl to fetch the metrics: $101'] Prometheus will then automatically associate a job label of buildbot with metrics from this exporter. Prometheus will also automatically associate an instance label (e.g. ‘localhost:9101’) too. All metrics exposed by this exporter are prefixed with the buildbot_ string as a namespace strategy to isolate them from other Prometheus exporters which.
https://pypi.org/project/buildbot-prometheus/16.9.1/
CC-MAIN-2022-33
refinedweb
141
56.66
Compiling OpenCV 2.4.5 with VS 2013 RC Has anyone had any luck compiling openCV with VS 2013 RC? I have tried and get a bunch of "min doesn't belong to namespace std" "max doesn't belong to namespace std" in the IlmImf module, and opencv_features2d doesn't compile with the following error: opencv\modules\core\include\opencv2/core/core.hpp(4512): fatal error C1075: end of file found before the left brace '{' at '......\modules\features2d\src\features2d_init.cpp(187)' was matched Since the latest CMake UI doesn't yet support building with 2013 (at least from the UI and I'm a noob), my process was configuring CMake for 2012, and then opening the generated solution with 2013 and upgrading the compiler to vc12. I was able to get past the min/max errors by adding header includes for <algorithm> in the 'offending' files, but I am stumped by the full error I posted above. Thanks Did you find a solution? I have the very same error C1075 with VS 2013 RC and opencv 2.4
https://answers.opencv.org/question/15852/compiling-opencv-245-with-vs-2013-rc/
CC-MAIN-2019-43
refinedweb
179
68.5
Null Safety? Table of Contents - Null Safety - Type system nullability - Smart null checking - Safe calls - Elvis operator - No null assertion - Nullable generics - Class field initialization - Using non-Concurnas types - Nullable wrapper - Nullable method references - Where can NullPointerException's still occur Nothing's gonna harm you Not while I'm around Nothing's gonna harm you No sir, not while I'm around Concurnas, like most modern programming languages, has support within its type system for null, this is useful but comes with one specific danger... In conventional programming languages supporting null, since any object reference can be of type null, then there is the potential for error if a field access or method invocation is attempted on that null instance. In Java this manifests itself via the dreaded and ubiquitous NullPointerException. Given that any object can be null, at any point of execution, this error can occur anywhere. Thus, in order to write strictly safe code one is forced to validate one's object references as not being null on a persistent basis to be really sure that this potential for error is eradicated. This time consuming and labour intensive process is often either skipped entirely or only partially completed in most projects. Leading for the potential for error. In fact this problem is considered so severe that it's often referred to as the Billion Dollar Mistake. So why not remove null from the type system entirely? Well, it turns out that for some algorithms having null is incredibly useful for representing uninitialized state. So we need to keep null. But we can manage its negative aspects. Concurnas, like other modern programming languages such as Kotlin and Swift, makes working with null easy and safe by incorporating nullability a part of the type system, and by providing a range of null safety operators to assist in those instances where null is a desired object state. This allows us to write safe code in Concurnas which is largely free of NullPointerException exceptions. Type system nullability? All non-primitive types in Concurnas are non-nullable at the point of declaration by default. Thus, attempting to assign a null value to a variable having a non-nullable type (or anywhere else where a non-nullable type is expected, for instance in a method argument etc) will result in a compile time error: aVariable String = "a String" aVariable = null//this is a compile time error! If one wishes for a variable to be able to hold a value of null, a nullable type must be declared, this can be achieved for a non-primitive type by appending a ?to the end of the type declaration. As per our previous example: nullableVar String? = "a String"//nullableVar can hold a null value nullableVar = null//this is acceptable With nullability as part of the type system we are able to write code such as the following safe in the knowledge that there is no possibility for a NullPointerException exception to be thrown: len = aVariable.length() Attempting the same method call on nullableVar results in a compile time error, as nullableVar might be null: len = nullableVar.length()//compile time error! But of course not all instances of nullableVar are null (otherwise there is no value to the code above), so how can we call the length method? Lucky for us Concurnas has some clever logic to support working with nullable types and a a number of useful operators... Smart null checking? If a nullable variable is checked for nullability within a branching logic block, i.e. an if statement, then the fact that it has been established as being not null will be incorporated to any usage of said variable within the body of the if statement. So the following is valid code: res = if(nullableVar <> null){ nullableVar.length()//we've already established that nullableVar is not null }else{ -1 } This logic is reasonably comprehensive and can cater for complex cases such as the below, where we establish that a lambda is null in one if statement branch, and so can conclude that is must be non-null within another: alambda ((int) int)? = def (a int) => a+10 res = if(alambda == null){ 0 }else{//we've established that alambda is not null alambda(1) } This logic applies on an incorporated running basis within the if test, thus the following code is valid: res = if(nullableVar <> null and nullableVar.length() > 2){ "ok" }else{ "fail" } Furthermore, in cases where a nullable variable is assigned a non-nullable value, we know with certainty that said variable is now not nullable, Concurnas is able to make use of this information thus enabling the following code to be valid: nullable String? = "not null" //... potentially other code... ok = nullable.length() //ok as we know at this point nullable isn't nullable This logic is applied to branching control flow: a=2; b=10 nullable String? = null if(a > b){ nullable = "ok" }else{ nullable = "also ok" } ok = nullable.length() //ok as we know at this point nullable isn't nullable This inference logic extends to class fields with the caveat that calls to methods after the determination of non nullability will invalidate that inference (since it's possible such a method call may set our field in question to null). Thus the following holds: class MyClass{ aString String? def foo(){ aString = null } def inferNonNull(){ aString = "ok" len = aString.length() //ok aString is not nullable foo()//foo may set aString to null len = aString.length() //error aString might be nullable } } This logic does not apply to shared nullable variables since they can be set to null by any isolate having access to them. Safe calls? The safe call dot operator, ?.allows us to execute the method or field access on the right hand side of a dot for a nullable entity if it is not null. If it is null, then null is returned. This the type returned from any call of this nature will always be nullable. nullableVar String? = "a String" len = nullableVar?.length() //len is of type Integer? (nullable Integer) The safe call dot operator may only be applied to nullable entities, applying it to a non-nullable type results in a compilation error: normalString String = "a String" len = normalString?.length() //compilaton error Array reference safe calls ? Safe calls can be applied to array reference calls by inserting a ?between the expression and array reference brackets []as follows: maybeNull int[]? = [1 2 3 4] if condition() else null //maybe null got = maybeNull?[0] //got is of type Integer? "" + got Chained safe calls? Safe calls can be chained together, this is quite a common usage pattern: enum Color{BLUE, GREEN, RED} class Child(-favColour Color) class Parent(-children Child...) parent Parent? = Parent(Child(Color.GREEN), Child(Color.RED)) firstChildColor = parent?.children?[0]?.favColour //chained safe calls Elvis operator? The Elvis operator1, null. The difference with the Elvis operator is that when null is found, the expression on the right hand side is evaluated and returned: ?:in Concurnas serves a similar purpose to the safe dot operator above in that it allows us to react appropriately to the case where the expression on the left hand side of the operator resolves to nullableVar String? = null len int = (nullableVar?: "").length() No null assertion? The final option for working with nullable types in Concurnas is the no null assertion operator, NullPointerException if null is found on the left hand side, otherwise it will return the value (which is guaranteed to be not nullable) of the left hand side. For example: ??. This simply will throw a nullableString String? = "value" //... notNull String = nullableString?? //throws a NullPointerException if nullableString is null The operator may be used on its own in order to test for nullness without returning a value: nullableString String? = "value" //... nullableString?? //throws a NullPointerException if nullableString is null The no null assertion, like many other operators, may be used preceding a dot operator: nullableString String? = "value" //... length int = nullableString??.length() //throws a NullPointerException if nullableString is null Nullable generics? When it comes to generic types, at the point of declaration by default the are non-nullable, that is to say, the default upper bound of a generic type declaration is Object - which is not nullable. i.e. Below the X generic types of our TakesGeneric1 and TakesGeneric2 classes are the same: class TakesGeneric1<X> class TakesGeneric2<X Object> //Object is non-nullable Since we have declared X above as being non-nullable the following code is not compilable: inst = TakesGeneric1<String?>() //compile time error We could however redefine TakesGeneric1 in order to achieve this: class TakesGeneric1<X?> inst = TakesGeneric1<String?>() //this is ok Classes having non-nullable generic types may still define nullable instances of those generic types as follows: class TakesGeneric1<X>{ ~x X? } inst = TakesGeneric1<String>() inst.x = null //this is ok Class field initialization? Class fields if not initialized at point of declaration or via the constructor invocation chain will default to null. Class fields like this must be declared as being nullable otherwise they will be flagged up as an error at compilation time. For example: class UninitNonNullables<X>{ aString String //initially set to null, but type not nullable - hence error! anArray int[] //initially set to null, but type not nullable - hence error! } This can be solved by either declaring the variables as being of a nullable type or initializing them: class UninitNonNullables<X>(anArray int[]){ //initialized in default constructor aString String? //nullable } Using non-Concurnas types? Code written outside of Concurnas, for instance in Java, may not have any null safety. As such, by default Concurnas is somewhat conservative when it comes to invoking methods originating from languages other than Concurnas. Though this does not come at a sacrifice to what code can be used, it does come with some caveats. Essentially, unless otherwise annotated (see Annotating non-Concurnas code below), the methods of non-Concurnas types are assumed to consume and return values of unknown nullability. That is to say, they are assumed to be nullable but can be used as if they were both nullable and non-nullable. For example, a list: alist = new list<String>() //generic param of java.util.ArrayList declared as a non-nullable type alist.add('inst') alist.add(null) //this is ok res1 = alist.get(0) //res1 is of nullable type: String? res2 String = alist.get(0) The above would not be possible if the generic parameter of java.util.ArrayList were to be known as either nullable or non-nullable - but it's unknown in this case. Let's look at what this causes in detail: alist.add(null)- it is acceptable for null to be passed for a type of unknown nullability. res1 = alist.get(0)- res1will be inferred to be a nullable type. res2 String = alist.get(0)- The value resulting from execution of the getmethod call will be checked to ensure that it is not null before being assigned to res2which has been declared as being non-nullable. This helps avoid "null pollution" - i.e. a nullvalue being inadvertently assigned to a non-nullable variable. In the above code where Concurnas attempts to avoid "null pollution" - if an unknown nullability type resolves to a null value and is set to a non-nullable variable (or say passed as an argument to a method expecting a non-null parameter) then this will result in a NullPointerException. If the alist variable were to be created with a nullable generic type: alist = new list<String?>() then this logic would not be required, though of course we'd be unable to assign the return value of alist.get(0) to the non-nullable variable: res2 String. Throwing a NullPointerException in order to avoid "null pollution" is not desirable, but necessary - and is a beneficial approach where the alternative is permitting "null pollution" because at least the NullPointerException is thrown at the point of assignment/usage. Annotating non-Concurnas code? non-Concurnas code may be decorated with the @com.concurnas.lang.NoNull annotation in order to indicate a type is not nullable. Types may also be declared as being explicitly nullable. Here is an example of this in action for some Java code: import com.concurnas.lang.NoNull; import com.concurnas.lang.NoNull.When; import java.util.List; public static @NoNull List<@NoNull String> addToList(@NoNull List<@NoNull String> addTo, @NoNull String item ){ addTo.add(item); return addTo; } public static @NoNull(when = When.NEVER) List<@NoNull(when = When.NEVER) String> addToListNULL(@NoNull(when = When.NEVER) List<@NoNull(when = When.NEVER) String> addTo, @NoNull(when = When.NEVER) String item ){ addTo.add(item); return addTo; } Above, for the addToList method the following elements are tagged as non-null: The return type: java.util.List The generic type qualification of the return type: String The first input argument of type: java.util.List The generic type qualification of the first input argument: String The second input argument of type: java.util.List The same applies for the addToListNULL except all the elements above are tagged as being nullable. Nullable wrapper? Sometimes when working with objects having generic type parameters, it is not possible to qualify those parameters in a nullable manner, for instance with refs. This presents a problem if we wish to store a nullable type within such a container object. Concurnas provides the com.concurnas.lang.nullable.Nullable class, auto imported as Nullable to wrap around such as nullable type: nullableinst = new Nullable<String?>(): nullableinst.set("ok") maybenull String? = nullableinst.get() Nullable method references? Method reference types can be declared nullable by nesting their declaration within parenthesis and affixing a ?as per normal. For example: nullLambda ((int) int)? //nullable method reference Where can NullPointerException's still occur? There are some limited circumstances in which NullPointerException may still occur: When using non-Concurnas types or calling non-Concurnas code. Covered above. When using the no null assertion. Covered above. Values from non-Concurnas code. Concurnas attempts to avoid "null pollution" - as such it's possible for a NullPointerExceptionexception to be thrown from checking that the return value of a unknown nullability type is non-null. This "null pollution" avoidance is not applied to the individual values of arrays as it would not be efficient to check every array in this manner. As such non-primitive arrays and n+1 dimensional arrays provided by non-Concurnas code should be used with care and attention to the possibility of null values being present within them. When using non-Concurnas code. Concurnas has no control over code authored in other languages, so they may throw a NullPointerException. Footnotes 1So called as the token looks like the emoticon for Elvis Presley
https://concurnas.com/docs/nullsafe.html
CC-MAIN-2022-21
refinedweb
2,438
55.13
Hints for Creating and Installing UNIX Software Introduction Generating and installing software on the UNIX systems should be done in a similar, consistent fashion. This allows for ease of maintenance and upgrades, broader support between software staff members, and higher levels of security. This document will describe the process of introducing a new software package to the UNIX environment, starting from downloading the source code to the announcement to the mail list. Building the application Each section listed below describes the basic steps. Each step will have a full description of the process. But as each package is different, each step should be considered to be only a guideline. Adjust each step, as needed, when software packages have special needs. To show an example during each step of the process, we will use the application “pcre”. “pcre” (Perl-compatible regular expressions) is a package that is fairly simple to download, compile and install. Compiling and installing will usually produce a few platform dependent executable programs, some include files, some libraries, some manual pages and some platform independent shared files. This example will create the package for Red Hat Enterprise Linux 5. Preparing the software First we need to find where the software source code resides, and what is the current stable version. For the software application pcre, we need to find the source repository for the software. Usually a software has a web site of its own, and in this case, the web site is PCRE - Perl Compatible Regular Expressions. Also, usually, there will be previous versions of the software in the /usr/src/local directory that include a “SRC” file. Use this file to store the path to the software download so others will have a clue where it was downloaded previously. After checking the web site for pcre, the current version of the software is at version “7.8”. Creating the source directory Once a software application is identified, find a place in the source code directory to store the source code, any related support files and building scripts. Place all of the source code in the directory /usr/src/local and name the source code directory package-version. For example, setting up the product pcre version 7.8, create a directory and set the modes for general ECN staff access: iceberg$ cd /usr/src/local iceberg$ mkdir pcre-7.8 iceberg$ cd pcre-7.8 iceberg$ chmod 775 . iceberg$ chgrp ecnstaff . iceberg$ chmod g+s . iceberg$ Downloading the source code Download the source into the source code directory. If a PGP signature is available for verifying the source code against tampering, be sure to download that file too. Next, verify the source code file with the signature file. iceberg$ gpg --verify pcre-7.8.tar.gz.sig pcre-7.8.tar.gz gpg: Signature made Fri 05 Sep 2008 12:41:58 PM EDT using RSA key ID FB0F43D8 gpg: Good signature from "Philip Hazel <ph10@hermes.cam.ac.uk>" gpg: aka "Philip Hazel <ph10@cam.ac.uk>" gpg: aka "Philip Hazel <ph10@cus.cam.ac.uk>" iceberg$ Also, save the download location for the source code into a file named SRC. This will help with getting newer versions of the source code in the future. iceberg$ cat >SRC iceberg$ Finally, make sure all the source files are writable by the ecnstaff group. iceberg$ chmod g+w * iceberg$ ls -l total 1154 -rw-rw-r-- 1 cs ecnstaff 1168513 Jan 9 09:12 pcre-7.8.tar.gz -rw-rw-r-- 1 cs ecnstaff 287 Jan 9 09:12 pcre-7.8.tar.gz.sig -rw-rw-r-- 1 cs ecnstaff 55 Jan 9 09:17 SRC iceberg$ Picking the installation path When the final package is installed, it will first be installed in the /opt directory. So for this example, the /opt directory for pcre will be: /opt/pcre/7.8 Creating the installation directory During the installation process, the files will be deposited into the /opt directory. We need to create the directory structure ahead of time so the installation process will complete without getting permission errors. iceberg# cd /opt iceberg# mkdir pcre iceberg# cd pcre iceberg# mkdir 7.8 iceberg# cd 7.8 iceberg# Next, temporarily set the owner of the directory so you may write to the files as a non-privileged user. iceberg# chown cs:ecnstaff . iceberg# Creating a build script Create a script that will build the source code into the final program. It will be the build script that will hold all of the knowledge on how the executable is built and what kind of pain is needed to build new versions of the executable in the future. The build script has four sections: - Sets up the build environment: stopping on errors, setting the umask, setting the PATH variable - Removed the old version and extracts out a new version - Patches and configures the source code - Builds the source code into an executable The name of the build script will be BUILD, BUILD-platform, or BUILD-platform-bits, depending on the need. If the build script will need to build differently between Solaris and Red Hat Enterprise Linux, create two scripts, one for each platform. If the build script will need to build 32-bit and 64-bit version differently, include the bit count. Some example script names are: - BUILD - (builds anywhere) - BUILD-SOLARIS - (builds on Solaris) - BUILD-LINUX - (builds on Linux) - BUILD-LINUX-64 - (builds a 64-bit version on Linux) We will tend to build only the 32-bit version of software. Usually this works, but one example that does not work is when the application links against libraries when only the 64-bit library exists and the 32-bit version of the same library does not. In that case, build both 32-bit and 64-bit versions of the application, and install each on their corresponding host. This script will be called BUILD. Note: the script will create the programs so that the final installation will be in the /opt directory, along with the package name and version number. In this example, here is the build script. #!/bin/sh # Set the build environment set -e umask 002 PATH=/usr/local/bin:/usr/opt/bin:/usr/bin:/bin export PATH # Remove old source and extract fresh copy rm -rf pcre-7.8 tar xfz pcre-7.8.tar.gz cd pcre-7.8 # Patch and configure ./configure \ --prefix=/opt/pcre/7.8 # Build make Note: This method of extracting out a fresh copy of the source code is prone to disaster if more than once instance of the build script is running on different platforms. Good advice is to run only one build a time. Building the application Build the source code directory. Cross your fingers. iceberg$ ./BUILD ... mv -f .deps/pcre_stringpiece_unittest.Tpo .deps/pcre_stringpiece_unittest.Po /bin/sh ./libtool --tag=CXX --mode=link g++ -O2 -o pcre_stringpiece_uni ttest pcre_stringpiece_unittest.o libpcrecpp.la g++ -O2 -o .libs/pcre_stringpiece_unittest pcre_stringpiece_unittest.o ./.l ibs/libpcrecpp.so /usr/src/local/pcre-7.8/pcre-7.8/.libs/libpcre.so -Wl,--r path -Wl,/opt/pcre/7.8/lib creating pcre_stringpiece_unittest make[1]: Leaving directory `/system/src/local/pcre-7.8/pcre-7.8' iceberg$ Installing the application Once the build is complete and seems to be okay, install the application into the /opt directory. By installing the programs into the /opt directory, using your own non-privileged account, keeps the installation from scribbling all over the system disk in case of errors or bad code. Create an installation script INSTALL like the build script. If there will be special installation commands depending on the platform or number of bits, use a naming convention like the BUILD script name (see example script names above). #!/bin/sh # Set the environment set -e umask 002 PATH=/usr/local/bin:/usr/opt/bin:/usr/bin:/bin export PATH # Set the build directory cd pcre-7.8 # Install make install Install the application. Cross your fingers again. iceberg$ ./INSTALL ... /usr/bin/install -c -m 644 'libpcre.pc' '/opt/pcre/7.8/lib/pkgconfig/libpcr e.pc' /usr/bin/install -c -m 644 'libpcrecpp.pc' '/opt/pcre/7.8/lib/pkgconfig/lib pcrecpp.pc' make[1]: Leaving directory `/system/src/local/pcre-7.8/pcre-7.8' iceberg$ Setting the final modes Once the code is in the /opt directory, reset the modes of the files and directories away from your own user-identifier. This set of commands will do the job. iceberg# cd /opt/pcre/7.8 iceberg# find . -type d -exec chmod g-s '{}' ';' iceberg# find . -exec chmod go-rwx '{}' ';' iceberg# find . -type d -exec chmod 755 '{}' ';' iceberg# find . -type f -perm -400 -exec chmod go+r '{}' ';' iceberg# find . -type f -perm -100 -exec chmod go+x '{}' ';' iceberg# find . -exec chown bin:bin '{}' ';' iceberg# Build the distribution package Once the application is built into the /opt directory, the next step is to package the application for distribution to all hosts. The application will be built into a platform package, rpm packages for Linux or pkg packages for Solaris, and stored into a package repository area. Instructions for installation will be placed into an igor controlled configuration file. The configuration file will update overnight, and each host will install the package. References for executables and libraries will be placed into commonly reference directories so users can use the new software. The method to create an rpm Linux or pkg Solaris package is unified so that these installations will work for either platform. Creating a packaging directory The packaging directory is located at /usr/src/local/packages. There are (currently) two directories, one for Solaris 10 and one for Red Hat Enterprise Linux 5.2. - sparc-sunos5.10 - (Solaris 10) - x86-redhat_e5 - (Red Hat Enterprise Linux 5) Enter the directory for the platform. Next, create a package directory for the application. Use the same method as used for creating the source code directory. In this case, create a directory for pcre with version number 7.8. iceberg$ mkdir pcre-7.8 iceberg$ cd pcre-7.8 iceberg$ chmod 775 . iceberg$ chgrp ecnstaff . iceberg$ chmod g+s . iceberg$ Create the package script Create a package creation script called PKGINFO. The PKGINFO file will contain all the information necessary to create the package installation files (either type of rpm or pkg) that will install the application into /opt. Also, will create additional package files that will install all of the symbolic links pointing to the /opt directory from places like /usr/local, /usr/opt, /usr/old or /usr/new. The big feature of the PKGINFO file is to selectively create the symbolic links in the application. Not all files in the application need to be placed into the /usr area. By allowing the PKGINFO to select the files by regular expression, we can control the set of symbolic links in a smart way that can adjust as new versions of the software are developed. Other features include adding additional symbolic links to adjust the presentation to the user, and to build service scripts to support the application that will automatically install or remove as the application is updated. For this example, we will create a straightforward package info file. The package info file has a required section, plus some optional sections. In the required section is the package description: - $pkg_package - Name of the application - $pkg_version - Version of the application - $pkg_instance - Instance number - $pkg_dir - /opt directory path - $pkg_comment - Description of package Then one or more optional sections. Almost always used is: - @pkg_build_in - Where to build the symbolic links Next mostly used will be: - @pkg_skip_links - Symbolic links to skip - %pkg_add_links - Symbolic links to add The following are used to add menu entries for the package: - %menu_progs - Define menu entries and link them to program files - @menu_tags - Define which ECN submenu(s) will contain the entries Optional menu entry information: - %menu_terminal - Use when a program runs in a text based environment (e.g. pine) - %menu_icon - Define an icon to be displayed on the menu item These will be used for more complex packages: - $pkg_warning - Display a warning message - %pkg_preinstall - Script to run before installing - %pkg_postinstall - Script to run after installing - %pkg_preremove - Script to run before removing - %pkg_postremove - Script to run after removing - $prelink - Define as non-zero for packages that replace system libraries For the example package pcre, where is the completed PKGINFO file: $pkg_package = 'pcre'; $pkg_version = '7.8'; $pkg_instance = 1; $pkg_dir = '/opt/pcre'; $pkg_comment = 'pcre - Perl-compatible regular expressions'; $prelink = 1; @pkg_build_in = ( '/usr/new', '/usr/local', '/usr/old' ); The pkg_instance variable describes the instance number of a package. Should a package need to be recompiled or updated, but the version number is the same, then we use the instance number to tell the host systems to update their package. The instance number starts at 1 and is incremented each time the package is re-made. The @pkg_build_in variable describes the one or more places that the package will create symbolic links. It can have any of the four places for an application: - /usr/new - /usr/local - /usr/opt - /usr/old Note: /usr/local and /usr/opt are mutually exclusive. Both /usr/local and /usr/opt produce the same reference to the “current” version of the package. The typical life cycle of a package is: /usr/new → /usr/local → /usr/old /usr/new → /usr/opt → /usr/old Because there are multiple packages, and the packages are split between the application installing into /opt and the symbolic links, we are able to create a method of moving the packages between /usr/new, /usr/opt and /usr/old without having to add or remove the application from /opt. Since pcre replaces system libraries, $prelink is set to a non-zero value to add it to the prelink search list. In the case of pcre, we can create all four packages, (/opt package plus the three symbolic link packages), then only install the /opt and /usr/local package at this time. Create the packages Once the package info file is ready, create the package scripts. Running the package command will create all the files that will build the final rpm or pkg files used by the installer. The set of files built by the package command will be different between Solaris and Linux. Run the package command. Usually there is no output when successful. When complete, there will be a new directory. For Solaris, the new directory will be called pkg. For Linux, the new directory will either be i386 or x86_64 depending on the platform. iceberg$ ../package iceberg$ ls i386 PKGINFO iceberg$ Go into the new directory. In the directory will be a script for the binary (/opt) package and one script for each of the places for the symbolic links. In additional, there may be some other files to support the scripts. iceberg$ cd i386 iceberg$ ls local_rpmmk new_rpmmk old_rpmmk opt_rpmmk local.spec new.spec old.spec opt.spec iceberg$ Next, run each of the scripts. If successful, each script will produce an rpm or pkg file that will be used for installation. Note: Solaris builds the result into a file ending in .tgz - Linux will end in .rpm. iceberg$ ./opt_rpmmk Building target platforms: i386 Building for target i386 Processing files: ECNpcreb-7.8-1 Checking for unpackaged file(s): /usr/lib/rpm/check-files /tmp/pk18573/RPM Wrote: /tmp/pk18573/RPM/RPMS/i386/ECNpcreb-7.8-1.i386.rpm Command completed successfully iceberg$ ./local_rpmmk Building target platforms: i386 Building for target i386 Processing files: ECNpcrel-7.8-1 Checking for unpackaged file(s): /usr/lib/rpm/check-files /tmp/pk18600/RPM Wrote: /tmp/pk18600/RPM/RPMS/i386/ECNpcrel-7.8-1.i386.rpm Command completed successfully ... iceberg$ Adding the package to igor One the package files are created, the package will need adding to the installation configuration file so each host will be able to download and install the new application. In order to add the lines needed to igor configuration file, there is a utility command called make-igor. Go back one directory, to the one with the PKGINFO file, and run the command make-igor in the parent directory. iceberg$ ../make-igor @@ @@ iceberg$ Note: The name of the package is based on the pattern starting with “ECN”, followed by the name of the package, followed by a single character identifier to indicate the package type. The type identifiers are: - The letter “b” is the /opt package, - The letter “n” is the /usr/new package, - The letter “l” is the /usr/local package, - The letter “p” is the /usr/opt package, - The letter “o” is the /usr/old package. The next step is to add these lines to the package configuration file that is under igor control. Go to Harbor and edit one of the package configuration files. - For Solaris, edit /usr/share/adm/config/os/SunOS/5.10/packages - For Linux, edit /usr/share/adm/config/os/Linux/5.2/packages Take the lines produced by the make-igor command and add them to the file. The packages are sorted in alphabetical order, so find an appropriate place. Once the lines are added to the file, we need to comment out the entries we won't use now but will use in the future. Because we're installing the symbolic link package in the /usr/local directory, we need to comment out the lines for the /usr/new and /usr/old packages. Once the editing is complete, it will look like Copy packages to repository In order to install an application, the package files need to be placed into the package repository directory /package/repository. Any host installing packages will go to the repository to download the files. The repository directory is replicated across multiple package servers so that the loaded is distributed more evenly. In the package directory, go back one directory, the one with the directory pcre-7.8. In this directory, there is a command to copy the package files to the repository called make-links. Run the command. Since the files are copying to the main package server, Dock, the command may prompt for your password. iceberg$ ./make-links find: ./intel_fc-10.1.008/x86_64-wrong: Permission denied find: ./intel_cc-10.1.008/x86_64-wrong: Permission denied Password: guess building file list ... done ./ ECNpcreb-7.8-1.i386.rpm ECNpcrel-7.8-1.i386.rpm ECNpcren-7.8-1.i386.rpm ECNpcreo-7.8-1.i386.rpm sent 681369 bytes received 114 bytes 104843.54 bytes/sec total size is 877617221 speedup is 1287.81 iceberg$ Note: It's not unusual to see some permission errors. So long as the package files were updated, it is okay to ignore the errors. It is helpful to run the following command. It makes sure that if a deploy is started after you have updated the packages file in igor that it won't hang because the files aren't in a repository used by the host being deployed: /home/pier/a/cs/bin/update-pkgs Test install We need to test that the installation will go correctly. The first step is to clear away the source development directory so that the package installation has a clean start. The source code was installed into the /opt/pcre directory. Either delete the directory (the preferred method) or move it to a new name. If moving to a new name, be sure to clean up the mess after the test install is complete. iceberg# rm -rf /opt/pcre iceberg# Next, copy the new packages configuration file from Harbor. harbor# cd /usr/share/adm/config/os/Linux/5.2 harbor# rsync -av packages iceberg:`pwd` building file list ... done packages sent 25114 bytes received 42 bytes 50312.00 bytes/sec total size is 25017 speedup is 0.99 harbor# Next, run the igor command to update the packages. iceberg# igor packages INFO: Installing ECNpcreb version 7.8 revision 1 INFO: Installing ECNpcrel version 7.8 revision 1 iceberg# If nothing complains, check to see if the build seems to have set files up in the right places. Is the /opt directory there? For “bin” commands, is the /usr/local/bin symbolic links there and pointing to the right place? iceberg$ ls /opt/pcre/7.8 bin include lib share iceberg$ ls /opt/pcre/7.8/bin pcre-config pcregrep pcretest iceberg$ ls -l /usr/local/bin/pcregrep lrwxrwxrwx 1 root root 30 Jan 13 09:29 /usr/local/bin/pcregrep -> /opt/pcre /current/bin/pcregrep iceberg$ Announce Now once you've tested the application and become satisfied that the application is ready to use, make an announcement on the syslog mailing list. Be sure to list the following information in the announcement text: - When will the software be available - now or overnight? - What is the application name and version? - What platforms on which will the application install? - What is the application? - Why is the application installing - new or upgrade? - Are there any additional notes about the application? - What package files are affected by the announcement? Here's a sample announcement text: After tonight's distribution, pcre version 7.8 will install or upgrade on all Solaris 10 and Red Hat Enterprise Linux 5.2 hosts. "pcre" is the Perl Compatible Regular Expressions library and executables. This installation will make the "pcre" package available on Red Hat Enterprise Linux - it was already available on Solaris 10. The Solaris 10 version is an upgrade to match the version on Red Hat Enterprise Linux. Package additions: ECNpcre version 7.8 revision 1 (Linux) Package changes: ECNpcre version 7.8 revision 1 (Solaris) Done! You're done! Simple, wasn't it? Advanced topics The previous section was for creating and distributing a package should the package following a simple method, and that the package pretty much works the first time. Not all packages are that simple. In the following sections are advanced packaging topics that might need reference should a package need to be re made because or an error, need distributing immediately, or need special features - such as those with an initialization script. Adding menu entries. Menu entries will only be added to 'current' versions (built in /usr/opt or /usr/local), and can be added by defining the following variables in PKGINFO: %menu_progs This is a hash that contains the string to be shown on the menu and the program to be run when the menu item is chosen. The executable program can be designated as either a relative name (relative to /opt/program/version), or as an absolute path (path begins with '/'). Example: %menu_progs = ( 'Matlab' => 'ecn/matlab.wrapper', 'Matlab Ver. x.y' => '/opt/matlab/x.y/ecn/matlab.wrapper' ); @menu_tags This is an array of tags that determine which site menu(s) will contain the entries. The tags are strings designating the site(s) (i.e. 'aae', 'abe', 'ie', etc.). The menu entries will appear only in the listed site submenus. The submenus are chosen by the host's igor SITE setting. A special tag, 'all', will place the item in the 'ECN Applications' submenu on all hosts. Menu items with site specific tags will appear in the '<site_name> Site Applications' submenu (e.g. 'AAE Site Applications'). In general, you should not include a package in both an individual site and 'all'. %menu_terminal (Optional) This designates whether or not a terminal window is required by the application. Some command line style applications may be launched from the menu interface. To designate that a terminal window is to be used, this should be set to 'True'. If it is not defined, it will default to 'False' and no terminal window will be started. This is a hash so that it can be designated per program. Example: %menu_terminal = ( 'Pine' => 'True', 'Pico' => 'True' ); %menu_icon (Optional) This is used to define an icon to be displayed on the menu item. The value is the absolute path to the icon file to be displayed. It will default to NULL and no icon will be displayed if it is not defined. It is a hash so that it can be designated per program. Example: %menu_icon = ( 'Kile' => '/opt/kile/2.0.3/share/icons/hicolor/16x16/apps/kile.png' ); Removing packages by hand. During the package development, if the package was installed but had some kind of error, the package may need to be removed from the system by hand. Errors may happen even if the source code builds and the installation script installs correctly, but the package itself create a problem such as a conflicting file between this package and a previously installed package. The igor script will remove a package, but if development of the application is on-going, it is usually easier to remove the package by hand. Removing the package is done differently between Linux and Solaris, but the only difference is the command. - To remove a Linux package, use the command rpm -e followed by each package name, - To remove a Solaris package, use the command pkgrm followed by each package name. Note: It is probably best to remove all the packages at once, and to remove the /opt package last. An example package removal command is: iceberg# rpm -e ECNpcrel ECNpcreb iceberg# Re-running igor Igor caches the list of packages that wants to install on a host. If you've removed the package by hand, igor won't reinstall the package without help - it thinks the packages are up-to-date. Once way to fix this is to remove the package configuration file stored by igor. This will force igor to evaluate all the packages again to make sure they are up-to-date. iceberg# igor packages iceberg# rm /etc/packages.conf rm: remove regular file `/etc/packages.conf'? y iceberg# igor packages INFO: Installing ECNpcreb version 7.8 revision 1 INFO: Installing ECNpcrel version 7.8 revision 1 copy: WARNING: Igor controlled file disappeared since last run: /etc/packages.conf iceberg# Replicating the repository to other package servers by hand Should a newly create package need installing immediately, there will be a problem when a non-central-ECN host is requested to install the package. The package repository is distributed across package disk servers. When the package was updated in the repository, the update only occurred on the main package disk server, Dock. Before pushing out a newly package application, update all of the repository mirrors. One way to accomplish an update is to run the packages “rdist” command. Unfortunately, this command will update all of the package disk contents and will take much to long to complete. We need to update only the repository portion of the package &ldquob” disk. In order to do a hand update of the repository from the package “b” disk, you'll need to get the list of package disk mirror hosts. On the server Dock, go to the directory /var/rdist/packages. At the top of the file dock is a macro for to package &ldquob” disk called PKGB_SERVERS. Same the list of host. Next, create a distribution file. The file, call it my-pkg, should have the following commands, replacing the list of hosts with the PKGB_SERVERS macro. ( /export/package/b/Repository ) -> ( list of hosts ) install -R; except_pat(/RCS\$); Next, run the following command to distribute the files: /usr/local/etc/rdist -onumchkowner,numchkgroup -fmy-pkg Once the repository directory is up-to-date on all package servers, continue with the package update to all hosts. Deciding when to add or skip links. Sometimes it is desirable to skip certain portions of the application files when creating links in the /usr/xxx directory. Reasons to skip some of the links may be: - Reduce the number of links, - Alter link paths, - Remove unnecessary links that users won't need, - Combine whole directory trees into one link, - Remove conflicts between applications. Some applications create huge number of files. Vendor applications, for example, are stored on the package disk, and we only need to create one command to refer the user to when they want to run the application. An example, Abaqus, only needs one program installed into the bin to get things started. After that, the application refers to the package directory. If we let the package command create a link for each file, it would create over 18,000 links. For Abaqus, we only need one executable. To accomplish this, the PKGINFO file needs to skip every file, then create one link to the start-up script. Also, in reference to “altering link paths”, The Abaqus executable is in the different place than the link itself. To request that the package skip all links, we use the regular expression . (a single dot character) that matches all files. The package info file would have the following rule: @pkg_skip_links = ( '.' ); Next, we need to add back a link to the executable. The package info file add links in the form “from” → “to”. For Abaqus, we need to have a bin command available called abaqus. But the link will point to a location in the /opt directory that is under a different path, called ecn/bin/abaqus. The package info file would have the following rule: %pkg_add_links = ( 'bin/abaqus' => 'ecn/bin/abaqus' ); In the add links command, the source and destination are relative paths if the path does not begin with a / (slash character). If this application is installed into /usr/opt, then the link will be created as /usr/opt/bin/abaqus. Having a relative path will allow the packaging command to create absolute paths different between all the different version of the link packages. Some packages may create conflicts if one package creates a file that is different than another package. If there are cases where a conflict will result, careful analysis will be needed to keep two packages from interfering with each other, or causing the package to fail to install. In these cases, it's usually possible to omit the conflicting file from one or more packages - sometimes all packages. Add skip link commands to the package info file as needed. Another use of skipping and adding links is to combine whole directory trees. If an application creates a subdirectory in the directory structure that has a unique prefix, it may be possible to remove the subdirectory and make a single link. An example is the application freetype. In the directory structure for /opt/freetype/2.1.10, there is a set of include files under the directory include/freetype2. On their own, they would create 86 links into the /usr/local/include/freetype2 directory. Because of the subdirectory that we placed under the include, we can skip then relink directory as one link. The package info file would look like this: # Remove the directory from the set of links @pkg_skip_links = ( 'include/freetype2' ); # Add back a link to the directory %pkg_add_links = ( 'include/freetype2' => 'include/freetype2' ); Adding tags for special handling Occasionally, conditions exist that require special handling of an installation. Some examples are package dependencies or unwanted interaction with other packages. RPM provides a mechanism for handling many of these with tags. Tags are added to the package's .spec file by using the %pkg_tags hash. The hash keys are comprised of the tag labels, while the values associated with the keys contain the value for that label. As an example, to automatically handle a package that contains a version number in its package name, the following tag will automatically obsolete the previous package when the new package is installed. In this example, the package being built is 'Package124', and its previous version is named 'Package123'. %pkg_tags = ( 'Obsoletes' => 'Package123' ); This will result in the following tag being added to Package124's .spec file: Obsoletes: Package123 Any valid RPM tag can be specified in this manner. System services One of the most often use of advanced application packaging is the ability to create an application that has a system start/stop script. The start/stop script is placed in /etc/init.d and will be called when the system boots or shuts down. In order to use a start/stop script, several changes need to happen, such as adding the start/stop script to the package directory and installing/removing the script to the system when the package is installed/removed. A start/stop script is an shell script that is called when the system starts or stops, or if the service needs to be restarted. The shell script is called with an argument to indicate if the service is starting (by calling the script with the argument start), or if the service is stopping (by calling the script with the argument stop), or restarting (by calling the script with the argument restart). start and stop commands are required - restart is optional but usually needed. When package an application that uses a start/stop script, place the script in the package directory under the directory etc/rc. As an example, we'll use the “Condor” application. In the case of Condor, the start/stop script will be located in /opt/condor/version/etc/rc/condor. Adding the start/stop script to the package directory structure is not enough. We need to install the start/stop script when the package is added to the system, and to uninstall the start/stop script when the package is removed from the system. We do that by adding installation and removal commands to the package info file. There are two types of install and two types of remove script that can be called by the package. They can be before or after the package is installed or removed. In the case of adding a system service, we need to add the start/stop script to the system after the install (postinstall) and we need to remove the start/stop script to the system before the remove (preremove). We can accomplish these steps by creating a postinstall script and a preremove script. The script we need to install the start/stop script into the system for Condor will look like this. The name of the script will be called postinstall. Note: The postinstall and preremove scripts will be different between Linux and Solaris. This is an example script for Linux. #!/bin/sh # # Condor installation script # # Name of service service=condor # Install service chkconfig --add $service Also, the script we need to remove the start/stop script from the system for Condor will look like this. The name of the script will be called preremove. #!/bin/sh # # Condor removal script # # Name of service service=condor # Stop service service $service stop # Disable service chkconfig $service off # Remove service chkconfig --del $service # Success exit 0 It is important to make the removal script exit with a zero status. If, for example, the service is not installed (for some reason) when we remove the package. We want the script to attempt to remove the service, but continue to run successfully if it does not remove. Note: If any of the “preinstall”, “postinstall”, “preremove” or “postremove” scripts are set to be executables, then the package command package will run the script and use the output for making the package. If the scripts are not executable, then the scripts are used as-is. This allows the Solaris version of the postinstall file create a dynamic script. Next, add all of the files and scripts to the package info file. This will tell the package command to add start/stop script as a link to the file, plus add the install/remove command scripts to the package so the system is updated. Each script will correspond to the symbolic link package that is set to build. For Condor, this is the set of commands. %pkg_add_links = ( '/etc/rc.d/init.d/condor' => 'etc/rc/condor', ); %pkg_postinstall = ( '/usr/local' => './postinstall' ); %pkg_preremove = ( '/usr/local' => './preremove' ); Because the Solaris version is significantly different, here are the differences should we build Condor for Solaris. The postinstall script looks like this, and is an executable script. Note how this script executes to build another script. #!/bin/sh # Build postinstall script cat <<'XXX' #!/bin/sh # # Condor installation script # # Setup for temporary files XMLFILE=/tmp/condor-tcp.xml trap 'rm -f $XMLFILE' 0 1 2 15 # Add apache service cat >$XMLFILE <<'ZZZ' XXX # Process Internet service entry ../inet-svc # Part 2 cat <<'XXX' ZZZ /usr/sbin/svccfg import $XMLFILE XXX The preremove script looks like this. This script is not executable - it is used as-is. #!/bin/sh # # Condor removal script # # Disable service /usr/sbin/svcadm disable -s svc:/network/condor:default # Remove service /usr/sbin/svccfg delete svc:/network/condor # Success exit 0 And finally, the package info file is nearly the same as Linux. Only the location of the start/stop script is different with Solaris. %pkg_add_links = ( 'lib/svc/method/condor' => 'etc/rc/condor' ); %pkg_postinstall = ( '/usr/local' => './postinstall' ); %pkg_preremove = ( '/usr/local' => './preremove' ); 32-bit vs. 64 bit. More often on Red Hat Enterprise Linux running in 64-bit mode, applications may need to be compiled twice. Once for 32-bit, and once for 64-bit. We can get away with running only the 32-bit version on both 32-bit and 64-bit machines so long as the application references shared libraries that fully exist on the 64-bit platform. This is not always the case. When creating the 32-bit package and installing it on a 64-bit machine, check to make sure all of the application calls work. If a program references a 32-bit shared library that is not available on the 64-bit platform, it may be necessary to create two sets of packages - one set for 32-bit hosts and one set for 64-bit hosts. Usually it is possible to create the packages with the same steps as above without changes, including the PKGINFO file. When it comes time to package an application with the information in the PKGINFO using the package command, the results will be stored in a new subdirectory called x86_64. Normal 32-bit applications will create the subdirectory i386. Be sure to pick the right subdirectory to enter before issuing the package building commands. Adding the list of packages to igor will also need to have the package installation commands separated out by architecture. In the example of Condor, there are two sets of installation files, surrounded by igor @if statements. The command lines for Condor looks like this: @@ @@ condor - High-throughput network computing environment @@ @if ARCH == "x86_64" install ECNcondorb 7.0.4 2 ECNcondorb-7.0.4-2.x86_64.rpm install ECNcondorl 7.0.4 2 ECNcondorl-7.0.4-2.x86_64.rpm @endif @if ARCH == "i386" install ECNcondorb 7.0.4 2 ECNcondorb-7.0.4-2.i386.rpm install ECNcondorl 7.0.4 2 ECNcondorl-7.0.4-2.i386.rpm @endif Notice the architecture type in the RPM filename - they should match the @if/@endif command block. Moving applications from new → local → old. During semester breaks, it is customary to cycle new version of applications into the default path, and the older version into the old path. We can make this change easier if the entire lifecycle of package installation files are made ahead of time. In the case of our pcre package, we can move the current version to an old version by adjusting the igor commands in the package configuration file. If we start with a set of package installation command lines We only need to remove the /usr/local package of symbolic links and add in the /usr/old package. Change the script to this: @@ @@ pcre - Perl-compatible regular expressions @@ install ECNpcreb 7.8 1 ECNpcreb-7.8-1.i386.rpm @@install ECNpcren 7.8 1 ECNpcren-7.8-1.i386.rpm uninstall ECNpcrel 7.8 1 ECNpcrel-7.8-1.i386.rpm install ECNpcreo 7.8 1 ECNpcreo-7.8-1.i386.rpm The next time a system updates its packages, the binary package will not change, the /usr/local package will be removed , the the /usr/old package will install. We need to remove the /usr/local explicitly. Updating a package The igor script that installs and removes packages knows how to upgrade a package implicitly. That is, if a package of version x is installed, and the package configuration file says that version x+1 should be installed instead, the package x will be upgraded. This elevates the need to explicitly add uninstall commands. There is no harm in adding explicit uninstall commands if you want to make sure a package is removed. Package name conflicts Because of the way Solaris and Linux handles base package names, it is sometimes necessary to uniquely identify a package name by a version tag. Yuch! An example of this problem is when multiple versions of a package is needed. For example, if we want to run pcre for both version 7.7 and 7.8, we would have to create a separate base name. We cannot have a package named ECNpcreb that creates the directory path /opt/pcre/7.7 at the same time we have a package named ECNpcreb that creates the directory path /opt/pcre/7.8. Unfortunately we have to name the base package separately. We can adjust the package name on the new version and merge it into the package configuration file along with the older version. This example creates two different versions of pcre. The newer version 7.8 in /usr/local and the older version 7.7 in /usr/old. Since the older version is already named pcre we need to adjust the name of the newer version. @@ @@ pcre - Perl-compatible regular expressions @@ install ECNpcreb 7.7 1 ECNpcreb-7.7-1.i386.rpm install ECNpcreo 7.7 1 ECNpcreo-7.8-1.i386.rpm install ECNpcre78b 7.8 1 ECNpcreb-7.8-1.i386.rpm install ECNpcre78l 7.8 1 ECNpcrel-7.8-1.i386.rpm Last modified: 2017/12/08 14:24:13.841594 US/Eastern by james.m.moya.1 Created: 2009/01/13 14:21:47.588000 US/Eastern by curtis.f.smith.1. Categories Search Type in a few keywords describing what information you are looking for in the text box below.
https://engineering.purdue.edu/ECN/Support/KB/Docs/SoftwareHints
CC-MAIN-2020-34
refinedweb
7,024
56.25
For example, we have server which acts as a file store (jackrabbit back end). This data is pushed on start into the in memory JCS Cache. This all seems to work fine. However, our software can be multi-noded, so we need to have JCS replicate the data What i'm trying to do: Pull an image from sd-card on phone using Java Plugin. Unity passes a texture ID to plugin. Plugin uses opengl to assign the image to the texture in Unity through the ID. Will (eventually) be used to play a video clip from the I'm trying to integrate Hibernate Search into a Play Framework application that is already running. I have a Problem with building the Index, or thats what I think is the Problem. I have a User: @Indexed @Entity public class User extends Model { @Fie I made a program that prints out manipulated arrays, I would like to reprint all values in the pass[i] array that has a length equal to 7 but Java seems to only reprint the entire set. I am guessing that I am doing something very wrong with my handli A little bit of context: I am creating somewhat of a game. In that game the player can own a house. The house may contain furniture objects, and those furniture may have custom textures set. One piece of furniture may contain different amounts of tex I am new to Spring and I am using Spring MVC4. I must receive all the requests, read multiple parameters in requests and finally apply business logic based on parameters and return the data in JSON format. TestController.java: @RequestMapping(value=" How can I remove spacing caused by gridBagLayout and make them stick together? Here is my code simply adding 3 buttons. I read this question but there was no complete solution How to fix gap in GridBagLayout; I just want to put all of my buttons on t I have created two VerticalPanel(mainVP,subVP) and one TextBox(box).TextBox(box) is added to mainVP as well as subVP but i am adding mainVP only to RootPanel here If i lauch my application nothing is visible even though i have added TextBox(box) to V I am trying the following hibernate query but it always gives me a wrong result: @SuppressWarnings("unchecked") @Override public List<Jcelulasmin> getAllOthers(int id, String username) { Session session = this.sessionFactory.getCurrentSess I have a table of chars and for each char an int value is affected. (I will use this table to calculate a barcode check digit). I want to store this table as constants, what is the best way to do it in java please? (Enum, Hashmap...) Any help will be I tried as below to use the username as password for authorization, but the response is always "Unauthorized". I am not sure what i am missing here. The Response Code always comes as 401. (I have tried with the same username and password in &quo I need to show information message to the user and I use the following code for this purpose: JOptionPane.showMessageDialog(null, "message", "result", JOptionPane.INFORMATION_MESSAGE); but program loops or what I don't know on this str I have map<Integer,Object> I want to put values of the map to te List<String> The ArrayList<String>(map.values) gives me a error The constructor ArrayList<String>(Collection<Object>) is undefined EDIT: Thank you. But I did no This question already has an answer here: Why volatile is not working properly 6 answers I have read in almost all the posts that volatile (even if it's not static) variable is shared among the the threads. When one thread updates the variable then s I'm working on a project and use JavaFX 8 for the GUI. When I click the text inside a tab of a tabpane, a thin grey box appears around the text as seen in the image below. When I click somewhere else it disappears. Does anyone know how to get rid of In Tomcat 7 (JDK 1.7) I have a servlet that in load on startup returns this error: javax.naming.NoInitialContextException: Cannot instantiate class: org.apache.naming.java.javaURLContextFactory [Root exception is java.lang.ClassNotFoundException: org I have a requirement in one of my J2EE project, where I have to pre-process data based on some business logic and formulate it into data structure (may be in memory database table) so I can use result by keeping look up into that data structure for p :app:processDebugManifest :app:processDebugResources :app:generateDebugSources :app:compileDebugJava :app:preDexDebug trouble processing "javax/transaction/HeuristicCommitException.class": Ill-advised or mistaken usage of a core class (java.* or I am new in RESTful API. I am building an application which allow users to see definition from Oxford or Cambridge dictionary. I found out the Oxford RESTful API in this link: Oxford English Dictionary There is a simple example for a single word wher I have notice in my code that, whenever I enter a new input, the previous text I entered is gone and completely being replace by the new one. How do I create a new one without removing the previous text? Here's is my code: String pangalan = nameField
http://www.pcaskme.com/category/java/5/
CC-MAIN-2019-04
refinedweb
882
60.35
Hi I'll be showing you how to use a Raspbery Pi and an LED matrix to display some scrolling text. Step 1: Gather Materials - Raspberry Pi (I'll be using a 2) - RGB Matrix HAT + RTC - 32x32 LED Matrix - Jumper wires Tools - Soldering Iron + Solder Step 2: Solder HAT Together There are three small pieces that come with the Matrix HAT kit, which should be soldered to the top of the HAT itself. Step 3: Connect Everything Together This step is pretty straight forward. - You should first connect the HAT itself to the Pi, using the 20x8 header bridge. - Then connect the data cable between the HAT and the LED matrix. - After that, The matrix itself needs power, which can be supplied by plugging a power cable into the HAT or using a different connector to bypass the HAT. After this, everything should be connected, and once you supply power to both the Pi and the matrix, you should be good to go! Step 4: Setup Pi + Python Connect your PI to a monitor or a laptop and ssh in. Then you'll need to install Python with these commands: sudo apt-get update sudo apt-get install python-dev python-imaging Then download the code for driving the matrices: wget unzip master.zip Now you'll need to cd into the directory you just unzipped, and build the driver cd rpi-rgb-led-matrix-master/ make Now you can run the test demo led-matrix with this command, where D is any number from 1-9 sudo ./led-matrix -D 4 In the next step, I'll be showing you how to write your own program! Step 5: Programming the Matrix Use the following code, replacing the message with whatever you want, along with the colors for each part. import os from PIL import ImageFont from PIL import Image from PIL import ImageDraw text = (("Raspberry Pi ", (255, 0, 0)), ("and ", (0, 255, 0)), ("Adafruit", (0, 0, 255))) font = ImageFont.truetype("/usr/share/fonts/truetype/freefont/FreeSans.ttf", 16) all_text = "" for text_color_pair in text: t = text_color_pair[0] all_text = all_text + t print(all_text) width, ignore = font.getsize(all_text) print(width) im = Image.new("RGB", (width + 30, 16), "black") draw = ImageDraw.Draw(im) x = 0; for text_color_pair in text: t = text_color_pair[0] c = text_color_pair[1] print("t=" + t + " " + str(c) + " " + str(x)) draw.text((x, 0), t, c, font=font) x = x + font.getsize(t)[0] im.save("test.ppm") os.system("./led-matrix 1 test.ppm")
http://www.instructables.com/id/Raspberry-Pi-LED-Scrolling-Text-Display/
CC-MAIN-2017-17
refinedweb
416
60.45
I linked to it above, but here it is again in more or less final form (with domains changed): import localforage from 'localforage' register(process.env.SERVICE_WORKER_FILE, { ready () { console.log('App is being served from cache by a service worker.') }, registered (registration) { // registration -> a ServiceWorkerRegistration instance console.log('Service worker has been registered.') // console.log('scope: ' + registration.scope) }, cached (registration) { // registration -> a ServiceWorkerRegistration instance console.log('Content has been cached for offline use.') }, updatefound (registration) { console.log('New content is available; please refresh.') /* eslint-disable no-extra-boolean-cast */ if (!!window.chrome) { // for chromium based) }) } }, updated (registration) { // registration -> a ServiceWorkerRegistration instance console.log('New content is available; please refresh.') if (!window.chrome) { // for non chromium) }) } }, offline () { console.log('No internet connection found. App is running in offline mode.') }, error (err) { console.error('Error during service worker registration:', err) } }) It seems that Quasar now supports this out of the box: @danbars Quasar supports loading clientsClaim and skipWaiting directives into the SW file, but for a number of reasons this is not enough. Also, while on supported platforms it will update your PWA, it will do so silently. I needed a way to do all of the following: - Control or initiate the update process - Set my own versioning - Notify users about updates - Perform actions related to the update - Work around platform and browser limitations and inconsistencies so that it works the same everywhere and without failure - Marin Vartan last edited by - zeppelinexpress last edited by Hi guys, I have a doubt, how does the browser know there is a new update? is the package-lock.json? just changing this: { “name”: “app”, “version”: “0.0.1”, is enough to automatically update on android/desktop browsers/installed versions? @zeppelinexpress when you build your project (for a PWA) there will be new cache signatures, which a PWA should read and then force an update. However, as mentioned above this is inconsistent across platforms and I have found it necessary to make my app check a version string that I set on the server and call the update mechanisms at that point which works everywhere. See the code examples above for what I use to make this work. Rejoining this thread, because I’ve figured out a complete solution for a user controlled app refresh (similar to the pop-up in the Quasar documentation) that might be useful for others who have the same issue. It’s a combination of ideas taken from the Workbox Advanced Recipes () and an article by Doug Allrich. It uses the Workbox-Window plug-in from Google. <template> <q-dialog <q-banner> A new version is available. <template v-slot:action> <q-btn </template> </q-banner> <q-dialog> </template> <script> import { Wokbox } from 'workbox-window' export default { data() { return { displayUpdatePrompt: false, workbox: null, } }, methods: { refreshApp() { this.workbox.addEventListener('controlling', () => { window.location.reload() }) this.workbox.messageSkipWaiting() } }, created() { if ('service-worker' in navigator) { this.workbox = new Workbox('/service-worker.js') this.workbox.addEventListener('waiting', (event) => { this.displayUpdatePrompt = true }) this.workbox.register() } } } </script> - imaryjones09876 last edited by Troubleshooting methods to solve Pogo games not working issue Clear the cache If Pogo games are not working on your system, then the first thing that you need to do solve this problem is to clean the cache. Read out the instructions below for clearing the cache. - First, go to your browser’s settings and open your browser’s history - Now, select browser history - As you select browser’s history, a number of check boxes will open up in front of you together with the check boxes, out of those check boxes, one is cache. - Now, you need to select cache and remove the cache by clicking on the button of delete. After deleting the cache from the browser, close the browser. Now, launch the browser again and open the Pogo website on it. Now, check whether your loading problem is resolved or not. If you are still not able to load the page, then you need to clear Java cache. In case your game is backed by flash, then erase the flash cache. Restart or refresh our system If you are unable to load Pogo games webpage on your computer, then try refreshing the page by pressing F5. You can also reload the page by clicking on the reload icon placed on the top of your browser. If you do so, then your internet browser will avoid the cache and you will be able to access the Pogo.com page. Use some other browser If you are not able to fix Pogo games not working issue by any of the above-stated methods, then use another browser to play virtual games. This will definitely solve your problem. Sometimes the problem fixes by switching the browser. Generally people use web browsers like Internet Explorer, Google Chrome, and Firefox etc. But there are several other internet browsers that people use, which are not fit for online gaming. So, use compatible browsers for virtual gaming. Get More Help pogo sign in problems, pogo support number, pogo account, club pogo sign in page, pogo games sign in page, pogo stuck online, pogo customer service phone number, pogo customer support number, pogo support phone number, pogo games not loading, pogo login problems, Pogo customer Service, Pogo Billing Support, Pogo Billing Support Number, Pogo Customer Service Number, Pogo Gems Not Showing, Pogo login issues, Pogo games not working, pogo games won ‘t load, pogo troubleshooter, pogo games down
https://forum.quasar-framework.org/topic/2560/solved-pwa-force-refresh-when-new-version-released/58
CC-MAIN-2021-31
refinedweb
906
55.44
For someone new to electronics, capacitive sensing can be really confusing. Even for someone who's been exploring capacitive sensing for a week, it's STILL really confusing. Luckily, you'll have this this handy guide to help you on your road to becoming a capacitive sensei. Here you'll find a bunch of guides, tips, tutorials and general information about this unstable and strange sensor technology. Step 1: The Boring Stuff Before we move on to the fun (but mostly frustrating) projects you can embark on with capacitive sensing, let's take a quick look at how it really works. How does it work? To understand how capacative sensors work, first you have to understand how a capacitor works. A capacitor consists of 2 electrical conductive surfaces (also called electrodes), one is connected to the positive pole of the electrical circuit and the other is grounded. Between these surfaces there is a non-conductive layer wich is called a dielectric. The capacitor can be compared to a small battery. When sending a pulse to the capacitor, it quickly charges. When the signal goes to zero, the capacitor discharges. This creates a delay in the pulse due to the time it takes to charge and discharge the capacitor. A capacative sensor works in the same way as a capacitor. The sensor itself is only a conductive surface and will start working as a capacitor by the proximity of any other conductive surface, for example by skin (as long as it has a relative negative charge). When making a capacative sensor with Arduino you will have an output that transmits a pulse, and an input which receives the pulse and compares it to the transmitted pulse. When you you put your finger on or near the sensor it creates a delay in the pulse, and this delay is recalculated by the CapSense library and generates a value you can use for triggering etc. Step 2: Stuff That Uses Capacitive Sensors Step 3: Making Your First Capacitive Sensor You could go off and buy a ready-made capacitive sensor from Adafruit or Sparkfun, but where's the challenge in that? Capacitive sensors are easy to make yourself with an Arduino board and some basic electronic components. You will need: 1 x Arduino board. We used an Arduino Uno. 1 x Arduino USB cable. 1 x Breadboard. Not really necessary, but makes things a bit easier. 1 x Metal object, like a paperclip, copper plate or a piece of aluminium foil. This will be the connecter with which you interact with to send a signal to your Arduino. Electric wires A resistor. We have found that you should use at least 1 MOhm, but tried using up to 37,6 MOhm. The higher the resistance, the higher readings you will get. If you don't have big enough resistors, you can daisy-chain a bunch of them together. Step 1: Download the CapSense library from Arduino. Extract the files to Documents/Arduino/libraries. Restart Arduino. Step 2: Connect your resistor to the breadboard. Connect a wire from one side of the resistor to pin 4 on your Arduino board. Connect the other side of the resistor to pin 2. Connect that same side of the resistor (The one that goes to pin 2) to a long wire, ending in the metal object of your choice. See the images for a more visual explanation. Step 3: Open up a new Arduino sketch and paste in the following code: #include <CapacitiveSensor.h> CapacitiveSensor cs_4_2 = CapacitiveSensor(4,2); // 10 megohm resistor between pins 4 & 2, pin 2(millis() - start); // check on performance in milliseconds Serial.print("\t"); // tab character for debug window spacing Serial.println(total1); // print sensor output 1 delay(10); // arbitrary delay to limit data to serial port } Step 4: Compile and upload your sketch to the Arduino. Open up the serial monitor. The first number is the time (in milliseconds) the board uses to process the calculations. The second number is the reading you're getting from the cap sensor. And presto! It's done. Not the most exciting result, I know. But every great journey starts with a single step. Step 4: Design Tips Now that you're ready to use capacitive sensors in your own projects, there are a few things you should consider when designing your projects: 1. Do you really, REALLY need a capacitive sensor? Meaning, is there any other sensor that can also do the job? If you need to sense proximity, a light sensor might work. If you want to measure pressure, a pressure sensor could do the trick. Capacitive sensors are wildly unstable, and require constant calibration, unless they are in a perfectly controlled environment. They're great for situations where you want to avoid any mechanical stress on a switch, as the user doesn't ever need to really be touching the sensor itself. Meaning, you can go all Scandinavian on your projects and make wooden switches, for instance. Or invisible ones. Another great advantage is the the sensor will only be activated by human touch, which could go a long way in making sure that electronics don't activate on their own in your suitcase. 2. Grounding is everything. During testing (Which you can see in the video at the end of the 'ible) we found out that even taking your shoes off while activating a cap sensor will have a huge impact on the signal strength. If the Arduino is powered by a computer, plugging the computer to a wall socket might double or even triple the signal strength. Increased negative charge equals increased signal strength. 3. Cover up your sensors. Not just because it looks cool, but also because it helps to stabilise your signal. You don't need more than a piece of clear cellotape, but you could take it so far as to fully enclose the sensor in a solid material, such as ABS plastic. 4. Use smoothing in your code. If you followed the tutorial in step 3, you'll notice that the signal from a cap sensor can be highly erratic. Therefore it's a good idea to use some kind of smoothing function in your code. We used this one and it did a great job in stabilising the signal. 5. Control as much of the environment as possible. Everything from air humidity to electromagnetic noise to someone touching a cable will affect the signal strength. Eliminate as many variables as you can. Using shielded cables and making sure no other electronic equipment is operating in the immediate vicinity are two easy precautions you can take. Solid grounding will also reduce interference. 6. Bigger surfaces = bigger signals. The bigger the surface area of your sensor, the stronger your signal will be. A big surface area is also better for triggering the sensor at a distance. Step 5: Cap Sensor Diagnostics Tool Because there are so many variables that determine how strong the signal is, we decided it would be a good idea to have some sort of tool that would give us the ability to determine how suited a sensor would be at a glance. What we came up with is an Arduino device that can be hooked up to any surface with an LED bar graph that will light up according to how strong the signal received from the surface is. Since the reading from one surface might be tenfold that of another surface, we also included two sensitivity knobs. One for the minimum reading, and one for the maximum. Through testing we found that you really only need the maximum reading knob, so feel free to exclude the lower threshold knob. We did not use any resistors for our LEDs, and after using the device for a couple of days, it's still working fine, but there's no telling if and when they'll stop working. If you choose to use resistors, it's probably a good idea to hook them up to 5V instead of 3.3V. You will need: 1 x Arduino board. We used an Arduino Uno. 10 x LEDs. We used one red, seven whites and two blues, but use whatever you want/have. 2 x Potentiometers. You can exclude one if you want, as the usefulness of a knob to control the lower threshold of the device is questionable. 7 x 4,7 MOhm resistors. That's what we used, but you can use a different amount if you want. The more resistors you have, the greater the resistance range you can explore. The lower values they have, the higher the resolution of the resistance range. Electric cables Breadboards (Optional) Step 1: Wire up everything as shown in the fritzing diagram. Step 2: Open up a new Arduino sketch and paste in the code below. The code uses a smoothing function for a more stable output. We used this code to get the LED bar graph lighting up correctly, making only slight modifications. #include const int ledCount = 10; // the number of LEDs in the bar graph const long numReadings = 10; int sensorPin1 = 0; int sensorPin2 = A1; long readings[numReadings]; long index = 0; long total = 0; long average = 0; int ledPins[] = { 4, 5, 6, 7,8,9,10,11,12,13 }; // an array of pin numbers to which LEDs are attached CapacitiveSensor cs_3_2 = CapacitiveSensor(3,2); void setup() { // loop over the pin array and set them all to output: cs_3_2.set_CS_AutocaL_Millis(0xFFFFFFFF); Serial.begin(9600); for (int thisReading = 0; thisReading < numReadings; thisReading++) readings[thisReading] = 0; for (int thisLed = 0; thisLed < ledCount; thisLed++) { pinMode(ledPins[thisLed], OUTPUT); } pinMode(sensorPin1,INPUT); pinMode(sensorPin2,INPUT); } void loop() { int bottom; int top; bottom = analogRead(sensorPin1); top = analogRead(sensorPin2); int bottommap; int topmap; bottommap = map(bottom,0,1023,0,3000); topmap = map(top,0,1023,100,30000); long start = millis(); long total1 = cs_3_2.capacitiveSensor(30); total= total - readings[index]; readings[index] = total1; total= total + readings[index]; index = index + 1; if (index >= numReadings) index = 0; average = total / numReadings; Serial.print(millis() - start); Serial.print("\t"); Serial.print(bottom); Serial.print("\t"); Serial.print(top); Serial.print("\t"); Serial.println(average); delay(10); int sensorReading = average; int ledLevel = map(sensorReading, bottommap, topmap, 0, ledCount); for (int thisLed = 0; thisLed < ledCount; thisLed++) { if (thisLed < ledLevel) { digitalWrite(ledPins[thisLed], LOW); } else { digitalWrite(ledPins[thisLed], HIGH); } } } Step 3: You're done! Compile and upload the sketch to the Arduino and you should be able to get a more graphical output of the signal strength. Add or remove resistors to increase or decrease the signal strength. More resistors means more strength. We mounted a series of resistors on a separate breadboard so that we could change the resistance faster. Turn the potentiometer connected to A1 to increase or decrease sensitivity. Step 6: Experimentation Video Step 7: Resources What follows is a list of useful resources for those exploring capacitive sensing. Wikipedia Capacitive Sensing Serves as a good introduction to the technology, but also gets into the more techy side of things, if that's what floats your boat. A good place to start for those wanting to build their own cap sensors. Designer's guide to rapid prototyping of capacitive sensors on any surface A good guide focused on buttons for consumer electronics, with tons of useful charts and diagrams. How to Select the Right Touch Sensing Approach for Your Design Design tips for using cap sensors Touche for Arduino: Advanced touch sensing Tutorial for mimicking Disney's Touché with an Arduino. YouTube: Capacitive sensor, Theory, application and design Video explanation of cap sensing Sparkfun's guide for using a capacitive touch breakout board with an Arduino Arduino Air CapSense Piano Instructable tutorial for making a lo-fi piano using cap sensing 5 Discussions 2 years ago Massive shout-out for this post! Thanks a ton, man! 4 years ago on Introduction Oh sorry, it just didn't copied right. 4 years ago on Introduction Forgot Serial.begin(9600); in step 3.3 4 years ago Smart idea! Thanks for shearig :) 4 years ago on Introduction Very nice!
https://www.instructables.com/id/Capacitive-Sensing-for-Dummies/
CC-MAIN-2019-09
refinedweb
2,017
63.49
J. The following code shows one way of deploying a JSON service: @BindingType(JSONBindingID.JSON_BINDING) @WebService public class MyService { public Book get(@WebParam(name="id") int id) { Book b = new Book(); b.id = id; return b; } public static final class Book { public int id = 1; public String title = "Java"; } } The JSON extension comes with the equivalent of "wsimport" tool, but in a JavaScript style. Once the service is deployed, JavaScript client can load the proxy code like this: <script src="path/to/endpoint?js"></script> With that, it can now make service invocations as shown in the following code. The call happens asynchronously, and upon the completion the callback is invoked with the response. This is a trivial example, but since this is built on top of JAXB, it can handle any JAXB annotated beans, just like your SOAP service does. myService.get( {id:5}, function(r) { alert("ID="+r.id); alert("title="+r.title); } ); The neat thing about this extension is that the system takes advantage of the schema information inside WSDL to produce JSON that looks more natural. I believe this is an unique feature not seen elsewhere in a simliar toolkit. This information is also used to generate the documentation page, so that developers writing client code can learn what format the request and the response are, without knowing anything about XML Schema. See the screenshot below to get some idea of how it looks like: This is a part of the JAX-WS commons project, which hosts a bunch of JAX-WS related extensions, utilities, tools, etc. Anyone interested in hosting any code around the JAX-WS are welcome to join the project. We'll be showing more about this (among other things!) in our JavaOne session TS-4948 "Unleashing the Power of JAX-WS RI: Spring, Stateful Web Services, SMTP, and More", so don't forget to plan your schedule accordingly... - Login or register to post comments - Printer-friendly version - kohsuke's blog - 6808 reads how to call JSON web service from client side by talktoudaykumar - 2010-04-08 23:31hi I'm able to understand the server side JSON binding. It is more ever look like a normal jax-ws web service. Only thing i would like to know is, how to call from client side. I was bit confused regaridng 'path/to/javascript....' Can you please proivde me detail steps to call the JSON web service in detail. Thanks in advance. it's the Endpoint publish by lwpro2 - 2010-09-20 06:01it's the Endpoint publish address, appended with ?js. like
https://weblogs.java.net/blog/kohsuke/archive/2007/04/jaxws_ri_extens.html
CC-MAIN-2015-32
refinedweb
429
62.07
CodePlexProject Hosting for Open Source Software Hi everyone, I just started exploring the possibilities of the kinect. I want to do some post processing with opencv on the video streams. I was able to read the video stream by the possibilty of the pygame surface to export its content as numpy array. Then I converted this array than to an opencv matrix... Is there is easier / more straight forward way to access the video data from the kinect with opencv in python? Thank you in advance! I think you can skip the pygame surface by constructing a new array and then using the ctypes attribute so you can copy memory into it, something like: arr = numpy.empty(320*240, numpy.uint16) # 16-bit 320x240 resolution for the depth stream, change appropriately for the video stream def depth_frame_ready(frame): frame.image.copy_bits(arr.ctypes.data) # copy into the array I haven't tested it but I think something like that should work. 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://pytools.codeplex.com/discussions/317816
CC-MAIN-2017-26
refinedweb
197
73.98
Plugin Compatibility Due to a major internal refactoring, we have made a significant number of backward incompatible changes to the plugin API. Please refer to Diana Plugin Migration Guide for help in updating existing third-party plugins. Seam Support 1. Seam Facet and Seam Components Structure(Java EE) 2. Alt-F7, Shift-F6 and EL everywhere 3. Inspections 4. Conversations, Observers and many others 5. Pageflow Designer: inplace editing, DnD, Alt-F7, Shift-F6, F4 in graph 6. Pages Navigation Graph (DnD of web pages from ProjectStructure) 7. etc. FreeMarker Support Parsing of .ftl files Reference completion Rename support Implicit variables support: JavaScript Debugging Run configuration to debug local html files: Browser opens in separate frame: Breakpoints in html- and js-files: Breakpoints dialog allows to change properies of breakpoint: Debug toolwindow (frames, variables, watches): Evaluate expression dialog: Show value in tooltip on mouse over: SQL Support Per-file SQL Dialect Settings (See Per-file Encoding Support screenshot below). SQL92 DDL and query and MySQL DDL dialects support. DDL DataSource JDBC API & iBatis XML SQL language injection Reference navigation and highlighting. Flex Support 1. New module type for Flex development: 2. Flex SDK is added for Flex modules: 3. Flex run configuration 4. Flex debugging: 5. Package name and class name is checked to be the same as directory or file name respectively: Per-file Encoding Support You can configure file encoding individually for the file, all files in the directory, or all files in the project. Settings are stored in the per-project configuration file which can be shared among the team and version controlled. "Unwrap/Remove" action (delete enclosing statement) You can use the action to quickly extract or remove statements from an enclosing statement (such as if, while, for, etc.). The supported statements are: for, foreach, if..elseif...else, try...catch...finally, while...do, do...while, and lone braces. The statements to be extracted are highlighted with blue, to be removed - with grey. Unwrap Example: The code before unwrapping the first else branch: The code after unwrapping: Remove Example: The code before removing the first else branch: The code after removing: Struts 2 The Struts 2 plugin by Yann Cebron is now bundled. See here for more information on the plugin.. Highlighting of implicit parameters for anonymous classes New Show Applied Styles window Tag name completion in XML & JSP Start a new tag and press Ctrl-Alt-Space: Choose an item: Namespace auto-import in XML & JSP Type a tag with not bound namespace prefix: Press Alt-Ins and choose a namespace: Namespace declaration is inserted: 109 I would like to see expanded supported for domain specific languages. I know Jetbrains has worked on a very ambitious project to that effect, but perhaps it was before the market wanted it? Even simpler stuff like being able to provide a grammar for error and syntax highlighting would be fantastic. Dmitry Jemerov Our very ambitious project is alive and well, thanks. Most of traditional grammar files are not a good fit for error highlighting because they don't really support error recovery: after one error they get into an error state and the rest of the file cannot be highlighted correctly. Hand-coded recursive descent parsers, which we use for our own language plugins, do not suffer from this problem, and our plugin API allows you to write such parsers for your own languages since IDEA version 5. So it's not exactly clear what additional support could be provided. Anonymous Is the JSP WYSIWUG is planned in near future or distant future. At least a way to navigate between the JSP designer elements and it's JSP code counterpart like RAD is very much welcome. I have requested this for so many times. Please include this in Diana. My 2 cents: as multicore machines are getting more common, I would like some ability to run JUnit tests in multiple threads at once, to speed them up. (Such test runner threads would have to run in separate JVMs then, to avoid breaking tests that rely on static variables). (If this is something that can easily be achieved with a plug-in, I might consider writing such a plug-in myself.) Anonymous Don't make your tests rely on static variables. Michael Hüttermann You may give TestNG a try for advanced testing strategies. Anonymous Wish somebody would build a Java IDE that is optimized for pure Java source coding and that is super fast, without tons of J2EE, external framework, you name it here, features that makes it slow and hard to use. Kinda like IntelliJ 2 from 2002. Actually, can JetBrains re-release older versions? Why don't give a try?? I disabled some plugins and modify my idea.vmoptions as this -server -Xms500m -Xmx1500m -XX:MaxPermSize=400m -ea -XX:+UseConcMarkSweepGC And is pretty fast comparing with 5 or 6 versions I'm sorry about being unclear. This is really to be able to edit openlazslo files, they can look like this: They essentially are a combo of declarative XML and Javascript, I know there was talk about a plugin for OpenLaszlo, this is really based on a relax-ng schema that can expend. Unfortunately this is an either / or, and what I'm really after is IDEA's awesome xml parsing as well as the JS syntax checking. This whole thing I know is tricky as the classing in openlaszlo leads to an extensible schema, not a beautiful thing in a xsd/dtd, but the relax-ng plugin will not allow me to parse this correctly either. (Example) <view name="letterclipper" clip="true" width="330" height="100" x="93" y="336" bgcolor="white"> <method event="oninit"> this.setAttribute("relX",0); </method> <view name="lettercontainer" x="45" y="0" bgcolor="gray" width="102" height="0"> <wrappinglayout axis="x" spacing="12"/> <dataset name="lds" src="http:titles_test.xml" type="http" request="true"/> <handler reference="lds" name="ondata"> Debug.write("Current width : " + canvas.letterclipper.lettercontainer.getWidth()); <![CDATA[ Debug.write("remotedata test data loaded", this); Debug.write(this.lds); Debug.write(this); var id; var name; var iconUrl; var nodes = lds.getElementsByTagName("titles")[0].childNodes; for (n in nodes) ]]> </handler> <method event="oninit"> this.animate( "x", 0 , 1, false ); </method> <method name="scrollRight" args="pixels"> <![CDATA[ var distX = Math.round(parent.getAttribute("relX") - pixels) var actualX = Math.max( Math.min(distX,0) , -this.width/2 ); Debug.write("Current width: " + this.getWidth()); if (actualX > distX) else Debug.write("Distx: " + distX + " to: " + actualX ); ]]> </method> <method name="scrollLeft" args="pixels"> <![CDATA[ var distX = Math.round(parent.getAttribute("relX") + pixels) var actualX = Math.max( Math.min(distX,0) , -this.width/2 ); this.animate( "x", actualX, 1000, false ); parent.setAttribute("relX",actualX); Debug.write("Distx: " + distX + " to: " + actualX ); ]]> </method> </view> </view> Sascha Weinreuter Sounds like you should try the IntelliLang plugin to get support for editing JavaScript inside XML tags. BTW: Your code fragment works just fine for me when it is associated with the RELAX-NG schema for OpenLaszlo available here (well, it shows "wrappinglayout" as incorrect, but in fact this tag is not present in the schema either). You need to put your root tag into OpenLaszlo's namespace and associate this with the schema file. This will give full error checking and completion based on the schema. If there are specific problems with either the IntelliLang or the RELAX-NG plugin, don't hesitate to ask me either per mail or in the plugin forum. Please note that both plugins are not available for the Diana EAP yet.?
https://confluence.jetbrains.com/display/IDEADEV/Diana+First+EAP+Release+Notes?focusedCommentId=38729
CC-MAIN-2021-21
refinedweb
1,254
55.54
TraditionmyVariable = 50let myConstant = 42 A constant or variable must have the same type as the value you want to assign to it. However, you don’t always have to write the type explicitly. Providing a value when you create a constant or variable lets the compiler inferlet implicitDouble = 70.0let explicitDouble: Double = 70 EXPERIMENT:- Create a constant with an explicit type of Float and a value of 4 let label = "The width is "let width = 94letlet oranges = 5let appleSummary = "I have \(apples) apples."let fruitSummary = "I have \(apples + oranges) = """I said "I have \(apples) apples."And then I said = [:] Control Flow Use if and switch to make conditionals, and use for-in, while, and repeat-while to make loops. Parentheses around the condition or loop variable are optional. Braces around the body are required. let individualScores = [75, 43, 103, 87, 12]var teamScore = 0for score in individualScores {if score > 50 {teamScore += 3} else {teamScore += 1}}print(teamScore) In an if statement, the conditional must be a Boolean expression—this means that code such as if score { ... } is an error, not an implicit comparison to zero.)var optionalName: String? = "John Appleseed"var greeting = "Hello!"if let name = optionalName {greeting = "Hello, \(name)"}let fullName: String = "John Appleseed"let informalGreeting = "Hi \(nickName ?? fullName)".")} EXPERIMENT:- Try removing the default case. What error do you get? Notice how let can be used in a pattern to assign the value that matchedfor (kind, numbers) in interestingNumbers {for number in numbers {if number > largest {largest = number}}}print(largest)while n < 100 {n *= 2}print(n)var m = 2repeat {m *= 2} while m < 100print(m) You can keep an index in a loop by using ..< to make a range of indexes. var total = 0for i in 0..<4 {total += i}print(total). unc greet(person: String, day: String) -> String {return "Hello \(person), today is \(day)."}greet(person: "Bob", day: "Tuesday") EXPERIMENT:-for score in scores {if score > max {max = score} else if score < min {min = score}sum += score}return (min, max, sum)}let statistics = calculateStatistics(scores: [5, 3, 100, 3, 9])print(statistics.sum)print(statistics.2) Functions can be nested. Nested functions have access to variables that were declared in the outer function. You can use nested functions to organize the code in a function that is long or complex. func returnFifteen() -> Int {var y = 10func. unc hasAnyMatches(list: [Int], condition: (Int) -> Bool) -> Bool {for item in list {if condition(item) {return true}}return false}func lessThanTen(number: Int) -> Bool {return number < 10}var numbers = [20, 19, 7, 12]hasAnyMatches(list:let result = 3 * numberreturnvar shapeDescription = shape.simpleDescription() This version of the Shape class is missing something important: an initializer to set up the class when an instance is created. Use init to create one. class NamedShape {var numberOfSides: Int = 0var name: Stringinitinit(sideLength: Double, name: String) {self.sideLength = sideLengthsuper.init(name: name)numberOfSides = 4}func area() -> Double {return sideLength * sideLength}override func simpleDescription() -> String {return "A square with sides of length \(sideLength)."}}let test = Square(sideLength: 5.2, name: "my test square")test.area()test.simpleDescription() EXPERIMENT:-init(sideLength: Double, name: String) {self.sideLength = sideLengthsuper)triangle.perimeter = 9.9print(triangle.sideLength). et optionalSquare: Square? = Square(sideLength: 2.5, name: "optional square")let sideLength = optionalSquare?.sideLength Enumerations and Structures Use enum to create an enumeration. Like classes and all other named types, enumerations can have methods associated with them. enum Rank: Int {case ace = 1case two, three, four, five, six, seven, eight, nine, tencase jack, queen, kingfunc simpleDescription() -> String {switch self {case .ace:return "ace"case .jack:return "jack"case .queen:return "queen"case .king:return "king"default:return String(self.rawValue)}}}let ace = Rank.acelet aceRawValue = ace.rawValue EXPERIMENT:-func simpleDescription() -> String {switch self {case .spades:return "spades"case .hearts:return "hearts"case .diamonds:return "diamonds"case .clubs:return "clubs"}}}let hearts = Suit.heartsletvar suit: Suitfunc simpleDescription() -> String {return "The \(rank.simpleDescription()) of \(suit.simpleDescription())"}}let threeOfSpades = Card(rank: .three, suit: .spades)let threeOfSpadesDescription = threeOfSpades.simpleDescription() EXPERIMENT:- Add a method to Card that creates a full deck of cards, with one card of each combination of rank and suit. Protocols and Extensions Use protocol to declare a protocol. rotocol ExampleProtocol {var simpleDescription: String { get }mutating func adjust()} Classes, enumerations, and structs can all adopt protocols. class SimpleClass: ExampleProtocol {var simpleDescription: String = "A very simple class."var anotherProperty: Int = 69105func adjust() {simpleDescription += " Now 100% adjusted."}}var a = SimpleClass()a.adjust()let aDescription = a.simpleDescriptionstructprintcase noTonercase"} There are several ways to handle errors. One way is to use do-catch. Inside the do block, you mark code that can throw an error by writing try in front of it. Inside the catch block, the error is automatically given the name error unless you give it a different name. do {let printerResponse = try send(job: 1040, toPrinter: "Bi Sheng")print(printerResponse)} catch {print(error)}") Use defer to write a block of code that is executed after all other code in the function, just before the function returns. The code is executed regardless of whether the function throws an error. You can use defer to write setup and cleanup code next to each other, even though they need to be executed at different times. var fridgeIsOpen = falselet fridgeContent = ["milk", "eggs", "leftovers"]func fridgeContains(_ food: String) -> Bool {fridgeIsOpen = truedefer {fridgeIsOpen = false}let result = fridgeContent.contains(food)return result}fridgeContains("banana")print(fridgeIsOpen) Generics Write a name inside angle brackets to make a generic function or type. func makeArray<Item>(repeating item: Item, numberOfTimes: Int) -> [Item] {var result = [Item]()for _ in 0..<numberOfTimes {result.append(item)}return result}makeArray(repeating: "knock", numberOfTimes: 4) You can make generic forms of functions and methods, as well as classes, enumerations, and structures. // Reimplement the Swift standard library's optional typeenum OptionalValue<Wrapped> {case nonecase some(Wrapped)}var possibleInteger: OptionalValue<Int> = .nonepossibleInteger = .some(100) Use where right before the bodywhere T.Iterator.Element: Equatable, T.Iterator.Element == U.Iterator.Element {for lhsItem in lhs {for rhsItem in rhs {if lhsItem == rhsItem {return true}}}return false}anyCommonElements([1, 2, 3], [3]) EXPERIMENT:- Modify the anyCommonElements(_:_:) function to make a function that returns an array of the elements that any two sequences have in common. Writing <T:Equatable> is the same as writing ... where T: Equatable.
https://www.commonlounge.com/discussion/806371d115db49e9aff76173633166f4
CC-MAIN-2020-29
refinedweb
1,042
50.33
to this point we have been concerned mainly with tools to access and operate on array data with NumPy. This section covers algorithms related to sorting values in NumPy arrays. These algorithms are a favorite topic in introductory computer science courses: if you've ever taken one, you probably have had dreams (or, depending on your temperament, nightmares) about insertion sorts, selection sorts, merge sorts, quick sorts, bubble sorts, and many, many more. All are means of accomplishing a similar task: sorting the values in a list or array. For example, a simple selection sort repeatedly finds the minimum value from a list, and makes swaps until the list is sorted. We can code this in just a few lines of Python: import numpy as np def selection_sort(x): for i in range(len(x)): swap = i + np.argmin(x[i:]) (x[i], x[swap]) = (x[swap], x[i]) return x x = np.array([2, 1, 4, 3, 5]) selection_sort(x) array([1, 2, 3, 4, 5]) As any first-year computer science major will tell you, the selection sort is useful for its simplicity, but is much too slow to be useful for larger arrays. For a list of $N$ values, it requires $N$ loops, each of which does on order $\sim N$ comparisons to find the swap value. In terms of the "big-O" notation often used to characterize these algorithms (see Big-O Notation), selection sort averages $\mathcal{O}[N^2]$: if you double the number of items in the list, the execution time will go up by about a factor of four. Even selection sort, though, is much better than my all-time favorite sorting algorithms, the bogosort: def bogosort(x): while np.any(x[:-1] > x[1:]): np.random.shuffle(x) return x x = np.array([2, 1, 4, 3, 5]) bogosort(x) array([1, 2, 3, 4, 5]) This silly sorting method relies on pure chance: it repeatedly applies a random shuffling of the array until the result happens to be sorted. With an average scaling of $\mathcal{O}[N \times N!]$, (that's N times N factorial) this should–quite obviously–never be used for any real computation. Fortunately, Python contains built-in sorting algorithms that are much more efficient than either of the simplistic algorithms just shown. We'll start by looking at the Python built-ins, and then take a look at the routines included in NumPy and optimized for NumPy arrays. np.sortand np.argsort¶ Although Python has built-in sort and sorted functions to work with lists, we won't discuss them here because NumPy's np.sort function turns out to be much more efficient and useful for our purposes. By default np.sort uses an $\mathcal{O}[N\log N]$, quicksort algorithm, though mergesort and heapsort are also available. For most applications, the default quicksort is more than sufficient. To return a sorted version of the array without modifying the input, you can use np.sort: x = np.array([2, 1, 4, 3, 5]) np.sort(x) array([1, 2, 3, 4, 5]) If you prefer to sort the array in-place, you can instead use the sort method of arrays: x.sort() print(x) [1 2 3 4 5] A related function is argsort, which instead returns the indices of the sorted elements: x = np.array([2, 1, 4, 3, 5]) i = np.argsort(x) print(i) [1 0 3 2 4] The first element of this result gives the index of the smallest element, the second value gives the index of the second smallest, and so on. These indices can then be used (via fancy indexing) to construct the sorted array if desired: x[i] array([1, 2, 3, 4, 5]) A useful feature of NumPy's sorting algorithms is the ability to sort along specific rows or columns of a multidimensional array using the axis argument. For example: rand = np.random.RandomState(42) X = rand.randint(0, 10, (4, 6)) print(X) [[6 3 7 4 6 9] [2 6 7 4 3 7] [7 2 5 4 1 7] [5 1 4 0 9 5]] # sort each column of X np.sort(X, axis=0) array([[2, 1, 4, 0, 1, 5], [5, 2, 5, 4, 3, 7], [6, 3, 7, 4, 6, 7], [7, 6, 7, 4, 9, 9]]) # sort each row of X np.sort(X, axis=1) array([[3, 4, 6, 6, 7, 9], [2, 3, 4, 6, 7, 7], [1, 2, 4, 5, 7, 7], [0, 1, 4, 5, 5, 9]]) Keep in mind that this treats each row or column as an independent array, and any relationships between the row or column values will be lost! Sometimes we're not interested in sorting the entire array, but simply want to find the k smallest values in the array. NumPy provides this in the np.partition function. np.partition takes an array and a number K; the result is a new array with the smallest K values to the left of the partition, and the remaining values to the right, in arbitrary order: x = np.array([7, 2, 3, 1, 6, 5, 4]) np.partition(x, 3) array([2, 1, 3, 4, 6, 5, 7]) Note that the first three values in the resulting array are the three smallest in the array, and the remaining array positions contain the remaining values. Within the two partitions, the elements have arbitrary order. Similarly to sorting, we can partition along an arbitrary axis of a multidimensional array: np.partition(X, 2, axis=1) array([[3, 4, 6, 7, 6, 9], [2, 3, 4, 7, 6, 7], [1, 2, 4, 5, 7, 7], [0, 1, 4, 5, 9, 5]]) The result is an array where the first two slots in each row contain the smallest values from that row, with the remaining values filling the remaining slots. Finally, just as there is a np.argsort that computes indices of the sort, there is a np.argpartition that computes indices of the partition. We'll see this in action in the following section. Let's quickly see how we might use this argsort function along multiple axes to find the nearest neighbors of each point in a set. We'll start by creating a random set of 10 points on a two-dimensional plane. Using the standard convention, we'll arrange these in a $10\times 2$ array: X = rand.rand(10, 2) To get an idea of how these points look, let's quickly scatter plot them: %matplotlib inline import matplotlib.pyplot as plt import seaborn; seaborn.set() # Plot styling plt.scatter(X[:, 0], X[:, 1], s=100); Now we'll compute the distance between each pair of points. Recall that the squared-distance between two points is the sum of the squared differences in each dimension; using the efficient broadcasting (Computation on Arrays: Broadcasting) and aggregation (Aggregations: Min, Max, and Everything In Between) routines provided by NumPy we can compute the matrix of square distances in a single line of code: dist_sq = np.sum((X[:, np.newaxis, :] - X[np.newaxis, :, :]) ** 2, axis=-1) This operation has a lot packed into it, and it might be a bit confusing if you're unfamiliar with NumPy's broadcasting rules. When you come across code like this, it can be useful to break it down into its component steps: # for each pair of points, compute differences in their coordinates differences = X[:, np.newaxis, :] - X[np.newaxis, :, :] differences.shape (10, 10, 2) # square the coordinate differences sq_differences = differences ** 2 sq_differences.shape (10, 10, 2) # sum the coordinate differences to get the squared distance dist_sq = sq_differences.sum(-1) dist_sq.shape (10, 10) Just to double-check what we are doing, we should see that the diagonal of this matrix (i.e., the set of distances between each point and itself) is all zero: dist_sq.diagonal() array([ 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]) It checks out! With the pairwise square-distances converted, we can now use np.argsort to sort along each row. The leftmost columns will then give the indices of the nearest neighbors: nearest = np.argsort(dist_sq, axis=1) print(nearest) [[0 3 9 7 1 4 2 5 6 8] [1 4 7 9 3 6 8 5 0 2] [2 1 4 6 3 0 8 9 7 5] [3 9 7 0 1 4 5 8 6 2] [4 1 8 5 6 7 9 3 0 2] [5 8 6 4 1 7 9 3 2 0] [6 8 5 4 1 7 9 3 2 0] [7 9 3 1 4 0 5 8 6 2] [8 5 6 4 1 7 9 3 2 0] [9 7 3 0 1 4 5 8 6 2]] Notice that the first column gives the numbers 0 through 9 in order: this is due to the fact that each point's closest neighbor is itself, as we would expect. By using a full sort here, we've actually done more work than we need to in this case. If we're simply interested in the nearest $k$ neighbors, all we need is to partition each row so that the smallest $k + 1$ squared distances come first, with larger distances filling the remaining positions of the array. We can do this with the np.argpartition function: K = 2 nearest_partition = np.argpartition(dist_sq, K + 1, axis=1) In order to visualize this network of neighbors, let's quickly plot the points along with lines representing the connections from each point to its two nearest neighbors: plt.scatter(X[:, 0], X[:, 1], s=100) # draw lines from each point to its two nearest neighbors K = 2 for i in range(X.shape[0]): for j in nearest_partition[i, :K+1]: # plot a line from X[i] to X[j] # use some zip magic to make it happen: plt.plot(*zip(X[j], X[i]), color='black') Each point in the plot has lines drawn to its two nearest neighbors. At first glance, it might seem strange that some of the points have more than two lines coming out of them: this is due to the fact that if point A is one of the two nearest neighbors of point B, this does not necessarily imply that point B is one of the two nearest neighbors of point A. Although the broadcasting and row-wise sorting of this approach might seem less straightforward than writing a loop, it turns out to be a very efficient way of operating on this data in Python. You might be tempted to do the same type of operation by manually looping through the data and sorting each set of neighbors individually, but this would almost certainly lead to a slower algorithm than the vectorized version we used. The beauty of this approach is that it's written in a way that's agnostic to the size of the input data: we could just as easily compute the neighbors among 100 or 1,000,000 points in any number of dimensions, and the code would look the same. Finally, I'll note that when doing very large nearest neighbor searches, there are tree-based and/or approximate algorithms that can scale as $\mathcal{O}[N\log N]$ or better rather than the $\mathcal{O}[N^2]$ of the brute-force algorithm. One example of this is the KD-Tree, implemented in Scikit-learn. Big-O notation is a means of describing how the number of operations required for an algorithm scales as the input grows in size. To use it correctly is to dive deeply into the realm of computer science theory, and to carefully distinguish it from the related small-o notation, big-$\theta$ notation, big-$\Omega$ notation, and probably many mutant hybrids thereof. While these distinctions add precision to statements about algorithmic scaling, outside computer science theory exams and the remarks of pedantic blog commenters, you'll rarely see such distinctions made in practice. Far more common in the data science world is a less rigid use of big-O notation: as a general (if imprecise) description of the scaling of an algorithm. With apologies to theorists and pedants, this is the interpretation we'll use throughout this book. Big-O notation, in this loose sense, tells you how much time your algorithm will take as you increase the amount of data. If you have an $\mathcal{O}[N]$ (read "order $N$") algorithm that takes 1 second to operate on a list of length N=1,000, then you should expect it to take roughly 5 seconds for a list of length N=5,000. If you have an $\mathcal{O}[N^2]$ (read "order N squared") algorithm that takes 1 second for N=1000, then you should expect it to take about 25 seconds for N=5000. For our purposes, the N will usually indicate some aspect of the size of the dataset (the number of points, the number of dimensions, etc.). When trying to analyze billions or trillions of samples, the difference between $\mathcal{O}[N]$ and $\mathcal{O}[N^2]$ can be far from trivial! Notice that the big-O notation by itself tells you nothing about the actual wall-clock time of a computation, but only about its scaling as you change N. Generally, for example, an $\mathcal{O}[N]$ algorithm is considered to have better scaling than an $\mathcal{O}[N^2]$ algorithm, and for good reason. But for small datasets in particular, the algorithm with better scaling might not be faster. For example, in a given problem an $\mathcal{O}[N^2]$ algorithm might take 0.01 seconds, while a "better" $\mathcal{O}[N]$ algorithm might take 1 second. Scale up N by a factor of 1,000, though, and the $\mathcal{O}[N]$ algorithm will win out. Even this loose version of Big-O notation can be very useful when comparing the performance of algorithms, and we'll use this notation throughout the book when talking about how algorithms scale.
https://nbviewer.org/github/jakevdp/PythonDataScienceHandbook/blob/master/notebooks/02.08-Sorting.ipynb
CC-MAIN-2022-40
refinedweb
2,351
66.57
On Sat, Feb 17, 2007 at 05:24:21AM -0500, Sadrul H Chowdhury wrote: > Hi. I came across this bug when using gaim-text. It's kind of difficult to > explain. So I have included a sample test-program: good... > I tried to come up with a patch, and I got: > --- ncurses/base/lib_refresh.c > +++ ncurses/base/lib_refresh.c > @@ -150,7 +150,19 @@ > if (last > limit_x) > last = limit_x; > > - for (j = oline->firstchar, n = j + begx; j <= last; j++, n++) { > + j = oline->firstchar; > + n = j + begx; > + if (j <= last && n && isWidecExt(nline->text[n-1])) { > + /* It's a multicolumn character. Replace with a space. */ > +#if 0 > + NCURSES_CH_T blank = NewChar(BLANK_TEXT); > + nline->text[n-1] = blank; > +#else > + nline->text[n-1].chars[0] = ' '; > +#endif > + CHANGED_CELL(nline, n-1); > + } > + for (; j <= last; j++, n++) { > if (!CharEq(oline->text[j], nline->text[n])) { > nline->text[n] = oline->text[j]; > CHANGED_CELL(nline, n); > > It did seem to work (by replacing the wide-character by a space to make sure > it doesn't get displayed at all). However, if I bring up pone again (using > top_panel), the wide-character remains invisible. So I think this probably > is not the best fix. Is there any other fix I should try? I'm not sure (will try to see). thanks -- Thomas E. Dickey <address@hidden> signature.asc Description: Digital signature
https://lists.gnu.org/archive/html/bug-ncurses/2007-02/msg00044.html
CC-MAIN-2017-17
refinedweb
222
77.94
Opened 4 years ago Closed 3 years ago Last modified 3 years ago #12388 closed bug (fixed) Missing support for TLS SNI (easy) Description SNI support can be tested here:? This results in some https websites triggering self signed certificate errors, although in any browser supporting SNI (such as QupZilla), the certificate will be considered valid. Haiku version: x86_gcc2 hrev49658 Attachments (1) Change History (21) comment:1 Changed 4 years ago by comment:2 Changed 3 years ago by I had a look at this and I came up with two ways to fix it. - Allow passing the hostname to the socket, either in the constructor or in the Connect call. - Store the hostname in BNetworkAddress I gave the first option a try and it was more work than I expected and it crashes in the Connect call of BSecureSocket now. I added the SSL_set_tlsext_host_name call there and perhaps I am doing something wrong here. What is the best way to figure out what is going wrong? Attach a patch with my changes? Implementing the first option gave me the idea that the second option would be better, but I don't know the network code good enough to say for certain that it is better. As both of the proposed changes are on the Haiku side, we perhaps also need to take into account backwards compatibility. comment:3 Changed 3 years ago by The second solution would be preferred. As you said, the changes are on Haiku side which means this can be tested more easily with a small test application just doing one HTTPS request. Said app can then be put into Debugger for a closer analysis. Note: this is the same problem that currently prevents accessing freelists.org from Web+. As for backward compatibility, the BUrlRequest family of classes isn't considered stable yet. I don't think BNetworkAddress is, either (BeOS compatibility is ensured with the BNetAddress class). The changes do require some coordination still, probably they will need a rebuild of WebKit as they are delivered to the repo. comment:4 Changed 3 years ago by comment:5 Changed 3 years ago by I finally had time to try the second solution and got something working. It even works without needing a new version of Web+ to be built. I added a private variable fHostName to BNetworkAddress and filled it in when the SetTo call contained a host. This does mean that if you make a call to a SetTo function without a host, it will not enable the SNI support. Not sure what to do about that. Thought about adding a host parameter to those SetTo functions, but decided against it for now. I used the existing HostName function to return fHostName, but left the TODO in place. Not sure if we want to do something extra in case fHostName is empty. Made some changes in SecureSocket to get the host name from the BNetworkAddress and use it to make the SSL_set_tlsext_host_name call. Only did it for Connect, but perhaps Accept needs to be changed as well. Tested some sites (freelists, slashdot) that didn't work without it and confirmed that with my changes they work fine. Also tested some other sites that were already working to make sure I didn't break anything and it seems fine. comment:6 Changed 3 years ago by Looks good in general, I see some possible changes/improvements (this is open to discussion): - In SecureSocket, _SetupConnect is checking for NULL, I think it should also check for an empty string as that's what String() will return (as used in Connect). - When there is no hostname, the given IP address could be converted to a string and used ("127.0.0.1" or whatever). I'm not sure if this is of any use. - This should also be tested outside Web+, in particular when 302 redirects are involved, because Web+ handles those on its own and does not use the HttpRequest code for that. We should make sure that the behavior is still correct in that case (the redirected host should be used for the second connection). comment:7 Changed 3 years ago by - Good point regarding the NULL check, I will add it - Won't the IP address be used automatically as that is what will be passed in as host to the SetTo functions? I don't think it will be of any use as that is not the intent of the SNI support. - Is there some documentation on the BHTTPRequest class? I have never done any coding with it and it I can't seem to reach to check for documentation. comment:8 Changed 3 years ago by It seems the website is currently offline. For examples of use of BHttpRequest you can have a look in src/tests/kits/network (and if possible, adding more tests there for the new features would be nice). Yes, giving the IP address to SNI may not be a very good idea. I'm not sure any certificate provider would deliver a cert for an IP without domain, anyway. comment:9 Changed 3 years ago by How do I compile and run those tests? Regarding the 302 redirect, I see that the test website used in those unit tests can do a redirect, but to which url would we try the redirect? If it is a unit test, it would be convenient if it always kept working, so I'm not sure redirecting to freelists is a good idea. comment:10 Changed 3 years ago by jam -q UnitTests will build the tests, then you get an UnitTester command which is the test harness for running them (IIRC in generated/tests/bin or somewhere around there, have a look at the articles on about "unit tests"). The tests with online services are not the best solution, as a first step we could redirect to freelists, but ideally we should run these with a local HTTP server. I don't know if PoorMan is up to the task or if we should use lighttpd or some other available server. This will require a lot more work than just fixing this particular bug, so maybe we can keep that for a later stage. comment:11 Changed 3 years ago by Thanks, I will give that a try. I will fix the NULL check and update the current patch and I will have a look at the tests. I noticed that th test website has a https version that fails to load with the current version of Web+, while it works if I apply my patch, so at least that should be a good test. comment:12 Changed 3 years ago by Updated the patch with a fix for the NULL check. Will look at the unit tests next. I'm thinking of making a separate patch for that. comment:13 Changed 3 years ago by Ping. Can this just be merged, or are we waiting for the unit tests? comment:14 Changed 3 years ago by I think I see a bug in the patch. Sorry for not reviewing earlier. In BNetworkAddress::SetTo(const char* host, const char* service, uint32 flags) , you changed the error handling. I think you forgot to change == B_OK to != B_OK as in the other variant. This is something that unit tests would probably catch. With this issue fixed the patch is ok to merge as is. I don't want to put unit test burden on people trying to contribute to Haiku, we should fix our own mess there... Changed 3 years ago by comment:15 Changed 3 years ago by comment:16 Changed 3 years ago by Regarding the style in the SetTo() functions; the previous style is preferable. Errors with early return, etc., make the code easier to follow and also reduces indentation. comment:17 Changed 3 years ago by comment:18 Changed 3 years ago by That's not what the code was doing. It was returning early on success, which meant that any value that needed to be done on success needed to be done in multiple places. This was already happening with fStatus and adding fHostName multiple times seemed to me to make it worse. Also, in general I dislike multiple exit points in a function, but if the coding style is to prefer this then I will keep it in mind for other patches. comment:19 Changed 3 years ago by There is some disagreement on the way this was done on the mailing list after the change was pushed (I don't know why people waited for this to happen before reviewing...). Adding the link here in case you don't read haiku-commits daily: It seems this is a one line change on OpenSSL level: However, BSecureSocket does not know the hostname (it gets the already resolved BNetworkAddress). I'm in vacation starting today and until next week, so if someone wants to have a look, feel free to.
https://dev.haiku-os.org/ticket/12388
CC-MAIN-2019-18
refinedweb
1,503
69.21
On Monday May 14, torvalds@transmeta.com wrote:> > On Tue, 15 May 2001, Neil Brown wrote:> > > > I want to create a new block device - it is a different interface to> > the software-raid code that allows the arrays to be partitioned using> > normal partition tables.> > See the other posts about creating a "disk" layer. Think of it as just a> simple "lvm" thing, except on a higher level (ie not on the request level,> but on the level _before_ we get to queuing the thing at all).> > Plug the thing in at "__blk_get_queue()", and you're done.> Ok, I'm begining to get the idea.Ofcourse setting the "queue" function that __blk_get_queue call to doa lookup of the minor and choose an appropriate queue for the "real"device wont work as you need to munge bh->b_rdev too.But you could define a make_request_fn instead which simplychanges b_rdev from the major/minor of the virtual disk device to the(dynamically allocated) major/minor of the real device.You would still nee to make sure the blk_size[], blksize_size[],hardsect_size[], max_readahead[], max_sectors[] all got handledproperly. Thats probably not too hard.So this would mean that my new driver (mdp) gets a dynamicallyallocated major number which is probably never seen from user-space(though I could look in /proc/devices if I wanted to), and it isaccessed through /dev/diskAN for some value of A and differentpartitions N.So far I'm with you (I think).Does the minor number for this "disk" layer have N bits for partitionnumber and 8-N bits (later to be 20-N bits or similar) for devicenumber? If so we are limited to a smallish number of discs for now.If not (and partitions are packed densely) then changing thepartitioning of a drive could be awkward.Finally, how do I say that I want the root filesystem to be on aparticular "mdp" device+partition. I cannot assume that my devicewill be the first to register with the "disk" layer, so I cannot besure that "root=/dev/diska1" will work.Maybe a boot line option like: diska=mdp,0could be used. Each device that registers with "disk" defines a__setup handler for "disk" which checks if it should register as aparticular "disk".So if "mdp" finds that there is an mdp device 0, and wants to registerit with "disk" then: if "diskX=mdp,0" is a boot option for some X, register it with "disk" as device "X-'a'" else register it with "disk" as "largest-available-device".Does that make sense? It feels a bit ugly thoughThe brick wall the I feel that I am hitting is that there needs tobe a name space to communicate device identities between kernelspaceand userspace. You are saying that major numbers are no longer to bethat namespace (at least, not for new drivers) so we have to come upwith a new namespace, which will obviously involve textual names.There seem to be three options: 1/ devfs - but not everybody likes that (and there are certainly aspects that I am uncomfortable with) 2/ ugly hacks like the above and like name_to_kdev_t 3/ "something else" which either hasn't been proposed or hasn't been agreed on. (I have my own ideasbut insufficient time).I guess your goal in establishing the moratorium on new majors is toforce people to break down this brick wall, either by accepting devfs,pushing through ugly hacks, or finding that "something else".I'll keep looking for a sledgehammer:-)NeilBrown-To unsubscribe from this list: send the line "unsubscribe linux-kernel" inthe body of a message to majordomo@vger.kernel.orgMore majordomo info at read the FAQ at
http://lkml.org/lkml/2001/5/15/89
CC-MAIN-2016-50
refinedweb
609
59.74
Bummer! This is just a preview. You need to be signed in with a Pro account to view the entire video. Handling No Email Found When Resetting Passwords4:39 with Jason Seifer So far we've written and tested the successful case of having an email found for a user requesting a password reset. Now it's time to test the failure scenarios where someone is requesting a password reset for an email that doesn't exist in our application. Code Snippets def create if user user = User.find_by(email: params[:email]) user.generate_password_reset_token! Notifier.password_reset(user).deliver redirect_to login_path else flash.now[:error] = "Email not found" render action: 'new' end end - 0:00 Okay, when we last left off, we tried our code in person and we saw an error, so - 0:05 now let's go ahead and write our tests to cover this particular error. - 0:11 We had in our tests already what would happen only if the user is - 0:14 successfully found. - 0:15 What we need to do is check to see if the user is not found, and - 0:18 then handle those cases as well. - 0:23 So we have this context with a valid user in email. - 0:29 So let's go ahead and create one for a context with no user. - 0:41 And we'll just say it renders the new page. - 0:59 And what'll happen is if the user isn't found, - 1:02 it'll just bring them right back to that password reset form. - 1:05 I'm gonna stop my server here. - 1:12 Okay, undefined method password reset token for nil:NilClass, - 1:17 that was the same error that we just got in the browser and that is online 31. - 1:22 So this is actually a pretty easy fix. - 1:24 What we'll do is we'll say, if the user is found then we do these things. - 1:36 And if not, we render the new action. - 1:40 Clear my screen and run that again. - 1:44 Okay. - 1:45 And let's also set the flash message here. - 2:12 So we'll just give them a little message saying that the email wasn't found. - 2:17 And we can do that in the same action that we render by saying flash.now. - 2:25 By saying Email not found. - 2:29 Now let's run that and see what happens. - 2:33 Okay, that looks good. - 2:36 Although that makes me think that we should also set the flash message up here. - 2:54 We're gonna expect the flash success message to be set. - 3:05 We'll say check your email for the new password. - 3:22 Here we go. - 3:23 Let's go ahead and run that. - 3:27 Okay, that passes, great. - 3:31 Turn our server again, and see how that looks. - 3:36 Actually if I run this, there we go, email not found. - 3:43 All right, let me sign up. - 3:54 Okay great, got some todo lists in here whatever I'm just gonna log out right now. - 4:00 Forgot my password. - 4:07 Okay password reset instructions sent, please check your email. - 4:10 Now, we're not actually gonna be able to send emails in development mode but, - 4:15 if I look at the server log, it says I can reset my password here. - 4:24 So, let's go ahead and see what that looks like. - 4:26 I copy it and I paste it. - 4:30 Haven't done anything yet. - 4:32 That means that we need to actually implement resetting the password. - 4:37 So we're gonna go ahead and start on that in our next video.
https://teamtreehouse.com/library/user-authentication-with-rails/password-resets-and-testing/handling-no-email-found-when-resetting-passwords
CC-MAIN-2016-44
refinedweb
645
83.86
AccelStepper stepper(5, pin1, pin2, pin3, pin4); #include <AccelStepper.h>// Define some steppers and the pins the will useAccelStepper stepper1(5, 2, 3, 4, 5);// The first argument '5' indicates that we're using a 28byj-48 geared motor. The rest is just pin numbers. //You can still use all the other types of motors supported by accelstepper library (e.g. 4 for a normal 4 wire step motor, 8 for a halfstepped normal 4 wire motor etc.) AccelStepper stepper2(5, 6, 7, 8, 9);void setup(){ stepper1.setMaxSpeed(900.0); //max speed of the first motor - modify if you want to stepper1.setAcceleration(700.0); // rate at which the first motor accelerate - stepper2.setMaxSpeed(700.0); stepper2.setAcceleration(400.0);}void loop(){ if (stepper1.distanceToGo() == 0){ stepper1.moveTo(random(1500,7000));//just an easy way to get the motors to move to random positions } if (stepper2.distanceToGo() == 0){ stepper2.moveTo(random(1500,7000)); } stepper1.run(); stepper2.run();} To install just copy and paste the two files into AccelStepper library folder and they will replace the original files ( you need both AccelStepper.cpp and AccelStepper.h ). Please enter a valid email to subscribe We need to confirm your email address. To complete the subscription, please click the link in the Thank you for subscribing! Arduino via Egeo 16 Torino, 10131 Italy
http://forum.arduino.cc/index.php?topic=194671.msg1572050
CC-MAIN-2015-06
refinedweb
221
60.41
This command is used for inserting and removing tracks related to the shots displayed in the Sequencer. It can also be used to modify the track state, for example, to lock or mute a track. In query mode, return type is based on queried flag. Derived from mel command maya.cmds.shotTrack Example: import pymel.core as pm # Move the shot named "shot2" to track 3 # pm.shotTrack( 'shot2', track=3 ) # Lock the track containing the shot named "shot1" # pm.shotTrack( 'shot1', lock=True ) # Remove any empty tracks # pm.shotTrack(removeEmptyTracks=True) # shotTrack -q -track shot1; # pm.shotTrack( 'shot1', q=True, track=True )
http://www.luma-pictures.com/tools/pymel/docs/1.0/generated/functions/pymel.core.system/pymel.core.system.shotTrack.html#pymel.core.system.shotTrack
crawl-003
refinedweb
103
79.26
OSB: How to recreate reusable XQuery functions edited Jun 21, 2013 4:57AM in SOA Suite Discusssions OSB's XQuery implementation does not support the XQuery "module" which allows the creation of a function library so how can OSB provide function re-use? Answers - Hi, i'm sorry...The Oracle Service Bus XQuery engine fully supports all of the language features that are described in the World Wide Web (W3C) specification for XQuery with one exception: modules bye - So how do other people avoid having to copy and paste XQuery methods from one XQuery transformation to another? - In fact another possibility i use is the following. Create an xquery application that you want to re-use, for example: create_header($pars). Then within another XQueries (create_message) you have to use the header as an external parameter, example (ASSIGN is the assign within a OSB pipeline) ASSIGN $header := create_header($pars) ASSIGN $message := create_message($header, $otherparameters) This is not exactly what you want but you have created re-use and are able to unit test the xquery. - Yes that kind of helps for "course" grained functions but gets clunky when trying to be more fine grained. Is there any moves by the OSB development team to fully support XQuery 1.0 and the Module functionality in particular? It seems a pretty basic limitation to me and causes lots of "code duplication" that has to be maintained... - any plans for making it available on OSB? - May be you can define custom XPath functions for fine grained utilities. Here is a good article on how to define custom XPath functions on OSB 11G. - What we did is creating a seperate project in which we use most of XQuery stuff, using SaxonSA library to run and validate the queries. This project adds the following possibilities for xqueries: - Schema validation of XPath used in XQueries (including namespaces) - XQuery syntax validation (with errors at the exact line and position where it fails. - Allows the use of modules - Reqression testing XQueries Regrettably we can not do Java callout's from XQueries as this is not supported on the ESB. We also build a simple 'flattener' that takes a module based, schema enriched XQuery and then generates the XQuery that can be used on the ESB itself. The flattened query is also regression tested. Although it was quite some work to make it, it already has paid back the initial costs of the project in the second or third project we did. We since then have enhanced the project so it also can do regression message flow validation on the OSB (we already had valid input and output messages). The tool also greatly improves the stability of the code on the OSB, and reduces development time as we can build the XQuery from a unit test environment that will point out typos and other xpath related problems. We do have some fairly complex xqueries on the OSB, the number of xqueries in the project at the moment is 187 with 250 unittests. So, if Oracle is not going to include it in the OSB itself (which seems lilkely at the moment), you can build such a system yourself ! Wim Veldhuis, PharmaPartners BV - Hey mdsrobbins, we have exactly the same problem. OSB XQuery code reusability is close to zero. We have a hugh amount of transformations and unfortunaly we need to copy custom functions to all them. Nowadays our code is hard to maintain and message data enrichment is difficult to manage. We sadly need this functionality. I have tested to outsource our code in custom functions by Java packages. Functionality was indeed available, but live editing is not possible due to compiled Java classes. Unless these custom functions are not deployable with WLST, we will not be capable to deliver fully automated OSB deployments. Besides, versioning the JAR next to the sbconfigs takes its effort on top (every additional artefact extends versioning complexity). Does someone know, if the module import in OSB XQuery will be available in following releases (11g and up)? Many greetings same question, Does someone know, if the module import in OSB XQuery will be available in following releases (11g and up)? XQuery modules are very important for us. We have a huge amount of xq ressources and copy all our functions from one to another. Very frustrating. We need module import feature in OSB. many greetings! This discussion has been closed.
https://community.oracle.com/tech/apps-infra/discussion/929438/osb-how-to-recreate-reusable-xquery-functions
CC-MAIN-2022-33
refinedweb
735
60.65
Gary Poster wrote: > Have you ever written functional tests and been surprised that they get > security proxies around i18n Messages and MessageIDs in the tests, but > not in the server? I have. :-) > > I'm not sure how often people encounter this, but I think I've heard > one other person describe the symptom. I believe I've tracked down the > cause. Here's a description of the problem AIUI, and then my suggested > solution. > > Problem: > > zope/app/security/_protections.py is the place in which zope.app > makes some fundamental security declarations: MessageIDs should not > get security proxies (a known security hole); Messages should not get > security proxies (just fine, and the intended solution to the > aforementioned security hole); and the __name__ and __parent__ > attributes should be available by default. > > These settings are put in place in zope/app/security/__init__.py, > rather than in zcml. > > When running the server, this is fine. The declarations are made once, > and remembered: Messages and MessageIDs don't get proxies. > > When running tests, however, (all? most?) test cleanups run zope/ > security/checker.py _clear, which cleans out the mutable that held the > NoProxy declaration for Messages and MessageIDs and resets it. The > __name__ and __parent__ additions remain, not affected by the _clear. > The end result is that subsequent tests give proxies to Messages and > MessageIDs, but everything else remains the same. Surprise! > > This is generally only an issue for functional tests. > > Suggested solution: > > Have zope.app.security define a new zcml tag in the main zope namespace: > > <defineChecker > > > where "standard.zcml.import.path" indicates that a standard zcml import > path type goes there. > > Have zope/app/security/_protections.zcml use this new tag to set the > checker for MessageID and Message, removing the parallel code from > _protections.py. Advertising +1 I've always found the protections stuff in zope.app.security particularly icky, though never thought that it would cause that much trouble. For compatability reasons, zope.app.security._protections and the protect() function inside (though empty) should probably still exist for at least another release because people might be using it in their own tests (even though it's not public API). A deprecation warning could tell them it's going a way -- should be a piece of cake with Stephan's deprecation framework. > The __name__ and __parent__ setting smells like it ought to go in zcml > to me as well, but it is not currently causing a problem because the > mutable it modifies is not reset for tests (which also perhaps should > be revisited). I'm not proposing to change any of that for now. Ok. Maybe there should be a collector issue about this so that we remember it for upcoming releases. > Thoughts? Alternate suggestions (I have a few, but this is my > favorite)? Stephan, do you want this fix in 3.1, assuming it goes > quickly and smoothly? I share Fred's concerns, but given the ickiness of the problem, I wouldn't mind if this was fixed for 3.1, assuming the hold up for the second release candidate wasn't more than just another day or two. Philipp _______________________________________________ Zope3-dev mailing list Zope3-dev@zope.org Unsub:
https://www.mail-archive.com/zope3-dev@zope.org/msg01133.html
CC-MAIN-2017-17
refinedweb
531
56.96
On Thu, 30 Mar 2006, Rich Felker wrote: > On Thu, Mar 30, 2006 at 07:39:07AM -0600, Michael A. Kohn wrote: > > > sleep(1); > > > +#else > > > + Sleep(1000); > > > > > This is wrong. I doubt win32 is missing sleep, but if it is, you need > > > to make an emulation of sleep() using Sleep in a separate > > > win32-dependent file. > > > > This is not wrong... try compiling this in Visual C++: > > You missed the second half of my sentence. Adding #ifdef everywhere is > not acceptable. Instead if emulation of missing functions is required > once in an unobtrusive place, or just: > > #ifdef MINGW > #define sleep(x) Sleep((x)*1000) > #endif I'm fine with changing it the way you want it.. where do you suggest for an unobstrusive place to put the above lines? > However I'm still skeptical since you explicitly stated your test was > in MSVC. If you're referring to this test: main() { sleep(500); } I didn't do that test on MSVC. That won't even compile on MSVC since sleep isn't defined. The code above on Linux takes 500 seconds to return while on Windows with MingW it takes 500 milliseconds. In stdlib.h in MingW there is an explaination that sleep() is obsolete in Windows and Sleep is its replacement. > > > +? /mike
http://ffmpeg.org/pipermail/ffmpeg-devel/2006-March/015255.html
CC-MAIN-2016-30
refinedweb
212
81.53
0 Hey guys, I have the assignment of writing the Towers of Hanoi program then testing it. I already got help measuring the time of the program, but that is not what my professor wanted he wanted to count the iterations. I can't get it down, my program will run but it will not print out correctly. This is the code I was using. import TerminalIO.KeyboardReader; public class towers { public static void main(String[] args) { KeyboardReader reader = new KeyboardReader(); int numberofRings = reader.readInt("Enter number of Rings: "); move (numberofRings, 1, 3, 2); } static void move(int n, int i, int j, int k) { int count = 0; if (n > 0) { move(n - 1, i, k, j); System.out.println("Move ring " + n + "from peg" + i + "to" + j); move(n - 1, k, j, i); count++; } System.out.println(count+ "Is the number of Moves"); } } And it keeps printing out 0 Is the number of Moves Move ring 1 from peg 1 to 2 0 Is the number of Moves 1 Is the number of Moves Move ring 2 from peg 1 to 3 0 Is the number of Moves and repeating Any help would be greatly appreaciated
https://www.daniweb.com/programming/software-development/threads/417672/counting-towers-of-hanoi
CC-MAIN-2017-26
refinedweb
197
65.15
I have tried 4 different HC-SR04 sensors, and 2 different Arduino Uno boards, and when the ping is out of range, I normally get 0cm (as I should with NewPing). However, sprinkled in with the 0cm readings are 5cm, 6cm, 7cm, 8cm, 9cm readings. I have tried changing the delay from 30 mS to 100 mS, and get the same variation when out of range. I am powering the ultrasonic sensor with +5V from the Arduino, and using a 2 wire system. The sensor works fine when in range. Any ideas? Here is my test code: #include <NewPing.h> #define TRIGGER_PIN 2 #define ECHO_PIN 3 #define MAX_DISTANCE 200 int distance; NewPing sonar(TRIGGER_PIN, ECHO_PIN, MAX_DISTANCE); void setup() { Serial.begin(115200); } void loop() { distance = (sonar.ping_cm()); while (distance == 0) //NewPing is supposed to return 0 { //when ping is out of range distance = (sonar.ping_cm()); delay(50); } Serial.print(distance); Serial.println("cm"); delay(50); }
https://forum.arduino.cc/t/hc-sr04-with-newping-library-returning-numbers-other-than-zero-when-out-of-range/429576
CC-MAIN-2021-39
refinedweb
154
65.62
So I'm sat watching a film called Hackers...cheesy hacker movie set in the 1990s. But I really do like it. Sure the dialogue is really bad, and the hacking is pure Hollywood, but it is a fascinating I think I'll be watching this tonight pic.twitter.com/KRFlWGQCLK— biglesp (@biglesp) February 9, 2017 Everyone has handles, nicknames based on their skills. But what would your hacker handle be? Well with Python we can make our own Hacker Handle and here is how. Coding the project I wrote this project using Trinket.io so that I can embed working code into this web page. But you can easily write this code on your Raspberry Pi, PC, Mac using Python 3 editor (IDLE3) or using another Python editor (PyCharm, Sublime Text etc) Imports In Python we start by importing something called "shuffle" from a library called random...but what does that mean? Python has a library, pre-written code that contains extra functionality. In this case the random library contains code to create random numbers, random choice, and importantly for us...shuffling data as if we were shuffling a deck of cards. Because we just need the shuffle functionality we shall import the library a little differently to normal. from random import shuffle Lists, the most powerful tool on the planet With that complete we now create a list of cool hacker handles. In Python a list is a form of data storage. We can store lots of different types of data, such as - Strings - Our hacker handles are strings - Integers - Numbers with no decimal place - Floats - Numbers with a decimal place A list uses an index to allocate a position to each item in the list. For example the first item in a list has an index of 0, and then each new item receives an index that increases by 1. In the code below, handles[0] is "Zero" and handles[10] is "Burn". handles = ["Zero", "Acid", "Max", "Random", "Giga", "Absolute", "Cool", "Gibson", "Cereal", "Killer", "Burn", "Crash", "Override", "Razor", "Blade", "Polaroid", "Pi"] Everybody's shuffling.... So now that we have our list of cool hacker handles, lets use the shuffle functionality to...shuffle the names. To do that we call the shuffle function, and pass the name of the list to it inside parenthesis ( ), this is called an "argument" and it is used to pass extra information to a function. shuffle(handles) Hack the planet with ASCII art!!!! Hackers love to use ASCII (American Standard Code for Information Interchange) art in their hacks...well that's what Hollywood taught me. So I created my own homage to that. print(""" HH HH kk HH HH aa aa cccc kk kk HHHHHHH aa aaa cc kkkkk HH HH aa aaa cc kk kk HH HH aaa aa ccccc kk kk TTTTTTT hh TTT hh eee TTT hhhhhh ee e TTT hh hh eeeee TTT hh hh eeeee PPPPPP lll tt !!! PP PP lll aa aa nn nnn eee tt !!! PPPPPP lll aa aaa nnn nn ee e tttt !!! PP lll aa aaa nn nn eeeee tt PP lll aaa aa nn nn eeeee tttt !!! """) You can make you own via this website Who am I? So what is my hacker handle? Obviously mine has to be "Pi Killer" because of my love for Greggs pies... but what is your hacker handle? Well to find out we use a print function, and inside the function we write a string to say "Your hacker handle is" and then we print the values stored in the "handles" list, specifically those stored at index 0 and 1. Now these values are shuffled every time the code is run, so you should see a different name each time. print("Your hacker handle is",handles[0],handles[1]) So if you are following along at home, run the code in your Python editor to see your cool hacker handle. Or you can give the code below a try :)
http://bigl.es/hack-the-planet-with-python/
CC-MAIN-2018-09
refinedweb
662
72.16
Paths on Grids Authors: Nathan Chen, Michael Cao, Benjamin Qi, Andrew Wang Contributor: Maggie Liu Counting the number of "special" paths on a grid, and how some string problems can be solved using grids. Prerequisites Focus Problem – try your best to solve this problem before continuing! Focus Problem – try your best to solve this problem before continuing! TutorialTutorial A common archetype of DP Problems involves a 2D grid of square cells (like graph paper), and we have to analyze "paths." A path is a sequence of cells whose movement is restricted to one direction on the -axis and one direction on the -axis (for example, you may only be able to move down or to the right). Usually, the path also has to start in one corner of the grid and end on another corner. The problem may ask you to count the number of paths that satisfy some property, or it may ask you to find the max/min of some quantity over all paths. Usually, the sub-problems in this type of DP are a sub-rectangle of the whole grid. For example, consider a problem in which we count the number of paths from to when we can only move in the positive -direction and the positive -direction. Let be the number of paths in the sub-rectangle whose corners are and . We know that the first cell in a path counted by is , and we know the last cell is . However, the second-to-last cell can either be or . Thus, if we pretend to append the cell to the paths that end on or , we construct paths that end on . Working backwards like that motivates the following recurrence: . We can use this recurrence to calculate . Keep in mind that because the path to is just a single cell. In general, thinking about how you can append cells to paths will help you construct the correct DP recurrence. When using the DP recurrence, it's important that you compute the DP values in an order such that the dp-value for a cell is known before you use it to compute the dp-value for another cell. In the example problem above, it's fine to iterate through each row from to : C++ for(int i = 0; i < M; i++) {for(int j = 0; j < N; j++) {if(j > 0) dp[j][i] += dp[j - 1][i];if(i > 0) dp[j][i] += dp[j][i - 1];}} Java for(int i = 0; i < M; i++) {for(int j = 0; j < N; j++) {if(j > 0) dp[j][i] += dp[j - 1][i];if(i > 0) dp[j][i] += dp[j][i - 1];}} Python for i in range(M):for j in range(N):if j > 0:dp[j][i] += dp[j - 1][i]if i > 0:dp[j][i] += dp[j][i - 1] Note how the coordinates in the code are in the form (x coordinate, y coordinate). Most of the time, it's more convenient to think of points as (row, column) instead, which swaps the order of the coordinates, though the code uses the former format to be consistent with the definition of . Solution - Grid PathsSolution - Grid Paths In this problem, we are directly given a 2D grid of cells, and we have to count the number of paths from corner to corner that can only go down (positive direction) and to the right (positive direction), with a special catch. The path can't use a cell marked with an asterisk. We come close to being able to use our original recurrence, but we have to modify it. Basically, if a cell is normal, we can use the recurrence normally. But, if cell has an asterisk, the dp-value is , because no path can end on a trap. The code for the DP recurrence doesn't change much: C++ #include <bits/stdc++.h>using namespace std;typedef long long ll;bool ok[1000][1000];ll dp[1000][1000];int main() { Java import java.util.*;import java.io.*;public class Main {public static void main(String[] args) throws Exception {BufferedReader br = new BufferedReader(new InputStreamReader(System.in));int N = Integer.parseInt(br.readLine());long dp[][] = new long[N][N]; Python n = int(input())ok = [[char == "." for char in input()] for _ in range(n)]dp = [[0] * n for _ in range(n)]dp[0][0] = 1for i in range(n):for j in range(n):# if current square is a trapif not ok[i][j]:dp[i][j] = 0 Note how the coordinates are now in the form (row, column) when reading in the input. Solution - Longest Common SubsequenceSolution - Longest Common Subsequence The longest common subsequence is a classical string problem, but where's the grid? In fact, we can create a grid to solve it. Think about the following algorithm to create any (not necessarily the longest) subsequence between two strings and : - We start with two pointers, , and , each beginning at . - We do some "action" at each time step, until there are no more available "actions". An "action" can be any of the following: - Increase the value of by (only works if ). - Increase the value of by (only works if ). - Increase the value of and by only if . Append that character (or ) to the common subsequence. (only works if and ). - We know that this process creates a common subsequence because characters which are common to both strings are found from left to right. This algorithm can also be illustrated on a grid. Let and . Then, the current state of the algorithm can be defined as a specific point using the values of and that we discussed previously. The process of increasing pointers can be seen as moving right (if is increased), moving down (if is increased), or moving diagonally (if both and increase). See that each diagonal movement adds one to the length of the common subsequence. Now, we re-phrase "the length of the longest increasing subsequence" as "the maximum number of 'diagonal movements' ("action 3" in the above algorithm) in a path from the top-left corner to the bottom-right corner on the grid." Thus, we have constructed a grid-type DP problem. In the above grid, see how the bolded path has diagonal movements at characters "a" and "c". That means the longest common subsequence between "xabcd" and "yazc" is "ac". Based on the three "actions", which are also the three possible movements of the path, we can create a DP-recurrence to find the longest common subsequence: C++ class Solution {public:int longestCommonSubsequence(string a, string b) {int dp[a.size()][b.size()];for (int i = 0; i < a.size(); i++) {fill(dp[i], dp[i] + b.size(), 0);}for (int i = 0; i < a.size(); i++) {if(a[i] == b[0]) dp[i][0] = 1;if(i != 0) dp[i][0] = max(dp[i][0], dp[i - 1][0]); Ben - shorter version using macros: Code Snippet: Benq Template (Click to expand)class Solution {public:int longestCommonSubsequence(str a, str b) {V<vi> dp(sz(a) + 1, vi(sz(b) + 1));F0R(i, sz(a) + 1) F0R(j, sz(b) + 1) {if (i < sz(a)) ckmax(dp[i + 1][j], dp[i][j]);if (j < sz(b)) ckmax(dp[i][j + 1], dp[i][j]);if (i < sz(a) && j < sz(b))ckmax(dp[i + 1][j + 1], dp[i][j] + (a[i] == b[j]));}return dp[sz(a)][sz(b)];}}; Java class Solution {public int longestCommonSubsequence(String a, String b) {int[][] dp = new int[a.length()][b.length()];for (int i = 0; i < a.length(); i++) {if(a.charAt(i) == b.charAt(0)) dp[i][0] = 1;if(i != 0) dp[i][0] = Math.max(dp[i][0], dp[i-1][0]);}for (int i = 0; i < b.length(); i++) {if(a.charAt(0) == b.charAt(i)) {dp[0][i] = 1; Python class Solution:def longestCommonSubsequence(self, a: str, b: str) -> int:dp = [[0] * (len(b) + 1) for _ in range(len(a) + 1)]for i in range(1, len(a) + 1):for j in range(1, len(b) + 1):if a[i - 1] == b[j - 1]:dp[i][j] = dp[i - 1][j - 1] + 1else:dp[i][j] = max(dp[i - 1][j], dp[i][j - 1])return dp[len(a)][len(b)] ProblemsProblems Optional Don't expect you to solve this task at this level, but you might find it interesting: Circular Longest Common Subsequence Module Progress: Join the USACO Forum! Stuck on a problem, or don't understand a module? Join the USACO Forum and get help from other competitive programmers!
https://usaco.guide/gold/paths-grids
CC-MAIN-2022-40
refinedweb
1,436
60.95
<[EMAIL PROTECTED]> EnterpriseDB + If your life is a hard drive, Christ can be your backup. + Index: src/bin/initdb/initdb.c =================================================================== RCS file: /cvsroot/pgsql/src/bin/initdb/initdb.c,v retrieving revision 1.133 diff -c -c -r1.133 initdb.c *** src/bin/initdb/initdb.c 16 Feb 2007 02:10:07 -0000 1.133 --- src/bin/initdb/initdb.c 20 Feb 2007 23:46:19 -0000 *************** *** 1208,1214 **** for (i = 0; i < bufslen; i++) { ! test_buffs = trial_bufs[i]; if (test_buffs <= ok_buffers) { test_buffs = ok_buffers; --- 1208,1215 ---- for (i = 0; i < bufslen; i++) { ! /* Use same amount of memory, independent of BLCKSZ */ ! test_buffs = (trial_bufs[i] * 8192) / BLCKSZ; if (test_buffs <= ok_buffers) { test_buffs = ok_buffers; Index: src/include/pg_config_manual.h =================================================================== RCS file: /cvsroot/pgsql/src/include/pg_config_manual.h,v retrieving revision 1.24 diff -c -c -r1.24 pg_config_manual.h *** src/include/pg_config_manual.h 6 Feb 2007 09:16:08 -0000 1.24 --- src/include/pg_config_manual.h 20 Feb 2007 23:46:19 -0000 *************** *** 25,30 **** --- 25,34 ---- */ #define BLCKSZ 8192 + #if BLCKSZ < 1024 + #error BLCKSZ must be >= 1024 + #endif + /* * RELSEG_SIZE is the maximum number of blocks allowed in one disk * file. Thus, the maximum size of a single file is RELSEG_SIZE * ---------------------------(end of broadcast)--------------------------- TIP 6: explain analyze is your friend
https://www.mail-archive.com/pgsql-patches@postgresql.org/msg15173.html
CC-MAIN-2018-39
refinedweb
207
52.76
PRIVATE banking is meant to be boring. But somehow UBS, the world's largest private bank, forgot that. Some of its employees, in their zeal to win the business of wealthy Americans with a predilection for fibbing to the taxman, seem to have confused discretion with spycraft. Instead of waiting for clients to come to it in Switzerland, the bank trained some members of staff in counter-surveillance techniques, equipped them with encrypted laptops and secret e-mail addresses and then infiltrated them into America to meet clients, according to American prosecutors. The price of such subterfuge has been high. On February 18th UBS agreed to pay fines of $780m and to hand the American authorities the names and account details of up to 300 clients. A week later Marcel Rohner, its youthful chief executive, unexpectedly stepped down. Although he is credited with having salvaged what he could of UBS by raising capital early, and he helped it withstand steep losses and a slumping share price during 20 months at the helm, Mr Rohner could not, it seems, entirely escape his past. Although not accused of any wrongdoing, he was head of the wealth-management business when many of the shenanigans are alleged to have occurred. More galling, perhaps, is that Mr Rohner was replaced by Oswald Grübel, a veteran former chief executive of Credit Suisse, UBS's archrival. Mr Grübel unashamedly copied UBS's strategy of combining commercial, investment and private banking, but without the missteps that led UBS so disastrously into American subprime mortgages. UBS shares rose immediately after his appointment, but he has a huge task ahead of him. Not least is the damage UBS's private bankers have done over the bank's, and its home country's, reputation for bank secrecy. Their antics paid handsomely for a while. The offshore-banking business of UBS gathered some $20 billion in assets from at least 20,000 American clients, earning the bank some $200m a year, according to prosecutors. The government reckons that some 17,000 of these clients omitted to mention their numbered Swiss bank accounts when filling in their American tax returns. Although illegal in America and most other parts of the world, under Swiss law this is no crime. There may be a fine distinction between someone who has simply forgotten to include everything on a tax return (an oversight that even treasury secretaries are occasionally prone to) and someone who has gone out of their way to evade tax. Yet fraud is illegal in Switzerland as well as in America. UBS seems to have crossed the line, either by helping some clients set up dummy companies and sham accounts to hide money from the taxman, or by turning a blind eye when they did. The number of clients who did this was small, about 250, but by helping them UBS not only exposed itself to prosecution in America but also endangered Switzerland's status as a secretive piggy-bank for the world's rich. It was a capitulation shared with Switzerland's financial regulator, which allowed UBS to release their names, saying that a criminal prosecution could ultimately have put the bank's existence at risk. But it was not a total cave-in. The bank and Swiss authorities are still hewing to the distinction in Swiss law between sins of omission and of commission. They will, for instance, contest in court a separate demand from America's Internal Revenue Service (IRS) that UBS hand over the names of the 52,000 American account-holders it is thought to have. Even a partial surrender, however, may spook wealthy clients. Champions of bank secrecy see it as the fraying of a tradition that has withstood wars, pressure from powerful states and the prying eyes of foreign spies. “They are trying to save UBS because it is systemically important but they are sacrificing the rest of us,” says Konrad Hummler, who heads the Swiss Private Bankers Association. At risk is up to $2 trillion in offshore assets held in Swiss private banks (see chart). There are also important questions at stake about the reach of the state and a citizen's right to privacy. Those who press for an end to banking secrecy argue that people who hide their assets have shifty motives, such as to avoid paying taxes. That includes John DiCicco, of America's Justice Department, who pointed to the millions of Americans losing their jobs, homes and health care while “more than 50,000 of the wealthiest among us have actively sought to evade their civic and legal duty to pay taxes”. Some say as much as $255 billion a year slips through tax nets around the world. Yet many rich people want to keep their money away from prying eyes for reasons other than to avoid tax, including those fearing divorce settlements. Others want to keep their money safe from expropriation by fickle governments, and hidden from thieving criminals. Stefan Jaecklin, of Oliver Wyman, a consultancy, reckons that much of the new money that flowed into Switzerland in recent years came from countries with low or no personal income taxes, such as the Gulf, and that a rapidly increasing share of money coming from European countries with high rates of tax is declared to the authorities. The lure, he says, is not only the secrecy but also the industry's well-established competence. Even the most ardent defenders of banking secrecy concede that the tide is turning against it, however. In the rich world, the mood against all big banks has soured, including offshore ones. At the G20 meeting in April, European leaders want to discuss potential sanctions against tax havens that refuse to hand over information held by their banks. Mr Grübel, as much as anyone in Switzerland, has a huge stake in the outcome of this debate. For all the problems he faces managing the investment bank, the private bank is still crucial to UBS's survival. This article appeared in the Finance & economics section of the print edition under the headline "Called to account"
https://www.economist.com/finance-and-economics/2009/02/26/called-to-account?story_id=13186205
CC-MAIN-2021-43
refinedweb
1,016
56.59
Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing I've been playing with the XHTML export feature and discovered a few annoying issues: 1. The output doesn't contain the DOCTYPE. Setting the DOCTYPE through the Transformation tab in XML Filter Settings does nothing. I've tweaked main_html.xsl to specify the DOCTYPE, but the generated string is not ok. Instead of <!DOCTYPE HTML PUBLIC... it should say <!DOCTYPE html PUBLIC... 2. The output contains loads of xml namespace prefixes. I tweaked it by changing exclude-result-prefixes="java" to exclude-result-prefixes="the_whole_list_of prefixes". Don't know if it's good or bad, but it worked for me. 3. The META element is not closed, therefore resulting in numerous error reports by the validator. Haven't seen 1.1RC3 yet, possibly some of those issues are resolved in this release. I wish we can follow the standard we need to recheck everything beside this on the suggestion At first: Sorry for being late but the tooling set the first owner wrong . It has been corrected today. Enhancement: It's correct that we are not valid for now. That's what Svante told me and that it is the future to be valid. Target will be only Office later - another only if Svante has it already on his 'roadmap' for OOo 2.0?! Set correct sub component. I am aware of the unvalidness of the XHTML and it is a certainly my personal goal to make it valid. To your concerns: 1. I didn't bring in the doctype, as it is not valid, so nobody should get the idea to write bugs about it yet. 2. Seems to be a parser / processor problem, sorry I can not reproduce 3. A unclosed meta tag is not even well-formed XML, this is a XSLT processor problem for sure. Believe me, I am anoyed with this missing feature as you are, and I gave dozen of hours of private working time into the stylesheets, but I don't think that the marketing hang up the XSLT filter high in priority for the next time. Despite of that, I think that it will exchange the current HTML filter some day. Currently, I have little time to spend on the filter, but I nearly got a new version finished (unpublished), and if you like to work with me on it, I would be very happy if we could make this filter to our filter and raise it up to product quality. Problems of XHTML (transient) validness I figured out are: - Nested paragraphs in case draw:text-box include a paragraph - Anchor names have to be transformed accordingly to XHTML specs Thanks for offering your help, Leonid. I make the updated files soon accessible as download. With my filterxslt01 CWS (childworkspace), I gonna fix at least some of theses problems, we should specify detailed problems and write follow up bugs. --> changed target to OOo2.0 - Added title and base element to header - Made several changes to changes to tables and paragraph nestling The remaining problems will be splittet into several add-on bugs explaining the problem. I suggest to start with transitional and work afterwards further on strict. Simply add doctype-system="" respectivly doctype-system="" to the xsl:output element of the stylesheet. I added a tough test document (the OpenOffice Specification). Validness might be tested by multiple tools (e.g. W3C Validator). KNOWN TRANSIENT VALIDNESS PROBLEM: Nesting of paragraph in a span element. KNOWN STRICT VALIDNESS PROBLEM: Table Alignment: To align a table horizontal, I created a surrounding div tag. Obviously that wasn't a valid solution in strict XHTML. Added my officeless xslt environment, first >4MB environment with XALAN & XERCES, but don't download it, it is buggy with one document. Simply install a JDK/JRE1.4, so you would use an earlier XALAN & XERCES version, without the issue. The environement is without the stylesheets, which are added separately. Hopefully someone is able to help me out with this, I am not able to plan time for this issue and want to close CWS (ChildWorkSpace) end of next week (if someone needs more time we can take expand it a week longer). If noone helps, I have to move this issue out of the CWS. Created attachment 12395 [details] xslt environment (updated stylesheets, testfiles, processor (XT with patch)) use it with JDK/JRE 1.4 (Xerces/Xalan) Tested the stylesheets in the Office and realized, that the office filter does not provide any parameter at all for the stylesheets. Wrote #i24398 (i.e.), so relative links (when document stored to a different directory as the origion and links to zipped graphics (JAR URLs) will remain. Unfortunatly the XHTML filter is compatible to zipped OOo/unzipped OOo and flat OOo by parameters. The URL of the meta and styles xml file given as parameters. Due to this, I rewrote the internally usage of global variable to a global data parameter (cmp. stylesheets attached). By this new enhancement, the new filter works with the StarOffice 7 as well (better than ever). For compatibility reasons renamed the starting stylesheets 'ooo2xhtml.xsl' back to 'main_html.xsl'. To use these new stylesheets in your office simply unzip the stylesheets (xhtml and common folder) into your <OFFICE>/share/xslt directory (e.g. C:\Program Files\StarOffice7\share\xslt). Created attachment 12591 [details] Latest stylesheets (renamed oo2xhtml.xsl to main_html.xsl for OOo usage) To use in directly in StarOffice / OpenOffice not in stand-alone test environment, please rename the 'ooo2xhtml.xsl' stylesheet to 'main_html.xsl'. Added the default XHTML strict public DTD to figure out if there are further constraints. If further constraints are being noticed, please add a new enhancement task with a detailed description of the specific problem. SUS->JSI: For testing transform any arbitrary document and validate the XML output with a 3rd party tool (e.g. XML Spy) and/or you may use the TEST environment in the XML Filter Settings and validate with the Office. Reassign to QA SUS: Changed issue type to FEATURE as discussed with JSI, feature mail will follow Now we're exporting - first time ever (!) - valid XHTML files! If there is a big in XSLT transformation (and we have some issues open) the validation may fail but a big percent of documents have been exported correctly. Verified. Also if we do not support some issues (like graphics at the moment) the export also in draw / impress is valid! ok. Seen okay in SRC680m48
https://issues.apache.org/ooo/show_bug.cgi?format=multiple&id=18295
CC-MAIN-2014-15
refinedweb
1,084
65.01
Encapsulation is nothing new to what we have read. It is the method of combining the data and functions. Why Encapsulation Encapsulation is necessary to keep the details about an object hidden from the users of that object. Details of an object are stored in its data members (member bables). This is the reason we make all the member variables of a class private and most of the member functions public. Member variables are made private so that these cannot be directly accessed from outside the class (to hide the details of any object of that class like how the data about the object is implemented) and so most member functions are made public to allow the users to access the data members through those functions. For example, we operate a washing machine through its power button. We switch on the power button, the machine starts and when we switch it off, the machine stops. We don't know what mechanism is going on inside it. That is encapsulation. (public, private, protected). For example, if a data member is declared private and we wish to make it directly accessible from anywhere outside the class, we just need to replace the specifier private by public. Let's see an example of Encapsulation. #include <iostream> using namespace std; class Rectangle { int length; int breadth; public: void setDimension(int l, int b) { length = l; breadth = b; } int getArea() { return length * breadth; } }; int main() { Rectangle rt; rt.setDimension(7, 4); cout << rt.getArea() << endl; return 0; } The member variables length and breadth are encapsulated inside the class Rectangle. Since we declared these private, so these variables cannot be accessed directly from outside the class. Therefore , we used the functions 'setDimension' and 'getArea' to access them. You know what you are but you don't know what you may be.
https://www.codesdope.com/cpp-encapsulation/
CC-MAIN-2022-40
refinedweb
305
64
#include <stdio.h> #include <time.h> #include<iostream> using namespace std; void wait ( int seconds ) { clock_t endwait; endwait = clock () + seconds * CLOCKS_PER_SEC ; while (clock() < endwait) {} } int main () { int n; int minutes = 0; int hours = 0; printf ("Starting countdown...\n"); for (n=0; n<=60; n++) { //printf ("%d\n",n); wait (1); if(n == 60) { minutes += 1; n = 0; } if(minutes == 60) { hours += 1; } cout<<hours<<":"<<minutes<<":"<<n<<endl; } printf ("FIRE!!!\n"); system("pause"); return 0; } Creating a clock in Dev C++Page 1 of 1 1 Replies - 18496 Views - Last Post: 12 May 2010 - 09:54 PM #1 Guest_Guest* Creating a clock in Dev C++ Posted 12 May 2010 - 09:24 PM Why hello there. As the title implies, I'm trying to create a clock in Dev C++. It works fine but I don't want the cout<<hour<<":"<<minutes<<":"<<n<<endl; part to keep displaying. I want the seconds, minutes, and hours to iterate accordingly but I don't want the cout statement to keep repeating itself. What can I do to fix this? Is This A Good Question/Topic? 0 Replies To: Creating a clock in Dev C++ #2 Re: Creating a clock in Dev C++ Posted 12 May 2010 - 09:54 PM Use the Windows API to set the cursor position. Move the cursor around to overwrite the displayed numbers as needed. Page 1 of 1
http://www.dreamincode.net/forums/topic/173332-creating-a-clock-in-dev-c/
CC-MAIN-2017-13
refinedweb
229
79.8
I'm in the process of learning Java and I cannot find any good explanation on the implements Closeable implements AutoCloseable interface Closeable public void close() throws IOException pw.close(); IOstream import java.io.*; public class IOtest implements AutoCloseable { public static void main(String[] args) throws IOException { File file = new File("C:\\test.txt"); PrintWriter pw = new PrintWriter(file); System.out.println("file has been created"); pw.println("file has been created"); } @Override public void close() throws IOException { } It seems to me that you are not very familiar with interfaces. In the code you have posted you don't need to implement AutoCloseable. You will only have to (or should) implement Closeable or AutoCloseable if you are about to implement an own PrintWriter which handles with files or any other resources which needs to be closed. In your implementation it is enough to call pw.close(). You should do this in a finally block: PrintWriter pw = null; try { File file = new File("C:\\test.txt"); pw = new PrintWriter(file); } catch (IOException e) { System.out.println("bad things happen"); } finally { if (pw != null) { try { pw.close(); } catch (IOException e) { } } } The code above is Java 6 related. In Java 7 this can be done more elegant (see this answer).
https://codedump.io/share/idFj7P2ZgANK/1/implements-closeable-or-implements-autocloseable
CC-MAIN-2016-44
refinedweb
207
58.99
Hello, My assistant has been beating the stick at this for a few days and I’ve figured it out this morning, and we have found nothing on this forum about this. End up to be simple, but you need to know some facts (dataset vs pydataset, self vs event.source and List vs Tuple) I’ve decided to post it to help others How I got it to work is to create a project function that create the list of tuples from a dataset: project.dd script def ddTable(dtaList): dtaList = system.dataset.toPyDataSet(dtaList) ##Change dataset to PyDataSet dtaList2 = [] #creating the List of tuple to be returned for row in dtaList: dtaList2.append( (row[0], row[1])) ## appending the tuple to the list return dtaList2 In my case the datasets (dtaCol1, dtaCol2) are a RootContainer Custom Property. The powerable is on the RootContainer too. If your dataset is a custom property of the powertable, just lose the ‘.parent’ in my call. And rename Col1, Col2 , dtaCol1 and dtaCol2 to what ever your powertable Columns and Datasets are. And add or subtract column as much as you need. In my case I have 2 powertable columns with a dropdown each. So the powertable configureEditor’s Script calls the function like this def configureEditor(self, colIndex, colName): if colName == 'Col1': return {'options': project.dd.ddTable(self.parent.dtaCol1)} elif colName == 'Col2': return {'options': project.dd.ddTable(self.parent.dtaCol2)}
https://forum.inductiveautomation.com/t/powertable-dynamic-custom-dropdown/11602
CC-MAIN-2021-39
refinedweb
239
64.3
Most, if not all, GUI platforms support the idea of events, and events are very heavily used in GUI programming. As an example, consider a button. Buttons don’t exist on their own but are used as part of a user interface and are contained by some other item. This item is usually a form, but it could also be some other control, such as a toolbar. The whole point of having a button on a form is so that the user can click it to tell the program something. For example, “the user clicked the OK button, so dismiss the dialog box” or “the user clicked the Print button on the toolbar, so print the document.” Events provide a formalized, standard mechanism that lets event sources (such as a button) hook up with event receivers (such as a form). Events in the .NET Framework implement a publish-and-subscribe mechanism, where event sources make public the events that they will raise—they publish them—and event receivers tell the source which events they’re interested in—they subscribe to events. Event receivers can also unsubscribe when they no longer want to receive a particular event. Events in the .NET Framework are based on multicast delegates, and it isn’t too hard to see how this will work. An event source declares a delegate for each event it wants to generate, such as Click, DoubleClick, and so on. An event receiver then defines suitable methods and passes them to the event source, which uses Combine to add them to its multicast delegates. When the time comes to fire the event, the event source calls Invoke on the delegate, thus calling the requisite functions in the receivers. The actual event mechanism simplifies the syntax so that you don’t have to deal with delegates directly, and it’s designed to fit in with the event mechanism that already exists in Visual Basic. The following exercise takes you through creating an event source class and event receiver classes that register themselves with the source and use the events when they’re fired. Open Visual Studio. NET if it isn’t already open, and create a new Visual C++ Console Application (.NET) project named Event. Event sources and receivers use delegates, so define a delegate for each of the events raised by the source. In this example, two events will be used, so open the Event.cpp source file and define the following two delegates immediately after the using namespace System; line: // Delegates __delegate void FirstEventHandler(String*); __delegate void SecondEventHandler(String*); The delegates define the signatures of the methods that event receivers have to implement to handle the events, so they’re often given names that end with Handler. Each of these events will simply pass a string as the event data, but you can make the data passed as complex as you want. Add the implementation of the event source class to the source file like this: // Event source class __gc class EvtSrc { public: // Declare the events __event FirstEventHandler* OnFirstEvent; __event SecondEventHandler* OnSecondEvent; // Event raising functions void RaiseOne(String* pMsg) { OnFirstEvent(pMsg); } void RaiseTwo(String* pMsg) { OnSecondEvent(pMsg); } }; The first thing to note is the use of the __event keyword to declare two events. You need one __event declaration for each event that you want to raise, and its type is that of the delegate associated with the event. So, in the case of the first event object, the type is FirstEventHandler* to match the FirstEventHandler delegate. Using the __event keyword causes the compiler to generate a lot of delegate handling code for you; if you’re interested in exactly what’s going on, see the following sidebar, “How Does the __event Keyword Work?” You can then use the event objects in the EvtSrc class to raise the events, simply by using them as if they were function calls and passing the appropriate argument. The __event keyword isn’t only used in managed code, but can also be used to describe events in native C++ classes and COM events. When you declare an __event member for a class in managed code, the compiler generates code to implement the underlying delegate mechanism. For the OnFirstEvent event object in the exercise, you get the following methods generated: add_OnFirstEvent, a public method that calls Delegate::Combine to add a receiver to this event’s invocation list. Rather than calling add_OnFirstEvent directly, you use the += operator on the event object, which calls the function for you. remove_OnFirstEvent, a public method that calls Delegate::Remove to remove a receiver from this event’s invocation list. As with the add_ function, you don’t call this method directly but instead use the -= operator on the event object. raise_OnFirstEvent, a protected method that calls Delegate::Invoke to call all the methods on this event’s invocation list. The raise method is protected so that it can be called only through the proper channels and not directly by client code. You now have a class that can be used to fire events, so the next thing you need is a class that will listen for events and act on them when they’ve been generated. Add a new class to the project named EvtRcv. // Event receiver class __gc class EvtRcv { EvtSrc* theSource; public: }; The receiver has to know the event sources it’s working with to be able to subscribe and unsubscribe, so add an EvtSrc* member to the class to represent the one source you’ll be working with. Add a constructor to the class that takes a pointer to an EvtSrc object and checks that it isn’t null. If the pointer is valid, save it away in the EvtSrc* member. EvtRcv(EvtSrc* pSrc) { if (pSrc == 0) throw new ArgumentNullException("Must have event source"); // Save the source theSource = pSrc; } Define the member handler functions in EvtRcv that EvtSrc is going to call. As you know from our discussion of delegates, the signatures of these methods will have to match the signatures of the delegates used to define the events, as shown here: // Handler functions void FirstEvent(String* pMsg) { Console::WriteLine("EvtRcv: event one, message was {0}", pMsg); } void SecondEvent(String* pMsg) { Console::WriteLine("EvtRcv: event two, message was {0}", pMsg); } FirstEvent is the handler for the FirstEventHandler delegate, and SecondEvent is the handler for the SecondEventHandler delegate. Each of them simply prints out the string that they’ve been passed. Once you have the handlers defined, you can subscribe to the event source. Edit the constructor for the EvtRcv class so that it looks like the following code: EvtRcv(EvtSrc* pSrc) { if (pSrc == 0) throw new ArgumentNullException("Must have event source"); // Save the source theSource = pSrc; // Add our handlers theSource->OnFirstEvent += new FirstEventHandler(this, &EvtRcv::FirstEvent); theSource->OnSecondEvent += new SecondEventHandler(this, &EvtRcv::SecondEvent); } You subscribe to an event using the += operator. In the code, you’re creating two new delegate objects, which will call back to the FirstEvent and SecondEvent handlers on the current object. This is exactly the same syntax you’d use if you were manually creating a delegate. The difference is in the += operator, which combines the newly created delegate with the event source’s multicast delegate. As you read in the preceding sidebar, += calls the compiler-generated add_OnFirstEvent method, which in turn calls Delegate::Combine. Although you’ve subscribed to all the events automatically in the constructor, you could also use member functions to subscribe to individual events as required. A matching -= operator lets you unsubscribe from events. Add the following member function to EvtRcv, which will unsubscribe from the first event: // Remove a handler void RemoveHandler() { // Remove the handler for the first event theSource->OnFirstEvent -= new FirstEventHandler(this, &EvtRcv1::FirstEvent); } The syntax for using the -= operator to unsubscribe is exactly the same as that for the += operator to subscribe. Now that you’ve written the event source and event receiver classes, you can write some code to test them out. Edit the _tmain function to create event source and receiver objects. int _tmain() { Console::WriteLine(S"Event Example"); // Create a source EvtSrc* pSrc = new EvtSrc(); // Create a receiver, and bind it to the source EvtRcv* pRcv = new EvtRcv(pSrc); return 0; } The EvtSrc constructor takes no arguments, while the EvtRcv constructor has to be passed a valid EvtSrc pointer. At this point, the receiver is set up, listening for events to be fired from the source. int _tmain() { Console::WriteLine(S"Event Example"); // Create a source EvtSrc* pSrc = new EvtSrc(); // Create a receiver, and bind it to the source EvtRcv* pRcv = new EvtRcv(pSrc); // Fire events Console::WriteLine(S"Fire both events:"); pSrc->RaiseOne(S"Hello, mum!"); pSrc->RaiseTwo(S"One big step"); return 0; } Calls to the source’s RaiseOne and RaiseTwo functions tell it to fire both events. When you run this code, you should see output similar to the following figure. The receiver has had both handlers called, so it has printed both the messages associated with the events. Insert some code to call the RemoveHandler function of the receiver, and try firing both events again: // Remove the handler for event one pRcv->RemoveHandler(); // Fire events again Console::WriteLine(S"Fire both events:"); pSrc->RaiseOne(S"Hello, mum!"); pSrc->RaiseTwo(S"One big step"); This time you should see only the second message printed because the receiver is no longer handling the first event.
https://flylib.com/books/en/3.295.1.104/1/
CC-MAIN-2019-35
refinedweb
1,564
56.59
- 27 Apr, 2012 2 commits - 26 Apr, 2012 8 commits Extend name lookup for fixity declaration to the TcClsName namespace for all reader names, instead of only those in DataName. See Note [Deriving inside TH brackets] in TcInstDcls Fixes Trac #6005 (again) - gmainlan@microsoft.com authored This change generalizes support for floating in case expressions. Previously, case expression with an unlifted scrutinee and a single DEFAULT alternative were floated in. In particular, this allowed array index operations to be floated in. We also want to float in SIMD unpack primops, which return an unboxed tuple of scalars, thus the generalization. Fixes Trac #6020, #6044 - 25 Apr, 2012 14 commits This has been causing bloat in the src dist for ages. Noticed while looking at #6009, but I don't think this is the bug (./configure always removes ghc-pwd/dist-boot before building ghc-pwd) *) See Note [Splicing Exact names] in RnEnv. - Fixes Trac #6039, where we have a bogus kind signature data T (a :: j k) = MkT Fixes Trac #5867, and is generally nicer - 24 Apr, 2012 7 commits - 23 Apr, 2012 4 commits Reduces wobble in error messages, and is better for the programmer - 22 Apr, 2012 3 commits Fixes Trac #6020 That in turn means that you can derive Show etc in other modules, fixing Trac #6031 - 21 Apr, 2012 2 commits It allows you to do (high, low) `quotRem` d provided high < d. Currently only has an inefficient fallback implementation.
https://gitlab.haskell.org/nineonine/ghc/-/commits/18c2a2f71e38fad5e677b8f448f6135e5a691868
CC-MAIN-2022-27
refinedweb
244
58.11
I have some looping wav samples that I play forward and reverse. When playing a sample forward, it loops fine. When playing in reverse and the beginning is met, it jumps to some point in the middle, not the end as I expect it to. On each particular file is seems to jump to the same position in the middle every time, but the position varies with each different wav. Any idea what is going on? - dolphin asked 14 years ago - You must login to post comments I am not using (explicitly any way) loop points, is there any way I can muck with them to work around this? Or can I maybe use a callback to reposition the play point? (Does the end callback get called if you are plaing in reverse and you reach the beginning?) I think, at the very least, I should be able to poll the position in the sample every frame and move the position myself if it reaches the begining in reverse playback mode, but I am hoping for a better solution. Aonther question: I am using F_API FSOUND_Sample_Lock to get a pointer to the wav file data, so I can draw the waveform. The function seems to always return false, but the pointer and length are valid after the return (the first ones, the second ones are both 0). Any idea what is going on there? - dolphin answered 14 years ago
http://www.fmod.org/questions/question/forum-6391/
CC-MAIN-2017-09
refinedweb
239
78.18
Sascha Brawer <address@hidden> wrote on Fri, 19 Mar 2004 12:05:55 +0100: > [loading service providers from "META-INF/services/*" in external JARs] >2. Which namespace? >3. The unit tests (see attached ForMauve.tar.gz) run checks on >gnu.classpath.ServiceFactory. This seems a bit unclean, since Mauve was >once meant to be independent of Classpath. A possibility would be to >change the tests so that they check the public API >javax.imageio.spi.ServiceRegistry.lookupProviders Since there seem to be no objects with respect to the gnu.classpath namespace, I'll commit gnu.classpath.ServiceFactory this Wednesday. The Mauve tests, which I'll also commit on Wednesday, will run checks on the public API javax.imageio.spi.ServiceRegistry.lookupProviders, not on something specific to Classpath. Thus, I'll also commit a mostly stubbed javax.imageio.spi.ServiceRegistry, whose only implemented method will be lookupProviders. Please tell me by Tuesday in case you don't agree. -- Sascha Sascha Brawer, address@hidden,
http://lists.gnu.org/archive/html/classpath/2004-03/msg00173.html
CC-MAIN-2015-18
refinedweb
162
61.73
setup.py should not try to load ctypes DLL on Windows (or any platform for that matter) Running "python setup.py ..." should not be using ctypes to load curl library (when you only need to find the version). This makes it impossible to build the package on a machine different than the one on which it will be used. Please the see the full Windows build log at: {{{ Traceback (most recent call last): File "setup.py", line 8, in <module> from pylibcurl import __version__ File "g:\tmp\tmpscd0np-pypm-pylibcurl-0.7.5\pylibcurl-0.7.5\pylibcurl__init__.py", line 2, in <module> from curl import Curl File "g:\tmp\tmpscd0np-pypm-pylibcurl-0.7.5\pylibcurl-0.7.5\pylibcurl\curl.py", line 7, in <module> import lib File "g:\tmp\tmpscd0np-pypm-pylibcurl-0.7.5\pylibcurl-0.7.5\pylibcurl\lib.py", line 10, in <module> native = ctypes.cdll.libcurl File "C:\Python26\lib\ctypes__init.py", line 423, in getattr__ dll = self._dlltype(name) File "C:\Python26\lib\ctypes__init.py", line 353, in init__ self._handle = _dlopen(self._name, mode) WindowsError: [Error 126] The specified module could not be found }}} thx, fixed Thx, but have you tested your fix? "from pylibcurl import about" will import init.py automatically. One solution is to have a pylibcurl/VERSION.txt and "read" the version information from that. Let author name/email be in setup.py. yes, you right! thank you for your solution
https://bitbucket.org/jungle/pylibcurl/issues/2/setuppy-should-not-try-to-load-ctypes-dll
CC-MAIN-2017-43
refinedweb
243
70.39
importing form Excel -fs- is from SSC. Please remember to explain where user-written programs you refer to come from. The " character before `name' looks to be in the wrong place. Also, avoid using backslashes just before macro references for reasons documented in and indeed in the manual. I'd try import excel using "D:\Users\n11094\Desktop\Rahavard Returns\New folder/`name'", sheet("Sheet1"), clear Nick njcoxstata@gmail.com On 24 May 2013 18:31, Nima Darbari <ramharz@gmail.com> wrote: > to change their format to .dta. I am trying different variants of the > code below but I always recieve error messages like 'Invalid 1' and I > am not even successful with making Stata read even one file. I have > already spent half of day on it so any comment is highly appreciated. > > set more off > fs > foreach name in `r(files)'{ > import excel using "D:\Users\n11094\Desktop\Rahavard Returns\New > folder\"`name', sheet("Sheet1"), clear > keep A G > drop in 1 > save `name' > } > > Something else which is strange to me is that apparently there is a > difference between "Import excl" and "Import excel using" in Stata. > The first command works well in command window but it doesnt work in > .do files! > * > * For searches and help try: > * > * > * * * For searches and help try: * * *
http://www.stata.com/statalist/archive/2013-05/msg00794.html
CC-MAIN-2016-50
refinedweb
214
63.7
To make life simpler for developers, React has introduced a wide variety of hooks. In addition, React allows us to build our own custom hooks. Today, I will explain how we can create and use React custom hooks. What are Custom Hooks in React? React custom hooks are a way to extract component logic into reusable functions. There is one convention you should know about before writing our own React hooks "use" in front of the custom hook React advises us to only use React hooks inside React functional components or custom hooks. React advises us not to use React hooks inside regular JS functions. The thought process behind this is that if we use React hooks inside normal JS functions, there is a chance for them to get "hidden" inside the call stack. Especially in a large codebase, it would be impossible to go through each and every function to see where React hooks have been used. The thought process is the same in this case as well. It would be simpler for us to determine where React hooks have been used if we prefixed our custom hook names with "use". So, the name of your custom hook should look like this useMyCustomHook() useOnlineStatus() useCommentFilter() How to write React Custom Hooks? I've created a simple React hook to check if a given player is retired or not. useRetiredStatus.js import {useEffect, useState} from "react"; const useRetiredStatus = (player) => { const [isRetired, setIsRetired] = useState(null); useEffect(() => { //Assumption: The age of retirement for cricket is 40 yrs player?.age > 40 ? setIsRetired(true) : setIsRetired(false) }) return isRetired; } export default useRetiredStatus; App.js import React, {useEffect, useState} from 'react'; import useRetiredStatus from "./useRetiredStatus"; const players = [ {name: "Kumar Sangakkara", age: 44}, {name: "Angelo Mathews", age: 35}, {name: "Rohit Sharma", age: 35}, {name: "Mahela Jayawardene", age: 45}, {name: "David Miller ", age: 33}, ] function App() { const [player, setPlayer] = useState(players[2]); const retiredStatus = useRetiredStatus(player); return ( <> {`Dear Cricket Fans, ${player.name} is ${retiredStatus ? 'retired' : 'still playing the game'}`} </> ); } export default App; Output With React Custom Hooks, there are no limitations. We can change input and output variables into anything we want just like in a regular function. With this knowledge, you will be able to create custom hooks for all the unique requirements in your projects. Can't I just use a JS function, instead of creating a custom hook? You can use a JS function if your code does not make use of React hooks. If the code contains React hooks, you should create a custom hook so that your code aligns with React's rules of hooks Conclusion Learning how to make use of React custom hooks will make your code look more cleaner and more readable. I hope you will be able to implement React custom hooks in your next project. Thank you for reading the article. Hope you learned something valuable today. Until next time, take care guys. Discussion (4) Just a heads up that you can add highlighting to the code blocks if you'd like. Just change: ... to specify the language: More details in our editor guide! Hi Luke, Thanks for the heads up. I didn't know about that until you told me. I've updated the code snippets accordingly. Thanks for the support ❤️✌️ Custom Hooks really increase the power and flexibility for React applications. I'm trying to use them as much as possible now. Have a look at dev.to/ritikbanger/how-to-create-a...
https://dev.to/thisurathenuka/how-to-write-our-own-custom-hooks-in-react-1b1e
CC-MAIN-2022-33
refinedweb
577
64.3
NAME tkill, tgkill - send a signal to a thread SYNOPSIS #include <signal.h> /* Definition of SIG* constants */ #include <sys/syscall.h> /* Definition of SYS_* constants */ #include <unistd.h> int syscall(SYS_tkill, pid_t tid, int sig); #include <signal.h> int tgkill(pid_t tgid, pid_t tid, int sig); Note: glibc provides no wrapper for tkill(), necessitating the use of syscall(2). DESCRIPTION. RETURN VALUE On success, zero is returned. On error, -1 is returned, and errno is set to indicate the error. ERRORS - EAGAIN -. Before glibc 2.30, there was also no wrapper function for tgkill(). SEE ALSO clone(2), gettid(2), kill(2), rt_sigqueueinfo(2) COLOPHON This page is part of release 5.13 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at.
https://man.archlinux.org/man/tgkill.2.en
CC-MAIN-2022-40
refinedweb
139
69.48
QtQml.qtqml-typesystem-topic The types which may be used in the definition of an object hierarchy in a QML document can come from various sources. They may be: - provided natively by the QML language - registered via C++ by QML modules - provided as QML documents by QML modules Furthermore, application developers can provide their own types, either by registering C++ types directly, or by defining reusable components in QML documents which can then be imported. Wherever the type definitions come from, the engine will enforce type-safety for properties and instances of those types. Basic Types The QML language has built-in support for various primitive types including integers, double-precision floating point numbers, strings, and boolean values. Objects may have properties of these types, and values of these types may be passed as arguments to methods of objects. See the QML Basic Types documentation for more information about basic types. JavaScript Types JavaScript objects and arrays are supported by the QML engine. Any standard JavaScript type can be created and stored using the generic var type. For example, the standard Date and Array types are available, as below: import QtQuick 2.0 Item { property var theArray: new Array() property var theDate: new Date() Component.onCompleted: { for (var i = 0; i < 10; i++) theArray.push("Item " + i) console.log("There are", theArray.length, "items in the array") console.log("The time is", theDate.toUTCString()) } } See JavaScript Expressions in QML Documents for more details. QML Object Types A QML object type is a type from which a QML object can be instantiated. QML object types are derived from QtObject, and are provided by QML modules. Applications can import these modules to use the object types they provide. The QtQuick module provides the most common object types needed to create user interfaces in QML. Finally, every QML document implicitly defines a QML object type, which can be re-used in other QML documents. See the documentation about object types in the QML type system for in-depth information about object types.
https://phone.docs.ubuntu.com/en/apps/api-qml-current/QtQml.qtqml-typesystem-topic
CC-MAIN-2020-45
refinedweb
339
56.66
Creating a tree-type app In this tutorial we will create an application that implements a 'tree' entity type hierarchy, consisting of two entity types (with parent-child relation). The child entity type allows the user to click on a map to define a GeoPoint. The parent entity type collects the locations on each child entity and shows them together on a single map, making use of the API. For more examples of 'tree' type applications, please visit the sample apps A template 'tree' type app can be generated using the CLI. We will use this template app as a starting point for the tutorial. Run the following command (replace tree-tutorial with the folder name of your choice): viktor-cli create-app --app-type tree tree-tutorial Navigate to the newly created folder, run the install command from within the folder to install the app and its dependencies, clear any previous saved local database, and run start to start to app: viktor-cli install viktor-cli clear viktor-cli start Login to the app in your browser to verify that the app is installed and running as expected. You will be redirected to the app's dashboard. If you see the "Workspaces" menu upon logging in, click the "Open" button on the "Development" workspace. After opening, you will be redirected to the app's dashboard. The tree-type app generated by the CLI consists of a top folder, called "My Folder", shown in the sidebar on the left side of the screen. Click "My Folder" to enter the folder. Now, let's add a new object by clicking the + (create new object) button on the right side of the screen. You'll now see a menu where you can add a new object: Create a new object of type "My Entity Type" Provide a name for the new object and click "Create and open", to create the new object and automatically navigate to the object's editor (it should be empty). From here, you can navigate back to "My Folder" in a few different ways: By clicking the back button in the top right side of the screen: By clicking the menu button in the top left corner of the screen. This will extend (or collapse) the side menu. You can expand "My Folder" to see all containing objects, or click on it: By clicking the breadcrumbs at the top of the screen: Delete the created entity afterwards. Folder structure The app has the following folder structure: tree-tutorial ├── app │ ├── my_entity_type │ │ ├── __init__.py │ │ └── controller.py │ ├── my_folder │ │ ├── __init__.py │ │ └── controller.py │ └── __init__.py ├── CHANGELOG.md ├── README.md ├── requirements.txt ├── tests │ └── __init__.py └── viktor.config.toml Note that the app type ('tree') has been defined in viktor.config.toml: app_type = 'tree' To keep things simple, we will stick to the current entity type and corresponding folder names within this tutorial. Defining the GeoPoint (child) Let's modify MyEntityType so that the user can define a GeoPoint on a map. Open app/my_entity_type/controller.py and replace it with the following code: from viktor import ViktorControllerfrom viktor.parametrization import ViktorParametrization, GeoPointFieldfrom viktor.views import MapView, MapResult, MapPointclass Parametrization(ViktorParametrization): geo_point = GeoPointField("Select point")class Controller(ViktorController): label = 'My geo-point' parametrization = Parametrization @MapView("Map", duration_guess=1) def map_view(self, params, **kwargs): features = [] if params.geo_point: features.append(MapPoint.from_geo_point(params.geo_point)) return MapResult(features) In your browser, open "My Folder" and create a few entities of type "My geo-point". Don't forget to select a point on the map for each of them and save (including the entity created at the start of this tutorial, if you did not delete it before). Defining the Overview (parent) To show all the geo-points we just created, let's modify MyFolder to iterate over all its children and obtain the point from the params for each of them. Open app/my_folder/controller.py and replace it with the following code: from viktor import ViktorControllerfrom viktor.api_v1 import APIfrom viktor.views import MapView, MapResult, MapPointclass Controller(ViktorController): label = 'Overview' children = ['MyEntityType'] show_children_as = 'Table' @MapView("Map", duration_guess=1) def map_view(self, params, entity_id, **kwargs): features = [] for child in API().get_entity(entity_id).children(): point = child.last_saved_params.geo_point if point: features.append(MapPoint.from_geo_point(point)) return MapResult(features) In your browser, open the editor of "My Folder". Within the "Map" view, click the 3 dots and select "Center map", to fit all objects within the view. You should now be able to see all your previously created geo-points.
https://docs.viktor.ai/docs/create-apps/tree-apps/tree-app-tutorial/
CC-MAIN-2022-40
refinedweb
752
52.39
August 11, 2016 - Two more classes I’m looking into taking, both Python. - Euler #4 - Gave up looking for a more complex solution and just brute forced it assuming the runtime would still be sufficiently small. - Hand-written notes and logic. Needed a function just to reverse the integer and test if the same. - Store largest value in a variable. - Once done just print whatever value was found to be the largest. - My code here: #include <math.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include <stdbool.h> bool isPalindrome(int num); int main(void) { int max = 0; int num; for (int i = 999; i >= 100; i--) { for (int j = i; j >= 100; j--) { num = i*j; if (isPalindrome(num) && num > max) { max = num; } } } printf("%i\n", max); } bool isPalindrome(int num) { int reverse = 0; int n = num; while (n != 0) { reverse *= 10; reverse += n%10; n /= 10; } if (reverse == num) return true; else return false; } August 12, 2016 - Forgot to mention the new book I got: A Mind For Numbers. - Finished The Checklist Manifesto. How can I incorporate this into development? Unsure, but I am sure it will help with any type of team environment. Perhaps a list of steps to do before I tackle any problem? - I got into the Rmotr course! Now to decide if I am capable of doing it. I don’t have much time to decide (Monday the 15th). - I missed the questions on OOP in the application, since I’ve never done it (and it’s not a topic covered in CS50). Will I be able to learn enough about it in time to be comfortable in the course? I was initially rejected because of it, but in asking about the course and application that was overridden since I guess I showed some kind of persistence. - I asked the guys for resources I could use to learn OOP as well. - Also I am going to try and set up a call with them so I can really make sure this is a good fit for me and I won’t be starting at -1 when everyone else is at 11. I am willing to work hard and get it done though. Won’t say I’m not nervous though. August 13, 2016 - Call with Santiago went very well (one of the founders of Rmotr.com) - I felt very good and confident about the course during and after the call. - Santiago wanted me to just be comfortable about my decision. - So my current plan is to finish CS50 and learn OOP and some basic Python before the next session which starts October 10th. - Start Oct 10 and commit 30 hours a week. - There is a live OOP class Aug 29th with Rmotr that I can drop-in on, and I will. - Decorators course video: - Examples of some projects covered in the course Santiago sent to me: August 14, 2016 - Python resources to read: - A Byte of Python - Automate the Boring Stuff - The Hitchhiker’s Guide to Python - Python Practice Book - Think Python: How to Think Like a Computer Scientist - Dive Into Python 3 - Intermediate Python - Python Cookbook - Functional Programming in Python - HackerRank has Project Euler built into it. I no longer really need to just do it through the IDE alone. - - Solved Problem 1 again. They changed it up a bit from the original question. It requires you to be able to put in any input number and now requires use of larger integer data types (unsigned long long). - Also to cut down on the runtime (it would fail you for taking too long) you needed to know the formula for calculating the sum of the multiples of 3 and 5. August 15, 2016 - “Many of my students have been asking questions lately about how to do technical interviews, so I've decided to write about my interviewing experiences. I will start by giving a number of anecdotes because they're interesting to everyone, but the later parts of this post are mainly targeted at prospective students who haven't done any software developer interviews before. “ - - “I had an interview where the interviewer asked "What is your favourite language?". My head wasn't in the right place at the time, and I said "Latin", and I went on to describe why I think Latin is such an interesting language. He was of course talking about programming languages. I didn't get an offer.” - Went to Panera after work and watched CS50 Week 5 lecture #2 and part of Week 6 lecture #1. - Apparently Problem Set 5 will be the hardest one. Yay? - How do I get skilled enough to work on open source projects? - Mind expanding books August 16,2016 - Finished Week 6 Lecture #1 video - A tiny bit more on data structures like Binary Search Trees, Hash Tables and Tries - Mostly focused on how the web works with protocols, ports, packets, etc gearing up to learn HTML and CSS. August 17, 2016 - CS50 Week 6: Section Videos - Stack (Data Structure) - Last in, first out (LIFO) - Can use arrays or linked lists - Push onto the stack - Pop off the stack - Queue - FIFO structure - Very similar to Stacks above - Array or Linked List - Enqueue (add to END) or Dequeue (remove elements from the FRONT) - It acts just like any other line - Size of queue plus the front of the queue is where you put the next element when enqueuing something. - To wrap around when you hit the end of the array size you can modulo against the size of the array. - Linked list based queues are just a doubly linked like that keeps track of the head and tail of the list only. - I’m excited to get into these data structures finally when it comes to coding them. I can finally see where I can finally touch some things developers do daily (even if it’s the slightest of touches). - PSET 5 Walkthrough for reference later: - CS50 Puzzle Day videos: - I’ll probably buy this Humble Bundle: - P.S. I bought it. Woo! 💸 August 18 2016 - CS50 Week 6: Section Videos (continued) - Hash Tables - Hash functions - Dealing with collisions - Linear probing - Arrays + Linked Lists = win - Reddit: I began teaching myself to code a year ago. I got hired at my first job 4 months ago. Here is a breakdown of somethings I was not ready for (FYI job is remote ruby/rails dev) - What Great Listeners Actually Do This is how hacking occurs in real life:
https://www.craigrodrigues.com/blog/2016/08/18/learning-to-code-week-14
CC-MAIN-2019-47
refinedweb
1,084
78.79
Adobe Flex is becoming a popular choice for generating the client side of enterprise Java applications. In this first of two articles, Dustin Marx demonstrates how Flex can help you deliver highly interactive user interfaces that access your Java EE application's enterprise logic. Get a hands-on introduction to perfecting a simple Flex client, then enable it to communicate with your Java EE server. Level: Beginner Flex 3 gives you another choice for building browser-based UIs for your Java EE applications. If you haven't yet discovered how simple it is to add rich clients to enterprise Java applications with Flex, this article could serve as your point of entry. You'll find out what benefits Flex brings to the table, how to create application layouts using Flex's XML grammar, and how to make your Flex client work with a Java EE application. Java developers adopting Flex We know that some Java developers are resistant to Flex as a front-end technology for Java EE, but there's a strong argument for giving Flex a chance. Author Dustin Marx discusses the factors driving Flex adoption in the Java community in a sidebar to this hands-on article. Before I ask you to install Flex and start putting together a sample application, let's consider the advantages of using Flex as a client-side technology. Flex offers advantages specific to Java developers and some that are more general. We'll look at both. Why choose Flex? Adopting a new technology means embracing a learning curve, which can take some convincing. Here are some general advantages to using Flex: - You can write Flex code once and run it in any Web browser for which a Flash Player plugin exists. None of the browser-detection or object-detection code typical of JavaScript or Ajax applications is required. - The target runtime (Flash Player 9 or later) is installed on more than 95 percent of Web browsers worldwide. - Flex is based on standards. Its scripting language (ActionScript 3.0) has roots in ECMAScript (the same specification implemented by JavaScript), and its layout language is a specific XML grammar called MXML. Familiarity with the underlying standards can help you learn Flex with relative ease. - Flex has a refreshingly simple mechanism for binding the property of one object in a Flex application to the property of another object in Flex. This addictive feature is commonly referred to as property binding. (JSR 295: Beans Binding is intended to add this feature to the Java language, but it won't be included in Java SE 7.) - You can associate the Flex-based front-end with any back-end technology using techniques that promote loose coupling. Flex provides built-in support for communication with back-ends via both traditional HTTP and SOAP-based Web services. - Flex provides a rich set of components, Flash effects (including animation, video, and audio), and accessibility features that make it easy to add richness and highly fluid experiences to a Web application. Flex for Java developers General benefits might be enough to attract you to Flex, but there are others that are mostly or entirely aimed at Java developers. One such benefit is the striking similarity between Java and ActionScript 3.0 in language features, concepts, and syntax. The languages use similar conditional statements, looping syntax, and even coding conventions. (It's arguable that ActionScript is more like Java than JavaFX Script.) Flex's Javadoc-like ASDoc documentation-generation tool uses the same comment syntax that you use in Java to generate documentation. ActionScript's packaging structure is related to directory structure in exactly the same way that Java approaches packages and directories. ActionScript 3 also provides class-based object-oriented features (such as classes in the Java sense, inheritance, and interfaces) and static typing. These additions to what most of us are used to in JavaScript make learning and using ActionScript easier. (ActionScript still makes dynamic typing and prototype-based inheritance available for situations when you want or need those features of traditional JavaScript.) Flex's ability to communicate with a Java EE back-end using HTTP or SOAP-based Web services is highly useful, but you're not limited to those communication approaches. Blaze DS -- a separate, open source product from Adobe -- gives you even greater flexibility for communicating between a Flex front-end and a Java EE back-end. BlazeDS lets you use JMS for communication and allows you to use object remoting with Java. BlazeDS also adds potential performance benefits because it uses the binary AMF3 format for faster communication than is normally experienced with XML. A third-party open source product called GraniteDS offers even more choices for applying a Flex-based front-end to a Java EE application. GraniteDS offers support for the AMF3 binary format and also some features not available with BlazeDS. For example, GraniteDS offers tools and service frameworks for more easily integrating Flex with back-ends based on EJB 3, the Spring Framework, Guice, or Seam. In discussing Flex so far, I've repeatedly used the words simple and easy. But don't just take my word for it. The best way to understand how simple and easy Flex basics are is to try them out for yourself. In the next sections you'll implement a sample application, refactor it to add features and reduce boilerplate code, and then establish communication between your new, Flex-based client and a Java servlet. Acquiring and installing Flex This article's examples use the Flex 3.2 SDK. If you want to build and run the examples, download the Flex SDK (including the command-line compiler and debugger). A single ZIP file contains the Flex SDK for multiple platforms. Unzip the file into an obvious location, such as C:\flex_sdk_3_2. For convenience, add the location of the Flex SDK bin directory in the path so that the command-line tools can be run from any directory. I like to create a FLEX_HOME environment variable that points at the Flex SDK location and then add $FLEX_HOME/bin or %FLEX_HOME%\bin to the PATH. You can verify a correct installation of Flex by running the command mxmlc -version, as shown in Figure 1. Although it's not required to build and run the examples, you might be interested in downloading FlexBuilder 3, which is available at no cost for a trial period. FlexBuilder lets you use any text editor (such as JEdit or vim) or Java IDE (such as NetBeans or Eclipse) to write and maintain MXML and ActionScript files. Aptana Studio and Spket IDE include specific support for editing Flex-related files. MXML: Flex layout with XML Flex uses MXML for defining a Flex application's layout. Flex layout files are typically named with a .mxml extension. MXML code must be well-formed XML and use XML namespaces. The example in Listing 1 demonstrates a simple but completely functional Flex application, written entirely with MXML, that displays a list of selected JavaWorld articles. Listing 1. Static MXML example <?xml version="1.0" encoding="UTF-8" ?> <mx:Application xmlns: <mx:Panel <mx:Label <mx:Grid> <mx:GridRow> <mx:GridItem> <mx:Label </mx:GridItem> Item> <mx:Label </mx:GridItem> </mx:GridRow> </mx:Grid> </mx:Panel> </mx:Application> Because this example is static, it doesn't show off many of Flex's and Flash's advantages. However, it serves as a good introduction to MXML. All of the code in Listing 1 is well-formed XML. Most of the XML lines in Listing 1 are related to the same lines of code (repeating GridRow elements with nested GridItem and Label elements). They are used to define a static display grid with the Grid component and its GridRow and GridItem sub-elements. The use of <Grid>, <GridRow>, and <GridItem> organize and present data in a manner similar to how HTML table elements <table>, <tr>, and <td>, respectively, are often used. This first MXML example also demonstrates the <mx:application> root tag used in all MXML applications. This tag includes an explicit width and height for the Flex application. The mx prefix is associated with the Flex XML namespace as part of this root element. You'll use the Flex command-line compiler, mxmlc, to compile this article's examples. The Flex defaults (defined in the flex-config.xml file) are sufficient for the examples' needs, making compilation with mxmlc easy. Assuming the first MXML listing is saved in a file named Example1.mxml, you compile it with this command: mxmlc Example1.mxml In accordance with the default settings, this MXML file is compiled into an SWF file, called Example1.swf, that's placed in the same directory as the MXML file it was generated from. You can execute the SWF file by opening it in a Web browser or by simply entering the entire filename at the command line. The rendered SWF file looks something like Figure 2.
http://www.javaworld.com/article/2077970/core-java/java-ee-and-flex--part-1--a-compelling-combination.html
CC-MAIN-2016-30
refinedweb
1,488
53.71
3,774 Related Items Preceded by: Starke telegraph Full Text -' -. - -- --,..... "- .. ''' ' .. J .J. l U" U '"IIC ''' .-lI'.ff' J . 1IV' '' '' r. I. 1. "' J , ; 1 ; I I i, ''SEP 14981\ pKy LIaRAT I OF f1.A BradfordThe i 1 0 IJl1t '1"e yyC'i Inside... Outside. Two Section. . . SECTION Ai 10 Fogo* The National Weather Service Office In Jacksonville advises the Hard Now. . .. .. .,..MA 0 00000 P K pP) extended forecast for Friday through Sunday to be partly cloudy Editorial Pag. . . .. .. .. .4ATho :7'7'70 P4v Q1.Gal . with a chance of showers decreasing late in the week. Social Sc.n..6.7./-9 1 : 4-1Qt oy 11U . Temperatures promise to be lower, with highs In the upper 80's Public Notlcoi. . . .. .9-10A '10...\. a G4g1"{ 'I y\ 'JZGGP1N and lows in the mid 70's. E-SE winds, 5-10 mph. Sport. . . . .. . .. .IA 1 ea0 A tropical depression, which may be upgraded to a tropical E. storm, ia forming in the Atlantic Ocean, some 1,200 miles east of SECTION Bi 12 Pogo* E.S \ .r \ Bermuda, spawning grounds for east-coast hurricanes. Aroa Art Show.. ... . .. ...31 I There will be a full moon September 7. Foliar Parent. . . . . .21 Rainfall for the month of August: Highlands Tower,8.42 In.; New MA Award. . . . . .SB River Tower, 12.64 in. A,.. Death. .. .. . .. .. .7B I The 30 year average rainfall has been, June, 7.07 in., July, 7.no Now. Brief*. . . . . ....,. Sweetest Strawberries Tis* Side of Heaven__ I in., Aug., 8.10 In. Cloiillled Ad.. . . . .*-10B 110th Year STARKE, FLORIDA 25 Cents Copy . .. ... __ .. ... .. ... ... 7th Issue .Thursday Sept.. 3,1187 USPS 062-700_ :" 0 ..: u-::'. .-- :" ',, .: __: ':. . ." ".: .. -do.'C. .. 0 "::"'c' .- .-: ',:' "' "1'_' : .. '. ', .,' :: : ': _.. '. -": "c" cO :: : ,....: ., '" .:' .'-.." .'.:.- '_. : ':.'- ':.,:',, :,:' .: I II ffi. ;;_ '. .:KIo 1"\a\ >,.." -.", I 1 iiIi Solid Waste FeeI I I . ' . ," :1.il: : . ? / 1 I - Of $75/year :Ii i Set by County. !, by Buster Rahn that a "notification of special assess , b BCT Staff WriterA ment" must be mailed to each tax- : : solid waste fee of $75 per year payer, followed by a public hearing, 4, has been tentatively set by Bradford prior to mailing out statements by I County Commissioners.The the tax collector's office. 4a4t proposed fee schedule was approved Ms. Pierce said liens placed 5-0 in a Monday night, Aug. against property for non-payment of 31, work session called to hear committee assessments are good for only five ' 4 recommendations. A public years, and are not renewable. She t' 1 k w n Y k- hearing is set Wednesday, Sept. 9, at quoted an attorney general's opinion \ www 4 7:30 p.m. on the proposed solid for the above statement. ';1 waste control ordinance, at which County Attorney Reggie Flynn {'t I time the commission is expected to agreed the county cannot handle i approve the ordinance. The fee non-payment of assessments the j t "" W schedule is expected to be passed in same as nQn-payment of taxes, but ,. a resolution. the county can place liens against Commissioners took a real property, and renew the liens "get-tough" attitude Monday night each five years, until the land > and got serious about meeting changes hands, at which time, the 'i deadlines that are drawing steadily liens plus accrued interest will be I closer in the solid waste program. paid, since no buyer will purchase I i' Chairman Lawrence Mosley let it be land with outstanding liabilities. known the county expects coopera- Flynn agreed, that in theory, liens \ tion from the tax collector's office, may exceed the value of the property - and expects the City of Starke to over a long period of non- Downtown Project Work Under Way... move expediously in signing an in- payment of the assessment. terlocal agreement giving the coun- Ms. Pierce stated the intention of A surveying crew from Columbia Paving Co. gets ready to lay out the Completion of the downtown project Is March 1988. It begins to ty permission to assess city the tax collector's office to parking lot across Thompson Street from the Starke city hall, which has look as if Call Street will be torn up during the Christmas shopping residents.. cooperate with the commissioners in been cleared and Is being readied for paving.It season. the collection of the assessment. She Is the first work On the renovation of historical downtown Starke pro- The Assessments... said statutes prohibit the collectionof ject. Crew members are (l-r) Jimmy Simmons and Willie Simmons, both At Issue this week is paving of the city-owned lot behind the historical Director of Solid Waste Darrell fees by the tax collector's office, of Sanderson, and Wayne Sweat of Lake City. Rosenberg building, which was not Included In the Columbia Paving bid. O'Neal presented the report, but said the office is entitled to The parking lot Is being paved first so there will be place to park for Also at issue is whether the Rosenberg building, over 100 years old, will prepared by a committee of com- recover the cost of collections.An . downtown customers and employees when Call Street Is torn up. be standing when the downtown project Is completed missioners, staff and the public, to additional employee and recommend the following: counter space will be needed to handle - Single family residents, $75 per collection of solid waste fees,Ms. I Does Rosenberg: :Building! Have a Future? year.Commercial Commercial A B,, $150$300 per per year year Pierce agreed the tax to said fund collector's the The cost commissioners office of collectionsby .. ...... :_ .. Ms..Pierce pointed out that collections . '0 --' r --.jiod.-- ...., Commercial C,.$600 per year \ by Buster Rahn are based on acquisition cost, and"since market, and make a recom datlon Other Items... Commercial firms are to be charged by the rex collector's office is ' the city paid $60,000 for the to the council. voluntary, since the statute BCT Staff WriterIn The city is committed Clerk Neil Tucker distributed note according to the amount of solid says a regularly scheduled council building, it may qualify for 50 per- to providing lights for the waste generated. Firms generatingless "may," rather than "shall." She books to councilmen meeting Tuesday night September cent of that amount. downtown project, but the council sonnel policies and containing grades, ask-per- than 5 cubic yards per week are stated that the commissioners would 1, which promised to be short Although councilman Charles wants to be certain it is getting the them to review the pay contents, and in class A, between 5-10 cubic yards surely lose a lawsuit in an attempt to because of its short agenda, the Schaefer favors razing the building best light for the money. ing make comments at a subsequent per week are in class B, and those force the tax collector's office to Starke council got bogged down in immediately, he moved to take the Neither Mayor Silcox nor Attorney generating more than 10 cubic yards make the collections. discussing one of Starke's oldest task force recommendation under Brown reported any communicationwith meeting. per week are in class C. Commissioner Maxie Carter, Jr. Clerk Tucker asked for and received - landmarksthe Rosenberg building advisement. The motion passed, county commissioners in The committee report estimates said, "It looks like you have us bet- without a clear cut decision for the regard to the interlocal approval to purchase a 650 line ween a rock and a hard place" which is over one hundred years old, agreement for $4,200. The equipment is there are 6,500 single residences and printer, and what to do with it. future of the building. between the City of Starke and Brad- In his 1987-88 budget, at a much 695 apartments in the county that Commission Chairman Lawrence Mosley said, "I wonder how ford County, prompting Brown to qualify for the minimum charge. you City council members seem to be figure.Council . higher tell the next election Engineer Questioned... would voters in the "I'll draw an and class A commercial say up agreement There are 470 in agreement to tear the building told Chief of Police Jimmy " that wouldn't ? down, and utilize the space for a Grants Coordinator Linda Day ex- send it to the county Maybe we Bowen to continue working with the firms. 35 class B, and 21 class C com- you cooperate parking lot. pressed concerns with the engineering should take the initiative." Florida Department of Transportation mercial firms. Based on the above The downtown task force met firm, England-Thimes and The interlocal agreement is con- to get turn lanes on US-301 bet- figures, the total annual revenue for Will City Cooperate... Tuesday afternoon, prior to the Miller, Inc., and asked the council to cerned with allowing the county to ween Pratt and Washington Streets. the county will be $633,225. Chairman Mosley asked if the City council meeting, and voted 6-1 to pass a motion, instructing the firm bill city residents for solid waste Turn lanes will preclude street-side of Starke has signed the interlocal postpone razing the building for 36 to attend a meeting Thursday, disposal.The parking on the busy highway, in flow Much Needed...? agreement, allowing the county to months, during which time all September 10, 7:30 p.m.,prepared to council passed a motion frontofthe high school. Commissioners have been advised bill city residents along with county avenues might be explored for discuss the contractor's completion enabling Mayor Silcox to sign an repeatedly to prepare for closure of residents. Pat Farnsworth, CPA, renovating the building.John Miller, schedule, report on the status of the agreement with CSX (Railroad) for the county's landfill on SR-100S said the city, acting on instructionsof president of the downtown committee Walnut-Call St. intersection and crossing its tracks with water lines. within three years.A City Attorney Terence Brown, is carried the request to the coun- parking spaces. The council passedthe The council also passed a motionto U y No"... recent study by the engineeringfirm waiting for the enabling ordinance to cil requested motion. accept a 15 foot utility easement or 'I 1- related to council his Camp, Dresser and McKee of be passed, prior to its signing. "If that building is still sitting City Attorney Terence Brown ad- from Lillian Bishop, to facilitate the r a Mi support of the "Just Gainesville, puts the cost of closureat Chairman Mosley said, "We there when the (revitalization) project vised Ms. Day to document all con- running of a line across her proper gram, getting underd $55 per acre, for a total of $1.1 aren't dealing with Mr. Brown, is finished, we should all be run versations with the engineering firm ty County.The mayor million. In order to fund this amount we're dealing with the city." Mosley out of town, the city council, the task in writing. Following each telephone qded a r t meeting at the within the three year period, and then directed Deputy Clerk Shelly force and the grants coordinator," call, Ms. Day should write a letter to Property Purchased... Sa'fifa Fe Co unity College cover operating expenses during the Bowen to write City Clerk Neil said Mayor Vernon Silcox. the company, restating what was Attorney Brown presented a //UStarke BranetftVooperathre which was a same period, it is essential to raise Tucker, advising him that the Councilman Jimmy Crosby asked, said, or her understanding of the resolution ((87-11)) allowing the city to/ efftief between local approximately $650,000 per year. deadline for signing the interlocal "Why the sudden Interest in the conversation said attorney Brown. purchase the Brown building on E.I eland 14 enforcementj Commissioner Joe Riddick said agreement is October 1. Call St., for $35,457. I the tentative assessment still fails to has building been?there Crosby for months said the, while building the Street Lights.., The building is adjacent to the\ Brow o& the drug pro- address the problem of obtaining ad- Zoning Board Costs... downtown revitalization project has Ms. Day asked the city to pur- Rosenberg building, and was pur- > Lls bad M dford County, butt ditional land for a new landfill, Darrell O'Neslspeaking as Director been going on, and suddenly there is chase 43 street lights costing $32,000 chased by the city for renovation or bain some urban areas. either independently or in coopera- of Zoning, told commissionersthat a move afoot to save the building, with city funds, for the downtown razing, in keeping with the Unhiiii lrty, drugs are in Brad tion with other counties.All the City of Starke is not currently - which has been slated for razing project. Schaefer moved to buy the downtown revitalization project. ford's middle school, as well as the costs of operating the solid defraying its share of zoning ever since the city purchased it. lights as requested, then withdrewthe One councilman said, "If we tear high school waste program, formally funded in board activities. For the past six Miller said there is a chance the ci- motion when he was told the city down the Brown building, the Mayor Silcox proposed a fund of general funds have been transfer- months, O'Neal said, city zoning has ty qualify for state funds to had agreed to fund only about 50 per- Rosenberg building will fall." $2,000 be established for use by the red to the special assessment, taken up 50 percent of the zoning renovate may the building, but admittedthe cent of the requested amount.Mayor Another suggested the wall of the Police Department in buying information releasing some $200,000 for other staff's time and the formula shouldbe $30,000 possibly available Silcox requested Bill Weldon, Rosenberg building might be hit by and/or drugs. purposes, and allowing commis- update O'Neal told commis- wouldn't far toward renovation. superintendent of power systems, to the wrecking ball accidently, while The council concurred and set up sioners to reduce ad valorem taxesto sioners that the city generated a profit Grants for go old buildings review the various lights on the razing the Brown building. the fund the rolled back rate. However, the of$6,300 last year, since$20,000 in renovating cost of operating the landfill will fees turned in by his office exceeded escalate to $371,885 next year, disbursements by that amount. because of additional cost of going Chairman Mosley asked O'Neal I Public Hearings Set on Budgets New LawsThe "high-rise." and Carter to meet with city officials Results of water sampling at the in an attempt to restructure the landfill have not been received agreement between the two bodies, Bradford County school on spending plans. tion in the county. The school board million operating budget as well as , which could have serious consequences in order that both might pay for the the assessment The various are planningto proposes to raise property taxes 1.5 proposed board, county commissioners and ci- groups if amounts. to the budget contamination equitable ty commissioners of the four incor- spend approximately $27 million mills to purchase school buses, landfill operation, amounting to is found. Ms. Pierce suggested the commis- porated municipalities in the county dollars of public funds next year. replacements for an aging fleet. The $633,000. ___ '_ sioners might want to look at oc: will hold public hearings during the The budgets are all tentatively first public hearing is set for Tues- In addition to budgetary matters, Tax Collector... cupational license fees, which have balanced. Each board has spent day, September 8, at 7 p.m., in the commissioners will consider a week of September 7-11 for the purpose Ms. Pierce,deputy clerk in remained constant at$15 for several of finalizing budgets for their hours working on the budgets, and school administrative offices on N. boating ordinance that has to do with Gladys . the tax collector's office, addressedthe years. respective areas of concern. may not welcome last minute Temple AveBradford establishing no-wake. areas on Santa commission, with a law book in The commissioners agreed the fee Lake. _, The public is urged to attend one changes without good reason. County Commissioners Fe hand, to the proposed ordinance is out of line with other counties, but Bradford County School Board has will meet Wednesday, September 9, The City of Starke will hold a say or more of the meetings, to learn requires changes. decided taxes have been increased how the public's money will be spentin proposed an operating budget of at 8 p.m., in the courthouse. They public hearing Thursday: Mrs. Pierce told commissioners enough for this time. FY 1987-88, and voice an opinion $13.65 million to fund public educa- will discuss the proposed $5.96 September: 9, at 7:30 p.m. I Planning Under Way for New Developmental Kindergarten Program . A developmental kindergartenpilot and have visited schools which have students chosen. custodial employees, and ones nueafor such problems) exist In lowering the' program to be run at Starke developmental kindergartens, suchas Board Member Evelyn Chastain Salary Hassle... this school year under a new non-Instructional salaries for new and Southside Elementary Schools in Clay County. asked if the children would be Despite a lengthy and lively schedule. employees.The tame problem could starting in the 1988-89 term was approved "The folks over there(Green Cove grouped by ability. No, said Ms. discussion the school board remained A custodian with 16 years ex- prevent a current teacher aide from Monday night Aug. 17, by Springs) are very happy with the Winkler, they would be grouped undecided on how much addi- perience earns $13.043 per year. A moving to secretary."We . the Bradford School Board. program" Ms. Winkler told the developmentally. It has nothing to tional salary should be paid a bead current head custodian with 16 years told the employees there is no Need for the program arises school board. do with ability or IQ. custodian as opposed to a regular experience earns $15,464. incentive to move," said McLeod. because tome children are not The school board gave the go- Former K teacher Mary Agnes custodlaa The discussion ensued when SE "That must not be right because developmentally ready for a regular ahead for Ms. Winkler and her com- Ferguson pointed out a child might The board approved salary ranges Principal Wayne McLeod pointedout ember have moved," said Board kindergarten class, explained Cur- mittee to develop a curricula for the have to remain in kindergarten for for food service workers and school neither of his custodians already Evelyn Chastain. riculum Coordinator Berney program this year, and to make two years. Ms. Winkler said that if a bus drivers after being assured hired could take the head Winkler. Developmental readiness plans to implement the program child "blossomed" he/she could be those salaries fall In the middle of custodian' Job because they would The transition Is tough,said Chair does not necessarily coincide with a next year. moved to a regular kindergarten. the range of surrounding school lose money under the new salary man Rodney Hall, but current child's age or ability. Current plans are to have one Members of the developmental districts, but tabled. the .custodian schedule. McLeod had to go outsidethe salaries were protected In makingthe Such students would benefit from developmental kindergarten at each. kindergarten committee are Ms. issue. system and hire a custodian with new N-I salary schedule. It does special attention given in a SS and SE. Board Member Len Winkler, Carolyn Folsom, Eugenia Administrator Dewey McKinneyhad less experience to be head custo- stop some movement. Hall said. developmental kindergarten, explained Schlofman asked if there would be Whitehead, Mary Agnes Ferguson, studied the program and recom- dian. SE! now has two custodians " M*. Winkler. She pointed out room. SE Principal Wayne McLeod Terry hey Denise Adams Shirley mended a $2,800 per year increase. with more experience and higher Supt Jim Duncan doubts there Is that Bradford personnel have been replied, yes, that one of the currentK Bagwell, Monterey Wasdin, Joe The problem arises because of two salaries than the head custodian. any other situation as closely relatedas planning the program for two years, classrooms, could be used for the Watson, and Lynn Marshall. alary schedules, one for current Board members explained that custodian and bead custodian. _ _ _ - -- 4. , - ..... .. .. ... .. . ... !l ,ot . -..;... ::-; """ ,-' .. .. '." .. ... . .... .. .. .. ., ... .. .. .. '" .. ..".. _n. ... .. ', .. ."" .. ,, ... . " ,. Pale ZA -CW Band o'ttli- I; : Meeting for Drug Free Schools The Band use Is ten times ment" stressed Denton. relations brochure, establish an concensus'of those attending. By the High School will In the schools than According to Denton it Is not easy education and referral policy review time a user reaches high school, it Is tonight ( ( Deputy Sheriff to make a case aginst a drug dealer. committee to recommend policiesfor a referral problem, said Deputy band Thursday that the problem An undercover agent must make a implementation by the School Denton. room. than other drugs. Board.. Parents and invited totally different Undercover agents are not easy to An additional committee was proposed "There are several courses being attend. to One is to pre- put in the field. They must be wired by Rev. Jerry Patton pastorof taught in the schools now that have"a Gator : from becoming for sound and carry tape recorders the First Presbyterian Church of drug education component built in, are going to try to and are at some risk. Jail inmates Starke to explore ways to have an said Burney Winkler director of First meeting of have a much big- working for an early release are the impact on the people of the com curriculum for the Bradford school Starke Gator best source. They cannot be munity. "A 'Just Say No' week Is a system. Life Management Skills is set tonight( recognized as an agent and their good start but we have to have a taught to all 9th graders.Health Objectives the Starke Golf& the problem In identity cannot be disclosed.The positive outlet a program where is taught to all grades K-12, Sam Kouvaris three meetings. No minimums required by the students can say 'yes'," said Rev. Winkler pointed out. In addition, WJXT TV ( program will do. A funding agencies are to form an ad- Patton. other courses including drug education ville is the guest necessary it will visory council organize a "Just Say Drug education should start at the components are biology driver Social hour: : a deep committ- No" week In May develop a public elementary school level was the education home economics ROTC. dish dinner and New KII members Art New Cable Company Member Tells Board I The 10th annual - Lakes Art Show it would cost up- records of litigation available to Mosley told him it was only 1200. the project. this Saturday install a stove hood judges regardless of where they are a.m. at the city Reddish said he presiding. Plans are Ms.Sabis said Received a plaque from the Fair Went ahead with the closing of an Keystone Heights.The takes exception to to have the court systems in all 67 Association for the commission'shelp unused road In Santa Fe Shores on show will By his Inter- counties on the system. with the county fair. Little Lake Santa Fe after being a.m. to 5 p.m. ,a stove hood is assured by county attorney Reggie be in attendance. the state fire code, In other action the commission: Was told by Commissioner Joe Flynn that each party has access to Riddick that 175 families live in his property. Flynn had met with attorneys Meals for told the commis- Was told the September meeting Seminole Ridge and "no one down Dudley Hardy and Paul Bradford is pushed the is set for Sept. 14. The first Monday there pays under $200 in property Newell of Keystone Heights on the age and older be proven.Joshing the board's usual meeting day is taxes.' Riddick is pushing the paving problem.When . receive a meal at the jail belongs to Labor Day.Agreed of the road in Seminole Ridge, the access questions came Suwannee River goes wrong" and had been challenged that not commissioners were worried (SREC) at 134 E. agreed that to a 60-day extension of enough people live there to justify they had acted too hastily. Starke. to put off the mat- time from Oct. 1 to December 1,for SREC the North Central Florida Regional serves a balanced meal jail is in good Planning Council to complete its Reddish. revision of the county comprehensive - Friday information except, call land use plan.Commissioner ae Settlement !Hbme> Jnc. ... Maxie Carter asked Art to "What choice is there?" join a net- "Personalized Cave for the Elderly"A electronic court The Starke in the Eighth Was visited by State Rep. Chance State Licensed ACLF scheduled for when the program Irving R-Orange Park. ferson Street Ramona M.Sabis Center of Santa administrator for Replaced, after attending the lege. Last Acre ceremony for the county Applications are install the com- soil survey the $1,200 cut from the (1904.473.2881') cepted for artist Ms. Sabis said Soil Conservation Service back into Nancy Miller 679O Gilda Court for artist county. But the the county budget.Clerk Brown was Owner/Admfrtrstrato Keystone Heights. Florida.32058 Entertainment to agree to main- alarmed until Chairman Lawrence available now. system and to pay - For information lines connecting Clark Carol or Center Gainesville at 9645382.or call will circuit.make court HEARING ON PROPOSED USE Square OF Plus Level tion is available FEDERAL REVENUE SHARING FUNDSThe the Kingsley Lake from 8-10 p.m., Tracts caller. For call 964-7965. of 7,500 sq. feet. Bradford County-Board of County Commissionersof Child Do you know Find.a recommended large tract in the the Starke, Florida will hold a public hearing at the Brad- [ unchanged now dicap Child? Find is for mobile home ford County Courthouse, 945 North Temple Avenue, Florida Diagnostic Day.'r" that class is Resources lends support System council homes only.to leave She Room No. 129 at 8:00: p.m. on Tuesday; September 9, in tional a six student county reclassification in the area un- 1987, for the purpose of obtaining written' and oral and Baker Union Flakier ; procedure in the is quite land comment from the public on the proposed use of I identification One function of of the recom Federal Revenue Sharing Funds in the upcoming a motion by coun- dicapped the location of who chairs the Budget for the Fiscal Year of 198788.All . for the city coun- between birth and who may have a and are not ... ' Some tions may areas be of the council interested citizens' groups, senior citizens and or hearing physical vision zoning Sept. 30 board, and senior citizens organizations are encouraged to attend to either recruit be II handicapped you know of re-appoint Claire the hearing. Persons attending the hearing shall have FDLRS/C 'fd Alvarez and Julius in Putnam the right to provide written and oral comments and sug- FDLRS/Child is also faced with Boetwick.FL members. Attorney for the gestions regarding possible uses of Federal Revenue Humane The Bradford and the board council of that ad- Sharing Funds. Contact Esther ,B. Ellerson at 964-6280, meets month the at 7:30 first p. be two made separate up of the en- Ext. 250, to be placed on the agenda.The . Presbyterian hospital. as currently is no action on nam- New members either of the two following is important planning information for Call-In the Proposed Use Hearing: _ assist A morning senior Amount of Fund Balance Federal Revenue Sharing is offered by the Teams Department, $41,290.00 Jimmy Bowen.To games,food, become according to gram a citizen is Gilbert Brown Esther B. Ellerson with the Police Contact Ed call in before 10 and Charles Clerk to the Board County Finance Director After 10 a.m. the for more informa - check on those . not called in. If -- - a police officer residence. Chief Bowen that Labor the service Day. GEORGE I Monday Governmental Sept. 7 INSURANCEComplete fices and banks Insurance Service / Some stores will YOUR ndependenl certain call Insurance or look for hours ff AGENT in this edition of CMVI* vbu fimv ; I PHONE QUOTES '. Upcoming. I WELCOME The following scheduled by ': ROBERTS SCOTT ROBERTS agencies School:Board AGENT AGENT AUTO HEALTH LIFE quired public HOME Administration budget 7 p.m.. resenting These Fine Companies: BUSINESS ple Ave. MOBILE HOMES Brooker : - p.m. Tuesday, MEDICARE SUPPLEMENT ' Bradford\,; ) 'J p.m., Wednesday I on thouse.budget Items: : w. disposal boat waKe 964-7826 I Public j Thursday p.m.; Hampton.Sept. B'J 986 NORTH TEMPLE AVENUE 1 j jUFI&CA8ULTY 7:30.Bradford: : STARKE, FLORIDA- 32091 0: ,Ii I 9:30 a.m. i, Regular meeting. in Sept. Is Labor ! .- ." ,.-... .,.. .. w .. .. .. . .... .. ... . V September 7,1987 TELEGRAPH Page3A Board Inspects New -' r, } School ConstructionSeveral Science Lab... school construction pro At the High School, a new science t"', te jects totaling over $250,000 started lab, with state of the art this summer are nearing completionjust and remodeling of the agriculture i ..r as the new school year begins. wing at the Vo-Tech Center into four 4a W m ' School board architect Spiros new classrooms, including a small .m ,',, Drives led a walking tour of the room for art classes,had a price tag ? facilities Wednesday evening of alone for the n r $140,000. Equipment , August 26, for the five boardmembers lab was $33,000.Middle \ 'w. a J4 '. ? ,Sd iq and Superintendent Jim ! .Duncan. : 1 I f dl ,7lyyp MIw School Projects... New Paving.., Rooftop air conditioners have Three paving projects have been been installed at Bradford Middle completed,at a cost of some$52,000. School, taking it off the old, Contractor for this job was Holton inefficient round house cooling Construction Co. of Gainesville. system. At Southside Elementary,a new 41 Four units now provide the total car parking lot on the southeast corner cooling at the school via a ducted of the school grounds will take system for each classroom.Two Wait'll You See the Field House Parking Lot... cars off Stansbury Street. At Starke units are installed at the gym.. Lawtey Correctional Inmates also have worked on the school this the back drive Tornado fans can walk on pavement and sidewalks when they get to the sytem Elementary, was This takes the whole complex off of repaved and new has been Bradford football ticket booth area by the BHS gym and field house this summer. Inmate labor saved the school system some 140.000, says Supt. paving the round house, which has never Jim Duncan. added the north side of the Friday night at the football Jamboree.No . on been satisfactory. The round houseis Inmates reroofed a wing at SE,painted rooms at BMS.built two - more slogging through a mud hole to get Into the football field. portables grounds, along SR-16. At the BHS air to the Vo-Tech . now providing at 88 this year. gym, new paving has eliminated the Coach David Hurie has also added some additional sidewalks to take up only.Progress complex blank this week U'. been a needed project since the field house mud hole the south side spaces on along Inmates from New River Annex, where School Board Member James Adkins Street, over' to the field Made... was built In 1967. T. (Cobby) Wainwrlghl superintendent, did the landscaping work The of $52,000 which lot at house. paving was part a project saw a new parking "Appearances may not show the Southside Elementary and some new paving and repaving at Starke around the field house. Project coordinator was Lt. John Akers. Squadsupervisors progress we have made, but the Elementary were J.C. Grlffls and Larry Holton. New Portables Added... has tremendousbenefits money spent given Four new portable classroomswere to the school system," says The major essential remodelingwork decided," says Duncan, "but some to the Vo-Tech Center last year. provide adequate facilities for the I added, two each, at both Superintendent Duncan. "A small remains in the project such as needs are fairly evident. Two more classrooms will be expanding needs of the exceptional Southside and Starke Elementary.Three amount of money has gone a long relighting, accoustical treatment, aBound needed at Lawtey, because the students," Duncan Said. Two approaches of them were constructed by way." system, a new heating and Building No._ 1. at the Vo-Tech eighth grade will be kept there next are being considered. A. inmate labor, at a cost of $15,000 air-conditioning system, and some Center is 20 years old,-and needs a year. decision whether to go to a central each, the fourth was contracted at a Auditorium Renovation... carpeting. new roof. The heavy equipment lab location or to improve facilities at cost of over$25,000, but penalty fora Renovation of the 34 old Is to be reworked and converted to individual schools will be made year Most Needed... time overrun reduced the cost to Bradford High School auditorium is Looking Ahead... an agriculture complex. The soon. $21,000. getting under way this week. "A full project list has not yet beenHampton AsriculturefDepartment was moved "The greatest need we have is to Contractor for the$452,000 rework- Adm. Wing at SE... ing is Robert Kelly Construction Co. At Starke Elementary, a new administration of Gainesville. Kelly is a 1956 Voters Go to Polls Tuesday . wing has been added, graduate of BHS and is the son of and the existing space remodeled,at long-time Tax Collector J. R. Kelly - a cost of $103,000. Kelly was originally the low bidder Wilma McDaniels' term expires, resident of Hampton, with a"Hampton Water Dept. Grant...? The 1,700 square foot addition at$489,000, but the bid was some by Joe Cissy but she is not running for re-election. address. The City Council has commissioned I more than doubles the administrative $36,000 above available funds. The BCT Staff Writer The third vacancy was made by the grants coordinator Linda Day to , space. It contains offices school board has a $400,000 state Election day in the City of Hampton resignation of Vernon Forsythe,who Legal action has not been in- explore the possibility of obtaining a I for the principal, assistant Department of Education grant with is Tuesday,September 8. resigned for reasons of health. itiated, however, and City Attorney grant next year for extending water I principal, guidance counselor, which to do the remodeling and will Reggie Flynn considers it a matterto mains to the Hampton Villas. secretary, and a teacher's lounge. make up the remainder of the cost Six candidates have qualified for Residency Question... Be litigated by the complaintant, City Clerk Gordon Wadsworthsays I There is also a large classroom out of its current operating funds. the three vacancies on the city coun- not the city of Hampton. "We have two chances of getting which was to be a computer room Deleted from the project was: an cil. They Are: John Allen, the only Candidate Frank Bryant has ques- a grant slim and none. U we incumbent seeking re-election; tioned the legal residence of Dorothy Otherwise, the campaign has been wanted to but which is being used now for equipment maintenance room, exterior were in Gainesville and Frank Ida Creighton, John Mitzel, who is said to be living on quiet, with no hard campaigning by special education.SE painting, dressing rooms on Bryant build a park or a tennis court we I previously had the smallest administrative the stage, and some stage lighting Evans, Dorothy Mitzel, and James Hampton Lake,not in the city limits. any of the candidates. would have a chance." I Mitzel claims to be Mrs. legally a , school. Mitzel. space of any which was optional. -.v /7/ // ""If"f .... '" ,, ""- PRICES BEGIN THURS., SEPT. 3rd. I JV Squad Opens Against Tigers AT OUR THRU STARKE WED.LOCATION, SEPT. 9th.ONLYI! by Joe GAssy Is on the defensive line," the coach terlachen. October 15 North Marion LABOR DAB r ''St BCT Staff Writer said. Keith Lindsey holds some promise comes to 1&rkeWednesday: ,Oct.21. .. as a linebacker; other positionsare Keystone Heights will play in The Junior Varsity football squad will take the field against Lake still to be filled. Starke. The season will end in Mac- Butler, at home on Thursday night, The junior varsity schedule has an clenny Thursday, Oct. 29, as the September 10, at 7 p.m. to start a open date September 17, after the Junior Varsity. meets arch rival 7-game schedule for the season. Lake Butler opening game on Baker County.All .. coaching staff, Head'Coach September'10.*Seeptember'24 west games have a scheduled star ckalp how ' Chester Simpson, and his two Nassau will play here. October 1 St. ting time of 7 p.m., except in Mac- assistants, Brett Purdy and Jeff Augustine will visit Starke. October denny, which Is scheduled for 7:30: u flllYIR 8 the Junior Tornadoes will visit In- p.m. Zuraff, are expecting great things from their squad this year. 1'e' BACARDI r THE KEYS Terry Berry will be the starting Commissary Food Store ;; "ff y, PUERTO RICAN quarterback for the junior Tor- N _ nadoes, with Clyde DeSue as SR 225 at US 301 Lawtey 782-3017 rumAMBER fullback and tailbacks Termall Food VisaMasterChargeW.I.C.Top . Jones and Alfonso Jones. "This We Accept Stamps & mirnt1 * backfield has good size and i AND quickness," says coach Simpson, Round. $1.99 -. SILVERy they are the starters for sure." UsVODKA 1.757LiTER BAC Hamburger. $1.39 Ib f RDA brother Terry of Berry John Berry is the, quarterbackfor younger Pork Chop Centers .$1.99 Ib cI 1.75 LITER c _ 1345 the Fighting Tornadoes this Bar-B-Q Ribs .3 down $1.89 Ib o a 59 2 01.FLEISCHMANNS w-s year. Slab Bacon $1.49 Ib ; J POIAIOAIUIp Roland Schaefer, weighing in at a- 1, 235, is a starter at offensive guard. T-Bones. $1.89 Ib s Most of the other positions are still up for grabs. Rib Eye 790 each There are about 60 candidates try- Eggs . $1.99 flat ing out for the junior varsity squadbut Budweiser-12 pac/cans $5.99 + tax that number will be reduced to about 45 in the next week or so. Coca Cola or Pepsi Cola The defense is young and inexperienced 16 oz.6 pk.$1.99 + Dep & Tax GIN LORD 'aCALyER'T "Any experience we have C .. ) _ . u - 'I DISTILLED DRYGIN CANADIAN NOTICE OF PUBLIC HEARING 1.75 LITER *r 1.75 M.i LITER 01. _ I NOTICE IS HEREBY GIVEN that on the 9th day of September, 1987, at 8:00 P.M., the 59201. 1LLISLMANR s IORD County Commissioners of Starke, Florida, In regular session to be held at the board 1188 !5 meeting room, at the Bradford County Courthouse, Starke, Florida,will hold a public hearing on the proposed enactment of an ordinance and resolution establishing a countywide special assessment for purposes of landfill solid-waste disposal.The -s_. substance of the contemplated ordinance Is the assessment of an annual fee upon ..r.i.'>Y/f{ _" air the owners of Improved real property In Bradford County, Florida. The proposed fee >: : . 1 schedule contemplated Is as follows: .'cum 11L CLASS I Single family residence $ 75.00 annually ,'} IBWU1 SARK I It _. . CLASS II. Multi-family residences :' r 1f. BOURBON SCOTCH residential unit $ 75.00 annually : per ;. 1.75 LITER i/ 1.75 LITER 1a,7os J IM$ a9.ta. CLASS HI General A 5C.I):; : 1199 (other improved parcels ... 1899 ,'! .. ,. ..1 generating less than ,',.,.. -'"- " .' 5 cubic yards of solid '.., .,= m:".., ..I..... ,'J.Lo.:- !.,.....'.:;i'r.r. ': _J JU waste per week) $150.00 annually \",: _ . General .. ((5-10 cubic yards per week) $300.00 annually e General C waas (more than 10 cubic yards BEER RO4U per week) $600.00 a annuallyAll FROM MILLER . and be heard with respect thereto. 12 oz. CANS CALIFORNIA Interested parties may appear at said meeting TABLE WINESiJ 12-PAK Dated this 3rd day of September, 1987. : Board of County Commissioners, Bradford County, Florida. "l 499 I.IR49 # Gilbert S. Brown/Clerk ) . -- ---- - - - - - -- rL. L. U ,js-iirsrwP. .r -er-. r ". .-.- ... ." -. . I. vw .. ." P. p_ '. p. 'y.' .. ... ..... .. / \I'I I . Page 4 A TELEGRAPH September 3,1987 etUTORiALS) Memory. of The Tramp Printer -"Ca.: He was a Necessary Evil in Old-Time PrintshopFor """ ii the past 50 years that strange word exclusively. The fact that both words cylinder turning over and over under his were found in the dictionary proved made his booze-befogged head even member of the human race once known as nose, Cemetery Vandals SubjectTo the tramp printer has been as extinct as nothing to them except that even Noah ,more dizzy; and feeding paper Into the the legendary dodo bird, and those who are Webster could be wrong. press with one hand while holding onto the Prison Terms and FinesOf old enough to remember him will not Rev. P. W. Corr an early Baptist I lever with the other, to keep from falling mourn his passing. minister who made it, a habit to start aIM into the gears, was too dangerous an occupation - even for a printer. So he Back in the days before computers took usually claimed to be a "two-thirder", a over the task of typesetting in newspaper "" .- status not well defined, but very conve- all the words contained In the dic- from its base was that of John Charles plants! many hard-pressed editors of the nient for shirking certain undesirable Jobs. Richardone of the builders of hand-set-type age had to depend on the tionary, there is none uglier or more early Starke who also organized local here-today, gone-tomorrow tramp to get the Job few weeks or revolting than the word "vandalism". a the out, even though it might be a Having stayed on a This is especially true when applied to militia to fight in the Civil War served'in four-page paper, once a week publication.But perhaps months, the tramp would get Itchy feet and to the next town that hada move on the destruction of property belonging to the State Legislature, and was a the general cussedness and ornery print shop or a newspaper. Having terminated - schools, churches, and the hallowed delegate to Florida's 1885 Constitutional habits of the tramp printer compelled a Job and received his pay, whichhe ground of cemeteries. Convention. Toppling over his massive publishers of those days to install always complained was too little the grave marker is a sorry way to show appreciation mechanical type-setting machines as soon tramp would get a clean shave and It is understandable how a person for his part in the early as they were invented and placed on the perhaps a haircut to last him until his next could become so hungry he would steal of Starke and Bradford market. ,a#! Job. From the length of the bristles on his food for himself or family. But to development The typographical tramp could alwaysbe chin you could Judge just how long he'd deliberately destroy property of others County. told from pencil venders, piano tuners, been between jobs.In . for the sake of destruction alone is umbrella menders and other wandering Willies of that bygone era, by his Jerky applying for work, it was a matter of comprehension.Under beyond style of walking. This resulted, naturally complete indifference to him whether he Florida's statute on "criminal from his standing before a type case and was employed or not. If no work was to be mischief" the maximum penalty for a swinging his right arm like a fiddler crab had, he would touch the weary editor for is five in and/or a while the left arm, holding the"stick" Into two-bits, each of the other printers for a felony years prison, which he placed the type, was held close to dime, and the shop "devil' for a nickel, fine up to $10,000. That's a pretty high his side. swipe a bundle of old papers to sleep on in risk for a few "kicks" arising from a S -. I I an emergency and go on his way rejoic few too of beer. The odor emanating from him ing. cans many combination of stale tobacco The Tramp Printer The vandalizing of the old section of printers ink, gasoline used to wash Yet, with all his many faults, the tramp Crosby Lake Cemetery during last type, the absence of soap, and fumes newspaper in every town where he printer was of much use and frequently weekend the third such desecrationto a bottle of Old Crow he kept hidden a church, was a very pious fellow, welcomed by harried publishers with open was the type case. small papers in Hampton and arms. Many small papers in those days take place in Bradford County this hand slow work ,as well as many other towns in this could not have existed but for his cheap Setting type by was , year. Earlier in the spring Santa Fe the tramp had plenty of time to think But even he had to discharge a work. And traveling around picking up Cemetery near Hampton Lake and Sapp reflect on the material he was printer once on the ground that the new ideas and methods of printing which Cemetery near Raiford were both van- Spelling out contradictory political a religious fanatic and impossi- he generously passed on, he added;; to the mixed get along with. Among other faults, knowledge of the craft. , dalized with approximately 50 to 70 ticles, temperance sermons refused to correct stones toppled and many of them quor ads,scientific from notes,crossroads and country in on the proofs. "Let us not try errors to be What finally became of the tramp broken beyond repair. Most cemeteriesin respondence caused every in his ," he admonished. "If we do, we'll printer, what caused his tribe to dwindle county a cumurring the county are owned and managedby and warped his Judgment like a to believe we are perfect, sure and then peter out entirely, will never be ,and thus become proud-and pride known. Perhaps his rugged individualismwas church-connected associations. In kscrew. All this, together with of to the colorless - incapable conforming of_the seven deadly sins, you know. and the trials of the the case of Crosby Lake Cemetery, printing routine of the machine age.Perhapshis three Starke churches, First Baptist aWP made him as cranky and cross as a tramp printer's Idea of heaven was unwashed presence was too out of keep- headed bear. Madison Street Baptist and First United foggy, but his conception of ing with the orderly interior of the modern : Methodist Church are operating the He was usually pretty good at was very clear. It was a place print shop. Or perhaps the new era of efficiency ' grammar, and punctuation, but the all the news copy to be set was simply left him no dark corners In ' cemetery under a state-chartered "formally" and "formerly" were a of temperance articles,set in small which to hide his bottle of Old Crow. i: association offering perpetual care to in his side and had birth to given narrow columns and paid for at Whatever the cause, the tramp printer is ! owners of lots. schools of thought among tramp a thousand. we'll some day come across gone. One school of these Perhaps No amount of care, however, can protect only and the recognized other school one used. the. tramp seldom claimed to be an all- him, properly labeled and fittingly preseved - the cemetery from the action of printer for if he did he might be in alcohol income. thoughtful museum. I vandals, intent on destruction of property - and the desecration of graves. After .. . the latest weekend vandalizing, beer . cans were found "all over the place", e .1 1 Bradford Plans I according to a deputy from the sheriff's ;, Shape Up office, who visited the site. One was carefully placed in an upright position Cities and towns all over ORD C & public figure, combined choral i atop a grave. will unite In a nationwide th9" groups from various churches and !' ., .. party on September 17 to ; schools directed by Don Hard, a Thanks to the cooperation of Supt. --- -- the 200th anniversary of the AI dramatized "Fanfare for on- 1 James Wainwright who dispatched a Broken Stones on Griffis Lot Constitution- the oldest stitution", featuring portrayals of crew of men from the New River Cor- document of its kind in the world.Starke the leading figures of the rectional Institution the 50-plus stones The people of Bradford County who j ConventionGeorge Washington, I revolted the senseless behaviorof I James Madison and Benjamin are by and Bradford County 1f1 e that had been were re- toppled over Franklin. The program will end wjth a few thoughtless individuals are ask- join in this mammoth , erected and back in place by 1:30: Mon- an aerial fireworks display , w Day celebration ed to be ever on the alert for such activities on September day afternoon. However, those broken with a spectacular program at beyond repair are still lying on the and report them as soon as BHS stadium, involving :/ Jim Duncan, Superintendent of ' observed. The sheriff's office and the churches, civic Public Instruction, has announcedthat ground. State Attorney's office would like to military units, youth groups, and School Constitution Day will be One of the large monuments toppled know. dividuals with a common goal- uTfON' \! held Wednesday, Sept. 18, when show their appreciation of the students of all schools will listen to ment that guarantees T-Shirt Design President Reagan's address at 1 freedoms and rights, and to the colors by three or more p.m. County Commissioners the patriots who wrote it. color guard units, 50 Girl ' The each presenting a star Bradford County Republican The Bradford County Bi-Con Committee is supplying reprints of a each of the 50 states ; Buried in Landfill ProblemsCounty mission has announced the Constitution, the BHS 16-page newspaper magazine on plans for the local celebration leading the assembly in the "Celebrating Our Constitution" for will include an opening Anthem,Skydiving show, a distribution to all school students in salute (cannon firing), address by a well-known the. county. I I' commissioners are faced witha cooperate. Putting the situation in ! monumental task of funding solid perspective Commission Chairman .. waste disposal that may put each of Mosley then asked, "How are you going ask'C them at political risk in coming elections to the explain voters?your lack of cooperation to Forestry in CountyBy Aging Populations unless county residents unders- Will Pose ProblemsFor tand the impossibility of their situation, Small CountiesThe and realize Commissioner Maxie Carter, Jr., ad- David W.Norton The stumps are very heavy the commissioners doing are dressing Mrs. Pierce, said, "If looks Bradford County Forester collection of chemicals that are number of Floridians over age 75 is' i the best job possible under trying like you have us between a rock and a Anyone who has spent any time in the heart and knots of old pines. expected to double by the year 2000, caus- circumstances.The hard place." woods or fields of Florida probably chemicals-jampacked into the ing an added strain on the resources of that the splinters often feel hospitals, homes nursing and other special stumbled across the and Regardless of the cooperation or lack stumps commissioners cannot raise and old pine trees. to the touchthis is what makes services unless the State prepares in time of it by constitutional officers, the com- These so valuable today.Now before to meet their needs. collect taxes by themselves. Constitu- stumps are the remains of missioners are between a "rock and a forest removed by rushing over to Hercules, you .. lumbering tional county office holders, all hard place." They deserve our cooperation long ago. They have many uses know that not all pine stumps have Bradford County's projected growth in' of the volun- must employees county In fact, most pine stumps have NO that bracket Is 62 age increaseof and understanding for tackling a some as new as today and others as persons an tarily offer their good offices in the mankind's knowledge of fire itself. It takes sometimes 35 to 50 years 52.5 percent. Neighboring Clay County, cause, wherever needed. To do otherwise tough assignment. The stumps and wood were a pine will even begin to produce a faster growing area, is expected to see will surely put each of them at "lightwood"pronounced 'lightard' Today not many pine trees reach an increase of 152 percent, with 4,815 more to produce resins, and so there is risk also. nearly everyonesupplied kindling 75-year-olds by the end of this century.The political start many a pioneer's home quantities of these special projected figure for Union County was only fireplace.The remaining." 22 more persons, a decrease of 9.1 percent. only of Property Appraiser has Sapp Cemetery origin of the name lightwood large bulldozers, stumps are the complete set of property owner not be documented, but you can be from the ground and trucked or Smaller counties of the State will have records in the county, which includes has nothing to do with the weight of shipped to processing plants. trouble providing services such as names, addresses, description of property Also Vandalized chipped into bits and run through transportation, in-home care,housing,and and the valuation. The office also tanks, the wood gives up its mental health counseling for their increas- -. .-.. Letters: the solvents. The spent chips may ing number of elderly citizens, according has computerized equipment for mailing Raiford I 'fir: as fuel to generate heat for the ex- to Margaret Lynn Duggar program director - the necessary notices. Sapp Cemetery Association at I operations of the Office of Aging and Adult Ser- the work of vandals recently experienced are three primary products pro vices with HRS. The larger urban areas that at Lake Alvarez similar to perpetrated Crosby the old stumpsresin, turpen- already have services available and can Property Appraiser Jimmy last weekend.In . Cemetery Time to Ask services of his officeto Questions pine oil. expand existing programs, she said. quickly offered the a letter to the membership, Ramona About Financing is a component of phonograph the commissioners, and has supervised Sweat, a member of the Association's Landfill Operations floor covering,adhesives,asphalt While the number of people 85 and over two employees in locating mobile board, reported: "Late in the spring, van- Editor, The turpentine goes into Is expected to increase dramatically In the throughout the county which dals struck our beloved cemetery. In the Letter to solvents, oil additives, and next 13 years,those between 65 and 74 will homes being taxed for mid-section of the oldest part of the and Citizens of Bradford County: The pine oil is used to make Increase only 23 percent from 1988 to 2000- escaped , had heretofore cemetery they knocked down 77 Thanks for printing my last letter to cleaners, paints and var- slower than the state population as a also lack of records. Alvarez has agreedto I monuments, breaking some of them to Editor. I touched on future planning of whole.A . include notices with tax statements I pieces. growth of Bradford County and our is Just a sample of the items that the usually mailed in October. Laurels to for proper solid waste disposal. resin can produce. Other pro 43 percent increase is expected in and his staff. "The newer and sturdier headstoneswere flavorings, soap, perfumes, Florida between 1986 and the year 2000 in I Alvarez and landfills Mr. knocked off their bases, but the older Garbage disposal are and approximately 800 other the number of people older than 65. That , has seem- ones, tall and thin, broke into two or more important to all of us, and our future. processed resin as an Ingre- population Is expected to grow from 2.2 I The office of Tax Collector parts. The directors were able to get help as citizens have a responsibility to have The old stumps may still be a million In 1986 to 3.1 million by the end of : ingly been reluctant to offer whole- from the nearby prison to set the unbrokenones put into the making of rules, to those who work the land, but the century. hearted cooperation In making collec- back on their bases,and your associa- and budgets set up by our County and a storehouse of chemicals we I tions for the solid waste assessment pro- tion officers are in the process of gettingan governmental. Without them production of . I - I believe the following questions the most Democratic - Items experienced marble worker to cement common everyday Committee week In a very importantHall sent a the unbroken stones to their bases. We answers before assessments are : be very expensive and very likely. To Meet Sept. 14 Tax regret that we cannot repair the broken I 1. Landfill operation estimate .to buy. To Appoint DelegatesThe I stand-in,.albeit a very capable one to stones. $450,000; revenue estimate Is $80 i speak for her office. household; estimated revenue is $ , "We have also had complaints that How will the excess funds be used? questions.Ben Holtzendorf Chairman; Bradford County Democratic Ex- , ecutive Committee will Monday j "Pierce for many floral pieces have been stolen from 2. What will meet Mrs:"George speaking In recent months.Other cemeteries happen to the funds Bradford Republicans! Sept. 14 at 5:30 p.m. In the board room of i graves budgeted for landfills? Mrs. Hall, promised cooperation but SFCC Starke Center. : in this area are having similar trouble. So '. Note: Mi. lloltzendorf has some ; commissioners build additional found a solution to this 3. Shouldn't property taxes be I if the has only far no one pro- I II Some of the answers are In convention to the state accordance with funds not used in Delegates party's blem. We do not have funds to hire a full- I collector's In this edition of The in the I, Telegraph counter space Please be on the lookout for 2 above? In November will be appointed at this ; '! time guard. the County Commission tentative- time. The convention will be held at the office and furnish another employee. and if observed I violations of this kind, : 4. Would cities and private a solid waste assessment fee Fontainbleau Center, Miami Beach, Fri- notify the Sheriff' office,or the State At j (still have to pay a dumping fee? For more Information meet with day through Sunday, November 68. :I l:ven a court suit would fail,said Mrs. torney." I II I do not have the answers to these at 8 p.m. Wednesday, Pierce, toiling the commissioners they I tions. If you are concerned and do when on it the holds new the budget first of, two which public in- Chairman Jeweile Brown asks that all j cannot force the tax collector's? office to I ;know the answers, I suggest that you 1987-88 landfill costs.) members attend this Important meeting. 1 __ t tIr . ." ". 1,1"p/ .. ". .. ... -.. '" '.. "..,... '. ..- MI ,.- '", ,. .,,,, .. . . .. '" .. ".. .,.. ... ," ..-,., ,. .. ... . .... .. .. .0. -.. ", " I f I . , September 3, 1987 TELEGRAPH PugeSA lI Social Briefs i I _Nf a Karen Chitty/ Honored at BrunchThe I S octal News Officer's Club on Kingsley groom's mother were seated at this Lake was the scene of a beautiful table. . Weddings News Births Club Bridesmaid Brunch honoring Miss Of special Interest and beauty Karen Joan Chitty last Saturday were the twelve floral arrangementsof Engagements Church News Social Events morning, prior to her wedding to Dr. fresh mixed summer blossoms -- f' John David Woody that evening. that were designed in each cup of an : ' Hostesses for the delightful event antique tea cup collection that End-of-Summer Party were Mrs. George Roberts, Mrs. belongs to the bride's grandmother, Drew Reddish, Mrs. Eldon Hardy, Mrs. Edmond D. Tenly, Sr. These Hosted by NormansAn Mrs. Linda Johns, Mrs. James Red cups and saucers with their cMicate i end-of-summer party, hosted dish and Mrs. George Winkler. arrangements were placed by Mr. and Mrs. Marcus Norman ofHwy. The brunch was held in the throughout the dining area on each 16 East, was held last Saturday - Upstairs Club Room overlooking of the seven brunch tables and also Aug. 29, and was enjoyed by a scenic Kingsley Lake. The invited down the length of the honor table. large group of family and friends.A . guests were greeted at the fish fry with all the trimmingswas downstairs The head table was also centered club entrance Mrs. by the menu for the evening. Live with of fresh Hardy. Mrs. Roberts welcomed a long arrangement country music was provided by up summer blossoms with garlands of everyone and pinned corsages on the and entertainer coming music , honoree, her mother, Mrs. James E. ferns trailing and connecting the tea Michael Maddox from Lake City. Rogers, Jr.. the groom's mother and cup floral pieces. Mr. Maddox large played a varietyof Mrs. George Roberts arranged all grandmother, Mrs. Betty Jean music, from bluegrass to popular the floral pieces and tea piecesas ' Woody and Mrs. Marjorie Woody, cup also several country music. He sang and a special surprise for the honoree Mrs. Ronald H. Woody. and made the individual hand songs of his own.Woman's . Inviting guests into the upstairs club room was Mrs. James Reddish decorated floral place cards that : fr Club Begins and serving juice appetizers was marked the seating arrangement for Mrs. Winkler. Mrs. Drew Reddish the forty-five invited guests. Fall Meetings Soon invited guests onto the balcony Following the brunch, the bride The Woman's Club of Starke veranda for a get acquainted social presented her attendants and begins its fall luncheons and period prior to serving brunch. members of the wedding party with meetings September 9 with a 12 noon personal gifts as mementos of her --- r The all-glass window wall of the followed the wedding.The Pamela Elaln. H. .. luncheon, by regular club room overlooking the lake servo r y and monthly meeting program. ed as a background for the head hostesses gave the bride the And Michael Wayne Starling Conservation is the program serving creamer to her chosen china honor table. The bride and her theme for the meeting with Mrs. pattern as a memento of this special bridesmaids and honor attendants, Horsey-Starling Myldred Cuttino Chairman, along with her mother and the occasion. Set Wedding Sept. *6 isisted by Mrs. Enla Schaffer,Mrs. joella Hardy, Mrs. Betty Warren, x Mr. and Mrs. Dwight/ O. Hersey of Mrs. Lucy White, Mrs.Marty Barry Chitty-Woody/ Dinner Party HonoreesDr. Lake Butler would like to announcethe Mrs. Margaret Jackson, Mrs. Mary approaching marriage of their Covington, Mrs. Dorothy Brown --- ..._ i--....-----.. --- daughter, Pamela Elaine, to Mrs. Betty Joe Siddens, and Mrs. and Mrs. Ronald H. Woody of tables in the dining room were Michael Wayne Starling, son of Rev. Ada Lee Roberson. Mr.and Mrs.Michael Crockrell Hollywood were hosts at a dinner covered with white dinner cloths and Mrs. Charles Starling of party honoring his son, Dr. John with small floral tea arrangements Lawtey.The Thank You David Woody of Columbia, S.C., and placed down the length of each table, wedding is planned for 7 P.M. HerseyCrockreWedding// his fiancee Miss Karen Joan Chittyof connected by garlands of spiri ferns. on Saturday Sept. 26 at Sardis Bap- The Cinderella Dreamglrl Beauty wishes to thank the following Starke, on Friday evening of last The honor table was centered with tist Church in Worthington Springs.A Pageant week. an elongated table floral arrange- reception will follow the ceremonyat sponsors for helping the con- The party was held at the Officer's ment of pompoms, miniature carnations the hall at the church. testants: August 15 at Hope Baptist Club on Kingsley Lake immediately mums and roses and in- Pam fellowship is a graduate of Union Coun- Terwillegar Motors Daves WeldingCarl Hursts'Exxon First Choice following their wedding rehearsal at tersoersed with baby's breath and ty High School. ; the First Baptist Church. statis. 'three other long dinner Mike is a 1986 graduate of Brad- Pizza Miss Robin Michele Hersey, The bride's table had a white satin The club: was decorated for the tables were arranged for family ford County High School and is now Orian Wells Chevy Bride's Choice daughter of Doley and Mary Herseyof cloth edged with lace, centered by a event with arrangements of fresh members, out of town guests and wmployed at Gilman's Paper Co. in Griffis Boats Western Steer Starke was united in marriage to three tiered wedding cake and three seasonal flowers in shades of pink, other members of the wedding party Maxville.No Crafts Salvage Granny's Kids Michael Gary Crockrell, son of John layer adjoining cakes on each side, lavender, blue and white blossoms, Forty-two guests_ enjoyed this local invitaions are being sent. North Fla. E"glneerlnllBrad's and Dot Crockrell. also of Starke, on connected by two ladders with a Interspersed with white baby's festive occasion with the honored All friends and relatives are invitedto Taxidermy August 15 at Hope Baptist Church. figurine to match each attendantand breath_.and royal blue stalls. The couple. __ attend Especially to the Fla. Family Times Rev. David Weyend united the usher, compliments of Linda Out of town guests attending in- couple in matrimony before an altar Sullivan. The unch table was cluded: Dr. & Mrs. Roy Talley of which was enhanced with various covered with a pink cloth with a Silver Anniversary Atlanta, Mr. & Mrs. Robert Coop- We will be at Mitchell's Drug Store on Call candelabras. The candelabras were white lace overlay which accentedthe man and Karl Rogers of Gainesville, accented with a large arrangementof flowing punch fountain. Open House Set Dr. Ron Woody of Charleston, Keith Street the FIRST THURSDAY OF EACH MONTH silk flowers in rainbow colors For Mr. ft Mrs. WilliamsAn Burroughs of Callaway Gardens, from 9 a.m. until I 1 1:30: p.m. to better serve our against a backdrop of greenery. The The groom's table was covered Mrs. Betty Jean Woody and Larry double ring ceremony also includeda with a lavender cloth with a white open house honoring the Silver Holt of Ft. Lauderdale, Mrs. Mar- customers. unity candle. Along with the lace overlay. A lovely lavender and 25th Anniversary of Margaret and jorie Woody of Pompano Beach, candelabras burned a single candlein white centerpiece with small Edwin (PeeWee) Williams will be Mrs. William Gillette of Belleville, memory of Harold Skeen III. lovebirds accented the blueberry given by their children on Sunday, IJI.. Brenda Woody of Tampa, Mr. & Music was provided by soloists lovers cake. Cutting the cake was September 13. Mrs. Williard Wilson of Hollywood, Gainesville Hearing Aid Center Miss Virginia Crawford and Lonnie Cheryl Douglass. The open house will be at the First Mrs. Lynn Barclay of Broome. Mrs. Guy Caverly and Mrs. Guests were greeted at the door by Christian Church Fellowship Hall Mr. & Mrs. Randal CaW'ornlal 1003 NW 23rd Ave. Gainesville Jessie Lee provided nuptial music. the bride's sister-in-law, Susan from 2-4 p.m.WelchConner. Jacksonville, Mr. & Mrs. Tony Neadof Best .man was Jerry Crockrell, Hersey. St. Augustine and Miss Kris Han- 376-0095 with Robbie Caverly'; .Bo Hersey Serving! the. bride'S cake was cock of Decatur, Ga.:.Also attendingwere !II '" Bttry>OttJeny larry'1'Saucer' and Vanessa Triest.and-Trade Clark. the bride's parents, Mr.. ,&Mrs. .' We service all makes and models of hearing oW. Also;we hove bat . Wesley Thomas serving ushers. The bride's book was kept by Susan To Wed James E. Rogers, Jr. lories'available Homete.Mngbyappointmentonly.! " Matron of Honor was Tammy Hersey. Assisting with serving was Saturday, Sept. 5 Caverly, sister of the bride, who was Tracy Rowan, Holly Hersey, Heidi attired in a peach colored gown of Caverly and Brenda Jones. Special The wedding of Priscilla A. Welch taffeta. thanks is expressed to Dora Broomefor daughter of Mr. and Mrs. DonaldWelch Now of Brooker, and Randy D. Serving tNorth 301 Bride's attendants were Cindy making this such a joyful occa dressed in mint Erika Conner, son of Mr. and Mrs. Donald oun try Taylor, green, West to Lake Butler east Gruen in lavender, Pam Hersey in sion.Following a wedding trip to Conner of Starke, will be an event of to Keystone & Melrose \DMcDonaldsAlllflatpr pink Pam Taylor in blue and Vicki Sambel Island, the couple will residein Saturday,Sept. 5 at 7:30: p.m.at New north to Maxville south Crockrell in rose. The attendants Starke. River Baptist Church of Brooker. arp et S to Hawthorne. dresses were identical to the maid of The bride is a 1986 graduate of The bride-elect is a graduate of \ Creak honor's. Their flowers were lacy Bradford High School and is Bradford High School and employedby otStarke heart-shaped pillows, with their employed at Community State Western Steer. The groomelectis 964-6108 9646154open DKOA dominating colors accented with Bank. also a graduate of Bradford High or oven Jolat Rdr pearls and ribbons. The groom is a 1983 graduate of and is employed by DuPont.All : Mon-Sat 9-5 Flower girl was Sunnie Douglassand Bradford High School and is friends and relatives are invited Country Carpets Ring Bearer was Paul Hersey. employed at Sunland Training to attend. A reception will Registered "PEPPERELL" & 'WEST POINT South Sot follow immediately in the church PEPPERELL" Dealer The bride's gown was resplendantwith Center of Gainesville. trimming sheer the ruffles Queen and Anne Venise neckline lace, fellowship hall."Genius We Sell It Country Carpets SPECIAL of the WEEK shoulders and sheer back yoke We Install It Solid Saxony or Sculptured which featured covered buttons and . Leila'sDress We Guarantee it loops. The bodice was formed by Is the capacity for $9 .99 sq. yd. Installed w/9/16" padding jeweled Venise lace and draped & Gift Shop seeing relationships where ( ( 'VISA ) " pearl droplets In the center of pearl Bradford Sq. Shopping Ctr lesser men see none. Values up to $15.99 strands. Wire edge ruffles and 964-E051 William James Financing Available Several Handsome and Vibrant Colors to Choose from. English net cuffs with jeweled Venise lace appliques added to the for ALL ____.-; your uniqueness of the gown. A lampshade skirt dropped from the front Weddingneeds. and back Wire edge . ruffles on them and chapel train were decorated with scalloped em broidery.The I ' bride's flowers consisted of an exquisite silk bouquet made up of the attendants colors accented with bridal ribbon and baby's breath. earrings The bride with wore matching diamond and necklace pearl 'A ii tt I 1 n and her a diamond by her sister.& gold Her bracelet headpiece givento IijL: : ___ I II ___ i was a white lace rose gently caress- ing the long flowing veil accented Put Masterpiece Wedding with teardrop pearls. Invitations at the top ot The reception following the your list We make It easyto I I I b. ' ceremony was held in the reception be elegant - hall of Hope Baptist Church. Each of the five tables in the reception area MASTERPIECESTODIQS carried out the rainbow theme, covered with a lace skirt. The hall was adorned with greenery and bou- quets. _ ".. / A life policy that can put - -' COUPON - -COUPON - COUPON 1 COUPON Ti Allstate Universal you in Life charge.With as long .as and you qualify, : 10 Pc. BargainBucket T II II 3 pc. Dinner I I 9 pc. Value Pack T I II I II : 15 pc. Bucket I you can raise or lower your premiums coverageas your needs change. Plus, your cash value grows I $2.79 I 8.49 I II I 8.99 : using! current competitive rates. $6.99 I I I II I / I Get 3 pieces of the Colonel'sI Get 9 pieces of the Colonel's Get 15 pieces of the Colonel'sOriginal I .. Original Recipe or Extra Original Recipe Chicken or Recipe or Extra I I 'I I Get 10 pieces of the Colonel'sOriginal Crispy" Chicken mashed Extra Crispy'" Chicken, large Crispy' Chicken with this I Need insurance for yourtto'Ihe I Recipe' or extraCrispy" potatoes and gravy,cole slaw and I mashed potatoes, large gravy, I I coupon. Coupon good only for mobile home d1UP1dS : I Chicken, 4 BUTTER- I 1 biscuit with this coupon. large salad and 4 buttermilk biscuits combination white/dark orders I home, Go MILK BISCUITS with this not be used with Coupon good only for combination with this coupon. Coupon and may any car, life of boat? \ l'copte.JHstaIE I coupon. Coupon good only for I white/dark orders and may I good only for combination white I I other special offers. Limit one per I ,,' combination white/dark orders not be used with any other special dark orders and may not be used coupon. Customer pays all appli I and may not be used with any I offers. Limit 4 per coupon. I with any other special offers. I I cable sales tax. I other special offers. Limit one per Customer all applicable Customer all applicablesales pays I coupon. Customer pays all appli- I tax.OFFER. pays I sales tax.OFFER. I I I cable sales tax. II AbuULU.li_ ..."., g I OFFER EXPIRES I EXPIRES I EXPIRES I II I OFFER EXPIRES I Call met ---- 9123187 I 9/23/87 Y I 9123187 V I I 9/23/87 t( |have lh.right coveogefor I -: J all your n.. lt. Ken - I - te ear - - mm de W. Moda.e Chlny M. 0 ; ': ''::''T : e. ..yjtt&tACH$ MA"t'P' M M.w Winn 01... ''f.: :" 1AO.: .JA ,K, ).NV.., e .ar_ cue.tw..ew. :Ask atjouto( a i 1 e .1 ii' ( .. i .,. -'" ,, 'p" ... ."r. .,, ... ". '. ,.., . .. ... ,, ". .. '" . ., lo \. I , . Page SA TELEGRAPH September 3.198T Parker-Bonwit Wed June 20 Baby i Beauty PageantSet + for Keystone SAVE 25% . f . r The Florida Cinderella Dreamgtrl HANes ALIVE1** HOSIERY . Annette Charlene Parker ands) bride wore a lovely gown of white Beauty Pageants' next: North '. Steven Leon Bonwit were united In satin with an embroidered lace fitted Florida pageant will be held in marriage in an afternoon ceremonyon bodice trimmed with sequins Keystone on Sunday.Sept. 20 at the f , Saturday June 20. Rev. Richard from neckline to waist.She carried aeasegay Lion Club. It A. Petry officiated at the ceremony of yarnations: and white Boys will also have their own which was held at Perrlne Peters category with a winner and tIIreeIIo'IlJnJuPaget United Methodist Church. roses with teal splashed coloring. nmnersmp. may The bride is the daughter of The Maid of Honor and attendants enter. Every contfrtant receives a Charles and Garnita Parker of were in Jade colored floor-length gift and certificate. t -, rot Miami, and the granddaughter of gowns. They each carried nosegaysof Refreshments will be served. + y. , Mrs. Let e Parker of Jacksonvilleand heavy teal flowers touched withwjlite Contestants will compete for ": the late Mr.and Mrs.L.S.Hutto. flowers and streamers. specially designed trophies, crowns ., , She is the niece of Mrs. Edna Well The sanctuary was beautifully and banners. There will be two '. .' .1 ' and Mrs. Carolyn Redgrave of decorated with baskets of summer overall winners, one in the baby: iA". --.Jt Starke and Mrs. Jeannette Joyce of flowers. The spiral candelabras on category and one in the 4 and over t 4fl' ;';'; of!., Jacksonville. either side of the altar were entwined category. The baby overall winner ''ti'I fl'l"..",!'-.s:" Parents of the groom are Robert in fern and roses. will receive a crown, beautiful : t and Uene Bonwit. Grandparents are Following the wedding a lovely trophy banner and beautiful 36" Irving and Eleanor Oseroff, all of reception was held in the church Mr.and Mrs.Steve Bwmtt clown dolL The older overall winner Stock up now through Sept. 12. Chaos from support stockings, Miami. fellowship bail. The celebration was will win a Cinderella designed glass panty hose.Assorted colors and sizes. Special orders available. I Maid of honor was Sheila Littlest held at the Redlands Golf and Country slipper trophy filled with coins A-F Sheer Sandalfoot sizes $5.21Sheer Parrtyhos. crown and banner. support Bridal attendants were Cotle Club TcTHomeslead, where the Clements, Perla Dallaga, Kim Gile. guests enjoyed eating and dancing to All winners will have their entry support Stockings, sizes S4.$4.13 and Cheryl McMahon. Flower girlwas the music provided by the bride's SpecialArrivals fees paid for the State pageant to beheld Sheer support reinforced toe nude heel pantyhose sizes A-F.$..21Leila's Chrissy Robbins and Ring- brother, Scott, and his band. Immediately in Watt Disney World in June of Bearer was Shawn Payne. following, the bride and 1988. Dress & Gifts Best man was Byron Payne. groom left on their honeymoon in The Florida Cinderella Dreamgirl Groomsmen were Scott Parker California. pageant is a licensed Beauty Bradford Square Shopping Center brother of the bride, and Allan and The groom Is associated with his Pageant with low entry fees. The 964-5051 Mark Bonwit, brothers of the groom dad in accounting. He is also a well- Theodore Greenly. II enter call Ellen 9M44SZ days orCJris. Special orders along with Michael McMahon. known magician In the Dade County Ted and Joy Greenly of Fayet- .96HIIOI1IigtJIs. Mon-Sat 9:30: 5:30: Providing music was Mrs. John area.The bride is a registered nurse teville, N.C., proudly announce the --- -, Redding at the organ. Special music at Coral Reef General Hospital in birth of a son. Theodore Franklin - was provided by Mrs. Steven Martin Miami, having received her BS Greenly II,born August 19 in Fayet- soloist. Degree in Nursing from the University teville, N.C. He is welcomed by Given In marriage by her dad, the of Florida. sister Mandy May,one year old. Maternal grandparents are Gem Markham and the late Hershel A. Doughman-Manning To Wed September 19 Markham of Gainesville. Paternal grandparents are Ordy Bonnie E. Doughman of Starke, Pine Grove Methodist Church in Greenly of Starke and the late _ wishes to announce the engagementand Raiford.All Gerald A. Greenly. approaching marriage of her friends and relatives of the Take SR 18 West from 3O1 daughter, Venus Marie, to Daniel couple are cordially invited to at- Christopher RegisterSteve FOREST 7. 4 milesfrom Intersection Go Ferrell of Alberteen I Manning, son tend.Marie and Kathy Register of and Ferrell Manning of Lawtey. and Danny are both 1986 Starke proudly announce the birth of HEIGHTS Starke to signs. Marie is also the daughter of the late graduates of Bradford High School. a lOll, Christopher Stephen born CALL: William M. Doughman of Starke. Marie is employed at Advanced August 26 in Gainesville. The/ wedding ceremony will take Electronics and Danny is employedat Christopher weighed 8 IDS. 3 or. and SUBDIVISION (904) 475-1848 place Saturday,Sept. 19, at 7 p.m.at Camp Blanding. he is welcomed by sister. Jaime or Lynn 3tt years old. LG.Beautiful Pines , Maternal grandparents are Mr. Paved Streets (912) 681-4516 Winkler-Jackson Given Open HouseAn and Mrs. James L. Locke of Starke . and Mr.and Mrs.Doug Bell of Ponce . open house was given August of Madison, Mr. and Mrs. Larry de Leon,Fla.Paternal . 15 honoring Clare Winkler and Welch and Mr. and Mrs. Kevin grandparents are Mr. Rodney Jackson at the home of Burnett,all of Hilliard. and Mrs. L.B. Register. Jr. of a - George and Gladys Pierce. Starke. Miss Winkler and Mr. Jackson's wedding will be an event of September 19. Hosts and hostesses for this occa- sion were Mr and Mrs. Tom Casey, Mr. and Mrs. Jimmy Crosby, Sr., Mr. and Mrs. James Duncan, Mr. and Mrs. Joe Cissy, Mr. and Mrs. YEAR Kenneth Grider, Mr. and Mrs. Jim Lewis, Mr.and Mrs.Frank Mitchell Mr. and Mrs. George Pierce, and'Miss Della Rosenberg. TER JLEGARS END sALEImnml j Greeting guests at the door were . Mr. and Mrs. George Pierce Mr. and Mrs. Leroy Jackson, and i Mr. and Mrs. George Winkler, along with the bride and groomtobe.The . wedding couple was presentedwith salt and pepper shakers and a . gravy boat In their chosen china pattern .- " as a memento of the occasion. RANGER'S" 270 couples were Approximate the open house bet- ween Special the hours guests of included 7 and 9 p.m.Rodney'stwo (only 2 left) grandmothers, Mrs. Lewis Welch of Madison and Mrs. Hinton 1.9% or $700 Jackson of Starke. Out of town ? guests Included Mrs. Mike Scanlan cash, back Mrs. Richard Warren And Infant Son ,. Given Baby ShowerMrs. $6995. Richard Warren and infant son, Master Richard Christopher 1987 Warren, were honored with a baby F-150 shower, Tuesday, Aug. 25 at the home of Mrs. Dwayne Elder, 675 W. - Madison St. (only 2 left) Guests, greeted at the entry,plac- $8995 ed their names in a basket for door prizes- ceramic bear with balloonto 300 E.F.I. (six cyl.) o be given the baby and a ceramic guest.A picture. frame to be kept by the 4 speed creeper, . corsage was presented to the honoree.The gift table was covered aux. fuel tank with an ecru linen cloth and was centered with a small white $500 cash back 1 candelabra, encircled with greenery, yellow daisies, accented 1I 1 with baby toys and votive cups y? e holding burning yellow candles.A I 1'I mint green cloth with a white hand-crocheted overlay covered the I dining table, centered with a large silk arrangement of ferns, yellow I daisies, baby rattle and toy bear accents : ' along with burning yellow I. ' candles In votive cups. 1987 1.90/0 or $Sdo"GL" Lime punch with lemon slices Tempo mixed nuts and a cake decorateswith a baby boy motif were served to cash back the 20 guests. Sport< Among the guests attending were grandmothers, Mrs. ]1987 Taurus 2&4dr. Larry and Mrs.John Warren $8995 and great-grandmother, Mrs. Viola (in stock units only) Bryant. . The game prize was won by Mrs. Wagon _ Jerry Wilson. Door prizes were o. and received Cheryl by Scyender.Mrs. Dennis Burkhalter 6 Cyl., full size spare, tilt, Conversion A stroller was presented to the AC aluminum speed honoree and her son from the , hostesses,Mrs.Dwayne Elder,Mrs. wheels. -;:- Ready Chassis) - Wilbur, Waters, Mrs. Leonard Moore, Mrs. Ted Oglesby, Mrs. Ar- ' thur Johnson and Mrs. Harold Coir 1.90/0 or $500 0 (shell only) ston.. Assisting with the babyshower Waters.R and games were Deanna- cash back I-; V 302 auto O/drive.. locks. tilt| cruise tanks. J E 20th Class Reunion _ Set for S.pt5-'.7 $ $12.995 The 1967 graduating class of 13.495. Robinson Jenkins Ellerson High School will be holding its 20th Reu- nion on Sept. S, 6, and 7. The activities will begin Friday ,_ mnml : night, Sept. 5, at 7:30 p.m. at Pitt- . man's Bar-B-Que, with a get- . acquainted night. Saturday night -- will begin at 8:30: p.m. with a buffet Motors i dinner and party at Kelley's Night Terwillegar LimIt. Sunday at 12 noon there will be church and memorial services at< Mt Calvary Baptist Church. 473-FORD All alumni of R.J.E. and facultyare 964-7200 371-1096 388-FORD cordially invited to all of these Keystone Hgts activities as special guests of the Starke Gainesville Jacksonville class of 1967. Let's remember Dear State Road 21 . Old R.J.E.I W. Madison '" - " " ". ,,, ,.". .... .p "' P" ,_ .''' ".. .'H. .. .," .,. .. . .. .. "' ",' -" "" . .. .. ,,<, .. .. .. .. .' m. ". .. ".. .. ," . t I I September 3,1987 TELEGRAPH PageTA : Social Briefs Church News Vo-Tech Classes Beginning Soon This school year the Bradford- In the area of community education - Theresa Ricks Sullivan Honored Gospel Set Union Vo-Tech Evening Center Is of- the Vo-Tech Center offers Showers Sing By Rev.. fering academic and vocational flower arranging cake decorating authored several Hughes has For Saturday Night books which have become bestsellers courses according to Administrator computer education CPR/first aid Theresa Ricks Sullivan the an arrangement of gnarled wood A Gospel SitC will be held at the across the nation. He has Charles Thomas. parenting and hunter safety amateur August 22 bride of Rusty and Course offerings Include typing, radio communityban& Sullivan greenery.The Independent Oath of God of ProSatuctia ministered at such places as Christ) was honored with a shower on July wedding couple received bookkeeping, welding air- phecy toe. Revival Center tie for the Nations Bible Institute, Ken- ??, given by the ladies of Hope Bap- many gifts to be used in the yard and night at 7:30 seth Hagtn's Tulsa Campmeeting conditioning/refrigeration repair Registration for these courses has pun. tist Church in Theressa. heavy equipment school bus driver begun, with classes beginning In home as well as much good-natured Rev. W.T. Pastor invites PTL Club, as well as Full Gospel Lanry. The honoree training,the 20-hour for childcare some areas Tuesday Sept. 8, was presented with a advice on how to use them. The everyone 10 the Cater, located at Business Men's Fellowships and course says lovely corsage in her colors of pink guests enjoyed finger foods aDd M38 N. Avenue in Starke. Conventions. Karrel has authored certification adult basic education Administrator Thomas. For more and white, along with corsages desserts provided by members of Temple (learn to read), and GED test information call Thomas at the Vo- the book The God Kind of Mar- presented to her mother. Barbara the club. Full Gospel Rovhrol nage". preparation for the high school Tech Center 964-M50. Ricks the groom's mother Lynda diploma. Life and Praise Ministries is To B. 7.12 Sullivan and the groom's grandmother August 17 Show... Sept. located IV 4 miles south of Starke on After,Edna Introductions Sullivan. in the Theresa Ricks was also given a A revival with Ber. Ronnie Sur- Hwy.301..For more information call Big Shoals Launch Closing for Improvements I reocy will be held Sept 7-Uta at7:30 IM-4I96. shower on August 17 by Denise Ball decorated education building a at the Full Carpel Hasten I an game was played in which unusual of Lake Butler. The shower was State Road 100 near New flies Beginning Sept 8 the canoe launchat recreational activities picnicing foods were to be identified.The prize given in the Ricks home in Starke. Pastor Hoke O'Berry" invites Bradford Baptist ChurchTo Suwannee River Water District fishing, nature study and nature was presented to Theresa who also The bride-elect of Rusty Sullivan everyone to attend For farther in Have Big Shoals Tract will be closed for trails will continue to be available.For . received a wide assortment of lovely received an arrangement of pink formation call Rev O"Bcirv, SpecialS repairs and improvements.The . gifts. carnations in an etched crystal vase. 78Z-37OL .rvk.s Sunday 9/6 boat launch at Big Shoals Appropriate Bible verses were The living and dining rooms were Tract in Hamilton County is ex- further information, contact read and a prayer given by Julie gaily decorated by Denise with pink Homecoming This Sunday Dary Champlin, veteran missionary pected to reopen by Jan. 1. Another Carolyn Mobley (904) 362-1001. Weyand before the guests were servo and white streamers balloons and to Surinam South America ed delicious finger foods and punch, silk flowers. Several games were At D.don Baptist and the Congo will be speaking at played with prizes being won by Bradford Baptist Church this Sunday provided by the ladies of the church. Sunday Sept .. Oedan Baptist Laurie Mullins Carolyn Eaves and II am..Sept. 6. Church will celebrate las years of Michelle Kimutis. He has many interesting experiences - Couple Show.r... The various gifts were passed Christian service in the Breakercommumty. to relate about his work Miss Ricks and Mr. Sullivan were around for all to see after they were The UMIIUI is stAll with the bush natives. Pastor an given a couples shower by Four opened. A special gift- handmade holding service in the building constructed Ctsunphn is presently teaching a 6f5 in located about :3 Points Hunting Club at the Theresaa reproduction of a coach trunk com laz. missions! course at Trinity Baptist miles east of Brollker.Rev . Community Center on Aug. 11. plete with brass fittings and leather time College in Jacksonville. seafood place. Howard H. - Matt /oeg Theresa received an unusual corsage strapswas brought from Pennsylvania resident and Sunday evening at 6 p.m., the . of Breaker formerpastor of intricately folded ribbon that by the honoree's grandmother AJetheian Singers, a nationally of several churches in Bradford formed a pink rose. Rusty's "cor- .Emma Kish. recognized music team from Trinity sage" was a raccoon tail adorned Denise was assisted in serving and day nm-if*_ will bring v Baptist College, will present a the m'elOIe service. with camouflage leaves and army snacks, punch and sheet cake by morning musical repertoire with personal green ribbon. Theresa's aunts,Thelma Johnson of Following the momma will be serY serwdfOl' ft.dinon' testimony and challenge.The goal of FEED 4 me The gift table was covered with Jacksonville and Kathleen Haag of on grounds the Aletbeian Singer is to communicate - all to Pastor lobo camouflage cloth and centered with Stoneboro Pa. enjoy. Hendry effectiveiy the message of invites friends f" former membersto Jesus Const through music andBradford come and participate in tms Hampton joyous oca O""" Baptist Church is $8.00PLUS I HillteS By Dolores Meng Phone46S-H1J located Just off Hwy. 100 South on Hwy.10O-A Gnffis Loop) across the Home on Leave... Birthday Celebrations... JvWphiboshffth MinistriesTo railroad tracks.Everyone is invitedto Pfc. Alan Rogers is spending one On Saturday Aug. 29, Ruth Meng &. At Hop Baptist attend.For more information call91.4iZ3 week visiting his parents, Mr. and was honored with a unique birthday dotty founder and or 9648119.Recognition. Mrs. George W. Rogers and friendsin party given by her children at the otheraMike aDtnes.will . the area. Alan completed basic home of Randy and Sallye Scoggins. be used and training at Ft. Monmouth N.J. Some forty relatives were guided sharing bun and He plans to be assigned asChaplain's to the site of the party by a roadside his wife's affliction with cerebral Assistant at an Army 'Happy Birthday. Ruth Meng' signat palsy reach people for Cnrist. PLUS A HOUDAY VALUE! Base in Germany. We wish him the the SR 18 entrance to the Scoggins Brotherto Mike and his wife Sadie Pvt. Rogers Completes best of luck I e home. are Hill time aiiisianaries under the Basic TrainingPvt. S CUP THIS COUPON BED BE Visitors... Guests were treated to a delicious auspices of Baptist Missions to Andrew and Wanda Kay: Robinson bar-b-que beef dinner with a varietyof Forgotten Peoples. fat. located in and Mrs Alan George G. Rogers W. son Rogers of Mr.of $2.00 OFF VALUE PACK OR foods. The specialty carport was Jacksonville. have returned to Nashville, Tenn., decorated balloons and Ministries Hepbibosneth Hampton has completed basic I YAWl PACK Includea:U fish fillets,naturaklut ench THRIFT PACK by following five days as guests of of wishes.many now headquartered and training at Fort Diz,NJ. fries. Mesh cole IIaw and 8 hush pupptos.Serves or good signs affiliated with Central Lawrence and Teresa Meng. While Baptist During the training, students more.THRIFT PACK Include:8 fish fillets,naturaculflenchftlellr8Ihcolealawand.hulh ' here Andrew preached and Wanda Games were played with ap- Church in Panama City.Fla. received instruction in drill andceremonies i nt.puppIeLs.rveaJ.4. . propriate certificates awarded. Pastor Gary Heath and members! Captain at the LI sang Church. Hampton Baptist One of the hilarious highlights of of Hope Baptist Church invite J'ClllIo tactics ,weapons map reading, Offer.. ...../10.Nos pod with any.._ the evening occurred when Ruth andPaul's attend alRl'Yicewdb military courtesy, military I Paul and Patricia Lefebvre of thiaspec Hike justice first aid, and Army history place Lillian Ala., spent from Wednesday eldest son was led for a cession Chitty and special mosic by Flees and traditions. to Sunday visiting his mother. Mrs. in a wheelchair.This was a surprise Stanley. The service will be held Rogers is i a 1985 graduate of Brad- FISH 0_ FRIES Two tender Viola Lefebvre and the Henry Spell for his pre-fortieth birthday. Sunday.Sept. fiat 7:15 pjn.at Hope: ford High SchooL triesfiand2SouthernY cut french families. Carlton and Ruth were presentedwith Baptist Church, which is located on - Viola's daughter Barbara Fitzpatrick numerous comical cards and Hwy. uio, eight miles south of FOR $01 OOstyie hush puppies. returned to her Pensacola gag gifts. Starke. "There's home Friday, following her week's Ruth's cake was a masterpiecemade nothing Captain, Dfe visit with relatives here. by her daughter Carolyn. It Seminar with decorated Marriage wrong my OH.r.*plrM10..Nol pod with olhr I was in the theme of a any .I_ Con4 Jence... family tree with all family To Be Sept. 16-20 hearing!" .serial'M'oeoun'' (.>i>...ui'(>.iinVc.pt.D-.t A great little seafood].-..... Sympathy is extended to the fami- members (more than forty) pic- At Life ft Praise) MinistryA HeanlJliat one before' BBBBi CUP THIS COUPON BBBB , ly of Ltntan Eva Roberts who died on.. tured -miniature with Paul and ,Yew probably: \ "...... First of oil, it FISH 8& FRIES Two tender fish fillets|| natural- August"Friends Ruth heading the group. Includedwere "Reigning Life Marriage des people o fang time to realize Southern- cutfrench 2 of will all eleven children in-laws Seminar" with eaneehst-Teacber. fries and Harry Fertig >ft.. have o herring problem It hap FOR regret to hear that he died on August and twenty grandchildren. Don Hughes and ms wife.OK.sr .held of pens graded Then they think, they $2DO style hush puppies. 29. Mr. Fertig will be rememberedas Carlton's cake was somethingelse Broken "'"- at cow comps.aft*for ir You know the ONLY a former member of the Hampton It war quite a plain cake Life and Praise llmstnes in Starke 119"'. .lft<. rand television, the cupped Captain Dfe Senior Citizens Club active in com- decorated in black with an"Over the Sept 16-20. ear amdt on< yes, the unending, ON.....plrMIO.' .Not good xltheiiyothw" munity affairs.Recuperating.. Hill" insignia. Service times will be as follows: -wfmrrd.. \yai.say Y' _... ar Hiiii(.t.....lel..."...c.pt.o') A great I"little seafood...-.....I IIHBB ... Relatives came from Keystone Sept. 1C, 17. 15.and is at 7:30 pmi. IlIf"s difficult to live with a hearing, CUP THIS COUPON a . Tampa Orlando Orange Park by Rev. Hughes. Morning lovedGibe's. services HOTS. whether" ifs yours or o Fred Albrecht is improving follow- Thomasville Ga., and Interlachen conducted by Kami will be held You don't "have to Most hear- FISH FRIES Two tender fish and. natural- ing surgery at Alachua General for an enjoyable celebration with the Sept 11....1,.at 10:30 a.m.On Sept. mg' Nones can be"helped. I cut french fries 2 Southern- Hospital last week.School Hampton Lake relatives. 20. there.... be a 10:30 a-m.service Come byMnOtELL'5 FOR style hush puppies. Other August Birthdays... only.conducted by: Rev Hughes.CanYouTapT DRUG STORE ONLY$2DO Aug. 1-Clinton Brown; 2-Claire Tuesday. S*>pt. 8eceve Captain DsO4f MenusSept. Brunetti; 3-Carole Stevenson; *.*the halMaiy.our dates .. _. r lr /10.Not coed with other 4-Kelly Bowen and Ester Smith; sad.. _.Levis de ...A. .......01.."'_n"{.'_"....."ne any c.pt.o-.i, A m _.-......little seafood ...-..-..... .7-11 5--Thomas Meng; 6--Kathy h? ran NEARING nsrs.3oi:3O CUP THIS COUPON . Bradford Elem.&Middle School Langford; 9-Jennie Rhea, Mike or schedule on appointment at our office Mondays NO SCHOOL LABOR DAY. Mowry, Gene Joyner and Dolores Great American ..>Gainesville for o FREE "hearing FISH & FRIES Two tender fish f1llets' natural- Tuesday:Pig-In-TlM-Blanket,baked beana,cab- Meng; ID-Carmen Water house, Records and FirstsThe best far someone you* love. You'll be cutY$2.OO french fries. and 2 Southern- bags alaw. ,peaches milk. Timmy Slater and Robert Swak; ra.r-t p.tdeer ever Ie- tits b it. style hush puppies Bun lettuce tomato Wod.-"lIAmbufllet'on and Jason Pons and pickle buttered com cherry cobbler,mil<. It-Randy Scoggins ; corded in baseball im Nolan Bdione- Thursday Taco pie (meat, cheese, lettuce 12-David Parker. Derrick Jenkins Ryan. He wa measured to Ca tain OSo tomato), green beana fruit cup milk. and Sylvia Hall; 14-Danny Wigginsand pitch at 1009 miles boar 13th St.Galyme. . Tuna salad on lettuce aalllne crackers, per 1905 NW .. Friday i Kelly Bowen. .. .pod ...h.ny..h. mixed vegetable. *,fruit cinnamon rolls milk. Aug. 16-Tracy Youngblood and Donald Own hold the record Florida ._.r..p'/1o.N.'1.1 or"i.ouot(.'......./...."...bp'.D'o) A great little seafood place.. Bradford High School Rocky Rawcliffe; 18-Christie Hall; S the bates time in theHoaoIuha Call 3T3-55O7 for Appt. H B B B CUP THIS COUPON B B REi Monday i NO SCHOOL LABOR DAY. 19-Tim Crews Charles Woodardand llaraboiD8iadoward. Tuesday: Beef-A-RoOl w/Meat Sauce, cheese June Haddock; 20-Freda Mit- . alut garden....d.apple crisp hot roll,milk. chell and David Meng; 21-Henry .. Hi time esas four Wednesday! Fried chicken, baked beam, coleslaw hour*. 20 minutes 36 seeThe - fruit cup,cinnamon roll milk. Rhoden, Keya Hendrieth and Pam ...... Thursday Salisbury Steak,rice*gravy,green McWilliams; 22-Miranda Lee; .. . beans peaches,chocolate cake,biscuits mill 24--Amy Williams and Jeanne french fries, i ice peas ear be- Friday i Hot dog on bun applesauce ,brownie,milk. Bogunia; 25-Tracy Youngblooc. and lined to loses ......... at writ Rodney Padgett; 26- Edward the 1----i Pntdiase Es- A-la-Carte Becker Carmol Thornton and Ed- peditim is &..L-nnilSOCTlaat's Monday i NO SCHOOL-LABOR DAY.Tuesday ward Baker 27-Terry Kerschner fries, ; aocnrdiaMl to fxprrtm atMrm. Hamburger, plaza, french mllkahakea. and Evelyn Rawcliffe 28-Angela Rkftard.oa s T........... Wednesday. Corndoga, pliia french fries. Thomas and Vicki Hutto; 29-Denise the tripbad ........ Curtis 30-Verdis Hawkins and Dink mtlkahak ; touch to aD Great Americas fries french Thursday Cheeseburgers Baker; 31-Joshua Meng. w Y Sinndae. O.J. milkshakes Friday i French fries,milkshakes.hamburgers..Each .. e day students have choice oil hot lunch, .. . salad bar or they may purchase r $d i! z yFr r w 4 xrr'1, NOTICE OF BUDGET HEARINGThe ,' r . -- at Bradford County-Board of County Commis- sioners will hold a public hearing at the Bradford L-! " County Courthouse on Tuesday, September 9, 1987, at - 8:00: p. m. for the purpose of Tentatively adopting the HEAR 1987-88 Budget.All . THE GETHSEMANE QUARTETIN interested citizens are encouraged to attend this hearing. Persons attending the hearing have the rightto CONCERTSaturday make written or oral comments regarding the September 5,1987 1987-88 Budget. 7:30: P.M. No Admission Charge Gilbert Brown Esther B. Ellerson Pine Level Baptist Church i Clerk to the Board County Finance Director 3 1/2 Miles West of Starke, Highway' 100 Roman Alvarez, Pastorn' r .. .. .. . ... .. .. -, . .. '" .. .. "' "" ." . .' - .. ., U J TELEGI\\PII September 3.1987 Season Begins Friday_ Night with Fall JamboreeInjury riddled Bradford High In the first quarter. plays the first ana last periods.All spring jamboree because of an faces tough competition with tough Keystone High,5-3 last season but tickets for the jamboree are$3. automobile accident on his way to area foes Union High and Keystone primed for bear this year, plays In Barring rain, Coach David Hurse the game. SEPT. 11 FRI. Flagler Pa ast HOME 8:00 P.M. High in the annual preseason fall terlachen High in the second period. expects a good crowd. jamboree to be played on Bradford KHS and BUS play the third With eight players on the injury Scrambling Richard Harrison, a SEPT. 18 FRI. Fernandina Beach Away 8:00 P.M. Field in Starke beginning at 8 p.m. period. list, the Tornado gridders will be the three year starter at quarterback at Friday.: Sept.5. Union High and BHS play the underdog. UHS, will lead the Tigers. SEPT.25 FRI. West Nassau HOME 8:00 P.M. Union High :J.11ast year,and In- fourth period. Starting KHS quarterback Aaron Interlachen is developing another OCT. 02 8:00 P.M. tertechen High 10-1 and District KHS. IHS, and BUS each must Stanley,6-1,175,12, will be the helm good team after its 10-1 record last FRI. Interlachen Away : :3-ZA champion last year, will play play two straight quarter. I'HS for the Indians. Stanley missed the. year. OCT. 09 FRI. Macc1enny nOME 8:00: P.M. OCT. 16 FRI. Bishop Kenny Away 8:00: P.M. I BHS Offense Looking for Big ImprovementRiddled OCT.OCT. 30 23 FRI. Keystone- OPEN(Homecoming- ) HOME 8:00: PM. with injuries and behind Strong tackle Andy Tison, a 210 pulled loose in his back. Durban is from a hernia operation and NOY. 06 FRI. Newberry 8:00: P.M in defense preparation, the offense pound senior letterman, who has a doubtful for the opening game, Douglas to take over the tight end Away of the Tornado footballers is hurting sprained ankle. Tison is doubtful for coaches say. position and for Jenkins to play NOY. 13 FRI. Nease Away 8:00: P.M. and struggling as the season nears. the Sept. 11 opener. Keith Jenkins, an aggressive some at tackle. The offense has shown Improvement Starting center Mike Stillwell,still sophomore weak side tackle, Is Also listed at end are Chris NOY. 20 FRI. Santa Fe HOME 8:00 P.M. over-all says Head Coach recovering from arthroscopic sidelined with an injured knee. Dinkins, 155-10; and Harold David Hurse. But it's been "ter surgery on his knee this summer, is The injuries mean a lot of offen- Chandler 160-11. JUNIOR VARSITY rifically: hot"which has slowed progress not expected to see action for sive linemen must go both ways, Junior letterman Dane Clark, 185, SEPT. 10 TIIU. Lake Butler HOME 7:00 P.M. with the team facing tough several games. says Coach Clyatt. has the strong tackle position to competition from Keystone High Weak side guard Mathew Albrit- Terry Whitehead, a junior non- himself with Andy Tison Injured. SEPT. 18 TIIU. OPEN - and Union High this Friday Sept. 5, ton, a senior transfer from letterman, will be the center this Non-letterman Jerry Yates, 260-11, in the preseason football jamboree Gainesville High, returned to practice week, with Stillwell and Nazworth strenghtens the tackle position. SEPT.24 11IU. West Nassau HOME 7QO: P.M. to be played on Bradford Field here Sept. 1 after being out a week Junior Bill Hamilton,who letteredas in Starke. with a virus but was not up to full hurt.With Durban out and Albritton not a sophomore playing primarily at OCT. 01 11.IU. St. Augustine HOME 7:00: P.M. But the main thing is preparation speed Tuesday.: A new addition to up to par, senior letterman Mike linebacker last season, and Brian OCT. for the Sept. 11 opening regular the Tornadoes,Albritton is small but Elder, 155, quick and aggressive, Kendrick, 175-11, are at strong 08 THU Interlachen Away 7:00 P.M. season game in which BHS will host quick and Is expected to be a help. will be the weak guard and must also guard. OCT. 15 mu. North Marion HOME 7:00 P.M. Class:2A Flagler Palm Coast. He will be the snapper for punts and play defense. Strength of the BHS offense is the Ten letterman linemen are return- extra points for jamboree. Letterman Allen Wood 198-12, two lettermen at tailback: Rodney OCT. 21 WED. Keystone HOME 7:00 P.M. ing from a 2-8 season in 1986. But Letterman center/linebacker Eric heads the weak tackle position.Also Mosley, 165-11, and Greg Pittman with eight injuries most of the Tornado Nazworth, 195-12,twisted an ankle in playing weak side tackle are 145-11. Both have been running well, OCT. 29 THU Macc1enny Away 7:30 P.M. offensive linemen will have to practice Tuesday. Losing Nazworth, Clarence Williams,170,a junior non- says Coach Hurse.Sophomore . go both ways,play both offense and who can play guard and center, as letterman who didn't play football John Berry, 160, has David Hurse, Athletic Director defense, says Offensive Line Coach well as defensive linebacker and last year, Keith Jenkins, been showing good improvement at Lamer Clyatt. The injured playersare tackle, is about the worst thing that 165, who is injure quarterback. Coach Hurse also says Head Football Coach : can happen to the Tornado line now, Tight end is one position where the sophomore Travis Long, playing says Coach Hurse,who plans to hold Tornadoes have depth and capability. football for the first time, is improv 964-6470 Nazworth out of drills a few days to Top man there is veteran letterman ing.Clint be sure the veteran is ready to go Malachi Jenkins, 192-12. Two Reed, 175-10. is still a step FREE Friday night. juniors, Jimmy Long and Ed ahead at fullback because of his I Junior Chris Durban, who has Douglas, are providing good competition speed and quickness. But letterman L .EXPLORING been looking good at weak side at tight end. Coaches are Randall Polk, 160-12, and Spencer GODS WORD guards] sidelined! with a muscle looking for Long, who has recovered Smith, 170-12, will both see plenty of I Fred Davis Duick-Pontlac Inc. , action at fullback, says Coach HOME BIBLE STUDYThe Hurse. Sophomore Leon Jackson, Announces. the Association of STARKE FIRST ASSEMBLY OF GOD 165 is also playing well. - Bible Course Is taught in CHURCH Of GOD Hwy 16 & Weldon St. Storks The wide receiver position will be MEL; ITANENEves. I vote home free of charge. shared by letterman Darren Patterson 964-7180 This a m norwJenommalional study 422 N. St. Clalr 964.5445 Sunday School 10:00 a.m. Lance Wiggins Shawn Diggs, i based only on what "thus saith the Walter F. Montz, PastorWe Morning Worship 11 p.m. Chris Dinkins and Allen Jenkins. RHIIFMED j Won!ol God"APOSTOLIC Invite you to worship with us Evening Worship 6 p.m. Pedro Carter, 165-10, who has TRUTH U.P.C. A"."d.d Nursery W.d. Mld.Wvek Sarvlc 7:30 p.m. shown very good improvement at ,@ 7823303To Sunday School . . 10 omMor'nll defensive safety and will also play BUICK ED Worship . II amEvening Sfaff Nursery AvailableRev. wideout.CORBETTS. DAVISUtCKPONTUC : rauGK.ao . ecftedhil your home bible Scrvic . . 6 pm Stephen K. Pippin, Pantor awp.w.a INC .1i.O.. te.N44u ...." .cf for additional ifi i ocinflt loo Wedn.sday outh . 7:3Opm 964.6971 ; GREEN ova: flees.l MM _c-ss.-seo I I I p I I "" I"I. L -1' Ij'". ' ' Witt I L f\\' y'OU Tilgldd / . . I i Lamp of Jesus Ministries BADCOCK $0 e1 1' .w -- Labor Day .the traditional day Lewis Timber Co.I Crafts & ConsignmentsLocated : honoring the labor force of the off 100 S.toward Keystone, i iI HWY 301 S. 9646871PO FURNITUREKim I nation. Its a legal holiday .when -A Specialty Gift Shop" working people across the country I take right on 24th avenue,follow & Jan Johnson 504 W. Call 964-8547 take a one-day In break on the first Box 207, Starke signs. Eves. 964-5898 , Monday September. All Neture SIng.of Jesus Work has long been viewed a*the Carnets of Starke cure for most of the troubles of the GriffIs & Sons Blankenship'sChimney Country world. Honest and productive work, Flbreglass DURRANCE PUMP & I which one(Intends to get done .Is e I Works SUPPLY Sweep real blessing for humans.It keeps us Service moving forward and making our days "Home of the Stumpknockerboat" Attend your church regularly . on this earth worthwhile.As Locally Owned& Operated the parable of the talents shows, 964-8278 964.6108 964-6154 -. I; i. God expects us to do something with HWY 301 N.064-4461 or 964-5531 864 N.Temple 964-7061 I ,. \ our abilities. Draw fresh Inspiration Eyeglass Store E-Z Wheels Auto Sales r ; (oryourafeendworkInyourhouseofr'rfti Bradford Furniture HURSTS EXXON ,! worship this week. -We Finance Industries SERVICE "Your complete Buy Here Pay Here p,14 aH1,, a..w-...... 0w.ea.wb. HWY 301 N. "24 HR. WRECKER SERVICE" eyeglass center" 1320 N.Temple Ave. sandayNebaws 987 N.TEMPLE AV. 103 Edwards Rd. 964-8588 964-7783 a I Iuz.n I 964-7347 964-6111 CEDAR RIVER Mlddleburg Christian 'i iuaanNd.ws ARCHIE TANNER FUNERAL B&M STARTER & SEAFOODThe Academy ij .. 13.'7-25 HOME GENERATOR Best Seafood In Town K-4-12 Dignified Monuments Service 238 E. Washington St. 236 S.Temple Ave 3165 SR 215, Mlddleburg 964-5274 HWY 301 S. 964-5757 I 9645685Chastains (904) 282-4211 Jewelry & Gift Gloria's Music House 4i'g LARRY BATTENCONSTRUCTION (studio) Jones Craft ShopFor Gallery Instructor: Richard Kellogg and Gloria r CO. Bibles gifts &jewelry. Bryant 4v1 'n "Quality work for Less" all your craft & supply needs Lessons gullar,banjo electric bass r4. -Handmade Gifts- 104 W. Call St. State Road 100 South call:964-8120 Tu..Frl11.7 Sun & Mon 964-5263 S. 301 Plaza 964-7633 9647271Bradford 10-2 Title & Abstract JORDAN AGENCY AT The Nation WESTERN STEER FAMILY CROSLEYMANUFACTURING "We encourage you to STARKE STEAK HOUSE this week and first" From all of u.mt Wost.m St..r worship every "Serving you Salutes Labor week". 441 W. Madison St US 301 South CORPORATIONMark 964-6881 964-5237 or 9646313 964.8061 Mullins & Employees WATERS GROCERYCorner Mosley Tire Co. Tuesday G0ns/t Wednesday Gwws Thursday Exodus Exodus AMiy Saturday LetrlIlOua AAAcwre0r fi A On finny Insurance Call Now 964-8018 .. 12 .8 13 H818 M2 '5oU of US 301 & State US 301 N. Starke '.,.-w..wow.._. 440 W. Madison . Lawtey, FL 964-6600 eoa.._Q"wwMR VAee ACCIDENT CENTERS 24 HR Wrecker Service (Winn-Dixie Shopping Center) 'Ip' I 1ft'', OF AMERICA INC. 782-3737 Custom made exhaust stems This feature is published to 964-4695 WW 1 ', THE PAIN RELIEF DOCTORS NOEGEL'S AUTO FLORIDA NATIONAL encourage you to worship Glenn Fibreglass Homes Beautiful of BANK Fish Boxes&Tool Boxes North Florida SALES regularly It is made possibleby this week and weak Comer of Thompson & Weldon Construction CompanyAll "Worship every Officers, Directors & the firms listed here. at the church of your choice Staff 964-5912 types of Home Improvement 1018 N.Tempi 964-6461 9646766Terwillegar NAPA AUTO PARTS Allen's Office Suppliesand DENMARK FURNITUREIt's SERVICE TIRES & GERALD GRIFFISCONSTRUCTION Motors, Ins STORE Printing Company a fact, you can do Complete Tire Shop& Auto Sales& Service 206 W.Madison & US 301 Superior quality homes at in all the Art Supplies. Custom Framing Repairs "All the right parts better at Denmark's affordable)prices Starke 9647200SR Office Supplies N. Printing 402 N.Templ..HWY301 right places" 113 E. Call St 964-8925 434 W. Call 964-5827 964-6436 HWY 301 S. 964-6833 21 Keystone Heights . 155 W. BfOwite Rd. 964-6060 DOUGLAS BATTERY OF DEWITT c.JONES FUNERAL ,.. ;.... Community ORIAN WELLSCHEVROLETOLDS : .. Andrews Drugs STARKEWe HOME ... State Bank Inc rebuild starters alternators Distinguished,caring service for over 50 of Stark Management & Staff "For All Your Pharmacy Needs" &Generators years Starkes Only Home Owned HWY 301 North Steve& Fulch &Staff. Cindy 358 W. Madison 9647170Page Auto-Marine-Cycto Batteries Independent Bank St4 E.NoN 064-0200 Kcyttone 473-3179 964-7500 .. 407 N.Temple 964-7911 811 S.Walnut 984-7830 '''' ," '" , "n "' '" ,_ "" , I V ( . September 3, 1987 TELEGRAPII Page 91\ .. , ......................................................'.......monn.nn..........u.u.,__._,u..u......uu..__...n....n..u.nn'...........................n..no......n..n...'000 n..............n......n............................._.u.onnuuonmmm...............................-,..-.....-.......... Legal Notices . THIN: AND RECREATION LANDS N.W. 12th' Street Miami. Florida REVENUE BONDS. 33129; Frank Schaub State Attorneyfor IN THE CIRCUIT COURT NOTICE OF INTENTIONTO the Twelfth Judicial Circuit of PUBLIC NOTICETimberjack OF THE EIGHTH JUDICIAL REGISTER ORDER TO SHOW CAUSE Florida 2002 Rlngllng Boulevard CIRCUIT, IN AND FOR FICTITIOUS NAME Sarasota Florida 33577; Bill James, BRADFORD COUNTY, FLORIDA Pursuant to Section 865.09. Florida NOTICE TO: STATE OF FLORIDA AND State Attorney for the Thirteenth' Statute, notice I I. hereby given that the THE SEVERAL TAXPAYERS PROPERTY Judicial Circuit of Florida CountyCourthouse Reposession: PROBATE DIVISION undersigned David Van Valkenburg OWNERS AND CITIZENS THEREOF IN. Annex, Tampa Florida CASE NO. 87.63-CP vice President ATC Holding II, Inc. CLUDING NONRESIDENTS OWNING 33602; James Paul Appteman State 1986 240 Timberjack Cable Skidder FILE NO. 01-3849 982 S. Ulster St., Parkwv, William A. PROPERTY OR SUBJECT TO TAXATION Attorney for the Fourteenth Judicial Cropper Vice President KBL Sub I I. Inc. THEREIN. AND All OTHERS HAVINGOR Circuit of Florida.. P.O. Box 956.Marlanna Serial No. 846026 IN RE: Th. Estate Of; and KBL Sub II, Inc. 1409 Englewood CO CLAIMING ANY RIGHT. TITLE OR Florida 32446; David H. FRANCES WHITEHEAD, 80237 611 Walker Street Houston TX INTEREST IN PROPERTY TO BE AFFECTED Bludworth State Attorney for the Fifteenth This available bidder to Deceased 77027 joint owners, doing business BY THE ISSUANCE OF THE Judicial Circuit of Florida. P.O. equipment highest under the firm name of Paragon Cable, BONDS DESCRIBED THEREIN AND ALL Box 2905 West Palm Beach Florida through private sale on or after September>> 14, NOTICE OF ADMINISTRATION Intends to register told fictitious name OTHERS TO BE AFFECTED IN ANY WAY 33402; Kirk C. Zuelch State Attorneyfor 1987. under the aforesaid statute. THEREBY: the Sixteenth Judicial Circuit of Th. administration of the estate of Dated this 4th day of June, A.D., 1987 You and each of you, and the State Florida P.O. Box 1086. Key West FRANCES WHITEHEAD, deceased. File In Bradford County. of Florida through the State Attorney Florida 33040: ; Michael J. Sots State Equipment can be viewed at Timberjack Inc., Number 13845. Is pending In the Circuit 8/134tpd9/3 for the First, Second. Third. Fourth Attorney for the Seventeenth Judicial Court for Bradford County, Fifth Sixth Seventh Eighth Ninth, Circuit of Florida. 201 S.E. 6th Street Starke., Florida. Inquire through 964-6917 or Florida. Probate Division, the addr. Tenth Eleventh, Twelfth Thirteenth Ft. Lauderdale, Florida 33301: NormanR. 584-5063 of which I I. North Temple Avenue JOB OPENING Fourteenth Fifteenth Sixteenth, Wolflnger State Attorney for the Starke, Florida 32091 Th. name and Bradford County Road Department has Seventeenth Eighteenth Nineteenth Eighteenth Judicial Circuit of Florida addresses of the personal representative Immediate and Twentieth Judicial Circuits of Brevard County Courthouse, 400 South - an job opening for a qualifiedexperienced and the personal represen- Florida are hereby required to appear Street Titusvllle, Florida 32780; Bruce tative'i forth heavy equipment before this of Easterly boundary a distance of 75 feetto IN THE CIRCUIT COURT attorney or. set below court in the Chambers Colton State Attorney for the Nineteenth All interested person are r.qulred'a operator end for bulldozer grader, front- the Honorable J. lewis Hall Jr., Circuit Judicial Circuit of Florida, P.O. a point; run thence North 89 degrees, FOR BRADFORD COUNTY loader and other varied file with this court, WITHIN THREE operationalskills Judge, at the Leon County Courthouse Drawer 4401! Ft. Pierce, Florida 33448; 30 minute East a distance of 98.08 feet FLORIDA with chauffeur license. MONTHS OF THE FIRST PUBLICATIONOF In Tallahassee, Florida on the Joseph P. D'Alessandro State Attorney to a point; run thence North 1 degree, 10 PROBATE DIVISIONFile THIS NOTICE: ((1)) all claim againstthe Applications will be acepted from 7:30: 3rd day of November 1987 at 10:00: for the Twentieth Judicial Circuit minutes West a distance of 75 feet more Number 1-3857 estate and ((2)) any objection by on a.m. to 4 p.m. at 8128 North GrandStreet o'clock A.M. and show cause, if any of Florida. P.O. Drawer 399, Ft. or lets, to a point bearing North 89 ((87-77-CP) Interested whom August 27. 1987 through have the of the Complaint Florida certified degrees, 30 minutes East from point of person on this notice you why prayers Myers, 33902 by 11.1987.Equal . was served that challenge the validity September filed In the above-styled cause United States Mail this 18th day of beginning; run thence South 89 degree IN RE: ESTATE OF of the will the qualification of the Opportunity Employer should not be granted and the Bonds, August 1987. 30 minute West a distance of 97.21 feet LAURA BELLE BROWN personal representative, venue, or 8/27 2tchg 9/3 the security therefor, and proceedingswith RAYMOND K. PETTY to point of beginning.and Deceased jurisdiction of the court. respect thereto validated and Attorney for Plaintiff you are required to serve a copy All CLAIMS AND OBJECTIONS NOT \ confirmed a* therein prayed. The DIVISION OF BOND FINANCE of your written defenses, if any, to It on NOTICE OF ADMINISTRATIONThe NOTICE OF APPLICATION SO FILED WILL BE FOREVER BARRED. Bond to be Issued by the Plaintiff Room 493, Larson Building the Plaintiff attorney whole name and Publication of this FOR TAX DEED Tallahassee Florida 32399 address I I. TERENCE M. BROWN ESQUIRE administration the of Notice ha begunon herein are described as follows: of estate NOTICE IS HEREBY GIVEN that Philip Terence M. P.A. Pot Office 27 1987.PERSONAL. 488-.782 Brown LAURA File August NOT TO EXCEED $250,000,000 STATE ((904) BELLE BROWN deceased Howell the holder of the following certificates Drawer 40 Starke Florida REPRESENTATIVE: OF FLORIDA DEPARTMENT OF FL BAR ID No. 0354767 32091 on Number 87-77-CP, Is pending In the has filed aid certificates for a before 22 and file ROBERT ANGUS WHITEHEAD NATURAL RESOURCES CONSERVA- 8/27 3tchg 9/10 or September 1987 Circuit Court for Clay County Florida tax deed to be Issued thereon. The certificate the original with the Clerk of this Court 3438 Crum Road TION AND RECREATION LANDS Probate Division the address of whichIs numbers and of Issuance, either before Brooksvllle, Florida year REVENUE BONDS (hereinafter the"Bonds" service on Plaintiff attorney P.O. Box 698 Green Cove Springs, the CALL FOR BID description of the and the property or Immediately thereafter, otherwise ATTORNEY FOR ) to finance the acquisition of Florida 32043. The name and addresses name In which It wa assessed are a* Sealed bids will be received by the a default will be entered against PERSONAL REPRESENTATIVE lands, for public outdoor recreational of the personal representativeand : follows: City Commission of the City of Starke, you for the relief demanded In the com Dorla Jean In Alachua Baker the personal representative's attorney Christopher Bay Certificate 253 purposes Florida, at the City Hall In Stark. until plaint or petition. Terence M. Brown P.A. Bradford Brevard, Broward Calhoun are set forth below. Year of Issuance 1985 7:30 Tuesday September 15, p.m. WITNESS hand and the seal of aid my P.O. Drawer A Charlotte, Citrus, Clay, Collier, Columbia All interested are requiredto of ft. of 1987 at which time and place all bids persons Description Property: S 264 N Court on this 18 day of August 1987. Starke Florida Dade Dixie Duval file with this WITHIN THREE 32091 DeSoto court 461 ft of W lit of SW 1/4 of SW 1/4 of NW received will be publicly opened and GILBERT S. BROWN Telephone: ((904)) 964.8272 1/4 EX PAR IN NE COR 90' N 8 S by 1001 E Escambta, Flagler, Franklin Gadsden read aloud on the following: Clerk Circuit Court MONTHS OF THE FIRST PUBLICATIONOF 8/27 9/03 Gilchrlst Glades, Gulf Hamilton THIS NOTICE: ((1)I) all claims againstthe 2tchg Police Car W EX PARC 80' SQ AS DESC IN OR One 1988 By:Martha S. John Hardee, Hendry Hernando estate and (2) objection by an 204-481 C EX OR 214 Pg. 175. SECTION Specifications may be seen Deputy Clerk any IN THE CIRCUIT COURT Highlands, Hillsborough Holmes, Indian Clerk's OfficeIn interested person to whom notice wa 29, TOWNSHIP 8 SOUTH. RANGE 22. at City TERENCE M. BROWN ESQUIRE River, Jackson Jefferson mailed that challenge the validity of DUVAL COUNTY Name in which assessed Perley Clyde City Hall TERENCE M. BROWN, P.A. CASE NO. 89 10203 CA NelsonAll Lafayette, Lake, lee, Leon L.vy.Llb.rty. The City of Starke reserves the rightto Attorney for Plaintiff the will the qualifications of the personal Madison Manatee, Marion representative, venue, or of said property being In the County accept or reject any or all bids. Pot Office Drawer 40 In Re: The Marriage Of: of Bradford. State of Florida. Martin Monroe, Nassau Okaloosa The effective date will be the date of Storke, Florida 32091 jurisdiction of the court. Okeechobee Osceola Palm ALL CLAIMS AND OBJECTIONS NOT LARRY O. HEALAN. Husbandand Unless such certificate or certificatesshall Orange, acceptance 8/204tchg9/10 be redeemed according to law the Beach Pasco Plnellas, Polk Putnam City of Starke, Fl SO FILED WILL BE FOREVER BARRED. GLORIA K. HEALAN. Wife property described In such certificate orcertificates St. John, St. Lucie, Santa Rosa Neil L. Tucker Publication of this Notice has begun will be sold to 'the highest Sarasota Seminole, Sumter, Suwon- City Clerk IN THE CIRCUIT COURTOF an September 3, 1987.P.nonal. NOTICE OFSHERIFF'S bidder at the courthouse door on the nee Taylor Union Volusla, Wakulla 9/3 2tchg 9/10 THE EIGHTH JUDICIAL CIRCUIT, Representative: SALE Walton and Washington Counties, IN AND FOR THOMAS FRANKLIN BROWN, JR. 23rd of 11:00 day September 1987 at : Florida, a* more fully described In the BRADFORD COUNTY FLORIDA 345 Escambio Drive SE A.M.Dated resolution of the Governor and Winter Haven Fla. 33884 NOTICE IS HEREBY GIVEN that I I. DolphE. this 27th day of July. 1987. NOTICE OF INTENTIONTO CASENO.:87181CAIN Reddish, Sheriff of Bradford County, GILBERT S. BROWN Clerk Cabinet of the State of Florida dulyadopted REGISTER RE: The Marriage of Attorney for Personal Representative: Florida, under and by virtue of a Writ of Beulah Moody, D.C. by the Governor and Cabinetof FICTITIOUS NAME DANIEL JOSEPH GRAHAM MYRON C. PREVATT JR. the State of Florida, the Governing P.O. Drawer 790 a* Execution heretofore issued out of the Husband Clerk of Circuit Court Pursuant to Section 869.09 Florida Board of the Division of Bond Keystone Height. Fl 32656 obove-entitled Court In the above- and Of Bradford County Statutes, notice Is hereby given that the styled cause, hove levied upon the Florida Finance (the "Governing Board") onAugust undersigned Ellen Sakowskl. 331 Clark CLARE ANGELLA GRAHAM Telephone: ((904)) 473-4993 situate, lying and 4, 1987 (the "Resolution") 9/03 2tchg 9/10 following property Wife. being in Bradford County Florida to- 8/27 4tchg 9/17 which Resolution authorizes the issuance Street, Storke, Fl.. and Chris Rewls, NOTICE OF ACTION; . . . . . . . . . Route 2, Box 295, Starke, Fl.. joint wit: of the Bonds. The Resolution owners, doing business under the firm TO: DANIEL JOSEPH GRAHAM West half (W '/ ) of Block 1 South of IN THE CIRCUIT COURT provides that the Bonds, In an aggregate name of The Cinderella D.omglrlleou. 6227 W. Lisbon Avenue and Northwest (NW OF THE EIGHTH JUDICIAL CIRCUIT. amount not to exceed Range 3 quarter principal ty Pageant, Route 2, Box 295 Starke, Milwaukee WisconsinYOU IN THE CIRCUIT COURT 1/4)) of Block 1 South of Range 2 East in IN AND FOR two hundred fifty million dollars Fl., Intend to register sold fictitious ARE HEREBY NOTIFIED that an action EIGHTH JUDICIAL CIRCUIT Temples Subdivision, Section 22 BRADFORD COUNTY, FLORIDA (S250.000.000)), shall be dated and name under the aforesaid statute. for dissolution of marriage and IN AND FOR Township 6 South Range 22 East, except CASE NO.: 87-217-CA shall mature on such dates and In such Dated this 29th day of August A.D., other relief has been filed against you In BRADFORD COUNTY FLORIDA I parcels recorded in O.R. Book 74, Page IN RE: The Marriage of year and amount a* shall be provided 1987 In Bradford County. the above-styled Court and you are required Case No. 87.78-CP ((1.3858)) 185: O.R. Book 69, Page 201; O.R. Book WILLIAM NEAL LANEY by subsequent resolution of the 8/27 4tpd 9/17 to serve a copy of your written IN RE: The Estate Of I 69 Page 204; O.R. Book 38, Page 636, Husband Division of Bond Finance adopted on defense. If any, to it on TERENCE M. LUCILE HARRIS GREEN Bradford County Florida. and or prior to the sale of the Bonds. The BROWN ESQUIRE, Terence M. Brown Deceased. I a* the property of the above-named -LINDA FAY LANEY Bonds may be Issued substantially in PUBLIC AUCTION __ P.A., Post Office Drawer 40, Starke, * . Defendant and that on the UXdjioy,, .__. Wife-. ? .- ... fermrond-shall be-subject to other-. NOTICE. I. hereby given that on Monday Florida 3209ir on or' before '14 NOTICE OF ADMINISTRATION ' September, 1987, Monday at two NOTICE OF ACTION; termi and condition o* provided in September 7, 1987 at 10:00 o'clock September 1987 and file the originalwith o'clock on said day on the premises of TO: LINDA FAY LANEY the Resolution. The Bonds shall be A.M., the undersigned Gator the Clerk of this Court either The administration of the estate of the Bradford County Sheriff's Office, I c/o Ralph' Chapman Issued pursuant to Article IX, Section Freightways, Inc.. will sell at public auction before service on the above-named attorney LUCILE HARRIS GREEN. Deceased, File will offer for sale and ..11'0 the highest Adkln RoadCarrollton 17 of the Florida Constitution of 1885 for cash at 2600 Lloyd Rd.. Jacksonville or immediately thereafter otherwise No. 87-78-CP ((1.3858)), is pending In bidder for cash in hand, the above- Georgia as Incorporated by Article XII. Section Florida, one lot of chairs consignedto a default will be entered against the Circuit Court for Bradford County described property as the property of YOU ARE HEREBY NOTIFIED that an action 9al( )( ) of the Florida Constitution of Whltecraft Miami flo., to satisfy you for the relief demanded In the Peti Florida Probate Division the addressof the sold Defendant to satisfy sold Execu for dissolution of marriage and 1968. Chapter 375 Florida Statutes, as freight and storage charges, under the tion.WITNESS which I I. Bradford County Courthouse tion. other relief has been filed against you In amended (the "Outdoor Recreationand provisions of Section 4b) of Uniform my hand and official seal of Starke, Florida 32091. DOLPH E. REDDISH the obove-styled Court and you are required Conservation Act of 1963"). Section standard Bill of Lading. this Court on this 10th day of August The name and addresses of the Sheriff of to serve a copy of your written 293.023. Florida Statutes ((1986 Pro. 06-991929 dtd 6/15/87 1987. personal representative and the personal Bradford County Florida defenses If any. to It on TERENCE M. Supplement), as amended by Chapter Gator Freightways, Inc"Corrl.r GILBERT S. BROWN representative's attorney are set 8/2O..tchg9/10 BROWN ESQUIRE Terence M. Brown 67-96, Laws of Florida and Sections CLERK OF THE COURTBy forth below. . . . . . . . P.A., Post Office Drawer 40, Starke, 215.57.215.83, Florida Statutes (the 8/27 2tchg 9/3 Beulah Moody All Interested persons or. requiredto IN THE CIRCUIT COURT OF THE Florida 32091 on or before 14 "State Bond Act"), and shall bear interest Deputy Clerk file with this Court, WITHIN THREE EIGHTH JUDICIAL CIRCUIT IN September 1987 and file the originalwith at not exceeding the maximum TERENCE M. BROWN ESQ. MONTHS OF THE FIRST PUBLICATIONOF AND FOR BRADFORD COUNTY. FLORIDA the Clerk of this Court. either lawful rate of interest on the date the NOTICE OF APPLICATIONFOR TERENCE BROWN P.A.Attorney THIS NOTICE: ((1)) all claims againstthe Case No. 86-499-CA before service on the above-named attorney Bonds are sold. TAX DEED for Wife estate and ((2)) any objection by an C. BROOKS and or Immediately thereafter, otherwise The Clerk of this Court is directed to NOTICE IS HEREBY GIVEN that l.G. P.O. Drawer 40 Interested person to whom notice was ELLEN DAVID M. BROOKS, his wife, a default will be entered againstyou cause a copy of this Order to Show Dyal the holder of the following certificates Stark., Florida 32091 mailed that challenges the validity of Plaintiff, for the relief demanded In the Peti Cause to be published once each week has filed said certificates for a ((904)) 964.8272 the will the qualifications of the personal for three(3) consecutive weeks, commencing tax deed to be Issued thereon. The cer- 8/134tchg9/3 representative, venue, orjurisdiction v. R. D'ARMENIA tion.WITNESS my hand and official seal of with the first publication tiflcate numbers and years of Issuance, of the Court. BEATRICE o/k/a BEATRICE R. PATTI FRANK LEWIS this Court on this 10th day of August, which shall not be less than twenty the description of the property and the ALL CLAIMS AND OBJECTIONS NOt D'ARMENIA JOHN W. HALSEY and JEAND. 1987. ((20)) day prior to the date set for the names In which it was assessed are as NOTICE OF INTENTIONTO SO FILED WILL BE FOREVER BARRED. HALSEY his wife DAVID L. POWELL GILBERT S. BROWN hearing herein In newspapers of follows: REGISTER Publication of this Notice has begunon and CLARICE H. POWELL his wife, and CLERK OF THE COURTBy general circulation published In Certificate No.BOYear of Issuanee..l989 FICTITIOUS NAME Septembers, 1987.P.nonal. LELIA ALESCIA POWELL Beulah MoodyDeputy Alachua Baker Bay, Bradford Description of Prop.rty..J1835.00402 Pursuant to Section 869.09 Florida Representative: Defendant Clerk Brevard, Broward Calhoun Charlotte, LOT 36 N OF RD EX E 335' 8 EX W 125'. Statute, notice Is hereby given that the WILLIAM HARRIS GREENRt. TERENCE M. BROWN ESQ. Citrus, Clay, Collier, Columbia Dade, SECTION 31 TOWNSHIP 5-SOUTH RANGE undersigned Glenda Epp. 242 Pratt St., I. Box 1049 NOTICE OF ACTIONPROPERTYTO TERENCE M. BROWN. P.A. DeSota Dixie, Duval Escambla 22. Starke, Fl 32091. Alan Greenberg 737 S. Tallahassee, Florida 32308 : BEATRICE R. D'ARMENIA Attorney for HusbandP.O. Flagler, Franklin Gadsden. Gilchrlst Name In which a..ed..J.W. Walnut St.. Stark. FL 32091. joint Attorney for PersonalRepresentative a/k/a BEATRICE R. PATTI Drawer 40Stark. Glades, Gulf Hernando Highlands, AND PATRICIA LLOYD. owner, doing business under the firm : ADDRESS UNKNOWNYOU .. Florida 32091 Hillsborough, Holmes, Indian River All of sold property being In the County name of Foxy Clothe 101 Edward Rd., WILLIAM HARRIS GREEN, Esquire ARE HEREBY NOTIFIED that a ((904)) 964-8272 Jackson Jefferson Lafayette, lake. of BRADFORD. State of Florida. Starke, Fl 32091, intend to regl.terlOld Hopping Boyd Green & Sam Complaint to Foreclose Mortgage action 8/13 4tchg 9/3 Lee Leon Levy Liberty Madison Unless such certificate or certificatesshall fictitious name under the aforesaid P.O. Box 6526 has been filed against you for the Manatee, Marion Martin Monroe, be redeemed according to 1 law the tatute. Tallaha.*_. Fl 32301 following described property In Bradford Nassau Okalooso. Okeechobee, property described In such certificate or Dated this 10th day of August. A.D., 904/222.7500 CALL FOR BIDS County. Florida: Orange, Osceola Palm Beach Pasco certificates will be sold to the highest 1987 In Bradford County. 9/03 2tchg 9/10 A portion of the SE 1/4 of the SE 1/4 of The City of Starke Is accepting sealed Plnellas, Polk Putnam St. Johns, St. bidder at the court house door on the 8/13 4tpd 9/3 . . . . . . . . . Section 29 Township 6 South. Range 22 bids for the construction of a 13.2 KV lucle, Santa Rosa Sarasota Seminole, 27th day of August 1987 at 11:00 A.M. East In the City of Starke, Bradford Feeder Circuit to be built In the City of Sumter Suwannee, Taylor, Union Dated this 6th day of July. 1987. County Florida and being more particularly Starke, Florida.Specifications. Volusla Wakulla Walton and GILBERT S. BROWN CLERK NOTICE Of APPLICATIONFOR IN THE CIRCUIT COURT FOR described as folows: are available at the Washington Counties, Florida. Signature: BY: Beulah Moody TAX DEED BRADFORD COUNTY FLORIDA at Electric System Office, City Hall 209 N. DONE AND ORDERED In Chamber Court of BRADFORD For point of reference commence Clerk of Circuit NOTICE IS HEREBY GIVEN that BOBBIE PROBATE DIVISION the NW corner of said SE 1/4 of SE 1/4 Thompson St., Starke, Florida. at Tallahassee, Leon County Florida County JEAN FRANKLIN the holder of the Case Number: 87-69-CP and run thence South 87 degrees 18 Bids will be opened at 6:30 p.m., Tuesday this 17th day of August 1987. Florida. following certificates, has filed sold certificates File Number: 1.3850 the Northerly boundary September 15, 1987. In the City Hall BY William L. Gary 8/134tchg 9/3 minutes East along : for a tax deed to be Issued IN RE: ESTATE OF thereof a distance of 25.04 feet to Commission Room.Specification Circuit Judge thereon. The certificate number and HENRY THOMAS GRIEGER of the right of wayof sheet and a map of the CERTIFICATE OF SERVICE -'-'- the Easterly boundary year of Issuance, the description of the Deceased Epperson Street; run thence South 0 route will be provided to all who requestIt. I do hereby certify that true and correct IN THE CIRCUIT COURT OF THE property and the name In which it wo degrees, 30 minutes East along said copies of the Complaint and the EIGHTH JUDICIAL CIRCUIT. IN assessed are a* follows: Certificate No. NOTICE OF ADMINISTRATIONThe Easterly boundary a distance of 410 feetto The City of Starke reserve the right to Order In the obove-styled action have AND FOR BRADFORD COUNTY FLORIDA 115; Year of Issuance 1985; Descriptionof point of beginning. From point of accept or reject any or all bid. been served on Curtis A. Golden. Case No. 86-499-CA Property: Tax Parcel No.02476-017404 administration of the estate of beginning thus described continue South For the Starke City State Attorney for the First Judicial DAVID C. BROOKS and let 4,9,6< 7. Blk 17, Knight S/D. Name HENRY T. GRIEGER deceased File 0 degree, 30 minute East along said Bond Trustees Circuit of Florida P.O. Box 12726, Pen- ELLEN M. ROOKS, his wife In which assessed: Frank Green Estate. Number 1.3850. I I. pending In the Circuit Easterly boundary a distance of 75 feetto Nell L. Tucker sacola. Florida 32975; William N. Plaintiffs, All of said property being in the County Court for Bradford County, a point; run thence North 89 degrees, City Clerk Meggs, State Attorney for the Second v. of Bradford State of Florida. Florida Probate Division the addressof 30 minute East a distance of 98.08 feetto 8/27 2tchg 9/3 Judicial Circuit of Florida 500 lewis BEATRICE R. D'ARMENIA Unless such certificate or certificate which I* Bradford County Courthouse - a point; run thence North 1 degree, 10 State Bank Building, Tallahassee, a/k/a BEATRICE R. PATTI. FRANK LEWIS shall be redeemed according to 1 law the Starke, Florida 32091. The minute West a distance of 75 feet, moreor Florida 32301: Jerry M. Blair, State Attorney D'ARMENIA JOHN W. HALSEY and JEAND. property described In such certificate or name and addresses of the personal less, to a point bearing North 89degrees IN THE'CIRCUIT COURTOF for the Third Judicial Circuit of HALSEY his wife DAVID L. POWELL certificate will be sold to the highest representative and the personalrepresentative' 30 minutes East from point of THE SECOND JUDICIAL Florida P.O. Drawer 1946. 215 Pine and CLARICE H. POWELL his wife, and bidder at the court house on the 23rd 'S attorney are set forth beginning; run thence South 89 degree. CIRCUIT OF FLORIDA, Avenue Live Oak. Florida 32060; T. LELIA ALESCIA POWELL day of September 1987. below. 30 minute West a distance of 97.21 feet IN AND FOR LEON Edward Austin Jr., State Attorney for Defendants. Dated this 7th day of August 1987. All Interested persons are requiredto to point of beginning.and COUNTY. FLORIDA the Fourth Judicial Circuit of Florida GILBERT S. BROWN file with this Court. WITHIN THREE you ore required to serve a copy CIVIL ACTION NO. 87-2856 600 Duval County Courthouse, NOTICE OF ACTIONPROPERTYTO Clerk. Circuit Court MONTHS OF THE FIRST PUBLICATIONOF of your written defenses If any to It on Jacksonville, Florida 32202: S. Ray : FRANK LEWIS D'ARMENIA By: Beulah Moody. THIS NOTICE: ((1)) all claims againstthe the Plaintiffs' attorney whose name and DIVISION OF BOND FINANCE of the Gill. State Attorney for the Fifth ADDRESS UNKNOWNYOU Deputy Clerk estate and ((2)) any objection by an address I I. TERENCE M. BROWN ESQUIRE STATE OF FLORIDA DEPARTMENT OF Judicial Circuit of Florida, 2nd Floor, ARE HEREBY NOTIFIED that a 8/20 4lchg 9/10 Interested person on whom this notice Terence M. Brown. P-A.Post Office GENERAL SERVICES a public body corporate County Office Building. 19 N.W. Pine Complaint to Foreclose Mortgage action wa served that challenge the validity Drawer 40. Starke, Florida 32091. on on behalf of the STATE OF Avenue, Ocala Florida 32670: James has been filed against you for the NOTICE Of INTENTIONTO of the will the qualification of the or before 22 September 1987. and file FLORIDA DEPARTMENT OF NATURAL T. Russell State Attorney for the Sixth following described property In Bradford REGISTER personal representative, venue, or the original with the Clerk of this Court RESOURCES Judicial Circuit of Florida P.O. Box County Florida: FICTITIOUS NAME jurisdiction of the court. either before service on Plaintiff attorney Plaintiff 9028 Clearwater, Florida 33918; A portion of the SE 1/4 of the SE 1/4 of ALL CLAIMS AND OBJECTIONS NOT or Immediately thereafter otherwise vs. Stephen Lewis Bayles, State Attorneyfor Section 29 Township 6 South Range 22 Pursuant to Section 869.09 Florida SO FILED WILL BE FOREVER BARRED. a default will be entered against STATE OF FLORIDA and the several the Seventh Judicial Circuit of East in the City of Starke, Bradford Statute, notice Is hereby given that Publication of this Notice has begunon you for the relief demanded In the complaint Taxpayer. Property Owner and Florida 440 S. Beach Street Daytona County Florida and being more particularly the undersigned ROBERT HANNAH. September 3. 1987. or petition. Clllien thereof Including Beach Florida 32014; Eugene T. Whit- described as folows,: SR.. LILLIAN HANNAH Rt. 1. Box 190. Personal Representative: WITNESS my hand and lh. MOl of sold Nonresident owning property or subject worth State Attorney for the Eighth For point of reference commence at Stark., and ROBERT I. HANNAH JR.. LESLIE GRIEGER Court on this 11 day of Augu.t. 1987.GILIERT to taxation therein and All Other Judicial Circuit of Florida, P.O. Box the NW comer of said SE 1/4 of SE 1/4 Rt. 1. Box 191. Starke. Fl. 32091 joint 1700-3 Park Meadows Drive S. BROWN having or claiming any right title or 1437 Gainesville Florida) 32602; and run thence South 87 degrees, 18 owners, doing business under the firm Fort Myers Florida 33907 Clerk Circuit Court Interest In property to be affected by Robert Logan State Attorney for the minutes East along the Northerly boun- name of TRIPLE H DIRT SERVICE. Rt. 1. Attorney for Personal By: Martha S.John the Issuance of the Bonds described In Ninth Judicial Circuit of Florida '.0. dary thereof a distance of 25.04 feet to Box 190. Starke, Fl 32091 Intends to Representative: Deputy Clerk the Complaint and All Others to be af- Box 1673 Orlando Florida 32802; the Easterly boundary of the right of way register said fictitious name under the Rochelle Z. Cats TERENCE M. BROWN. ESQUIRE fected In any way thereby Jerry Hill State Attorney for the Tenth of Epperson Street; run thence South O aforesaid statute. 13161 McGregor BoulevardFart TERENCE M. BROWN P.A. Defendant Judicial Circuit of Florida 250 N. degrees, 30 minutes East along said Dated this 21st day of August A.D. Myers, Florida 33919 Attorney for Plaintiff Wilson Bartow Florida 33830; Janet Easterly boundary a distance of 410 feet 1987. In Bradford County. Telephone: ((813)) 481-4834 Pot Office Drawer 40Stork. IN RE NOT TO EXCEED $250.000,000 Reno Slate Attorney for the Eleventh to point of beginning. From point of 8/27 4tpd 9/17 9/03 2tchg 910r .. Florida 32091 STATE OF FLORIDA DEPARTMENT OF Judicial Circuit of Florida Room 600. beginning thus described continue South .. .. . . . .. . . . 8/204enfl/IO NATURAL RESOURCES CONSERVA- Metropolitan Justice Building! 1351 0 degree, 30 minute East along aid \} V J lOA TELEGRAPH St'ptrmlu'r::1, l<87HE m r: -- .n-- m I , . With the All New IOIVE c Line-Up of FisherTelevisions . . T SEASON . The Main Game This Season \ 25" Stereo Television \ _ Value __ _ _ from Fisher! ; : :o: I.Intl/1111111. IWININNWIIYNIINMNIgItlNNYpNtlINYINIy"ply, PC347 Includes Stereo Broadcast.Timer! ----- IV @1 L $649Cash Price With - Wireless . Remote -- -- ( Control! .?aGil111IB uugl !! !!! !! !!! !!!! !!!!!!! ( I r !""UD ." I I iii 1I 1 Featuring Band Graphic Equalizer for Customized Sound! HC347 Features D 25" (diagonal)screen Fisher 120-Watt per Channel D BUilt-In NTS tuner(or reception of stereo and bilingual broadcasts Audio/Video with D Built In 5-bajid graphic equalizer for customized System D sound 22-button wireless remote control $ 3 2 4 5 26" Stereo Monitor/Television Mo-channel( cable D Built-In stereo amplifier and side-firing speakers and Compact Disc PlayerWith D Comb filter for high resolution pictureD Multiple audio/video/ input and output jacks for Per Month All These Features... D easy External connection speaker of jinks additional with /front sources panel onfeffswitch W/ *100 Down Fisher proves there's more to television Fisher AVS6735 * allow for easy hook-up. of optional Fisher t than meets the eye with this new audioFea .a I m I FISHER speakers 180/ 24 Mos video system! By combining a 26" stereo 26" MTS (Multichannel TV Sound) Monitor/Television Receives Stereo andchannel monitor/television/ with a 120-watt per [m FISHER' I and 1 5" Bilingual Broadcasts amplifier! 3-way, 120-Watt Per Channel Amplifier with Built- speakers, you'll'; be able to enjoy a bright in 5-Band Graphic Equalizer and SALE and colorful picture with stereo sound from Spectrum Analyzer your favorite TV programs. And, a unified 16-Selection Programmable Compact Treat Yourself to Exciting wireless remote control allows you to Disc Player conveniently operate the system's Unified Wireless Remote Control for 5 components including a compact disc Convenient Operation of Audio 1 9 9 9 . player,dual cassette deck and more,while Components, TV and Optional VCR Stereo TV Entertainment! Dual Cassette Deck with Dolby' Noise " a unified cabinet gives the system a Reduction and High-Speed Dubbing complete look Treat your eyes and ears Quartz Digital AM/FM/ Stereo Tuner with * to this outstanding Fisher value today! 24 Station Presets ((6AM+18FM) Pay 79.O2 HT797 Semi Automatic Turntable : Featuring 5-Band Graphic Equalizer!! - a Fisher 26" Stereo Console Monitor/lelevislont/ 1120 Watts per channel minimum RMS Way 15" Speakers with Magnetic Field I power into 8 ohms from 20Hz-20kHz Compensation Per M 0 monitor/television isloaded Fuller console This new stereo Unified Component Cabinet t for Audio . 1 with features for and listening with no more than 0.09% JHD viewing - your Components, TV and Optional( VCR entertainment Combining a 26" high resolution. -- Fisher Video Cassette Recorder(Optional) W / $2 5 0 Down, picture, a stereo broadcast tuner and a built in 5-band ,, graphic equ TV programs with vibrant color: and a stereo sound that you ion tailor to your taste And, you can operate Fisher 40" Rear Projection Stereo picture and sound functions plus make instant station selections with the convenient wireless remote control. with Built-in MTS Tuner For even more convenience,there a glass! covered Television K.y Features storage space for an optional, Fisher VCR! Built'in MTS (Multichannel TV Sound) The ultimate in home entertainment! tuner for reception of stereo, bilingual, _ Big picture ((40" diagonally measured or SAP(Second Audio Program) "' screen)teams with superb sound to giv. broadcasts - - -- +-"- a 40* (diagonal)) rear projection screen $899 Wah you unprecedented viewing enjoyment . with liqUid-cooled 3-tube, 3 lens system WI'i', rHaC Features include a built-in MTSMultichannel ConIMI lAw / \s ( TV Sound) tuner f.. Two 140-channel 2-way speaker cable-ready systems tuning reception of stereo, bilingual or SAP a Stereo matrix circuitry for simulated 44.35 I (Second Audio Program) broadcasts, stereo sound from monaural broadcasts 140-channel cable-ready station On-screen channel, time, function, selection, two 2-way speaker systems, volume and stereo dimension display Per Mo n comb filter for high resolution picture, 30-button wireless remote control 30-button wireless remote control and Bass, treble and loudness controls monitor capability! See Fisher's best Comb filter for high resolution picture $100 Down, 24 Mos. at 18 % In high fidelity video today! _Volume Multiple mute video/audio function Input jacks PT800 matches In height with Fisher Fisher 26" Console Stereo t $ 2199 Audio create Component a complete audio/video System 8690DV system to Television With Built-in MTS TunerHT finish Available as PT800 with hickory woodgrain Available as PT810 with bluendge oak finish and hinged cabinet doors. '90.16 Per Mo. '200 Down 36 Mos., 18% 1 FISHERSp600 = Best 881 The Brilliance of Fisher Technology! --- r Buy In P0367 Stock IlAlpjwagMAApMINNwiwWNWIIgIMI IMIIIkIIVYIIINM 26" Stereo Monitor/Tfelevision/ Advanced technology and design make the exciting difference In With this new Fisher 26" stereo monitor/television./ Featuring a brilliant Wireless picture and stereo broadcast tuner for reception of stereo TV Remote broadcasts, this television will add new enjoyment\ to your TV Control! viewing. A built-in >band graphic equalber also allows you to the program sound. And, you can Instantly select" adjust( the volume or set the built-in timer with the "' I ,. I- 23-button wireless remote control and on-screen For outstanding television entertainment see this fine \ today! (III qI WlppryHlfR - Sale $849 IIIIlilhlll! t Reg. $1049 m FISHER 749 Featuring a Built-in _ .: S-BandGraphicEqualizer! \ ---- -. $38.89 100 Down, 24 Mos 18% " ; HOME ENTERTAINMENT CONCEPTS ,. Bradford Square Shopping Center 964.6946 Open Monday through Saturday, 10 am til 9 pm Closed Sunday !I III --. _ II . Il _. ._ .._ -- --.----.- -- ------.. _. J JPage I y.Ae0Rn .. CO" mii .ijinP4 H s eeton. A. .- Lake Region Monitor Union! County Times ' Thursday Septembers B Section . : : '..; '.:: "."" ,. .'.:-' .::: '::' :;. '"' ":,,: ':.' .','; :':.... '; -"',.' ,: :.:.- :'. ...' ';,.,:,:,':. .' ..':.....,.:. ',".::',". :" ."".-( n.;..." ':" :;_: .. ::. ,: :.': :'.;;;_ ..',' ::';- .: '.:.. .::',,11-,; "',..:. :' ::";:':M,':.'::.:... ';'.' :.: :. ,c': : ::', '. '," .,:;;: ;:. :1 I Art Lovers lndArtists_ Gear Up For Two 9Il Big Area Shows in Starke and KeystoneBCT \Ve'll s Il ui,n with you and LRM Staff the library containing informationon Art lovers, artists and craftspersons the country's Constitution. It will :t from around Florida and be a good opportunity for an exciting Georgia have circled Keystone all Heights on their maps this Labor h htr S..Pug 38.! I I Ibp' W'lSSO.Merit Day weekend for the Tenth Annual a I Festival of the Lakes Art Show at the FLA.TWIN THEATRE l i city's Theme Park. d I The show is one of two big art Yt Starke 964-5491 Norman has a I shows Second scheduled Annual Starke for the Festival area the of *Open Every Night splashing Fall offer waiting the Arts will be held October 24-25, 1------------ for an event that was a big success in i $2,00 SPECIAL I II you.We it's first year in 1986. I Sat.A Sun. 5OO Showing' call it Raining The longrunning Festival of the |L_..Tuesday..h2.w..n.1.-J! ] 1 Beauty Lakes is set Saturday, September 5 at 9 a.m. until 5 p.m. and Sunday, Starts FridayPART Well shower September 6 from 12 p.m. until 5 with MAN. PART three Luxiva anti- pm.The park is located behind City n tip MACHINE ALL COP. aging skin cart products Hall and booths will be set up ' throughout the part for the two'day full size lipstkk naillacquer event and an elegant, Over$2,400 in prize money will be i Screen IIMARK given away at this years event, collapsible umbrella-alt for which is sponsored by the Keystone HARMONSUMMER just$1&5Q No purchase is Heights Junior Woman's Club with the assistance of the Keystone y necessary.That's Heights Woman's Club. The purse SCHOOL i more than a this because year of has the increased, formed largely judged by P.K. Brannon, Andi qualified judges in the field of art. (PO.I3I- $20 the total newly Blount and Ronnie Edgerton. Bran- This is the tenth year the annual saving off Festival of the Lakes Committee non Is the chairman of the Festivalof event has been scheduled. In addi- 301 DRIVE-IN retail value. Awards. Those awards are being the Lakes, Edgerton is presidentof tion to the display of art work and sponsored by Merchants and the Junior Women's Club and crafts, food and entertainment will Starke 964-7481 This offer is available Southern Bank of Clay County. The Blount is first-vice president. also be provided. FRI. SAT. SUN August <5 through bank will be donating $300 in prize Artists will compete for awards Sunday afternoon at 1:30 p.m. money.In and money in many categories, including Courtney's School of Dance will be 'THE PERFECT SUMMER MOVIE! September 3Q But hurry addition given in to regular the past awards, the dona-and : oil,acrylic,watercolor and performing in the park. This has HfinnV and theHENDEfSONS supplies are limited I prizes been favorite mixed media sculpture always a and will paintings ; ; I tions from this committee will go toward sponsoring a first and second graphics; photography; basketry; feature many of our local young [ESShowtfm ) stained glass;woodwork,and a wide ladies and gentlemen.The mERLE nORfTlRlT STUDIOS in two-dimensional art work place variety of handmade crafts. Bicentennial Committee will *: 8:101. 10:05 and in three-dimensional a first and These categories will be judged by have a display board on the patio of second place. These awards will be 118 _. .. ,... RADIO SOUND S. Thompson Street Starke -- ---- -- -- --- --- ADMISSION I jr -Adult....99'- jr Children ....SO' 964-7355 - LZaeEi.F I. Warm up your home this fall for less '( %ff with these genuine LA-Z-DOY.recliners! / ; s' sale! $349 Hours 9:30: -5:30: M- 504 W.Call!St.93tMOOSat. CONTEMPORARYRECLINAROCKER "Photo by Mark frlxflln'. . : Jo: Ann'sA (904)Starke 964-8547 * THEMARKET Specialty Gift ShopFor RECLINER PLACEof the discriminating brass lover,we now carry BALDWIN : Settle Into this handsome wood,detailed contemporary It features brass. You never have to polish it and it Is warranted! We back thickly cushioned seat a channel-stitched and footrest.A . BAKER COUNTY FLEA have an excellent selection. smart way to get comfortable and save & AUCTION MARKETOpen Our Is In Jars, .'' . Thurl.-Sun.8 em-A pm Thanks for your patience pottery grease \ BUYING SELLING-TRADINGof spoon jars butter dishes pitchers batter bowls, mixing rd \ STARTSTODAYI I.OOO'sof Items bowls sugars creamers and everyone's favorite the Call 259-2048 popcorn bowls. Hurry while our supply is good. These go ,r y ! Located on Woodlawn Rd. fast!II! ' Macclenny. Fl. Next to I-1O x:') We appreciate your patronage ,; r ' ; . . ''' '': ,, .. ,, u,_________.__. Fleetwood 24' x 52' Doublewide Furnished ,* Skirted '* Air *: ': , Conditioned ,* Washer/Dryer 3 Spacious Bedrooms ,* 2 Convenient I JLA Q tt y ?p eI -Formal Dining Room I, Eat-In Kitchen Extendede < Warranty* Delivery & Set-Us SALE Transitional! 349' SALE! $399Transitional SALE Contemporary! 399 ffiF BHjffjCTj BEHHffffiSJKSBfflH3BS5BB! B HB fffflSH 3 MfflSC33B3BIo3 -p . pet : ehat'esett Recllna-Rocker Recliner Recllna-Rocker Recliner Recllna-Rocker Recliner 1: $ Relax In this tufted transitional Let the envelope arms welcome A European Inspired sleek' style 7'og Ut that's cushioned for soothing you Into a getaway to comfort. that's gently contoured channel- = per month 0 comfort.Gracefully detailed. Tufted and generously padded. stitched and thickly cushioned. o > : : w/$2 5 00. down ;toys FREE DELIVERY SINCE 1923 90 Days-Same" as \ ;. e el- DENMARKFURNITURE Cash I Call!StJ U L Credit Terms Available Quality 0 0 DENMARK'S I 434 W. Call St./411 W. U : E NEW STORE HOURS ; T 4 / / I -1 Madison St. Starke, FL 8 -5:30: == Across from Wlnn-Dlxles Marketplace r- Monday-Friday Wlnn-Dlxl 0:z: 0 I 964-5826 964-5827 81Saturday ; 'It's A Tact,you.Can'Do Wetter at .. , . ... ",- ,. -.. -'' d ---- I S I p ' The search is on for Foster Parents in Bradford and Union' .-...- .. .._. ...- --- ByMarkFriedlln Catherine Johnson and other HRS proved household, who needs care lifetime. Why don't relatives and friends school and is attending classes BCT Staff Writer staffers assisted The Telegraph In for a temporary or an extended Where do these children come take In these children? regularly they may remain In foster Picture a group of 18 children six compiling a list of some of the most period of time. During this time the from Man times they do, and the HRS care until{they graduate. teens, six elementary school age common questions parents have child's parents are either non- Mainly Bradford and Union Coun- staffer's first goal Is to find the Cm anyone be a foster parent kids and four pre-schoolers all in about the Foster Parents Program- existent,or non-functioning. ties, although children are also nearest relatives who will accept the The agency first asks prospectivefoster need of emotional support and car- and the answers,as provided by the The primary goal of foster care is taken sometimes from adjoining child into their homes. Somer.mes parents to attend a foster Ing, family environment. local HRS staff. to reunite families or to ensure that counties when the need is great. there are no relatives, or the parent training session and find out Would you have room for one of Johnson urges any adults who the child will leave foster care for a Why are these children placed: under relatives are unable to care JT the what the program's about. Otherwise - them? think they may be able to help to call permanent placement. Foster care the Foster Care program children to some problems sir dial"to ,anyone who has the room for a Several Bradford County families her office at the HRS office In Starke ell provided on the assumption that Many reason.Financial problems, those experienced by the child's foster child can be liscensed to provide have, through the HRS Foster pro- on U.S.301. children are entitled to physicalcare marital problems, poor parenting parents.Other times a chit is placed the service for a needy child. gram. Now local HRS unit needs to emotional assurance and skills,which leads to physical abuse with a relative and it dor .n't work well rents can be foster parentsas find a few more families willing to What Is Foster Care? educational instruction. Foster care and neglect. Drinking and drug problems help out a dis-advantaged youth who Foster Care is a program designedto parenting is not a lifetime commit abandonment, emotional out.What ages are the foil* children? What If I decide I don't want to be can't stay in his or her own home. provide a substitute family life experience ment to a child,but a commitment to problems, ill health, death of Newborne infants to. a 18. If an a foster parent after the training session - HRS Youth and Family! Counselor for D child in an agency ap be meaningful during a child's parents sexual abuse,ect. 18-year old has not con oleted hi ah TNoone is pressured or committed, but not everyone has the tempera- ment it takes to be a good foster parent. It takes patience,and givingof yourself and your time.HRS staffers say they never pressure anyoneto ALL STORESWILLS Winn-Dixie become a parent, no matter how far along they are in the training ses- OPENLABOR sion withdraw.if they should decide to DAYSEPTEMBER What else must I do? 7" ETHE A sanitation and fire inspection is REGULAR done on your home. If you live out HOURS ee side the city, a water sample is FOI roui taken.The sanitation inspector looks SHOPPING CONWNICHtt I.- for sanitation, sewage treatment, and structural problems in the QUANTITY BIGHTS home. Your name must also be PRICES GOOD "':_RESERVED_.,-,._, THURS. WED., cleared Registary. through If there are the any Abuse valid ___ ._._ _.SEPT. 3-9, 1987 complaints you will not be licensed.A . criminal record check is also made. Interviews with the prospective - parent let the staffers know you, your lifestyle, your parenting OVER 10,000 EVERYDAY abilities, and your own problems, which we all have. Three written references are required.If . LOW PRICESTO I become a foster parent, can I have any child I want? Yes. Your preferences are GIVE YOU A respected.?! : s..Pag 7B LOWER FOOD BILL Keystone Heights COMPARE OUR PRICES- YOU'LL LIKE THE SAVINGS! Sportsman Club National Hunting 4o _ POM' & Fishing Day PRICES GOOD IN THE FOLLOWING WINN-DIXIE LOCATIONS: Sept. 26 ra Da DAL cUARAIrrrn STARKE v 470 W. MADISON ST. STAMPS atKeystone FOOD B Airport Highway 100 r QUANTITY MOOTS.ISMVIO) 11 Turkey Shoot fP U.S.CHOtCI WMOU(C810 11 U.A'IO.I B CAMP .! .UNTRIMMED $997 Skeet Shoot PAN 39C > Door Prizes fh tt.d & BEANS It: RIBEYES .L Food Drinks uz W-O MAN u.s.CHOtCI BONIIISS THRIFTY MAID ODmrr LONDON $977 Music 3 $1 12 noon until PORK & BEANS J16-M.CAMS BROIL _. . .L the whole Bring! family '' AU VARIfniS COUNTRY snuTOM'S + USDA INSPKTtD(C.TO II I*.PKO.) RYEREGQUARTERS flj fie for an afternoon of fun FREE Moon Walk for Kids POTATO CHIPS. .'t 91C . u <3 H HAftVISTmSNVENTVUE BANK.REPOS . CRACKIN' GOOD $1| 48 1; -1 = POTATO CHIPS. *ru.. 77 POTATOES . lOLL MARXIST WISHYELLOW 1985 Redmon f Ic Doublewide GATORADE . .,19C ONIONS . Vt I iPRIMI Mobile Home. Excellent Condition. NATURAL A tic 1984 Brigadier VAN CAMP $109 F t :. Single Wide BEANEE WEENEEKELLOGG'S 7V4M.1CANS;. IM" MUSHROOMS. 91$ Mobile Home. IN OUARTIU Excellent Condition. $ 42 PARKAY <9 $00 Financing Available for | Qualified Applicants. CORN FLAKES 1:00-: MARGARINE 'FB6ki All Bids will be con- slderod. ALL FLAVORS t FOUNTAIN FRESH MARGARINE SUPERBRAND178 964-705O.If Interested Ext., call 233 2 9ge REFILLS . WJ STA-FIT MILK GAL I For Appointment to See. BUD UOMT*r ALL VA.lmU BUDWEISERBEER 12 PAK$4 78 Got DANO'S GOURMET $499 E-Z WHEELS II /.uNs ill IJ: PIZZA . . EACH 1320 N. Temple Ave. Starke i 964.7783 t ; AU VARimiS I. Buy Here Pay Here PEPSI v'' & PEPSI CLOSE UP $137 We Finance COLA iL9C TOOTHPASTE .s;t ' I. : j 76 Ford PU L : . (call Or 34 OR MATCH $4.47)AU F-lOQ 302 Engine. Auto., Custom BAYER $958 Toolbox.Runt good. : CHEK $149 8 1 : '595 Dn. E-Z Payments fI: DRINKS . =sl I ASPIRIN . .I WIAL F15O ". PIT COOKIO AIIICUI"WMOU 78 Ford PU ('" ;A '\ WMOU OR SHANK PORTION SLAfl Of Extra nlc..Runs good.Drives Good. I. TI/ s ': SMOKEDHAM $1 28 BARBECUE $fi99 395 Dn. E-Z PaymentsA ''..". . . 1tl SPARERIBS . .EACHHSMOKIO '74 Plymouth True Cream Satellite Puff! IONILiSSDELMONICO w.o BRAND U.S.CHOICE NKI A SLOW"HOT TO OO WMOU 4 Dr.,Auto/Air,Garage kept by senior $ 98 I BARBECUE $ J88 citizen. Spec. 293 Dn. "" STEAKS . CHICKEN. g tB . EACHBamnaBBBB.nBBKBBBB I E-Z Payments 1 .=---u....cNa ca i BBBEBBMBan '78 Courier Compact i """ Plck-Up I It BUY ONE ru..r ..era.-.e- GOLD KIST '.xr, CLAUSSEN 5-Speed.Runs good.looks good. GROUND FRANKS or '495 Dn. JOEY ONE TURKEY BOLOGNAMADlfoiTBRAND FRYER LMRS PICKLE!( RELISH i Special E-Z Payments -- '79 Ply. Arrow PU .j I G GWALTNEY IY HASfiBROWNPOTATOES CHlck'ENFRANKS 4 cyl.,Special automatic sun 495 roof,Dn.like, new ! !". FRANKS> ,, BOLOGNA .. :-- E-Z Payments' y MMs* UCB THIS WEEKS SPECIAL HUGO'S OSCAR MAYER SMITHFIELD; ;. DfCHAUN SMITHFIELDBACON 1979 Mustang H/B I WHILE SUPPLIES LAST! PIZZA BOLOGNA SAUSAGE EGG ROLLS I 6 Cyl., Automatic ' 493 Dn. E-Z PaymentsF I - tII t tI I - .' --------- - ., ,.. J J 0...... l " 011. .. IMI" 'I r 0 - I I ti ) f I. -.1 September:!. BSECTION P (.3 __ "r___ -- f/l i iI I . . I : r , . Local Art Festivals .. "': ,' ., ...,..' .J' ''' -. : .; ' (from page 1 ) - history lesson. total of $1,900 i In prizes which in. t. There will be a raffle this year elude: sponsored! by the Junior Women's Best of Show two dimensional - Club. This will be open to everyone.The $300. i raffle is being sponsored! by the Best of Show three dimensional- , Junior Women's Club in an effort for . the club to raise! money for the varie- $300.Four Awards of Excellence $150 ? itZ 1 1 y5.LMra I ty of charitable causes It sponsors each. ::1 throughout the year. Four Awards of Distinction $100 Festival of the Lakes T-shirts are each. also popular item and will be on Four Awards of Merit- $50 each. I i f sale at the park. Four Awards of Mention $25 I "We will have 110 participants anda each. 4 I lot of new artists this year. As far The cash prizes are divided equal .r as around Florida, our name has I the two dimensional and { tit +r really gotten around. We have artists tree dimensional groups.In . coming from all over Florida. I addition$6,000 is anticipated in r ;--w r think it is really going to be a great purchase awards. w f year," Ronnie Edgerton said. The awards ceremony for the 1 \ f 4 G 1rti11.A1 This Is a nonprofit event,Edgertonsaid. event is set for Sunday,October 25 at 5 ,: yt "Everything we take in goes 12:30: p.m. in the Entertainment !\ back into the festival or into the prize money," she stated.It AA special feature of the show is the is an event that is sure to be filled special section for youth art ytoung ,e 'i , with fun and excitement for the artists through high school age In- I entire family. cluding local public school groups, .itJ.4l who will have original works of art M. Ihl Starke Event PopularThe for sale. II Starke Festival of the Arts Another area for the kids is a r was a big success in its first year on Children's Emporium devoted to the historic Call Street and will make a younger set in which they may purchase - short move to Jefferson Street on the art without parental supervi ,.esmsC r2 north side of the Santa Fe Starke sion. Art which is on consignmentfrom 1' Center between U.S. Highway 301 artists In the Festival will be ; .. .. and Walnut Street. priced from $1 to$10. -- ---y --- . Sponsors for the event include Dancers, musicians, children's Big Crowd of Art Lovers Expected... Santa Fe Community College and its groups and storytellers will provide Endowment Corporation, the City of continuous entertainment both days Over 15,000 people are expected for this year's Secoad AMMU SUrfce skew e.Call Street would Indicate I tn at O two event. Starke and Bradford County's fthe_ show. Festival of the Arts, as the crowd scene shown above from last year'sA Over IIN will be: gven away prhe mouey day Chamber of Commerce. For more information, contact . Over 100 artists and craftsmen Nancee Clark or Carol Brown at the from all over the Southeast are expected Festival office, P.O. Box 1530, Santa variety of foods will be offered for the event, with a "two Fe Community College, Gainesville, for sale by local non-profit organiza r dimensional" category which In- Fl 32602_ ; or telephone 13955159. tions. Fisher Makes Video Tape Viewing F ; l li J CI ..1 Easier Than Ever! This_F",hw VCR'a>downA I 'Sr la f CDftIIIIcfe.w.uin..1uoI.... 50 FREE Movies nrchoeaddedaaAwaa ddoeK $29900 With Each VCR Purchase ; ( .; rot-ndufai*i+o.rtoay nr-.div the tape and twrmf*.to a of.hot I* r }3 _.,.' i,. tape s Crashed.Flu..*b fe 21....... .. " ....wWeat r..aPus- ,ardre the VCR far unattended _ -- atrccOycocM TV ctmictt or= . -- tapes at IMPO htfi speeds 9>cc4Jc scene.For the but in oonMnenoeand . Mi***Dm FUior VCH..*I Remote Controlled VCRPmgranvningrvmew tae.. pV161ass Oa pli4oletASisreaMmest c_..............'_ 0.HaYaadY.arekbaksec.a+rpw.suNtssr FISHERDlUlli c,..,.-..*............aid aas P4..14 c w a4Uoe.d :.::::==--=: a:mse'ra.rddensgrirYea HOME ENTERTAINMENT I ___ '".ad'ara..ak..hru. 0aar..r'-.- r'"a'. CONCEPTS' '.- =+T=:: = Bradford Square Shopping Ctr, c -.-..-* FVH4000 rel. .. .....aMOBiittMKfUft Starke9646946 - a til,V-. := l - eludes painting, graphics{ end sional"photography category, and the which"three includes dimen- AUT DETAILSPECIALIST -- --i ., sculpture,glass,ceramics and fiber. ,." ". .. ; Include Joanna Clark, a $ meta sculptor who teaches BRYAN'SBMoaT sculpture and three dimensional design and at also Santa taught Fe Community at New Mexico College Let us spend a day on your car! State and Wright Junior College in Shampooing Wash-N-Wax Compounding Dyeing Chicago. Her work has been shownin I galleries in Washington D.C., Vinyl Tops Restored Pin Striping Body Repairs AEHardware Baltimore, Md. and throughout Spray Painting Florida.The other judge is William Schaff, ins. Browning ST. 964-4744 '. '. " ( to City Fish Market) ..: " a painter, sculptor and visiting lecturer aogaBa aa B mna """" "- throughout and the many nation universities His work has SAVE up TO $500 on TORO'S PREMIUM RIDERS been shown in New York, Chicago, San Francisco, Dallas, Washington PHYSICAL THERAPYJERRY ,, Prices D.C. and extensivly in Florida. , Schaaf was awarded the Visual Artist FISHER. P.T.: Fellowship by the State if Start at Florida Flnbe Arts Council. BY APPOINTMENT 964-6000 The Festival will award a grand mRQ : $969.95 Florida National with DOWN NO MONEY and Payments as Bank Low as $40. per month to All Qualified Buyers! Will be closed on S, I rT=- I It I Monday Sept. 7 I Save I Business as usual about QYEAfl our $50. I Tuesday, Sept. 8. wARRM T on TORO's Haven't you done Model TC 3000 without a TORO ' Gas long enoughmTrimmerCutter " .. .. ,' ,,, I "' .;.. - 15th V" i Prices Good Through Sept. - ;<' " I Florida II National iBank; J JI Jr 0 r s I f Member F.D.I.C.s": 'R ......_, I . ,10.-. --. ____ _ I Page B SECTION September 3.1947c . --- ------ --- FPH Predicts 30 ' r Labor Day DeathsThe I d c; Florida Highway Patrol i* ministration (N.K.T.S.A.)' and the e f 4't r bf, s 11t predicting that 30 people will die on National Safety Council have natiuonal com r r S Florida's highways during the upcoming bined resources: toward a : 78-hour Labor Day holiday effort In combatting the needless period beginning 6 p.m.. Friday, death and injury on primary September 4 and ending midnight, NTltwea1Uesaving Monday, September 7. \ measures gained '' "Past history has shown that one through the sharing of education ttt person will die every two hours and public Information resources and enforcement - thirty-six minutes during the holiday techniaue has shown period.All too often this last holidayof very positive results. We hope this summer turns Into the last holiday common effort along with Florida's ,,. & for many" said FlIP Director Colonel Seat Belt Law will diminsh the Bobby R. Burkett. tragic loss we have seen during Impatience, discourtesy and previous holidays" Burkett con L ,tit n alcohol are the common athreads cluded. l which seem to run throughout this Labor Day weekend in 1986 there dangerous period. We Intend to use were 36 people killed in 34 fatal ac- .e every available trooper to fight cidents. Fifty\ percent of theap p these dangerous driving behaviors, killed wereyounger. 30 years or : --4L said Burkett. .Fifteen of the people killed p : The FlIP has also become involved were drivers,seven were pasengers, in a nationwide effort during the twelve were pedestrians and two holidays entitled Operation were kWed on bicycles. C.A.R.E.which stands for Combined Twenty-five of the deaths were : riAN ., Accident Reduction effort. Various alcohol related and thirteen of the 22 / state police agencies throughout the drivers and passengers kWed wire 'a United states, along with the National not using seatbelts or shoulder' 1 Hlghay Traffic Safety Ad- harnesses . NAME YOUR PLEASURE 6i ; I .,,,, ,,,, ,........ .. . - I r"i1< f\ } \Iti ..fo'"\ '''I'i''i.j.'I.: ;" r<!f't': '\&' '""' -- .I' .r..r.' IY.r "" H'-C' e Driver Lucky in Accident... The driver of this pickup truck escaped with only a cut on his lip. struck and knocked down a power pole then continued travelling until It b1s ?etsRI Billy Ray Bell, 29, of Graham was travelling at a high rate of speed struck a pine tree.The truck then overturned, said Ethrldge. west on CR-18 August 27 when his 1985 Ford pickup truck ran off the road Damage to the pickup was$8,500 In the 10 p.m.accident. Bell was cited way onto the shoulder, according to Trooper Kenneth Ethrldge. After for careless driving. travelling back and forth across the roadway several times the truck I ];']; 1.,1.,1..1\.1\\\:1\:1\\., ., ., ...,.., ..._'.._..._''" '._. '._IILL..L"L"L"t.- - :I Visit Our Showroom Today I Woman Steals Slips, m ,.J Shrimp & Fish : /1 I': :I I Clear- Out _ Gets ArrestedA All You Can Eat llil Prices ' On All 87 26 year-old Starke woman has bill and possession of cannabis after ) been charged with taking two ladies she and Christen Kevin Fox, 28, of c Seafood Buffet (Fri & Sat. only Models - slips without paying for them from Starke attempted to get a bogus $10 ' TG4Y. bill changed at the Gulf Gas Station Con In Stock 0 Sandra Idella McCloud was charged US-301, according to Patrolman I c: $6 .75 with retail theft August 29, accor- Gerald Hayes. Bond was set at I c ding to Patrolman Clay Sellars, 1762.SO on those charges, she wasl,I C I after store employees found two released on her own recognizance. c & slips in her purse.The employees de- Fox faces charges of uttering a forg- : Lee's Restaurant Lounge tained her for authorities. Bond was ed bill and petit theft, said I 800 N. Temple Avenue Stark :'I set at$1,000,she was released on her Patrolman Hayes. Bond was set at :'I own recognizance. $710, he was released on his own 1: 964-66O1 :'I At 1:45: a.m. Sept. 2 police were recognizance.A I the Saver conveniencestore familiar name on the court h I :'I called to Step where McCloud had left docket, McCloud awaits a jury trial t I Regular Buffet OP'eN. d.y. weak :'I TACKLE & MARINE without paying for a package of (Sept. 28) for retail theft of the t I Lunch Mon-Sat $3.50 open for lunch H.30-3 0 :'I smoked bacon, according to Dollar Store and a trial for driving t I Dinner I Mon-Thu $5.95 otmy\HffiTfiiEn\ :'I Patrolman K. R.Hinds,Jr. McCloudwas while license suspended.Also t I closed Sunday :'I apprehended behind the store outstanding are two chargesof I I and six packs of bacon valued at armed robbery which occurred t We serve 3070 Handing Blvd., MUdtebunj, Fto. 32088 $1.99 each were found. McCloud remains last October.The state attorney is in t I ( )O AMERICAN! in custody. the process of dismissing these t: .w EXPRESS Regular Menu AlsoI i One mile South of MUdteburg on Hwy. 21 Last week McCloud was arrested charges since both victims are out of PHONE; (904)( ) 282-3113 282-3116 and charged with uttering a forged state and do not wish to prosecute. L I [NEW 2 YEAR LIMITED WARRANTY! 1 ::r.If: I Missing VenireOrdered To AppearJurors who failed to show for trials Wasdin Flood, Geral Goodman, 7.710% in Pamela Monique Jefferson, James have another chance to appear Annul Yield" ' why they H. Rodgers, aU with a Starke ad- court, this time to answer were not there last week. dress Kathy Estes Cole, Melissa C. 7.45% Circuit Judge Osee Fagan issued Newman with a Hampton address; Wilford Compounded Monthly' Allan Andrew Griffin, the following ordering subpoenas 575.00onnoeeOprnntg( prospective Jurors to come before James Cooper with a Melrose ad- Dtpos"'Z656 the court ana answer why they were dress. not there last Monday,August 24,for scheduled trials In Bradford County Subpoenas ordering the above to Circuit Court. appear Sept. 8 at 8:45 a.m. to stheycause % Charlene C. Brown, Mamie Lou \if they have any, why I Annual Yield Williams, should not be found in direct Mae Davis Carlton, Edward Esther Jones,Dillie James criminal comtempt of the court and 7.40% 1Cotnpuunded accordingly, have been Duncan, punished Strong, Jr., Emory Wayne all with a Lawtey address; Robert mailed, according to the clerk's of- 150.000.74.999 Monthly 99 Earl Hall, Virginia Ann Kenny, fice.Residents Opening' Deposit reminded to notify Theresia F. Jordan, Ray Hornor are rJ Renfro, Joe F. Fields, Vivian Mc- the clerk's office of any change in Cullough Shafer, Virgie A. Frazier, address in order to keep the recordsup 7.603% Marvin Howard Frey, Mirian to date. Annual Yield 7.35% ..h Compounded "Monthly $15.000'49.99999 i s F Intemattona, Opt"11 Deposit tip o . Under New Management AM r 549 Yield % ,l luol Home cooked foodsTaco's .. P .30% / Cum",..ndod Monthly i ALL BEEF SIC.,,000-14.999 99 J it Of' Deposit Hard or Soft Shell With FREE Drink 7.4!96% i '. Annual Yi lei' : Served Mon-Fri J Breakfast Let us cater your Labor Day Party. 7.2jCumpuund % %// HWY 301 N. Starke, FL 964-7234 Jl.0009OptWHjf. < Monthly 99 n' . JiToridaFederaTs ail - -- INSULATIONSAVE 13-Mc ith CD. The more you' THAT ENERGY" I deposit the higherNow our interest dimbs. , Home Commercial Industrial 'r/I. F' ' High R Value Cellulose J f"; ,.,4 there's a way to get higher rates without tying open a 13-Month CD at Florida Federal today. But hurry, Fibreglass Batts If ti, up your money for long:the Florida Federal -Month CD. because this program is available for a limited time only. Frame House Exterior i 'f J With our 13-Month CD, the more you deposit, the Florida Federal's 13-Month CD. It's one way to increase New or Old Construction tom. ... :a higher your Interest climbs. You'll get an above market rate your rate without QP PlOriQ3{ Federal I Installation SAVE! ONCOOLING which varies with the amount of your opening deposit.To increasing your term. Quality get a short term investment with long term benefits, RAtes subject tochaitge. Substantial penalty for early withdrawal. + ... -- I DEAN CASSELS Downtown G.ln' "vlll Oilnesvllle/Unlvmny Galn*) vlll VTh sOaks Keystone Heights Starke Ocala 220 N.Main Street 3501 W.University Ave. 6707 Newberry Road Lawrence Blvd:a 395 w.Madison Street 3033 S.W College Rd. 377-3344 373-.482 375-2700 Sylvan Way 964-5000 237-7204 INSULATION 473-4952 SAVE! ONHEATING STARKE E L .. .. . . ' -- ----- --- - ----- - ----- --- - - - " ... ,... ' .. '" 'r" ., "., ,, .... .. "'.. .. "',- ".,. '". ... ,. , I V Outstanding Conservation Award . S Harold Hill is Award WinnerBy , Anne Sponholti,LRM Editor Waldron who to an area field nominates the individual, then sub A Lake Santa Fe resident, Harold representative for the organizationand mits the nomination to the home office r Hill was a recent recipient of the nominated Hill for the award for approval."We . prestigious Woodsmen of the World the company is active In community give out the conservation Life Insurance "Outstanding Conservation services such as spouse abuse programs award each year if someone Is ,,. yrv. Award." providing churches, schools deserving. It's not something we da ; HiU, known throughout the state and non-profit organizations with lightly. Mr. Hill was nominated ,YPk for his efforts in the area of conservation flags, helping people in need and because of his conservation work to was recognized because of recognizing Individuals for such save the swamp and all the work: his leadership in saving the Santa Fe outstanding accomplishments he's done in the area," Waldron Swamp, a swamp adjacent to Lake through such awards as outstanding said.Ms. Santa Fe and considered to be a citizen, life saver, outstanding Waldron's area of respon- : critical,natural asset to the lake and American history student and sibility covers the Gainesville and : r rivers in this part of Florida. outstanding conservationist. Melrose areas and she lives in ), jl Georgia Pacific had proposed a Waldron said the award Hill Earlton. peat mining operation from the received was not one that would be Hill was presented with this award kill is 1t swamp and Hill was instrumental in given out annually unless someone Is during a company picnic in 1 forming the Santa Fe Lake Dwellers deserving. The: field representative Gainesville.Compare . Association,which launched the successful - .xr4 7" "Save the Santa Fe Lake" campaign. The peat mining was Prices haulted and the land acquired by the d State Hill of has Florida. been involved In Before You .Not After ". J ;. ....,-.Lir.Y": .. .., ,.. .,.... ...-.. '" ,,, .. .. .. monitoring recently the activities of a Buy . 7'7"" ...-..-;; .. iI\\ \\IiH' ."." .", ".......... 1.. .... ... ,' development at the Pass between litHe STEPHEN SMITH LUMBER Harold Hill and Janet Waldron and big Lake Santa Fe. He has added another project to his recently list of endeavors.He is 7 Miles South of Starke on US 301 now offering his assistance and expertise to the newly formed Lake I #1 Pine 2x4x16 $3.99 #1 Pine 2x4x14 $3.16 | Brooklyn Civic Association. Woodsmen of the World Life In- FREE DELIVERY New Services Offered At surance Society is a fraternal Hosp. organization. According. to Janet 468-2624 Open Mon Fri 8:30-5:30: : Sat 9-4 -- .. New services already available at trical activity that regulates the nal organs, including the abdomen t Bradford Hospital, or coming soon, heart beat, the radiologists explain- and the brain, permitting the physician Northwest walk-in Medical center were described to Starke Rotarians to see areas that are not visiblewith .. last week by Dr. Jimmy Johnson, ed.Another new addition to hospital x-ray,thus eliminating the need ' and Dr. Tom Hawkins of the services here is the addition of a se- for exploratory surgery. A portableCT 1 Gainesville Radiology Group.. cond x-ray machine for backup pur- unit will be brought to Bradford I We would like to introduce our services. We're here to take One of the new services will be the poses during emergencies.Future Hospital for this purpose,as needed.Dr. care of you in the event you need medical attention for: I II cardiac ultrasound method of ex- additions to services offered Johnson and Dr. Hawkins are amining the heart with sound waves, patients will be the mammography both certified radiologists and spoke \, which will be offered twice a week at diagnosis test for breast highly of Santa Fe Health Care colds lacerations head Injuriesflu the Bradford Hospital in Starke.The cancer in women, making it an out Systems, the management agency broken toes Insect bites 'I so-called Echo Cardiogram patient screening procedure performed which operates Alachua General measures the volume of blood the locally. Hospital in Gainesville, Bradford sore throats and fingers strained ligaments .' heart can pump, while the EKG examination Also in the future is a portable CT Hospital in Starke, and three other measures only the elec scanner, used to examine soft inter hospitals in North Central Florida. I burns sprains pulled muscles I ; Mosley First in State CompetitionLisa I We also take care of school, sports and work physicals, and through October I 31st children's physicals are$15 and adult basic physicals are only$20. Mosley, a member'of Brad- her form her long-range goal of four-day conference featuring com- ford County's 4-H Club, placed first becoming a member of the United career and Licensed physicians, x-ray techniciansand 9 in the State 4-H Horse Record Book States Equestrian Team. leadership workshops, and recogni- } Competition.This "4-H has helped me feel good tion for outstanding achievement. nursing staff are here from <, ' honor which awards a trip to about myself," said Lisa. "I am doing Outstanding 4-H members from 7am-7pm dally and most , National 4-ld Congress in Chicago, things and learning from them each county are Invited to attend. sponsored by the Florida whether it be through mistakes or Florida 4-H is the youth education prescriptions are filled on premises. '; Quarterhorse Assn., is based on progressit helps me increase my program of the Cooperative Exten- 1 outstanding achievement in the knowledge." sion Service and is administered ; horse project. The daughter of Earl and Barbara through the Institute of Food and Reflections Building Hwy. 441 r A ; G A nine-year 4-H veteran, Lisa's Mosley of Lake Butler, Lisa is also Agriculture Sciences at the University Next to Hwy.Patrol Station Gainesville 1 w J N . main reason for joining 4-H was to interested in other 4-H projects: of Florida and through local 4 train and show horses. Through the Veterinary Science, Beef, Swine, boards of County Commissioners.4H 374-6704 .w.f..t - . r years, she has successfully shown a Public Speaking, and Marine is open to all interested youth Major credit cards Accepted " Hackney pony, a quarterhorse, and Science. and adults}regardless of race,color, :;. an Arabian gelding. Lisa was presented her award at sex, creed, national origin or han- Lisa has been active in English the 23rd: Annual Florida 4-H Con- dicap. For additional information, When the unexpected happens, we're here when you need us. riding, Western Pleasure and bar- gress. Held on the University of contact your local Extension 4-H of- rels. Her experiences have helped Florida campus, 4-H Congress is a fice at 964-6280, ext. 229. I I Spefei lAillmt?; :Opens: at HospitalA k four-bed special care unit opened Patients are admitted to the unit respiratory failure, multiple 1' last week at Bradford Hospital, via doctor's orders and must meet trauma, acute renal failure severe the first of its kind in the area. the admitting criteria. Potential reaction to drugs and/or treatment, "Seriously ill patients may now be reasons for admission to SCU include shock, coronary. artery disease and treated in Bradford Hospital rather unstable angina, acute arrhythmia. than transferred to another I ' hospital," said Dr. George Restea, Medical Director of the unit. Restea See me atm OPEN . said that for patients who may have MQN.gp } . had a heart attack, "we now have a TerwillegarMotors M greater ability to respond and o Nopr BEEP M monitor." Restea,who has a private -I s 4t in T* 11 I I I Il medicine Starke practice, served in internal as the medical direc- for !l i U.S. 301 South'tarke 964-6071 1 "|<|B1_ I.ijgiirt.jL. r* t"Mi r "** i unit in South ** ** t tor of an intensive care New & Used Vehecles TOBBDK* pun TBMB Dakota. NEW HOURS "The unit is designed to provide 209 W. Madison St. Starke constant surveillance and intensive MON-SAT 8:30-7: Normans Meat SpecialsWhole care nursing to patients suffering 964-7500 SUN 9-6 from acute, but potentially reversi- ble illnesses," said Lynn Gaskins, Eddie Starling Full Cut Director of Nursing. Fryers CubeSteak Twin Pack BonelessRoundSteak 590 $2.29 ib (limit 2 packs) Family Pack .. $.. .79 lb-- . Community Bankof Family PacCHICKEN 41b Family Pack REDWOOD StarkeBradford Franks 4.99 each Smoked Neckbones .790 lbNorman's Square Shopping Center 964-7830 3 Breast Quarters Fresh Collard Produce SpecialsNEW Greens Leg HOURS MON-SAT 8:30-7: $1.69bunch Quarters SUN 9.6Palla 3 Wings Red Zipper Cream JjjA 3 Giblet packs Apples.69CIb Peas .490 Ib .690 Ib Saturday, September 5 and Monday Sept. 7 While they last 1 Norman's Seafood Specials I I Branch office at Winn-Dixie Marketplace will also be .. , closed Saturday & LABOR DAY. Fresh Nile Fresh Whiting Mullet Filets Banking will resume Tuesday, Sept. 8, as Perch1.29.b .;_.._:;..;;-- usual. 89lb 1.99ib FDIE F 7 ' ---- . .. . . ' . .. .. . . - ,., '...",. ', ..00' r.. ,,' .. ... .,.. .' ''' .. . .. .,... , - t . BSECTION September 3,1981 Two Deaths at FSP by' ElectrocutionTwo Good SelectionTo $andf Huses.nrrsrraraar . deaths occurred last week at in the Miami suburb. One of the White's execution was the state's He apparently was electrocutedabout Florida State Prison, one in the gunmen, Marvin Francois, was executed first in 15 months. 11 a.m. August 27 as he attempted Choose From death chamber and one in the prison in May 1985. The other trig- to drill a hole through garment factory. german John Ferguson, is still on Inmate Gary L.Tucker,serving a plywood while repairaing or install Death Row. A fourth accomplicewho life sentence with a mandatory 25 in the garment factory,according NO Death row inmate Beauford White acted as a get-away driver years before possiblity of parole, to prison spokesman Bob was put to death in the electric chair pleaded guilty to a lesser offense and was killed accidentally while working MacMaster.Tucker died as a resultof DOWN PAYMENTC last Friday August 28, for the 1977 already has served his prison time. with an electric drill. a electrical shock. shooting deaths of six people in Carol City. Under Florida law,an accomplicecan Tucker was sentenced in 1974! in & C Mini-Storage be condemned to death for Involvement Tucker,31,had been at the prsion Hillsborough to 20 years released in 301 South White stood guard while two accomplices in a robbery if a murder since 1982 after a firstdegreemurder Sept. 1979! resentenced for violationof Hwy t actually shot the people in results,even if the accomplice playsno conviction in Hillsborough probation Feb. 1980 and in Dec. 964.8848 the home of a small time drug dealer direct part in the killing. County. 1981 was sentenced to life. . News Briefs - .. e.&Jlaj-. --: -. ,," .j J Three Men ArrestedFor Damage to the BMW was $4,000. Car Strikes Tree onto CR-18, rotated counterclockwise Damage to the Chevrolet was$2,000. Ends In DitchAn and came to rest in the Growing Pot Bond for Bronson on the DUI northside ditch. arrestedfor charge was set at $362.50. He was early Sunday morning acci- Bates was charged with no valid Three Starke men were resultof released on his own recognizance. dent, August 20, left a 24-year-old driver's license,no tag and careless yF last week as a pot growing MOBILE y the Hampton woman facing traffic driving, according to Ethridge. the air-surveillance over Trash charges but with no apparent in- Damage to the Mercury was$500. Man Speedville area in Bradford County. Dumps HOME CENTRAL AIR q t . Kenneth Lee Cooper,24,Sam Hut. Gets ArrestedA juries. chison, 26, and Timothy Lavain A 1977 Mercury northbound on ClarificationPhilippe by A top notch: unit especially dosign Flowers, 26, were charged with 59-year-old Starke man was arrested CR-221 at 1:35 a.m.ran off the pave- ,.d for mobile home Ask about arrestedon Joel DeMirza, manufacturing of cannabis, according August 30 after he illegally ment onto the shoulder. The vehicle charges, did not live on Dlf f ,,,/ ''I'"' ',"''noney down sacial Carlotta Bates, drug his trash. driven by Sheila to Don Denton. dumped $4oe 1uidS . Investigator 5er da Robert RicharLanier's or propertyon eec1 The three men were arrested last While on routine patrol Patrolman then ran through the stop sign across j Little Lake Santa Fe. observed Rickey CR-18 and struck a tree accordingto John Hodges after marijuana and Thursday Friday Old Kenneth Ethridge.After DeMirza lived on Lanier property Z found in garden Junior Gunter drive off Lawtey Trooper SAWYER plants were ' Santa Fe Lake in 1981. on . travelled back of Road near the city limits north impact the Mercury - - in the southern section of Brad- -- ford plots County off SR-100 on CR-21B. Market Road and proceed to throw Ir ..11 u 4. .Cf :m1tt':JjIl', Hei-;): .. 328 plants ranging from six to ten trash from the back of his truck onto . 332 W. MADISON ST. P11. 96b7701SAWYER feet tall were found August 25 by the right of way. sheriff's deputies and Florida Gunter was charged with dumping ATTENTIONBOW Department of Law Enforcement of trash and driving while license ficers. suspended,said Hodges. Bond for each of the men was set Bond was set at $601.25 he was at$1,000,they were released on their released on his own recognizance. HUNTERS own recognizance. Minor InjuriesIn ARCHERY SALE Driver ChargedIn Fender BenderMinor _ AccidentA injuries were reported in a & SEMINAR fender bender on SR-16 August 26. 46-year-old Melrose man was charged with driving under influence Wendall Coman Lanier, 29, ofMelrose August 25 after causing an driving a 1973! Mercury, Saturday Sept. 12 10 to 3 accident in Starke. was eastbound on SR-16 when Brian Larry Lavern Bronson driving a Bundy Thomas, 23, of Starke, driv- Bring Your Bow and Let Our Expert 1979 Chevrolet, southbound on ing a 1979! Mercury, westbound on US-301, attempted to turn east on SR-16 drove left of center and struck Tune It Up... SR-100 in front of a 1986 BMW, the eastbound vehicle, according to driven by Kimberly Rose Barnes,31, Patrolman Kathy M. Mercer. Super Prices on Many Items of Jacksonville.The BMW hit the Damage to the two vehicles totall- right side of the Chevrolet, according ed $4,500. Thomas was at fault for to Patrolman Al Chapman. failure to yield right of way. -- -- -. -- -- -- -- -- -- -- ---------- er ... ' '-, U' ., Jf'H-A : ) [ 1 1 TACKLE& MARINE,INC. DUAL BURNER RestaurantMandarin < 9 t & Szechuan Cuisine - 3070 Blanding Blvd. 964.7681 Middleburg, Florida , I 1900 N. Temple Ave., US 301 N (To-Rena Motel) 1 Mile South 218 on SR 21 We Will Be Closed g 282-3115 f GRILLS tk Labor Day Sept. 7 282-3116 ; > FROVR :) j QQQQQ ,I' .- : '" ; e ec . i oNo SAWYER ' GAS FISHCOOKER YOUR K GRILL Money Down 58 DOCTOR r 90 Days Same as CaSh Financing Available UP 500/o 1 _ Value Artificial Many Remnants GAS& ACCESSORIES GRILL PARTS / 1 i Turf in stock BUS DISCOUNTSON Indoor/Outdoor from FLOOR AIR CONDITIONERS fc 99 Gibson rf* W ft& REDDER [ hir( of Carpet_ | QQfcr . REMOTE CONTROL ELECTRIC -? sq. yd sq. ydHBH FAMILY SIZEMICROV&2E I-.t- NoWaxVinyl Sculptured Carpetwith -' -- VCR.ii J heavy 9/16 dutypadding 9 99 $268 Sq.| YdInstalled Flooring 3M Stain Release Carpet ON WASHERS, DRYERS & REFRIGERATORS 99 with 9/16 99 heavy duty 1 paddinginstalled yd Sane & 4 ZOa Saw rtii&m Mif otj_ SqS yd SA'W7YR Gr Teal Tile &: Carpet 332 W. MADISON ST. PH. 964.7701 Starke 964-7423 HOURS: 8A-5P Mon.-Frl.Opan Sol BANoonPagel 131 N. Cherry Street _'. - - I H. .ION P.g.7 . Obituaries - Mr William Barr Born in Callahan, Mr. Nettles Audrey Thornton and Beatrice Starke, died Sunday, Aug. 30 at his ville and Marie Prescott of Starke; A lifelong resident of Union County - Mr. moved to Starke about 58 years ago. Strickland both of Starke; two residence following a brief illness. 16 grandchildren and 13 great Mr. Roberts owned and operateda William J. Barr ,94,of Park of sisters of Starke and Raiford Mr. farm. He was employed in his ear- the Palms, died He was employed by Dave Paulk as, Violet Stewart Born Sept. 2. 1913 in grandchildren. In Bradford Thursday In Aug.Starke'following 27 a construction dragline operator until Grealding Blossom of South Ritch has lived in Starke his entire Funeral services were held Tues- ly life with the Florida Highway Hospital ill health forced his retirement.He Carolina; brother, Harry Nettles of life. He was self-employed, owning day, Sept. 1 in DeWitt C. Jones Patrol. He was also a school bus an extended illness. was a Baptist. Texas; and 13 grandchildren. and operating Ritch's Ornamental Chapel with Casey Carlisle and driver for the Union County School Born Mar. 21, 1893 in Ireland, Mr. Survivors include his wife, Martha Funeral services were conducted Concrete & Gift Shop, and was a Harold Dowdy officiating. Burial System and retired as a correctional Barr moved to the United States in Ann Prescott Nettles of Starke; two Monday at the Chapel of Archie Tan member of Southsiae Church of followed in Prevatt Cemetery of officer from RMC several years ago. 1925 and to Keystone 16 years ago daughters, Linda Sanders of Jefferson ner Funeral Home in Starke with Christ in Starke. Starke under the direction of Jones He was a member of the First Chris- from member Hollywood of Park, Fla.of the He was a Ga., and Sandra Cooper of Rev. Gene Bass officiating. Burial Survivors include his wife, Jessie Funeral Home of Starke. tian Church and the Woodmen of the Palms Thomasville, Ga.; son Stephen Net- followed at Dyal Cemetery under the Thelma Ritch; three daughters, World. Church and retired from the tles of Nicholson, Ga.; three step- direction of Archie Tanner Funeral Yvonne J. Thomas of Jacksonville, Mr. Herman S. RobertsMr. Survivors include his wife Mn. American Blower Include Company. sons, Leon, William and Henry Home. Vonda T. Wall and Bonnie L. Lan- Herman Shepherd Roberts, Loca Crews Roberts of Lake Butler; Survivors' three sons, Cooper, all of Starke; four step- dry, both of Starke; two sons,JamesM. 74, of Lake Butler, died Monday at son, Sanford Roberts of Chiefland; William of MIch.Hollywood and Howard, Ernest of daughters, Betty Ann Kight and Mr Carlyle M. Ritch and Glenn C., both of Starke; two his home after an apparent heart at two daughters, Hilda Mallard of Beaverton, of N. Hollywood, Calif.; brother, Thomasof Katie Hardin, both of Plant City, Mr. Carlyle Marks Ritch, 73, of sisters,Frankie Kitchen of Jackson, tack. (- fog. I Iki Long Beach, Calif., five grand- / . .. . children and four great I - grandchildren.Funeral -' ," - services were held Satur- / ..' ,., ,. " day, Aug. 29, In Park of the Palms "- . Chapel with T. E. Wilson and James . ..... : Gilbert officiating. Burial followedin ' Keystone Cemetery under the : direction of Jones Funeral Home of Keystone. Donald L. BurgenerMr. Donald Leroy Burgener,46, of Ocala, died August 27 in Boston, Mass., following a truck accident. Born in White Plains, Texas, Mr. Burgener was a resident of Lawtey, before moving to Ocala, where he ki--- y. i was employed as a truck driver. He \a-** was a Protestant. Survivors include his wife, Mrs. - Catherine Burgener of Ocala; four 30 DAYS LEFT TO CLEAR OUT children, Daniele, Denise, Rhonda and Randy, all of Ocala; and one brother, Dewey Dougherty of ' Lawtey. ALL 87s IN STOCK Funeral services were held Sept. lat . Archie Tanner Funeral Home Chapel with Rev. Ray Williams of- ' ficiating.Cemetery.Burial followed In Lawtey AND MAKE ROOM FOR THE 88s Mrs. Nannie K. Clark Mrs. Nannie Kate Clark, 94, of following Hampton,an died extended at her home illness.Aug. 21, That's why we want you to Born in Naylor, Ga., she moved toElfers. Fla.. in 1921, then to St. Petersburg in 1932, and finally to Hampton in 1986 where she resided with her son. She was Methodist. WRITE YOUR OWN DEAL Survivors include three sons, William Clark of Crescent City, Thaire Clark of Hampton, and Ray Clark of Phoenix, Arizona; daughter, Ruth Newcomer of Bridgewater, N.J.; brother, Gilliam 'j Raymond of Clearwater; sister, ***** Maggie Bell Lewis of Holiday, Fla.; ' 15 grandchildren, 23 great I grandchildren and 7 great-great- ( ' grandchildren. \ Funeral services were held Mon- iII day, Aug. 24 at Elfers Cemetery, ,' , with Archie Tanner Funeral Homeof , Starke in charge of ar rangements.Mr. (, r W. R. ConnerMr. ms\\ !. -:! , W?'R. "Conner, 83, of Starke Vernon Reddish Jack Coleman Lorna Reddisn Tom Smith Mack McClendon died Sunday, Aug. 30 at BradfordHospital following an extended il- Iness.A life-long. resident of Bradford We will not refuse reasonable offeron County, Mr. Conner was retired any from the Florida State Prison system as a correctional officer. He was a member of the Pine Level in ! Baptist Church. any new car our inventory Survivors include one son, Earl D. Conner; four daughters, Joyce Coleman - Nancy Coleman and Betty Griffis, all of Starke and Barbara SPRINT Crawford of Kingsley Lake; two brothers,Marcus and Loran Conner, Chevy Nova Sedan both of Starke; four sisters,Mrs. Ida Mae Shaw, Mrs. Roberta Sapp, Mrs. Edith Hutchison and Mrs. Elinora Schaffer, all of Starke; 16 grand- children and 24 great-grandchildren. Funeral services were conducted Tuesday, Sept. 1 at Pine Level Bap-- tist Church with Rev. Roman Alvarez officiating. Burial will be in . Conner Cemetery with Archie Tan ner Funeral Home of Starke in charge of arrangements.Mrs. . Catherine DowlingMrs. Catherine Steiner Dowling, 81, of Jacksonville,died Wednesday afternoon, Aug. 26, in the Beauclerc lness.Manor Care Center after a long il- Yours for Invoice Born in Beaver Falls, Pa., Mrs. Dowling lived most of her life in . Union County and Duval County. She was a Methodist. Plus $50. Survivors include daughter, Merilyn Dowling Brown of Jackson- ville; two grandchildren and three greatgrandchildren.Funeral . services were held Saturday - in the Chapel of Archer Funeral _ Home with Rev. Donald Dalton of - ficiating. Burial followed in Mt.Zion iCu11as Cemetery under the direction of Archer - Funeral Home of Lake Butler. Mr. Harry FertigMr. f Harry Fertig, 79, of Starke, died Saturday, Aug. 29 at his home following an extended illness. Born and rats-,'1 New York, Mr. Fertig moved iami In 1946, where he owned am operated a silk screen printing business until his retirement. He moved to Starke in 1980 and was a member of the Presbyterian Church of Starke. Survivors Include his wife, Mrs. Monte Mildred Fertig; two sons,Douglas of Carlo Starke and Daniel of Hacienda Hts., Calif.; daughter, Mrs. Cynthia Good Selection of Vigueras of Gilbert, Arizona; sister, Test Drive any Mrs. Mattie Hager of Tamarac, Delta 88's, 88 Chevy , Fla.; and three grandchildren. Memorial services will be Sunday Vehicle in StOCK all Trucks and the new Sept. 6 at 2:30: p.m., at the . Church of Starke with Presbyterian Rev. Tanner Jerry Patton Funeral officiating.Home is Archie in- and be eligible to win "Beretta's" in stock. . charge of arrangements.In . lieu of flowers, please make tickets to the donations Building to the Fund PresbyterianChurch in memory of ((2)) ORlAN WELLS II Harry Melvin Fertig. Ray NettlesMr. Florida Georgia Game. Chevrolet Oldsmobile l 1 J JSepkmM Melvin Ray Nettles, 62, of Starke, died Saturday morning at Alachua General Hospital in Gainesville, following an extended illness. - -- . ., i i, Pages SECTION St'ptt'.nbt'ra.11I1I1: - - - ] 7Readership- Guarantees( You: Results;. .' . : When You Use Our ; ' :M. Classifieds : : ,.n . :.<:,;,'; :. .,:' ,: ; <; 4'';; '. "\ <.s.!:.<,( o"" .,:,, 650! 1-O. "" .t1i. '2.6"i: ..:;::.:.'k7.2,." ,?,'.'''"'<',','Y': rwilltfJiJr < " 'tf1iik.I Simple! ....."," g6.t1f.." ., "'" 'Z "". 2 ;? li: ."'::., I : ,: .: ::.:. .41 : 9 ':< m{ t.1t.. h (REALTY t tr r ... .J NOTICE BOATS VACATION RESORTS OR COMMERCIAL PROPERTYRENTLEASESALE l V.Cecelia . RENTALS PHONE ... I CLASSIFIED ADVERTISING should be submitted BOORUM JET BOAT 18 ft.. 460 c.l. Ford .7n'lm\\ to the Bradford County engine with chrome goodies", drive- COTTAGES Fully furnished Dolly 205 N. Tempi. I T.I.graph office In writing and paid in on trailer Extra sharp Lt. weekly monthly rotes. Also mobile CORNER BUILDING and/or restaurant II advance unless/ credit it already blue/metalflake./ MUST SELL. Reducedto home park spaces for rent and homes equipment for (ease. Will sell equipment I established with this office $4,500. 7823660. TFjm for sale MT. VIEW RESORT U.S. 64E seperately. Across from Santa Fe Terwiileqar THE TELEGRAPH STAFF II FT. SAILBOAT: 1983 Hoble Craft, Community College Best restaurant CANNOT BE Highlands Rd., Franklin. N.C. ((704)) .....NEW LISTINGS..... HELD RESPONSIBLE FOR MISTAKES IN multi-color sails, whit. hulls, like new 524-4605. 6/11 tfnchg location In town. 964-7183. 8/6 tfnchg CLASSIFIEDS WHEN AD IS TAKEN OVER double trapoise and harness with VACATION RENTAL Franklin. N.C., 2 FOR LEASE! 1,000 sq. ft., 301 South next Unbelievable! 60 great acres North of Railord on Rd.229(Union County). THE TELEPHONE. /frailer, and sail box 4500. 4732435. BR furnished cottage with deck to United Really 964-8848. 964-8447 65x24 doublewlde. 3 barns 2 septic tanks 2 well. 2 pumps. Selling price Claiiifled deadline I I. TUESDAY Itpd 9/3 overlooking beautiful mountain, or eves, 4733627. 4/16 tfnchg $75,0001 With $25,000 down payment owner will finance at 10% Interest. NOON prior to Thursday publication. 9647210. hod 93FINANCIAL COMMERCIAL PROPERTY laundromat Fact, not fiction' Classified display deadline I.TUESDAY LAND FOR SALE eight-unit apartment building one Benefit Galore 11.364 sq. ft. brkk. commercial building. 140 S. Thompson 5:00: P.M. Special Classified display SERVICESNEED house, and one cottage. All Income St. This property is In the Enterprise Zone which offers jobs credit ton placement is NOT Guaranteed. producing property Located on Hwy credit sales tax exemptions, re-development trust fund. Minimum charge for classified ads IsIS 13 ACRES ((4V acres cleared rest In HELP 301 In downtown Starke. $175,000. Property Enoy| a lovely Sunset on Sampson Lake: large high and dry lot. dock words for $3.50. then 15 cents for good timber) 2 BR mobile home usedas We buy houses, FHA or VA Mortgages recently appraised at $235,000. 1985 doublewlde. 3 BR, 2 Ba, fireplace, deck facing lake side. each word thereafter a rental at entrance of property. Some Conventional. Elaine 473.2438; 9645139. 9/3 2tpd 9/10 What You See I. What You Get I 436 Polk St.. ftidgewoy singlewide. 2 BR. Several money-making pecan trees Brenda 4733672. 7/9 2tchg 7/16 2 boo stove, refrlg central heat. AC unit. Florida room carport utility around mobile home $28,000 You bldg., fenced. Owner will consider financing. PERSONALS Finance Call for appt. 964-6305 days or . . 964 6493 after 6 p.m. TFo| ....COMMERCIAL.... ALONE" Call BRINGING PEOPLE LOT IN CITY $6,000. Call 964.5764; after 301 N: 1.5 acres,MH hook-up 2 bldg.240"on 301. great value $ 37.000 ' TOGETHER I Stark'* most respected 5, call 9645251. 3/07 tfn : \\AcceIerafeft JReaIfyttac.9644544 \ : 301 N: by Econo lodge 165.01'on 301 $120.000 dating service since 1977. All ages including 44 ACRES with 2 BR house or will divide 301 N: approximately 150'x opprox. 220 $125.000 senior citizens into 10 ocr. or more tracts 964-7771 or 301 N: Dairy Queen Building, lease option? $ 93.000 1-800-648-4401. 4/2 tfn_ 964.4537.5/14 TFchg : : 301 S: 193'301 frontage $ 85.000 1.27 ACRES: shady close to lakes Southof 301 and Washington Street 262.5. 105' $ 91.500 R.V.s CAMPERS, Starke. Call 282.3057 eves 8/27 301 S: 270 ft.on 301 opprox.2 acres $150.000 TRAVEL TRAILERS 4tchg 9/17 1520 s. Walnut St. m .....ACREAGE..... I 0 I (Hwy. 301 S.) LI3 Rd. 100 East, 1.37 acres, wooded and platted $ 7.000 1973 MOTORHOME 53900. 4311050. WANTED Starke FL 105th Ave., lawtey: 2% acre cleared $ 8.000 8/20 4tchg 9/10 REALTOR Hampton- 438 acres.This property has everything $438.000 22 FT. MOTORHOME Douglas on Chevy WANTED TO RENT! I yr. min. 3 BR 2 Wayne E. Douglas. MSA Lawtey: 5 acres, 105th Ave., good investment 13.000 k chassis, .self-contained nice Inside and both house, large yard within 10 miles 4 Rd 100 E:12: acres plus fish pond wide open space S 26.000 I I Designated Appraiser Flume Rd.. 9 Club. Condos?Time Shore? 49.000 out. 6 cyl. Industrial engine, 3 speed. of Camp Blending No children. acre* join Country Sleeps 6. 2950. 964-85O3 after 4 p.m. 473.4674.8/20 SR 16 West opp o... 7 acres 13.000 4tpd 9/10 / / / 8/27 2tpd 9/3_ WANTED TO BUY about 50 pounds of Homes* Lots / Acreage Waterfront Oklawaha River 3 beautiful acre, river frontage $ 15,000 I! REAL ESTATE pecan seedlings 9648392. Itpd 9/3 %/ Farms S Commercial Primitive Baptist Church Rd.: 20.16 acres 3 _II.. II WORK WANTED: Experienced nurse's 2 septic tanks, 2 poles, owner finance $ 50.000 I FOR SALE aide/companion. Mature, reliable Excellent FARM FOR SALE- 41* ACRES- R,2 BA Block Home,Fireplace Or will split each $ 27.000 1' references. Call Fay 4962980. w/Buck Stove Swimming Pool,Some Land in Pasture,some Ready to Farm & Brownlee Rd.: 36.43 acres, owner finance, great location $ 82.332 6 OCALA NATIONAL FOREST High and Itpd 9/3 Wooded Areas, Fenced and Cross Fenced Creek RIIn.through Back of Property, Bayless Owner Hwy finance- 50 acres, ".ggs-octly"what, frame home A egg need farm $250.000 dry wooded lots. Mobile home cabin 32'x 36' Cypress Bam,S 140000. you v camping OK.Hunting and fishing. WATERFRONT JUST REDUCED Owner financing on this Old Fashioned Frame Home 4BR, .....HOMES.... $5.450 w/$150 dn.. $63.71 monthly PROPERTY 2BA,CH/A Just Painted Inside and Out, Has IBR, IDA Apartment w/scparate Keystone Heights Townhouse. Geneva Spring, 2.265 sq. h., ((904)) 236-4579 days ((904)) 622.2438 Entrance 5 } acres,48900. 3 BR.3 Ba. 2 cor garage&2 space,90% financing $ 84.000 eves. 2/12 tfn SAMPSON LAKE. 3 BR, 2 Both fireplace Francis St.: 3 BR, 1 Ba,CB. privacy fence back $ 33.000 ANTIQUE BRICK HOME: W/SWIMMING POOL. Formal Laving & dining Melton Terrace comfortable $ 49.500 dock 4 Inch well $62,000. 4733843. :3 BR. 2 Ba CB.CKSA.Convenient MOTORCYCLESGOIDWING 7/30 tfnchgSAMPSON/ Rooms, 3BR 3BA, Family Room w/Fireplace,Large Screened Porch w/BBQ Alvarez' Court: 2 BR. I Ba. landlord off your payroll 20.000 LAKE ESTATES Lake front Grill, Guest House w/Bath Pool has diving Board and other Accessories VA Lake Butler: 4 BR, 2 Ba.90 yeast memories $ 26.000 1910 and lake access lots available from Assumable Mortgage, 4 Lots. Rd 100 across New River Bridge MH 3.33 acre*- S 47.500 loaded black and i chrome, runs and looks new $2,200. $9000. Zoned Rat, mobile home. 3 ''smiles NICE, NEAT FRAME HOME-2BR, 1 BA,Stove,Refri., Dishwasher,Ceiling adjoining 3.66 acres no residence, seclusion $ 12.000 I 964-4368 after 5 p.m. 8/27 2tpd 9/3 west of Stork on beautiful. Fans, CI I/A Large Screened Porch 22'x 30' Barn, 3.9 Acres, Good Price. Edwards Loop: 3 BR. 2 Ba, 1 acre,let's go country S 62.000 i 1978 HONDA 750 automatic transmission. Sampson Lake ((2000 + acres) Ex. LIVE TilE SATISFIED Orange and Pratt: 2/1 frame, handyman'dream $ 25.000 COUNTRY LIFE 3BR/1BA Frame and DW Mobile fairing and travel trunk Included. cellent fishing skiing and boating. Breaker- 3/2 brick and frame Shady Oak Sub..extra lot 44.000 904964.7755 Home in Excellent Condition w/covered Patios and Carport,Well & Septic, $600. Phone 473-4508 after 4 Itpd Meng Dairy Rd.: 2.25 acres,3/1 CB CH/A. so near 40.000 p.m. .ve.533.2038 Owner/broker 8, 13 tfnchg Blueberry Plants & Pecan Trees 6.92 :T Acres. . 9/3.: Crosby Lake and canal. MH.corner lot live and fish S 42.00O I ROBINS AND ROSES 2BR/2BA Block Home Extra Large LivingDiningArea Crosby lake Canal: 2 BR. 1 Ba.CH/A,frame $ 41.000 All Across America Family Room, Breakfast Room, Kitchen has Plenty of Cabinets,Garage on 3 Klngslay Lake Village:2 BR. 1 Ba. Frame, S lots Incom. $ 29.500 I Acres. .....LOTS..... : LORRAINE CHAMPION EASY DRIVING TO CECIL FIELD Brick,5BR.2BA.Split Floor Plan, Lakefront lots and lake access lot ASSOCIATE BROKER Living Room w/Fireplace, Formal Dining Room,Kitchen w/Plenly of Cabinets,& Prices range from $ 9,000to$21,000 I' j. STROUT REALTY snack Bar, Utility Room,Garage,on I Acre. Country Club Estates: 2 lots.On.Acre'each $ 7.5O01S 8.SOO I QUIET AND PEACEFUL Block Home,3BR.2BA Family Room CH/A Kingsley Lake Village: 2 lots $ 4.500 j I R IncorporatedLie. .al E.tot.8rok.r Range,Refri.,& Dishwasher 1,738 SIP,Chain Link Fence. Nice Property. Crosby Lake Lot 2: Make Offer 17.000 ' COMPLETE THIS 2-STORY CEDAR HOUSE SBR.3BA.Formal Living & Washington and Cherry:2lots: $ 8.00O15.000 Winding Tree lake Lot 244, Florida Frontier. . $- : -- -- 838 N. Temple Av*>. Dining Rooms,Recreation Room,Utility Room,Large Front &Back Porches,7.6 After Hour I I , (U.S. Hwy. 301) Bui. ((904)) 964.8931 Acres.. . Pauline Randolph ''lv"--". ,'. ;l4-6323 9 Stark., FL 32091 Rot. 473.3096 WALK TO SCHOOL Block Home,3BR, 1 1/2 BA,Living Room John Langford Master Appraiser 494-221 I Dming-Kitchen Combo,Central Heat,$35,900. Anne Terwllleaar Nelson 473-7541 COUNTRY LIVING Brick Home, SBR, 1 1/2 BA,Range& Refri.,Well & Randy Cory 47J-JM7 . Septic,Nice Lot i SHADE TREES AND PORCHES 3BR/2BA Doublewide Well&Septic, 1.72 -- ------ : Acre., $33,000. SELECTED PROPERTIES HERITAGE VILLAS s 2 Lots In Northeast Section or City 700 Bradford Court in Starke LAWTEY .2 Lou Inside City Limits Zoned for Mobile Home. .TEN ACRES: Bradford County 13th Street.N.E.,Pecan Grove. COMING SOON - LOT ON LAKE GENEVA 100x790 fl,on the water! 1052 ACRES Northeast Alachua County. Priced To Sell. One. and Two Bedroom Apartments: 10 ACRES in South Clay County Residential Agricultural$17,900. Available September .20 ACRES NW Bradford County,Residential-Agricultural. , .LAKE LOTS Crosby&Sampson Lakes,Owner Financing. .'was to'Wall carpettna.Central'' nat&atApplances .4.55 ACRES 2.16 "Indudn*frestfre*refrigerater ACRES: Near Graham Zoned for MH. . Conveniently pre wied for cabI.TV and let. Susan M. Faulkner, GRI.CRB PRESIDENT .CITY LOTS On Ilwy 16W,2 Blocks from 301. .Specially. designed unit*for_appall! . . .CITY BLOCKS FOR SALE Northeast Section. Ccki.p", ated laundry Private pattosOutside 1 !FJilfl.Ll( pY IJC HWY 301 SOUTH Two separate parcels.' Good Business location. ..Spacious storage closet. *compartment* ,tee ',\ HWY 301 SOUTH S Acres near Earleton Beach 210'on Highway. ' I. Located Hwy.301.2 Blks S. SR.100, 221 W. Lafayette Street COMM BLDG.IN CITY Approx. ISOOO'q ft floor space. FROM ONLY $22O. ruuiunims Rental information available at IP TOUR MIND I* ON' REAL F*TATC-OR THING RELATED the construction trailer or caD: MAKE TOUR NEST' TOP AT ACCELERATED ((813) 443.3251 MorvFrl 9-5PM i iI THANKS BRADFORD COUNTY! I . EQUAL HOUSING OPPORTUNITY 1 1 We've had record breaking sales this 1; past year! As a result of these sales our *HOMES IN THE COUNTRY* s 1, ONE OF THE FINEST 3/2 Doublewldes built on 3 acres manicured land on i listing inventory is low. e a paved rood with a side access rood. $49.900. ' *OWNER SAYS GET OFFER doublewlde. 10 acres of good land $47.000. \ ; flSeD. fT $ *2 MOBILE HOMES on 2.9 acres. Forsyth Rood. ! : r *MH AND lf+ ACRES Private, but only 10 minute from Stork*. 3/2 ! 9644522STARKE. doublewlde with large open country porch an 19 acre of sheer privacy. *,IMMACULATE MOBILE HOME. 3/1. CH/A. . on one acre . In order to Increase our Inventory we are offeringthe FL * MOBILE HOME WITH ADDITIONS built on plus many extras. South of Stark following FREE NO OBLIGATION SERVICES e eI on 2.5 acre $32,500 with owner financing. I *A SPECIAL' BUY 2 BR. 1 BA. central H&A. on major highway. $26.500. Siiann* *JUST OFF SOUTH 301 Mobile home 3 BR. 1 BA. on 1.4 acre t *CRYSTAL LAKE AREA Need lots of space?Over 2.0OO sq. ft. In this better FREE MARKET ANALYSIS r than new brick home 3 BR. 2 BA. CH&A on 2 lot*. $110.000 f *LAWTEY AREA 3/2 CB. CH&A. opprox. 1.500*q. ft. on 1 ocre. $53.900. We'll compare your home or property to 'ol ". LAKE LOTS LAND BUILDING LOTS* < p4 !lfri; f 'A/p/ 'iHtffife ; others that have sold making adjustmentsfor : ni 11 ACRES On SR 16 5 Morgan Rd. Seller motivated. $ * .iro' if | differences and give an estimated i* Cdmmenia* ; 0uthe * you Appraisal* lo Re td nc* Farni KINCSLSY LAKI VILLAGE 2 lots for$5.500. price change. 1 LOT ON BROOKLYN LAKE COVE. Beautiful beach. $30.000. r *THIS WEEK'S SPECIAL BUY *LAKE LOTS on Sampson Lake. BEAUTIFUL BRICK 4 BR. 2 Ba, CH4A. fireplace, energy efficient on 3 acresIn *SAMPSON CITY AREA Deer Hunting I* good on 3 acre. Heavy j Starke. Price lust reduced to $83.000. Owner needs to sell timber. Close to Sampson Lake $32.000. Owner finam .. FREE use of moving machine *COUNTRY CLUB Building lots from $6.500. Some) with owner financing. ----- - --- -- --- HOMES IN STARKE *COMMERCIAL and referral service . *VACANT & READY TO MOVE INTO C/B. 3/1. clese to new Wlnn-DI.I., *MOBILE HOME PARK SITE. 8 acre Market Hood w/logrew on US 301.City 'S2S.OOO. Innovative financing available. Will consider lease with option. water & sewer available Sta..... j | We'll contact an ERA Broker )In new city your * *LEASE W/OPTION TO BUY Exceptional Brick Home In absolutely the best LAKE BUTLER 1.300 sq. ft. building on 104 x 208 lot. Plenty of parking. and within 6 minutes receive pictures of location.3 BR. 2 BA over 1,600 sq.ft. living area double garage CH/A. 1201 x *TURN KEY OPERATION Boat manufacturing the popular Slvmpknocker. homes in the new area, over our moving 300' lot city water < sewer $70.500. and Criffcraft fishing boat Owner assistance. IN THE BEST AREA On Besscnt Road lovely 3 Bedroom 3 bath separate *ON HWY. 301 Apartment complex, full occupancy call for detail.. machine *2400 SQ. FT. Spanking new warehouse 3 Large overhead roll-up doa dining room double garage, many amenities. On 3 acres, 110000. a. FOR THE GOLFER Country Club over 1V4 acres, 3/2. All brick, sunken living INVESTORS Plnaong S/O. Paved road through property. Owner fin. window extras. 79500. *US 301 Vacant land available. Assorted size & acreage. Call for Info. room fireplace, telling to floor many *DEER RUN Immaculate living In this 32 ft. MH. Concrete pad security *OUT OF STARKE 4 Call one of our Professionally trained lights, stocked lake. Ideal for retired. Only $13,500. *LAKE BUTLER Price reduced to $30,000. Owner need to sell '--. Will IMMACULATE IN STARKE, CH&A, 2 car carport, 100 X 100 lot. $53.000. sacrifice to buy larger home In the country. Hurry. staff today at: 3 BR, 1300 ft. $28,000. EXCEPTIONAL over sq. *WEEKEND RETREAT 75 ft. on Hart Lake w/3 BR MH. QUA. $30.000. *SARATOGA HEIGHTS 3 BR, IBa. approx. 1400 sq. ft., 39900. *HISTORIC BEAUTY' 2 story 3/2 CH/A. craftsmanship unavailable. today 9645069or HANDY MAN SPECIAL Brick home, opprox. 150 X 200 lot 20000. *KEYSTONE High Ridge Estate. 3/2 mobile. $30.000. FRAME HOME on N. Church St. Immaculate. Only 28600. *REDUCED ".000 FOR QUICK SALE RAIFOUD ARIA Brick 3/2 $65.000. I after hours call: *PRICE REDUCED 3/1 CB CHSA In Stark Owner financed. 36000. LAKE*- --- d *HAMPTON *WALK TO EVERYTHING 3/1 frame, nice lot. 23500. REALTOR ASSOCIATES EVENINGS *"PERSONALITY" HOUSE on shaded corner lot. Detached garage with shop. *ALMOST NEW CONTEMPORARY. Immaculate. 75 ft. lake) front $ioeon , Irene L. Faulkner- 964-5142 CH Move right 'In. Reduced to 23000. *BRICK HOME many ...tras. 75 ft. of white sandy beach. Only SI7.000. i school *A Fremei CHI A. dock and boat ouw. 115000. -Jucl.If.Spry ._. 964-342.0 FRAME 3/1, close to 21500. *2 CONCRETE ILOCK HOMES side by side, CH/A, $45,000 each. We Invite Inquiries On Our Other Properties REALTOR . L. . t . f 1 t September: ? SECTION P8get Starke. Keystone Heights. . -- -- ---- -- -- BUSINESS CARS. TRUCKS. VANS HELP WANTED NOTICE HOMES FOR RENT OPPORTUNITIESOWN _ BLAZE 4x4i 350 4 speed, big tires, EXPERIENCED SALESPERSON waded CLASSIPIID ADYERT1SB/G......be.... GOVERNMENT MOMIS-tor$1 (U Repair) MAKE SUMMM RESERVATIONS NOW looks good, runs strong. $2400 or' 7823003. 8/6 chgtfn mHtd to the Let Region Monitor. office mn DfttECTI .. .... ft TOM SEIZED ProperMe on Lake Genevo. Efficiency stoning ot YOUR OWN APPAREL OR SHOI might take trad of ?? 9644368. 8/27 LICENSED RN NEEDED of Whispering ) In turning end ... *. Call .TODAY for FACTS $150 ......Iy. Monthly or seasonal dl. STORE chaos from:Jean/sportswear, 2tpd 9/3 Pine Care Center. 3-11 charge nurse ...... edIt as sh a.In..aLJ..d l-SIO-499-3346 at H3339A: (soft refundable count. Special rote for year round. ladle. apparel moos children/mater- 199 CHEW IMPALAs runt great good full.time. PIN LPN1 needed. EC*. with thin........ )34.. .. 3 pd B/27-9/IO Lake Geneva Rental 4732919. 4tchg nlly, large dies, petite, body and engine. $599 or best offer. Phone 9646220. Experienced need only MONITOR STAFF CANNOT K MELD KEYSTONE CLUB TAns now 3M, 8/13-9/3 doocweor/oeroblc. bridal lingerie or Ask for Jennifer. 964-7423 days or to apply. 2/12 tfn RESPONSIBLE FO MISTAKES IN 2BA,CM/A,laundry, near golf HOUSE FOB liNT On Lake Geneva accessories *lor.. Add color analysis. 964-398S night and weekends. Itchg BOOKKEEPER part-time. 30 hr*. per CLASSIFIEDS WHEN AD IS TAKEN OVER course. c--- ...$49.000.garage.475.2598.4fpd brand now 2M carpeted stove B Brandt: Ux Clalborn. Gosolln, 9/3 week for lumber hardware company. TELEPHONE. 8/77-9/17 refrigerator laundry dock facilities Healthtex. Levl. L*., Camp Beverly 1977 CUSTOM VAN: loaded. Also 20 ... Reply to: P.O. Box 364. lake Geneva.FL Classified deadline i* 1140.....prior 36JC7 MOOKI NOME FOR SALE 3BR.3BA. available.I You must see this on.. Hill. St.Mlchele. Cbous. Outback Red loaded. $3,600 for both. 8/13-9/3 camper 32660. 7/23 tfnchg to Thursday pubUoaUan.Mlnlrnwm 2 acres on paved rood paved 4732919.4tchg Genesis. Forenia Organically Grown 964-8661. 8/27 2tchg 9/3 HIRINGI Government Job your __. cnaraa to I S word for 350. ...*...". 3 decks storage building, man SANDS LAM nn. IBA. with over 2000 others Or $13.99 On. Prlc 1911 CHEVY MALIBU CLASSIC 4 door $15,000 $68.000. Call ((602) 838-8885 then 15 cant for each word....-" ..... kennel, .vt.rls. ceiling fens doth. 1295 per mo.. $200 deposit. D..lgnr. Multi-tier discount sedan V-6 PS PB. AC. Clean Inside 9042497884. 4tpd 8/20-9/10 pricing or EXT 3493. 8/13 4tpd 9/13 Mwou_. fir....... safan.s* cftshv family sho star. Retail prices needs pointing. $1.400. Call 964-6133 EXPERIENCED CARPET SEAMER for ..*.ot4*. low ........ $37 JOO owner LAKEFRONT.2BR.28A homo. AC. patio unbelievable for quality shoes normally anytime. Itpd 9/3 doublewlde Call 782-3003.8/20 TFchg Bnontino. 4737685.27.9110 new Keyston Private. 4734186. priced from $19 To $80. Over 250 1972 MERCEDES JSO: 3900. Excellent ..N.'.. Full-time part-time and PEN PERSONAL SERVICES LOT nus .2.Ue MOMU HOME 211I. 3tchg 8/20-9/3 brands 2600 styles. 14.800 to 26.900: condition. 9644238. 9/3 TFchg position available for ER and ISA. c. fral akr. IO.OOO cost FUINISHED STUDIO APARTMENT on Inventory training fixtures, grand 1972 DATSUN TRUCKS $330. 9645872. MED/SURG floor In a small hospital 473-2730. 2sg V27-/3 lako Ge va. $275 per mo. Include opening, airfare, .tc. Can open 13days. Itchg 9/3 specializing In plastic hand and PRESSURE WASHING HOMO otebdehomes. lAD SANTA VC HOUsa.'If............ utilities. 4732919.3tchg 8/20-9/3 Mr. Keenan ((305)) 366.8606. Itpd TWO VEHICLES 1974 Window FOR liNT 3BR doublewld < 2BR Dodge reconstructive microsurgery. Apply to pools. docb. sidewalks Free ed. 3M. 154' M. beaunsul lot wilt Joke - 9/3 Van. $1200; 1983: Chevy10 Pickup personnel, Lake Butler Hospital and _t-. Coil Rob 4733590.' 3/5 OCCM Metro** 79000. 47S-3352. slnglewlde.' no pet. will sell. long wheel ba... AT PS PB. $3500. Hand Surgery Center SR 121 B 100. tfnchg 4tchg 9/19/24 16592269. 2tchg 8/27-9/3 964.8906. Itpd 9/3 LAWN FOR RENT 2BR. I lA, mobile home, central MOWING . Lake &us lor. Flo. 32054. 496-2323. EOE. Trimming. dya.Coll ---- -- --- - 1913 MERCURY MARQUIS LS vinyl 8/20 3tchg 9/3 Th* Lawn Barber. 473-3590. Free HELP WANTEDROOKEfmACCOUNTANT air $230 per mo. 4732730. 2tchg PERSONAL SERVICESWANT leather Interior premium sound CONSIDER SELLING INSURANCE Life of Estimates. 3/3 tfnchg: 8/27-9/3 system, elec. seats, excellent Georgia has full portfolio of products. CARPET CLEANING C ft B Carpet ft IAKI BROOKLYN 1 BR. large Florida TO DRINK transportation. $4.993. Can be financ Experience helpful not necessary. Upholstery truck mounted, deep for day room, more. Shade B privacy, $300 per THAT'S YOUR BUSINESS ed. See at 135 W. Call St., or call John Over 21. We will train. Excellent pay. steam attraction. 473-7770. Fraestimates. County CPA oHm. Computer ex- mo. plus deposit (negotiable) .... ....._Narewok.r.Reeves.to . perieno . 9646305. TF 473-3069. 9/3 WANT TO STOP local agency. For Interview, call 7/>>9ru Itchg CPA P-O. Bra 575. JocfcsonvUI. NEED TO GO : THAT'S OURS 3723686. 8/20ltchg 9/10 TO DOCTOR CM Errands Alcoholics Anonymous 301 QUIK STOP accepting applications ? Cook? dean? Mow? Repairs? H. 32247. fchg VI3-/3 PETS M AVAMAHC NUCSaNG rOSmOtIS 964-41$ -'''- 219 YARD SALES for full lima clerk.Apply in person. 2% Call 475.2531..sk far .---. 2tpd TOM COaMnUeairy for orivolo dtItot.OIK..lPN"a. . pd thru 9/17 miles South 301. 8/27 2tpd 9/3 9/3-9/10 RST.liie rs.eil in work'ing MOVING MUST SELL pair S/S African CHAIN UNK FENCE Installed. Fr. YARD SALE Stereo, comero. fur (ocket, ENJOY WORKING WITH DOGS? Full and HOME- --- IMPROVEMENT repays. adaVtion with limns ........ or hospic po- gray $6SO. S/S male double yellow estimates. Handy-Man F.nc. Co. clothes, furniture, many more Items part-time positions' available, 6 day or complete> budding. 30 ._.. Call ... Welnese PersonnelR.gerry head amazon talks- $700. S/S female Owner Tommy Reddish. 964.8559 Hn week. Call 4851174. 8/27 2tchg 9/3 years umbrella cockatoo $300. Tame male too numerous to list.Saturday and Sunday ...porioncowng Bradford and day ol 338-2146 or I40O3423406.KX. . HANDYMAN carpentry, painting electrical 8 miles West of Stark. on SR 100 RN/LPN WANTED to perform mobile Insurance Counties. 473-4018. 5/28 tfn chg *V2O- /IOEXraKMOO spectacled amazon $250. Cage compl.t. horn repair. (at Fir. tower). Itchg 9/3 exams In Starka or_. Veni- FLOOR SAGGING? Door Draggng? LOCAL rAMTU AND available. 473-7685.3tpd 8/27.9/10 Reasonable rot... Licensed contractor. MULTI-FAMILY SALE Saturday.8.30a.m.: puncture experience required. Good Hous out of level? LaRu Lwj..-g IBpfR5QEDED -Cal Alan JuaffM at RB0049306 Call Mitch. 4733940. l/9tfn 819 Parkwood Place. Itpd 9/3 pay. part-time llexible hour service for all your foundation........ 473-4824 or 0175-......2Tpd V27-/3 NOT SEWING MACHINE REPAIR: All makes GRACE UNITED METHODIST CHURCH 13965880. 2tod 9/10 4737721. 7/9 tfnchg HELP WANTED iwin OK!. Salary Hue cleaned oiled and adjusted. $15. Used Lawtey. Saturday Sept. 3. It pet 9/3 CONSULTING DIETICIAN Position COMPLETE HOME REPAIR; carpentry room and board. 473-2881. Istfcg 9/3 Cj: Ow sewing machines for sal.. James available in small hospital. 4 hourweek. 3-FAMILV YARD SALE Nice things car Flexible schedule. painting electrical, plumbing.Reasonable HOMCWORXUS WAPITB Top p.,,. 121 Strickland Rd.and Salary plus t corn.r Morgan Hwy ; parts, ceramic, much mor. Com by rate. Licensed cone/actor. ... N.W. Suit 222. Norman. ; 16. Stork.. 9648733. 3/19 tfn mileage. Apply to Personnel lake 24th A ; to see us. Frl and Sat..91.-5.515 Alton R80049306.. Call Mitch. 47320 LAWN SERVICE for residential and com Rd.. 8 a.m. til. Itpd 93FIIDAYSAT.SUNDAY. Butler Hasp. Hand Surgery Center OK. 73069. &/27 4Khg 9/17 :::> ( mercial. Reasonable rates. Fr.. : 1002 Clark St. P.O. Box 7.... Lake Sufl_. Flo. 32O54. TFchg .., j) 9044962323. EOE. 9/3 2tchg 9/IO '" estimates. 964.4238.7/16 tfnchgGLORIA'S Turn *ast by Powll. then right on FEDERAL. STATE A CIVIL SERVICE JOBS MUSIC HOUSE ("udlo) Clark. Itpd 9/3 $16.707 to 559.148 Now hir MISCELLANEOUSPACK per yeor. MANY ITEMS too to mention. numerous lessons: Guitar Banjo Electric Bass Call JOB 1-518-459-3611.. .xt. ing. Instructors Richard Kellogg ft Gloria Frl, Sot. and Sunday. 9456. Intersection RAT Buy. seE and... CJ08odi. w F3377 for info. 24 hr. 9/3 3tpd 9/17 Bryant. Call Now 10 a.m. 2 p.m. ((904)) of Rd. 18 Rd. 325 and Rd. 221 In COMPANION FOR ELDERLY LADY bIo Hem and antiques.Used fumm.*. 9648120. Itfem Hampton. Itchg 9/3 glassware, jewelry and nsuch MOT*. WANTED full time or part lime. Call SATURDAY SEPT. Si Ladles, children Coma she for yours**. On* us**east rAmerica's k 964-8566 after 5 9/3 2tchg 9/10 clothe., shoes, misc. CR 125 West 8 p.m. of 100. COMPLETE HOME REPAIR carpentry CHAPTER I THERAPIST for 0-5 yr. old. Keystone Height on Highway pointing .(.cfricol, plumbing. a.m. to 7 p.m. Itpd 9/3 Located at Bradford Union Guidance 473.2183.3/5 tfnchg Reosonobl rates licensed contractor GARAGE SALE Sunday 10 a.m. to 5 BROWNS FLOORING CARPET AND Clinic. P.O. Box 399.St...... Fla.32O9I RB0049306. Call Mitch. 4733940. 8/20 p.m. Household Items for col I.. 326 N. 964-8382. Qualifications: Bachelor VINYL SALES AND SERVICE ........ TFchg Myrtl. Itchg 9/3 degree with 2 *. experience in tion and ropoir*.AB wok gjuoronSoodand yr WILL TAKE CARE OF ELDERLY 9647478. SATURDAY. Sept. S: 9 to 5 p.m.. 517 N. therapeutic classes, parent training priced la save you mnney. 8/27 2tchg 9/3 Orange St. In backyard. Clothe. training in testing In analysis. Send 4737933. Btpd B/27-1O/IS ATTENTION WORKING MOMS AND shoes, knick-knacks, small appliance resume. Itchg 9/3 DADS Child care In my horn for and lots of things. Itpd 9/3 CARS preschoolers. For more Information 104 W. BROWNLEE ST.: beginning Sept.3 $8.00 HOUR Earn $300 Kit Show toy and Dishes, linens, small and gift FREE supplies and commission continuing. 9644780. Itpd 9/3 . 1968 MUSTANG CT COUPE 302 .use.factory DENMARK PIANO TUNING AND REPAIRS Don. by appliances. 9/3 2tpd 9/10 Coll Iris 964.2030 or 9644889. air. runs good sever rust. La-Z-Boy qualified technician. 9645497. SOS W. WELDON ST.: in front of Rescue 7/30 tfnchg piano port $2500. 4737685. 3 pd Itpd 9/2 Station. Sat. and Sun., 9 to 5 p.m. Itpd REAL ESTATE LICENSING only $195. Call spore 8/27-9/10 4 W, Cfafl Sfr t 1-755-4040. North Florida Real Estate 9/3 : WILL DO HOUSECLEANING In Stark 69 OLD CUTLASS S/S-.........350 CM. m. ' or_. 9648255. 9/3 2tpd 9/10 102 PARKWOOD PLACE Fri and Sat.. 9 College. 73OtfnEMERGENCY engine. Dependable. 5450 firm. .. .. a.m. til. Itpd 9/3 SERVICES CONSULTANT: 473-7053 or 473-36OI.1tpd 9/3 |*.f HKI-WO, Saf. l0flf:00fr : ON CHERRY STREET Saturday, Sept. 5. after hour and weekend. B-U 1 Tact retailD.l.tttf If Dfnmarax 9-3 p.m. Clothes, radio heater adding Guidance Clinic Inc., Starke.9648382. machine, camera books. Itpd 9/3 Persons with mental health professional FOR SALE MATHEWS REALTY SATURDAY SEPT.. S: 8 a.m. to 3 p.m. or social services degree Four miles West of Lawfey) on Hwy. desired, but is not required. Person LOWERY ORGAN with spear $700. f- 441 W. Madison 225. Clothes for men women and such as psychiatric nurses. EMTs and neg. Couch C chair. French Pra.en ..... Starke. A 32091 children misc. household Items and other trained professionals may also groan K white $250. nag. SWIM ... ... toys. Itchg 9/3 apply. 8/20 3tchg 9/3 chair $65. neg 475-1634. 2Schg BIG YARD SALE 2 block south Western EXPERIENCED SALESWOMAN: salary or 8/27-9/3 IBN Steer. Jo-Lu Motel Frl and Sat. Itpd 9/3 commission you can decide what you RCA XLIBB 25" wood causal TV **f. [B S moke. Send resume to SALESWOMAN.P.O. Work good. $175.473-35O4. Itpd 9/3 IVLnPLEI.Isn" Drawer A. Starke. Fla. 32091. FREE AaTENNA ........ 100 feet Jit eibMt ANIMALSFOR 8/20 TFchg high. Several aerial CaR 473-4402 REALTOR 1LRYCEJocksorMite SALE TRAIL RESTAURANT of Lawtey will betaking oher 11 a.m. Itpd 9/3 Mu"plo, Listing Services application for experienced: ONLY OXCkapr.M..S agent for this area waitresses and evening cook and YARD SALES ROTTWEILER PUPS AKC $275 each. dishwasher Waiter and waitresses bloodlines. 9644238. 8/13 -WALK TO SCHOOLs 3 PR. 1 110. Champion tfnchg must be 18 yrs.of ago.Apply in person MOVING SALE furmtur. tools __.. CHI A. 136.500.IROOKI.s CANARIES 1 yr. old with cage and only no phone calls. EOE. Way Mormon antique love seat, chair A sable. Finest Income Tax Course 76 acres, 2 story .stand $50. Mai I I. deep Other manager. 8/20 3tchg 9/3 Hoviksnd Chma. Fri. t Sat..Sept.4 B 5. .house. 'enced posture creek, rolling orange. HOMEMAKERSI Kids In school? Need con.ng oinn?** Saxes now could offer you money-making opportunities and . females, $15 each. Call 964-7840 B a.m. 6 p.m. 5455 County Rd- 352.Gatorbono , land. Stark. Itpd 93THOIOUGHIIED extra cash? Fro kit and supplies. loka. Itpd 9/3 save you money on your Morn ot IBM lima.e . -STARKE. Large frame homo on 20 MARE Very gentle, Hous of Lloyd. Call Iris at 964.2030 or 4 FAMILY YARD SALE Lakeside Vales Morning, ofitemoon. e en ngj classes Reasonable course feee Ac. with Iota 0' pecan tr.... good with children. 964.5713 or see In person at lot A-29 Waldo Flea Hwy 100. Fri. ft Sat..Sept.4 ft 5.9..... Classes begin. 9/15/87 e Held ot one area 'location PROVIDENCE Large .tat.ly oaks Market. 8/27 TFchg until ? trailers, tool ___. 964-7779 ask for Robin. Itpd 9/3 HOMEMAKERS WANTED Top payl I 121 Utility Send for mare information today or call nowl 2700 ft. brkk home. tiller misc. 9/3 Itpd greet aq. I your 24th Avenue. N.W.. Suite 222. Norman OPEN HOUSE SEPTEMBER 10. 7 P.M. 2 private fish ponds. 135 Ac.. op.prox. - 140 pecGn tr.... OK. 73069. 8/27ltchg 9/17 964 N. Tempi Avenue Starke 964-8286 BRADFORD COUNTY and surroundingarea WANT TO LEASEIN ----- Contact Our nearest Office mmlmmlmm-ml w : Enjoy local full time or part-time , work. Experience In teaching church KEYSTONE HEIGHTS AREA asst be K&R work, or working with youth. We wont in day County. 3SR with don or 4.... I ov I the kind of people who usually do notan.w.r Please send one free infonnation about tax year 'ease --. .. To bo aioJoble preparation course. 910EXPERIENCED od.,964-7604.Ask for Bob.9/3 anytime after Labor Day...........Cal I I II Del Wee or Long Term Stay Styling Center For Public 2tchg BARTENDER wanted 475-l201.ltchg 9/3 Name Certified Nursing AMI. Precision Styling For atBobby's II CPA Trained Staff Men A Women Hideaway. 468-1641 or Address 24 Hr. SupMvWon Hot Meal Perm'. Hair Color 468-9442. Itchg 9/3 SECRETARIAL HELPs Must hove experience. ACREAGELAND Cty State_Zip I Also computer experience: SU EL's helpful. Send resume to P.O. Drawer FOR SALE 3 pkoverlooking .. hoe lot L J A. Stork Fl 32091. 9/2 2tchg 9/10 Ashley Lak*. Assun.w>blemasgog. _----sea--r----t Retirement Home & Hairstyling CenterAll HAIRSTYLIST NEEDED Florida license .. CaM 4737640weskenas. --.go or Under One Hoof and experience required. Call Alan at 2tpd 9/3-9/IO Hairplone, 964-4645. Itchg 9/3 Ad. 325 SUE LOTT WALKER Pie tI04I4 -Zet1D Bruce Pollock M.D. Hampton, PINESQUALITY TIFFIN ft OWENS. INC. , Lie. Real Estate Broker LIVING Board Certified Family Physicianis 964-5045 SR 121 Lake Butler 0 0 5JAND (904) 496-2368 LET US 12 & 3 Bedroom Homes C ALL FREE ESTIMATES RENT ANEf MANAGE Near Hospitals.Schools & Stale TYfa of ;. 374-1443 or home: 485-1556)I RE wigs YOUR RESIDENTIAL Facilities Preference given to Long Term ROOfiNG LICENSE KCOOS-O7O7 INSURED BONDED OR COMMERCIAL Rentals Consult OffICe. tin 23 PROPERTIES Cable TV Kids Ptaygwund Ba Moo Court Pod Pwml RdPrivet is pleased David Lawson Paint aih0: p Laundromat Fug Tune MeX. d4 ,,1 to announce - -- - Insurance Collision Work Free .mates 5Elixson additional office Wood Products Inc. CR 229 NW 28th St. 964.6133 .... hours .- Cypress Mulch and Pine BarkYou appointment - FOR SALE \. Pick-up or w. Deliver i r'I Tuesday SaturdaymomlngsOur evenings Fill Dirt. Top Soil We Also Have F . '" VJBtT fc, Large or Small Loads of Limerock Red Heart Cypress Lumber i 1 Lt \\91 Tractor Work Backhoe Bulldozer.: 964-6649 964-6182 96458239646095 office Is located behind -- f-o I __ WHOLE HOUSE SPECIALS ......; PINE FOREST APARTMENTS Lake Butler Hospital PROFESSIONAL 4 SERVICES OFFERED BRS IDM'ellty ', .t end 3 M Apts. Now Available Hand Surgery Center t t BR from $1$0-$274 plug utUltI .3 M from S2OO-$ C12 850 East Main St.. Lake Butler ' Work. ....Low PrIcee 1491 a 'U) ........ .. .. Scotchgard Avollebl Central) heat'alr..d appliance furnished Discount !o Mileo..se C are Free Advice I 1530 Vtest Madison St.or call M4-4312 Can 496-OO92 for an appointment Call 964-4991 .-... I Monday-Friday..rn.to S p.rn. Equal Hov.l.g Opportunity j Blue Cross/Blue Shield PPC Provider -y- :-- a.M a-:::= kyrSpiDA. C RPJTCLE'ANING: &. DYE CO._ . .- . - u . ... If '( J )' . Page 10 SECTION September 3. 198'1 -- 1 Starke Union County. . . . -------------- . - - - - FOR SALE FOR SALE MOBILE HOMES NOTICE COMMERCIAL PROPERTY INSURANCEMAINES FOR SALE TRUCK TAILGATI for 1986 C-10, RENT/LEASE Chevy J!* .. MUSICAL INSTRUMENTS At Iowa. CLASSIFIED ADVERTISING should be ob- INSURANCE AOINCYl like new, fits wide lloetilde body. No $14.99 per month. Call 964-6946. tfn milled to th* Union County Times of. Main Street, lake Butler 496-3t7. moulding. $80. Call 964.6133 anytime. 1911 LIBERTY 14d21 reconditioned front OFFICI AND WAREHOUSE SPACE 4/10 Its Insurance Service. GRAPES-U-PICKi Grlfllt loop. 964.5678.We flee In writing and paid In advance Complete Itod 93CRAPES kitchen. 2 BR. I bath $2.500 equity and located In Union County Time pick by request. 8/20 3tpd 9/3 unless credit I.I already establishedwith U-Plcki dally 7 to 7p.m. assume S2.00O balance U-Move-lt. Call for Information. ALICIA HAY new hay $25. Delivery Open a.m. this office. building. MOBILE HOMES Vineyard. Florahom on Coral Mutt all 782.3861. TFm| 4962261. tfn. Lilly available. All hay In barn. 7 mile West THI TIMES STAFF CANNOT Bl HELD NEW ft USED MOBILE HOMES. Call Roy FOR SALE 6592121. 8/20 Farm Rood 6tchg of Stork on Rd. 16 Jimmy Catkin. RESPONSIBLE! FOR MISTAKES IN Well ASW Mobile Home, 964-6407 9/24 at HELP WANTED 9648356. 8/27 TFchg CLASSIFIEDS WHEN AD IS TAKEN OVER ALICIA HAYi Fresh cut, $25 a roll. All or 964 6408. 8/>4 tfnrw LIMEROCK, FILL SAND, TOP SOIL THI TELEPHONE. I2'x 61' MOBILE HOMI Two bedroom. 1 mile from Starke 24 X 60 DOUBLEWIDE, all set In Olin'sSubdivision. under barn. 7 hay on up Cloifid deadline I I. TUESDAY. Mutt and air. 782-3172 Allen Taylor, Lawtey. 8/27 1/2 bath central heat Hwy. 16 toward prison. 964.6167 or Ready to move Into. sas FOOD STORE In lake Butler I I. TFchg NOON prior to Thursday publication. tee to appreciate. 6000. Call Call 782.3727.6/4tfn $13,800. Financing available. now accepting application for PIANO FOR SALE assume small monthly Minimum charge I I. 15 word for$3.50. 4960071. tfn/chg. 3/19 payment on modern style, piano. like 964.5606,6/1, I tlnchg then 15 cent for each word thereafter. Manager Position. Experience a must. 111 MOBILE HOMI large llvlngroom HOMES 2 DOUBLEWIDE HERO'S Financing Company benefit. Salary based on ex- new condition. Con b..n locally. and kitchen.bedroom 1 bath,624 sq. available Call 1.2720625 collect tfn perelnce plus bonus Send Return or Pivot call. Manager. 1-904-783.9054. FOR SALE ft. Forest Park Apportment, across 2 USED DOUBLEWIDES Low payments.Low HOMES apply at S8S office 2200 E. Duval 4963765. 8/27 910CALTRONICSI from hospital 3tpd down Call 1-2720650 Street lake City Fl. 32055. tfn/chg. located next to Trailer 2 BR. I BA. with 2-car garage Perfect for payment. FOR SALE 6/4 8/27-2tchrg-9/3 collect. tin Sales 301 964.8212. Reconditioned retired distanceto 14.70 DEROSI mobile home, 3 on South couple. Easy walking PART-TIME im 1970 MOBILE HOME for tote: 2700. GAS ATTENDANTS EXPERIENCED color TVs darling at $99.95 to new hopping center. 29999. Call bedroom, 2 bath all electric central $164.95 both portables and consoles.R.palr 964.5606.30. tin 4311050.' 8/70 4tchg 9/10 GOVERNMENT HOMES FROM $1 (U DELI COOKS now taking application a/c and heat $14,200. Call 4962098. RENTALS AVAILABLE 2/1, fresh paint *, also experienced tire work done at reasonable rate. PRICE REDUCED FOR QUICK SALE 3 BR, 2 repair). Delinquent raw property. and 9/3.4tpd-9/24 reduced $275. repairer oil changer.4.pply at office and In town to 9/3 4lchg 9/24 BA brick veneer home with fireplaceand carpet. : Repossessions. Call 1(805)687-6000( ) of SEVERAL TWO BEDROOM mobile homes Browns Rood121A18 3/1 Lake reduced to $450 : Inc., State CB FOR SALE! Bat unit, Pretldent 240 garage on 5 acre Beautiful on Crosby Ext. GH-II36. for current repo list. for tale or rent. Also lot for ole.Hale Phone 4/2 five like home, close to Worthington Spring channel (with Bide bonds) with new home. United Realty of Starke. new 8/27 8tpd. 9/15 and Associates 4963939.. tfnchrg 9/3 schools. $450. Tif 496.2161tfnchrg.9/3 neighborhood antenna coaxial and tupply. 964-8447. or evenings 4733627. NOW great $250 DOWN MAKES YOU OWNER power fin A Owen. Inc., Lie. Real Estate LAKE BUTLER Reduced for quick sale. 3 CAREER OPPORTUNITY for sewing Balance like Owner finance Tryus. Priced $59,500.7/2 rent. to **ll. 964.8651.9/3 2tchg 9/10 tlnchg . FRAMING TOOLS AIR CUNSi 964.8762 FOR SALE BY OWNER 2 BR 1 BA frame. Broker. 9645065. Itchg 9/3 BR. 2 BA CH&A, Large lot only$41,500 machine operator Offer 2 weeks paid Call 496-3719. l Itpd. 9/3 FURNISHED APARTMENT 1 BR, adult vacation Insurance plan, 3 paid I $38,000. Mathews Realty, 964-4469. anytime Itchg 9/3 On large lot. St. Clair St. Call 9646870. . and , only clean and quiet. Houck Apartment 2/Stfn holiday profit sharing Experiencehelpful RENTCO'S PIANO FOR SALE 1912 uttrefinlthed 8/l34tchg9/3 FOR Upright | *. 830 N. Temple Ave., Storke. but not necessary. We will In perfect shape. Dual COUNTRY CLUB AREA brick home 3 BR, 9/3 train. Apply In person lake Butler Ap Itchg keyboard Kimball organ with auto 2 bath, den fireplace garage CH/A. TWO BEDROOM mobile home clean parel. tfn-8/13 CHECK US OUTI Clean rental ; rhythm. Yamaha electronic keyboardwith $$61.900.964.8809. 2tchg 9/3 LAND FOR SALE furnished, In 9648810. BULLDOZER OPERATORS tome experlenc - . city. home schedule.PINES many extra 964.5"97. Itpd 9/3 LAKE BUTLER-REDUCED FOR QUICK no pets. tailored to your pay YORK WEIGHTS 350 Ibt. of cast Iron SALE 4 BR, l'/i bath, ranch 33000. Itpd 93RENTALS necessary. Call 4962098.' SRI21. lust south of SRI00 In AVAILABLE $ISO month 1-J-i ACRE LOTS OR LARGER New River 9/3-4tpd-9/24 Lake : per Butler. Call 4962366. tfn/chg. bench Appraised at $ I.2OO. 820 S.E. 6th weighted, heavy duty w/tquat and up. Call Susan F. Faulkner Broker. Plantation on SR-100 Pine Tree Estate EXCELLENT INCOME taking short phone 5/21 rack. Preacher curl bench attachment, Avenue. Call 396-1166. 8/27 2tchg 9/3 Owner at 964 5069 or 964.4048 TF on SR-18 near WS, Pine Tree Estates on messages at home. For information OFFICI AND WAREHOUSE SPACE \ adjustable/ back and trap for lit *. MOVING SALE Moving-mutt tell 4 BR 2 up C A C MINI STORAGE Hwy 301 South US-301 near Starke Low down pay call 1(504)649.7922( ) Ext. 8401-A. Itpd. located In Union County Time Building Extras, curl bar 2 straight bar, 2-11 lb. bath big kitchen all on 1 1/4 acres 9/3 964 8848 61 11 tfnchg ment, owner financing. Hole and at 150 West Main. Call 496-2261 for dum bell, 2.10 Ib. dumb bell and 2 shade tree, lenced-in pool. ON 301 Contact Ron Denmark Associates 496-3939' 9/3 OFFICE tfnchrg more Information. tfn t dumb bell bar. Bench I I. In excellent Assumable mtg. 9%, Appraited at at 964.5516. 6/25 tin I CLEANEST HOMES IN TOWN! furnished . Nicely condition. $275 cath. Reason for tale I Is $68,000. now $62.000. 964.8239 after 8 JUST OFF HWY 121. Approximately 2 HOUSE IN TOWN FOR RENT: like new FOR RENT all electric, central heat and lack ol space. 96..4037 during day p.m. Itchg 93GOVERNMENT completely remodeled, 2 BR Ig. kissChen act**. 4963814.. 8/13 4tchg 9/3 air, private paved road laundry and and 964-4480 eve alter 6 Keep HOMES from $1.00 (U r trying. TFo| p.m. Repair). Foreclosures repot, tax delinquent living room tile both family 1200 Sq. Ft. Bldg. park playground. Near schools, hotp., BY OWNER 1100 It. building excellent Now telling room patio w awning garage cur date facilities. PINES SR-121 east lake tq. propertiet. Ideal for your Nice REPAIRSSALESANTENNA Repair Shop business location. call tain. ceiling fans throughout. Butler. Call 4962366. Two childrenmax. Days Call 1-315-736-7375 Ext. H-FL-53 area. Mutt to appreciate. 1 child monthAt .. and chg/tfn 5/21 yard. see $200 no pets 964-7024 eve 485-1316.' 9/3 2tchg for current list. 24 hri. 9/3 3tpd 9/17 per maximum, $350 month plus BUSINESS OR OFFICI SPACE available per and sate also on 9/10 THREE BEDROOM 2 bath Bessent Rd. TOWERS repair deposit. 964.6714. Tom Parker. Itpd 9/3 Rear of Main Street LB, phone 4960077.tfn.8/6 and Call Don ABOVEGROUND POOL for tale: $250. brick home with large attractive yard. satellite repair service. 14 FT. WIDE MOBILE HOME 2 BR, unfurnished Also dryer $75. 4962980.' Itpd 9/3 Central heat and air. City gas screened Wilkerson at 496.2282 for free Mosley Tire Co. in Waldo. CHI A. stove, APPLIANCES large sire gas stave and porch large double garage. refrigerator washer/dryer hookup.No estimate. B/27-3tchrg-9/10/ On US 301 South N0 2-door $185 will all Py 704 refrigerator. or 964.6808.Itpd 9/3 $200 month, first, lost and eparate.. 9645684.. 9/3 3tlo 9/17 BROOKLYN LAKE HOME for ale by pet* per See Lynn atLynn's 4691509.' 8/27 $100 deposit. FURNITURE 2 living room eti, 3 piece owner. House with 131 ft. good water security 9/3 SEPTIC TANK SERVICE Body Shopor with love seat blue crushed velvet. front. Owner will finance with substantial 2tchg FOUR BEDROOM 2 bath house, central G Two-piece sofa. and chair. Both sets down. By Appt. lax 786-9189. Itpd heat and air Appliance furnished. BRINCE JONES AND O.D. REWIS SEPTIC call McDougall like n.w, 964-5437. 'Itpd 9/3 FOR SALE BY OWNER 3 BR? 2 bath, 371.6316 after 5 p.m. or 3778500. ext. TANK SERVICE Septic tank, drain VCR: Sear Roebuck brand good work. block house in Saratoga Heights. Central 2679 from 8 to 4.15 p.m. Itchq 9/3 fields, lift station, light poles and 1-904-786-89891 Ing order. Record, ploy bock and heat and air. 9647963. Itpd 9/3 ______ .__ wells. (Package Deal). Call 275.2268 or built-in, tuner $100 964-4479.. Itpd 9/3 LARGE 2-STORY HOUSE cottage and 275.2197.9/3 13tpd. 1126LOSTFOUND .. . SEVERAL ITEMS: 1978 Audi, good body? mobile home on opprox. one acre HOMES FOR SALE ------ -- engine needs work make offer. within Starke city limits located at intersection - May tog portable dishwasher $125; GE of Hwy. 100 and South Water EQUITY BUY: 2 BR house LAKE BUTLER APARTMENTSNow 5 cu.lt. freezer $100; Call St. Cottage and mobile home currentlyrented. good credit r.qur! .d, 964. /87 after 5 p.m. $60.000. 9645139. 9/3 2tpd 9/10 downtown. taking applications for 1-2-3-4 bedroom units. These all- .. 2-STORY APARTMENT LOST SMALL MALE BEAGLE child'* pet. electric units are spacious with lots of closet space and all have HOUSE: Equity or other. $400 lost 2 miles out Providence Road wall-to-wall carpeting draperies and kitchen appliances. Onsite - Ernest Peacock' home. (SR-238)) near GRAPES U-Pick monthly income downtown. Reward for Info or recovery. Hugh laundry facilities. Rental assistance available for qualified e3 BEDROOM, 1'/2 bath Roberts 496.3680 or 4962991.. applicants. Longneckers Farm 8/27-2tire-9/3 For application and Information CH/A 1 acre off SR 16. CR 1469 Please tee us at Gr: Earleton, Fl. Lake Santa Fe e3 BEDROOM V/t bath 1005 SW 6th Street mobile home 1 acre off SR CARS/TRUCKS Lake Butler, FL 32054 e.uareo ..s .15, .cash .or will hold more, Or Call 496-3141 ear-eexe, , I Monday-Thursday Farm 468-2483 tgage. 179 CHEVY 4 WO PICKUP short wheelbase 7:30tolp.m. Home 475-1151 AT PS, PB. sliding bock glass - Friday-Saturday 964.4990 AM/FM stereo white spokes, $2.000 .i I 7:30 to 6 p.m. Home 473-2702 -------...... .....- call 8/20-3tchrg-9/3 496-3118. after 5 p.m. Opening Late September 1986 FORD PICKUP 23.000 miles. Take up I payment 4963253. tfnchg-B/27 Forest Park Apartments --- . CLEAN Below GAGNONReBuilders CLEAN CLEAN _ RobertsReal wholesale. 1983 Cadillac Sedan Attractive 1&2 BR/1 B Apts., range, % * HELP WANTED Deville. One owner. 44,000. mile Estate Welder 'Maintenance White with burgundy velour Interior I refrigerator, carpet, cent heat & air, ; .: ;, Person Bulldozer Work 7900. Call 4962600.' tfn/chg 9/3 patio and laundry. Rents from $180. -ice; 986 N. Temple Ave Starke FL 32091 Must B.experienced Culverts InstalledFill $220. min. 775 NE 1st St. Lake Butler , . Dirt & Top Soil Coed Excellent Benefit ((904)) 964-6262 Pay For information/application: Apply 9645414If I FOR SALE inc. Griffin lndu trl*, Tropical Property Management, No Answer964.8O10 1021 NW 40th Dr. Gainesville Fl 32605 Hwy.221 Hampton.9 a.m.to 4 p.m. 28 ACRE FARM STORAGE HOUSES Need extra storage ((904)372-8327 E.H.O. Comfortable 2BR Home space? We have 5x10 and 10x10 mini warehouses. Hole and Associates w/fireplace, CH/A, Barn & I 496-3939. tfnchrg-8/27 Outbuildings, fenced & cross I fenced 10 acres in KANE CYCLE REPAIR producing Pecan trees CHAMBLH'S r CommercialBuilding t e Parts AccessoriesUS Cycle Repair balance in improved pasture. Excellent Location; 4 miles Train to be aa.ri I MOBILE HOMETRANSPORT 301 N. Starke 964-5805 from Starke. in Starke MT90-16 MAXON I I ' 2BR.1BA.CH&A Block 1725 sq. ft. $49.50 Full Face Helmets Home In Town. 36000.00 MOYMO $39.95 i I i THROUGHOUT Bungie Nets OPEN: TUES-SAT. SOUTHEAST 9648629after la.iiy Iuii.GmuperbhmL f 5 Acres of Land on ForsythRd. Train as live+Irilnr eomputere.11am COMPUTE $3.99 ea. Snail Approved 15 VRS. EXPERIENCE PRICED TO SELL! 6:30 pm ,study.nd rsldenl lnining.Finencisl TEAR DOWN BATTERIES Full Face Helmets add rv.llrbia Jubplacemrnl.alaanca ' Nsliunslhesdqu.nxrsIJShthause SETUP Bungle Cords 12N12A4A1 12N143A I Point,FL .SMALL BUKS $ .DO .99 1371.12121 $ ea. $26.95 $29.95 t n I A.C.T. Travel School .DOZER WORK Alt repairs on eyelet 4 ATV Durrance Pump & SupplyU.S. ACCREDITED MEMBER NJ4.B.C. INSURED I-- Foam Grips Flat Shields Oil Filters 301 North, 864 N. Temple Ave.. Starke aI :1/ 1/ $2.95 parSat $2.SOea. $1.95 Tune-Ups I *Pumps *Plumbing! *Well Drilling i." /A.: ''TT: : : 'I T : -. MacClean Water Conditioners r ,f2; hmI' : - 1 ' ; 1 \y ; 964.7061-- : i : : , For Sale or Rent .. : .. ..- mm mimimEWEOT : .New Home .Window . Room Addition .Palatine Saturday September 12 lOAM on site ADVICE .Carport .New Roof System ro ( Real Estate Sells at 11:30: AM ) I Ovl---ALL---,OFJYOJR-- --]] Stone'Cut work ,Va41SldQDIIDINII * I 3 Bedroom Home Furnishings and Equipment 445 West Pratt St. Starke. FL NEEDS Call Today! THE COLLECTORS LIQUIDATION & CONSOLIDATIONThis 4-6 WfTFqtfufFf.iF.; NEWLY REMODELED lovely estate type home rests comfortably on a full 1/2 , acre of prime real estate In the heart of Starke.The lot Is 10CT x ,c , HOMES BEAUTIFUL 20(]'. 1ia There are 1446 sq. ft. of living area. Including 3 bedrooms. 1 Of NORTH FLORIDA MLMLLL .a A L MMa central heat &: air. 1 115 I. Call, 51.... 964-6766 / 1/2 baths living dining&: family rooms i car garage and twin size carport. Personal Property To Be Sold DEALERS AND PUBLIC WELCOME Microwave Oven*drier; TV. Sob*: UmeM.Whirlpool MbM*drjrw.Osk H tdi.OMEnM STARKE HOUSING CENTER >"h Chins Dlnln, M for 4 2 m Bedrena Fttmlasre. IOC.of Chain.Tsbl S w . Wood UUM. Electric: Maw. 20 Bootees.Ump. Hutch w/Ml/tcr. Pimm "This Weeks Special"24x60 3BR/2BA Items Too Numerous to Wet $500 down $216. mo TERMS oo Pnoral Properly Cub plus 10* kvjm pnrntom. Tame ea net I MUU: 7 5000. oVjxxIt certified had dry of section _Inl la :JO eiy*. Flnincta. : Xuunublem '85. 14x60 $300. down $166. mo. no hwvy dosing COM. 2BR Singlewide $300. down $136. mo. .' DIRECTIONS FROM JACKSONVILLE Oo wean on 1-10.1hcn south oo HWY 301 ir 24x60 3BR/2BA Doublewide $500. down $216. mo. Slake, go west on Putt Su to 445 W. Pratt (2nd ham oa right) . - I Walnut Street ';:1" e Jttrtas. I J:: Big Selection ol Reconditioned Mobile HomesAll p If ;. MECCA:, : a : Mobile Homes Include:Delivery Sel-Up.Tax.Title.Home Owner kwuranoe i from post office-Starts.I t across u UQ'pe, t& I, ''H 1t ; ',!tp.. Located on US 3011 Mile S. of Starke ,ti X'" '73 '! / 35, 'qt ,f .a'p 4,2: '1 : 1l1: : 964-4174 , _ _ I fOR RENT bv the night' week or month. . - d h -- L y ".. ,. _. ..-, '. .., ." .. ".'[1. PJ" ". 'J' .. "''"""..1"I ." ,,.' .", .. l. "" "' ". .. ...... ,I V II I x II I ,. I ** tI t/,"..( Four Local FFA'ers Earn Awards j by Buster Rahn "We are stressing the Importance' outstanding camper in the of safety both on and off the farm," hunter/firearms area. BCT Staff Four Writer from Bradford said Kevin Morgan, camp directorand I James Gaskins, president of the young men FFBF farmer and Bradford Farm Bureau young program County says County, Chet Norman, 17, David ! director. I activities like this are one of the/ Gaskins 18, Paul Gaskins 15, and Farm bureau employees and : special sponsored by the Jared Brown 15 attended the an- per- programs ,; , sonnel from various fire and law en- group,and that"In some way,every nual Florida Farm Bureau Federa- forcement agencies also made'' day, Farm Bureau is working for Youth at tion Safety Camp Camp " aid fire safety presentations first , on you. in which the Ocala recently, impor- wildlife identification and how Chet Norman, Lawtey, is the son tance of safety at work and play was, ' Farm Bureau works. of Mr. and Mrs. Gerald Norman. the central theme. The Alachua County Sheriff's David and Paul Gaskins are the The Bradford young men were, Department K-9 unit put on a sons of Mr. and Mrs. Lane Gaskins, among 92 high school age youths: demonstration during the camp, of Lawtey. from across the state who attended; showing how dogs are used In police Jared Brown Is the son of Mr. and i classes and demonstrations designed - work. Mrs. W.G. Brown, who live near to make them more safety con- the Melrose. _ Jared ,Brown was selected as , scious.Programs covered three ma- a jor safety areas: farm machinery, IA I --- : II .hunter/firearms: and water safety. j t"" ,,.: ._' i I f : "' "l t I See ! ; ." ._ ''': Good Experience... I VernonReddish Four young men from Bradford County attended Gaskins, Paul Gaskins and Jared Brown. More than 70 million deck 1 Camp Ocala sponsored by the Farm Bureau. "Safety at work and play,"was the central theme of of cards are sold each year They.areA from left to right Chet !'Norman! David week. In the U.S. .- - I New Law Aimed At Collecting Late PaymentsA i i!New For or Your Used r A Wr new law aimed at collecting that delinquent support payments 2a) Notice to the obligor states 4) Amount due includes the delin- I i Auto Needs ' delinquent child or wife support become a judgement by operation of that failure to pay the amount of the quency, amounts due thereafter e'r L 7 ) payments went into effect July and law.As a result of this year's legislation delinquency plus all other amounts prior to satisfaction, and costs of filing r * authorizes that a lien be placed on unpaid support installmentsdue which become due thereafter with and recording. 1 1I any property the obligated payee after July 1 become a final judg- costs and a $5 fee, shall become a 5) Local depositories are requiredto - might own. ment after notice to the obligor and final judgment beginning 30 days issue a payoff statement I ORIAN WELLS'CHEVROLETOLDS The new law may affect as manyas the provided response time is ac- after the date of the delinquency. documenting the total amount due 80 percent of the approximate 560 complished. The new law calls for 3)) Lien is created on real propertywhen with the payment of a $5 fee by any ' persons obligated to pay spousal or for the following of actions upon the above notice requirementsare person. This statement may be U.S, 301 N, Qfi4.7<;nrt child support in Bradford County, delinquency of payments: fulfilled and a certified copy of relied on for up to 30 days from the - according to the county clerk's office 1) Obligor becomes 15 days delin- the support order along with a cer- time it is Issued. - It means if property of the per- quent in making a payment. tified statement by the depository 6) Upon satisfaction of the judge- son owing support payments is sold, 2) Local depository notifies the evidencing the delinquency is ment the depository records the FORE PRICE WISE the lien or judgment will be paid obligor by certified mail, return recorded in the official records of satisfaction upon receipt of the appropriate Sale I from the proceeds.The receipt requested, of amount of the court where the real property is recording: fee. _-P+ "_I Prices recently enacted law requires delinquency. J located_. r Good combine to bring you Thru LOWER PRICES! .Sept. 9Seagram's I Foster ParentsFrom TOWN & COUNTRY F Pag 2 needs a real home,so new laws were VETERINARY CLINIC , How long would a child be in my passed.If . home? a parent refuses or for'some IIWY 100 East Starke 964-6411 ClanjMacGregor Baliley'sIrish It depends. Sometimes its only a reason cannot make the right 7Crown day or two. Usually its from six mon- changes in their households to provide ths to 10 years. a stable home, their child Is en- Cream i What are the child's parents doing sured a permanent home by being Welcomes LTR while they are in foster care? place up for adoption.Isn't * They are working on their pro- William Whitler, DVMto Seesmatt LTR '" 750 blems. With the help of the HRS 1699 counselors, they are attempting to that a drastic step? our staff 40.. fl99 11"Bartles adjust their lives and trying to make It is never done lightly. You must the proper changes required to remember,there must be a compelling - make their homes a healthy place reason for the HRS to take a You arc Cordially Invited to stop by for their children.Are child out of the home, sexual abuse, all children returned to their health reason, ect. The majority of the Clinic and become acquaintedwith I parents? children in the foster care programare our new associate. , No. A few years ago the only op- returned to their parents. tions the foster child had were to Where, can, I get more Informa- return (9 their parents or to remain -- Staff: James E. Pennlngton, DVM Kevin Hawthorne, DVM with their foster parents until they 'tloirCall the Bradford HRS office in Bill Whitler. DVM Receptionist: Carol Sapp Technician: Schenley' were 18. Consequently, hundreds of Starke at 964-8875 or in Lake Butlerat Pam Cromer. Vet. Assoc Joy Mains 8 Gloria Braswell Blue foster care children remained wardsof 496-2417. Leave your name and Vodka Nun I II & Jaymes the state, moving from one foster mailing address. A card will be sent Office Hours By Appointment: 9:00 am12:00 noon Coolers care home to the next. The state of to your telling you the date of the 2:00 pm 50 pm Mon.Tues. Wed. S. Fri. 9:00am-12 noon I Florida realized that every child next training session. Thurs a Sat. 6:00 m-8:00: pm Tues. Eve. 1411 LTR 750 \ ObituariesFrom Pag,7 YOU ARE I 1 INVITEDtrO-A !REIGNING. LIFE jJ 599 399 ,,2"3O1 4 Pak MARRIA9 E$Ell I!J \'Y1J angelist-Teacher, I Lake Butler and Cheryl Jordan of Church with Rev. Ben Bryant and Don Hughes and tislfe f!Kajrel, of Broken I f Jacksonville Beach; mother, Mrs. Rev. James Cowart officiating. I Annie C. Roberts of Lake City; two Burial followed in Crosby Lake Arrow, Oklahoma. Thl$ semlnaMs to be held at LIQUORS & LOUNGEStarke brothers, Willie of Lake Butler and Cemetery. Archie Tanner Funeral LIFE AND P.RAISE MJNISTRIESjn! 'Starke and will 1 mile North of Starke on US 301 DR. (Witty) of Lake City; two Home was in charge of ar- '" "'" OPEN 7 DAYS A WEEK 964-7771} sisters, Mrs. Reva Osteen of/ Providence rangements.Mrs. rj eptemberlj l tt man CdI Qt ., e through PACKAGE PATRICKS PUB & and Mondell Blackwelder of the 20\t e s Winter Haven; and five grand- Edna M. Sauve ServlMJIr atoll( Keystone Heights 7 Days A Week 473-9718 children. Mrs. Edna Maynard Sauve, 74, of :" j ; 100 Yds North Oren 100 on Hwy 21 North' Funeral services were held Starke, died Wednesday, Aug. 26 in : * Jept.Sept.. :30 lt he Wednesday in First Christian Bradford Hospital, following an ex- p Church of Lake Butler with Rev. Art tended illness. 17 )"j i :30 awKael; 7:3ev.. Hughes Peterson officiating. Burial followedin Born May 5, 1913 in Pikeville, Ky., z V \ NOTICE OF REDEMPTION | Mt. Zion Cemetery under the Mrs. Sauve moved to Starke from Sept. 1&i p:30 rrSKarter: ; 7:30pjh.", e '. Hughes direction of Archer Funeral Home of Michigan in 1966. She was a Sept. 19 10:30 amp- Darrel I7: 0P' i. Hughes The Housing Finance Authorityof Lake Butler. homemaker and a member of the ghesRev. Starke Church of Christ. Sept. 20 tf:30 am Jik'lBw..ll Bradford County, Florida !Mrs. Lillian E. RobertsMrs. Survivors include daughter, Mrs. " Lillian Eva Roberts, 69, of Joyce Winstead of Starke; two sons, Hampton, died Wednesday, Aug. 26 George of Maynard, Mich., and Hughes hays authored several books which Single Family Mortgage Revenue Bonds at Alachua General Hospital in James of Williamson, W. Va.; have become best sellers across the nation. He has Series 1980 Gainesville, following an extended brother, Elmer Maynard of Williamson - illness. W.Va.; six grandchildren and ministered at such places as Christ for the Nations N Born y, Mrs.and Roberts raised in lived Dannemore about 35, two greatgrandchildren.Funeral services were. held Aug. Bible Institute, Kenneth Hagin's Tulsa Campmeeting, NOTICE IS HEREBY GIVEN THAT pursuant to years in Somers, Conn., before moving 29 in DeWitt C. Jones Chapel with PTL Club as well as Full Gospel Business Men's Section 3.01b( ) of the Trust Indenture April 1. 1980, to Hampton two years ago. She Minister David Atnip officiating. Fellowships and Conventions. Karrel has authoredthe $75,000.00 principle amount of Bondsare was a retired private duty nurse. Burial followed in Crosby Lake aggregate and a member of the Congregational Cemetery under the direction of book, "The God Kind of Marriage". called for Redemption from the Special Methodist Church in Conn. Jones Funeral Home of Starke. Survivors include four daughters, Redemption Account on October 1 1987 at 100% Mrs. Nancy Sherwin of Hampton, Card of ThanksWe You don't want to miss this "Reigning Life Marriage of the principle amount. Mrs. Sandra Schmitt of Springfield, to each and are deeply grateful Va., Mrs. Susan Dickson of Stafford everyone for their acts of kindness Seminarl"' Come expecting and receive! Springs, Conn., and Mrs. Marlene and thoughtfulness during our time 8.7% due April 1 1997 Bond #292 Roberts of Enfield, Conn.; two sons of sorrow. We greatly appreciate the Frederick of Springfield, Mass., andThomas food; cards, and many visits, but Life and Praise Ministries is located 1 1/2 miles 8.8% Due April 1. 1998 Bond #320 Mrs. Ethel of Payette Enfield,of Conn.Heightsburg; sister,, most of all by the friends prayers and that neighbors.were expressed south of Starke on HWY 301. If you have any 8.9% Due April 1. 1999 Bond #351 N.Y.; 18 grandchildren and 9 great- May God richly bless each of you, questions regarding this seminar or would just like grandchildren.Funeral services were held Aug. dear great friends blessing, even to as us.you have beena more Information please call us at: ((904)) 964-4496 9.125% Due April 1. 2004 #557 568, 646,670 29 at the Chapel of Archie Tanner The(Buddy( Luther Scott Family 10.5% Due April 1 2011 #799, 908 1023, 1152, Funeral Home with Rev. Ray -- - Williams officiating.Mr. -- 1260, 1368, 1469. Eldon SappMr. Registered Bond #R9 Eldon Sapp,68, of Starke,died IN THESE MODERN TIMES. j'I Saturday, Aug. 29 following an ex- tended illness. I Bonds selected for redemption should be submittedfor Born and raised in Starke, Mr. Sapp was employed by the Starke I Making your pre-need funeral ar- payment to 1 st Florida Bank P.O. Box 30013, chief.Fire Department He was a member and of retired Bradford as rangements is more than a convenience fi Tampa FL 33630 ATTN: CORPORATE TRUST Lodge 35 and the First Baptist it is almost a necessity. j OPERATION, (the Paying Agent) with all Church of Starke. He attended Brad- unmatured coupons attached. Interest on the ford County schools. . Survivors Include his wife, Helen Bonds selected for redemption will cease to accrue Why postpone making ar- I I I II Elizabeth Norman Sapp; two sons I Ii from October 1 1987. I , Joe and Rudy, both of Starke; two " funeral? for brothers, Felix and J.C., both of i rangements your I BRADFORD COUNTY HOUSING Starke nine sisters,Freda Norman I for the 77 ; Hazel Call us or come by i iI iI FINANCE AUTHORITYBY Heath, Ruth Reddish, Agnes I Warren, Marie Tllley Louise I plans that are available. 1 : Florida National Bank Trustee Sanderson, and Ella Mae Chastaln, I all of Starke, and Selma Ray of, September 1, 1987 Franklin Tenn., and Margaret . Reyes, of Jacksonville; six grandchildren - and three great JONES FUNERAL HOME Holders of these bonds should provide tax identification grandchildren. I jI numbers to avoid 20%withholding tax and$50.00 penalty fee. Funeral services were conductedMonday I 514 Nona Street Starke 964-6200 Hwy 100 & Cvprasa St. Keystone H tSr- 473-3176 . Aug. 31 at First Baptist .,..-. :ftI r- V ,- """ -- -- --- - - 0 . - l' ,fr'1" , ; of Students Attending SFCC, Library OfferedA - -- - record number of students began tions, the continued growth of the Bradford County is eager to make vide a great variety of services to available to students at the Main essays, and term papers or individual Fall Term classes this past week as Starke Center is seen In comparison the most of this great educational Santa Fe students. The college is Campus In Gainesville, the learning help in algebra and other the Santa Fe Community College with only 600 sets filled in 28 sectionsin opportunity it worked so hard to also placing additional books in the lab offers Individualllzed instructionto .math!: !..classes. Starke Center entered its third yearin the successful premiere Fall get." county library which has expandedits any student who needs help in the beautlfullyu renovated Term of 1983.According McFadden pointed out there are evening hours to open until 8 p.m. math, reading or writing. This historic Bradford County Courthouse to Starke Center Coordinator two major Improvements in services on Monday and 7 p.m. on Thursday. assistance is available not only to Students may come in on their own .- DA Bernie McFadden,"This gram this year. Library The other major improvement at students in college prep courses but or be referred to the lab by instruc represents a stable growth that have been expanded by a contract the SFCC Starke Center is the is especially designed to l help tors. Lab instruction is offered on a shows our sucessful opening was nota with the Bradford County Library establishment of a new lab student In mpilar credit courses one-to-one basis and is free of chargeto With 717 seats ,occupied! ;38 sec flash in the_pan but a sign that whereby the public library will pro. for ....th. .....011.... ..nd_learning...n... who raod B..1...._. tn writing. SFCC students.11NewsiBriefs . : I Two Starke Men George Milton Farmer,18,was arrested dire from a LII Champ conveniencestore. Charged In BurglaryTwo August 26 for two counts of Bradford Woman FHP To Man Union CountyThe burglary and shooting, according to The clerk at the store identifiedthe Returned To PrisonA CheckpointsBradford Florida Patrol Highway Starke men apparently botched Investigator David Aderholt. two men who took cigarettes and will be the getaway phase of a mobile Farmer allegedly was shooting in food from the store without paying Bradford County woman found CountyThe and conducting driver license vehicle checkpoints home burglary August 27. his own trailer home after breaking for the items. City police apprehended guilty of violation of probation Florida Highway Patrol Inspection during the week of 4 Arrested and charged with grand Into a neighboring trailer. Bond was the two on Brownlee Street near August 17 was sentenced nine will be conducting driver license Sept. theft o and burglary while armed set at $6,000 total, he remains in the store. year in the Department of Correc and vehicle inspection check- through Sept. 10 on SR-100, SR-121 SR-231 SR-241 SR-238 , were Henry Edward Wllkes,18 and custody. Anthony Dwayne French, 24, of tions. points during the week of Sept. 4 CR-18 CR-237 CR-229, CR-125, Michael West, 27, both of Starke. Starke was charged with retail theft Velma Jean Covington, who had through Sept. 10 on SR-21,SR-100, CR-231A CR-24A and CR-796A in Investigator David Aderholt on Lucy Lynn Sheehan, 32, was arrested after he removed merchandise from served time for murder in the first SR-230, SR-18, SR-16, CR-18, Union County. his way to the burglary scene in the August 27 on a 1986 capals the store by putting it in his pockets, degree for a 1975 offense, failed to CR-16 CR-21B, CR-225, CR-12S, Griffis Loop area outside of Starke, charging disorderly conduct, according according to Sgt. W. C. Reno. Edwin meet the technical requirements of CR-229, CR-231, CR-227 CR-221. saw two men walking along a to Investigator Aderholt. She Cooper Haywood, 39, Speedville, her probation. She was sentenced by CR-230 and CR-100A In BradfordCounty railroad track and then duck Into was released after a $101.25 surety allegedly took two cartons of Judge Osee Fagan to serve nine . some nearby woods. bond was posted. cigarettes and placed them inside years followed by six months proba- Aderholt said he became his pants, according to Reno, the tion with credit for all time served in suspicious and questioned the men Traffic cigarettes were not located on prison and county jail. WE'U TRADE I when they reappeared.At Kenneth Lee Hill of Starke was arrested Haywood when he was arrested. Lawtey Covington and, Patricia Arthur Jones Carroll, Jr., then of \II\\\,\\\\\\\\\\\\ mobile home Bond set at $500 for each a nearby a man August 29 at 1:39 a.m. for was WE'LL had been defendant released 16. were indicted by a grand jury DEAL?, had reported his gun rack driving while license suspended they were on broken into and a shotgun and a rifle (OWLS), according to Sgt. W. C. their own recognizance. Tom following Gunter.the The robbery incident and took killing place of ALL TIRES MADE IN THE GOOD OLE U.S. of A. were missing. Fingerprints taken at Reno. He was released after a $210 of February 24, Gunter died injuries matched to of the the scene were one surety bond was posted. few later.Covington . a days men Aderholt had question and the was found guilty of Radial XL Multi Mile Whitewall two were arrested. Wilton Butler,65,of Starke was arrested - The missing weapons were foundin Aug. 31 at 6:42 a.m. for Divorces GrantedIn manslaughter in the 1975 murder P1S3 8OR-13 . . . . . . '30.00 the woods. DWLS, according to Trooper W. M. Bradford CountyThe and was sentenced to serve 15 years. P163 80R-13 . . . . . . *30.00 Bond for Wilkes and West, was set Abrams. He was released after a following marriages were P195 73R-14 : . . . . . . '37.00 at custody$5 000. each, they remain in $210 surety bond was posted. dissolved during the month of Man Breaks P205 75R-14 . . . . . . '31.00 Johnson August in Bradford County. P203 73R-13 . . . . . . '42.00 No Injuries Duwayne August 26 for,failure 31, was to appear arrested -- Obie Manuel J. Goad Michael&: Christine Hillard D. Goad.&: Into Apartment, P225 73R-13 . . . . . . 43.00 Crash for arraignment (DWLS), according Deborah A. Hillard. Gets ArrestedA P235 73R-13 . . . . . . '45.00 In Car-Cycle to Deputy Doug York. Bond Mary J. Williams &: Carlton W. Starke man was arrested Saturday 0 ' There were no apparent injuries was set at$101.25,he was released to Williams. night after he was found in an MULTI MILE TRUCK TIRES when a motorcycle was struck by a Alachua County. Helen A. Griffis &: Tracy E. Grif- apartment he had broken into. In ad- GLASS BELTED car August 29 on US-301 north in dition to his arrest, he also receiveda GRAN PRIX RVS Starke. O'Niel Bass, 29 was arrested fls.Harold C.Farnsworth&: Brenda L. head injury. P195-75B14 . . '23.00 31x10.50x15 . '58.00 Maria Coridan Zacarias, 24, of August 26 for failure to appear, Farnsworth. Van Harold Prescott was charged P205-75B14 . . '32.00 31 x 11.50 x 15. . '67.00 Miami was northbound on US-3011n (driving while intoxicated)(DUD, Homer F. Hart, Sr. &: Loretta J. with burglary and assault August 29, P215-75B14 . . '33.00 33x12.50x15 . '78.00 according to Deputy York. Bond was the inside lane when a southbound Hart. according to Sgt. W. C. Reno. ' . . . motorcycle attempted a left turn onto set at $542. He was released on his Stephen L. Crews &: Mittie J. Prescott allegedly had broken the P205-75B15 '31.00 9 x 15 LT. . . '59.00 P225-75B15 . . 35.00 Pratt Street in front of her vehi- own recognizance.Albert Crews. door to gain entrance to the victim's cle, a 1980 Datsun. Danny J. Warren & Paremelia L. apartment and was found on the bed P235-75B15 . . '36.00 '..00 Extra to Balance Tire Driver of the cycle, Michael Ed- C.Jenkins,29,was arrested Warren. when she and a friend arrived home. Special Summer NO HIDDEN COLTS ON DM PAIRS ward Wester. 23,of Union City,Pa., August 27 on a warrant chargingDUI Donald R. Cooper, Jr. &: Allyson Prescott got up from the bed and Front was ejected from the cycle, landingon according to Lt. John Dempsey Jean Cooper. threatened the victim at which time or Rear Front End AlignmentMumnblt..ifNto the Datsun windshield. The He was released on his 'own James A. Harper &: Linda M. the friend grabbed Prescott and g3 MKE '..Iud..Ml.u ...nul..- motorcycle was drug underneath the recognizance. Harper. pushed him away from the victim 4495 lam .p.,. ....rlngsyitiflt. ....... ..... car until the car stopped curbside. Glen Dale Baxley& Roberta Lynn causing him to strike his head on the ... l for most .n Front wltMldrtvt . Two Men ........ poi or Mom. .rI. drum. or rahlctei. and.CtiowtlM......farts..tr.. Damage to the 1980 Suzuki motor- Charged Baxley. door frame. atom, pick burlnm bl..d&dint!rudtnlmail With,.pureh.M 0 . cycle was $600, damage to the Dut- With Retail TheftTwo Brenda K. McKenzie & James E. Bond was set at $10,000, Prescott ....rle....n I trucks.. Ultimo pins,1 .(with coupon) 1 0. sun was $2,500.Recent McKenzie. remains in custody. tra wtinn ranuiret. men were arrested August 30 James L. Langley &: Fleta FRONT END ALIGNMENT W/Purtho...S.IolTI9"We after they allegedly took merchan- Langley. ArrestsIn ... . Color Advice For You 'R.bulidCarbur.tors Bradford County BOBBY'S HIDEAWAY : Call for a personal nu-obllgutlon *Do Tun*.Ups CORBETT'STire Bradford County Jail Is full to Mury Kay Color AwurcncHH con- Complete Front End capacity this week with the first sultation. Career Opportunity Alignment & ServioU.S. weekend of the month (when the NOW OPEN FROM 2PM TIL 2AM : Available. .Steam Clean most arrests of the month are made) o Englnai'IS.OO 301 Temple Ave. Sandra Reddish still a few days away.The following 6 nights a week I 'Turn Brake., arrests were made by local Director-Beauty Consultant 964.6436 , authorities. COCKTAIL HOURS I (904)431.1203) 964-5051 Drum Rotor. r't __ __o_ _. Frederick Revoe Steel, 37, of 2PM-7PM 6 NIGHTS A WEEK Starke was arrested August 28 for ; DRAFT "Michelob" p 500 aggravated assault with a deadly weapon according to Lt. Glen 2 for 1 Drinks FALL VEGETABLEand Moore. Steel allegedly had a .22 caliber revolver during a domestic disturbance. Bond was set at$1,000, during Cocktail Hours Steel was released on his own Fall l ANNUAL PLANTS recognizance. Nice selection of popular .' Life Entertainment Starts 9 Ricky Robert Tyson, 28, of Starke Saint Pierre Band p.m. i I S varieties HERE NOW . was arrested August 29 for violation Wed..Thur Frl. & Sat. Evening C, 4 AND 6 PLANT TRAYS of probation,according to Lt.Moore. Bond was set at $10,000, Tyson re- HWY 301 N. WALDO, FL 468-1641 or 468-9442 fir mains in custody. CYPRESS MULCHplanting . I Helps retain moisture Special Purchase From TREES SHRUBS Looks Good 25 Ib. bag 99 I GARDENS BULBS --- General Motors Saves You STOP FLEASFleas $ BIG BUCKS $ mature from egg to biting adult In MANURE COW 7 to 10 days. It takes 2 or more sprayings to get them all .. .5.5.5 Analysts home town dealer "" N,1,ill weed & odor free t Stop by your today Use FOR 5.33 INDOOR oz. of Lo-Odor CONTROL: ; ,,' won't burnTORCf and register to win ((2)) tickets to the water.Dursban plus 1 oz. of Precor In 1 gal. $ 1 195olb.bag 11m1t 3 bags please Florida/Georgia game. Get Them 999 Both .ONLY All cars listed carry 6 year/60,000 NOW GETUP mile warranty I TOTradeIn $100 RIDER SALE Allowance on a new TORCHvalk '87 Chevy Celebrity 4 dr. St ## 4059 . . 12618.00 t $290 of behind, model V-6. AT. PS. PB. A/C. PW. PL Pwr sts. Loaded WAS 15281. model 20622 '87 Olds Calais Supreme Coupe st4055 . $12.441.00 or Guaranteed to grass catcher Start the 1st or 2.5 lIter AT AC PS PB PW Loaded WAS 13529. ' '87 Olds Cutlass Sierra BRGH st4061 . . 13485.00 FREE w/purchase 56150 2nd pull model # reg. $589.95 3.8 V-6 AT. PS.PB. A/C. PW. PL. P Seats Loaded WAS 16355. 56150 NOWORO. '87 Chevy S-1O Blazer 4x4 ST4056 . . $15,890.00 8HP. 32"cut 489.95other 2.8 V-6. AT PS PB A/C. AM/FM. PW, Loaded WAS $ 18223. \__ '84 Olds 98 Regency St4054 . . 17280.00 THE WAY TO MOW $5o as TORO's 3.8 V-6 AT.AC. PS PB too many options to list WAS $21,008. Dependablecomfortableeasyaffordableno 87 Chevy SS Monte Carlo ST4053 .. 16440.00 money a LOpt h from $299.95 Aero Coupe package. 5.0 V-8 LOADED WAS $18.740 down to qualified buyer 2 yr. limited warranty (limited time sale) & up.RecordNumber . '87 Chevy Caprice Classic Brougham .. . 14540.00 5.0 V-8. AT PS. PB AC. too many options to list WAS $17.186.iiiiiiiIii' I s - OMAN WELLS LOHIDA I -' II PEST ;StarkefGdMWXZ&j 4ONTAOk , I / ;I Chevrolct] -Oldsinobile ; . CNIMN .. ; t1 U.&. 301\ North Starke 964-7500 Gainesville: 372-0103 Jacksonville 2824522I I . Contact Us | Permissions | Preferences | Technical Aspects | Statistics | Internal | Privacy Policy © 2004 - 2011 University of Florida George A. Smathers Libraries.All rights reserved. Acceptable Use, Copyright, and Disclaimer Statement Powered by SobekCM
http://ufdc.ufl.edu/UF00027795/01774
CC-MAIN-2017-43
refinedweb
46,807
68.06
Odoo Help Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps: CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc. send email via new API with additional data Hi, Follow is my code to send email: @api.multi def mailmessage(self): vals ={} domain = [('name','like','EAR Activation Request')] template = self.env['email.template'].search(domain, limit=1) template = template[0] print(template.email_to) template.send_mail(self.id, True) return True My template is getting all the data correctly from model. However, I need to pass a dynamic data to the template before sending email. Be it email_to or ip_address. Can someone guide me how can I pass these two variables on runtime in my python code before send_mail function so the template pick them? Thanks Hi Alex below i am posting the code for new and simple way for doing this task please use self.env.ref instead of self.env['email.template'].search(domain, limit=1) mytemplate_obj = self.env.ref('my_module.my_mail_template', False) here the mytemplate_obj is the object of email.template , it's mean it's a active record . Now You can change/set the field value (email_from,subject,email_to)of this object simply and call the send_mail. Hope this may help you. About This Community Odoo Training Center Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
https://www.odoo.com/forum/help-1/question/send-email-via-new-api-with-additional-data-100896
CC-MAIN-2018-09
refinedweb
240
51.75
A Rookie Guide to Getting Started with Backtesting in Python! 6 min read Every Algorithmic trading rookie starts to wonder what Backtesting is and how it is implemented, yet many people ignore it based on their individual biases. But let me tell you frankly, it is a crucial step in building your algo trading robot. To put it simply, your idea or strategy can be great in your head, but data never lies, and Backtesting is merely getting an indication as to whether your system will likely work or not. To give you another example, think about the time when you have to decide which Mutual Fund or PMS service to invest in; you will always look at 3-Year, 5-Year Returns to arrive at a decision simply because data speaks for itself and "Sab Mutual Funds Sahi Nahi Hai" Let's start Learning the Backtesting framework by creating and backtesting a simple strategy. We will be demonstrating a straightforward strategy to give a notion and introduce the library; the real-world strategy is much more complex. It needs various other factors to be considered, but the article is aimed at beginners. Our sample strategy - Quantity = 100 - Start Cash = 1,00,000 - Commission = 0.2% - Position = Long - Frequency = Daily - Start Date = 1st Oct, 2021 - End Date = 15th Nov, 2021 - Buy Condition: When 21 RSI crosses above 30 and 50 SMA crosses above 100 SMA - Sell Condition: When 21 RSI crosses below 70 While there are various open-source Python backtesting libraries, we have chosen backtrader for this article. Every library has its pros and cons; if you want to check out some more options, we wrote this article a while back; check it out. -> Installing backtrader - pip install backtrader -> Installing Yahoo Finance for Getting Data - pip install yfinance yfinance needs no introduction in the algo-trading world; everyone starts from this library and probably one of the most straightforward libraries to download global stock market data. We will be uploading our data in this example, but we want to let you know that yfinance is also a worthy option. -> Now let's import the Libraries- import backtrader as bt import yfinance as yf from datetime import datetime -> Creating class where we will define our strategy - class firstStrategy(bt.Strategy):) def next(self): if not self.position: if self.rsi > 30 and self.fast_sma > self.slow_sma: # when rsi > 30 and fast_sma cuts slow_sma self.buy(size=100) # buying 100 quantities else: if self.rsi < 70: # when rsi is below 70 line self.sell(size=100) # selling 100 quantities -> Now let's look at each function in Class firstStrategy separately- def __init__(self)) In this Function, we define the required elements for our strategy - self.rsi contains our rsi indicator built on close data, and it's period = 21 days. self.fast_sma - It is the Simple Moving Average indicator with 50 days period. self.slow_sma - It is the Simple Moving Average indicator with 100 days period. self.crossup - It is when 50 days(fast SMA) cross above 100 days(slow SMA). -> Now let's look at the other function in class firstStrategy - def next(self): if not self.position: # BUYING Condition if self.rsi > 30 and self.fast_sma > self.slow_sma: # when rsi > 30 and fast_sma cuts slow_sma self.buy(size=100) # buying 100 quantities of equity else: # SELLING Condition if self.rsi < 70: # when rsi is below 70 line self.sell(size=100) # selling 100 quantities of equity In the above function, we create our strategy from the variable we created in the init function. If we have not taken a position we will buy 100 stocks based on the condition in our strategy and similarly if the position is already taken we will sell 100 stocks the stocks based on the condition provided. -> Now, we have created our strategy for Backtesting. Let's look at other requirements for Backtesting the strategy. -> Variable for our starting cash startcash = 100000 -> Create an instance of cerebro cerebro is the brain of backtrader library. cerebro = bt.Cerebro() # It is the main class in backtrader. To read more about Cerebro, Click here. -> Adding our strategy cerebro.addstrategy(firstStrategy) # adding strategy in Cerebro engine -> Uploading the CSV file containing OHCLV data for backtesting in Google Colab. from google.colab import files uploaded = files.upload() Note 1:- In the above code, we add CSV files from our local machine. Note 2:- You can skip the above code block when running on the local machine. We have the sample data for HDFCBANK.NS which you can download from here if needed. -> Getting data for backtesting our strategy # Get HDFCBANK data from Yahoo Finance. # ----- Use below code to fetch data from Yahoo Finance CSV ------- data = bt.feeds.YahooFinanceCSVData( dataname="HDFCBANK.NS.csv", fromdate=datetime(2020,11,1), todate =datetime(2021,11,1)) Note 3:- The field dataname should be replaced with the data file path if you are running this on the local machine. -> Add the data to Cerebro cerebro.adddata(data) -> Setting the broker commission to 0.2% cerebro.broker.setcommission(commission=0.002) -> Setting our desired cash start cerebro.broker.setcash(startcash) -> Run over everything cerebro.run() -> Get final portfolio Value and pnl and printing them portvalue = cerebro.broker.getvalue() pnl = portvalue - startcash # Printing out the final result print('Final Portfolio Value: ${}'.format(portvalue)) print('P/L: ${}'.format(pnl)) Output -> Note:- The currency in the output above is in USD. We can convert the currency to INR by using appropriate conversion rates. -> There are various strategies, methods to analyze our output. We will discuss them in our upcoming blogs. there.!
https://tradewithpython.com/a-rookie-guide-to-getting-started-with-backtesting-in-python
CC-MAIN-2022-21
refinedweb
933
56.35
CTxMemPool stores valid-according-to-the-current-best-chain transactions that may be included in the next block. More... #include <txmempool.h> CTxMemPool stores valid-according-to-the-current-best-chain transactions that may be included in the next block. Transactions are added when they are seen on the network (or created by the local node), but not all transactions seen are added to the pool. For example, the following new transactions will not be added to the mempool: CTxMemPool::mapTx, and CTxMemPoolEntry bookkeeping: mapTx is a boost::multi_index that sorts the mempool on 5 criteria: Note: the term "descendant" refers to in-mempool transactions that depend on this one, while "ancestor" refers to in-mempool transactions that a given transaction depends on. In order for the feerate sort to remain correct, we must update transactions in the mempool when new descendants arrive. To facilitate this, we track the set of in-mempool direct parents and direct children in mapLinks. Within each CTxMemPoolEntry, we track the size and fees of all descendants. Usually when a new transaction is added to the mempool, it has no in-mempool children (because any such children would be an orphan). So in addUnchecked(), we: When a transaction is removed from the mempool, we must: These happen in UpdateForRemoveFromMempool(). (Note that when removing a transaction along with its descendants, we must calculate that set of transactions to be removed before doing the removal, or else the mempool can be in an inconsistent state where it's impossible to walk the ancestors of a transaction.) In the event of a reorg, the assumption that a newly added tx has no in-mempool children is false. In particular, the mempool is in an inconsistent state while new transactions are being added, because there may be descendant transactions of a tx coming from a disconnected block that are unreachable from just looking at transactions in the mempool (the linking transactions may also be in the disconnected block, waiting to be added). Because of this, there's not much benefit in trying to search for in-mempool children in addUnchecked(). Instead, in the special case of transactions being added from a disconnected block, we require the caller to clean up the state, to account for in-mempool, out-of-block descendants for all the in-block transactions by calling UpdateTransactionsFromBlock(). Note that until this is called, the mempool state is not consistent, and in particular mapLinks may not be correct (and therefore functions like CalculateMemPoolAncestors() and CalculateDescendants() that rely on them to walk the mempool are not generally safe to use). Computational limits: Updating all in-mempool ancestors of a newly added transaction can be slow, if no bound exists on how many in-mempool ancestors there may be. CalculateMemPoolAncestors() takes configurable limits that are designed to prevent these calculations from being too CPU intensive. Definition at line 423 of file txmempool.h. Definition at line 521 of file txmempool.h. Definition at line 482 of file txmempool.h. Definition at line 517 of file txmempool.h. Definition at line 514 of file txmempool.h. Create a new CTxMemPool. Sanity checks will be off by default for performance, because otherwise accepting transactions becomes O(N^2) where N is the number of transactions in the pool. Definition at line 447 of file txmempool.cpp. Definition at line 708 of file txmempool.cpp. Definition at line 464 of file txmempool.cpp. Adds a transaction to the unbroadcast set. Definition at line 746 of file txmempool.h. Definition at line 959 of file txmempool.cpp. Helper function to calculate all in-mempool ancestors of staged_ancestors and apply ancestor and descendant limits (including staged_ancestors thsemselves, entry_size and entry_count). param@[in] entry_size Virtual size to include in the limits. param@[in] entry_count How many entries to include in the limits. param@[in] staged_ancestors Should contain entries in the mempool. param@[out] setAncestors Will be populated with all mempool ancestors. Definition at line 207 of file txmempool.cpp. Definition at line 1184 of file txmempool.cpp. Populate setDescendants with all in-mempool descendants of hash. Assumes that setDescendants includes all in-mempool descendants of anything already in it. Definition at line 565 of file txmempool.cpp. Try to calculate all in-mempool ancestors of entry. (these are all calculated including the tx itself) limitAncestorCount = max number of ancestors limitAncestorSize = max size of ancestors limitDescendantCount = max number of descendants any ancestor can have limitDescendantSize = max size of descendants any ancestor can have errString = populated with error reason if any limits are hit fSearchForParents = whether to search a tx's vin for in-mempool parents, or look up parents from mapLinks. Must be true for entries not in the mempool Definition at line 291 of file txmempool.cpp. Calculate all in-mempool ancestors of a set of transactions not already in the mempool and check ancestor and descendant limits. Heuristics are used to estimate the ancestor and descendant count of all entries if the package were to be added to the mempool. The limits are applied to the union of all package transactions. For example, if the package has 3 transactions and limitAncestorCount = 25, the union of all 3 sets of ancestors (including the transactions themselves) must be <= 22. Definition at line 256 of file txmempool.cpp. Definition at line 721 of file txmempool.cpp. Definition at line 969 of file txmempool.cpp. Definition at line 835 of file txmempool.cpp. Definition at line 1038 of file txmempool.cpp. Definition at line 725 of file txmempool.h. Expire all transaction (and their dependencies) in the mempool older than time. Return the number of removed transactions. Definition at line 1061 of file txmempool.cpp. Definition at line 911 of file txmempool.cpp. Definition at line 735 of file txmempool.h. Guards this internal counter for external reporting. Definition at line 772 of file txmempool.h. Get the transaction in the pool that spends the same prevout. Definition at line 975 of file txmempool.cpp. Returns an iterator to the given hash, if found. Definition at line 981 of file txmempool.cpp. Translate a set of hashes into a set of pool iterators to avoid repeated lookups. Definition at line 988 of file txmempool.cpp. The minimum fee to get into the mempool, which may itself not be enough for larger-sized transactions. The incrementalRelayFee policy variable is used to bound the time it takes the fee rate to go back down all the way to 0. When the feerate would otherwise be half of this, it is set to 0 instead. Definition at line 1109 of file txmempool.cpp. Definition at line 776 of file txmempool.h. Definition at line 866 of file txmempool.cpp. Definition at line 719 of file txmempool.h. Definition at line 713 of file txmempool.h. Calculate the ancestor and descendant count for the given transaction. The counts include the transaction itself. When ancestors is non-zero (ie, the transaction itself is in the mempool), ancestorsize and ancestorfees will also be set to the appropriate values. Definition at line 1206 of file txmempool.cpp. Definition at line 459 of file txmempool.cpp. Returns transactions in unbroadcast set. Definition at line 758 of file txmempool.h. sum of all mempool tx's virtual sizes. Differs from serialized tx size since witness data is discounted. Defined in BIP 141. sum of all mempool tx's fees (NOT modified fee) sum of dynamic memory usage of all the map elements (NOT the maps themselves) minimum fee to get into the pool, decreases exponentially Definition at line 442 of file txmempool.h. Definition at line 446 of file txmempool.h. All tx witness hashes/entries in mapTx, in random order. Track locally submitted transactions to periodically retry initial broadcast. Check that none of this transactions inputs are in the mempool, and thus the tx is not dependent on other mempool transactions to be included in a block. Definition at line 998 of file txmempool.cpp. Definition at line 920 of file txmempool.cpp. Definition at line 897 of file txmempool.cpp. Definition at line 1218 of file txmempool.cpp. Definition at line 453 of file txmempool.cpp. Returns whether a txid is in the unbroadcast set. Definition at line 765 of file txmempool.h. Affect CreateNewBlock prioritisation of transactions. Definition at line 929 of file txmempool.cpp. Definition at line 880 of file txmempool.cpp. Definition at line 659 of file txmempool.cpp. Called when a block is connected. Removes from mempool and updates the miner fee estimator. Definition at line 679 of file txmempool.cpp. Definition at line 619 of file txmempool.cpp. Definition at line 589 of file txmempool.cpp. Remove a set of transactions from the mempool. If a transaction is in this set, then all in-mempool descendants must also be in the set, unless this transaction is being removed for being in a block. Set updateDescendants to true when removing a tx that was in a block, so that any in-mempool descendants have their ancestor state updated. Definition at line 1053 of file txmempool.cpp. Removes a transaction from the unbroadcast set. Definition at line 1044 of file txmempool.cpp. Before calling removeUnchecked for a given transaction, UpdateForRemoveFromMempool must be called on the entire (dependent) set of transactions being removed at the same time. We use each CTxMemPoolEntry's setMemPoolParents in order to walk ancestors of a given transaction that is removed, so we can't remove intermediate transactions in a chain before we've updated all the state for the removal. Definition at line 521 of file txmempool.cpp. Sets the current loaded state. Definition at line 1224 of file txmempool.cpp. Definition at line 707 of file txmempool.h. Definition at line 1133 of file txmempool.cpp. Remove transactions from the mempool until its dynamic size is <= sizelimit. pvNoSpendsRemaining, if set, will be populated with the list of outpoints which are not in mempool which no longer have any spends in this mempool. Definition at line 1141 of file txmempool.cpp. Update ancestors of hash to add/remove it as a descendant transaction. Definition at line 330 of file txmempool.cpp. Definition at line 1087 of file txmempool.cpp. Sever link between specified transaction and direct children. Definition at line 359 of file txmempool.cpp. Set ancestor state for an entry. Definition at line 345 of file txmempool.cpp. UpdateForDescendants is used by UpdateTransactionsFromBlock to update the descendants for a single transaction that has been added to the mempool but may have child transactions in the mempool, eg during a chain reorg. setExclude is the set of descendant transactions in the mempool that must not be accounted for (because any descendants in setExclude were added to the mempool after the transaction being updated and hence their state is already reflected in the parent state). cachedDescendants will be updated with the descendants of the transaction being updated, so that future invocations don't need to walk the same transaction again, if encountered in another transaction chain. Definition at line 115 of file txmempool.cpp. For each transaction being removed, update ancestors and any direct children. If updateDescendants is true, then also update in-mempool descendants' ancestor state. Definition at line 367 of file txmempool.cpp. Definition at line 1098 of file txmempool.cpp. When adding transactions from a disconnected block back to the mempool, new mempool entries may have children in the mempool (which is generally not the case when otherwise adding transactions). UpdateTransactionsFromBlock() will find child transactions and update the descendant state for each transaction in vHashesToUpdate (excluding any child transactions present in vHashesToUpdate, which are already accounted for). Note: vHashesToUpdate should be the set of transactions from the disconnected block that have been accepted back into the mempool. Definition at line 162 of file txmempool.cpp. visited marks a CTxMemPoolEntry as having been traversed during the lifetime of the most recently created Epoch::Guard and returns false if we are the first visitor, true otherwise. An Epoch::Guard must be held when visited is called or an assert will be triggered. If sanity-checking is turned on, check makes sure the pool is consistent (does not contain two transactions that spend the same inputs, all inputs are in the mapNextTx array). If sanity-checking is turned off, check does nothing. Definition at line 582 of file txmempool.h. This mutex needs to be locked when accessing mapTx or other members that are guarded by it. By design, it is guaranteed that: cs_mainand mempool.cswill give a view of mempool that is consistent with current chain tip ( ActiveChain()and CoinsTip()) and is fully populated. Fully populated means that if the current active chain is missing transactions that were present in a previously active chain, all the missing transactions will have been re-added to the mempool and should be present if they meet size and consistency constraints. mempool.cswithout cs_mainwill give a view of a mempool consistent with some chain that was active since cs_mainwas last locked, and that is fully populated as described above. It is ok for code that only needs to query or remove transactions from the mempool to lock just mempool.cswithout cs_main. To provide these guarantees, it is necessary to lock both cs_main and mempool.cs whenever adding transactions to the mempool and whenever changing the chain tip. It's necessary to keep both mutexes locked until the mempool is consistent with the new chain tip and fully populated. Definition at line 511 of file txmempool.h. Definition at line 582 of file txmempool.h. Definition at line 583 of file txmempool.h. Definition at line 834 of file txmempool.h. Value n means that 1 times in n we check. Definition at line 426 of file txmempool.h. Definition at line 827 of file txmempool.h. Definition at line 428 of file txmempool.h. Used by getblocktemplate to trigger CreateNewBlock() invocation. Definition at line 427 of file txmempool.h. Definition at line 450 of file txmempool.h.
https://bitcoindoxygen.art/Core-master/class_c_tx_mem_pool.html
CC-MAIN-2021-49
refinedweb
2,335
57.98
/* Code dealing with dummy stack frames, for GDB, the GNU debugger. Copyright 2002, (DUMMY_FRAME_H) #define DUMMY_FRAME_H 1 struct frame_info; struct regcache; struct frame_unwind; struct frame_id; /* Push the information needed to identify, and unwind from, a dummy frame onto the dummy frame stack. */ /* NOTE: cagney/2004-08-02: This interface will eventually need to be parameterized with the caller's thread - that will allow per-thread dummy-frame stacks and, hence, per-thread inferior function calls. */ /* NOTE: cagney/2004-08-02: In the case of ABIs using push_dummy_code containing more than one instruction, this interface many need to be expanded so that it knowns the lower/upper extent of the dummy frame's code. */ extern void dummy_frame_push (struct regcache *regcache, const struct frame_id *dummy_id); /* If the PC falls in a dummy frame, return a dummy frame unwinder. */ extern const struct frame_unwind *const dummy_frame_unwind; #endif /* !defined (DUMMY_FRAME_H) */
http://opensource.apple.com/source/gdb/gdb-1344/src/gdb/dummy-frame.h
CC-MAIN-2013-48
refinedweb
145
57.4
What's Your Function? Pages: 1, 2 So before we play around with this code that we just read through, let's give it a whirl. Up at the top of the window, in the toolbar, there is an icon that looks like this if you're running Project Builder: And like this if you're running Xcode: This is the "Build and Run" button, which will compile the project that you're working on (make the code into language the computer can execute), and then run the program you made. If you click this now, you will build and run the code contained in this project, which is just the main function we've examined. Do this now, and watch the computer execute the code, printing the message into the window (in Xcode, you have to go to the Debug menu and select Show Run Log to see the message). If you get an error, make sure that everything is copied exactly. main So that's what you can do without writing a single line of code. But we already have a few lines of code sitting around from our last lesson, so let's pull those out and give them a whirl. Delete the comment and the call to printf, and paste in our code. Now your main.c file should contain this: printf #include <stdio.h> int main (int argc, const char * argv[]) { /); return 0; } And again, click the Build and Run button (remember that if you're in Xcode, you have to select Show Run Log from the Debug menu). Now, instead of "Hello, World!", what prints is "My favorite number is 8!" And you made it print that. But what else can you make it do? We'll explore our boundaries a little bit by defining our own function. So below the main function, put the following snippet of code: int integerForSeedValue(int seedNumber) { //code goes here } This is another function definition, so called because it defines exactly what the function does. There are a few things to notice here, the first being that the name of the function follows the same style we use for variables: take all of the words that make up what you're describing, smash them together with each word capitalized, and make the first letter lowercase. Notice also that our function has one argument, and that argument is described in the parentheses. Our code defines its type, which is an int, and we give it a name, seedNumber, which again follows our variable-naming scheme. Every time we want to call this function, we must pass one integer into it, or the compiler will complain and the program will crash. int seedNumber Note where the curly brackets are placed. This method is the traditional C style, with the opening bracket on the same line as the function name. Objective-C uses this same style, but C++ puts the opening bracket on the next line, all alone. Since C ignores whitespace, both are perfectly legal, and since a lot of people use C++ a lot, they're more used to it down there on the next line. So don't be alarmed if you see it move around a bit. Lastly, we're returning an integer, but we have no code that says what we're returning. This is obviously a problem, but before we fix our function up, let's hit the Build button and see what the Developer Tools think. We want to build and not run for right now, because our code is not correct, and we need to see how the Developer Tools inform us of this fact. The Build button looks like this in Project Builder: And like this in Xcode: When you hit the Build button, the project window moves around a bit to make it obvious it's doing something. In Project Builder, an area opens up to tell you about how the build is going. In Xcode, the Errors and Warnings item on the left will open up. In either case, you will see the message warning: control reaches end of non-void function. What's this? It's a warning. Warnings tell you that while the compiler was trying to understand your code, something seemed a little odd, and it decided to tell you about it. This warning tells you that you have made a function whose definition claims the function returns a value (an int, in our case), but the function body doesn't ever return anything. That would be just fine in a void function (which we'll get to later), but it's a little odd here, so the compiler gives you a warning. An error is a more serious problem that means that your code cannot be compiled as written, and you need to fix the problem before you can run. Both show up in the same places, but warnings will allow you to run your program, although they often foretell errors that will crash your program at run time. Click on the text and the developer tools will helpfully take you to the offending piece of code. For now, it's obvious that our new function is the culprit, but in huge projects, this click-and-go is a lifesaver. For now we have a simple fix to our problem. We simply add a line into our function, so it looks like this: int integerForSeedValue(int seedNumber) { //code goes here return 0; } Click Build again, and you will see that the warning disappears. It is a good practice to write code that has neither warnings nor errors, and we will strive to do this as we complete more complex code. But for now you may wonder about our little fix. Our function ignores the input we give it, doesn't do anything useful, and always returns the same thing. What is this, a Windows error dialog? So let's spice up our function a little. Change the function to the following: int integerForSeedValue(int seedNumber) { return seedNumber - 3; } Now we're doing some work in our function, and we're returning something that changes, based on what we're given. We return the variable seedNumber, minus the constant 3. But you might be wondering how we can use the variable seedNumber without first issuing a variable declaration, and that is a very good question. The answer is that we did a variable definition, it's just not as visible as the others we have done. This definition is inside of the parentheses, in the argument list. There, when we note what arguments this function takes, we are also declaring these arguments to exist. So now that we have a function, we need to call it. Up in our main function, replace the line favoriteNumber = favoriteNumber + 2; with the slightly altered line: favoriteNumber = integerForSeedValue(favoriteNumber + 2); Now we're calling our integerForSeedValue function from our main function. When the computer executes that line of code, it will look into our integerForSeedValue function and run all of the code in its code block before moving on to the next line of code in main. Note that while the computer is executing the lines in integerForSeedValue, the variable seedNumber will have the evaluated value of favoriteNumber + 2, which is 8. So integerForSeedValue will return 8-3, or 5. Let's build our program and see. Hit the Build button, to make sure we don't have any warnings or errors. integerForSeedValue favoriteNumber + 2 8-3 5 Well, what do you know? We do. The warning we got this time is warning: implicit declaration of function `integerForSeedValue'. What does that mean? Well, we know what a variable declaration is, and we know that we can't use variables until we declare them. And if we click on this warning, it takes us to where we're using our function, so it's a pretty logical step to think that functions need to be declared before use, too, and that's exactly right. So we add in one line above main, to declare our function. Now our file looks like this: #include <stdio.h> int integerForSeedValue(int seedNumber);! */ printf("My favorite number is %d!", favoriteNumber); return 0; } int integerForSeedValue(int seedNumber) { return seedNumber - 3; } Looks familiar, doesn't it? What we've done is take the function, knock it's block off, and present it here with a semicolon. That is enough for the compiler; this simple line is the function declaration we needed, and another Build confirms it when the compiler doesn't complain. Run the program, and you see that our favorite number is now 5, just like it should be! Wow, we've made some progress in this lesson! We learned about the tools we'll need to use every day we're developing, we compiled and ran "Hello World!", we took a few lines of code and made it into a program, we learned how to recognize, implement, declare, and call functions, and we learned how to get information from the Developer Tools about problems with our code, and fix them before they're problems with our programs. But we still have a long ways to go. Next time, we'll dive into flow control, which affect the way our code gets executed, so we can do more complex things than the "list of things to do" approach we have been taking. That will give us a lot of the tools we need to make more complex programs with the knowledge we've gained. Seth Roby graduated in May of 2003 with a double major in English and Computer Science, the Macintosh part of a three-person Macintosh, Linux, and Windows graduating triumvirate..
http://www.macdevcenter.com/pub/a/mac/2003/08/01/cocoa_series.html?page=2
CC-MAIN-2014-10
refinedweb
1,626
69.11
. I like the idea of jasmine specs, makes them so much nicer / rspec-ish. create something like rake compile_all_coffee and run it on the ci before tests, so you do not have to check in the compiled source. Also you only need guard if you do something auto-test-ish, another idea wold be to have the compile step taking place in a task you perpend to jasmine May 11, 2011 at 9:28 pm Switch to node.js and express! It can do .coffee compilation on the fly and serve up the corresponding .js code. Or in rails, you could add the equivalent logic to test the request path for .js, look at the filesystem for a matching .coffee and compile it on the fly. This could go in the rescue block where your 404 page might ultimately be rendered. May 12, 2011 at 12:09 am @grosser – Right before I went to bed I came up with the rake task idea for compiling coffeescript…stay tuned for an add on post about that. @peter – Using node is another great idea. I’ll poke around and see what I can figure out. Thanks! May 12, 2011 at 5:01 am I’m currently using the rack-asset-compiler gem to compile jasmine specs and app code. The CoffeeScript compilation step is done inside of Rack middleware, so there’s no need to run a rake task or use a process to watch the CoffeeScript files for changes. The middleware uses the If-Modified-Since header to make sure CoffeeScript is only compiled when it changes. I have a sample jasmine_config.rb here: May 12, 2011 at 10:01 am Hey Mike, nice post! I stumbled upon it when trying to figure out how to integrate jasmine into my node app :x July 9, 2011 at 8:59 pm I have one newbie question. Is there a way to test anything not global? In this example, it’s testing the global Math prototype. but if I create a new coffeescript class, I will have to attach it to the window. For example, class window.Picture…. Is it the approach you are taking too? If not, what will you recommend? Thanks July 15, 2011 at 3:28 pm You can check jasminerice gem also July 17, 2011 at 2:06 am @alf The approach I take is to set up a namespace for my application and attach that to window and then I have all of my code attach to that namespace: window.MyApp = {} class MyApp.MyClass foo: -> alert(“Foo called”) a = new MyApp.MyClass() a.foo() Hope this helps. July 20, 2011 at 2:48 pm Here is another option for running with Rails 3.1: July 20, 2011 at 2:51 pm
http://pivotallabs.com/using-jasmine-to-test-coffeescript-in-a-rails-3-1-app/?tag=javascript
CC-MAIN-2014-42
refinedweb
463
82.65
Java.io.PrintStream.print() Method Advertisements Description The java.io.PrintStreamStream.print() method public void print(String s) Parameters s -- The String to be printed Return Value This method does not return a value. Exception NA Example The following example shows the usage of java.io.PrintStream.print() method. package com.tutorialspoint; import java.io.*; public class PrintStreamDemo { public static void main(String[] args) { String s = "Hello World"; // create printstream object PrintStream ps = new PrintStream(System.out); // print string ps.print(s); ps.print(" This is an example"); // flush the stream ps.flush(); } } Let us compile and run the above program, this will produce the following result: Hello World This is an example
http://www.tutorialspoint.com/java/io/printstream_print_string.htm
CC-MAIN-2013-48
refinedweb
113
59.5
GanttTask Deadline With the official Q2 2014 release of UI for WPF/SL you will have the option to use the Deadline property of the GanttTask and visualize an indicator showing whether the task is expired. This help topic will describe the Deadline property in more details as well as how you could customize its behavior. Overview Setting the Deadline property of the GanttTask visualizes a vertical line showing the deadline for finishing the task as well as an indicator showing whether the task is on time or delayed. Example 1 shows how the Deadline can be set. var task = new GanttTask() { Start = new DateTime(2014, 6, 6), End = new DateTime(2014, 6, 8), Deadline = new DateTime(2014, 6, 9), Title = "Gantt Rendering" }; Dim task = New GanttTask() With { _ .Start = New DateTime(2014, 6, 6), _ .[End] = New DateTime(2014, 6, 8), _ .Deadline = New DateTime(2014, 6, 9), _ .Title = "Gantt Rendering" _ } When the End time is before the set Deadline of the Task, the Indicator is in green color, however, as soon as you expand the task after the End, the Indicator is replaced with one that has red color. Figure 1 shows how the Deadline and the Indicator are visualized in the Timeline part of the control. Figure 1: Deadline and Indicator Customization There may be cases when you need to add different logic for marking tasks as expired. The default implementation is as soon as the End goes after the Deadline, the task is marked as delayed. In order to change this behavior, you will need to create a custom GanttTask and override its CheckIsExpired method. Example 2 demonstrates how to override this method, so that the task is marked as expired only when its Start property goes after the set Deadline: Example 2 shows how to override CheckIsExpired method. public class CustomGanttTask : GanttTask { protected override bool CheckIsExpired() { return this.Deadline < this.Start; } } Public Class CustomGanttTask Inherits GanttTask Protected Overrides Function CheckIsExpired() As Boolean Return Me.Deadline < Me.Start End Function End Class Figure 2 and Figure 3 show the result: Figure 2: Even if the End is after the Deadline, the task is not marked as expired. Figure 3: As soon as the Start goes after the Deadline, the task is marked as delayed.
https://docs.telerik.com/devtools/silverlight/controls/radganttview/features/items/gantttask-deadline
CC-MAIN-2020-05
refinedweb
380
59.13
Kamozo That's useful, but what if I wanted to animate a gif using the scene module only, with my own images? Would that be possible? Kamozo Oh, okay. It'd be cool if they were. Perhaps maybe in a future version. I've tried splitting them, but I don't know how to make it continuously repeat. Kamozo Hi, I was wondering if the scene module supported gifs. I've tried using them in my own project but they are just a still image. Here's some example code so you can see what I'm trying to do: from scene import * class MyScene (Scene): def setup(self): self.background_color = 'midnightblue' self.ship = SpriteNode('ship.GIF') #Why won't it play? self.ship.position = self.size / 2 self.add_child(self.ship) run(MyScene()) Help would be appreciated, thanks. Kamozo Nevermind, I've figured it. Thanks for all your help. Kamozo Oh yeah, I'm not sure how I didn't notice that. Where does the code you've provided fit into mine? Kamozo Wow, thank you, that helps me a lot. Kamozo. Kamozo.
https://forum.omz-software.com/user/kamozo
CC-MAIN-2021-04
refinedweb
184
70.9
Building a dynamic JSON Request body with n objects in an array Hello, I have a use case that I'm trying to implement in SOATest and am running into a wall. I have a Service1 that returns n number of Account objects. There are a varying amount of accounts that could be returned for a given request as that user may have more or less accounts than another. I have a second service, Service2, that takes a structured request of n Account objects and AccountId is an integer that is required on all Accounts passed. What I am attempting to do is extract AccountIds from the Service1 response and then build out a request to Service2 in a dynamic fashion. I have tried using a JSON Databank to extract the AccountIds from Service1 and then paramaterized that to the Service2 request but it just pastes ALL the AccountIds into a single AccountId field. Is there any way to dynamically create an array of objects using SOATest, in memory? See below for samples. Service1 Response: { "AccountSummaryList":[ { "AccountId":"111111111", "AccountType:"BLAHBLAH" }, { "AccountId":"22222", "AccountType:"BLAHBLAH" }, {.....} ] } Service2 Request: { "Accounts":[ { "AccountId":111111, "otherdetails":"blahblah" }, { "AccountId":222222, "otherdetails":"blahblah" } ] } I second this question! Hi Beitliche, There are possibly more elegant implementations, but off the top of my head I would use an XML data bank to extract all of the element values to a Writable data source. Modify the Xpath to grab all values not just a single one. Once written into a data source you can then use the context.getValues("writable_name","column_name") method to move the values to an arraylist and then simply loop the values while adding the tags. You would then have your xml body. This Example requires the use of a test suite variable. (Double click the test suite and navigate to then variable tab) Example script: import com.parasoft.api.*; Now you can reference the variable "x" to get the values. In your messaging client, switch to "literal mode"(otherwise the background encoding will change the '<' & '>') and reference the variable with ${variable_name} . The scenario Here is some general information. It is common for to take elements/objects/arrays from a response and then reuse them in a subsequent request. Typically, you would do the following: What I mention applies to both JSON and XML. For JSON, you would be using a JSON Data Bank and the Form JSON view. For XML, you would be using an XML Data Bank and the Form Input view. Sometimes using the extraction as-is is desired. However, in some scenarios you want to transform the data in some way before reusing it. This could be accomplished using scripting (Extension Tool) or using XSL (XSLT Tool). Some simple transformations, like removing or appending values, can be applied by Data Bank itself by enabling the "Allow alteration" box under Options (collapsed by default). Ramiro's response is one such example where scripting can be used to transform extracted values. Hello, Thank you for your responses. @benken_parasoft I have tried the above and am not seeing the intended outcome. Here is a sample of the response that I am extracting the AccountId values from: From this response I have the following data bank/xpath setup. As you can see it's set in "AccountId, ####" format. Which I would expect to be able to use. In the secondary request I am trying to build here is a sample of the form JSON (There will be other elements, I'm just trying to get this one working for now as a POC). I have tried setting the Replacement at the Accounts, and Item[0] level (as those are the only two that allow it. I cannot add a replacement at the AccountId level). I receive the following error when attempting this. Please advise if I am missing something but as far as I can tell SOATest does not natively support the use case for which I am trying. Short of coding up an extension to build this request I cannot see a path forward. Thanks! The steps I described are for extracting the entire array and then replacing the entire array element. If you want to do that then you would extract the value of the AccountSummaryList array and then replace the Accounts array in the subsequent test. As mentioned, more steps or different steps would be required if you need to transform the contents of the array being extracted (change/add/remove values or rename things). As mentioned, this may have involve scripting or XSL. Ramiro gives one such example. Please note that if you follow Ramiro's example, he's not extracting the entire array but the contents to a Writable Data Source and using scripting to construct the desired result (which is a different approach than what I describe but also fine).
https://forums.parasoft.com/discussion/comment/8246/
CC-MAIN-2018-13
refinedweb
808
62.68
Follow these steps to implement: - Choose any element of the list to be the pivot. - Divide all other elements (except the pivot) into two partitions. - All elements less than the pivot must be in the first partition (lower half list). - All elements greater than the pivot must be in the second partition (upper half list). - Use recursion to sort both partitions. - Join the first sorted partition, the pivot, and the second sorted partition def qsort(list): if not list: return [] else: pivot = list[0] less = [x for x in list if x < pivot] more = [x for x in list[1:] if x >= pivot] return qsort(less) + [pivot] + qsort(more) Example: someList = [3, 1, 4, 1, 5, 9, 2, 6, 5, 3, 5, 8, 9, 7, 9, 3] print qsort( someList ) [1, 1, 2, 3, 3, 3, 4, 5, 5, 5, 6, 7, 8, 9, 9, 9] Enjoy the sort.
https://anothergisblog.blogspot.com/2012/05/quicksort-using-python.html
CC-MAIN-2018-05
refinedweb
149
64.04
android / platform / prebuilts / gdb / linux-x86 / 6bf4b0bb3f6124f40f6cfcfea80a895de5a711cd / . / lib / python2.7 / smtplib.py blob: a3213b33d715e54e42fec490d79759568b36501a [ file ] [ log ] [ blame ] #! /usr/bin/env python '''SMTP/ESMTP client class. This should follow RFC 821 (SMTP), RFC 1869 (ESMTP), RFC 2554 (SMTP Authentication) and RFC 2487 (Secure SMTP over TLS). Notes: Please remember, when doing ESMTP, that the names of the SMTP service extensions are NOT the same thing as the option keywords for the RCPT and MAIL commands! Example: >>> import smtplib >>> s=smtplib.SMTP("localhost") >>> print s.help() This is Sendmail version 8.8.4 Topics: HELO EHLO MAIL RCPT DATA RSET NOOP QUIT HELP VRFY EXPN VERB ETRN DSN For more info use "HELP <topic>". To report bugs in the implementation send email to sendmail-bugs@sendmail.org. For local information send email to Postmaster at your site. End of HELP info >>> s.putcmd("vrfy","someone@here") >>> s.getreply() (250, "Somebody OverHere <somebody@here.my.org>") >>> s.quit() ''' # Author: The Dragon De Monsyne <dragondm@integral.org> # ESMTP support, test code and doc fixes added by # Eric S. Raymond <esr@thyrsus.com> # Better RFC 821 compliance (MAIL and RCPT, and CRLF in data) # by Carey Evans <c.evans@clear.net.nz>, for picky mail servers. # RFC 2554 (authentication) support by Gerhard Haering <gerhard@bigfoot.de>. # # This was modified from the Python 1.5 library HTTP lib. import socket import re import email.utils import base64 import hmac from email.base64mime import encode as encode_base64 from sys import stderr __all__ = ["SMTPException", "SMTPServerDisconnected", "SMTPResponseException", "SMTPSenderRefused", "SMTPRecipientsRefused", "SMTPDataError", "SMTPConnectError", "SMTPHeloError", "SMTPAuthenticationError", "quoteaddr", "quotedata", "SMTP"] SMTP_PORT = 25 SMTP_SSL_PORT = 465 CRLF = "\r\n" OLDSTYLE_AUTH = re.compile(r"auth=(.*)", re.I) # Exception classes used by this module. class SMTPException(Exception): """Base class for all exceptions raised by this module.""" class SMTPServerDisconnected(SMTPException): """Not connected to any SMTP server. This exception is raised when the server unexpectedly disconnects, or when an attempt is made to use the SMTP instance before connecting it to a server. """ class SMTPResponseException(SMTPException): """Base class for all exceptions that include an SMTP error code. These exceptions are generated in some instances when the SMTP server returns an error code. The error code is stored in the `smtp_code' attribute of the error, and the `smtp_error' attribute is set to the error message. """ def __init__(self, code, msg): self.smtp_code = code self.smtp_error = msg self.args = (code, msg) class SMTPSenderRefused(SMTPResponseException): """Sender address refused. In addition to the attributes set by on all SMTPResponseException exceptions, this sets `sender' to the string that the SMTP refused. """ def __init__(self, code, msg, sender): self.smtp_code = code self.smtp_error = msg self.sender = sender self.args = (code, msg, sender) class SMTPRecipientsRefused(SMTPException): """All recipient addresses refused. The errors for each recipient are accessible through the attribute 'recipients', which is a dictionary of exactly the same sort as SMTP.sendmail() returns. """ def __init__(self, recipients): self.recipients = recipients self.args = (recipients,) class SMTPDataError(SMTPResponseException): """The SMTP server didn't accept the data.""" class SMTPConnectError(SMTPResponseException): """Error during connection establishment.""" class SMTPHeloError(SMTPResponseException): """The server refused our HELO reply.""" class SMTPAuthenticationError(SMTPResponseException): """Authentication error. Most probably the server didn't accept the username/password combination provided. """ def quoteaddr(addr): """Quote a subset of the email addresses defined by RFC 821. Should be able to handle anything rfc822.parseaddr can handle. """ m = (None, None) try: m = email.utils.parseaddr(addr)[1] except AttributeError: pass if m == (None, None): # Indicates parse failure or AttributeError # something weird here.. punt -ddm return "<%s>" % addr elif m is None: # the sender wants an empty return address return "<>" else: return "<%s>" % m def _addr_only(addrstring): displayname, addr = email.utils.parseaddr(addrstring) if (displayname, addr) == ('', ''): # parseaddr couldn't parse it, so use it as is. return addrstring return addr def quotedata(data): """Quote data for email. Double leading '.', and change Unix newline '\\n', or Mac '\\r' into Internet CRLF end-of-line. """ return re.sub(r'(?m)^\.', '..', re.sub(r'(?:\r\n|\n|\r(?!\n))', CRLF, data)) try: import ssl except ImportError: _have_ssl = False else: class SSLFakeFile: """A fake file like object that really wraps a SSLObject. It only supports what is needed in smtplib. """ def __init__(self, sslobj): self.sslobj = sslobj def readline(self): str = "" chr = None while chr != "\n": chr = self.sslobj.read(1) if not chr: break str += chr return str def close(self): pass _have_ssl = True class SMTP: """This class manages a connection to an SMTP or ESMTP server. SMTP Objects: SMTP objects have the following attributes: helo_resp This is the message given by the server in response to the most recent HELO command. ehlo_resp This is the message given by the server in response to the most recent EHLO command. This is usually multiline. does_esmtp This is a True value _after you do an EHLO command_, if the server supports ESMTP. esmtp_features This is a dictionary, which, if the server supports ESMTP, will _after you do an EHLO command_, contain the names of the SMTP service extensions this server supports, and their parameters (if any). Note, all extension names are mapped to lower case in the dictionary. See each method's docstrings for details. In general, there is a method of the same name to perform each SMTP command. There is also a method called 'sendmail' that will do an entire mail transaction. """ debuglevel = 0 file = None helo_resp = None ehlo_msg = "ehlo" ehlo_resp = None does_esmtp = 0 default_port = SMTP_PORT def __init__(self, host='', port=0, local_hostname=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT): """Initialize a new instance. If specified, `host' is the name of the remote host to which to connect. If specified, `port' specifies the port to which to connect. By default, smtplib.SMTP_PORT is used. If a host is specified the connect method is called, and if it returns anything other than a success code an SMTPConnectError is raised. If specified, `local_hostname` is used as the FQDN of the local host. By default, the local hostname is found using socket.getfqdn(). """ self.timeout = timeout self.esmtp_features = {} if host: (code, msg) = self.connect(host, port) if code != 220: raise SMTPConnectError(code, msg) if local_hostname is not None: self.local_hostname = local_hostname else: # RFC 2821 says we should use the fqdn in the EHLO/HELO verb, and # if that can't be calculated, that we should use a domain literal # instead (essentially an encoded IP address like [A.B.C.D]). socket.gaierror: pass self.local_hostname = '[%s]' % addr def set_debuglevel(self, debuglevel): """Set the debug output level. A non-false value results in debug messages for connection and for all messages sent to and received from the server. """ self.debuglevel = debuglevel def _get_socket(self, host, port, timeout): # This makes it simpler for SMTP_SSL to use the SMTP connect code # and just alter the socket connection bit. if self.debuglevel > 0: print>>stderr, 'connect:', (host, port) return socket.create_connection((host, port), timeout) def connect(self, host='localhost', port=0): """Connect to a host on a given port. If the hostname ends with a colon (`:') followed by a number, and there is no port specified, that suffix will be stripped off and the number interpreted as the port number to use. Note: This method is automatically invoked by __init__, if a host is specified during instantiation. """ if not port and (host.find(':') == host.rfind(':')): i = host.rfind(':') if i >= 0: host, port = host[:i], host[i + 1:] try: port = int(port) except ValueError: raise socket.error, "nonnumeric port" if not port: port = self.default_port if self.debuglevel > 0: print>>stderr, 'connect:', (host, port) self.sock = self._get_socket(host, port, self.timeout) (code, msg) = self.getreply() if self.debuglevel > 0: print>>stderr, "connect:", msg return (code, msg) def send(self, str): """Send `str' to the server.""" if self.debuglevel > 0: print>>stderr, 'send:', repr(str) if hasattr(self, 'sock') and self.sock: try: self.sock.sendall(str) except socket.error: self.close() raise SMTPServerDisconnected('Server not connected') else: raise SMTPServerDisconnected('please run connect() first') def putcmd(self, cmd, args=""): """Send a command to the server.""" if args == "": str = '%s%s' % (cmd, CRLF) else: str = '%s %s%s' % (cmd, args, CRLF) self.send(str) def getreply(self): """Get a reply from the server. Returns a tuple consisting of: - server response code (e.g. '250', or such, if all goes well) Note: returns -1 if it can't read response code. - server response string corresponding to response code (multiline responses are converted to a single, multiline string). Raises SMTPServerDisconnected if end-of-file is reached. """ resp = [] if self.file is None: self.file = self.sock.makefile('rb') while 1: try: line = self.file.readline() except socket.error as e: self.close() raise SMTPServerDisconnected("Connection unexpectedly closed: " + str(e)) if line == '': self.close() raise SMTPServerDisconnected("Connection unexpectedly closed") if self.debuglevel > 0: print>>stderr, 'reply:', repr(line) resp.append(line[4:].strip()) code = line[:3] # Check that the error code is syntactically correct. # Don't attempt to read a continuation line if it is broken. try: errcode = int(code) except ValueError: errcode = -1 break # Check if multiline response. if line[3:4] != "-": break errmsg = "\n".join(resp) if self.debuglevel > 0: print>>stderr, 'reply: retcode (%s); Msg: %s' % (errcode, errmsg) return errcode, errmsg def docmd(self, cmd, args=""): """Send a command, and return its response code.""" self.putcmd(cmd, args) return self.getreply() # std smtp commands def helo(self, name=''): """SMTP 'helo' command. Hostname to send for this command defaults to the FQDN of the local host. """ self.putcmd("helo", name or self.local_hostname) (code, msg) = self.getreply() self.helo_resp = msg return (code, msg) def ehlo(self, name=''): """ SMTP 'ehlo' command. Hostname to send for this command defaults to the FQDN of the local host. """ self.esmtp_features = {} self.putcmd(self.ehlo_msg, name or self.local_hostname) (code, msg) = self.getreply() # According to RFC1869 some (badly written) # MTA's will disconnect on an ehlo. Toss an exception if # that happens -ddm if code == -1 and len(msg) == 0: self.close() raise SMTPServerDisconnected("Server not connected") self.ehlo_resp = msg if code != 250: return (code, msg) self.does_esmtp = 1 #parse the ehlo response -ddm resp = self.ehlo_resp.split('\n') del resp[0] for each in resp: # To be able to communicate with as many SMTP servers as possible, # we have to take the old-style auth advertisement into account, # because: # 1) Else our SMTP feature parser gets confused. # 2) There are some servers that only advertise the auth methods we # support using the old style. auth_match = OLDSTYLE_AUTH.match(each) if auth_match: # This doesn't remove duplicates, but that's no problem self.esmtp_features["auth"] = self.esmtp_features.get("auth", "") \ + " " + auth_match.groups(0)[0] continue # RFC 1869 requires a space between ehlo keyword and parameters. # It's actually stricter, in that only spaces are allowed between # parameters, but were not going to check for that here. Note # that the space isn't present if there are no parameters. m = re.match(r'(?P<feature>[A-Za-z0-9][A-Za-z0-9\-]*) ?', each) if m: feature = m.group("feature").lower() params = m.string[m.end("feature"):].strip() if feature == "auth": self.esmtp_features[feature] = self.esmtp_features.get(feature, "") \ + " " + params else: self.esmtp_features[feature] = params return (code, msg) def has_extn(self, opt): """Does the server support a given SMTP service extension?""" return opt.lower() in self.esmtp_features def help(self, args=''): """SMTP 'help' command. Returns help text from server.""" self.putcmd("help", args) return self.getreply()[1] def rset(self): """SMTP 'rset' command -- resets session.""" return self.docmd("rset") def noop(self): """SMTP 'noop' command -- doesn't do anything :>""" return self.docmd("noop") def mail(self, sender, options=[]): """SMTP 'mail' command -- begins mail xfer session.""" optionlist = '' if options and self.does_esmtp: optionlist = ' ' + ' '.join(options) self.putcmd("mail", "FROM:%s%s" % (quoteaddr(sender), optionlist)) return self.getreply() def rcpt(self, recip, options=[]): """SMTP 'rcpt' command -- indicates 1 recipient for this mail.""" optionlist = '' if options and self.does_esmtp: optionlist = ' ' + ' '.join(options) self.putcmd("rcpt", "TO:%s%s" % (quoteaddr(recip), optionlist)) return self.getreply() def data(self, msg): """SMTP 'DATA' command -- sends message data to server. Automatically quotes lines beginning with a period per rfc821. Raises SMTPDataError if there is an unexpected reply to the DATA command; the return value from this method is the final response code received when the all data is sent. """ self.putcmd("data") (code, repl) = self.getreply() if self.debuglevel > 0: print>>stderr, "data:", (code, repl) if code != 354: raise SMTPDataError(code, repl) else: q = quotedata(msg) if q[-2:] != CRLF: q = q + CRLF q = q + "." + CRLF self.send(q) (code, msg) = self.getreply() if self.debuglevel > 0: print>>stderr, "data:", (code, msg) return (code, msg) def verify(self, address): """SMTP 'verify' command -- checks for address validity.""" self.putcmd("vrfy", _addr_only(address)) return self.getreply() # a.k.a. vrfy = verify def expn(self, address): """SMTP 'expn' command -- expands a mailing list.""" self.putcmd("expn", _addr_only(address)) return self.getreply() # some useful methods def ehlo_or_helo_if_needed(self): """Call self.ehlo() and/or self.helo() if needed. If there has been no previous EHLO or HELO command this session, this method tries ESMTP EHLO first. This method may raise the following exceptions: SMTPHeloError The server didn't reply properly to the helo greeting. """ if self.helo_resp is None and self.ehlo_resp is None: if not (200 <= self.ehlo()[0] <= 299): (code, resp) = self.helo() if not (200 <= code <= 299): raise SMTPHeloError(code, resp) def login(self, user, password): """Log in on an SMTP server that requires authentication. The arguments are: - user: The user name to authenticate with. - password: The password for the authentication. If there has been no previous EHLO or HELO command this session, this method tries ESMTP EHLO first. This method will return normally if the authentication was successful. This method may raise the following exceptions: SMTPHeloError The server didn't reply properly to the helo greeting. SMTPAuthenticationError The server didn't accept the username/ password combination. SMTPException No suitable authentication method was found. """ def encode_cram_md5(challenge, user, password): challenge = base64.decodestring(challenge) response = user + " " + hmac.HMAC(password, challenge).hexdigest() return encode_base64(response, eol="") def encode_plain(user, password): return encode_base64("\0%s\0%s" % (user, password), eol="") AUTH_PLAIN = "PLAIN" AUTH_CRAM_MD5 = "CRAM-MD5" AUTH_LOGIN = "LOGIN" self.ehlo_or_helo_if_needed() if not self.has_extn("auth"): raise SMTPException("SMTP AUTH extension not supported by server.") # Authentication methods the server supports: authlist = self.esmtp_features["auth"].split() # List of authentication methods we support: from preferred to # less preferred methods. Except for the purpose of testing the weaker # ones, we prefer stronger methods like CRAM-MD5: preferred_auths = [AUTH_CRAM_MD5, AUTH_PLAIN, AUTH_LOGIN] # Determine the authentication method we'll use authmethod = None for method in preferred_auths: if method in authlist: authmethod = method break if authmethod == AUTH_CRAM_MD5: (code, resp) = self.docmd("AUTH", AUTH_CRAM_MD5) if code == 503: # 503 == 'Error: already authenticated' return (code, resp) (code, resp) = self.docmd(encode_cram_md5(resp, user, password)) elif authmethod == AUTH_PLAIN: (code, resp) = self.docmd("AUTH", AUTH_PLAIN + " " + encode_plain(user, password)) elif authmethod == AUTH_LOGIN: (code, resp) = self.docmd("AUTH", "%s %s" % (AUTH_LOGIN, encode_base64(user, eol=""))) if code != 334: raise SMTPAuthenticationError(code, resp) (code, resp) = self.docmd(encode_base64(password, eol="")) elif authmethod is None: raise SMTPException("No suitable authentication method found.") if code not in (235, 503): # 235 == 'Authentication successful' # 503 == 'Error: already authenticated' raise SMTPAuthenticationError(code, resp) return (code, resp) def starttls(self, keyfile=None, certfile=None): """Puts the connection to the SMTP server into TLS mode. If there has been no previous EHLO or HELO command this session, this method tries ESMTP EHLO first. If the server supports TLS, this will encrypt the rest of the SMTP session. If you provide the keyfile and certfile parameters, the identity of the SMTP server and client can be checked. This, however, depends on whether the socket module really checks the certificates. This method may raise the following exceptions: SMTPHeloError The server didn't reply properly to the helo greeting. """ self.ehlo_or_helo_if_needed() if not self.has_extn("starttls"): raise SMTPException("STARTTLS extension not supported by server.") (resp, reply) = self.docmd("STARTTLS") if resp == 220: if not _have_ssl: raise RuntimeError("No SSL support included in this Python") self.sock = ssl.wrap_socket(self.sock, keyfile, certfile) self.file = SSLFakeFile(self.sock) # RFC 3207: # The client MUST discard any knowledge obtained from # the server, such as the list of SMTP service extensions, # which was not obtained from the TLS negotiation itself. self.helo_resp = None self.ehlo_resp = None self.esmtp_features = {} self.does_esmtp = 0 return (resp, reply) def sendmail(self, from_addr, to_addrs, msg, mail_options=[], rcpt_options=[]): """This command performs an entire mail transaction. The arguments are: - from_addr : The address sending this mail. - to_addrs : A list of addresses to send this mail to. A bare string will be treated as a list with 1 address. - msg : The message to send. - mail_options : List of ESMTP options (such as 8bitmime) for the mail command. - rcpt_options : List of ESMTP options (such as DSN commands) for all the rcpt commands. If there has been no previous EHLO or HELO command this session, this method tries ESMTP EHLO first. If the server does ESMTP, message size and each of the specified options will be passed to it. If EHLO fails, HELO will be tried and ESMTP options suppressed. This method will return normally if the mail is accepted for at least one recipient. It returns a dictionary, with one entry for each recipient that was refused. Each entry contains a tuple of the SMTP error code and the accompanying error message sent by the server. This method may raise the following exceptions: SMTPHeloError The server didn't reply properly to the helo greeting. SMTPRecipientsRefused The server rejected ALL recipients (no mail was sent). SMTPSenderRefused The server didn't accept the from_addr. SMTPDataError The server replied with an unexpected error code (other than a refusal of a recipient). Note: the connection will be open even after an exception is raised. Example: >>> import smtplib >>> s=smtplib.SMTP("localhost") >>> tolist=["one@one.org","two@two.org","three@three.org","four@four.org"] >>> msg = '''\\ ... From: Me@my.org ... Subject: testin'... ... ... This is a test ''' >>> s.sendmail("me@my.org",tolist,msg) { "three@three.org" : ( 550 ,"User unknown" ) } >>> s.quit() In the above example, the message was accepted for delivery to three of the four addresses, and one was rejected, with the error code 550. If all addresses are accepted, then the method will return an empty dictionary. """ self.ehlo_or_helo_if_needed() esmtp_opts = [] if self.does_esmtp: # Hmmm? what's this? -ddm # self.esmtp_features['7bit']="" if self.has_extn('size'): esmtp_opts.append("size=%d" % len(msg)) for option in mail_options: esmtp_opts.append(option) (code, resp) = self.mail(from_addr, esmtp_opts) if code != 250: self.rset() raise SMTPSenderRefused(code, resp, from_addr) senderrs = {} if isinstance(to_addrs, basestring): to_addrs = [to_addrs] for each in to_addrs: (code, resp) = self.rcpt(each, rcpt_options) if (code != 250) and (code != 251): senderrs[each] = (code, resp) if len(senderrs) == len(to_addrs): # the server refused all our recipients self.rset() raise SMTPRecipientsRefused(senderrs) (code, resp) = self.data(msg) if code != 250: self.rset() raise SMTPDataError(code, resp) #if we got here then somebody got our mail return senderrs def close(self): """Close the connection to the SMTP server.""" if self.file: self.file.close() self.file = None if self.sock: self.sock.close() self.sock = None def quit(self): """Terminate the SMTP session.""" res = self.docmd("quit") self.close() return res if _have_ssl: class SMTP_SSL(SMTP): """ This is a subclass derived from SMTP that connects over an SSL encrypted socket (to use this class you need a socket module that was compiled with SSL support). If host is not specified, '' (the local host) is used. If port is omitted, the standard SMTP-over-SSL port (465) is used. keyfile and certfile are also optional - they can contain a PEM formatted private key and certificate chain file for the SSL connection. """ default_port = SMTP_SSL_PORT def __init__(self, host='', port=0, local_hostname=None, keyfile=None, certfile=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT): self.keyfile = keyfile self.certfile = certfile SMTP.__init__(self, host, port, local_hostname, timeout) def _get_socket(self, host, port, timeout): if self.debuglevel > 0: print>>stderr, 'connect:', (host, port) new_socket = socket.create_connection((host, port), timeout) new_socket = ssl.wrap_socket(new_socket, self.keyfile, self.certfile) self.file = SSLFakeFile(new_socket) return new_socket __all__.append("SMTP_SSL") # # LMTP extension # LMTP_PORT = 2003 class LMTP(SMTP): """LMTP - Local Mail Transfer Protocol as the host, starting with a '/'. Authentication is supported, using the regular SMTP mechanism. When using a Unix socket, LMTP generally don't support or require any authentication, but your mileage might vary.""" ehlo_msg = "lhlo" def __init__(self, host='', port=LMTP_PORT, local_hostname=None): """Initialize a new instance.""" SMTP.__init__(self, host, port, local_hostname) def connect(self, host='localhost', port=0): """Connect to the LMTP daemon, on either a Unix or a TCP socket.""" if host[0] != '/': return SMTP.connect(self, host, port) # Handle Unix-domain sockets. try: self.sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) self.sock.connect(host) except socket.error: if self.debuglevel > 0: print>>stderr, 'connect fail:', host if self.sock: self.sock.close() self.sock = None raise (code, msg) = self.getreply() if self.debuglevel > 0: print>>stderr, "connect:", msg return (code, msg) # Test the sendmail method, which tests most of the others. # Note: This always sends to localhost. if __name__ == '__main__': import sys def prompt(prompt): sys.stdout.write(prompt + ": ") return sys.stdin.readline().strip() fromaddr = prompt("From") toaddrs = prompt("To").split(',') print "Enter message, end with ^D:" msg = '' while 1: line = sys.stdin.readline() if not line: break msg = msg + line print "Message length is %d" % len(msg) server = SMTP('localhost') server.set_debuglevel(1) server.sendmail(fromaddr, toaddrs, msg) server.quit()
https://android.googlesource.com/platform/prebuilts/gdb/linux-x86/+/6bf4b0bb3f6124f40f6cfcfea80a895de5a711cd/lib/python2.7/smtplib.py
CC-MAIN-2020-16
refinedweb
3,556
52.56
In this tutorial, you will learn what is Java variable and how to work with it. Also, you will learn where variables are commonly used in Java programming. A variable or Java. In simple Words, it can Be defined as “Variable is the name of the reserved area allocated in memory.”. Below given is valid examples of variable declaration and initialization in Java − variable declaration and initialization' Types of variables: - local variable - instance variable - static variable Local Java variable - Local variables are declared in methods, constructors, or blocks. - Local variables are created when the method, constructor or block is entered and the variable will be destroyed once it exits the method, constructor, or block. - There is no default value for local variables, so local variables should be declared and an initial value should be assigned before the first use. - Local variables are implemented at stack level internally. - Access modifiers cannot be used for local variables. - Local variables are visible only within the declared method, constructor, or block. Program to find Age in Java Here in this example,(); } } Output Puppy age is: 7 Error at the time of compilation in Java.(); } } Output: Test.java:4:variable number might not have been initialized age = age + 7; ^ 1 error instance Java variable - A variable that is declared inside the class but outside the method is called instance variable. - It is not declared as static. -. Program to Print Name and Age in Java static Java variable - A variable that is declared as static is called static variable. It cannot be local. - The static variable is created when the program starts and destroyed when the program stops. - Visibility is similar to instance variables. However, most static variables are declared public since they must be available for users of the class. - Static variables can be accessed by calling the class name ClassName.VariableName. - There would only be one copy of each class variable per class, regardless of how many objects are created from it. - Default values are same as an instance variable. For numbers, the default value is 0; for Booleans, it is false; and for object references, it is null. Values can be assigned during the declaration or within the constructor. Additionally, values can be assigned in special static initializer blocks. - When declaring a class variable as public static final, then variable names (constants) are all in upper case. If the static variables are not public and final, the naming syntax is the same as instance and local variables. Program to find Department Average Salary import java.io.*; public class Employee { // salary variable is a private static variable private static double salary; // DEPARTMENT is a constant public static final String DEPARTMENT = "Development "; public static void main(String args[]) { salary = 2000; System.out.println(DEPARTMENT + "average salary:" + salary); } } Output: Development average salary:2000 Ask your questions and clarify your/others doubts on for loop in Java Variable by commenting. Documentation.
https://coderforevers.com/java/variables/
CC-MAIN-2019-39
refinedweb
484
54.93
Opened 2 years ago Closed 2 years ago #20295 closed Uncategorized (worksforme) from django.db import utils fails; import django.db.utils succeeds Description Here's a simple reproduction for 1.5.1: import os os.environ[ 'DJANGO_SETTINGS_MODULE' ] = 'sys' sys.SECRET_KEY = 'foo' import django.db.utils #works! (as expected) from django.db import utils #fails! wtf? Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: cannot import name utils Same problem occurs in 1.3.3. This can manifest in a variety of ways: File "/x/home16/eveljee/lib/python/site-packages/django/db/backends/sqlite3/base.py", line 14, in ? from django.db import utils TemplateSyntaxError: Caught ImportError while rendering: cannot import name utils I have no theories as to what the underlying cause is; need someone more familiar with Django's internals. Change History (1) comment:1 Changed 2 years ago by bmispelon - Cc bmispelon@… added - Needs documentation unset - Needs tests unset - Patch needs improvement unset - Resolution set to worksforme - Status changed from new to closed Hi, I can't reproduce the issue you're describing (I used your example with an added import sys at the top which I assume was missing). The code you provided looks strange too: is sys really the name of your project? If so, that's not a very good name for a project since it clashes with a builtin python module. I tried with django 1.5.1 and 1.3.3 as well as python 3 and none raise an ImportError. I'm going to mark this as worksforme. Please re-open if you have some more information on how to reproduce this issue. Thanks.
https://code.djangoproject.com/ticket/20295
CC-MAIN-2015-32
refinedweb
278
67.65