text
stringlengths
20
1.01M
url
stringlengths
14
1.25k
dump
stringlengths
9
15
lang
stringclasses
4 values
source
stringclasses
4 values
12.1 Overview A Java servlet container or web server is multithreaded and multiple requests to the same servlet may be executed at the same time. Therefore, we need to take concurrency into consideration while writing servlet. As we discussed earlier that one and only one instance of Servlet gets created and for every new request , Servlet Container spawn a new thread to execute doGet() or doPost() methof of a servlet. By default servlets are not thread safe and it is a responsibility of a servlet developer to take care of it. In this chapter we will discuss about concurrency in servlets and this is very important concept so your attention is required. 12.2 Threads Overview A thread is a lightweight process which has its own call stack and accesses shared data of other threads in the same process (shares heap memory). Every thread has its own memory cache. When we say that a program is multithreaded, we mean that same instance of an object spawns multiple threads and process this single instance of code. This means that more than one sequential flow of control runs through the same memory block. So multiple threads execute a single instance of a program and therefore shares instance variables and could possibly be attempting to read and write those shared variable. Lets take a simple java example public class Counter { int counter=10; public void doSomething() { System.out.println(“Inital Counter = ” + counter); counter ++; System.out.println(“Post Increment Counter = ” + counter); } } Now we execute two threads Thread1 and Thread2 to execute doSomething() method. So it is possible that - Thread1 reads the value of counter which is 10 - Displays the Inital Counter =10 and increment - Before actually Thread1 increments the counter another Thread1 increments the counter which changed the value of counter to 11 - Now Thread1 has value of counter as 10 which is stale now This scenario is possible in multithreaded environment like servlets and it is because instance variables are shared by all threads running in same instance. Same can be the issue with the Servlets also. 12.3 Write Thread Safe Servlets I hope by this section you understand the concerns I am trying to highlight. If you have even a small doubt , read Section 12.2 one more time. There are certain points which we should consider while writing servlets. - Service() , doGet(), doPost() or to be more generic doXXX() methods should not update or modify instance variables as instance variables are shared by all threads of same instance. - If you have a requirement which requires modification of instance variable then do it in a synchronized block. - Above two rules are applicable for static variables also because they are also shared. - Local variables are always thread safe. - The request and response objects are thread safe to use because new instance of these are created for every request into your servlet, and thus for every thread executing in your servlet. Below are the two approaches to make the thread safe - Synchronized the block where you are modifying instance or static variables.(refer below code snipped). We recommend to synchronize the block where your code modifies the instance variables instead of synchronizing complete method for the sake of performance. Note that we need to take a lock on servlet instance as we need to make the particular servlet instance as tread safe. import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class ThreadSafeServlet extends HttpServlet { @override public void doGet (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException int counter; { synchronized (this) { //code in this block is thread-safe so update the instance variable } //other processing; } b) Single Thread Model –Implements SingleThreadModel interface to make our thread single threaded which means only one thread will execute service() or doXXX() method at a time. A single-threaded servlet is slower under load because new requests must wait for a free instance in order to proceed import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class ThreadSafeServlet extends HttpServlet implements SingleThreadModel { int counter; // no need to synchronize as implemented SingleThreadModel @override public void doGet (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { } Use of SingleThreadModel is deprecated as advisable to use synchronized block 12.4 Conclusion We need to be very careful while writing servlets as “by default servlets are not thread safe”. - If your servlet does not have any static or member variable then no need to worry and your servlet is thread safe - If your servlet just reads the instance variable then your servlet is thread safe. - If you need to modify the instance or static variables , update it in a synchronized block while holding a lock on Servlet instance If you follow above rules and next time if someone asks you “Are servlet thread safe? “ then answer confidently “ By default they are not but My Servlets are thread safe” .
http://wideskills.com/servlets/concurrency-in-servlets
CC-MAIN-2019-47
en
refinedweb
- Write a C program to check if one binary tree is subtree of another binary tree using recursion. Given two binary tree, we have to check whether one binary tree is subtree of another binary tree. A binary tree T is said to be the sub tree of another binary tree T2, if a tree rooted at any of the nodes of T2 is identical to T1. We will traverse every node of T2 and compare T1 with the sub tree rooted at every node of T2. Two trees are identical if, both contains same set of nodes and the relative arrangement of nodes in both trees are also same. Algorithm to check if one binary tree is subtree of another binary tree Let "root1" and "root2" be the root nodes of two binary tree T1 and T2 respectively. We want to check whether T2 is subtree of T1 or not. Time Complexity : O(mn), where m and n are the number of nodes in both trees. Let "root1" and "root2" be the root nodes of two binary tree T1 and T2 respectively. We want to check whether T2 is subtree of T1 or not. - If root2 is equal to NULL, then return true because an empty tree is sub tree of all binary tree. - If root1 is equal to NULL, then return false. - Check if the subtree rooted at root1 is identical to T2, If yes then return true. - Else, recursively check whether T2 is sub tree of left or right subtree of root1. C program to check whether one binary tree is subtree of another binary tree #include <stdio.h> #define TRUE 1 #define FALSE 0 struct node { int data; struct node *left; struct node *right; }; struct node* getNewNode(int data) { /* dynamically allocate memory for a new node */ struct node* newNode = (struct node*)malloc(sizeof(struct node)); /* populate data in new Node */ newNode->data = data; newNode->left = NULL; newNode->right = NULL; return newNode; } /* This function returns below tree 1 / \ 2 3 / \ / \ 4 5 6 7 / \ 8 9 */ struct node* generateBTree(){ // Root Node struct node* root = getNewNode(1); root->left = getNewNode(2); root->right = getNewNode(3); root->left->left = getNewNode(4); root->left->right = getNewNode(5); root->right->left = getNewNode(6); root->right->right = getNewNode(7); root->left->left->left = getNewNode(8); root->left->left->right = getNewNode(9); return root; } /* Checks, if two trees are same or not */ int isIdentical(struct node *first, struct node *second){ /*If both are NULL , then Identical */ if(first == NULL && second == NULL) return TRUE; /* If only one tree is NULL, then not Identical */ if(first == NULL || second == NULL) return FALSE; /* IF left sub-trees, right subtrees and root node of both trees are same then both trees are identical */ if(isIdentical(first->left, second->left) && isIdentical(first->right, second->right) && first->data == second->data){ return TRUE; } else { return FALSE; } } /* This function check whether second is a subtree of first or not. */ int checkSubTree(struct node *first, struct node *second) { /* Recursion termination condition */ if (second == NULL) return TRUE; if(first == NULL) return FALSE; /* Check if tree with first as root is same as tree with second as root node */ if(isIdentical(first, second)){ return TRUE; } /* Recursively check, If left and right subtree of first is same as second*/ return checkSubTree(first->left, second) || checkSubTree(first->right, second); } int main() { struct node *root = generateBTree(); struct node *subtree = root->left; /* Printing ancestor's of nodes */ if(checkSubTree(root, subtree)){ printf("TRUE\n"); } else { printf("FALSE\n"); } getchar(); return 0; }Output TRUE
https://www.techcrashcourse.com/2016/06/check-if-binary-tree-is-subtree-another-binary-tree.html
CC-MAIN-2019-47
en
refinedweb
Documenting REST API endpoints¶ This document explains the system for documenting Zulip’s REST API. This documentation is an essential resource both for users and the developers of Zulip’s mobile and terminal apps. We carefully designed a system for both displaying it and helping ensure it stays up to date as Zulip’s API changes. Our API documentation is defined by a few sets of files: Most data describing API endpoints and examples is stored in our OpenAPI configuration at zerver/openapi/zulip.yaml. The top-level templates live under templates/zerver/api/*, and are written using the markdown framework that powers our user docs, with some special extensions for rendering nice code blocks and example responses. The text for the Python examples comes from a test suite for the Python API documentation ( zerver/openapi/python_examples.py; run via tools/test-api). The generate_code_examplemacro will magically read content from that test suite and render it as the code example. This structure ensures that Zulip’s API documentation is robust to a wide range of possible typos and other bugs in the API documentation. The REST API index ( templates/zerver/help/include/rest-endpoints.md) in the broader /api left sidebar ( templates/zerver/api/sidebar_index.md). This first section is focused on explaining how the API documentation system is put together; when actually documenting an endpoint, you’ll want to also read the [Step by step guide][#step-by-step-guide]. How it works¶ To understand how this documentation system works, start by reading an existing doc file ( templates/zerver/api/render-message.md is a good example; accessible live here or in the development environment at). We highly recommend looking at those resouces while reading this page. If you look at the documentation for existing endpoints, you’ll notice that a typical endpoint’s documentation is divided into four sections: The top-level Description Usage examples Arguments Responses The rest of this guide describes how each of these sections works. Description¶ At the top of any REST endpoint documentation page, you’ll want to explain what the endpoint does in clear English. Including important notes on how to use it correctly or what it’s good or bad for, with links to any alternative endpoints the user might want to consider. These sections should almost always contain a link to the documentation of the relevant feature in We plan to migrate to storing this description content in the description field in zulip.yaml; currently, the description section in zulip.yaml is not used for anything. Usage examples¶ We display usage examples in three languages: Python, JavaScript and curl; we may add more in the future. Every endpoint should have Python and curl documentation; JavaScript is optional as we don’t consider that API library to be fully supported. The examples are defined using a special Markdown extension ( zerver/lib/bugdown/api_code_examples.py). To use this extension, one writes a Markdown file block that looks something like this: {start_tabs} {tab|python} {generate_code_example(python)|/messages/render:post|example} {tab|curl} curl -X POST {{ api_url }}/v1/messages/render \ ... {tab|javascript} ... {end_tabs} For JavaScript and curl examples, we just have the example right there in the markdown file. It is critical that these examples be tested manually by copy-pasting the result; it is very easy and very embarrassing to have typos result in incorrect documentation. Additionally, JavaScript examples should conform to the coding style and structure of Zulip’s existing JavaScript examples. For the Python examples, you’ll write the example in zerver/openapi/python_examples.py, and it’ll be run and verified automatically in Zulip’s automated test suite. The code there will look something like this: def render_message(client): # type: (Client) -> None # {code_example|start} # Render a message request = { 'content': '**foo**' } result = client.render_message(request) # {code_example|end} validate_against_openapi_schema(result, '/messages/render', 'post', '200') This is an actual Python function which (if registered correctly) will be run as part of the tools/test-api test suite. The validate_against_opanapi_schema function will verify that the result of that request is as defined in the examples in zerver/openapi/zulip.yaml. To register a function correctly: You need to add it to the TEST_FUNCTIONSmap; this declares the relationship between function names like render_messageand OpenAPI endpoints like /messages/render:post. The render_messagefunction needs to be called from test_messages(or one of the other functions at the bottom of the file). The final function, test_the_api, is what actually runs the tests. Test that your code actually runs in tools/test-api; a good way to do this is to break your code and make sure tools/test-apifails. You will still want to manually test the example using Zulip’s Python API client by copy-pasting from the website; it’s easy to make typos and other mistakes where variables are defined outside the tested block, and the tests are not foolproof. The code that renders /api pages will extract the block between the # {code_example|start} and # {code_example|end} comments, and substitute it in place of {generate_code_example(python)|/messages/render:post|example} wherever that string appears in the API documentation. Arguments¶ We have a separate Markdown extension to document the arguments that an API endpoint expects. You’ll see this in files like templates/zerver/api/render-message.md via the following Markdown directive (implemented in zerver/lib/bugdown/api_arguments_table_generator.py): {generate_api_arguments_table|zulip.yaml|/messages/render:post} Just as in the usage examples, the /messages/render key must match a URL definition in zerver/openapi/zulip.yaml, and that URL definition must have a post HTTP method defined. Displaying example payloads/responses¶ If you’ve already followed the steps in the Usage examples section, this part should be fairly trivial. You can use the following Markdown directive to render the fixtures defined in the OpenAPI zulip.yaml for a given endpoint and status code: {generate_code_example|/messages/render:post|fixture(200)} Step by step guide¶ This section offers a step-by-step process for adding documentation for a new API endpoint. It assumes you’ve read and understood the above. Start by adding OpenAPI format data to zerver/openapi/zulip.yamlfor the endpoint. If you copy-paste (which is helpful to get the indentation structure right), be sure to update all the content that you copied to correctly describe your endpoint! In order to do this, you need to figure out how the endpoint in question works by reading the code! To understand how arguments are specified in Zulip backend endpoints, read our REST API tutorial, paying special attention to the details of REQand has_request_variables. Once you understand that, the best way to determine the supported arguments for an API endpoint is to find the corresponding URL pattern in zprojects/urls.py, look up the backend function for that endpoint in zerver/views/, and inspect its arguments declared using REQ. You can check your formatting using two helpful tools. tools/check-openapiwill verify the syntax of zerver/openapi/zulip.yaml. tools/test-backend zerver/tests/test_openapi.py; this test compares your documentation against the code and can find many common mistakes in how arguments are declared. Add a function for the endpoint you’d like to document to zerver/openapi/python_examples.py. render_messageis a good example to follow. There are generally two key pieces to your test: (1) doing an API query and (2) verifying its result has the expected format using validate_against_openapi_schema. useful to be able to write working documentation for an endpoint that isn’t supported by python-zulip-apiyet. Add the function to the TEST_FUNCTIONSdict and one of the test_*functions at the end of zerver/openapi/python_examples.py; these will ensure your function will be called when running test-api. Capture the JSON response returned by the API call (the test “fixture”). The easiest way to do this is add an appropriate print statement (usually json.dumps(result, indent=4, sort_keys=True)), and then run tools/test-api. You can also use to format the JSON fixtures. Add the fixture to the examplesubsection of the responsessection for the endpoint in zerver/openapi/zulip.yaml.. Finally, write the markdown file for your API endpoint under templates/zerver/api/. This is usually pretty easy to template off existing endpoints; but refer to the system explanations above for details. Add the markdown file to the index in templates/zerver/help/include/rest-endpoints.md. Test your endpoint, pretending to be a new user in a hurry. You should make sure that copy-pasting the code in your examples works, and post an example of the output in the pull request. Why a custom system?¶ Given that our documentation is written in large part using the OpenAPI format, why maintain a custom markdown system for displaying it? There’s several major benefits to this system: It is extremely common for API documentation to become out of date as an API evolves; this automated testing system helps make it possible for Zulip to maintain accurate documentation without a lot of manual management. Every Zulip server can host correct API documentation for its version, with the key variables (like the Zulip server URL) already pre-susbtituted for the user. We’re able to share implementation language and visual styling with our Helper Center, which is especially useful for the extensive non-REST API documentation pages (e.g. our bot framework). Open source systems for displaying OpenAPI documentation (such as Swagger) have poor UI, whereas Cloud systems that accept OpenAPI data, like readme.io, make the above things much more difficult to manage. Using the standard OpenAPI format gives us flexibility, though; if the state of third-party tools improves, we don’t need to redo most of the actual documentation work in order to migrate tools.
https://zulip.readthedocs.io/en/latest/documentation/api.html
CC-MAIN-2019-47
en
refinedweb
Manually Lazy Load an Angular Module with ViewEngine and Ivy Find out how to lazy load an NgModule compatible with ViewEngine and Ivy 5 min read 5 min read So first of all, before starting right away, what is ViewEngine, what is Ivy? The Angular team is currently working on a complete inner rewrite of the compiler (codename: Ivy), basically the part of Angular that turns your Angular template HTML into executable, performant JavaScript code. If you’re using Angular <= 7, you’re running on ViewEngine. Starting with Angular 8, Ivy has been shipped behind a flag in experimental mode, while in Angular v9 it is active by default. “Ivy is an enabler” as Igor Minar said recently at Angular Connect. The rewrite does not only come with a more performant frameowork (at build and runtime), but opens up the way for a lot of new features and more advanced use cases. But that’s another story. Probably the most used and - if you want - default way of lazy loading modules in Angular is through the router. By simply specifying a route configuration with the import(...), Angular will take care of splitting that corresponding module out into a separate JavaScript file and then to lazy load it on demand once that specific route gets activated. RouterModule.forRoot([ { path: 'about', loadChildren: () => import('./about/about.module').then(m => m.AboutModule) } ]) More about that here: Let’s assume we have the following, very simple NgModule we want to lazy load: import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; @NgModule({ declarations: [], imports: [CommonModule] }) export class LazyModule { constructor() { console.log('lazy loaded: 🔥'); } } What we want to achieve is to get the console message being printed out. If we want to lazy load a module, that specific module and all its dependencies have to be bundled into a separate JavaScript file, s.t. we can then fetch that file lazily over the network. In Angular the CLI (and underlying Webpack) will take care of this code splitting. All we have to do is to use the dynamic import(...) statement. Note, prior to Angular 8 you had to use a custom syntax like loadChildren: './about/about.module#AboutModule'. As soon as we write… ... onLazy() { import('./lazy/lazy.module').then(m => m.LazyModule); } ... …into a click handler of our AppComponent, the Angular CLI detects it and generates a separate JS bundle for it. Also, clicking the button that triggers the onLazy() function shows how the bundle is dynamically fetched over the network. However in the Devtools console we don’t see the excepted console.log message of our LazyModule. The reason is that its file has been fetched, but the NgModule itself didn’t get instantiated. For this purpose let’s create a service LazyLoaderService. We want to be able to change our onLazy() function s.t. we can call our LazyLoaderService and pass in the dynamic import function. onLazy() { this.lazyLoaderService.loadModule(() => import('./lazy/lazy.module').then(m => m.LazyModule) ); } The loadModule function is implemented as follows: import { Compiler, Injectable, Injector, NgModuleFactory, Type } from '@angular/core'; @Injectable({ providedIn: 'root' }) export class LazyLoaderService { constructor(private compiler: Compiler, private injector: Injector) {} loadModule(path: any) { (path() as Promise<NgModuleFactory<any> | Type<any>>) .then(elementModuleOrFactory => { if (elementModuleOrFactory instanceof NgModuleFactory) { // if ViewEngine return elementModuleOrFactory; } else { try { // if Ivy return this.compiler.compileModuleAsync(elementModuleOrFactory); } catch (err) { throw err; } } }) .then(moduleFactory => { try { const elementModuleRef = moduleFactory.create(this.injector); const moduleInstance = elementModuleRef.instance; // do something with the module... } catch (err) { throw err; } }); } } Note the part in the middle: ... .then(elementModuleOrFactory => { if (elementModuleOrFactory instanceof NgModuleFactory) { // if ViewEngine return elementModuleOrFactory; } else { try { // if Ivy return this.compiler.compileModuleAsync(elementModuleOrFactory); } catch (err) { throw err; } } }) ... We need to distinguish here whether the result of the dynamic import is a NgModuleFactory (in ViewEngine) or whether it is Type<any> (in Ivy). In the latter case we need to use the Compiler to asynchronously compile the module on the fly. Once we have that, we can create the instance of the Module itself: const elementModuleRef = moduleFactory.create(this.injector); const moduleInstance = elementModuleRef.instance; With that, our LazyModule should get loaded and instantiated properly. Notice that prior to Angular 8 you had to use the NgModuleFactoryLoader which was part of the lazy loading “with magic strings” (i.e. loadChildren: './about/about.module#AboutModule') and which is now deprecated. You also don’t need to register the SystemJsNgModuleLoader provider any more. { provide: NgModuleFactoryLoader, useClass: SystemJsNgModuleLoader }, Other than that, you have seen that manually lazy loading Angular Modules isn’t that difficult after all. But it is also only just the first step, as in the end we want to lazy load the component 😉. GitHub repo:. If you are on Angular 8, my sample repo contains a script that can help you quickly enable Ivy to see how that works: $ npm run enable-ivy true // or $ yarn enable-ivy true
https://juristr.com/blog/2019/10/lazyload-module-ivy-viewengine/
CC-MAIN-2019-47
en
refinedweb
This article shows how to cascade a DropDownList with another DropDownList in ASP.NET using C#. This article shows how to cascade one dropdown list with another dropdown list in ASP.Net using C#. Here I took three dropdown lists, Country, State and City. You will see how to fill the state dropdownlist based on the data of the country dropdownlist. So here we go! Initial Chamber Step 1 Open your VS10, create an empty website (I hope you will get the idea of creating an empty website from my previous articles). Name it "Cascade_dropdownlist_demo". Step 2 In Solution Explorer, right-click on your website then select Add New Item -> Web Form. Name it dropdownlist_demo.aspx (or whatever you want to give the name. No pressure. :P). In Solution Explorer you will get your dropdownlist_demo.aspx and dropdownlist.aspx.cs, both files. Step 3 Again you need to get to Add New Item and Select -> SQL Server Database. (You know very well what we must do if they prompt you by asking Would you like to place your Database inside the App_Data_Folder? Say “Yes”, always). You will get your database in the Server Explorer (CTRL + ALT + S). Database Chamber Step 4 In Server Explorer, click on the arrow sign of your database (“Database.mdf”). Go to tables then right-click and select Add New Table. Make “Is Identity True”. Don't forgot it. Another thing is the data of the tables that you must enter manually. Just right-click on you tables (Country, State and City) then select Show Table Data. Here you need to add all the data that will be shown in the dropdown list when we run the project. Design Chamber Step 5 Open you dropdownlist.aspx from Solution Explorer and start designing you application. It will look Like this: Here is your design code: Coding Chamber Step 6 Now we are entering into our Code Zone. Let's begin by adding the following namespaces: Here is the code for cascading more than one dropdown list in ASP.Net: You can get your Connection String by going to your database (in Server Explorer). Right-click Properties and then you can see there “Connection String”. Copy it and paste it into the SQL connection field. Yeah! Surely your connection string is quite different from me, initially it will look like this: Before You need to remove the path and make it short like: C:\Users\Nilesh\Documents\Visual Studio 2010\WebSites\WebSite13\App_Data -- > Remove this And add instead of this |DataDirectory| After Output Chamber I hope you liked this. Enjoy your day with this tutorial. View All
https://www.c-sharpcorner.com/UploadFile/009464/cascading-one-dropdownlist-with-other-dropdownlist-in-asp-ne/
CC-MAIN-2019-47
en
refinedweb
Description: Wall Climbing Robot using Arduino, Bluetooth & Android App- In this tutorial, you will learn how to make a lightweight, low cost and highly efficient Wall Climbing Robot using a custom made controller board based on the Atmega328 microcontroller, this is the same microcontroller which is used in the Arduino Uno, HC-05 or HC-06 Bluetooth Module, L298N motor driver, 6v Mini Dc Gear Motors, and high RPM Quadcopter Brushless Dc Motor. The Forward, Back, Left, and Right movement of the Wall Climbing Robot is controlled wirelessly using a specially designed Android cell phone application. The high RPM Quad Copter Brushless Dc Motor is used to create the vacuum by sucking the air due to which the Robot sticks to the wall. This is going to be a very detailed tutorial, explaining everything, so that you can make the one by yourself. You can watch the demonstration video given at the end of this article. Without any further delay let’s get started!!! The components and tools used in this project can be purchased from Amazon, the components Purchase links are given below: Atmega328 microcontroller: 16Mhz crystal: 22pf capacitors: 10k Resistor: 10uf capacitors: Lm7805 Voltage Regulator: Dc female power jack: 6v 60RPM Mini Dc Gear Motors: Lipo Battery: High RPM Quad Copter Brushless Dc Motor: L298N Motor Driver: HC05 Bluetooth Module:! Wall Climbing Robot: A Robot is an electro-mechanical machine that is controlled remotely using wireless technology and is able to do tasks on its own. The majority of the Robots are Semi-automatic and are designed to perform different tasks depending on the instructions defined by the programmers. A Robot can be used for security purposes, it can capture Video & Audio information from the surroundings which can be then sent to a remote monitoring station through wireless communication. The aim of this project is to design and fabricate a Wall Climbing Robot using vacuum technology. The vacuum is created by the high RPM Brushless Dc Motor, the one used in Quad Copters. So far, four types of adhesion techniques have been investigated, - Magnetic devices for climbing ferrous surfaces. - Vacuum suction techniques for smooth and nonporous surfaces. - Attraction force generators based on aerodynamic principles. - Bio-mimetic approaches inspired by climbing animals. Some of the most famous Wall Climbing Robots, - City Climber: Wall climbing Robot - Mecho-gecko: Wall climbing Robot - Hyperion: Wall Climbing Robot - Lemur- Weight shifting rock climber style bot - Ninja-2 articulated leg Wall Climber Robot - C-Bot Wall Climbing Robot Prototype - Capuchin Weight Shifting Climbing Bot “Wall climber” - Robot Window Shade - The Stanford Sticky Bot - RiSE: the Amazing Insect Like Climbing Robot - Vortex RRAM Mobile Robot Platform - Flexible Finger magnetic Climbing Robot - SRI Static Electric Wall Climbing Robot - Sucker based independent limb wall climber - SPIBOT- Self-contained power source and vacuum pump The Things you need to take care of while making a Wall Climbing Robot: One of the most important things that you really need to take care of is the weight of the Robot. Use lightweight parts. Instead of using the large controller boards, like Arduino Uno or Mega2560 make a custom made controller board. This way you can reduce the price, size, and weight of the circuit board. Use very small Dc Gear Motors. While working on this project the only thing that I focused on was the weight of the Robot. For the best understanding, I designed a basic 3D model of the Wall Climbing Robot using SolidWorks 2016. I recorded the dimensions of all the electronic parts using a Vernier Caliper and then designed each part in the SolidWorks. I roughly started with a 12×12 inch base frame. Luckily a frame of this size could accommodate all the parts. Then I started searching for a 12×12 inch lightweight sheet and luckily I found a PCB Copperplate of the same dimensions. To overcome the bending problem I cut the corner edges of the Copperplate and then fixed the 6v 60RPM Mini Dc Geared motors. I used thermocol at the bottom side of the Copperplate to reduce the Air gap. This is just a 360 degrees wall ring, which you can easily make from a thermocol sheet. Smaller the gap, greater will be the suction. In case of high suction, you can reduce the motor speed using the Variable resistor which I will explain in the circuit diagram. After I was satisfied with the vacuum then I practically installed all the components. The final Wall Climbing Robot, Before I am going to explain the circuit diagram and Programming, first I would like to explain about the different electronic components used in this project. Mini Dc Gear Motor: This is a 6V 60RPM Mini Dc Gear Motor Operating Voltage is 6 Volts RPM (Rated Maximum) 60 ~ 100 RPM Torque, Effective 1.1 Kg/cm Dimensions: Depth: 10mm Height: 24.3mm Width: 12.1mm Product Weight: 9.5g L298N Motor Driver:. Now let’s take a closer look at the Pinout of L298N module. This module has three terminal blocks. terminal block1 will be used for motor A and is clearly labeled with out1 and out2, this is where we connect the two wires of the dc motor. Terminal block2 will be used for motor B and is clearly labeled with out3 and out4. While the terminal block3 is labeled with 12v, ground and +5v. The 12v terminal is used to supply the voltage to the dc motors, this voltage can be from 5 to 35volts. The ground terminal is connected with the ground of the external power supply and is also connected with the ground of the controller board, which in my case is Arduino board which is based on the atmega328 microcontroller, while the +5v terminal will be connected with the Arduino’s 5v. As you can see this motor driver also have some male headers which are clearly labeled with ENA…IN1…IN2…IN3…IN4 and ENB. The ENA and ENB are used to enable both the motors. Jumper caps which I will explain in the programming. Then IN1 and IN2 pins are used for controlling the direction of motor A while the IN3 and IN4 are used to control the direction of motor B. now let’s start the interfacing. For a detailed study read the following article. Arduino L298n Motor Driver control Tutorial, Speed & Direction, PWM HC05/HC06 Bluetooth Module: I already have a very detailed tutorial on how to use the HC05 or HC06 Bluetooth Module. You can find so many video tutorials on my YouTube channel “electronic clinic”. Wall Climbing Robot Android application: The Android cell phone application is protected with a username and password. The default username and password is “admin”, which later you can replace with a new username and password. Click on the Download button given below to download the APK files. Download: wallclimbing Circuit Diagram of the Wall Climbing Robot: The circuit diagram of the Wall Climbing Robot is very simple. At the very top in the circuit diagram is the 5v regulated Power Supply which is based on the LM7805 voltage regulator. The 5 volts from this regulator is used to power up the Atmega328 microcontroller and is also connected with the +5v pins of the L298N Motor Drivers. The 5volts from the LM7805 are also used to power up the HC05 Bluetooth Module. The entire circuit is powered up using the Lipo Battery. The Bluetooth module is connected with the Atmega328 TX and RX pins. The TX pin of the Bluetooth Module is connected with the RX pin of the Atmega328 microcontroller while the RX pin of the HC05 Bluetooth Module is connected with the TX pin of the Atmega328 microcontroller. While uploading the program into the Atmega328 microcontroller disconnect the TX and RX pins. Otherwise, you won’t be able to upload the program. As you know each L298N Motor Driver can be used to control 2 motors. As you know in this project 4 motors are used, so, it means we will need two L298N motor drivers. All the 4 motors are connected with the outputs of the Motor Drivers” L298N” which can be clearly seen in the circuit diagram. The input pins of the L298N Motor Driver are connected with the Atmega328 microcontroller. All the pins are clearly labeled. The PWM pin of the Brushless Motor is connected with the Atmega328 pin number 11 which is the PWM pin. Pin number 11 is used to control the speed of the Brushless Motor. A variable resistor is connected with the Analog pin of the Atmega328 controller, this variable resistor is used to control the speed of the Brushless motor. By rotating the Knob of the Variable Resistor the speed can be adjusted. Atmega328 Microcontroller PCB Board Layout: This PCB is designed in Cadsoft Eagle. The PCB board file of the Atmega328 microcontroller can be downloaded by clicking on the link given below. Download: atmega328 board file eagle Wall Climbing Robot Arduino Programming: Wall Climbing Robot Arduino Program explanation: I started off with the SoftwareSerial Library. The SoftwareSerial library is used for creating multiple Serial ports. As you know in Arduino Uno we have only one Serial port which is available on Pin number0 and Pin number1. Currently, I am using the Arduino’s default Serial port. #include <SoftwareSerial.h> I defined a Serial port on pin number 0 and pin number 1. You can change these pins, you can use 2 and 3 or any other pins. Just change the numbers. As I am using only one device” Bluetooth Module” which supports Serial communication, so that’s I am using the Arduino’s default Serial port. SoftwareSerial Blue(0, 1); Defined some variables. long int data; int nob = 0; // variable resistor connected to analog pin A0 this variable resistor is used to control the speed of the QuadCopter Brushless Dc Motor. Set the speed which best suits your requirements. int nobdata = 0; The following are the commands which are used to control the Forward, Reverse, Right, and Left movement of the Wall Climbing Robot. The purpose of using the Long int data type is that you can use large numbers which can be 6 digits long, this will increase the security. Nobody will be able to find which commands are used to control the Robot. So each command acts as the password. These commands are sent from the Android cell phone application. long int password1 = 92;// forward long int password2 = 91;// reverse long int password3 = 71; // right long int password4 = 79;// left long int password5 = 89; // stop char state = 0; Then I defined pins for the 4 motors. int urmw1 = 2; // up right motor wire 1 int urmw2 = 3; // up right motor wire2 int drmw1 = 4; // down right motor wire1 int drmw2 = 5; // down right motor wire2 int ulmw1 = 6; // up left motor wire1 int ulmw2 = 7; // up left motor wire2 int dlmw1 = 8; // down left motor wire1 int dlmw2 = 9; // down left motor wire2 The speed controller is connected with the Arduino’s pin number 11. int bdm = 11; // brushless dc motor in the void Setup() we do the basic settings, we tell the controller which are the input pins and which are the output pins. We activate the Serial communication using the Serial.begin(). In this project I am using 9600 as the baud rate. This is the communication speed. void setup() { pinMode(bdm, OUTPUT); pinMode(nob, INPUT); pinMode(urmw1, OUTPUT); pinMode(urmw2, OUTPUT); pinMode(drmw1, OUTPUT); pinMode(drmw2, OUTPUT); pinMode(ulmw1, OUTPUT); pinMode(ulmw2, OUTPUT); pinMode(dlmw1, OUTPUT); pinMode(dlmw2, OUTPUT); // keep all the motors off by default); Serial.begin(9600); Blue.begin(9600); delay(1000); } Void loop() executes infinite times, the main code is kept inside this function. void means that this function has no return type and the empty parenthesis means that this function is not taking any arguments as the input. void loop() { // while(Blue.available()==0) ; nobdata = analogRead(nob); The above instruction is used to read the Variable resistor connected with the analog pin A0 of the Arduino and store the value in variable nobdata. nobdata = map(nobdata, 0, 1024, 0, 255); using the map function the data is mapped. The minimum and maximum value can be 0 and 255. This is used to control the speed of the Brushless Dc Motor. analogWrite(bdm,nobdata); //Serial.println(nobdata); delay(20); if(Blue.available()>0) // if the Arduino has received data from the Bluetooth module. { Store the incoming values in variable data. data = Blue.parseInt(); delay(200); } //delay(1000); //Serial.print(data); The following conditions are used to compare the received value with the pre-defined values. If the received value is similar to the pre-defined value then the motors are controlled accordingly. if (data == password1) // forward { digitalWrite(urmw1, HIGH); digitalWrite(urmw2, LOW); digitalWrite(drmw1, HIGH); digitalWrite(drmw2, LOW); digitalWrite(ulmw1, LOW); digitalWrite(ulmw2, HIGH); digitalWrite(dlmw1, LOW); digitalWrite(dlmw2, HIGH); data = 45; // garbage value to stop repetition Serial.println(“Forward”); } if( data == password2) // reverse { digitalWrite(urmw1, LOW); digitalWrite(urmw2, HIGH); digitalWrite(drmw1, LOW); digitalWrite(drmw2, HIGH); digitalWrite(ulmw1, HIGH); digitalWrite(ulmw2, LOW); digitalWrite(dlmw1, HIGH); digitalWrite(dlmw2, LOW); data = 45; // garbage value to stop repetion Serial.println(“Reverse”); } else if( data == password3) // right { digitalWrite(urmw1, LOW); digitalWrite(urmw2, HIGH); digitalWrite(drmw1, LOW); digitalWrite(drmw2, HIGH); digitalWrite(ulmw1, LOW); digitalWrite(ulmw2, HIGH); digitalWrite(dlmw1, LOW); digitalWrite(dlmw2, HIGH); data = 45; // garbage value to stop repetion Serial.println(“right”); } else if( data == password4) // left { digitalWrite(urmw1, HIGH); digitalWrite(urmw2, LOW); digitalWrite(drmw1, HIGH); digitalWrite(drmw2, LOW); digitalWrite(ulmw1, HIGH); digitalWrite(ulmw2, LOW); digitalWrite(dlmw1, HIGH); digitalWrite(dlmw2, LOW); data = 45; // garbage value to stop repetition Serial.println(“Left”); } else if( data == password5) // stop {); data = 45; // garbage value to stop repetition Serial.println(“stop”); } } Wall Climbing Robot Tests: After uploading the program and installing the Android application. I powered up the Wall Climbing Robot using the Lipo Battery and adjusted the speed of the Brushless Dc Motor. My first test was to test the suction created by the Brushless Dc Motor. The Wall Climbing Robot stuck to the Wall Surface. I could feel that force. My initial test was a great success. Then I performed some tests on Wooden sheets, Walls, and Glass. On the Wall and Wooden sheet surfaces the Wall Climbing Robot could move without any problem, but on the Mirror surface there was the sliding problem. For the extremely smooth surfaces, the suctions cups can be used. Wall Climbing Robot in Action:
https://www.electroniclinic.com/wall-climbing-robot-car-using-arduino-bluetooth-android-app/
CC-MAIN-2019-47
en
refinedweb
Full of built-in features and optional extensions, Andy Wardley's Template Toolkit has proven a popular choice for web templating. Although TT2 is useful for generating practically any format, it is especially suited for generating and transforming XML content. The Template Toolkit implements a modest set of simple directives that provide access to common templating system features: inline variable interpolation, inclusion of component templates and flat files, conditional blocks, loop constructs, exception handling, and more. Directives are combined and mixed with literal output using [% . . . %] as default delimiters. We will not cover TT2's complete syntax and feature set in any detail here (it would likely fill a book), so if you are not familiar with it, visit the project home page at. A simple TT2 template looks like this: <html> <head> [% INCLUDE common_meta title="My Latest Rant" %] </head> <body> [% INSERT static_header %] <p> Pleurodonts! Crinoids! Wildebeests! Lend me your, um, ears . . . </p> [% INSERT static_footer %] </body> </html> This simple HTML template includes and processes a separate common_meta template, setting that template's local title variable. It then inserts static page header and footer components around the document's main content. The directive syntax is not Perl, though it is rather Perl-minded (and you can embed raw Perl into your templates by setting the proper configuration options, if you want), nor is it really like XML. Part of what makes the Template Toolkit a good fit with an XML environment is precisely that its directive and default delimiter syntax is so markedly different from the syntax of both Perl and XML. For example, XSP and other XML grammars that use Perl as the embedded language often require logic blocks to be wrapped in CDATA sections to avoid potential XML well- formedness errors caused by common Perl operators and "here" document syntax. Similarly, documents created for templating systems that use angle brackets as delimiters often cannot be processed with XML tools. Those that can often require the use of XML namespaces to distinguish between markup that is part of the application grammar and markup meant to be part of the output. The Template Toolkit's syntax deftly avoids these potential annoyances by limiting its operators to a handful of markup-friendly characters and letting different things (embedded directives) be and look substantially different from the literal output. When considering how the Template Toolkit can be used within the context of AxKit, it is natural to first think of creating a Provider class that simply returns the content generated from the template expansion; it would be easy enough to do so. However, a closer look at the Template Toolkit's features shows that it can be useful for transforming XML content, as well. This means that it is probably best implemented as an AxKit Language module, rather than a Provider. In fact, integrating the Template Toolkit via the Language interface creates a unique medium that offers an alternative to both XSP (for generating content), and XSLT and XPathScript (for transforming it). Based on what you already know from the details covered in Section 8.3, creating an AxKit Language interface for the Template Toolkit is pretty straightforwardyou simply store the result of the template process in the appropriate Apache pnotes field. But to pull double duty as both a generative and transformative language, the Template Toolkit Language module needs to be a bit smarter . That is, in cases in which you would use the language to generate content, the source XML itself contains the template to be processed. There is no external stylesheet. When you want to use the Template Toolkit's powers to transform XML, then an external template is required. To be truly useful, the AxKit Template Toolkit Language module needs to be able to distinguish between these two cases. Example 9-1 is an excerpt from a simplified version of the Apache::AxKit::Language::TemplateToolkit2 class. package Language::TemplateToolkit2; use strict; use vars qw( @ISA ); use Apache::AxKit::Language; use Template; @ISA = qw( Apache::AxKit::Language ); sub handler { my $class = shift; my ($r, $xml, $style, $last_in_chain) = @_; AxKit::Debug( 5, 'Language::TT2 called'); my $input_string = undef; my $xml_string = undef; my $result_string = ''; my $params = { Apache => $r }; if (my $dom = $r->pnotes('dom_tree')) { $xml_string = $dom->toString; } else { $xml_string = $r->pnotes('xml_string'); delete $r->pnotes( )->{'xml_string'}; } $xml_string = ${$xml->get_strref( )}; # process the source as the template, or a param passed to # an external template if ( $style->{file} =~ /NULL$/ ) { $input_string = $xml_string; } else { $params->{xmlstring} = $xml_string; $input_string = ${$style->get_strref( )}; } my $tt = Template->new( get_tt_config($r) ); $tt->process($input_string, $params, $result_string ) throw Apache::AxKit::Exception::Error( -text => "Error processing TT2 template: " . $tt->error( ) ); delete $r->pnotes( )->{'dom_tree'}; $r->pnotes('xml_string', $result_string); return Apache::Constants::OK; } # helper functions, etc. 1; Essentially, this module's main handler( ) method examines the path to the stylesheet for the current transformation. If that option contains the literal value NULL as the final step, then the source content is expected to contain the template document to be processed, much the same way that XSP works. Otherwise, that path is used as the location of the external template to which the source content is passed as a parameter, named xmlstring , for further processing. This allows you to use the Template Toolkit in both generative and transformative contexts while using AxKit's configuration directive syntax and conventions to differentiate between the two cases. The following configuration snippet illustrates both uses: # Add the Language module AxAddStyleMap application/x-tt2 Apache::AxKit::Language::TemplateToolkit2 # TT2 as a generative Language such as XSP (source defines the template) AxAddProcessor application/x-tt2 NULL # TT2 as a transformative Language such as XSLT (external template applied to source) AxAddProcessor application/x-tt2 /styles/mytemplate.tt2 Generating content using the Language::TemplateToolkit2 module follows the most common uses of the Template Toolkit, in general. It combines literal markup with special directives to construct a complete result when processed by the Template engine. Used in this way, the top-level template acts like an XSP page; that is, no external stylesheet is applied. The source document itself is what gets processed. Because the template is the source content, it must be a well- formed XML document, since AxKit will extract the root element name , document-type information, and any xml-stylesheet processing instructions that may be contained there for use with the style processor configuration directives (as it does with all content sources). <?xml version="1.0"?> <products> [% USE DBI( 'dbi:driver:dbname', 'user', 'passwd' ) %] [% FOREACH product DBI.query( 'SELECT * FROM products' ) %] <product id="[% product.id %]"> <name>[% product.name %]</name> <description>[% product.description %]</description> <price>[% product.price %]</price> <stock>[% product.stock %]</stock> </product> [% END %] </products> This simple template uses the Template Toolkit's DBI plug-in to select product information from a relational database and generate an appropriate product element for each row returned. To configure AxKit to process this template as expected, you only need to add the correct directives to the host's httpd.conf or .htaccess file: <Location /products.xml> AxAddProcessor application/x-tt2 NULL</emphasis> AxAddProcessor text/xsl /styles/generic.xsl </Location> Or, if you do not mind hardcoding styling information into the document itself, you can achieve the same effect by adding xml-stylesheet processing instructions to the template. <?xml version="1.0"?> <?xml-stylesheet <name>[% product.name %]</name> <description>[% product.description %]</description> <price>[% product.price %]</price> <stock>[% product.stock %]</stock> </product> [% END %] </products> While XSP is solely concerned with generating content, TT2's filtering capabilities make it useful as a transformative language as well: <html> <head><title>Our Products</title></head> [% USE xpath = XML.XPath(xmlstring) %] <body> <h1>Our Products</h1> [% PROCESS productlist %] </body> </html> [% BLOCK productlist %] <table> <tr> <th>ID</th><th>Name</th><th>Description</th><th>Price</th><th>In Stock</th> </tr> [% FOREACH product = xpath.findnodes('/products/product') %] [% PROCESS product item = product %] [% END %] </table> [% END %] [% BLOCK product %] <tr> <td>[% item.getAttribute('id') %]</td> <td>[% item.findvalue('name') %]</td> <td>[% item.findvalue('description') %]</td> <td>[% item.findvalue('price') %]</td> <td>[% item.findvalue('stock') %]</td> </tr> [% END %] This is how the same transformation can be done with XSLT: <?xml version="1.0"?> <xsl:stylesheet xmlns: <xsl:template <html> <head><title>Our Products</title></head> <body> <h1>Our Products</h1> <xsl:call-template </body> </html> </xsl:template> <xsl:template <table> <tr> <th>ID</th><th>Name</th><th>Description</th><th>Price</th><th>In Stock</th> </tr> <xsl:for-each <xsl:apply-templates </xsl:for-each> </table> </xsl:template> <xsl:template <tr> <td><xsl:value-of</td> <td><xsl:value-of</td> <td><xsl:value-of</td> <td><xsl:value-of</td> <td><xsl:value-of</td> </tr> </xsl:template> </xsl:stylesheet> If you favor another templating system and want to make it available as an AxKit Language module, please see Section 8.4 for more detail about creating your own custom AxKit Language module.
https://flylib.com/books/en/1.117.1.53/1/
CC-MAIN-2019-47
en
refinedweb
stack created HBASE-9197: ---------------------------- Summary: TestAdmin#testShouldCloseTheRegionBasedOnTheEncodedRegionName shuts down the namespaces table and never starts it up again Key: HBASE-9197 URL: Project: HBase Issue Type: Bug Reporter: stack Because the ns table is offline, all subsequent tests just keep retrying and eventually fail (This contribs to the hung TestAdmin we've been seeing of late). -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see:
http://mail-archives.apache.org/mod_mbox/hbase-issues/201308.mbox/%3CJIRA.12663326.1376352503887.50900.1376352588529@arcas%3E
CC-MAIN-2017-43
en
refinedweb
Unleash Your DevOps Strategy by Synchronizing Application and Database Changes REGISTER > Answer: Java does not provide any support for printing at this point. Printer access may be provided in future releases of Java but there is no standard platform-independent way to print from Java applets or Java applications today. This probably has as much to do with the multitude of printing software and printers out there as it does with the many ways operating systems handle printing. If Java were to support one, it would have to support all of them in order to remain truly cross-platform. Even if there were a way to print from Java, applets probably wouldn't be allowed to print simply because applet access to local devices and files is strictly forbidden for security reasons. Imagine a malicious applet that started printing garbage to the user's local printer as soon as it was loaded from the Net. It might steal fonts out of your printer, interfere with the existing print jobs, or print tons and tons of annoying advertisements without your knowing where they came from. You might be able to create a standalone Java application for printing to a particular device on a given operating system, but it's sure to be platform dependent. For example, if there's a way to get to the parallel or serial port on your system through a file name, say /dev/ttya on UNIX systems, or lpt1 on wintel systems, you can certainly open a connection to the printer through the parallel or serial port file name and feed the text or postscript data to it, but there is no way for the app to know if it's talking to a printer or to a modem. Here's how that might look in Java: import java.io.*; PrintStream printer = new PrintStream(new FileOutputStream("/dev/ttya")); for (int i = 0; i < lineCount; i++) printer.println(line[i]); Please enable Javascript in your browser, before you post the comment! Now Javascript is disabled. Your name/nickname Your email WebSite Subject (Maximum characters: 1200). You have 1200 characters left.
http://www.devx.com/tips/Tip/23179
CC-MAIN-2017-43
en
refinedweb
AUDIT_LOG_USER_COMMAND(3) Linux Audit API AUDIT_LOG_USER_COMMAND(3) audit_log_user_command - log a user command #include <libaudit.h> int audit_log_user_command(int audit_fd, int type, const char *command, const char *tty, int result); This function will log a command to the audit system using a predefined message format. It encodes the command as the audit system expects for untrusted strings. This function should be used by all apps need to record commands. The function parameters are as follows: audit_fd - The fd returned by audit_open type - type of message, ex: AUDIT_USYS_CONFIG, AUDIT_USER_LOGIN command - the command being logged_user_comm AUDIT_LOG_USER_COMMAND(3)
http://man7.org/linux/man-pages/man3/audit_log_user_command.3.html
CC-MAIN-2017-43
en
refinedweb
As explained in Part 1 of this series, PostgreSQL provides a few categories of key metrics to help users track their databases’ health and performance. PostgreSQL’s built-in statistics collector automatically aggregates most of these metrics internally, so you’ll simply need to query predefined statistics views in order to start gaining more visibility into your databases. Because some of the metrics mentioned in Part 1 are not accessible through these statistics views, they will need to be collected through other sources, as explained in a later section. In this post, we will show you how to access key metrics from PostgreSQL (through the statistics collector and other native sources), and with an open source, dedicated monitoring tool. The PostgreSQL statistics collector The PostgreSQL statistics collector enables users to access most of the metrics described in Part 1, by querying several key statistics views, including: pg_stat_database(displays one row per database) pg_stat_user_tables(one row per table in the current database) pg_stat_user_indexes(one row per index in the current database) pg_stat_bgwriter(only shows one row, since there is only one background writer process) pg_statio_user_tables(one row per table in the current database) The collector aggregates statistics on a per-table, per-database, or per-index basis, depending on the metric. You can dig deeper into each statistics view’s actual query language by looking at the system views source code. For example, the code for pg_stat_database indicates that it queries the number of connections, deadlocks, and tuples/rows fetched, returned, updated, inserted, and deleted. Configuring the PostgreSQL statistics collector While some types of internal statistics are collected by default, others must be manually enabled, because of the additional load it would place on each query. By default, PostgreSQL’s statistics collector should already be set up to collect most of the metrics covered in Part 1. To confirm this, you can check your postgresql.conf file to see what PostgreSQL is currently collecting, and specify any desired changes in the “Runtime Statistics” section: #------------------------------------------------------------------------------ # RUNTIME STATISTICS #------------------------------------------------------------------------------ # - Query/Index Statistics Collector - #track_activities = on #track_counts = on #track_io_timing = off #track_functions = none # none, pl, all #track_activity_query_size = 1024 # (change requires restart) #update_process_title = on #stats_temp_directory = 'pg_stat_tmp' In the default settings shown above, PostgreSQL will not track disk block I/O latency ( track_io_timing), or user-defined functions ( track_functions), so if you want to collect these metrics, you’ll need to enable them in the configuration file. The statistics collector process continuously aggregates data about the server activity, but it will only report the data as frequently as specified by the PGSTAT_STAT_INTERVAL (500 milliseconds, by default). Queries to the statistics collector views will not yield data about any queries or transactions that are currently in progress. Note that each time a query is issued to one of the statistics views, it will use the latest report to deliver information about the database’s activity at that point in time, so it will be slightly delayed in comparison to real-time activity. Once you’ve configured the PostgreSQL statistics collector to collect the data you need, you can query these activity stats just like any data from your database. You’ll need to create a user and grant that user with read-only access to the pg_stat_database table: create user <USERNAME> with password <PASSWORD>; grant SELECT ON pg_stat_database to <USERNAME>; Once you initialize a psql session under that user, you should be able to start querying the database’s activity statistics. pg_stat_database Let’s take a look at the pg_stat_database statistics view in more detail: SELECT * FROM pg_stat_database; -------+------------+-------------+-------------+---------------+-----------+----------+--------------+-------------+--------------+-------------+-------------+-----------+------------+------------+-----------+---------------+----------------+------------------------------- 1 | template1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 12061 | template0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 12066 | postgres | 2 | 77887 | 11 | 249 | 2142032 | 35291376 | 429228 | 59 | 4 | 58 | 0 | 0 | 0 | 0 | 0 | 0 | 2017-09-07 17:24:57.739225-04 16394 | employees | 0 | 66146 | 6 | 248 | 1822528 | 30345213 | 365608 | 176 | 6 | 62 | 0 | 0 | 0 | 0 | 0 | 0 | 2017-09-11 16:04:59.039319-04 16450 | exampledb | 0 | 350 | 0 | 2920 | 33853 | 517601 | 9341 | 173159 | 449 | 13 | 0 | 0 | 0 | 0 | 0 | 0 | 2017-10-04 14:13:35.125243-04 pg_stat_database collects statistics about each database in the cluster, including the number of connections (numbackends), commits, rollbacks, rows/tuples fetched and returned. Each row displays statistics for a different database, but you can also limit your query to a specific database as shown below: SELECT * FROM pg_stat_database WHERE datname = 'employees'; -------+-----------+-------------+-------------+---------------+-----------+----------+--------------+-------------+--------------+-------------+-------------+-----------+------------+------------+-----------+---------------+----------------+------------------------------- 16394 | employees | 0 | 66286 | 6 | 248 | 1826378 | 30409473 | 366378 | 176 | 6 | 62 | 0 | 0 | 0 | 0 | 0 | 0 | 2017-09-11 16:04:59.039319-04 (1 row) pg_stat_user_tables Whereas pg_stat_database collects and displays statistics for each database, pg_stat_user_tables displays statistics for each of the user tables in a particular database. Start a psql session, making sure to specify a database and a user that has read access to the database: psql -d exampledb -U someuser Now you can access activity statistics for this database, broken down by each table: SELECT * FROM pg_stat_user_tables; relid | schemaname | relname | seq_scan | seq_tup_read | idx_scan | idx_tup_fetch | n_tup_ins | n_tup_upd | n_tup_del | n_tup_hot_upd | n_live_tup | n_dead_tup | last_vacuum | last_autovacuum | last_analyze | last_autoanalyze | vacuum_count | autovacuum_count | analyze_count | autoanalyze_count -------+------------+------------+----------+--------------+----------+---------------+-----------+-----------+-----------+---------------+------------+------------+-------------------------------+-----------------+-------------------------------+-------------------------------+--------------+------------------+---------------+------------------- 16463 | public | customers | 6 | 100500 | 0 | 0 | 20000 | 0 | 0 | 0 | 20000 | 0 | 2017-10-04 14:13:59.945161-04 | | 2017-10-04 14:14:00.942368-04 | 2017-10-04 14:13:59.17257-04 | 1 | 0 | 1 | 1 16478 | public | orders | 5 | 60000 | 0 | 0 | 12000 | 0 | 0 | 0 | 12000 | 0 | 2017-10-04 14:14:00.946525-04 | | 2017-10-04 14:14:00.977419-04 | 2017-10-04 14:13:59.221127-04 | 1 | 0 | 1 | 1 16484 | public | products | 3 | 30000 | 0 | 0 | 10000 | 0 | 0 | 0 | 10000 | 0 | 2017-10-04 14:13:59.768383-04 | | 2017-10-04 14:13:59.827651-04 | 2017-10-04 14:13:57.708035-04 | 1 | 0 | 1 | 1 16473 | public | orderlines | 2 | 120700 | 0 | 0 | 60350 | 0 | 0 | 0 | 60350 | 0 | 2017-10-04 14:13:59.845423-04 | | 2017-10-04 14:13:59.900862-04 | 2017-10-04 14:13:57.816999-04 | 1 | 0 | 1 | 1 16488 | public | reorder | 0 | 0 | | | 0 | 0 | 0 | 0 | 0 | 0 | 2017-10-04 14:13:59.828718-04 | | 2017-10-04 14:13:59.829075-04 | | 1 | 0 | 1 | 0 16454 | public | categories | 2 | 32 | 0 | 0 | 16 | 0 | 0 | 0 | 16 | 0 | 2017-10-04 14:13:59.589964-04 | | 2017-10-04 14:13:59.591064-04 | | 1 | 0 | 1 | 0 16470 | public | inventory | 1 | 10000 | 0 | 0 | 10000 | 0 | 0 | 0 | 10000 | 0 | 2017-10-04 14:13:59.593678-04 | | 2017-10-04 14:13:59.601726-04 | 2017-10-04 14:13:57.612466-04 | 1 | 0 | 1 | 1 16458 | public | cust_hist | 2 | 120700 | 0 | 0 | 60350 | 0 | 0 | 0 | 60350 | 0 | 2017-10-04 14:13:59.908188-04 | | 2017-10-04 14:13:59.94001-04 | 2017-10-04 14:13:57.885104-04 | 1 | 0 | 1 | 1 (8 rows) The exampledb database contains eight tables. With pg_stat_user_tables, we can see a cumulative count of the sequential scans, index scans, and rows fetched/read/updated within each table. pg_statio_user_tables pg_statio_user_tables helps you analyze how often your queries are utilizing the shared buffer cache. Just like pg_stat_user_tables, you’ll need to start a psql session and specify a database and a user that has read access to the database. This view displays a cumulative count of blocks read, the number of blocks that were hits in the shared buffer cache, as well as other information about the types of blocks that were read from each table. SELECT * FROM pg_statio_user_tables; relid | schemaname | relname | heap_blks_read | heap_blks_hit | idx_blks_read | idx_blks_hit | toast_blks_read | toast_blks_hit | tidx_blks_read | tidx_blks_hit -------+------------+------------+----------------+---------------+---------------+--------------+-----------------+----------------+----------------+--------------- 16463 | public | customers | 492 | 5382 | 137 | 4 | 0 | 0 | 0 | 0 16488 | public | reorder | 0 | 0 | | | | | | 16478 | public | orders | 104 | 1100 | 70 | 2 | | | | 16454 | public | categories | 5 | 7 | 2 | 0 | | | | 16484 | public | products | 105 | 909 | 87 | 0 | | | | 16473 | public | orderlines | 389 | 3080 | 167 | 0 | | | | 16458 | public | cust_hist | 331 | 2616 | 167 | 0 | | | | 16470 | public | inventory | 59 | 385 | 29 | 0 | | | | (8 rows) You can also calculate a hit rate of blocks read from the shared buffer cache, using a query like this: SELECT sum(heap_blks_read) as blocks_read, sum(heap_blks_hit) as blocks_hit, sum(heap_blks_hit) / (sum(heap_blks_hit) + sum(heap_blks_read)) as hit_ratio FROM pg_statio_user_tables; blocks_read | blocks_hit | hit_ratio -------------+------------+------------------------ 1485 | 13479 | 0.90076182838813151564 (1 row) You may recall from Part 1 that the heap_blks_hit statistic only tracks the number of blocks that were hits in the shared buffer cache. Even if a block wasn’t recorded as a hit in the shared buffer cache, it may still have been accessed from the OS cache rather than read from disk. Therefore, monitoring pg_statio_user_tables alongside system-level metrics will provide a more accurate assessment of how often data was queried without having to access the disk. pg_stat_user_indexes pg_stat_user_indexes shows us how often each index in any database is actually being used. Querying this view can help you determine if any indexes are underutilized, so that you can consider deleting them in order to make better use of resources. To query this view, start a psql session, making sure to specify the database you’d like to query, and a user that has read access to that database. Now you can query this view like any other table, like so: | 0 | 0 | 0) To track how these statistics change over time, let’s try querying data by using one of the indexes: SELECT * FROM customers WHERE customerid=55; customerid | firstname | lastname | address1 | address2 | city | state | zip | country | region | email | phone | creditcardtype | creditcard | creditcardexpiration | username | password | age | income | gender ------------+-----------+------------+---------------------+----------+---------+-------+-------+---------+--------+---------------------+------------+----------------+------------------+----------------------+----------+----------+-----+--------+-------- 55 | BHNECK | XVDQMTQHMH | 3574669247 Dell Way | | DHFGOUC | NE | 51427 | US | 1 | XVDQMTQHMH@dell.com | 3574669247 | 1 | 8774650241713972 | 2009/07 | user55 | password | 61 | 60000 | M (1 row) Now, when we query pg_stat_user_indexes, we can see that the statistics collector detected that an index scan occurred on our customers_pkey index: | 1 | 1 | 1) pg_stat_bgwriter As mentioned in Part 1, monitoring the checkpoint process can help you determine how much load is being placed on your databases. The pg_stat_bgwriter view will return one row of data that shows the number of total checkpoints occurring across all databases in your cluster, broken down by the type of checkpoint (timed or requested), and how they were executed—during a checkpoint process (buffers_checkpoint), by backends (buffers_backend), or by the background writer (buffers_clean): SELECT * FROM pg_stat_bgwriter; checkpoints_timed | checkpoints_req | checkpoint_write_time | checkpoint_sync_time | buffers_checkpoint | buffers_clean | maxwritten_clean | buffers_backend | buffers_backend_fsync | buffers_alloc | stats_reset -------------------+-----------------+-----------------------+----------------------+-------------------+--------------+------------------+-----------------+---------------------+--------------+------------------------------- 7768 | 12 | 321086 | 135 | 4064 | 0 | 0 | 368475 | 0 | 5221 | 2017-09-07 17:24:56.770953-04 (1 row) Querying other PostgreSQL statistics Although most of the metrics covered in Part 1 are available through PostgreSQL’s predefined statistics views, these three types of metrics need to be accessed through system administration functions and other native sources: Tracking replication delay In order to track replication delay, you’ll need to query recovery information functions on each standby server that is in continuous recovery mode (which simply means that it continuously receives and applies WAL updates from the primary server). Replication delay tracks the delay between applying the WAL update (“replaying” the update that already happened on the master), and applying that WAL update to disk. To calculate replication lag (in bytes) on each standby, you’ll need to find the difference between two recovery information functions: pg_last_xlog_receive_location() (the location in the WAL file that was most recently synced to disk on the standby), and pg_last_xlog_replay_location() (the location in the WAL file that was most recently applied/replayed on the standby). Note that these functions have been renamed in PostgreSQL 10, to pg_last_wal_receive_lsn() and pg_last_wal_replay_lsn(). To calculate this lag in seconds instead of bytes, you can extract the timestamp from pg_last_xlog_replay_location() or pg_last_wal_replay_lsn(), depending on what version you’re running. Connection metrics Although you can access the number of active connections through pg_stat_database, you’ll need to query pg_settings to find the server’s current setting for the maximum number of connections: SELECT setting::float FROM pg_settings WHERE name = 'max_connections'; If you use a connection pool like PgBouncer to proxy connections between your applications and PostgreSQL backends, you can also monitor metrics from your connection pool in order to ensure that connections are functioning as expected. Locks You can also track the most recent status of locks granted across each of your databases, by querying the pg_locks view. The following query provides a breakdown of the type of lock (in the mode column), as well as the relevant database, relation, and process ID. SELECT locktype, database, relation::regclass, mode, pid FROM pg_locks; locktype | database | relation | mode | pid ---------------+----------+----------+------------------+----- relation | 12066 | pg_locks | AccessShareLock | 965 virtualxid | | | ExclusiveLock | 965 relation | 16611 | 16628 | AccessShareLock | 820 relation | 16611 | 16628 | RowExclusiveLock | 820 relation | 16611 | 16623 | AccessShareLock | 820 relation | 16611 | 16623 | RowExclusiveLock | 820 virtualxid | | | ExclusiveLock | 820 relation | 16611 | 16628 | AccessShareLock | 835 relation | 16611 | 16623 | AccessShareLock | 835 virtualxid | | | ExclusiveLock | 835 transactionid | | | ExclusiveLock | 820 (11 rows) You’ll see an object identifier (OID) listed in the database and relation columns. To translate these OIDs into the actual names of each database and relation, you can query the database OID from pg_database, and the relation OID from pg_class. Disk usage PostgreSQL provides database object size functions to help users track the amount of disk space used by their tables and indexes. For example, below, we query the size of mydb using the pg_database_size function. We also use pg_size_pretty() to format the result into a human-readable format: SELECT pg_size_pretty(pg_database_size('mydb')) AS mydbsize; mydbsize ------------ 846 MB (1 row) You can check the size of your tables by querying the object ID (OID) of each table in your database, and using that OID to query the size of each table from pg_table_size. The following query will show you how much disk space the top five tables are using (excluding indexes): SELECT relname AS "table_name", pg_size_pretty(pg_table_size(C.oid)) AS "table_size" FROM pg_class C LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace) WHERE nspname NOT IN ('pg_catalog', 'information_schema') AND nspname !~ '^pg_toast' AND relkind IN ('r') ORDER BY pg_table_size(C.oid) DESC LIMIT 5; table_name | table_size ------------------+------------ pgbench_accounts | 705 MB customers | 3944 kB orderlines | 3112 kB cust_hist | 2648 kB products | 840 kB (5 rows) You can customize these queries to gain more granular views into disk usage across tables and indexes in your databases. For example, in the query above, you could replace pg_table_size with pg_total_relation_size, if you’d like to include indexes in your table_size metric (by default table_size shows disk space used by the tables, and excludes indexes). You can also use regular expressions to fine-tune your queries. Using an open source PostgreSQL monitoring tool As we’ve seen here, PostgreSQL’s statistics collector tracks and reports a wide variety of metrics about your databases’ activity. Rather than querying these statistics on an ad hoc basis, you may want to use a dedicated monitoring tool to automatically query these metrics for you. The open source community has developed several such tools to help PostgreSQL users monitor their database activity. In this section, we’ll explore one such option and show you how it can help you automatically aggregate some key statistics from your databases and view them in an easily accessible web interface. PgHero PgHero is an open source PostgreSQL monitoring tool that was developed by Instacart. This project provides a dashboard that shows the health and performance of your PostgreSQL servers. It is available to install via a Docker image, Rails engine, or Linux package. In this example, we will be installing the Linux package for Ubuntu 14.04: wget -qO- | sudo apt-key add - sudo wget -O /etc/apt/sources.list.d/pghero.list \ sudo apt-get update sudo apt-get -y install pghero Next, we need to provide PgHero with some information (make sure to replace the user, password, hostname, and name of your database, as specified below), and start the server: sudo pghero config:set DATABASE_URL=postgres://<USER>:<PASSWORD>@<HOSTNAME>:5432/<NAME_OF_YOUR_DB> sudo pghero config:set PORT=3001 sudo pghero config:set RAILS_LOG_TO_STDOUT=disabled sudo pghero scale web=1 Now we can check that the server is running, by visiting http://<PGHERO_HOST>:3001/ in a browser (or localhost:3001, if you’re on the server that is running PgHero). You should see an overview dashboard of your PostgreSQL database, including info about any long-running queries, the number of healthy connections, and invalid or duplicate indexes. You can also gather metrics from more than one database by following the instructions specified here. In the Maintenance tab, you can see the last time each table in the database completed a VACUUM and ANALYZE process. As mentioned in Part 1, VACUUM processes help optimize reads by removing dead rows and updating the visibility map. ANALYZE processes are also important because they provide the query planner with updated statistics about the table. Both of these processes help ensure that queries are optimized and remain as efficient as possible. PgHero will show you a visual breakdown of active connections, aggregated by database and user: Monitoring disk and index usage is also an important way to gauge the health and performance of your databases. PgHero shows you how much space each relation (table or index) is using, as well as how many indexes are currently unused. The dashboard below shows us that four of our indexes are currently unused, and advises us to “remove them for faster writes.” Monitoring PostgreSQL in context In this post, we’ve walked through how to use native and open source PostgreSQL monitoring tools to query metrics from your databases. All metrics accessed from pg_stat_* views will be cumulative counters, so it’s important to regularly collect the metrics and monitor how they change over time. If you’re running PostgreSQL in production, you can use a more robust monitoring platform to automatically aggregate these metrics on your behalf, and to visualize and alert on potential issues in real time. In the next part of this series, we’ll show you how to use Datadog to automatically query your PostgreSQL statistics, visualize them in dashboards, and analyze health and performance in context with the rest of your systems. We’ll also show you how to optimize and troubleshoot PostgreSQL performance with Datadog’s distributed tracing and APM. Source Markdown for this post is available on GitHub. Questions, corrections, additions, etc.? Please let us know.
https://www.datadoghq.com/ja/blog/postgresql-monitoring-tools/?lang_pref=ja
CC-MAIN-2020-24
en
refinedweb
WebLogic Application Performance Metrics Collection Using JMX and OpenView Performance Manager/Performance Insight - Application Management - Java Management Extensions (JMX) - Summary - References Java Management Extensions (JMX) JMX has become a standard for managing java resources. It exposes the application's management information, and management systems can use JMX APIs to generate analysis reports based on this information. JMX enables applications to be monitored and controlled while shielding the application from management protocols. The architecture that JMX follows is a variation of the architectural pattern called Manager-Agent. The basic components of this architectural pattern are the managed resource, agent, and management system. A managed resource is the application that needs to be managed by exposing appropriate data for use by a management system. For example, if a remote call takes more than five seconds to execute, which is beyond the acceptable limits of performance, the managed application can trigger a notification using JMX. The management system can then interpret it and send a pager message to the appropriate party about the event. A management Agent communicates both with the management system and the application. The Agent is responsible for sending events to the management system and executing commands from the management system onto the application. The management system is responsible for providing the infrastructure to mange the applications. HP OpenView is an example of a management system. Figure 1 shows the relationship between components of JMX Architecture from Sun Microsystem's JMX 1.2 specification. Figure 1 Relationship between components of JMX from Sun Microsystems' JMX 1.2 specification The important layers of the JMX architecture are as follows (described in the following sections): Instrumentation Level Agent Level Distributed Services Level Instrumentation Layer The Instrumentation Layer provides the specification for implementing manageable resources by any arbitrary management system. Resources that conform to this level are called manageable resources. JMX managed resources are provided by Managed Beans (MBeans). Instrumentation Layer components are shown in Figure 2. Figure 2 Instrumentation Layer components. The components of the instrumentation layer are Managed Beans Notification Model MBean Metadata Classes Each of these components is briefly described below. Managed Beans (MBeans) JMX-enabled managed resources are provided by MBeans. MBeans come in four flavors: Standard Mbeans, Dynamic Mbeans, Open Mbeans, and Model Mbeans. Standard MBeans A Standard MBean explicitly defines its management interface following a lexical design pattern (in other words, a naming convention). The lexical design patterns are used to distinguish MBean attributes from MBean operations. For example, an attribute is identified by the following pattern: //Attribute Getter public AttributeType getAttributeName() {...} //Attribute Setter public void setAttributeName(AttributeType someValue){...} The AttributeType is any Java Type and AttributeName is case-sensitive. If only a getter for an attribute is present, it implies that the attribute is read-only; if only a setter is present, it implies that the attribute is write-only. If both a getter and setter are present for an attribute, it is read and write. If the AttributeType is Boolean, the read-only (that is, getter) can be defined as follows: public boolean isAttributeName(){..} OR public boolean getAttributeName() {..} Note that one form of read-only is allowed for a Boolean attribute, not both. The management interface contains the attributes that are exposed through getters and setters, public only constructors, operations, and notification objects that the MBean broadcasts. Operations are those methods defined in the MBean interface that do not match any of the attribute design patterns. Using Standard MBeans is the quickest and easiest way to build instrumentation for manageable resources, and is best-suited when the management information that needs to be exposed is well-defined and unlikely to change over time. This series presents an example scenario of collecting application metrics in real-time using the Standard MBeans for exposing the management information. The use case is this: A management system records the application performance metrics that is the hostname of the server hosting the application and the response time of a method in an application. This data would be displayed in OpenView Performance Manager/OpenView Performance Insight (OVPM/OVPI). As a developer, you would develop a management interface and write User-Defined Metrics (UDM). A UDM is an XML configuration file that defines the JMX MBeans that will be collected by OVPM. The next article will discuss what is needed to integrate WebLogic Application Server with Hp OVPM. The same steps are applicable to integrating with OVPI. For now, the following is the code for the MBean interface and the standard MBean that will be deployed in WebLogic Application Server. //The management interface public interface PerformanceMetricsMBean { /** * Return the name of the server hosting the JVM that this MBean is deployed in. * @return the local host name */ public String getHostName(); /** * Return the measured response time * @return the measured response time */ public String getResponseTime(); } //The MBean Class public class PerformanceMetrics implements PerformanceMetricsMBean { private String hostName; private String responseTime; public String getHostName() { return hostName; } public String getResponseTime() { return responseTime; } public void setHostName(String value){ hostName = value; } public void setResponseTime(String value){ responseTime = value; } } The MBean developed above is registered with the MBean Server using a startup servlet. The following sections give a brief overview of other types of MBeans, but do not have the same detailed overview as that furnished for Standard MBeans. Refer to the References section at the end of this article to learn more. Dynamic MBeans When resources are likely to change often over time, Dynamic MBeans are recommended over Standard MBeans because they provide flexibility such as being dynamically determined at runtime. Dynamic MBeans are resources that are instrumented through a predefined interface that exposes the attributes and operations only at runtime. Following the JMX 1.2 specification, a Dynamic MBean should implement the interface javax.management.DynamicMBean. The DynamicMBean interface exposes the management information of a resource by using a javax.managemen.MBeanInfo class. The MBeanInfo class describes the set of attributes exposed and operations that can be performed on the managed resource. Open MBeans Open MBeans are dynamic MBeans with restricted data types for their attributes, constructors, and operations to Java primitive types. Using these limited basic types enables serialization, and removes the need for class loading and proxy coordination between the MBeanServer and users of the MBeans. Model MBeans A model MBean is a fully customizable dynamic MBean. The Model MBean is defined by javax.management.modelmbean.RequiredModelMBean. The RequiredModelMBean class, which implements the ModelMBean interface, is guaranteed to exist on every JMX Agent. A model MBean implements the ModelMBean interface that extends other interfaces, including DynamicMBean, PersistentMBean, and ModelMBeanNotificationBroadcaster. Notification Model The JMX Notification Model, which is based on the Java Event Model, lets your MBeans speak to other objects, applications, and other MBean instances. An MBean can send a notification by implementing the JMX NotificationBroadcaster interface, and an MBean can receive notifications by implementing the JMX NotificationListener interface (it must register for notifications). The current version of the JMX specification leaves the process of how the distribution of the notification model is achieved to a future version of the JMX specification. MBean Metadata Classes The MBean Metadata classes are used to describe the management interface of an MBean. The metadata classes contain the structures to the attributes, operations, notifications, and constructors of a managed resource. For each of these, the metadata includes a name, a description, and particular characteristics. The different types of Mbeans extend the metadata classes to provide additional information. These classes are used both for the introspection of standard MBeans and for the self-description of all dynamic MBeans. Agent Level The Agent Level provides management Agents to control the managed resources exposed by the application. An Agent can run on the same server that hosts the application or on a remote server. A JMX Agent is composed of an MBean Server, a set of MBeans representing the managed resources, agent services implemented as MBeans, and at least one protocol adaptor or connector. The MBean Server, the core component of the Agent Layer, allows for MBean registration and manipulation. Agent Services are objects (usually Mbeans) that allow themselves to be controlled through the MbeanServer. The Agent Service MBeans provide the following: Dynamic class loading that allows retrieval and instantiation of new classes from an arbitrary location on the network called an m-let service. The m-let service does this by loading an m-let text file that specifies information on the MBeans needed. The information on each MBean is specified using a tag called an MLET tag. The location of the m-let text file is specified by a URL; when loaded, all the classes specified in MLET tags are downloaded, and an instance of each MBean is created and registered. Monitors watch for changes on a target's attributes and can notify about other objects of interest. The Timer Service provides a mechanism to emit user-defined notifications at specific times. The Relation Service defines n-ary associations between MBeans based on predefined relation types. Connectors and Protocol Adapters make the Agent accessible from remote management systems. Connectors are used to connect an Agent with a JMX-enabled management application. A Protocol Adaptor provides a management view of the JMX Agent through a given protocol. The JMX reference implementation comes with an HTTP adaptor. Figure 3 depicts the HTML adaptor view, showing the registration of the PerfomanceMetrics MBean developed for this article. Figure 3 HTML adaptor view. Distributed Services Layer The Distributed Services Layer provides the interfaces for implementing JMX managers. (JMX Specification 1.2 leaves the detailed definition of the Distributed Services Layer to a future version of the JMX specification.) This level defines management interfaces and components that can operate on Agents or hierarchies of Agents. These components can Provide security. Provide transparent interaction between an Agent and manageable resources through a connector. Provide the distribution of management information from management platforms to JMX Agents. Provide a management view of a JMX Agent and the MBeans registered in the MBean Server by using Hypertext Mark-Up Language (HTML) or Simple Network Management Protocol (SNMP). Provide logical views by gathering management information from JMX Agents. Management components interact with one another across the network to provide distributed scalable management capabilities. These components can be used to deploy a management application with customized Java-based management capabilities.
https://www.informit.com/articles/article.aspx?p=341488&seqNum=2
CC-MAIN-2020-24
en
refinedweb
Spring vs. Spring Boot: A Comparison of These Java Frameworks Spring vs. Spring Boot: A Comparison of These Java Frameworks Want to learn more about these two popular Java frameworks? Check out this look at Spring and Spring Boot and how they each solve a different type of problem. Join the DZone community and get the full member experience.Join For Free What is Spring Boot? And, what is a Spring Framework? What are their goals? How can we compare them? There must be a lot of questions running through your mind. At the end of this blog, you will have the answers to all of these questions. In learning more about the Spring and Spring Boot frameworks, you will come to understand that each solve a different type of problem. What Is Spring? What Are the Core Problems Spring Solves? The Spring Framework is one of the most popular application development frameworks for Java. One of the best features in Spring is that it has the Dependency Injection (DI) or Inversion Of Control (IOC), which allows us to develop loosely coupled applications. And, loosely coupled applications can be easily unit-tested. Example Without Dependency Injection Consider the example below — MyController depends on MyService to perform a certain task. So, to get the instance of MyService, we will use: MyService service = new MyService(); Now, we have created the instance for MyService , and we see both are tightly coupled. If I create a mock for MyService in a unit test for MyController , how do I make MyController use the mock? It's bit difficult — isn't it? @RestController public class MyController { private MyService service = new MyService(); @RequestMapping("/welcome") public String welcome() { return service.retrieveWelcomeMessage(); } } Example With a Dependency Injection With the help of only two annotations, we can get the instance of MyService easily, which is not tightly coupled. The Spring Framework does all the hard work to make things simpler. @Componentis simply used in the Spring Framework as a bean that you need to manage within your own BeanFactory (an implementation of the Factory pattern). @Autowiredis simply used to in the Spring Framework to find the correct match for this specific type and autowire it. So, Spring framework will create a bean for MyService and autowire it into MyController. In a unit test, I can ask the Spring Framework to auto-wire the mock of MyService into MyController . @Component public class MyService { public String retrieveWelcomeMessage(){ return "Welcome to InnovationM"; } } @RestController public class MyController { @Autowired private MyService service; @RequestMapping("/welcome") public String welcome() { return service.retrieveWelcomeMessage(); } } The Spring Framework has many other features, which are divided into twenty modules to solve many common problems. Here are some of the more popular modules: - Spring JDBC - Spring MVC - Spring AOP - Spring ORM - Spring JMS - Spring Test - Spring Expression Language (SpEL) Aspect Oriented Programming(AOP) is another strong side of the Spring Framework. The key unit in object-oriented programming is the class, whereas, in AOP, the key unit is the aspect. For example, if you want to add the security in your project, logging, etc., you can just use the AOP and keep these as a cross-cutting concern away from your main business logic. You can perform any action after a method call, before a method call, after a method returns, or after the exception arises. The Spring Framework does not have its own ORM, but it provides a very good integration with ORM, like Hibernate, Apache iBATIS, etc. In short, we can say that the Spring Framework provides a decoupled way of developing web applications. Web application development becomes easy with the help of these concepts in Spring, like Dispatcher Servlet, ModelAndView, and View Resolver. If Spring Can Solve so Many Problems, Why Do We Need Spring Boot? Now, if you have already worked on Spring, think about the problem that you faced while developing a full-fledged Spring application with all functionalities. Not able to come up with one? Let me tell you — there was lot of difficulty to setup Hibernate Datasource, Entity Manager, Session Factory, and Transaction Management. It takes a lot of time for a developer to set up a basic project using Spring MVC with minimum functionality. <bean class="org.springframework.web.servlet.view.InternalResourceViewResolver"> <property name="prefix"> <value>/WEB-INF/views/</value> </property> <property name="suffix"> <value>.jsp</value> </property> </bean> <mvc:resources <servlet> <servlet-name>dispatcher</servlet-name> <servlet-class> org.springframework.web.servlet.DispatcherServlet </servlet-class> <init-param> <param-name>contextConfigLocation</param-name> <param-value>/WEB-INF/my-servlet.xml</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>dispatcher</servlet-name> <url-pattern>/</url-pattern> </servlet-mapping> When we use Hibernate, we have to configure these things like a datasource, EntityManager, etc. "/> How Does Spring Boot Solve This Problem? - Spring Boot does all of those using AutoConfigurationand will take care of all the internal dependencies that your application needs — all you need to do is run your application. Spring Boot will auto-configure with the Dispatcher Servlet, if Spring jaris in the class path. It will auto-configue to the datasource, if Hibernate jaris in the class path. Spring Boot gives us a pre-configured set of Starter Projects to be added as a dependency in our project. - During web-application development, we would need the jars that we want to use, which versions of the jars to use, and how to connect them together. All web applications have similar needs, for example, Spring MVC, Jackson Databind, Hibernate core, and Log4j (for logging). So, we had to choose the compatible versions of all these jars. In order to decrease the complexity, Spring Boot has introduced what we call Spring Boot Starters. Dependency for Spring Web Project > Starters are a set of convenient dependencies that you can include in your Spring Boot application. For using Spring and Hibernate, we just have to include the spring-boot-starter-data-jpa dependency in the project. Dependency for Spring Boot Starter Web <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> The following screenshot shows the different packages under a single dependency that are added into our application: There are other packages that you will see. Once you add that starter dependency, the Spring Boot Starter Web comes pre-packaged with all of these. As a developer, we would not need to worry about these dependencies and their compatible versions. Spring Boot Starter Project Options These are few starter projects to help us get started quickly Published at DZone with permission of Ankit Kumar . See the original article here. Opinions expressed by DZone contributors are their own. {{ parent.title || parent.header.title}} {{ parent.tldr }} {{ parent.linkDescription }}{{ parent.urlSource.name }}
https://dzone.com/articles/spring-vs-spring-boot?utm_medium=feed&utm_source=feedpress.me&utm_campaign=Feed:%20dzone%2Fjava
CC-MAIN-2020-24
en
refinedweb
A structure which stores a specific view position, view direction and FOV, together with a textual description. More... #include <SceneInfo.hpp> A structure which stores a specific view position, view direction and FOV, together with a textual description. Definition at line 158 of file SceneInfo.hpp. Returns a list of all global views of a scene. If the scene is invalid, an empty list is returned. Returns a list of all user-generated views of a scene. If the scene is invalid, an empty list is returned. Saves the given user views to userviews.ini, replacing all views existing for this scene The scene MUST be valid, will throw an assertion if not. A description of the view. Definition at line 166 of file SceneInfo.hpp. True if this is a position stored next to the scene definition (viewpoints.ini). If false, this is a user-defined view (from userdir\stellarium\scenery3d\userviews.ini). Definition at line 172 of file SceneInfo.hpp. Julian Date of interest. Definition at line 174 of file SceneInfo.hpp. Indicate if stored date is potentially relevant. Definition at line 176 of file SceneInfo.hpp. A descriptive label. Definition at line 164 of file SceneInfo.hpp. Stored grid position + current eye height in 4th component. Definition at line 168 of file SceneInfo.hpp. Alt/Az angles in degrees + field of view. Definition at line 170 of file SceneInfo.hpp.
http://stellarium.org/doc/0.16/structStoredView.html
CC-MAIN-2018-09
en
refinedweb
Dictionary<(Of <(TKey, TValue>)>) Class [ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ] Represents a collection of keys and values. Inheritance Hierarchy System..::.Object System.Collections.Generic..::.Dictionary<(Of <(TKey, TValue>)>) Namespace: System.Collections.Generic Assembly: mscorlib (in mscorlib.dll) Syntax Public Class Dictionary(Of TKey, TValue) _ Implements IDictionary(Of TKey, TValue), ICollection(Of KeyValuePair(Of TKey, TValue)), _ IReadOnlyDictionary(Of TKey, TValue), IReadOnlyCollection(Of KeyValuePair(Of TKey, TValue)), _ IEnumerable(Of KeyValuePair(Of TKey, TValue)), IDictionary, _ ICollection, IEnumerable public class Dictionary<TKey, TValue> : IDictionary<TKey, TValue>, ICollection<KeyValuePair<TKey, TValue>>, IReadOnlyDictionary<TKey, TValue>, IReadOnlyCollection<KeyValuePair<TKey, TValue>>, IEnumerable<KeyValuePair<TKey, TValue>>, IDictionary, ICollection, IEnumerable Type Parameters - TKey The type of the keys in the dictionary. - TValue The type of the values in the dictionary. The Dictionary<(Of <(TKey, TValue>)>) type exposes the following members. Constructors Top Properties Top Methods Top Extension Methods Top Explicit Interface Implementations Top Remarks. Note The speed of retrieval depends on the quality of the hashing algorithm of the type specified for TKey. As long as an object is used as a key in the Dictionary<(Of <(TKey, TValue>)>), it must not change in any way that affects its hash value. Every key in a Dictionary<(Of <(TKey, TValue>)>) must be unique according to the dictionary's equality comparer. A key cannot be nullNothingnullptra null reference (Nothing in Visual Basic), but a value can be, if the value type TValue is a reference type. Dictionary<(Of <(TKey, TValue>)>) requires an equality implementation to determine whether keys are equal. You can specify an implementation of the IEqualityComparer<(Of <(T>)>) generic interface by using a constructor that accepts a comparer parameter; if you do not specify an implementation, the default generic equality comparer EqualityComparer<(Of <(T>)>)..::.Default is used. If type TKey implements the System..::.IEquatable<(Of <(T>)>) generic interface, the default equality comparer uses that implementation. Note For example, you can use the case-insensitive string comparers provided by the StringComparer class to create dictionaries with case-insensitive string keys. The capacity of a Dictionary<(Of <(TKey, TValue>)>) is the number of elements the Dictionary<(Of <(TKey, TValue>)>) can hold. As elements are added to a Dictionary<(Of <(TKey, TValue>)>), the capacity is automatically increased as required by reallocating the internal array. For purposes of enumeration, each item in the dictionary is treated as a KeyValuePair<(Of <<(Of <(TKey, TValue>)>) is a collection of keys and values, the element type is not the type of the key or the type of the value. Instead, the element type is a KeyValuePair<(Of <(TKey, TValue>)>) of the key type and the value type. For example: foreach (KeyValuePair<int, string> kvp in myDictionary) {...} for each (KeyValuePair<int, String^> kvp in myDictionary) {...} For Each kvp As KeyValuePair(Of Integer, String) In myDictionary ... Next kvp The foreach statement is a wrapper around the enumerator, which allows only reading from the collection, not writing to it. Note Because keys can be inherited and their behavior changed, their absolute uniqueness cannot be guaranteed by comparisons using the Equals method. Version Notes Windows Phone An exception is thrown when deriving a class from Dictionary where the TKey parameter is an enumeration. Examples There are two examples for this class. This first example uses a Dictionary<(Of <<(Of < Windows Phone 8 for a discussion of other binding options and scenarios. The following code shows the OthelloCast class. Add this class to the partial Page class of your project. Public Class OthelloCast Inherits List(Of String) Public OthelloDict As New Dictionary(Of String, String) Public Sub New() '. For Each kvp As KeyValuePair(Of String, String) In OthelloDict Me.Add(kvp.Key) Next End Sub End Class //. For information on how to compile and run this example code, see Building examples that have static TextBlock controls for Windows Phone 8. Private Sub ListCharacters_SelectionChanged(ByVal sender As System.Object, ByVal e As SelectionChangedEventArgs) ' Create an instance of OthelloCast to ' look up an actor by their character. Dim othello As New OthelloCast() ' Get the selected character name (key). Dim key As String = ListCharacters.SelectedItem.ToString() ' Get the key's value (actor name) and display it. ShowActor.Text = othello.OthelloDict(key).ToString() End Sub. For information on how to compile and run this example code, see Building examples that have static TextBlock controls for Windows Phone 8. <(Of <. Note To run this example, see Building examples that have static TextBlock controls for Windows Phone 8. Imports System.Collections.Generic Public Class Example Public Shared Sub Demo(ByVal outputBlock As System.Windows.Controls.TextBlock) ' outputBlock.Text &= "An element with Key = ""txt"" already exists." & vbCrLf End Try ' The Item property is the default property, so you ' can omit its name when accessing elements. outputBlock.Text &= String.Format("For key = ""rtf"", value = {0}.", _ openWith("rtf")) & vbCrLf ' The default Item property can be used to change the value ' associated with a key. openWith("rtf") = "winword.exe" outputBlock.Text &= String.Format("For key = ""rtf"", value = {0}.", _ openWith("rtf")) & vbCrLf ' If a key does not exist, setting the default Item property ' for that key adds a new key/value pair. openWith("doc") = "winword.exe" ' The default Item property throws an exception if the requested ' key is not in the dictionary. Try outputBlock.Text &= String.Format("For key = ""tif"", value = {0}.", _ openWith("tif")) & vbCrLf Catch outputBlock.Text &= "Key = ""tif"" is not found." & vbCrLf End Try ' When a program often has to try keys that turn out not to ' be in the dictionary, TryGetValue can be a more efficient ' way to retrieve values. Dim value As String = "" If openWith.TryGetValue("tif", value) Then outputBlock.Text &= String.Format("For key = ""tif"", value = {0}.", value) & vbCrLf Else outputBlock.Text &= "Key = ""tif"" is not found." & vbCrLf End If ' ContainsKey can be used to test keys before inserting ' them. If Not openWith.ContainsKey("ht") Then openWith.Add("ht", "hypertrm.exe") outputBlock.Text &= String.Format("Value added for key = ""ht"": {0}", _ openWith("ht")) & vbCrLf End If ' When you use foreach to enumerate dictionary elements, ' the elements are retrieved as KeyValuePair objects. outputBlock.Text &= vbCrLf For Each kvp As KeyValuePair(Of String, String) In openWith outputBlock.Text &= String.Format("Key = {0}, Value = {1}", _ kvp.Key, kvp.Value) & vbCrLf Next kvp ' To get the values alone, use the Values property. Dim valueColl As _ Dictionary(Of String, String).ValueCollection = _ openWith.Values ' The elements of the ValueCollection are strongly typed ' with the type that was specified for dictionary values. outputBlock.Text &= vbCrLf For Each s As String In valueColl outputBlock.Text &= String.Format("Value = {0}", s) & vbCrLf Next s ' To get the keys alone, use the Keys property. Dim keyColl As _ Dictionary(Of String, String).KeyCollection = _ openWith.Keys ' The elements of the KeyCollection are strongly typed ' with the type that was specified for dictionary keys. outputBlock.Text &= vbCrLf For Each s As String In keyColl outputBlock.Text &= String.Format("Key = {0}", s) & vbCrLf Next s ' Use the Remove method to remove a key/value pair. outputBlock.Text &= vbLf + "Remove(""doc"")" & vbCrLf openWith.Remove("doc") If Not openWith.ContainsKey("doc") Then outputBlock.Text &= "Key ""doc"" is not found." & vbCrLf End If End Sub End Class '. */ Version Information Windows Phone OS Supported in: 8.1, 8.0, 7.1, 7.0 Platforms Windows Phone Thread Safety Public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe. A Dictionary<(Of <. See Also Reference System.Collections.Generic Namespace IDictionary<(Of <(TKey, TValue>)>) KeyValuePair<(Of <(TKey, TValue>)>) IEqualityComparer<(Of <(T>)>)
https://docs.microsoft.com/en-us/previous-versions/windows/apps/xfhwa508(v=vs.105)
CC-MAIN-2018-09
en
refinedweb
hs-server-starter Write a server supporting Server::Starter's protocol in Haskell This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks. hs-server-starter Description Provides a utility to write server program which can be called via Perl's program using Haskell. This module does not provide a Haskell implementation of start_server, so you need to use the original Perl version or use a version ported to golang. SINOPSIS Since the listenAll function returns a listened Network.Socket, please call accept on it. import qualified Network.ServerStarter.Socket as Starter import qualified Network.Socket as Socket import qualified Network.Wai as Wai import qualified Network.Wai.Handler.Warp as Warp main :: IO () main = do (socket:_) <- Starter.listenAll Socket.SockAddrInet port _ <- Socket.getSocketName socket let setting = Warp.setPort (fromEnum port) $ Warp.defaultSettings Warp.runSettingsSocket setting socket app app :: Wai.Application app = ... Then run start_server and access to . $ start_server --port 12345 -- stack exec server-starter-warp-example Author Masahiro Honma ()
https://www.stackage.org/package/hs-server-starter
CC-MAIN-2018-09
en
refinedweb
csqsqrt.h File Reference Fast computation of sqrt(x) and 1/sqrt(x). More... #include "cssysdef.h" #include <math.h> Go to the source code of this file. Detailed Description Fast computation of sqrt(x) and 1/sqrt(x). Define CS_NO_QSQRT if you experience mysterious problems with CS which you think are related to the specially optimized csQsqrt() not behaving properly. Definition in file csqsqrt.h. Generated for Crystal Space 2.0 by doxygen 1.6.1
http://www.crystalspace3d.org/docs/online/api-2.0/csqsqrt_8h.html
CC-MAIN-2018-09
en
refinedweb
Can you add the missing python2-unidecode dependency? File "/usr/lib/python2.7/site-packages/weboob/capabilities/bank.py", line 24, in <module> from unidecode import unidecode Search Criteria Package Details: weboob-git 1.3_546_gcbfe08d81 ? laurentb commented on 2016-02-13 22:58 Weboob 1.1 just got released, you might want to use that instead of -git. New dependency: python2-futures Otherwise, for the git version (and upcoming 1.2), we now use Qt5, so replace python2-pyqt4 by python2-pyqt5 and phonon-qt4 by phonon-qt5. Thanks! Buridan commented on 2016-02-13 21:01 pkgver can't contain - anymore , please replace it by something else. Add dependency : python2-pyqt5 cyberic commented on 2015-08-09 18:56 Thx for this PKGBUILD. Would it be possible to add 'make' to the makedepends? I think it is needed. Thanks sputnick commented on 2014-10-20 15:55 Automatic update on new versions fixed (was broken). sputnick commented on 2014-10-20 15:55 Automatic automatic-update on new versions fixed (was broken). sputnick commented on 2014-09-22 11:12 PKGBUILD updated laurentb commented on 2014-05-23 18:13 You should also update the dependencies from the latest 0.i. ianux commented on 2014-05-22 15:58 This PKGBUILD is outdated (stuck on 0.d branch). Here is an up-to-date version: sputnick commented on 2013-10-15 20:34 pkgver() added. PKGBUILD will be updated only on versions changes. Scimmia commented on 2013-10-11 22:04 For the pacman 4.1 updates, I mean the link josephgbr gave you months ago: Short version: stop doing the clone manually and add a pkgver function. As for the automated update, why?!?!? That does nothing but annoy your users, you only need to update the PKGBUILD when something important changes. I know that if I was a user, I would have abandoned this package months ago and just maintained my own locally. sputnick commented on 2013-10-11 09:26 @Scimmia: this is an automated update. What do you mean by "still not updated for pacman 4.1" ? Scimmia commented on 2013-10-11 07:03 So two useless updates later, still no response. Scimmia commented on 2013-10-09 05:20 I see this in the recent packages feed all of the time and have to ask, why is the package updated so often? Dep changes? And why is it still not updated for pacman 4.1? sputnick commented on 2013-08-05 22:00 I don't find any remplacement for python2-qt, it was removed. Feel free to update the thread if something's missing. twister commented on 2013-08-05 21:43 python2-qt can't be find. I think this packet have been renamed or replaced, could someone update the PKGBUILD with the correct dependency ? sputnick commented on 2013-04-22 12:54 @josephgbr : DONE rafaelff commented on 2013-04-22 05:19 Please update PKGBUILD to be compatible with pacman 4.1 sputnick commented on 2013-01-30 14:31 @ianux, DONE. ianux commented on 2013-01-25 00:04 You should add python2-cssselect which is required (at least) by some videoob backends. sputnick commented on 2012-11-18 15:03 PKGBUILD reviewed accordingly to linkmauve's proposal linkmauve commented on 2012-10-26 16:20 python-clientform isn’t needed anymore by weboob since python2-mechanize replaces it, all the other python- packages can be finally replaced by their python2- equivalent, pyxdg by python2-xdg, pyqt by python2-pyqt, only pygtk stays like that since gtk3 has a much better builtin bindings system (the same as gtk2 actually, pygtk was just there before). Also, the list of dependencies is pretty big, while most of them aren’t needed for some backends, so it would make sense to put them as optdepends instead, with the list of modules requiring each one listed in the description of the optdepend. linkmauve commented on 2012-07-22 15:49 python-nose and python-routes should now be called python2-nose and python2-routes in their python2 version. vnoel commented on 2012-02-06 08:38 Actually, I don't want to take care of this package anymore, if someone is interested, I'm leaving my space :) I updated for the dependency, but I'm pretty sure it is not the only one missing… vnoel commented on 2012-02-06 08:36 ok, thanks :) Francois_B commented on 2012-02-04 19:05 mimms is missing as dep. It is needed for downloading (at least for francetelevision backend) vnoel commented on 2011-05-14 14:10 Thank you, done :) Anonymous comment on 2011-05-14 13:29 python-yaml should be python2-yaml vnoel commented on 2011-04-14 07:17 updated dependency python-feedparser to python2-feedparser vnoel commented on 2011-01-21 07:21 renamed dependency pyqt to python2-qt vnoel commented on 2010-11-15 08:37 So, here is an up to date version, I will also uploid a weboob-stable-git version :) vnoel commented on 2010-11-15 08:36 @AlexS: seems it was disown, I just adopted it :) Anonymous comment on 2010-11-15 00:27 vnoel: unless I'm wrong, this package is not maintained, so you should ask the admins to give you access to its maintenance. It would be nice if you could do it. vnoel commented on 2010-11-14 12:51 Hi, if you cannot take care of the package, I would be happy to maintain it :) vnoel commented on 2010-11-10 09:30 Hi, I updated the package python-prettytable and the python2 version is now available as python2-prettytable: python-prettytable is for python 3!! vnoel commented on 2010-11-08 20:57 Hi, here is a working PKGBUILD with python2 dependency. I did not include the change for the stable branch. I also added all the dependencies that can be found in the debian packages... ! pkgname=weboob-git pkgrel=1 pkgver=20101108 pkgdesc="python web tool: Web Out Of Browsers" url="" license=('GPL') arch=('i686' 'x86_64') depends=('python2' 'python-dateutil' 'python-mechanize' 'pyxdg' 'python2-elementtidy' 'python-html2text' 'python-yaml' 'python-lxml' 'python-html5lib' 'python-clientform' 'python-feedparser' 'python-gdata' 'python-nose' 'python2-prettytable' 'python-mako' 'python-routes' 'python2-webob' 'python-imaging' 'pygtk' 'pyqt' 'pywebkitgtk' 'python-pysqlite' 'python-simplejson') makedepends=('git' 'setuptools') conflicts=('weboob') provides=('weboob') _gitroot="git://git.symlink.me/pub/romain/weboob.git" _gitname=weboob build() { cd ${srcdir} msg "Connecting to GIT server...." if [ -d ${srcdir}/$_gitname ] ; then cd $_gitname && git pull origin msg "The local files are updated." else git clone $_gitroot fi msg "GIT checkout done or server timeout" cd $srcdir/$_gitname python2 setup.py install --root=$pkgdir || return 1 } Anonymous comment on 2010-11-08 12:14 Hi, here is a patch to use the stable branch and python2 at the installation. vnoel commented on 2010-11-08 09:40 Hi, use python2 :) Or maybe report a bug at weboob so that they support python3. maturain commented on 2010-09-11 18:33 added pyqt Anonymous comment on 2010-09-04 00:19 also missing python-qt, that lack leads an installation failure (complains about the lack of pyuic4) maturain commented on 2010-08-10 16:24 thanks. the following dependencies have been added : python-mako python-routes python-webob Anonymous comment on 2010-08-09 22:13 Hi, it seems that python-routes is a missing dependency. @mickael9, DONE
https://aur.archlinux.org/packages/weboob-git/?ID=39458&comments=all
CC-MAIN-2018-09
en
refinedweb
I'm making a Guess Who game. I've made a flowchart and I now need to make a Python program based on the flowchart. The game has 5 names and 3 questions. 1 of the questions will be asked twice depending on the route taken. The questions are: 'does the person have a beard?' 'does the person have wrinkles?' 'does the person have a moustache?' depending on which route I take the question 'does the person have a moustache?' can be asked twice, so can give 2 different answers depending on the questions asked before it. I have had a little help from a kind person on this site but still struggling a little. please see the code written so far below. def beardGuess (): beardIn = input('does the person have a beard?') if beardIn == 'yes' or beardIn == 'TRUE': moustacheIn = input('does the person have a moustache?') elif beardIn == 'no' or beardIn == 'FALSE': wrinklesIn = input('does the person have wrinkles?') if wrinklesIn == 'yes' or wrinklesIn == 'TRUE': print ('jojohn') elif wrinklesIn == 'no' or wrinklesIn == 'FALSE': moustacheIn = input('does the person have a moustache?') if moustacheIn == 'yes' or moustacheIn == 'TRUE': print ('sestine') elif moustacheIn == 'no' or moustacheIn == 'FALSE': print ('aubro') elif moustacheIn == 'no' or moustacheIn == 'FALSE': print ('zik') beardGuess () this is working fine for certain questions but coming up with the below error when certain routes are taken. Traceback (most recent call last): File "/Users/marclangford/Documents/greatest.py", line 20, in beardGuess () File "/Users/marclangford/Documents/greatest.py", line 8, in beardGuess if wrinklesIn == 'yes' or wrinklesIn == 'TRUE': UnboundLocalError: local variable 'wrinklesIn' referenced before assignment any help would be greatly appreciated.
https://discuss.codecademy.com/t/struggling-with-the-flow-of-my-code-layout-issues/65579/5
CC-MAIN-2018-09
en
refinedweb
Android “gps requires ACCESS_FINE_LOCATION” error As of Android API 23, there is a new way to request location permissions. It doesn't look like QT5.6 beta has been updated to use this method, so I wrote a quick work around. This API 23 change might affect the camera and contacts permissions also, I'm not sure. Before anyone says, I already have the fine location permission in my manifest: <uses-permission android: Inside your android project, create a template. In the manifest, change: android:name="org.qtproject.qt5.android.bindings.QtActivity" to: android:name="com.my_company.my_project.MyActivity" Create the path inside your android template directory: src/com/my_company/my_project Now create the extended activity which requests the permissions as follows: public class MyActivity extends QtActivity { private static final String[] LOCATION_PERMS={ Manifest.permission.ACCESS_FINE_LOCATION }; private static final int LOCATION_REQUEST = 1337; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //Ensure we can run the app if ( !canAccessLocation() ) requestPermissions( LOCATION_PERMS, LOCATION_REQUEST ); } @Override public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) { //Figure out what was given to us switch(requestCode) { case LOCATION_REQUEST: if ( canAccessLocation() ) log("Access to location is granted"); else log("Access to location is denied"); break; } } private boolean hasPermission(String perm) { return ( PackageManager.PERMISSION_GRANTED == checkSelfPermission(perm) ); } public boolean canAccessLocation() { return hasPermission(Manifest.permission.ACCESS_FINE_LOCATION); } public static void log( String s ) { Log.d("Radius", s ); } } This "fix" was taken from the following post: - SGaist Lifetime Qt Champion Hi, Thanks for sharing your findings. You should also bring that to the Qt Android development mailing list. You'll find there Qt's Android port developers/maintainers. This forum is more user oriented. Thanks for the tip, I'll do that. I'm interested to get in touch with those guys anyway to extend the default implementation of the QML Map library. - SGaist Lifetime Qt Champion You're welcome ! Extend it Android wise or globally ? I guess I'll have to see once I get in there. Ideally it would be global. I'd like to get two finger rotation logic implemented. Also I'd like to change how the zoom works; instead of showing the user a gray square while zooming, I'd rather zoom the best fit tile.
https://forum.qt.io/topic/64126/android-gps-requires-access_fine_location-error
CC-MAIN-2018-09
en
refinedweb
Parts 1 through 3 of this four-part series on developing Web services in Java SE first presented an overview of Web services and Java SE's support for developing them. The series then focused on developing SOAP-based and RESTful Web services via this support. Part 4 wraps up this series by focusing on advanced topics. This article first introduces Java SE's SAAJ API for working with SOAP-based Web services at a lower level. It then discusses how to create a JAX-WS handler to log the flow of SOAP messages. Next, the article teaches how to create and install a custom lightweight HTTP server to perform authentication. Moving on, you're shown how to create a RESTful Web service that returns attachments (e.g., a JPEG image) to its clients. You then dig deeper into JAX-WS by exploring the interplay between providers and dispatch clients, and learn how to create a dispatch client that accesses the javax.xml.transform.Source instance returned from a Web service provider's invoke() method via a different Source instance in another version of Part 3's LibraryClient application. Working with SAAJ Soap with Attachments API for Java (SAAJ) is the Java API for creating, sending, and receiving SOAP messages that may or may not have MIME-typed attachments. SAAJ is a lower-level alternative to JAX-WS for sending and receiving SOAP messages. This section first presents an overview of SOAP message architecture. It then takes you on a tour of SAAJ. When this tour finishes, I present an application that uses this API to access a SOAP-based Web service (written in PHP) for converting between integer values and Roman numerals. This application reinforces your understanding of SAAJ. SOAP message architecture A SOAP message is an XML document sent from an initial SOAP sender node to an ultimate SOAP receiver node, mostly likely passing through intermediate SOAP sender/receiver nodes along its path. A SOAP node is processing logic that operates on a SOAP message. The SOAP document consists of an Envelope root element that encapsulates an optional Header element and a nonoptional Body element -- see Figure 1. Figure 1. A SOAP message's architecture consists of an optional Header element and a mandatory Body element within an Envelope element The Header element specifies application-related information (such as authentication details to verify who sent the message) via immediate child elements known as header blocks. A header block represents a logical grouping of data that can target an intermediate SOAP node or the ultimate receiver node. Although header blocks are defined by the application, their start tags may contain the following SOAP-defined attributes to indicate how SOAP nodes should process them: encodingStyleidentifies the rules used to serialize parts of a SOAP message roleidentifies the SOAP node (via a URI) to which the header block is targeted -- this SOAP 1.2-introduced attribute replaces the SOAP 1.1 actor attribute, which performs the same function mustUnderstandindicates whether processing of the header block is mandatory (value 1in SOAP 1.1; truein SOAP 1.2) or optional (value 0in SOAP 1.1; falsein SOAP 1.2) relayindicates whether the header block targeted at a SOAP receiver must be relayed to another node if not processed -- this attribute was introduced in SOAP 1.2 The Body element contains information that targets the ultimate receiver node. This information is known as the payload, and consists of a SOAP-defined Fault child element describing a fault (an error being reported by the Web service), or child elements that are specific to the Web service. The Fault element contains error and status information that a Web service returns to a client. SOAP 1.1 specifies the following child elements of Fault: faultcode: This mandatory element provides information about the fault in a form that can be processed by software. SOAP defines a small set of SOAP fault codes that cover basic faults; this set can be extended by applications. faultstring: This mandatory element provides information about the fault in a human-readable format. faultactor: This element contains the URI of the SOAP node that generated the fault. A SOAP node that is not the ultimate SOAP receiver must include faultactorwhen creating a fault; an ultimate SOAP receiver doesn't have to include this element, but might choose to do so. detail: This element carries application-specific error information related to the Bodyelement. It must be present when Body's contents couldn't be processed successfully. The detailelement must not be used to carry error information belonging to header blocks; detailed error information belonging to header blocks is carried within these blocks. SOAP 1.2 specifies the following child elements of Fault: Code: This mandatory element provides information about the fault in a form that can be processed by software. It contains a Valueelement and an optional Subcodeelement. Reason: This mandatory element provides information about the fault in a human-readable format. Reasoncontains one or more Textelements, each of which contains information about the fault in a different language. Node: This element contains the URI of the SOAP node that generated the fault. A SOAP node that's not the ultimate SOAP receiver must include Nodewhen creating a fault; an ultimate SOAP receiver doesn't have to include this element, but might choose to do so. Role: This element contains a URI that identifies the role the node was operating in when the fault occurred. Detail: This optional element contains application-specific error information related to the SOAP fault codes describing the fault. Its presence has no significance as to which parts of the faulty SOAP message were processed. Listing 1 presents an example SOAP message. Listing 1. A SOAP message for calling a SOAP-based library Web service's getTitle() function to retrieve a book's title when given its ISBN <SOAP-ENV:Envelope xmlns: <SOAP-ENV:Header /> <SOAP-ENV:Body> <lns:getTitle xmlns: <isbn xsi:9781484219157</isbn> </lns:getTitle> </SOAP-ENV:Body> </SOAP-ENV:Envelope> This SOAP message describes a request to a library Web service to execute its getTitle() function. Furthermore, it describes the type and value of the ISBN argument passed to this function's isbn parameter. The message begins with the SOAP-ENV-prefixed <Envelope> tag, which describes the SOAP message's envelope. The commonly used SOAP-ENV prefix corresponds to the SOAP 1.1 namespace that provides the schema for SOAP envelopes. The xsd and xsi prefixes correspond to the XML Schema structures and XML Schema Instance namespaces, and are used to denote the XML Schema type that describes the kind of data being passed to getTitle() (a string) via the isbn element. The empty Header element signifies that there is no SOAP header. In contrast, the Body element identifies a single getTitle operation request. The getTitle element is namespace-qualified, as recommended by the SOAP 1.1 and 1.2 specifications. In contrast, the isbn child element of getTitle isn't namespace-qualified because it inherits getTitle's namespace -- the SOAP 1.1 and 1.2 specifications don't mandate that such child elements be namespace-qualified. SAAJ API overview SAAJ is a small Java SE API that lets you perform the following tasks: - create an endpoint-to-endpoint connection - create a SOAP message - create an XML fragment - add content to the header of a SOAP message - add content to the body of a SOAP message - create attachment parts and add content to them - access/add/modify parts of a SOAP message - create/add/modify SOAP fault information - extract content from a SOAP message - send a SOAP request-response message SAAJ is associated with the javax.xml.soap package, which contains 14 interfaces and 13 classes. Various interfaces and classes extend their counterparts in the org.w3c.dom package, implying that part of a SOAP message is organized as a tree of nodes. The following classes and interfaces are used to specify the structure of a SOAP message: SOAPMessagerepresents the entire SOAP message. It contains a single SOAPPartinstance and zero or more AttachmentPartinstances. SOAPPartcontains a SOAPEnvelopeinstance, which represents the actual SOAP Envelopeelement. SOAPEnvelopeoptionally contains a SOAPHeaderinstance and also contains a mandatory SOAPBodyinstance. SOAPHeaderrepresents the SOAP message's header block(s). SOAPBodycontains either a SOAPFaultobject or a SOAPBodyElementobject containing the actual SOAP payload XML content. SOAPFaultstores a SOAP fault message. Working with SAAJ involves creating a SOAP connection, creating SOAP messages, populating each message with content and optional attachments, sending the messages to an endpoint and retrieving replies, and closing the connection. Creating a SOAP connection You create a connection by working with the SOAPConnectionFactory and SOAPConnection classes. As its name implies, SOAPConnectionFactory is a factory class for retrieving SOAPConnection instances (actually, instances of subclasses of the abstract SOAPConnection class). A SOAPConnection instance represents an endpoint-to-endpoint connection to the Web service; the client and Web service exchange messages over this connection. The following example shows you how to instantiate the factory and obtain a SOAP connection: SOAPConnectionFactory soapcf = SOAPConnectionFactory.newInstance(); SOAPConnection soapc = soapcf.createConnection(); Instantiate the factory by calling SOAPConnectionFactory's SOAPConnectionFactory newInstance() method. This method throws SOAPException when a SOAPConnectionFactory instance cannot be created. If a nonOracle Java implementation doesn't support the SAAJ communication infrastructure, this method throws an instance of the java.lang.UnsupportedOperationException class. After instantiating SOAPConnectionFactory, call this instance's SOAPConnection createConnection() method to create and return a new SOAPConnection object. This method throws SOAPException when it's unable to create this object. Creating a SOAP message Create a SOAP message by working with the MessageFactory and SOAPMessage classes. MessageFactory provides a pair of methods for returning a MessageFactory instance: MessageFactory newInstance()creates a MessageFactoryobject based on the default SOAP 1.1 implementation. This method follows an ordered lookup procedure to locate the MessageFactoryimplementation class. This procedure first examines the javax.xml.soap.MessageFactorysystem property, and lastly calls an instance of the SAAJMetaFactoryclass's MessageFactory newMessageFactory(String protocol)method to return that factory. This method throws SOAPExceptionwhen it's unable to create the factory. MessageFactory newInstance(String protocol)creates a MessageFactoryobject that's based on the SOAP implementation specified by the protocolargument, which is one of the SOAPConstantsinterface's DEFAULT_SOAP_PROTOCOL, DYNAMIC_SOAP_PROTOCOL, SOAP_1_1_PROTOCOL, or SOAP_1_2_PROTOCOLconstants. This method throws SOAPExceptionwhen it's unable to create the factory. After instantiating MessageFactory, call one of the following methods to create a SOAPMessage instance: SOAPMessage createMessage()creates and returns a new SOAPMessageobject (actually, an instance of a concrete subclass of this abstract class) with default SOAPPart, SOAPEnvelope, SOAPBody(initially empty) and SOAPHeaderobjects. This method throws SOAPExceptionwhen a SOAPMessageinstance cannot be created, and UnsupportedOperationExceptionwhen the MessageFactoryinstance's protocol is DYNAMIC_SOAP_PROTOCOL. SOAPMessage createMessage(MimeHeaders headers, InputStream in)internalizes the contents of the given java.io.InputStreamobject into a new SOAPMessageobject and returns this object. The MimeHeadersinstance specifies transport-specific headers that describe the various attachments to the SOAP message. This method throws SOAPExceptionwhen a SOAPMessageinstance cannot be created, java.io.IOExceptionwhen there's a problem reading data from the input stream, and java.lang.IllegalArgumentExceptionwhen the MessageFactoryinstance requires one or more MIME headers to be present in the argument passed to headers and these headers are missing. The following example shows you how to instantiate the factory and create a SOAPMessage object that's ready to be populated: MessageFactory mf = MessageFactory.newInstance(); SOAPMessage soapm = mf.createMessage(); Populating a SOAP message with content and optional attachments SOAPMessage describes a SOAP message optionally followed by MIME-typed attachments. The SOAP message part of this object is defined by an instance of a concrete subclass of the abstract SOAPPart class.
https://www.javaworld.com/article/3227793/java-language/web-services-in-java-se-part-4-soap-with-attachments-api-for-java.html
CC-MAIN-2018-09
en
refinedweb
Amazon S3 Connector Release Notes: Amazon S3 Connector Release Notes The Anypoint Amazon S3 Connector provides connectivity to the the Amazon S3 API, enabling you to interface with Amazon S3 to store objects, download and use data with other AWS services, and build applications that call for internet storage. Instant access to the Amazon S3 API enables seamless integrations between Amazon S3 and other databases, CMS applications such as Drupal, and CRM applications such as Salesforce. MuleSoft maintains this connector under the Select support policy. Introduction. The AWS SDK for Java provides a Java API for AWS infrastructure services. The Amazon S3 connector is built using the SDK for Java. For the complete list of operations supported by the connector, see Versioned Reference Documentation and Samples. Prerequisites To use the Amazon S3 connector, you must have the following: Access to Amazon Web Services. To access AWS with the connector, you need the credentials in the form of IAM. Anypoint Studio Enterprise edition. This document assumes that you are familiar with Mule, Anypoint Connectors, Anypoint Studio Essentials. To increase your familiarity with Studio, consider completing one or more Basic Studio Tutorial. Further, this page assumes that you have a basic understanding of Elements in a Mule Flow, Global Elements. This document describes implementation examples within the context of Anypoint Studio, Mule’s graphical user interface, and also includes configuration details for doing the same in the XML Editor.. When prompted: Select the Amazon S3 connector version 3.0.0 check box and click Next. Follow the instructions provided by the user interface. Restart Studio when prompted. After restarting, if you have several versions of the connector installed, Mule asks you for the version of the connector to use. We have made the following updates in version 3.0 of the Amazon S3 connector: Renamed the following operations: List object versions to List versions Set Bucket Versioning status to Set Bucket Versioning Configuration Removed the following operations: Create object uri For most of the operations the input and output attributes have been modified. Configuring the Connector Global Element To use the Amazon S3 connector in your Mule application, configure a global Amazon S3 element that can be used by all the Amazon S3 connectors in the application (read more about Global Elements.) Click the Global Elements tab at the base of the canvas, then click Create. In the Choose Global Type window, expand Connector Configuration, and click Amazon S3: Configuration. Click Ok Enter the global element properties: You can either enter your credentials into the global configuration properties, or reference a configuration file that contains these values. For simpler maintenance and better re-usability of your project, Mule recommends that you use a configuration file. Keeping these values in a separate file is useful if you need to deploy to different environments, such as production, development, and QA, where your access credentials differ. See Deploying to Multiple Environments for instructions on how to manage this. S3 namespaces in your configuration file. Follow these steps to configure an Amazon S3 connector in your application: Create a global Amazon S3 configuration outside and above your flows, using the following global configuration code. Connecting Using the Connector Amazon S3 connector is an operation-based connector, which means that when you add the connector to your flow, you need to configure a specific operation for the connector to perform. The Amazon S3 connector currently supports the following list of operations: Using AWS KMS Master Key If you need to encrypt the objects that you are going to store to S3 buckets using customer managed master keys, then you must specify Customer Master Key Id in the 'KMS Master Key' field in the Create Object configuration. Using AWS Credentials Provider Chain in CloudHub With Default AWS Credentials Provider Chain the user can specify the access key and secret in the CloudHub environment. Following are the steps with which this can be done 1. application in Studio, the act of dragging the connector from the palette onto the Anypoint Studio canvas should automatically populate the XML code with the connector namespace and schema location. Namespace: Schema Location:. Adding the Connector to a Mule Flow Create a new Mule project in Anypoint Studio. Drag the Amazon S3 connector onto the canvas, then select it to open the properties editor. Configure the connector’s parameters: Save your configurations. Demo Mule Application Using Connector Create a Mule application that stores an image from a URL on Amazon S3, then retrieve and display the image.. Connector Performance To define the pooling profile for the connector manually, access the Pooling Profile tab in the applicable global element for the connector. For background information on pooling, see Tuning Performance. Resources Learn more about working with Anypoint Connectors Amazon S3 Connector Release Notes -
https://docs.mulesoft.com/mule-user-guide/v/3.9/amazon-s3-connector
CC-MAIN-2018-09
en
refinedweb
using such route : map.namespace(:hubs) do |hub| hub.resources :settings, :member => { :general => :get } end I get : general_hubs_setting /hubs/settings/:id/general {:action=>"general", :controller=>"hubs/settings"} but I would like to get /hubs/:id/settings/general {:action=>"general", :controller=>"hubs/settings" with params[:id] = 1 what kind of route I should use ? thanks for your help on 2009-05-23 16:34 on 2009-05-23 18:03 Well you have a namespace for hubs thats why there is no id for the hubs map.resources :hubs do |hub| hub.resources :settings, :collection => { :general => :get } end That will give you this: /hubs/:hub_id/settings/general on 2009-05-23 18:30 Freddy Andersen wrote: > Well you have a namespace for hubs thats why there is no id for the > hubs > > map.resources :hubs do |hub| > hub.resources :settings, :collection => { :general => :get } > end > > That will give you this: > > /hubs/:hub_id/settings/general Thanks Fred... ( I was reading the most recent doc 'Rails Routing from the Outside In' but I just started few minutes ago... ) this is fine but general should be a resource ( action will be standard 'edit') I'll have also permissions, profile and personal.. (and one setting per hub) so I wrote map.resources :hubs do |hub| hub.resource :settings do |setting| setting.resource :general, :controller => "hub/settings/general" end end this gives me : on 2009-05-23 18:41 > GOT IT... I used: class Hub::Settings::GeneralController < ApplicationController but I did a mistake I should use a general_controller.rb , not general.rb thanks for your tip !
https://www.ruby-forum.com/topic/187661
CC-MAIN-2018-09
en
refinedweb
Hi all please can someone point me in the right direction... I have a DB of images that I am making into a gallery, using bootstrap for layout. For each image, roughly 60 per gallery, I am selecting title, description, filename and alt text from the database. I then need to group them into sets of 4 to populate the bootstrap rows. my approach (in English not phpcode) is: I'm not asking for the code, just if this is a sensible approach or if I am missing a way easier way of doing it, as I am relatively new to this. Many Thanks,Matt My only thought is on the third step and whether it's required or not. When you loop through in the fourth step, will you be looping through all ~60 images, or just four of them based on the "page" number? If you're looping through all of them, why bother splitting the array rather than just increment a counter every fourth record to denote "page"? I should add I'm not that familiar with bootstrap, or arraychunk() come to that, so either of those might make my comment irrelevant. As well as that, for relatively low numbers of records, it probably will make such a small difference in execution time that the only reason (to me) to pick a method is based on what makes the code clearer. arraychunk() I'm not into Bootstrap, so it would probably help to see the resulting html that you require, then the best way to create that from an array of objects can be determined.I think the challenge here is splitting the into rows of 4, I guess like a table but not. Doable, but not sure the best approach yet.As a non-bootstrap user I would go for the simpler approach of creating a single continuous list and use css to determine the image width and number per row, probably with flex or inline-block. Thanks for the replies. I'm far from a php expert so all feedback is useful. In brief to keep the bootstrap grid working properly the html needs to be: <div class="row> <div class="imagecontainer">image title desc here</div> <div class="imagecontainer">...</div> <div class="imagecontainer">...</div> <div class="imagecontainer">...</div> </div> <!-- end row --> So each row contains 4 images and related title etc. So my thought was to split the array into chunks of 4 images, then for each of those 4 items generate one row. I can handle all the styling etc, I just need to get my head around how I can take a set of 60 images, html blocks of sets of 4. Hope that makes senseThanksMatt So it's not going to be responsive? It's Bootstrap, so I guess it will work like a 4 column bootstrap layout. Hi Yes as above it's responsive depending on screen res. it goes from 1 row of 4 columns, then down to 2 rows of 2 colums, then down to 4 rows of 1 column. This bit it all fine, I am just trying to understand the best way to generate that html in sets of 4 items. Each set of 4 items must start with <div class="row"> and end with the closing div for that row. <div class="row"> Thank you Matt Maybe something along these lines.(Not tested) <div class="row> <?php $i = 1; while($row = $sql->fetch()) : ?> <div class="imagecontainer">image title desc here</div> <?php if($i === 4) : ?> </div> <div class="row"> <?php $i = 0 ; endif ; $i++ ; endwhile ?> </div> I think that may give you some extra mark-up on the last one. Close. That was actually really bad come to think of it. Another attempt, again not tested:- $i = 1 ; // Initialise the counter while($row = $sql->fetch()) { // Iterate throught DB results if($i === 1){ echo '<div class="row">';} // first item in the row, start new row echo '<div class="imagecontainer">image title desc here</div>' ; // Add this item if($i === 4){ // The 4th item in a row echo '</div>'; // Close the row $i = 0 ; // Reset the counter for a new row } $i++ ; // Counter up one } // end while Again it seems a bit fragile, as the number of results must be a multiple of 4 to generate valid html. Thanks for all the info, much appreciated. I will take a look and give it a try. It's similar to one thought I had (create a counter and close the row when the counter hits 4), but I don't know enough php to do that elegantly yet - I'll look at your suggestions. Thanks again The idea this time is to open a new row on the 1st, then on the 4th, close the row and reset the counter. That makes sense. I'll need to think about how the final block works which may not include 4 items but still needs to close the row. Much appreciated. thank you. I'd just have a Boolean "$divopen" and set it to true or false as the div is opened or closed. After the loop, if it's still true, then output the closing div tag. Seems a bit wrong to have another variable just for that one function though. Maybe by initialising the count to zero and incrementing it right at the start of the while() loop, then you could perhaps just check for the count not being zero after the loop. Just let Bootstrap do the work and play around with the grid system to make it suit your needs (the col-* classes). I don't think there is need for counter. Quick example: <?php // Image data from db $images = array(') ); ?> <html> <head> <title>BS test</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- jQuery required by Bootstrap --> <script src=""></script> <!-- Bootstrap --> "> <div class="row"> <?php foreach ($images as $k => $img) { echo '<div class="col-xs-6 col-sm-4 col-md-3">'.$img['title'].' '.$k.'<br/><img src="'.$img['path'].'"></div>'; } ?> </div> </div> </body> </html> Yes, it's the best you could do. This solution will let you to separate concerns, leaving the Data Manipulation layer separated from the Presentation layer. After getting your chunked array you can simply output it using 2 nested foreach loops in your template. Whereas solution from @SamA74 is a horrible spaghetti that is mixing database API with markup, that looks as though it's 1997, not 2017 now. Thank you I will take a look. I think (but could be wrong) that if I put all 60 odd items in one row I may end up with items not wrapping to the next row properly... but I appreciate your response. I've also found this which I may try too. <?php $numberOfColumns = 3; $bootstrapColWidth = 12 / $numberOfColumns ; $chunkArray = array_chunk($items, $numberOfColumns); foreach($chunkArray as $items) { echo '<div class="row">'; foreach($items as $item) { echo '<div class="col-md-'.$bootstrapColWidth.'">'; // your item echo '</div>'; } echo '</div>'; } ?> Thanks everyone, much appreciated. Did you try that code I gave? It's wrapping the images on medium and larger screens in a rows of 4 images. On small screens its wrapping the images in "rows" of 3 images. And in extra small screens it will wrap 2 images on row. Well, they are not bootstrap "rows" but try it out and you see how it works. You can just copy paste the code and put in some image named "test.png" in the same directory with the script. Bootstrap grid is 12 units wide. So when you tell the image divs to be for example col-md-3 it will put four images per "row" on medium and larger screens (3*4=12). If you wan't to have different behaviour on large screens you could add class "col-lg-2" to the image divs. Then on large screens it will wrap 6 images on row (2*6=12). Someone correct me if I am bullshitting. It's been a while I dived into bootstrap and things might have also changed from that. Thanks - I'll try it this evening, I'm on another project for the next couple of hours. As soon as I get anywhere I will feedback to this thread. in my head if I have all the items in one row, rather than many rows of 4 items, I'll get issues with items clearing each other but if that's not the case then your suggestion looks great Thanks for the input it's appreciated. Cheers
https://www.sitepoint.com/community/t/best-approach-to-split-mysqli-result-into-smaller-parts/277937
CC-MAIN-2018-09
en
refinedweb
In this section, we will walk through a configuration session with NIS+, focusing on using a script-based installation, which makes using NIS+ much easier. The main tasks involved in setting up NIS+ involve domain, master server, slave server, and user configuration. These tasks can only be performed once a network has been designed along the lines discussed in previous sections. Whether or not you are setting up a root or a nonroot domain, the basic process is the same: after initializing a master server and creating the appropriate administrative groups, the NIS+ tables are populated, and clients and servers can then be installed. In the case of a root domain, these servers can then act as master servers for lower-level domains. In this section, we review the process of setting up a master server, populating the NIS+ tables, configuring clients and servers, and setting up other domains. The first step in creating an NIS+ namespace is to create the root master server for the new domain. Continuing with the example for the Panther.Edu. domain, we create the root master server for Panther.Edu by using the nisserver command. The server will be known in DNS as ns.panther.edu. This command is used for most server configuration operations. In this case, we use the following command: ns.panther.edu# nisserver –r –d Panther.Edu. This creates a root domain master server without backward compatibility with NIS. In order to enable NIS support, you need to use this command: ns.panther.edu# nisserver –Y –r –d Panther.Edu. After creating the master root server for the Panther.Edu. domain on ns.panther.edu, the next step is to populate the NIS+ tables. To achieve this, we need to use the nispopulate command: ns.panther.edu# nispopulate –F –p /nis+files –d Panther.Edu. This populates all the tables for the Panther.Edu. domain and stores the information on the master server. Again, if you need to support NIS, you need to include the -Y option: ns.panther.edu# nispopulate –Y –F –p /nis+files –d Panther.Edu. In order to administer the NIS+ namespace, we need to add administrators to the admin group. We can achieve this by using the nisgrpadmin command. In the Panther.Edu. example, imagine we have two administrators, michael and adonis. In order to add these administrators, use the following command: ns.panther.edu# nisgrpadm –a admin.Panther.Edu. michael.Panther.Edu. adonis.Panther.Edu. If you are satisfied with the configuration, it is best to checkpoint the configuration and transfer the domain configuration information to disk copies of the tables. This can be achieved by using the nisping command: ns.panther.edu# nisping –C Panther.Edu. Now that we have successfully created the root domain, we can create clients that will act as master and slave servers for the two subdomains in the Panther.Edu. root domain: Graduate.Panther.Edu. and Undergrad.Panther.Edu. To create master servers for the nonroot domain Undergrad.Panther.Edu., we first need to set up the client within a domain by using the nisclient command. For the host client1.panther.edu, which will become the master server for the nonroot domain, the command is client1.panther.edu# nisclient –i –d Panther.Edu. –h Ns.Panther.Edu In order to actually set up clients within the domain, we can use also use the command nisclient, when executed from a nonprivileged user’s shell: client1.panther.edu% nisclient –u If this was for the user maya, maya would now be able to access the namespace. Next, we need to turn the client host we have initialized into a nonroot domain master server. After the root server is created, most organizations will want to create new master servers for each of the subdomains that form the domain. For example, in the Panther.Edu. domain, there are two subdomains (Undergrad.Panther.Edu. and Graduate.Panther.Edu.). In this case, two clients must be created from the root master server and then converted to be servers. Initially, these are root server replicas, but their designation then changes to a nonroot master server for each of the subdomains. Replica servers for the subdomain master servers can also be enabled. In the following example, we designate two client machines whose DNS names are client1.panther.edu and client2.panther.edu (recall that the master server for the root domain is ns.panther.edu). These two clients will actually become the master and slave servers for the subdomain Undergrad.Panther.Edu. To begin the server creation process, a similar approach is followed for the root domain as for the creation of the master server. First, we need to start the rpc daemon on the client machine that will become the master server for the nonroot domain: client1.panther.edu# rpc.nisd Next, we need to convert the client1 server to a root replica server in the first instance. This ensures that the subdomain inherits the appropriate settings from the top-level domain: ns.panther.edu# nisserver –R –d Panther.Edu. –h client1.panther.edu After replicating the settings from the root master server, the new nonroot master server is ready to begin serving the new subdomain. In this case, the root master server (ns.panther.edu) must delegate this authority explicitly to the master of Undergrad.Panther.Edu., which is client1.panther.edu: ns.panther.edu# nisserver –M –d Undergrad.Panther.Edu. –h client1.panther.edu Following the same routine we outlined for the root master server, we must now populate the tables of the new subdomain server client1.panther.edu: client1.panther.edu# nispopulate –F –p /nis+files –d Undergrad.Panther.Edu. Finally, having created a new master server for the new subdomain, we have to create a replica server to ensure service reliability in the event of failure: client1.panther.edu# nisclient –R –d Undergrad.Panther.Edu. –h client2.panther.edu The process of installing a server for the Undergrad.Panther.Edu. subdomain would need to be adapted to create the other subdomain (Graduate.Panther.Edu.), but the general process of setting up a client, converting it to a replicate server, and populating the tables would be very similar to this domain. Now that we have investigated how to create subdomains, the next section covers the day-to-day usage of NIS+, and the most commonly used commands that access tables, groups, and objects in the namespace.
http://etutorials.org/cert/solaris+system+network+adm/Part+II+Exam+Objectives/Chapter+27+Network+Information+Service+NIS+NIS/NIS+Configuration/
CC-MAIN-2018-09
en
refinedweb
Easier way to manage your ASP.NET Cache I was recently told by a client of mine that the ASP.NET app I developed was WAY TOO SLOW! I had to agree; the site was pinging the database twice on every load of the home page. So I said, "Give me a week... I'll make it work better". I went home feeling bad... my app was slow and I really didn't know where to begin. I had a lot of code that depended on pinging the database and I didn't want to sift through it all. What I ended up doing was using the cache object. I started to look at other open source projects and their approaches to caching. Than DotNetKicks' cache manager caught my eye! I went off that idea and created my own way of implementing an object to interface with the cache object, making it more manageable. The Cache manager I wrote has 3 methods (Grab, insert, clear), a constructor and 2 properties (CacheKey, CacheDuration). So here's my code in VB and C#: using System.Web; using System.Web.Caching; namespace MainSite.Cache { public class CacheManager<T> { private string m_cachekey = ""; public string CacheKey { get { return m_cachekey; } set { m_cachekey = value; } } private int m_cacheduration; public int CacheDuration { get { return m_cacheduration; } set { m_cacheduration = value; } } public CacheManager(string Key, int duration) { this.CacheKey = Key; this.CacheDuration = duration; } public T Grab() { return (T)HttpContext.Current.Cache(this.CacheKey); } public void Insert(T obj, System.Web.Caching.CacheItemPriority priority) { DateTime expiration = DateTime.Now.AddMinutes(this.CacheDuration); HttpContext.Current.Cache.Add(this.CacheKey, obj, null, expiration, TimeSpan.Zero, priority, null); } public void Clear() { HttpContext.Current.Cache.Remove(this.CacheKey); } } } Imports System.Web Imports System.Web.Caching Namespace MainSite.Cache Public Class CacheManager(Of T) Private m_cachekey As String = "" Public Property CacheKey() As String Get Return m_cachekey End Get Set(ByVal value As String) m_cachekey = value End Set End Property Private m_cacheduration As Integer Public Property CacheDuration() As Integer Get Return m_cacheduration End Get Set(ByVal value As Integer) m_cacheduration = value End Set End Property Public Sub New(ByVal Key As String, ByVal duration As Integer) CacheKey() = Key CacheDuration() = duration End Sub Public Function Grab() As T Return CType(HttpContext.Current.Cache(CacheKey()), T) End Function Public Sub Insert(ByVal obj As T, ByVal priority As System.Web.Caching.CacheItemPriority) Dim expiration As DateTime = DateTime.Now.AddMinutes(CacheDuration()) HttpContext.Current.Cache.Add(CacheKey(), obj, Nothing, expiration, TimeSpan.Zero, priority, Nothing) End Sub Public Sub Clear() HttpContext.Current.Cache.Remove(CacheKey()) End Sub End Class End Namespace So what I do is create a class and have a grab method that makes an instance of the cache manager object and calls the cache manager class' grab method. If the cache returns null, I have a private method in my class that does the nesessary things to put the info into the cache object. Here's an example: namespace MainSite.Cache { public class ReviewsCache { public static ReviewsCollection Grab() { CacheManager<ReviewsCollection> man = new CacheManager<ReviewsCollection>(GetKey(), 90); ReviewsCollection cont = man.Grab(); if (cont == null) cont = Insert(man); return cont; } private static ReviewsCollection Insert(CacheManager<ReviewsCollection> man) { ReviewsCollection cont = MainSite.Logic.Reviews.GetAll(); man.Insert(cont, Web.Caching.CacheItemPriority.Default); return cont; } public static void Delete(string sectionname) { CacheManager<ReviewsCollection> man = new CacheManager<ReviewsCollection>(GetKey(), 90); man.Clear(); } private static string GetKey() { return "Reviews"; } } } Namespace MainSite.Cache Public Class ReviewsCache Public Shared Function Grab() As ReviewsCollection Dim man As New CacheManager(Of ReviewsCollection)(GetKey(), 90) Dim cont As ReviewsCollection = man.Grab() If cont Is Nothing Then cont = Insert(man) Return cont End Function Private Shared Function Insert(ByVal man As CacheManager(Of ReviewsCollection)) As ReviewsCollection Dim cont As ReviewsCollection = MainSite.Logic.Reviews.GetAll() man.Insert(cont, Web.Caching.CacheItemPriority.Default) Return cont End Function Public Shared Sub Delete(ByVal sectionname As String) Dim man As New CacheManager(Of ReviewsCollection)(GetKey(), 90) man.Clear() End Sub Private Shared Function GetKey() As String Return "Reviews" End Function End Class End Namespace The cache object is a great thing to utilize in ASP.NET. But to make the caching manageable, you need to have a structure for managing the cache object and add logic to delete, grab, etc. Interfacing with a class is easier and follows the MVC pattern better than just saying Cache["MyKey"] in your logic or UI.
http://weblogs.asp.net/zowens/easier-way-to-manage-your-asp-net-cache
CC-MAIN-2016-07
en
refinedweb
Agda.Compiler.MAlonzo.Encode Documentation encodeModuleName :: Module -> ModuleSource Haskell module names have to satisfy the Haskell (including the hierarchical module namespace extension) lexical syntax: modid -> [modid.] large {small | large | digit | ' } encodeModuleName is an injective function into the set of module names defined by modid. The function preserves .s, and it also preserves module names whose first name part is not mazstr. Precondition: The input must not start or end with ., and no two .s may be adjacent.
http://hackage.haskell.org/package/Agda-2.2.6/docs/Agda-Compiler-MAlonzo-Encode.html
CC-MAIN-2016-07
en
refinedweb
Resource Library Contracts in JSF2.2 (TOTD #202) By arungupta on Feb 08, 2013 JavaServer Faces 2 introduced Facelets as the default View Declaration Language. Facelets allows to create templates using XHTML and CSS that can be then used to provide a consistent look-and-feel across different pages of an application. JSF 2.2 defines Resource Library Contracts that allow facelet templates to be applied to an entire application in a reusable and interchangeable manner. This Tip Of The Day (TOTD) will explain how you can leverage them in your web application. The complete source code for this sample can be downloaded here. This will run on GlassFish build 72 + latest JSF 2.2.0 SNAPSHOT copied over "glassfish3/glassfish/modules/javax.faces.jar" file. Consider the following WAR file: index.xhtml user/index.xhtml contracts/blue/layout.css contracts/blue/template.xhtml contracts/red contracts/red/layout.css contracts/red/template.xhtml WEB-INF/faces-config.xml The application also has two pages - "index.xhtml" and "user/index.xhtml". All contracts reside in the "contracts" directory of the WAR. All templates and resources for a contract are in their own directory. For example, the structure above has two defined contracts "blue" and "red". Each contract has a "template.xhtml" and a CSS. Each template is called as "declared template". The "template.xhtml" has <ui:insert> tags called as "declared insertion points". CSS and other resources bundled in the directory are "declared resources". The "declared template", "declared insertion points", and "declared resources" together make the definition of the resource library contract. A template client needs to know the value of all three in order to use the contract. In our case, templates have similar "ui:insert" sections and template clients will accordingly have "ui:define" sections. The difference will primarily be in the CSS. "index.xhtml" will refer to the template as: <ui:composition <ui:define . . . </ui:define> </ui:composition> The usage of the contracts is defined in "faces-config.xml" as: <application>A contract is applied based upon the URL pattern invoked. Based upon the configuration specified here, "red" contract will be applied to "faces/index.xhtml" and "red" contract will be applied to "faces/user/index.xhtml". <resource-library-contracts> <contract-mapping> <url-pattern>/user/*</url-pattern> <contracts>blue</contracts> </contract-mapping> <contract-mapping> <url-pattern>*</url-pattern> <contracts>red</contracts> </contract-mapping> </resource-library-contracts> </application> The template of the page can be changed dynamically as well. For example consider "index.xhtml" is updated as: <f:viewThe "ui:composition" is included in "f:view". An additional "contracts" attribute can bind to an EL. The value of this EL is populated from the radio button in the newly added form. Now you can choose a radio button, click on the "Apply" button and the new template will be applied to the page. The bean is very trivial: <ui:composition <ui:define <a href="#{facesContext.externalContext.requestContextPath}/faces/user/index.xhtml">Go to</a> other contract <p/> Look at WEB-INF/faces-config.xml for contract configuration. <p/><p/> Choose a template:<br/> <h:form> <h:selectOneRadio <f:selectItem <f:selectItem </h:selectOneRadio> <h:commandButton </h:form> </ui:define> </ui:composition> </f:view> @Named @SessionScoped public class ContractsBean implements Serializable { String contract = "red"; public String getContract() { return contract; } public void setContract(String contract) { this.contract = contract; } } This is a very powerful feature. Imagine providing different look-and-feel for your website and letting the user choose them, fun eh ? Contracts may be packaged as a JAR file. Such a JAR file maybe bundled in "WEB-INF/lib" directory. Read section 2.7 for more details about the packaging requirement and a marker file that identifies the JAR to contain a contract. In the specification ... - Section 10.1.3 provide background on the feature. - Section 2.7 provide formal definition of the feature. - Section 11.4.2.1 defines how the contracts are identified during application startup.
https://blogs.oracle.com/arungupta/?page=3
CC-MAIN-2016-07
en
refinedweb
Theres quite a bit of code, so I don't know if posting it will help or just make the page full of useless info, so I'll just state the problem and info. I declare a std::map called KeyMap, and a pointer to a class called Proc_Button, and receive multiple definition errors. Which is usually easy enough to fix. However, I have commented out every definition for those variables, and the problem persists. Commenting out the declaration, definitions, and uses of those variables allow me to compile with no problem. On top of there being no definitions involved in the 'multiple definition' error, GCC's error log points me to headers and source files where those particular variables aren't used or mentioned, even in commented out code. One line even brings me to stl_tree.h I have tried commenting the relevant lines out, I have created a fresh Code::Blocks project, changed the name and location of where those variables are declared, and spent about 20 minutes or so Googling around for a solution, so I'm completely stumped and have no idea how to fix this rather annoying problem. Extra Info: Both KeyMap and Proc_Button are in a namespace Any new, similar declarations get the same problems KeyMap was working, it just stopped upon the latest attempts to compile. Proc_Button is declared just like a variable with a similar use called Proc_Input which is working fine IDE is Code::Blocks 10.5 Compiler is MingW's GNU GCC Compiler View Tag Cloud Forum Rules
http://forums.codeguru.com/showthread.php?503312-RESOLVED-Crazy-Multiple-Definition-Problem&p=1970989&mode=threaded
CC-MAIN-2016-07
en
refinedweb
J Session How can we set the inactivity period on a per-session basis? We can set the session time out programmatically by using the method setMaxInactiveInterval() of HttpSession Session tracking basics Session Tracking Basics Session Tracking Session tracking is a process that servlets use..."); PrintWriter out = response.getWriter(); String title = "Session Tracking Session time Session time I need to develop an application has a user id and password to login and maintain the session for 8 minutes. All the pages under the login are not available if there is no activity for 8 minutes Servlets Books at a variety of techniques for saving session state, as well as showing how Servlets... are Servlets Servlets are modules that extend request/response-oriented servers... Servlets Books   give the code for servlets session give the code for servlets session k give the code of total sample examples of servlet session Session ID - Java Beginners Session ID Do we get new session id for a new domain after clicking..., IOException { HttpSession session = req.getSession(true); res.setContentType("text/html"); PrintWriter out = res.getWriter(); String title servlets The getSession(true) will check whether a session already exists for the user. If yes, it will return that session object else it will create a new session object and return it. While getSession(false) will check existence servlets regarding the user usage and habits. Servlets sends cookies to the browser client... the cookie information using the HTTP request headers. When cookie based session.... In this way the session is maintained. Cookie is nothing but a name- value pair servlets functionality to the servlets apart from processing request and response paradigm... the filters should extend javax.servlet.Filter. Every request in a web application Session subsequent HTTP requests. There is only one session object available to your PHP scripts at any time. Data saved to the session by a script can be retrieved...Session What Is a Session? Hi friends, A session Expired session -out period, so they do not have to maintain sessions indefinitely. If the session...Expired session How can I recover an expired session? If a session has expired, it means a browser has made a new request that carries servlets what is url rewriting what is url rewriting It is used to maintain the session. Whenever the browser sends a request then it is always interpreted as a new request because http protocol is a stateless protocol Session Related Interview Questions time-out value for session variable is 20 minutes, which can be changed as per... a user session in Servlets? Answer: The interface HttpSession can be used... Session Related Interview Questions   servlets pages to add one or more files into a web page and come out with given directives servlets servlets Even though HttpServlet doesn't contain any abstract method why it is declared as abstract class? what benifits we can get by declaring like this?(i.e, with out containing the abstract methods, declaring a class servlets { res.setContentType(?text/html?); printWriter out=res.getWriter(); out.println(?<...?): PrintWriter out=res.getWriter(); if(req.getParameter(?withdraw?)!=null) { if(amt> Servlets out=res.geWriter(); Connection con=null; PreparedStatement pstm=null..."); int count=0; PrintWriter out = res.getWriter(); String FirstName Servlets { res.setContentType("text/html"); int count=0; PrintWriter out... { res.setContentType("text/html"); int count=0; PrintWriter out Servlets ,IOException { res.setContentType("text/html"); PrintWriter out Servlets count=0; PrintWriter out= res.getWriter(); String FirstName Servlets { res.setContentType("text/html"); int count=0; PrintWriter out Servlets count=0; PrintWriter out = res.getWriter(); String SERVLETS ("text/html"); int count=0; PrintWriter out = res.getWriter Session Bean out. A session bean can neither be shared nor can persist (means its value can... Session Beans What is a Session bean A session bean is the enterprise bean that directly How do servlets work? Instantiation, session variables and multithreading How do servlets work? Instantiation, session variables and multithreading How do servlets work? Instantiation, session variables and multithreading Servlet Session () : This method is used to find out the maximum time interval that the session... to find out the HttpSession object. This method gives a current session...Servlet Session Sometimes it is required to maintain a number of request Servlet-session Servlet-session step by step example on session in servlets servlets - JSP-Servlet :8080/projectname/servleturl out put displayed Thanks Rajanikant 9986734636 Time JSP Session Parameter rewrite to set the time out for each session. removeAttribute() method is used... the session created time in milliseconds. The getLastAccessedTime() method returns.... The getMaxInactiveInterval() method returns the maximum amount of time the session Servlets - JSP-Servlet ; ResultSet rs; res.setContentType("text/html"); PrintWriter out...(Exception e){ out.println(e); } out.println("Time taken Session Last Accessed Time Example Session Last Accessed Time Example  ... of session and last access time of session. Sessions are used to maintain state...() method is used to find the time when session was created instead of extend servlets - Java Beginners ; if (daylypay < 8) throw new Exception("More time needed.../html;charset=UTF-8"); PrintWriter out = response.getWriter(); try Session Tracking Servlet Example client or the other when it tries to interact next time to the server. Session... creation time, last accessed time, maximum inactive interval. session id, and set... out = response.getWriter(); HttpSession session = request.getSession(); Date Session Beans a session bean if its client times out. A session bean can neither be shared nor can... Session Beans What is a Session bean A session bean is the enterprise bean session object session object how to make session from one servlet to another servlet for an integer variable. Please visit the following link: JSTL: Set Session Attribute in the session is <b><c:out...JSTL: Set Session Attribute  ... are using the jstl and there is a need to set a variable in the session. You all know Advantages of Servlets over CGI takes significant amount of time. But in case of servlets initialization... Advantages of Servlets over CGI Servlets are server side components that provides a powerful mechanism What is the default session time in php and how can I change it? What is the default session time in php and how can I change it? What is the default session time in php and how can I change Servlets Programming Servlets Programming Hi this is tanu, This is a code for knowing... { response.setContentType("text/html"); PrintWriter out = response.getWriter... visit the following links: session maintanance and also when a user log out the session should get destroyed...session maintanance Hi i am developing a small project using j2ee... i have some problem in maintaing session in my project... in my project when Introduction to Java Servlets to work with servlets. Servlets generally extend the HttpServlet class... Introduction to Java Servlets Java Servlets are server side Java programs that require session management session management i have a problem in sessions.when i login into my... of browser it goes to login page.and with out need of login ,admin page was opened. iam new to java. i dont have an idea on session and cookies can any one give me Keep servlet session alive - Development process to server after every specific time interval so that servlet will not invalidate session which is created on user logon. When user explicitly logs out from client...Keep servlet session alive Hi, I am developing an application.  Session scope Session scope Hii i m java beginner i just started learning java and i just started the topic of session tracking . I want to know about session scopes that is application ,page ,session etc etc and also their uses if possible Servlets Program Servlets Program Hi, I have written the following servlet: [code] package com.nitish.servlets; import javax.servlet.*; import java.io.*; import... ByteArrayInputStream(b); Blob b1=new SerialBlob(b); PrintWriter out jsp and servlets . Developing a website is generic question you may have to find out the usage Servlets - JDBC ;); PrintWriter out = response.getWriter(); Connection conn = null; String url Login/Logout With Session logged-in.) and session (Session Time: Wed Aug 01 11:26:38 GMT+05:30 2007...Login/Logout With Session In this section, we are going to develop a login/logout application with session Session Tracking in servlet - Servlet Interview Questions Session Tracking in servlet Hi Friend, Can we use HttpSession for tracking a session or else 1.URL rewritting 2.Hidden Form... out = res.getWriter(); String contextPath = req.getContextPath(); String Servlets differ from RMI . Servlets are used to extend the server side functionality of a website...Servlets differ from RMI Explain how servlets differ from RMI... by the client. Servlets are modules that run within the server and receive Can an Interface extend another Interface? Can an Interface extend another Interface? Hi, Can an Interface extend another Interface? thanks Features of Servlets 2.4 session allows zero or negative values in the <session-timeout> element to indicate sessions should never time out. If the object in the session... Features of Servlets 2.4   php session timeout php session timeout How to check if the session is out or timeout have occurred in the PHP application Pre- Existing Session Pre- Existing Session In this example we are going to find out whether the session... a existing session. It is not always a good idea to create a new session Destroying the session (), '', time()-42000, '/'); } session_destroy(); ?> The Output: As the time...Destroying Session Session_destroy() function is used for destroying all of the data associated with the current session. Neither it does not intervene any change password servlets - JSP-Interview Questions password servlet. Hi, I dont have the time to write the code. But i... { response.setContentType("text/html"); PrintWriter out = response.getWriter(); String...\";"; showTable(driver, url, username, password, query, out); } public Accessing Database from servlets through JDBC! . But in case of servlets initialization takes place very first time... Java Servlets - Downloading and Installation Java Servlets are server session tracking - Ajax session tracking explain session tracking with example? Hi friend, Session tracking is a mechanism that servlets use to maintain state... information about a shopping session, and each subsequent connection can Java httpsession and is used for the purpose of session tracking while working with servlets. Session... some period of time. The session object can be found using getSession() method... view and manipulate information about a session, for example, session id Accessing Session Object time. To access the session, you need an action class implementing... a jsp page for viewing the session object, session context and session time...() provides date and time when the last session is accessed. GetSession.jsp servlets - Servlet Interview Questions servlets Hi i want to create class timetable using servlets..... if suppose i create this using html after some time i want to modify this timetable using servlets with colspans and rowspans becuase this is my Session management in php - PHP a session until the user log out. Thanks in Advance...Session management in php I am creating a simple program in PHP to manage the session of user. It's basically a simple form that will allow a user Servlet Tutorials Links of any kind of server. Servlets are most commonly used, however, to extend Web...; Java Servlet Technology: Servlets are the Java platform technology of choice for extending and enhancing Web servers. Servlets provide Index Out of Bound Exception Index Out of Bound Exception Index Out of Bound Exception are the Unchecked Exception that occurs at run-time errors. This arises because of invalid parameter servlets servlets what is the duties of response object in servlets servlets servlets why we are using servlets Is session depend on cookie ??? the cookie then my user logged out that means there is something behind session...Is session depend on cookie ??? Since I created one session & as we say that session store at server side that means if I clear browser cookie servlet session - JSP-Servlet the counter if new user logs on and decrement if session times out or user Hi... on and decrement if session times out or user log offs.Thanks servlets what are advantages of servlets what are advantages of servlets Please visit the following link: Advantages Of Servlets Session Modification (); session_register('count'); $count++; if ($count==1) { $mess= "one time...Session Modification in PHP Session modification can be done through incrementing the loop. As the counting of loop increments, the session be modified.  Session creation and tracking ), it should write the current session start time and its duration in a persistent file...Session creation and tracking 1.Implement the information... information of last servlet instance: a) start time, b) duration. On refresh servlets deploying - Java Beginners servlets deploying how to deploy the servlets using tomcat?can you..."); PrintWriter out = response.getWriter(); out.println(""); out.println...); } } ------------------------------------------------------- This is servlets servlets - JSP-Servlet servlets. Hi friend, employee form in servlets...;This is servlets code. package javacode; import java.io.*; import java.sql...., IOException{ response.setContentType("text/html"); PrintWriterSP-Servlet servlets and jsp HELLO GOOD MORNING, PROCEDURE:HOW TO RUN... FOR ME,IN ADVANCE THANK U VERY MUCH. TO Run Servlets in Compand... understand it.. have great time.. all the best jsp,servlets - JSP-Servlet that arrays in servlets and i am getting values from textbox in jsp... IOException, ServletException{ PrintWriter out = response.getWriter servlets - JSP-Servlet { response.setContentType("text/html"); PrintWriter out = response.getWriter... session session is there any possibility to call one session from another session Session Session how to session maintaining in servlet with use of hidden fieds session session Session management in Java Servlets Servlets How to check,whether the user is logged in or not in servlets to disply the home page Can a Class extend more than one Class? Can a Class extend more than one Class? Hi, Can a Class extend more than one Class? thanks session tracking - JSP-Servlet session tracking hi, i m working on a real estate web site....which i have to submit as final year project. im having problem regarding session... it working...actually i want to know when a user log in or register and log out from servlets - JSP-Servlet first onwards i.e., i don't know about reports only i know upto servlets...("text/html;charset=UTF-8"); PrintWriter out = response.getWriter(); try... link: Thanks servlets - Servlet Interview Questions information.  ... ServletException, IOException { response.setContentType("text/html"); PrintWriter out... for more information. java Servlets - JSP-Servlet java Servlets Hi i am having a doubt regarding servlets as i am in learning stage give me any clew how to retrive data from mysql database after..., IOException { PrintWriter out = res.getWriter(); //Write your connection Doubt in servlets - JSP-Servlet ServletException,IOException{ res.setContentType("text/html"); PrintWriter out=res.getWriter... the following link: Thanks Advertisements If you enjoyed this post then why not add us on Google+? Add us to your Circles
http://www.roseindia.net/tutorialhelp/comment/73724
CC-MAIN-2016-07
en
refinedweb
Agenda See also: IRC log <DanC> trackbot, start meeting <trackbot> Date: 27 May 2010 <masinter> scribe: Larry Masinter <masinter> scribenick: masinter <DanC> (changed the stylesheets on Date: 2010/05/27 17:02:37 ) <DKA> +1 <DanC> +1 approve 20-minutes RESOLUTION: Minutes of 20 May ( ) are approved noah: F2F agenda looks stable jar: HT to organize talk about domain name persistence? noah: waiting to get info from people to finalize agenda, e.g., info from HT ... inclined to cancel next week telcon larry: likely to regret next week <DanC> . action-xxx due tuesday ht: hasn't gotten in touch with everyone needed; hoping to have that by next tuesday <DanC> action-414 due tuesday <trackbot> ACTION-414 Prepare a draft agenda, including goals and means, for a proposed afternoon session with invited guests, and circulate for discussion prior to a decision, on the subject of addressing the persistence of domain names due date now tuesday action-433? <trackbot> ACTION-433 -- Dan Connolly to help Tim get in touch with staff etc. re XML/HTML unification -- due 2010-05-28 -- OPEN <trackbot> dc: nothing to say at this time, but due tomorrow action-424? <trackbot> ACTION-424 -- Larry Masinter to start discussion on www-tag about additional finding/web architecture around MIME types in web architecture, updating existing findings -- due 2010-06-07 -- PENDINGREVIEW <trackbot> action-425? <trackbot> ACTION-425 -- Larry Masinter to draft updated MIME finding(s), with help from DanA, based on www-tag discussion -- due 2010-05-31 -- OPEN <trackbot> <DanC> 424 is done to my satisfaction <DanC> . action-425 due wednesday <noah> LM: ACTION-424 is to start discussion, ACTION-425 is wrap up close action-245 <trackbot> ACTION-245 Noah to respond to TPAC survey saying TAG will meet Monday and Friday (half days) closed close action-424 <trackbot> ACTION-424 Start discussion on www-tag about additional finding/web architecture around MIME types in web architecture, updating existing findings closed <DanC> (ah... 425 already has a due date in the future) <DanC> . ACTION Yves: review Larry's summary on mime types action-340? <trackbot> ACTION-340 -- John Kemp to summarize recent discussion around XHR and UMP -- due 2010-05-13 -- PENDINGREVIEW <trackbot> <DanC> (very nice go at the summary, JK; I do hope we can get it to the point where all the parties agree to it) JK: sent a summary, and got some feedback. What I plan to do is incorporate comments and write up difference between two positions. <noah> I found it very helpful too. <DanC> 0048 <DanC> DanC: There's a sentence about one proposal satisfying a use case that the other doesn't, could there be an example? JK: UMP satisfies use cases that don't require a pre-flight request, simple GET is supported, but PUT POST DELETE are not, they intend to write a separate spec. DanC: A 'simple get request' -- what does this have to do with either of them? <Yves> disclosing information to a malicious site can be done using "simple GET" anyway, like appending information after a ';' <DanC> ("some site"... fedex? for example? ah! photo/print... NOW we're talking my language) JK: Basically, the model proposed in CORS relies on an actual requestor, a web site returns content which contains an XMLHTTPRequest ... two web sites, client with web browser, using those two web sites. First site makes a request, gets something from a Photo web site (first site), and sends a XMLHTTPRequest to a print site (second web site). ... deal with current restriction on web browsers that content can only make requests back to its origin site. ... if you were to make an update to the 2nd site, e.g., to update the print queue, that required a POST, that would be supported by UMP but not CORS. CORS has a model that uses the Origin header, like Referer, and also uses cookies. If you go to a photos site, photos can make a request to print, which would essentially log the user into the print website. If you were to make a request that involved per-user data, e.g., a per-user queue, you would be using a logged-in .... (lost about 3rd party) ... Noah: in this, the photo site has stored cookies, and the print site has stored cookies. (Discussion: cookies are still per-site). ... the use case should include the prior interaction of the user with the print site. JK: instance that is current is the Facebook "Like" button <DanC> (hmm... but the facebook "like" button works without CORS and without UMP... so only partly relevant) JK: The button communicates with the Facebook site ... problem is malicious site causing 3rd party site to do something that the user didn't actually authorized. Proposal is that All XMLHTTPRequest are uniform, they do not send shared cookies or user credentials. Larry: ack Ashok: there is a spec called Web Storage which lets you actually store cookies for a session and lets you store cookies and data, even if the site is offline, ... there are a bunch of these... JK: not sure of relationship with CORS, unlikely to use UMP Asok: some of those specs actually help web sites share data... JK: My overall summary: essentially we have this model of using origin to prevent cross-site. CORS builds on that model, but doesn't actually solve the problem: someone could make a cross-site unauthorized request. I looked at it and agree, and will include this in my write-up. Any origin + cookies approach will still allow malicious cross-site requests. <DKA> +1 to it being worth-while noah: scheduled discussion at F2F, JK will not be there. JK: preparing a write-up which will be ready at F2F Larry: is there more to talk about? Noah: John's preparing, Ashok wants more discussion ... short session on this. Ashok suggests 30 minutes JK: Some would say CORS conflicts with web arch. In my opinion it doesn't encourage good use of web architecture. <jar> sunk cost noah: push-back is that UMP is less functional? CORS supports some use cases, but UMP doesn't necessarily support the same use cases? (CORS supports .. was JK) JK: CORS doesn't solve the problem it was intended to solve, in my opinion. Something else is needed. JAR: will ask Tyler about Ashok's question. Web Storage is a fancy version of cookies. All the same issues should arise. Noah: browsers already send cookies, do they also connect to data (??) action-340? <trackbot> ACTION-340 -- John Kemp to summarize recent discussion around XHR and UMP -- due 2010-05-13 -- PENDINGREVIEW <trackbot> <jar> ACTION: jar to Consult Tyler Close regarding UMP-informed web storage vulnerability analysis [recorded in] <trackbot> Created ACTION-435 - Consult Tyler Close regarding UMP-informed web storage vulnerability analysis [on Jonathan Rees - due 2010-06-03]. <DanC> action-340: ... <trackbot> ACTION-340 summarize recent discussion around XHR and UMP notes added <DanC> action-340: reopened for reasons that JK just told NM he'd make a note about <trackbot> ACTION-340 summarize recent discussion around XHR and UMP notes added action-379? <trackbot> ACTION-379 -- Larry Masinter to check whether HTML language reference has been published -- due 2010-03-24 -- PENDINGREVIEW <trackbot> <DanC> scribenick: DanC LMM: so yes, "HTML: The Markup Language" has been published as a WD (had the authoring guide gone to WD?) <masinter> <masinter> isn't a WD LMM: there's also this authoring guide in progress <Zakim> DanC, you wanted to ask if now is a good time for JAR to summarize discussion of UMP/CORS going to last call (ACTION-344) <masinter> makes reference to author view <Ashok> jar, from the Web Storage spec -- Each top-level browsing context has a unique set of session storage areas, one for each origin. LMM: the authoring guide hasn't become a WD and isn't one of the 8 to be published in the upcoming round of WDs <masinter> noah: would like to see us follow up with this <masinter> noah: I'm pretty sure there was a discussion about how the authoring view was a significant part of the solution to our problem. I took it as implicit that this would be progressed. <masinter> DanC: there's also an authoring guide? has the "hide UA text" option <scribe> scribenick: masinter Larry: I was confused. Working Draft now has interactive "Hide UA Text" ! noah: it may be the button does more than 'hiding UA text' danc: on the question of whether it is maintained: I reviewed the document, found something that was wrong, and it got fixed right away, so it's actively maintained. <DanC> (in particular, the boundary between "UA text" and other) noah: We had a discussion in 2008 where I had some expectations that things like front matter would also be appropriate... Larry: there are some documents. Whether they meet TAG requirements are unclear to me. I think everyone knows what the documents are. polling DanA: I don't have an opinion DanC: we need to decide ... I accept the current course and speed. JAR: I haven't reviewed the authoring guide or whether it qualifies as a language reference. Don't have much of an opinion. ... acceptable to me. Noah: I think the minimum bar the TAG should set is that we reach the point where we know what they are commited to progress. ... Not sure we know what they are doing. Ashok: I will vote +1 meaning there's nothing specific we want to do. <DanC> (re Noah's comment, I'm looking at the issues list to see if anything relevant lives there ) <DanC> (found it: ) <noah> I don't entirely buy Larry's claim that you can infer commitments from the current heartbeats. The fact that there's a hide/show UA in the current view doesn't seem to me to answer one way or the other whether they're committed to maintaining it on a Rec track long term. <noah> Henry, dan is trying to poll you. <noah> As soon as Larry is done. <noah> LM: I want a schema. <noah> LM: Might be supportive of work on polyglot. Larry: I'd like there to be a schema. I think a schema might be more relevant for polyglot files, though. <timbl> not up to speed on auth doc <noah> DC: They have their issue 59 normative lang reference. Must have made some decision "It seems to be agreed that publishing a non-normative reference document would be appropriate and sufficient." "The TAG seems satisfied with our course of action" "while reserving the right to raise further objections depending on how things go." <jar> "publishing a non-normative reference document would be appropriate and sufficient." I'm pretty sure that's Mike Smith's document H:TML <jar> link? This document is what I believe they have offered as a response to the TAG Noah: That document is useful, but I don't think it is sufficient as a language reference. <noah> I think schemas are useful for generators as much as for parsers, and that's for both text/html as polyglot <DanC> LMM: (a) a schema might be quite useful with polyglot documents (b) is rec track it contains a reference to but the latter isn't rec track <jar> Let me see if I understand... (in case I have to consult these minutes in the future...), HTML: The Markup Language (a.k.a. H:TML), is rec track but is to be non-normative lists 8 documents being published as 'heartbeat' or FPWD <noah> NM: I'd like to see a commitment that is rec track <noah> Henry? <DanC> action-379: spec-author-view clarification seems in order <trackbot> ACTION-379 Check whether HTML language reference has been published notes added <DanC> action-379? <trackbot> ACTION-379 -- Noah Mendelsohn to check whether HTML language reference has been published -- due 2010-03-24 -- PENDINGREVIEW <trackbot> <DanC> action-379? <trackbot> ACTION-379 -- Noah Mendelsohn to check whether HTML language reference has been published -- due 2010-03-24 -- OPEN <trackbot> <DanC> (schemas for the polyglot use case is something I hadn't given much thought.) <DanC> LMM: a schema might be quite useful with polyglot documents Larry: Pushing on schemas for polyglot and the ability to do schema-based processing as one of the justifications of XML/HTML unification DanC: EPub also seems to be relevant these days. EPub went to XHTML 1.1 or 1.2, I think (tracking down) <noah> I'd like to be sure we'er minuting that we're talking about ACTION-403, which is to respond to Murata Makoto's request for RelaxNG schemas for XHTML action-403? <trackbot> ACTION-403 -- Noah Mendelsohn to ensure that TAG responds to Murata Makoto's request for RelaxNG Schemas for XHTML (self-assigned) -- due 2010-05-11 -- PENDINGREVIEW <trackbot> <noah> Murata-san writes: <noah> Is it possible for W3C to publish RELAX NG schemas for XHTML modules? <noah> Such schemas were created by James Clark, but have not been published <noah> by any standardization organization. <DanC> What I’d change about ePub <DanC> "Support any valid form of XHTML" <noah> LM: We're looking at HTML/XML unification; I think schema-based processing is an advantage we should pursue ashok: danger is that Murata will spend a month on it and working group will just throw it away <noah> AM: Danger is Murata-san will spend time and it won't then move forward <DanC> HT sent email... XProc just went to REC with non-normative DTDs, XML Schemas, Relax-NG schemas... <DanC> ... none of them is claimed to be exactly right, but they're useful. <DanC> "Michael Smith, HTML Activity Lead" -- noah: will respond to Murata-san, suggesting (1) work with HTML WG and (2) TAG is interested in XML/HTML unification <DanC> ACTION: Connolly bring "Schemas for XHTML" inquiry to the attention of Michael Smith, HTML Activity Lead [recorded in] <trackbot> Created ACTION-436 - Bring "Schemas for XHTML" inquiry to the attention of Michael Smith, HTML Activity Lead [on Dan Connolly - due 2010-06-03]. <DanC> (good point; I'd like to see Murata-san's take on the polyglot spec.) <DanC> action-403? <trackbot> ACTION-403 -- Noah Mendelsohn to ensure that TAG responds to Murata Makoto's request for RelaxNG Schemas for XHTML (self-assigned) -- due 2010-06-02 -- OPEN <trackbot> action-411? <trackbot> ACTION-411 -- Larry Masinter to take the next step on announcing IRIEverywhere -- due 2010-04-13 -- PENDINGREVIEW <trackbot> <noah> scribenick: noah <DanC> LMM: HTML WG issue 59 is still open... status is unclear to me... <scribe> scribenick: DanC UNKNOWN SPEAKER: I wrote a change proposal; there's a couter-proposal... the outcome isn't clear... ... so that part of the plan... that the HTML spec would reference the new IRI spec... looks likely, though the details aren't nailed down LMM: the XML Core WG asked for a clarification "should we really [look at? point to?] the ??iri? document?" and I said yes, and I don't think they have finished with [that review] ... then there's the question of updating W3C XML specs that wouldn't be covered by the XML Core update... <jar> curious, why might xml core care about IRIs? namespace prefix definitions, or xsd:anyURI, or what? ... LMM: [details missed] which suggests we shouldn't close [i.e. should re-open] this IRIEverywhere issue <masinter> XML defined 'LEIRI' and had a separate spec <masinter> Request is to get people to reference <masinter> or its update <masinter> meeting in late July
http://www.w3.org/2001/tag/2010/05/27-minutes
CC-MAIN-2016-07
en
refinedweb
> dlucene-1.4.3-src.rar > Token.java /* Generated By:JavaCC: Do not edit this line. Token.java Version 3.0 */ package org.apache.lucene.demo.html; /** * Describes the input token stream. */ public class Token { /** * An integer that describes the kind of this token. This numbering * system is determined by JavaCCParser, and a table of these numbers is * stored in the file ...Constants.java. */ public int kind; /** * beginLine and beginColumn describe the position of the first character * of this token; endLine and endColumn describe the position of the * last character of this token. */ public int beginLine, beginColumn, endLine,, simlpy add something like : * * case MyParserConstants.ID : return new IDToken(); * * to the following switch statement. Then you can cast matchedToken * variable to the appropriate type and use it in your lexical actions. */ public static final Token newToken(int ofKind) { switch(ofKind) { default : return new Token(); } } }
http://read.pudn.com/downloads66/sourcecode/others/239785/lucene-1.4.3/src/demo/org/apache/lucene/demo/html/Token.java__.htm
crawl-002
en
refinedweb
> vxworks_tcpip_code.rar > magic.c /* magic.c - PPP Magic Number routines */ /* Copyright 1995 Wind River Systems, Inc. */ #include "copyright_wrs.h" /* *. */ /* modification history -------------------- 01b,16jun95,dzb header file consolidation. 01a,21dec94,dab VxWorks port - first WRS version. +dzb added: path for ppp header files, WRS copyright, tickLib.h. */ #include "vxWorks.h" #include "tickLib.h" #include "sys/types.h" #include "sys/times.h" #include "pppLib.h" static u_long next; /* Next value to return */ extern u_long gethostid __ARGS((void)); /* * magic_init - Initialize the magic number generator. * * Computes first magic number and seed for random number generator. * Attempts to compute a random number seed which will not repeat. * The current method uses the current hostid and current time. */ void magic_init() { next = tickGet(); srandom((int) next); } /* * magic - Returns the next magic number. */ u_long magic() { u_long m; m = next; next = (u_long) random(); return (m); }
http://read.pudn.com/downloads63/doc/222413/netinet/ppp/magic.c__.htm
crawl-002
en
refinedweb
> jfreechart-0.9.12.zip > ChartMouseEvent. * * -------------------- * ChartMouseEvent.java * -------------------- * (C) Copyright 2002, 2003, by Object Refinery Limited and Contributors. * * Original Author: David Gilbert (for Object Refinery Limited); * Contributor(s): Alex Weber; * * $Id: ChartMouseEvent.java,v 1.3 2003/06/12 16:53:57 mungady Exp $ * * Changes * ------- * 27-May-2002 : Version 1, incorporating code and ideas by Alex Weber (DG); * 13-Jun-2002 : Added Javadoc comments (DG); * 26-Sep-2002 : Fixed errors reported by Checkstyle (DG); * 05-Nov-2002 : Added a reference to the source chart (DG); * */ package org.jfree.chart; import java.awt.event.MouseEvent; import org.jfree.chart.entity.ChartEntity; /** * A mouse event for a chart that is displayed in a ChartPanel. * * @author David Gilbert */ public class ChartMouseEvent { /** The chart that the mouse event relates to. */ private JFreeChart chart; /** The Java mouse event that triggered this event. */ private MouseEvent trigger; /** The chart entity (if any). */ private ChartEntity entity; /** * Constructs a new event. * * @param chart the source chart. * @param trigger the mouse event that triggered this event. * @param entity the chart entity (if any) under the mouse point. */ public ChartMouseEvent(JFreeChart chart, MouseEvent trigger, ChartEntity entity) { this.chart = chart; this.trigger = trigger; this.entity = entity; } /** * Returns the chart that the mouse event relates to. * * @return the chart. */ public JFreeChart getChart() { return this.chart; } /** * Returns the mouse event that triggered this event. * * @return the event. */ public MouseEvent getTrigger() { return this.trigger; } /** * Returns the chart entity (if any) under the mouse point. * * @return the chart entity. */ public ChartEntity getEntity() { return this.entity; } }
http://read.pudn.com/downloads9/sourcecode/java/32180/jfreechart-0.9.12/src/org/jfree/chart/ChartMouseEvent.java__.htm
crawl-002
en
refinedweb
> Vc_STL.rar > SFile.h /* This is part of libio/iostream, providing -*- C++ -*- input/output. Copyright (C) 1988, 1992, 1993 Free Software Foundation written by Doug Lea (dl@rocky.oswego.edu). */ #ifndef _SFile_h #ifdef __GNUG__ #pragma interface #endif #define _SFile_h 1 #include extern "C++" { class SFile: public fstream { protected: int sz; // unit size for structured binary IO public: SFile() : fstream() { } SFile(int fd, int size); SFile(const char *name, int size, int mode, int prot=0664); void open(const char *name, int size, int mode, int prot=0664); int size() { return sz; } int setsize(int s) { int old = sz; sz = s; return old; } SFile& get(void* x); SFile& put(void* x); SFile& operator[](long i); }; } // extern "C++" #endif
http://read.pudn.com/downloads62/sourcecode/math/216766/Vc_STL/SFile.h__.htm
crawl-002
en
refinedweb
Unit Testing, Agile Development, Architecture, Team System & .NET - By Roy Osherove Ads Via DevMavens One of the things I wanted to show at my Interactive session on unit testing tips and tricks at TechEd this year was how you can "Stub" out results from LINQ Queries, or mock\stub Extension methods in .NET 3.5 (what's the difference between mocks and stubs?) The only mocking framework in existence that can truly stub out LINQ queries and extension methods is TypeMock.NET. Another option, if you use LINQ to SQL, is to be able to mock out the DataContext and the IOrderedQueriable interface, as outlined here, to return a custom query result set. I'll talk about the first option in this post, since it is much easier to read and understand. I may touch on the second one in a later post. TypeMock, I've talked about it before, is a very powerful mocking framework. much more so than Rhino Mocks or NMock, because it allows isolating static methods, private methods, constructors, and basically anything you can do in IL, because it uses the .NET Profiler APIs to intercept method calls and do whatever it wants with them. In that regard, it is almost too powerful because it rids of of the need to actually design your code for testability, and just test it as is (how you actually write the tests is another matter for another post). But I'd rather have the argument whether TypeMock is good or bad, than not have TypeMock on the scene at all, simply because it's just too damn valuable as is (disclosure: TypeMock is owned by a friend of mine). It's the only real framework that can deal with real untestable legacy code and still allow you to isolate classes enough to test them without changing the code under test itself. It's the only framework that allows to write unit tests for code that is based on .NET 3.5 and uses LINQ Queries and extension methods, allowing to isolate these two types of code and thus be able to separate things from their dependencies. Here are some examples I wanted to show (takes fro the examples that come with the TypeMock download: Example: Stubbing out LINQ Query Results First, we're going to create one fake result to return (array) from the LINQ query, and also introduce the real data source from qhich to query (realCustomerList). note that the customer list has 3 entries, and the fake list has only two entries. 1: ///Two Customer instances used as fake values 2: private static Customer fakeCustomer1 = new Customer { Id = 0, Name = "Fake1", City = "SF" }; 3: private static Customer fakeCustomer2 = new Customer { Id = 1, Name = "Fake2", City = "Redmond" }; 4: 5: /// A fake list used as return value in the tests 6: private List<Customer> fakeCustomers 7: = new List<Customer> {fakeCustomer1,fakeCustomer2 }; 8: 9: /// A list containing 3 cusotmer use as the "real data" 10: private List<Customer> realCustomerList = new List<Customer> { 11: new Customer{ Id = 1, Name="Dave", City="Sarasota" }, 12: new Customer{ Id = 2, Name="John", City="Tampa" }, 13: new Customer{ Id = 3, Name="Abe", City="Miami" } 14: }; Here's how the unit test looks: 1: [TestMethod] 2: public void MockSimpleQuery() 3: { 4: using (RecordExpectations r = new RecordExpectations()) 5: { 6: var answer = from c in realCustomerList select c; 7: r.Return(fakeCustomers); 8: } 9: 10: var actual = from c in realCustomerList select c; 11: 12: Assert.AreEqual(2, actual.Count<Customer>()); 13: Assert.IsTrue(actual.Contains(fakeCustomer1)); 14: Assert.IsTrue(actual.Contains(fakeCustomer2)); 15: } Line 6 is the one that tells the TypeMock record what LINQ query to intercept. Line 7 tells TypeMock what value to return when this query is intercepted. that means the query will never really take place. finally, we assert that what we got from the query is the fake list of customers. Pretty darn easy. But is this a good test? Not really. this is only a demo of what you code intercept with typeMock. a real unit test will actually test a piece of code that runs this query, and, instead of providing it with a list of objects to query, will just provide it with the fake return value to receive Example: Test that an anonymous type is created correctly 1: [TestMethod] 2: [VerifyMocks] 3: public void MockAnonymousTypeTest() 4: { 5: using (RecordExpectations rec = new RecordExpectations()) 6: { 7: //Mock the creation of the Anonymous Type 8: var p1 = new { Name = "A", Price = 3 }; 9: rec.CheckArguments(); 10: 11: //fake the value of the Name Property 12: rec.ExpectAndReturn(p1.Name, "John"); 13: } 14: //if creation will be done diffrently an exception will be thrown. 15: var target = new { Name = "B", Price = 3 }; 16: //verify that the fake value is returned 17: Assert.AreEqual("John", target.Name); 18: } Line 8 tells the typemock recorder that this is the anonymous type creation we'd like to intercept. Line 9 tell it to assert internally that the anonymous type is indeed created with the correct "Name" property value and the correct "Price" property value. so if I later initialize the anonymous type with the wrong values, I will get a test exception based on the expected values. Pretty neat. Line 12 is just an example of how you can also intercept and retun whatever value you'd like from the property of an anonymous type. in this case the name will always return "John" even though it may have been initialized differently. Example: Mocking Extension Methods Extension methods are static methods, which means you can't replace them with a different method instance. there are ways to design yoru code so that the calls to the static methods are testable, but assuming you're testing code that cannot be changed, or that is hard to redesign, intercepting the method call itself is almost the only choice. assume you've extended the Point class by adding this extension method: 1: public static class Extend 2: { 3: public static Point Multiply(this Point extendedInstance, int scalar) 5: extendedInstance.X *= scalar; 6: extendedInstance.Y *= scalar; 7: return extendedInstance; 10: } Now you can write a test like this: 3: public void MockExtensionMethod() 7: Point mocked = new Point(7, 9); 8: mocked.Multiply(6); 9: rec.Return(new Point(5, 5)); 11: 12: Point target = new Point(7, 9); 13: Point actual = target.Multiply(6); 14: 15: //Verify the returned vcalues 16: Assert.AreEqual(5, actual.X); 17: Assert.AreEqual(5, actual.Y); in line 7 we're actually using the extension method as part of our recorder, and telling the record to return a specific value. then we later use that value in our code under test (like 13) and assert that we god the mocked value instead of the real one (the extension method is not executed). What about other technologies? could you use this to test code that relies on other non testable technologies, like windows workflow, WCF etc? the answer is a big yes. the same principles apply, and most of these frameworks were not built with testability in mind. it's in those cases where people ask "how can I test such code where everything is sealed, private and static?" that I tell them that, currently, TypeMock is the only framework that solves this problem at a satisfactory result. Thanks Roy. I was a one who ask question about mocking sealed classes on "Unit Testing Tips and Techniques with Visual Studio 2008 and the NET Framework" presentation. Pingback from Reader Highlights (26/08): Silverlight, CEP and more « Tales from a Trading Desk Happy new year :) A new year is a great time to start off new things, or to renew old commitments that
http://weblogs.asp.net/rosherove/archive/2007/11/17/mocking-linq-queries-extension-methods-and-anonymous-types.aspx
crawl-002
en
refinedweb
ExecCommand (activity) From OLPC This activity does not work with Update.1, due to the improved security policies Update.1 contains. This activity tries to launch other Linux processes, which seems to be disliked by the activity-sandboxing system. If anyone has any ideas on how to fix this, let me know. -JT [edit] Summary This utility is targeted at experienced Linux/Unix users who hope to feel more at home with the XO. On launch, this activity either launches a predefined Unix command (you have to edit the script contained in the activity), or starts an graphical dialog and queries the user for what command to run. Useful for starting vncviewer or xmms. [edit] Packages You can find the current version at. This version starts a simple xdialog that requests for a command to run. Also, there is a modified version that just starts XMMS. [edit] Justification for implementation Looking through the Sugarizing page, it seems fairly clear that getting an Activity to simply start a non-activity application cleanly is non-trivial. Many attempts end up leaving a "loading" icon for the activity, or have multiple icons displayed as running activities, or other things. Native X applications on the XO simply show as a little circle icon, but a lot of work has gone into customizing this behavior for specific X applications. Personally, I couldn't care less what the icon looks like in the running activities disc, just so long as I can easily start my desired app. I realized a simple solution would be to create an Activity that simply starts, forks a new app in the process, and then closes itself, cleaning up all of the Activity mess left behind from a rapid exit. [edit] Bugs The previous justification might be pretty poor considering it still doesn't work sometimes. It seems it works the least when the processor is under a heavier load. It makes me think that my method is working due to some side effect that isn't being noticed by Sugar when the processor has too much to do. [edit] Implementation import os # get the exec script started right away. os.system("bin/exec-script.sh &") from sugar.activity import activity class ExecActivity(activity.Activity): def __init__(self, handle): activity.Activity.__init__(self, handle) self.set_title('Executing...') # this strategy doesn't seem to work if there's no toolbox toolbox = activity.ActivityToolbox(self) self.set_toolbox(toolbox) toolbox.show() # close, removing the unuseful icon from the activities disc activity.Activity.close(self) In retrospect, os.fork/execv would have been a better choice than os.system. [edit] Testing This activity was written and tested on a G1G1 laptop, build 656. [edit] Contributing This project really isn't big enough to warrant a full GIT or source-control setup. If you have a suggestion, or know of a way of making this system better (i.e., if it's possible to bypass the whole activity thing and still not have dangling activity icons), please let me know and I'll update the package. To contact the author, please visit [edit] Use Cases ExecCommand is successfully being used on XO laptops in NYC to help with manual network configuration. Check it out Activity Summary
http://wiki.laptop.org/go/ExecCommand
crawl-002
en
refinedweb
If it ain't broke, make it better. This post and sample code demonstrates how to use the Modal Popup Extender (MPE) to display a popup search box, select a record from the popup, hide the popup and display details for the selected record on the page using AJAX. We will be using the Northwind database and displaying a “Find Customer” popup. Once a Customer is selected from the search result list, we hide the MPE and refresh UpdatePanels on the page with information related to the Customer that was picked. Sample source code is attached at the bottom of the page. The events that occur as as follows: When we click on the “Show Customer Picker” button, we have a popup appear with the help of an MPE. This MP has a UserControl with textboxes, a search button and a GridView inside an UpdatePanel. Performing a “Search” will cause only the contents of this UpdatePanel to get refreshed. To avoid the search GridView from binding when the popup is hidden (when an async postback occurs by some other button on the page), we keep track of the MP visibility (The technique for keeping track of the MPE visibility is described here). If the MP is hidden, we use the ObjectDataSourceSelectingEventArgs.Cancel method in the ObjectDataSource Selecting event to cancel the SQL call. When we select an employee by clicking on the “Select” link, the Selecting event of the GridView is raised. We get the primary key of the selected customer by subscribing to this event. The MP is then hidden and a custom CustomerSelected event is raised. The Page is subscribed to the CustomerSelected event and saves the selected customer primary key to Session (You could use other techniques instead of this). It then forces the UpdatePanels of other UserControls on the page to refresh themselves. These UpdatePanels have databound controls in them that get bound by making SQL calls using the customer PK stored in Session. The page ends up showing information about the selected customer (Customer Details, Last 10 orders, To 10 Orders) on the page without a full page refresh. The sample website project shows you how to achieve this UI in three stages (three pages). The demo in Stage1 shows how the page is laid out without using AJAX – all postbacks result in a full page refresh. In Stage2, we add the UpdatePanels to perform partial page rendering. In Stage3, we add the MP that displays the “Find Customer” popup. Don’t forget to add a reference to the Ajax Control ToolKit before building the project. Source Code Mirror AFAIK, the Modal Popup Extender has no direct way to determine its visibility state from code behind. This post describes a workaround for that. The idea here is to wire up handlers that the MPE fires just before it’s about to show the popup (showing event) and before it’s about to hide the popup (hiding event). In the handlers, we set the property of a HiddenField webcontrol to either ‘1’ or ‘’. We then check the Value property of this HiddenField from code behind. If the MPE has a value of 1, we know the MPE is visible. 1: Sys.Application.add_load(applicationLoadHandler); 2: 3: 4: //Subscribe to the show and hide events of the modal popup. 5: //Set a hidden field some value when visible and set to empty when hidden 6: //This hidden field is used in code behind to determine the popup visibility. 7: function applicationLoadHandler() { 8: var mpeEmployeeSearch = $find('mpeEmployeeSearch'); 9: if (mpeEmployeeSearch) { 10: mpeEmployeeSearch.add_showing(employeeShowingHandler); 11: mpeEmployeeSearch.add_hiding(employeeHidingHandler); 12: } 13: } 14: 15: function employeeShowingHandler() { 16: $get('hfModalVisible').value = '1'; 17: } 18: 19: function employeeHidingHandler() { 20: $get('hfModalVisible').value = ''; 21: } The MPE in this case has been assigned a BehaviorID of mpeEmployeeSearch. The HiddenField WebControl has ID (rendered in HTML) of “hfModalVisible”. Finally, we can check the MPE visibility from code behind like so: 1: if (!string.IsNullOrEmpty(hfModalVisible.Value)) 2: { 3: //Do something 4: } The method below describes how to upload a file to a webserver and then import the file into SQL using either LinqToSQL or SQL Bulk Copy. The sample code only shows how to import xls and xlsx files but it could easily be extended to support csv files too. Sample code is attached at the bottom. We will be uploading data from an Excel file containing columns CompanyName and Phone and loading that into the Northwind Shippers table. We’ll start by uploading the file to the webserver. This is done with the help of the FileUpload web control. The FileUpload control has a SaveAs method which saves the contents of the file into the location that we specify. The file will be stored in a temp folder under App_Data since App_Data is not browsable directly by users. Once we have successfully uploaded the file to the webserver, we use an OleDbConnection and an OleDbDataReader to read each row from the Excel file. The OleDb connection string varies by file extension. The connection strings are shown below: HDR=Yes specifies that the first row of the data contains column names and not data IMEX=1 specifies that the driver should always read the “intermixed” data columns as text. The query we will be using with the connection is "SELECT CompanyName, Phone FROM [Sheet1$]". This assumes that we have an excel sheet called Sheet1 with header columns CompanyName and Phone. Method 1: Using LINQ To SQL Using the OleDBDataReader, we read each record and create a new Shipper object for each OleDbDataReader record as shown below. We add this object to the Shipper collection object that is associated with the Shipper table in the database using InsertOnSubmit and call SubmitChanges. This loads all the Excel records into the Shipper table. Note: Since we are calling SubmitChanges without any Transaction defined, LINQ to SQL automatically starts a local transaction and uses it to execute the insert statements. When all insert statements successfully complete, LINQ to SQL commits the local transaction – nice:-) This occurs behind the scenes. 1: //ref: 2: using (var context = new NorthwindDataContext()) 3: { 4: using (var myConnection = new OleDbConnection(base.SourceConnectionString)) 5: using (var myCommand = new OleDbCommand(query, myConnection)) 6: { 7: myConnection.Open(); 8: var myReader = myCommand.ExecuteReader(); 9: while (myReader.Read()) 10: { 11: context.Shippers.InsertOnSubmit(new Shipper() 12: { 13: CompanyName = myReader.GetString(0), 14: Phone = myReader.GetString(1) 15: }); 16: } 17: } 19: context.SubmitChanges(); 20: } Method 2: Using SQL BulkCopy With the BulkCopy method, we first have to define the Column Mappings since we will not be inserting data into the autogenerated ShipperID Primary Key column. The first column in the Excel file (CompanyName) has to be mapped to the second column in the Shipper table and the second column (Phone) has to be mapped to the third column in the Shipper table as shown below. We read each record from the OleDbDataReader and using the BulkCopy WriteToServer overload that takes in an IDataReader (which the OleDbDataReader implements). The BulkCopy, using this method bulk loads the Shippers destination table with the data from the OleDbDatareader. 2: //ref: 3: using (var myConnection = new OleDbConnection(base.SourceConnectionString)) 4: using (var destinationConnection = new SqlConnection(destinationConnectionString)) 5: using (var bulkCopy = new SqlBulkCopy(destinationConnection)) 6: { 7: //Map first column in source to second column in sql table (skipping the ID column). 8: //Excel schema[CompanyName,Phone] Table schema[ShipperID, CompanyName, Phone] 9: bulkCopy.ColumnMappings.Add(0, 1); 10: 11: bulkCopy.ColumnMappings.Add(1, 2); 12: bulkCopy.DestinationTableName = "dbo.Shippers"; 13: 14: using (var myCommand = new OleDbCommand(query, myConnection)) 15: { 16: myConnection.Open(); 17: destinationConnection.Open(); 19: var myReader = myCommand.ExecuteReader(); 20: while (myReader.Read()) 21: { 22: bulkCopy.WriteToServer(myReader); 23: } 24: } 25: } The BulkCopy object is much faster than LINQ to SQL. I am copying Pablo Castro’s newsgroup response: Sample Code Mirror: Version : Silverlight 2 Beta 2 Reading an XML file in an XAP package can easily be done with the help of a helper class like so: 1: public static class XmlHelper 3: public static XElement LoadDocument(string fileName) 4: { 5: //No longer required in Silverlight 2 since 6: //XmlXapResolver has been added as the default resolver for XmlReader 7: //ref: 8: //XmlReaderSettings settings = new XmlReaderSettings(); 9: //settings.XmlResolver = new XmlXapResolver(); 10: //XmlReader reader = XmlReader.Create(fileName, settings); 11: 12: XmlReader reader = XmlReader.Create(fileName); 13: XElement element = XElement.Load(reader); 14: return element; Once you have the XElement object, you are free to manipulate it with LINQ to XML as shown below: 1: public static List<Slide> LoadSlides() 3: XElement element = XmlHelper.LoadDocument("Slides.xml"); 4: var slides = from slide in element.Descendants("Slide") 5: select new Slide { 6: Title = (string)slide.Element("Title"), 7: Text = (string)slide.Element("Text"), 8: Image = (string)slide.Element("Image"), 9: }; 10: return slides.ToList(); 11: } The method above returns a List<Slide> where the Slide class is defined like so: 1: public class Slide 3: public string Title { get; set; } 4: public string Text { get; set; } 5: public string Image { get; set; } and the contents of the XML file we are reading is: 1: <?xml version="1.0" encoding="utf-8"?> 2: <Slides> 3: <Slide> 4: <Title>Slide 1</Title> 5: <Text>Slide 1 Description</Text> 6: <Image>Slide1.jpg</Image> 7: </Slide> 8: <Slide> 9: <Title>Slide 2</Title> 10: <Text>Slide 2 Description</Text> 11: <Image>Slide2.jpg</Image> 12: </Slide> 13: </Slides> Note that the XML file should have its BuildAction set to "Content".. Version : VS 2008 RTW When you have a team working on a project that contains a LINQ to SQL class (dbml), you might see the following message when trying to add a Table entity or stored procedure in a dbml created by a fellow developer: The objects you are adding to the designer use a different data connection than the designer is currently using. Do you want to replace the connection used by the designer? The reason this happens is because the connection string in Server Explorer used to add the new stored procedure is different from what was originally used. In a team environment, this will occur if one developer checks in the dbml using one connection string and another developer checks out the dbml and tries to add a stored procedure or a table using a different connection string. Connection strings generally fall into one of the two shown below for SQL server: Windows Authentication: Data Source=.\sqlexpress;Initial Catalog=northwind;Integrated Security=True SQL Authentication: Data Source=.\sqlexpress;Initial Catalog=Northwind;Persist Security Info=True;User ID=northwind_web;Password=** The connection string could easily vary by the type of authentication, the userid/password combination, instance name etc. This could become a source control nightmare with each developer checking in the dbml file with a connection string defined in their "Server Explorer". Therefore it is best, when possible, that all developers use the same connection string defined in "Server Explorer" when working with a dbml file for a given project. This brings up the question of how to change connection string when the dbml class library is used in an ASP.net website. The solution is create a connection string in web.config with the same name as what is specified in app.config. To understand why, we have to look at the class library dll. I have a sample project attached at the bottom of this post that contains a class library containing a dbml and the class library being referenced from an ASP.Net project. When the library gets built, a sealed class called Settings is generated internally. Here is the class with the help of reflector: [CompilerGenerated, GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "9.0.0.0")] internal sealed class Settings : ApplicationSettingsBase { // Fields private static Settings defaultInstance = ((Settings) SettingsBase.Synchronized(new Settings())); // Properties public static Settings Default { get { return defaultInstance; } } [ApplicationScopedSetting, SpecialSetting(SpecialSetting.ConnectionString), DefaultSettingValue(@"Data Source=.\sqlexpress;Initial Catalog=northwind;Integrated Security=True"), DebuggerNonUserCode] public string northwindConnectionString return (string) this["northwindConnectionString"]; } We see that the northwindConnectionString property has a DefaultSettingValue attribute containing the connection string. When Settings gets loaded at runtime, if it finds the same a connection string with name MyClassLibrary.Properties.Settings.northwindConnectionString in app.config or web.config, it will use that. If it does not find it, it reverts to the DefaultSettingValue. As long as our web.config has the same "name" as what the Settings class is looking for, that will get used in place of the default value. What about the case where we want one connection string during development and another for production? In web.config, you can specify the configSource attribute in the connectionStrings section. This attribute specifies the fully qualified name and location of an external configuration file that contains the connectionStrings section. During development, you can have configSource point to the connectionString of your test server and when you are ready to deploy to staging or production, you can change the attribute to point to the appropriate external config file. You can also have this done automatically using Web Deployment Projects or MSBuild. The sample project attached contains a class library with a connection string defined. This class library is used in an ASP.net website project containing a connection string in web.config with the same "name" as what was used in the class library thereby "overriding" the class library connection string value. The website project also has a configSource defined in web.config pointing to an external configuration file ConnectionStrings_Test.config. When deploying to production, the configSource will be set to point to ConnectionStrings_Prod.config which contains the production server connection string. Prerequisite: LinqDataSource & SqlDataSource Master/Details When working with the LinqDataSource, you may get the exceptions listed below. 1. Operator '==' incompatible with operand types 'Int32' and 'Object' The exception occurs because anytime a ControlParameter in the WhereParameters collection (IDictionary<string, object>) is null, it gets treated as type Object causing the LINQ dynamic expression parser comparison to fail. Consider the code snippet below: <asp:LinqDataSource <WhereParameters> <asp:ControlParameter </WhereParameters> </asp:LinqDataSource> This is part of the classic Master/Details scenario where the LinqDataSource fetches the Order Details based on the OrderID selected in the GridView1. When the page loads the first time, the OrderID ControlParameter is equal to GridView1.SelectedValue. GridView1.SelectedValue is null since no record has been selected in the GridView1 yet. Unfortunately, the LinqDataSource still attempts to fetch the data. The Linq expression parser treats the null parameter as type Object and the comparison fails because it was expecting type Int32. What we need here is a way to prevent the Select from occurring when any parameter is null. The LinqDataSource, unlike the SqlDataSource, for some reason, does not have a CancelSelectOnNullParameter property. This property when set to true, will cancel the select when any parameter in the SelectParameters collection is null. We can implement this by handling the Selecting event of the LinqDataSource and call the Cancel method when any WhereParameter is null like so: protected void LinqDataSource2_Selecting(object sender, LinqDataSourceSelectEventArgs e) foreach (KeyValuePair<string, object> kvp in e.WhereParameters) if (kvp.Value == null) { e.Cancel = true; return; } 2. Operator '==' incompatible with operand types 'Guid' and 'String' This exception occurs in cases where a parameter in the WhereParameters collection is of type Guid. <asp:LinqDataSource <asp:ControlParameter In the snippet above, you can see that the GridView1.SelectedValue is defined as a WhereParameter for the LinqDataSource. DummyID is the primary key of the data in GridView1 and is of type Guid. In the ControlParameter, its Type is set to Object because Guid is not available in the TypeCode enum. Unfortunately, this results in the linq expression parser treating the value as type String causing the comparison to fail. According to the Dynamic Expression API, a flavor of which is used by the LinqDataSource internally, we can perform explicit conversions using the syntax type(expr) where type is a type name optionally followed by ? and expr is an expression. The expression language defines the following primitive types: Object Boolean Char String SByte Byte Int16 UInt16 Int32 UInt32 Int64 UInt64 Decimal Single Double DateTime TimeSpan Guid The primitive types correspond to the similarly named types in the System namespace of the .NET Framework Base Class Library. You can also use the nullable form of a value type by writing a ? after the type name (ex: Where="Foo = Int32?(@Foo)"). Therefore, we can rewrite our where clause like so which gets rid of the exception. IMO, both these exceptions and a couple of others could probably be avoided if the LinqDataSource had a CancelSelectOnNullParameter and if the TypeCode enum had included the primitive types listed above and nullable value types. Paul Andrew has posted a link to the .NET framework 3.5 commonly Used Types and Namespaces poster - cool stuff! Download it here. Daniel Moth also has a good older post on the .NET 3.5 bits So my 65 year old neighbor called me yesterday because he was frustrated with the Office 2007 Ribbon on his brand new machine... After googling around, I found a great add-in for Office 2007 by Patrick Schmid called the RibbonCustomizer. It comes in two versions - the free Starter Edition and the Professional edition. Both versions, in addition to customizing the Ribbon, give you a "Classic UI" tab which emulate the Office 2003 menus and toolbars. As you can see from the screen captures, it does not replace the Ribbon UI but adds onto it, which, IMHO, lets the user work with a familiar UI and allows them to slowly transition into the new UI. For a core product like the Office Suite, Microsoft should have provided this ability by default. My neighbor couldn't be happier...
http://weblogs.asp.net/rajbk/default.aspx
crawl-002
en
refinedweb
#include "unicode/utypes.h" #include "unicode/uiter.h" Go to the source code of this file. unorm_normalize transforms Unicode text into an equivalent composed or decomposed form, allowing for easier sorting and searching of text. unorm. unorm_normalize helps solve these problems by transforming text into the canonical composed and decomposed forms as shown in the first example above. In addition, you can have it perform compatibility decompositions so that you can treat compatibility characters the same as their equivalents. Finally, unorm check will return UNORM_YES for most strings in practice. unorm_normalize(UNORM_FCD) may be implemented with UNORM. Definition in file unorm.h. Lowest-order bit number of unorm_compare() options bits corresponding to normalization options bits. The options parameter for unorm_compare() uses most bits for itself and for various comparison and folding flags. The most significant bits, however, are shifted down and passed on to the normalization implementation. (That is, from unorm_compare(..., options, ...), options>>UNORM_COMPARE_NORM_OPTIONS_SHIFT will be passed on to the internal normalization functions.) Definition at line 179 of file unorm.h. Result values for unorm_quickCheck(). For details see Unicode Technical Report 15. Definition at line 211 of file unorm.h.(NFD(s1))), NFD(foldCase(NFD(s2)))) where code point order and foldCase are all optional. UAX 21 2.5 Caseless Matching specifies that for a canonical caseless match the case folding must be performed first, then the normalization. Referenced by Normalizer::compare(). Concatenate normalized strings, making sure that the result is normalized as well. If both the left and the right strings are in the normalization form according to "mode/options", then the result will be dest=normalize(left+right, mode, options) With the input strings already being normalized, this function will use unorm_next() and unorm_previous() to find the adjacent end pieces of the input strings. Only the concatenation of these end pieces will be normalized and then concatenated with the remaining parts of the input strings. It is allowed to have dest==left to avoid copying the entire left string.. Referenced by Normalizer::isNormalized(). Test if a string is in a given normalization form; same as unorm_isNormalized but takes an extra options parameter like most normalization functions. Referenced by Normalizer::isNormalized(). Iterative normalization forward. This function (together with unorm_previous) is somewhat similar to the C++ Normalizer class (see its non-static functions). Iterative normalization is useful when only a small portion of a longer string/text needs to be processed. For example, the likelihood may be high that processing the first 10% of some text will be sufficient to find certain data. Another example: When one wants to concatenate two normalized strings and get a normalized result, it is much more efficient to normalize just a small part of the result around the concatenation place instead of re-normalizing everything. The input text is an instance of the C character iteration API UCharIterator. It may wrap around a simple string, a CharacterIterator, a Replaceable, or any other kind of text object. If a buffer overflow occurs, then the caller needs to reset the iterator to the old index and call the function again with a larger buffer - if the caller cares for the actual output. Regardless of the output buffer, the iterator will always be moved to the next normalization boundary. This function (like unorm_previous) serves two purposes: 1) To find the next boundary so that the normalization of the part of the text from the current position to that boundary does not affect and is not affected by the part of the text beyond that boundary. 2) To normalize the text up to the boundary. The second step is optional, per the doNormalize parameter. It is omitted for operations like string concatenation, where the two adjacent string ends need to be normalized together. In such a case, the output buffer will just contain a copy of the text up to the boundary. pNeededToNormalize is an output-only parameter. Its output value is only defined if normalization was requested (doNormalize) and successful (especially, no buffer overflow). It is useful for operations like a normalizing transliterator, where one would not want to replace a piece of text if it is not modified. If doNormalize==TRUE and pNeededToNormalize!=NULL then *pNeeded... is set TRUE if the normalization was necessary. If doNormalize==FALSE then *pNeededToNormalize will be set to FALSE. If the buffer overflows, then *pNeededToNormalize will be undefined; essentially, whenever U_FAILURE is true (like in buffer overflows), this result will be undefined. Normalize a string. The string will be normalized according the specified normalization mode and options. The source and result buffers must not be the same, nor overlap. Iterative normalization backward. This function (together with unorm_next) is somewhat similar to the C++ Normalizer class (see its non-static functions). For all details see unorm_next. Performing quick check on a string, to quickly determine if the string is in a particular normalization format.. Referenced by Normalizer::quickCheck(). Performing quick check on a string; same as unorm_quickCheck but takes an extra options parameter like most normalization functions. Referenced by Normalizer::quickCheck().
http://icu-project.org/apiref/icu4c/unorm_8h.html
crawl-002
en
refinedweb
JScrollPane is a public java swing class which is used to create JScrollPane component in order to provide a scrollable view of a component by managing a viewport with optional row and column headings along with optional vertical and horizontal scroll bars. A scroll pane component is primarily used to manage display of a component in a frame or window where dimension is large or whose size can change dynamically. JScrollPane inherits methods from it’s super classes namely JComponent, Container, and Component java classes. Like JPanel, JTabbedPane and JSplitPane, JScrollPane is an extension of java swing JComponent class. JScrollPane class implements ScrollPaneConstants and Accessible interfaces. The following is a list of constructors of JScrollPane Class: Underneath is a simple java program, ScrollPaneExample.java, which demonstrates a simple application of a JScrollPane component for managing display of an image icon image, myimage.jpg , by using scrolls within a JPanel component. The dimensions of myimage,jpg are larger than the set up area of the JFrame component used: import java.awt.*; import javax.swing.*; class ScrollPaneExample extends JFrame { private JScrollPane scrlPane; public ScrollPaneExample() { setTitle( " Demonstration of Scrolling Pane " ); setSize( 250, 150 ); setBackground( Color.gray ); JPanel tPanel = new JPanel(); tPanel.setLayout( new BorderLayout() ); getContentPane().add( tPanel ); Icon image = new ImageIcon( "myimage.jpg" ); JLabel label = new JLabel( image ); // Creating a Scroll pane component scrlPane = new JScrollPane(); scrlPane.getViewport().add( label ); tPanel.add( scrlPane, BorderLayout.CENTER ); } public static void main( String args[] ) { // Demonstraing application of the scroll pane,constructing and //setting visibility to true ScrollPaneExample sFrame = new ScrollPaneExample(); sFrame.setVisible( true ); } } Note: For further reference:
http://it.toolbox.com/wiki/index.php/JScrollPane
crawl-002
en
refinedweb
From: Steve M. Robbins (steve_at_[hidden]) Date: 2007-08-31 13:38:13 Hi, I'd appreciate some advice using the Boost unit testing library with Qt classes. I'm using MSVC 8.0 on windows XP. It appears that simply creating and destroying a QObject allocates some static datastructures which are reported as a memory leak by Boost.Test. I'd like to somehow suppress this "static leak" so that Boost.Test may find real leaks in my code. Consider the following test program #define BOOST_AUTO_TEST_MAIN #include <boost/test/auto_unit_test.hpp> #include <Qt/qobject.h> BOOST_AUTO_TEST_CASE( example ) { BOOST_CHECK_EQUAL( 1, 1 ); QObject obj; } It builds and runs fine, except that memory leaks are detected. My first line of attack is to clean up after Qt somehow. (c.f.) But failing that, is there some way to have Boost.Test ignore these static allocations? I tried turning off leak detection, allocating and deleting a QObject, then turning leak detection back on. But the leaks are still reported. Any ideas? Thanks, -Steve Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net
http://lists.boost.org/boost-users/2007/08/30648.php
crawl-002
en
refinedweb
From: Thorsten Ottosen (nesotto_at_[hidden]) Date: 2004-08-12 12:47:08 | > We chose "iterator_value" et al because we couldn't be sure that | > someone wouldn't need to make another concept Q in boost that had its | > own, separate notion of an value_type. If you then had a type X that | > fulfilled both the Iterator and Q concepts, how would you specialize | > value_type_of? | | It "iterator_of" and "value_type_of" were in separate namespaces | for the separate concepts, then they could be qualified or not as | the user sees fit using namespace aliases, using directives, and | full qualification. exactly. this at least one benefit of using namespace + _of postfix over prefixing with range_. If the namespace is hidiously long, the user can remove it or shorten it. but I would like to hear more voices on this issue :-) br Thorsten Boost list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk
http://lists.boost.org/Archives/boost/2004/08/70098.php
crawl-002
en
refinedweb
A, which you can still read here. The problems we encountered resolved themselves into two distinct issues. One is an issue with the XmlDisassembler component, and the other is a ‘feature’ of BizTalk’s handling of inbound maps on receive ports. This article describes these two issues, their characteristics and causes and how to avoid them or implement workarounds. It also provides some additional background information on inbound maps and some general guidelines on designing and implementing custom pipeline components. Inbound Maps BizTalk allows maps to be assigned to receive ports. You can assign multiple maps to a single receive port. Maps are assigned at port level, rather than at the level of receive locations. One of the great benefits of in-bound maps is that you can use them to transform messages before they hit the message box. This makes it easy to ensure that different messages, submitted to different receive locations, are transformed into canonical formats before being routed to service instances by BizTalk’s subscription mechanism. BizTalk decides, on a per-message basis, which available inbound map, if any, to use. It does so by inspecting the context of each message, looking for a promoted property called MessageType. This property is central to a number of BizTalk functions, and specifies the type of the message. The value of the property concatenates the target namespace (if any) of the schema that describes the message type, and the name of the document (i.e., ‘root’) element. The document element name is included as a URI fragment specifier. The MessageType property is chiefly used by the BizTalk subscription mechanism to route messages. It is marked as a promoted property within the message context in order to allow the subscription mechanism to operate on it. The property is generally set by a disassembler component, but could potentially be set by any pipeline component in another pipeline stage. When one or more inbound maps are assigned to a receive port, BizTalk uses the MessageType property to select a map by comparing the value of the property to the source schema of each map. When a match is found, the map is executed over the content of the body part of the message, and the results are assigned back to the body part. If no match is found, no map is executed. This is not treated as an error, and the un-transformed message is delivered to the message box. Stream Processing Maps are executed after pipeline processing has been completed. They operate on the contents of the body part of the message delivered by the pipeline back to BizTalk. This message may be different to the message initially provided to the pipeline. For example, it is sometimes necessary for pipeline components to replace an existing stream with a new stream (possibly within a new message and message part), although this should generally be avoided wherever possible. Replacing one stream with another is often a sign of lazy pipeline component programming and tends to be inefficient because it generally involves saving away the contents of a stream in a stateful manner in order to subsequently write the content to another stream. The whole point of employing a streaming approach within pipeline processing is to promote an efficient, stateless model of message content processing. The chief philosophical difference between the EPM (messaging) and XLANG/s (orchestration) host instance sub services is the issue of statefulness. The EPM sub service, which manages BizTalk receive and send handlers, is designed to function in a stateless manner. Orchestrations are stateful. For example, EPM services do not persist state to the message box. Orchestrations, by contrast, persist state to the message box every time the process flow reaches a persistence point (denoted by bold borders in the orchestration designer). Orchestrations support dehydration and recoverability models that are not available in pipelines. If the contents of a stream need to be amended or changed by a pipeline component, this is generally best done by wrapping the original stream in a new stream object that processes the data on the fly during read operations. In the most efficient pipeline designs, this can mean that all content processing is done just once when BizTalk reads the stream after the pipeline has completed its work. At this stage, BizTalk reads the entire stream, and each stream wrapper can perform its work. This approach is naturally stateless, although some temporary buffering is often required during a read operation. The design and implementation of well designed, efficient pipeline components often requires thought and hard work. Too often, it proves easier to adopt a simpler, less efficient approach. However, beware. Cutting corners in development generally does not pay in the longer term. Interestingly, the two issues we have discovered are both most likely to be encountered if you attempt to short-circuit good design. Seekable streams [Update: This issue was fixed in Service Pack 1 for BizTalk 2004] “The root element is missing” error. If the stream is non-seekable, and positioned at the beginning of the stream, the map will succeed (unless, of course, there is some other problem). If, for example, you create a pipeline component that replaces the body part stream with a new stream using the .NET MemoryStream class, any inbound map will fail (assuming this is the stream passed to BizTalk at then end of the pipeline). The MemoryStream class provides a seekable stream. BizTalk calls the CanSeek property of the stream object in order to determine if the stream is seekable. This property is inherited from an abstract member of System.IO.Stream, and returns a Boolean value. If the CanSeek property returns true, BizTalk calls the Length property which should return the byte length of the stream. The Length property is not called on non-seekable streams. In either case, BizTalk then repeatedly calls the Read method until the entire contents of the stream has been read. This happens regardless of the value returned by the Length property, even if the length is reported as 0. If no inbound map is selected, the message and its contents is delivered to the message box without any problem, regardless of the seekability of the stream. If a map is selected, the transform will only succeed if the stream is non-seekable. In passing, please note that I did wonder if the inbound map issue might be related to stream encoding. I therefore experimented extensively with the Length property, for example by encoding the stream contents in Unicode and returning the number of characters in the stream instead of the number of bytes. This made no difference at all. Guideline for Custom Pipeline Components If you are creating custom pipelines using custom pipeline components, take care that the last component in the pipeline returns a body part with a non-seekable stream. More generally, I would recommend that, as a guideline, any component you create should either return the same stream it received, or wrap that stream in a non-seekable stream wrapper class. Only return seekable streams in the rare case it is truly necessary to allow some other pipeline component to randomly access the stream contents. Avoid, therefore, returning ‘raw’ MemoryStream objects. If you are tempted to return a seekable stream, ask yourself if you might better implement your functionality within an orchestration or by using functoids and/or script in a map, rather than within a pipeline component. Remember that seekability always involves a stateful approach because the contents of the stream must be written out to some backing store. This may compromise the efficiency of your pipelines. Streams are provided by message parts. The IBaseMessagePart interface defines a method called GetOriginalDataStream, together with a property called Data. In the BizTalk documentation, there is a bold statement that says: “In custom pipeline components, Data clones an inbound data stream, whereas BodyPart.GetOriginalDataStream returns the original inbound stream.” “In custom pipeline components, Data clones an inbound data stream, whereas BodyPart.GetOriginalDataStream returns the original inbound stream.” As far as I can tell, this is only true if you implement IBaseMessagePart on your own custom message part class and write your own code to create a clone! BizTalk provides a message factory object (via the pipeline context) which has a CreateMessagePart() method. Although the message factory is designed for use in custom pipeline components, the message part created by this method does not clone your stream. The references of the streams returned from Data and GetOriginalDataStream() are identical (i.e., they are one and the same stream object). As a general guideline, you should normally use the message factory to create new message objects, and then return these from your pipeline component. You may also wish to use the unsupported PipelineUtil class to copy property bags (for part properties) and clone message context from an existing message. However, you may wish to avoid using message parts created by the message factory. Instead, consider creating custom message part classes that return non-seekable streams using GetOriginalDataStream() and seekable cloned streams using the Data property. Christof Claessens has written a first-class article on a rather different stream cloning technique for efficiently processing stream data within a pipeline component. One potential use of his approach is to allow the processing of a seekable cloned stream while still returning a non-seekable stream within the body part. Note that if the cloned stream is writeable, any changes you make to its content will not be handed on to subsequent pipeline components or to BizTalk. The cloned stream is processed on a secondary ‘worker’ thread, which avoids blocking the main thread when it reads the stream. Also note that reading the cloned stream is synchronised to the reading of the original stream. The worker thread cannot read and process stream content until that content has been read on the main thread. This approach allows you to avoid seriously compromising the efficient streaming of data through your pipeline while allowing complex processing of stream content in a multithreaded fashion. XML disassembler issues The second of the two issues concerns the XML disassembler component. This component creates and returns messages with non-seekable, read-only streams for the body part content. It does not provide clones via the Data property of the message part object. The XML disassembler has several uses. Perhaps its most basic function is to inspect the document element of inbound XML messages to determine their message type, and to promote the MessageType property within the message context. The component may also be used to validate XML and to disassemble XML into multiple messages. The XML disassembler uses a stream wrapper class called XmlDasmStreamWrapper to wrap the body part stream. This, in turn, utilises an instance of the XmlDasmReader which is a specialised XmlReader object. The Read method of the XmlDasmReader class maintains an internal flag to indicate if the reader has detected a new ‘document’ or not. By ‘document’ we mean an Xml node whose content is to be returned as a new message by the GetNext method of the XML disassembler. The new document flag is exposed via the internal IsNewDoc property of XmlDasmReader. This property is read/write. The XmlDasmReader instance is referenced directly by the XML disassembler component, and therefore, because both classes are in the same assembly, the XML disassembler has access to the IsNewDoc property. The XML disassembler uses this property directly in its GetNext method. The GetNext method of a disassembler returns the next disassembled message, and is called repeatedly by BizTalk until it returns a null value. In this way, a disassembler can convert a single inbound message into multiple messages. The implementation of GetNext (the relevant code is actually in a private method called GetNext2) tests the IsNewDoc property. If the value is true, the code constructs and returns a new message containing the new document content. If the value is false, the code tests a status flag to ensure that all processing is complete and then returns null. This in turn causes BizTalk to stop re-executing the GetNext method. Unfortunately, the GetNext method fails to use the read/write IsNewDoc property to reset the new document flag to false. Instead, the flag is reset within the Read method of the XmlDasmReader class. The code in this method then goes on to check if there is a new document, and changes the flag back to true if necessary. This constitutes a very common type of logical error (I have made similar mistakes countless times myself). For GetNext to work correctly, it is entirely reliant on the Read method of XmlDasmReader being called at least once. This, of course, happens when the Read method of the XmlDasmStreamWrapper is called, typically either by a subsequent pipeline component, or by BizTalk at the end of pipeline processing. The implicit assumption is that, after calling GetNext, the stream is always read before BizTalk makes a subsequent call to the GetNext method. This assumption is not valid. Consider a scenario where you use a disassembler to disassemble an Xml message into many messages, and then build a custom validation component. Your validator tests, say, some context property of your message, and based on its value, decides to either discard or keep the disassembled message. If the message is discarded, it may be replaced by a different message. Because the validator makes its decision based on contextual data, it has no reason to read the body part stream. Perhaps it returns null, instead of a message, or perhaps it creates a new stream and assigns this to the body part. Because the original stream provided by the XML disassembler is never read, the new document flag is never reset to false. The next time BizTalk calls the GetNext method, the XML disassembler creates and returns a new message, regardless of there actually being a genuine new document or not. Because the stream has not been read, the new message is given exactly the same body part content as the previous message. This effectively sets up a never-ending loop in which BizTalk hogs the processor cycles by repeatedly calling GetNext and generating a never-ending series of identical messages. Everything else slows to a crawl. Your only hope is to disable the BTSNTSvc service and kill the process. You can then create work-around code in your custom validator component, recompile and deploy, and re-enable and start the BTSNTSvc service. The workaround is simple. Before discarding the body part stream of a message provided by the XML disassembler, always read the stream. Now you can happily discard the stream without going into a never-ending loop. Another possibility is to create a custom disassembler that inherits, or wraps, the XmlDasmComp class. You could then write your own code to reset the new document flag. One problem with this approach is that the instance of XmlDasmReader is held in a private field of the XmlDisassembler. You would have to use reflection to get at this instance in order to set its IsNewDoc property. Conclusions It doesn’t pay to take shortcuts in designing and implementing pipeline components. Implementing good pipeline component design can actually be quite difficult, so consider using orchestrations or maps instead, especially where you must process message content in a non-streaming fashion. If you do create custom pipelines, design them to be as efficient and stateless as possible, and follow the guidelines outlined above. In particular, take account of the two issues described in this article. They are generally easy to avoid, once you know they are there, but can cause hours of headaches if you are unaware of them. Skin design by Mark Wagner, Adapted by David Vidmar
http://geekswithblogs.net/cyoung/articles/12132.aspx
crawl-002
en
refinedweb
ASP.NET and .NET from a new perspective When you wrap content with an UpdatePanel, it pretty much takes care of everything for you. But it can't do absolutely everything... Take for example some inline script: alert('hi'); </script> <p>Some html after the script</p> Inline meaning it appears inline with the rest of your HTML. First of all -- I'd say it's best not to use inline script if you don't have to. If you can move that script block to the bottom or the top of the page, or to a separate javascript reference, without consequence, then why not keep the script and UI nice and separate? But there are times when inline script is either necessary or just preferred. For example -- check out how you instantiate an instance of Silverlight on your page. That's inline script. It makes sense to keep the script where it is, since that's where you want your Silverlight app to be. Then, along came UpdatePanel... The over simplified way of explaining how UpdatePanel does its work on the client is through the innerHTML DOM property. When a delta is retrieved from the server, it finds itself in the existing DOM, disposes of the contents, and then assigns the new content via innerHTML. Thanks to a basically consistent behavior across the major browsers, the new content appears just as if it were there to begin with. But inline script doesn't work this way. Setting the innerHTML of a DOM element to HTML which contains a script block does not cause that script to execute. The only way to execute arbitrary script dynamically is to eval() it directly, or dynamically create a script element with document.createElement("script") and inject it into the DOM. So if we had the above HTML+SCRIPT inside an UpdatePanel, whenever it updated, the inline script would simply be ignored. UpdatePanel realizes that there may be script to be executed. But it only knows about such scripts if they are registered through the ScriptManager's Register script APIs. If you use that API correctly, UpdatePanel once again picks up the slack and takes care of the rest for you automatically. ScriptManager.RegisterStartupScript(this, typeof(Page), UniqueID, "alert('hi')", true); UpdatePanel intercepts registrations like these during asynchronous postbacks and sends the content down to the client separately from the HTML. And than the client side PageRequestManager dynamically injects a script element for you. So one solution to this inline script problem is simply not to use inline script. If you use this Register API all the time, it will work whether there is an update panel involved or not. But I want my Inline Script back! Alright already. So here is a novel little control that gives you the benefits of inline script without having the draw back of not working in an UpdatePanel.); } } If the request is normal, it just renders whatever the contents are as usual. If you happen to be in the middle of an asynchronous postback, it uses the RegisterStartupScript API. <asp:UpdatePanel <ContentTemplate> <i88:InlineScript <script type="text/javascript"> alert('hi'); </script> </i88:InlineScript> <asp:Button </ContentTemplate> </asp:UpdatePanel> You get the beloved alert dialog when the update panel updates! Thankfully, because you still put the script element itself in the html, you still get javascript intellisense and all that jazz, too. Simple, not terribly useful, probably not the best thing to do performance, but could be pretty handy in the right situation. UPDATE: If you actually use this, you may want to add a check for sm == null as well as IsInAsyncPostBack, so that the control works even if there's no ScriptManager on the page. Dave Reed has another great post that shows how to build a simple control that lets you put your script Pingback from Enlaces varios en Buayacorp - Dise??o y Programaci??n It's a bit misleading to indicate that inline script is necessary in some cases citing an example for silverlight. It would be far superior to put this code in an external .js file and link an init function for silverlight to the window.onload. I personally think the only script tags in a web page should be links to external files in the head of the page. Problem is not enough people are talking about how to do things in external files and with AJAX we now have a new type of speghetti code in our pages, javascript, when it could be so easily kept out of the page altogther. Seperate structure, presentation AND behaviour. Brian -- there's one important difference moving the script to an onload event handler. The page markup is displayed as the browser parses it, and so when the silverlight component is created it could cause an unwanted flickering in the page layout. That, and onload could take a long time to fire. For example it wont' fire until all the images on the page have been downloaded. I for one do not want to wait that long for an important part of my page to be visible. There's ways to limit that problem, but anything except inline script has the potential to cause flickering. There are ways to address this. You could check for the existence of the element you want during load. Getting a reference to the element and trying again until the reference exists. A bit more work is involved but I think it's worth the effort to create a true seperation of behaviour. Go back a few years ago and nobody cared about moving presentation (style) out of the markup. In recent times javascript is back in vogue, mainly because of Ajax but unfotunately with this has come a complete disregard for being accessible and unobtrusive. Microsoft have spoken, though, with their Ajax implentation and now Silverlight so millions will follow and I will have to stare at <a href="#" onclick="dosomething()" as well as embedded script blocks within the markup (which truly makes me cringe) for years to come. Checking again until it exists? Do you mean with a setTimeout? That's going to result in the same as if you didn't check until all the markup was parsed. There may still be a flicker. I'm all for separation of UI and logic, believe me. The real problem is that the DOM and Browser in general was never intended to be used like we use it today. We have to make due with what we have. You may find this discussion interesting:- Setting a timeout for 1 millisecond is pretty pointless - just use 0 milliseconds. That tells the browser to execute it as soon as possible but not immediately. It's a queuing mechanism. The browser constantly creates 'tasks' that are executed by a single thread. So 0 doesnt really mean 0, it's more like a suggestion. It puts the task on the end of the queue (probably after the task which is parsing the html). I have a bunch of controls with complex javascript "object" components that need to be initialized and have order dependency, previously this was being done with inline javascript created in the render method. But update panel ruined that. So i created a control that provides priority queues and uses a string builder to create one big startup script and register it. So here is my question, once a script has been registered with the ScriptManager can I replace that script with a new one using the same unique id? This doesn't appear to work. The other possibility would be to remove the script from the ScriptManger's script array, but this doesn't seem to work either. Any ideas? Randy -- no, there's really no way to replace a script that's already been registered. But I do not understand why are trying to do that. The pattern you should follow is to use the ScriptManager.Register APIs. You pass it the control which owns the script, which is what allows UpdatePanel to be able to successfully execute the script as well as detect whether the script should be executed (a script registered by a control that isn't within an updating update panel shouldn't be executed). Just search for say ScriptManager.RegisterStartupScript and there should be plenty of docs and examples. You can also implement the IScriptControl interface if you don't mind requiring a ScriptManager control on the page. You should definitely do this if you're dependent on the ms ajax library. If I'm missing something please paste in some code to help me understand :) Works perfectly Thanks :-) I have actually already gone down the registering startup script with the control and not the page path. And that solves the problem of dynamically created/conditional visible controls but the order dependency problem still remains. In fact, the documentation for the ScriptManager actually recomends using a string builder if you have order dependencies. It appears that these two requirements are mutually exclusive. Here is my use case: I have a conditionally visible homemade required field validator that is dependent on the control it is making required having run through its own set of javascript initialization. Even according to the documentation for registerStartupScript the scripts are executed in an indeterminate order, which results in a psuedo random, javascript error that makes you pull your hair out. This may be out of the scope of this thread, but I have been battling this problem for a couple months now and thought I saw a glimmer of hope in your inline script control. What if I were to register a javascript function call as the startup script, where my JavaScriptLoader control is creating this function dynamically in an update panel? Randy --- where on earth does it say Startup scripts aren't run in order of registration? That's just not true. If your validator were always after the control it validates in the markup then it should always have its render method called last. I'm still having trouble understanding your dependency problem. Why can't you factor these things down into libraries that you can include? Then both controls just include both libraries, with RegisterClientScriptInclude (or RegisterClientScriptResource). If the script is completely dynamic and so cannot be externalized, then I think there's a design problem. You should still be able to design it so that the functions are never changing, and all that changes is the parameters you pass it. One control depends on the data of the other. And that can be designed so that order doesn't matter. Both libraries get included, and then startup script initializes the whole shibang with specific parameters to an api defined in the libraries. Yes, after a quick test it appears that the register calls are not the source of my ordering issues. I can't find the page where i read that, maybe I dreamed it. Now that my credibility is completely lost, it appears that the ordering problems are a result of the script executing before the html elements are created, as is the default based on the LoadScriptsBeforeUI property. So the root of the problem is that these js object initialization scripts actually augment the html element with additional functionality, i.e. event handlers, properties, as well as dynamically generated functions. Here is an example of a init script generated by our dateBox: var ctl00_MC_SQI_SI_ctl00_DateComp = getObjectById('ctl00_MC_SQI_SI_ctl00_DateComp'); ctl00_MC_SQI_SI_ctl00_DateComp.IsEmpty = true; ctl00_MC_SQI_SI_ctl00_DateComp.ExtendedType = "LandaDateBox"; ctl00_MC_SQI_SI_ctl00_DateComp.SelectedDate = new Date('1/1/0001'); ctl00_MC_SQI_SI_ctl00_DateComp.ClearToSpecifiedDate = null; function ctl00_MC_SQI_SI_ctl00_DateComp_DateChanged () { return LandaDateBox_ChangeHandler(getObjectById('ctl00_MC_SQI_SI_ctl00_DateComp')); } var ctl00_MC_SQI_SI_ctl00_DateComp_DateValidator = getObjectById('ctl00_MC_SQI_SI_ctl00_DateComp_DateValidator'); function ctl00_MC_SQI_SI_ctl00_DateComp_DateValidator_Validate() { return LandaDateFieldValidator_Validate(ctl00_MC_SQI_SI_ctl00_DateComp_DateValidator); } function ctl00_MC_SQI_SI_ctl00_DateComp_DateValidator_ValidateOnBlur(event) { LandaDateFieldValidator_ValidateOnBlur(window.event ? window.event : event, ctl00_MC_SQI_SI_ctl00_DateComp_DateValidator); } function ctl00_MC_SQI_SI_ctl00_DateComp_DateValidator_ValidateOnChange(event) { return LandaDateFieldValidator_ValidateOnChange(window.event ? window.event : event, ctl00_MC_SQI_SI_ctl00_DateComp_DateValidator); } ctl00_MC_SQI_SI_ctl00_DateComp_DateValidator.evaluationfunction = ctl00_MC_SQI_SI_ctl00_DateComp_DateValidator_Validate; This is all being generated dynamically but it is all also unique to this control. I am not sure how this could be externalized. My current line of attack is to wrap these init scripts with an function and add that function to the Sys.Application.load event then use the control based registerStartupScript to register that whole mess. This seems to get me most of the way there. Thanks for all your help. Randy... if you register your script with RegisterStartupScript then it should always appear after the HTML, unless your controls are after the end of the form element (and if thats the case, just put them inside). Startup scripts always go to the bottom of the form. And during async updates, they always execute after the html has been updated. What do we use when the inline JavaScript code is like this <script type="text/javascript"> function DisplayMsg() { alert ("Message"); </script> ---- I dont want to build the entire JS code in the code behind and pass it to RegisterScriptBlock or RegisterStartupScript. Nor do I want to create a separate JS file for all the script code that is present in an user control. Kulp -- not sure what you're asking. Are you saying you want this script to be included but you don't want to do the work of registering it through the ScriptManager APIs? Well thats exactly what the control I described in this article is good for... Article is really really helpful, but as i am new to ASP.NET i am getting an error "i88:InlineScript" is not a valid tag. Can any one tell me how to register and use that control ? Please help i am stuck Parag -- try this msdn2.microsoft.com/.../c76dd5k1(vs.71).aspx Can you paste a code snippet how to use the control you created. It will be really really helpful. I created a usercontrol and put the prerender method in the usercontrol and registered the control on my aspx page. but when i put <script> tag with in the usercontrol tag it started giving me error. I was looking for this code...thanks. In my situation i could dynamically load a user control but faild to load or run javascript associated with that user control. with your code I fixed the problem. I still have a one more issue though. i cannot load a user control that has ajax control (say TabContainer). it works however if i don't use update panel from the calling program (default.aspx). any idea how to fix this issue? thanks for the contribution to the asp.net community. regards achu. (atmonline@yahoo.com) "looking for a true web alternative for desktop applications" achu -- why can't you load the control? Are you getting an error or what? yes my TabContainer (Declaratively) defind in the usercontrol. which is dynamically load into the main page say (default.aspx). Usercontrol loading with ajax tab details but no visual tab present (I think same situation for all ajax controls due to javascript i believe) to summaries.... 1. default page has gridview with buttons on each row, 2. when user click a button a usercontrol is loaded and display in to a popupcontrol (which is in default.aspx). everything work as expected but if I try to load user control that include a ajax control (like tabcontrol) won't work properly. things fixed with your codes... 1. Javascript issue 2. Postback from usercontrol. thanks achu. achu -- I'm afraid you'll have to tell me more than just "it wont work properly" :) What does that mean? I can't help if I don't know what the problem is. When i try to load usercontrol from default.aspx the tabpanel not displays the visual tab instead it show only the tab text. how do i fix this without removing updatepanel? please see this simple code to illustrate the problem. *****User Control ********* <div id="mydiv" runat="server"> <cc1:TabContainer <cc1:TabPanel <ContentTemplate> <span>Tab1 Text</span> </ContentTemplate> </cc1:TabPanel> </cc1:TabContainer> </div> ******Default.aspx*********** <asp:UpdatePanel <ContentTemplate> <asp:LinkButton</asp:LinkButton> <asp:Panel</asp:Panel> </ContentTemplate> protected void Button1_Click(object sender, EventArgs e) UserControl control = (UserControl)this.Page.LoadControl ("UserControl.ascx"); control.ID = "MyControl1"; box.Controls.Clear(); box.Controls.Add(control); achu -- Sounds like a bug with the Tab panel control, which is part of the AJAX Control Toolkit. I'm afraid my team doesn't have much to do with that, and I can't speak to the source code. I recommend you visit the forums for the toolkit and see if anyone familiar with it can help you, here: forums.asp.net/1022.aspx check this out blog.jeromeparadis.com/.../1501.aspx i am dynamically creating the script in the button click. and registered using scriptmanager.. ScriptManager.RegisterStartupScript(saveButton, Me.GetType(), WellPATHConstant.Dialogbox, rejectMessageSB.ToString, False) could u say me.. when the script is executed... i want this to be on click of that button... Pingback from .Net Project Blog » Blog Archive » Using JavaScript inside UpdatePanel (Asp.NET 2.0) Hello, I receive this error "The type or namespace name 'StringBuilder' could not be found (are you missing a using directive or an assembly reference?)" App_Code/InlineScript.cs .. InlineScript /// </summary>); } ... cheers, imperialx imperialx -- you need to add the right using statement. StringBuilder is under the System.Text namespace, so add: using System.Text; I have a problem I have yet been able to solve. I see you knowledge of scriptmanager, and lifecyle is far better then mine so I ask... I have an app. I am working on that dynamically renders usercontrols(its a module application). These usercontrols contain 3rd party UI controls. These controls require script references that get generated when the usercontrols do. So this all works fine until I tried to use AJAX webservices which required a ScriptManager. The ScriptManager(as I understand it) takes over script ref. for the page. So if the SM exisits none of my third party UI controls render correctly. Any Ideas? Thanks I actually left out one key thing.... I am dynamically generating these user controls via the 3rd party's CallBack control. LDAdams -- Sorry I'm not really following what the problem is. ScriptManager existing on a page cannot cause scripts to vanish. Perhaps if you package up a small example of your problem and send it to me I can help more (blog at infinity88.com). First my apologies if this is not where you wanted me to post this. I also realize the problem I am having is complicated by using a 3rd party tool. So I appreciate any help. I do feel that there is a code solution for this problem though. I am not sure an example would really help as it would look pretty standard. ScriptManager on the page and the standard code to dynamically render a control. I will though try and explain myself better. First here is the problem stated from an employee from the company: "Recently I've come across a user who was using CallBack to dynamically create our controls on a page with a script manager. Once a script manager is on the page it will handle all the scripts, meaning it will not let callback initialize the newly created control. This can be remedied two ways. The first is an old one: Place an empty instance of the control on the page, this way it knows about the scripts. This worked fine in our testing. My Comment: (Since each dynamic usercontrol can have a number these controls in it I don’t think this is doable) Second is: Use Update panel. This is a situation where update panel is probably a better option for creating dynamic controls" My Comment (I have built the application around their Callback. I was attempting to stay away from full page re renders which there control provides.) The ScriptManager is not actually making the scripts vanish; as I understand it the ScriptManager is just not allowing the newly created controls to use their dynamically rendered script refs. Hope this makes better sense. Thanks for any help, and again I understand if this falls out of the scope of this blog as I am using 3rd party UI components. Thanks... ldadams -- I assume by "Callback" you mean the ASP.NET Callback feature. And I think what you mean by "using callback to dynamically create our controls on a page" you mean that somehow, someone is using a callback to call a server-side method, which is creating the 3rd party control and manually rendering it into a string, which becomes the callback result. On the client, the rendered html is injected into the DOM. Is that what you are saying? If so, then this problem has nothing to do with ScriptManager, at all. When you call Render() on a control directly, you are completely by-passing the lifecycle for the control. You can't just instantiate a control and call render, and expect it to work. The control must particpate in the lifecycle of the page by being a part of the control tree -- postback, viewstate, and script registration all depend on this. Doing this custom rendering does nothing more than give you the HTML the control would have rendered, but generating HTML is not the only thing controls do, so you're really on your own at that point. As you elluded to you'd have to use an UpdatePanel to get the functionality you want. Its absolutely necessary to do full postbacks to do this in the way you want, and UpdatePanel is what makes full postbacks via AJAX possible. You might be able to hack it up by manually ensuring scripts are included when they are needed and continuing to use your callback mechanism, but understand that the control was not designed for that kind of use, and neither were controls in general, so you'd probably go down a path of hacking up things just to work around the issues, and you might run into a big dead end depending on the nature of the control. For example if the control requires postback data (like, it contains a textbox and you need to interact with the textbox value on postbacks), then this isn't going to work at all. great job! tx for InlineScript and explanation of the issue with inline JS block Hi, I get this error: i88:InlineScript Unkown server tag. anyone help? Hi..... I have a problem that when I use script manager given below my code works fine............ But my update panel is not updating ........ If I am not using the script manager then update panel will update its content...... Can Any one help me.... protected override void Render(HtmlTextWriter writer) ScriptManager.RegisterStartupScript(this, typeof(MyTest), UniqueID, "setstyles();", true); Thnaks Abins -- you render base into a string 'script', but then it goes no where. You just have this 'setstyles' call. Whatever it is you are rendering isn't going anywhere. Also why are you capturing the rendering like that in the first place... unless you're trying to handle some real specific scenario you shouldn't need to do that, just let it render normally and it will update.. Here's the link: I have the control in a .ascx file. I have registered the control within my .aspx page. I am calling the control within the update panel. But, I get this error: "... does not have a public property named 'script'" It is erroring at <script type="text/javascript"> DKoser -- it sounds like you are trying to put the script element inside a control that doesn't support nested content. You'll have to post your markup or email it to me for me to tell you more. Thanks for the article, it help me This may be a simple question but I have no idea how to do it. I want to place inline html between custom asp.net user control tags e.g <customPrefix:customTag <h1>test</h1>other html </customPrefix:customTag> how do you access the content in between the tags and print it somewhere in your control? Robert -- you need the right attributes. First define a default property with the DefaultPropertyAttribute, then you need the PersistenceModeAttribute, with PersistenceMode.InnerDefaultProperty. This article may be helpful as well: msdn2.microsoft.com/.../f820d25y.aspx Hi, I test RegisterStartupScript() under ASP.NET 3.5 and found the registered script appears at <head>, Not at the end of the page. WHY? Thanks, Ricky. <body> <form id="form1" runat="server"> <div> <asp:ScriptManager </asp:ScriptManager> <asp:UpdatePanel <asp:Button </asp:UpdatePanel> </div> </form> </body> string msg = string.Format("alert('{0}');", "Hi, Button1 is clicked!"); ScriptManager.RegisterStartupScript(this, typeof(Page), "clcikTest", msg, true); Ricky -- it doesn't. Show me, because thats not how it works for me. Hi, the link contains the screen shots I described. Following 1,2,3.png, you should observe the behaviors. If you could not link to it, please let me know. The code is of <%@ Page Language="C#" AutoEventWireup="true" CodeFile="InjectJS.aspx.cs" Inherits="InjectJS" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ""> <html xmlns=""> <head runat="server"> <title>Untitled Page</title> </head> <asp:TextBox</asp:TextBox> </html> public partial class InjectJS : System.Web.UI.Page protected void Page_Load(object sender, EventArgs e) ScriptManager1.SetFocus(TextBox1); protected void Button1_Click(object sender, EventArgs e) ScriptManager.RegisterStartupScript(UpdatePanel1, typeof(UpdatePanel), "clcikTest", msg, true); ricky -- your code registers the script during an async postback. So how is it the code could 'appear' anywhere? Script that comes back during an async post is just executed, it doesn't 'appear' anywhere. It does get dynamically added to the HEAD as a script element, but just so it can be executed. It doesn't matter at that point if it's in the head or elsewhere, it still executes when it is supposed to. Hey,I have some problems on UpdatePanel with FormView.In my project, a FormView was used within a UpdatePanel to reduce the flicker when user input data. A javascript calendar Control was used to select date.the question is that when UpdatePanel was remove, the calendar control work fine, but when added, failed. another problem is that if the initial FormView was set to Edit, It also works fine, but if set to ReadOnly, failed.Here's some code snippet: <asp:UpdatePanel <ContentTemplate> <asp:TextBox</asp:TextBox> //here's the TextBox, work fine <script type="text/javascript"> Sys.WebForms.PageRequestManager.getInstance().add_endRequest(InitCalendar) function InitCalendar() { Calendar.setup( { inputField : $get("<%=TextBox1.ClientID%>"), ifFormat : "%Y-%m-%d", showsTime : false, button : "TextBox1", singleClick : false, step : 1 } ) } InitCalendar(); </script> Ferret -- inline script doesn't work inside an update panel like that, as the article explains. It will work on the FIRST request to the page, but it will not on async updates, which explains why you dont see the problem when you're originally in edit mode. Referring to "public class InlineScript : Control {" I assume it is a Web User Control, am I correct? Do you have the vb version of the code? Thanks! Yenyen -- no, it's just a control. If it were a user control there'd need to be an ascx file. This is a custom server control. Sorry I don't have a VB version but it should be easy enough, its basically just syntax differences. You could always compile it then use reflector to view it in vb. Hello InfiniteLoop, I have seen a few of your informative posts and i think u are a very smart guy. So I wanted to ask you a complex case scenario that you probably didn't encounter before.. let's see what u can come up with ;). Here is the deal. I have a control that overrides the Render method, puts the html content into a Cache object, and only render a script tag that calls an external js file (which is handled by a custom handler). The handler for js files takes the HTML code from the cache object and puts "document.write" around it, and so it writes everything into the page. To further clarify, the result of the page is this: document.write("<html code of the control including script tags and the client code created by the update panel >"); included as external file in a script tag. This is a requirement and can't be changed. In one of the controls that require this I have an update panel..... but .. surprise surprise.. it doesn't work :). Can u think of any way to make the update panel work? why exactly it doesn't work, I don't quite get it, because even all the other javascript content and script tags inside the control work fine. If not, my only solution is to use custom Ajax calls, retrieve the data needed and change it one by one through the DOM. Would you see problems with that too? In case the only problem is that would take me ages :-s document.write only works while the page is initially loading. If you call document.write after the page is already loaded, you are starting a new document, and that clears out the current document completely. Also, "rendering" script tags inline won't work for reasons explained in this article, they must be registered through the appropriate API. Also, registered scripts that are urls (not actual script but a url to one) are only going to be included once on the page. If you register "foo.js" when the page first loads, and then during an update panel request you register "foo.js" again, it isn't included a 2nd time. That's because UpdatePanel figures the script is already loaded, and its some component oblivious to the fact its an asynchronous postback trying to re-register a script it has already registered. Even if the component knew it was an asynchronous post it would be stuck, because it doesn't know whether it existed prior on the page or if this asynchronous post is the first time its been added to the page. So long story short-- script includes are only included once. If they weren't, there'd be all kinds of problems. So just thinking out loud here -- you'd have to first make sure that the script is included with a different url each time, which you could do for example by just adding some querystring to the end (foo.js?timestamp). And second, you'd have to tell the handler which serves this script something it would need to know -- whether this is the initial load of the page or not. If it is, document.write as usual. If it isn't, the handler will need to assign the appropriate HTML into some page level variable, which could be given to it with the querystring; foo.js?context=newhtml. Then once the update panel is finished updating (the endRequest event fires), you can get the new HTML from the newhtml variable (window.newhtml) and set it on some placeholder element's innerHTML. Even that could have problems, it depends on exactly what that HTML is and what is in the update panel. But I hope that gives you a sense of what you need to do, or at least why it's not working. Why this crazy redirection of the HTML with javascript? nice! that's a very interesting answer. For the reason.. Well my Boss saw this trick used by expedia to hide their footer from google.. and wanted to implement it in our website for all controls that are duplicate in each page and didn't add value to the page seo. Google duplicate content sometimes makes u do weird things ;) Either if I use your idea in production or not ur answer clarified many doubts.. thanks a lot Ps. I can't see this trick used in expedia anymore, well let's see, maybe I can persuade him to use iframes instead..... Marco -- I see. Neat trick.. search engines don't always take kindly to being fooled though. If expedia doesnt do it anymore, it could very well because they were asked to stop or get delisted. I'm no search engine guru though, so don't take my word for it. Hi Dave, I have a couple questions... 1. Do you know where I can learn more about what makes a script compatible with the UpdatePanel. From my projects, I have noticed none of the Google API scripts reload after an async Postback even after registering them with the ScriptManager. I have had to encapsulate the markup & script tags inside iframes to get it to work for now. 2. Do you know what causes this error to be thrown when the postback is caused by a control that triggers an UpdatePanel refresh -> "The state information is invalid for this page and might be corrupted". In my case I allow controls to be dragged & re-arranged in the DOM tree using javascript. But the control tree on the server is never altered since I do all the appropriate arranging in the Render methods only. But it looks like on a async Postback it fails in the LoadPostData method and it doesn't get as far as the control event that triggered the postback. I should also mention that I have already added the call to prevent client caching of the response. if (Page.Request.Browser.Browser != "IE") Page.Response.Cache.SetNoStore(); khan210182 -- UpdatePanel will only load a script once, for reasons sited by two of my comments up. All controls register all their script resources all the time. That would be terrible if each of their script libraries had to be reloaded each time. It isn't correct design IMO to have a script that requires reloading whenever you have to 'redo' something. Imagine if assemblies worked that way... instead of just instantiating a type in that assembly when you needed it, you had to reload the entire assembly and then it 'automatically' did what you wanted. Terrible. Script resources are only loaded once. Any scenario where you need to load it twice can be redesigned to have a library that never changes but can be called with different data. Its the DATA that changes on post backs, not the logic that deals with the data. That said, you can't control google scripts obviously.. so instead just make UpdatePanel 'think' its a new script each time by appending a timestamp onto the end of the querystring (googleapi.js?t=<timestamp>). As for #2 -- it depends on what you are doing. Its ok to move elements around as long as you aren't changing their IDs or Names. Also, if you are raising postbacks with __doPostBack, its important to utilize event validation, or turn it off. Search on event validation for more info on what that is. I suggest you simply turn off partial rendering to test the problem. Usually an error like that would fail on a regular postback, too, and you're just making it harder to see with partial rendering enabled. That is always a good test to do by the way - if you page doesn't work with regular postbacks, partial rendering probably won't either. Hi Infinite Loop, 1. I have created Control as you explained 2. Added control to the web page. 3. It gives me error while adding to the Form Unhandled excetpion Object reference not set to an instance of an object. 4. If I add script then it is showing Does not have a public property name script.... Please help me out I am stucked ... Make sure you have a script manager on the page. And make sure you typed the control code exactly as I showed it, it sounds like you did it wrong. I have a page with more than one update panel, gridviews, textboxes, ect. The buttons on this page won't cause a postback. I have tried declaring new buttons, strip the page down to only one section, but NOTHING. The page won't even refresh. It's like clicking on a button in a windows app and the button does not have any event linked to it. I'm wondering if the postback function is not being registered with the scriptmanager?? As I understand it there is a sort of fixed postback function in javascript that the button execute automatically? Funny thing is... I have other pages with the same setup, but with lest controls and they seem to work fine. Also if I have a dropdown with it's AutoPostBack property set to TRUE, it does a post back. Hope some here could help. NeCroFire -- odd, but probably something simple. Are you sure there's no javascript error occuring when you click the buttons? Can you post a quick snippet of what your markup looks like? CodeProject: AJAX UpdatePanel With Inline Client Scripts Parser. Free source code and programming help I am building some web parts that include some AJAX functionality and found out that any inline scripts Hi there, How can I change the script dynamically? I mean, from the codebehind. Emerson -- the benefit of the control is that it can be declared. If you're doing it dynamically anyway, why not just use the ScriptManager APIs to register it? Thank you very much for this, it helped immensely. Very well explained in regards to the relationship between scripts and the DOM. Greak Work, But I have a problem as follows; this control calls the script at startup but I need to call the script where it is actually rendered in the page. I need this because the script I am trying to use has "document.write" statements so when I call the script at startup it screws the page. Tankut Tankut -- once the page is loaded, you can't use document.write. It isnt a matter of "where" it is called -- script has no concept of location once the html has been processed. You just can't do it -- thats how the browser works. So if you want ajax, you will have to convert to the script to support it, such as by using innerHTML to insert content after the first time instead. hi, i have a usercontrol,inside tht user control i have some ajax controls.i am trying to load the user control with _dopostback() so tht i can get the delayed load logic.what happens is i tried the code for grid populate in the _dopostback(controlname).click event what happens is i get the contains multiple calls to Sys.Application.notifyScriptLoaded(). Only one is allowed error but if i load the usercontrol on pageload and and try the same logic it works. can u help me? can u help me You are a LEGEND, I was racking my brain about this all day!!! thanks for you post. but i found a problem using this with Google Chrome. the issue is: if we use a "for" statement in javascript inside the InlineScript control, e.g: var count=2; for(var i=0;i<count;i++) alert(i); an error occurs in Chrome's console: Uncaught SyntaxError: Unexpected end of input i found the problem is cause by the "count" variable. i don't know it is an chrome's problem or ajax.net's problem. could you have a check with it? thanks in advance! please let me know if you have any idea about it. my mail is seiecnu(at)gmail.com Tried the code and indeed I get the alert firing... BUT my situation is a bit awkward. I basically have a bunch of headlines in the left column when clicked load up in the right column update panel - works fine The article data is contained within a SQL database and displayed in a details view on the page. Recently i've been tasked with displaying a countdown "weeks to go" article. I've got an external .js file that does what I need but when i try to overwrite the div using getElementById it complains - "is null or not an object". It's because it's the 2nd article and the div doesn't seem to exist in the DOM yet. Does that make sense? Waseem -- I'm afraid I'll need more details. Can you break it down into some code samples, even if it is just psuedo code? Well, as is usual, hacking and fiddling can help. I created the .cs file in app_code, as mentioned. I added a namespace for good measure. Then i just added <%@ Register tagprefix="i88" namespace="myspace" %> to the head. Now my <i88:InlineScript> works, and my repeater and whatnot-javascript too :-D Thanks for the script! Can anyone plz tell me how to call a .js file function on the button click of a content page which is Ajax update panel? plz its very urjent for me. I registered the i88:InlineScript control in my .aspx page where my script manager is. My update panel is in a web control (.ascx). My script is generated dynamically in XSL. When I run it I get a pop-up alert saying "'i88' is an undeclared namespace".... not really sure why it thinks its a namesapce? Anyone have any suggestions? HBBob -- sounds like you need a @register directive. ASP.NET is complaining it doesn't know what the 'i88' tag prefix is. If you already have that, perhaps you put in the wrong namespace. If you didnt, perhaps it is compiling -- is it in the project, or if its a website style app, is it in app_code? You rock best brain i have seen ever :) Do not use this tip on the web but in an IE-only intranet environment, simply adding the defer="defer" attribute to your inline script block will cause IE to run the scripts that you embedded in your UpdatePanel content. Remember this works in IE only. In a real web environment you should use the server-side solution described on this page. Note: Even with the defer attribute, I've noticed that sometimes the script does not run when it is the first element inside the UpdatePanel. This would suggest the defer trick is a bit of a hack!
http://weblogs.asp.net/infinitiesloop/archive/2007/09/17/inline-script-inside-an-asp-net-ajax-updatepanel.aspx
crawl-002
en
refinedweb
Silver? Sockets allow a listener server to listen for clients that would like to connect to a specific socket (an IP address combined with a port). As the clients connect the server can send data to them anytime and the clients can send data to the server as well. Data flows both directions which allows the server to push data if desired. The .NET framework provides direct support for using sockets through the System.Net.Sockets namespace and provides classes such as Socket and TcpListener that can be used to create a server application. The following image shows a Silverlight 2 application built around the concept of sockets that allows a server application to push data down to a client that displays the score of a basketball game (click the image to view an animated gif that shows the application in progress): The game is simulated on the server and as each team scores the update is pushed to the client so that the score and action that occurred can be displayed. shown next listens on port 4530 which is in the range Silverlight 2 allows. Here's the code that starts up the TcpListener class which sends team data down to the server and starts the timer which fakes the); } } } } There's quite a bit more code for the server application which you can download here. The code shown above is really all that's involved for creating a server that listens for clients on a specific IP address and port. In the next post on this topic I'll cover the client-side and discuss how Silverlight can connect to a server using sockets. Silverlight 2 has built-in support for sockets Cool work and interesting. Question> Is there a way to push real objects via sockets instead of just strings? like in WCF contracts, i have customer objects that can be pushed regularly ? Thanks, Gopi Gopinath, Great question. You can push bytes so anything should be fair game over the wire. On the client-side the Assembly.Load() method is also available it looks like. Having never tried it, I'm not sure how the security works there and if Silverlight would allow that or not, but it looks like the players to make it happen are there. If you end up trying it please post a comment as I'd be interested in knowing how it works out. You've been kicked (a good thing) - Trackback from DotNetKicks.com Pingback from image checks Pingback from basis data download Pingback from tcp setting In Part 1 of this two part series on socket support in Silverlight 2 I discussed how a server could be Good article. Is there any reason why you are using async BeginAcceptTcpClient combined with a ManualResetEvent? I mean: Wouldn't do while (true) { Socket client = _listener.AcceptSocket(); .... } the same? Regards Neil, There are definitely other ways to do it. I tried to keep it somewhat similar to the Silverlight side of things since everything there follows the BeginXXX/EndXXX pattern. And...I kind of like ManualResetEvent for some reason since it makes it really clear when a thread is blocked and when it's available to handle new connections. One of those personal choice things. :-) Post: Approved at: May-10-2008 Using Sockets with Silverlight Here are a couple good articles: Pushing Pingback from Multi-Threading, Silverlight Sockets & Visualisation Part 2 « Fluent.Interface Pingback from udp and tcp sockets Silverlight 2 provides built-in support for sockets which allows servers to push data to Silverlight Silverlight provides several different ways to access data stored in remote locations.  Data can Pingback from Pushing Data to a Silverlight Client with a WCF Duplex Service - Part I @ ZDima.net Pingback from Michael Sync » Silverlight 2 beta1 - Best of SilverlightCream ,... Pingback from Asp.Net Webpage to Silverlight Control Interaction « Rich Internet Applications   Stall Status is a Silverlight-based Vista Sidebar Gadget that uses the Z-Wave wireless protocol Stall Status — это сделанное в Silverlight мини-приложение для боковой панели Vista, в котором применяется
http://weblogs.asp.net/dwahlin/archive/2008/04/10/pushing-data-to-a-silverlight-client-with-sockets-part-i.aspx
crawl-002
en
refinedweb
By Lee Underwood In a previous article, we quickly touched on the requirements for proper XHTML coding, especially in relation to HTML 4.01. In this article, we'll take a closer look at what some of those requirements are in relation to the head portion of the Web page. This is the portion of the document that the user agent (i.e., browser) will read first. It's important that it doesn't stumble here. Remember, our goal is to develop standards-based Web pages (here, I make the assumption that the reader has a working knowledge of HTML). Let's start at the top of a valid XHTML document and work our way down. For this part of the discussion, I'll be referring to the code below. <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ""> <html xmlns="" xml: <head> <title>Document Title Goes Here</title> <meta http- <link rel="stylesheet" type="text/css" media="screen" href="/style/core-style.css" /> </head> The first line shown above is the XML declaration. This line defines the version of XML you're using as well as the character coding. It's recommend by the World Wide Consortium (W3C) but is not required. If you're not using XML, it's not necessary. In fact, it can cause problems with some of the older browsers. Most of them will choke if they encounter a page that begins with this encoding. If you don't include the XML declaration, you'll need to include the meta tag below (also shown above, after the title tag). Do not include both. If the XML declaration is used, it must be the first line on the page. If the content meta tag is used, it must be placed within the head of the document. The content meta tag is divided into two parts. The first part ( content="text/html) tells the browser the mime type. Mime is short for "Multipurpose Internet Mail Extensions". It was originally used in formatting e-mail but is now also used by Web browsers to declare the type of content being served to the browser. The W3C actually recommends using application/xhtml+xml as the mime type for an XHTML document. However, there are problems with using it. An example is Internet Explorer (up to version 6 for both Windows and Mac), which doesn't recognize it, nor do many other browsers. Using text/html should make your page acceptable to IE and is "allowable" by the W3C. The second half of the meta statement ( charset=UTF-8) identifies the character set used by the browser. Note that the meta tag ends with a " />". This is because, in XHTML, all tags must be closed, except for the DOCTYPE statement. The meta tag is an empty element tag. This means the tag itself is the content or a place holder for the content. Empty element tags include <img /> and <br />. Since the tag has no additional content, it doesn't have an end tag and must be closed within itself. If you leave a space before the slash, older browsers won't get confused. If the XML declaration isn't used, the first line in the document must be the Document Type Definition (DTD), or DOCTYPE. This statement is used to "set out the rules and regulations for using HTML in a succinct and definitive manner" (W3C). Failure to use a full DTD could send your visitor's browser into 'quirks' mode, causing it to behave like a version 4 browser (interestingly, a large number of Web pages do not use the doctype statement; many of them are Web development sites). There are three doctypes available for XHTML: strict, transitional, and frameset. Be careful as these declarations are case-sensitive. The strict DTD is used for documents containing only clean, pure structural mark-up. In these documents, all the mark-up associated with the layout comes from Cascading Style Sheets (CSS). The transitional DTD is used when your visitors may have older browsers which can't understand CSS too well. You can use many of HTML's presentational features with this DTD. Finally, use the frameset DTD when you want to use HTML to partition the browser window into two or more frames. The DTD files referenced above are plain text files. You can enter the URL and download them. There is nothing earth-shattering in the files but you'll be able to see what the browser is reading. The next line in our document is the XML namespace. This statement identifies the primary namespace used throughout the document. An XML namespace "is a collection of names, identified by a URI reference, which are used in XML documents as element types and attribute names" (W3C). The html tag is included at the beginning, effectively combining the two tags. In addition, the language attribute is also included, in both XML ( xml:lang="en") and HTML ( lang="en") terms. The rest of the header shown is basic HTML code. The head tag opens the header and must be closed before the body tag. The title tag follows the opening header tag. Next, the meta tags and the link to the style sheet, if necessary, are included. Be sure to close the meta and style sheet link tags with " />". Remember, in XHTML, all tags and attributes must be lower case and all tags, except the DOCTYPE, must be closed. The article "XHTML 1.0: Where XML and HTML meet" provides a further, in-depth study of transitioning to XHTML. Created: July 27, 2004 Revised: July 27, 2004 URL:
http://www.webreference.com/authoring/xhtml/coding/
crawl-002
en
refinedweb
This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project. On Wed, Apr 20, 2005 at 05:18:09PM -0400, Schulman.Andrew@epamail.epa.gov wrote: >I'm going to try to build and package screen for Cygwin. It's such a >useful program, I just have to try. > >screen 4.0.2 won't compile OOTB in Cygwin: > >gcc -c -I. -I. -g -O2 misc.c >misc.c: In function `xsetenv': >misc.c:619: error: too few arguments to function `setenv' >make: *** [misc.o] Error 1 > >I haven't looked into trying to fix this yet, it may be quite simple. > >There are many references to a binary of screen 4.0.2 compiled for >Cygwin, and a corresponding patch, available at >. But that page has gone >dark, and I can't find a cached copy of it anywhere. If someone has the >patch that was provided there, I'd appreciate it if you'd pass it along. > >If anyone else has tried and failed to build or package screen for >Cygwin, or if you know anything else about the feasibility of this >little project, I'd appreciate hearing from you. Try the below patches. They make a workable screen on my system. I even get a screen that I can attach and detach if I comment out the '#define NAMEDPIPE 1' in config.h before building. This is necessary because, unfortunately, cygwin's implementation of fifos is not yet complete although screen thinks it is. So the semi-working fifo seems to confuse detach/attach. I'm not sure how you'd proceduralize the building of screen such that configure would avoid using fifos. I guess the only way to do it is to patch the configure script to avoid using fifos under cygwin. Or always edit config.h after configure... I really do have to fix fifos soon. Screen will be a good test case for them, I guess. HTH, cgf --- misc.c.orig 2003-12-05 07:45:41.000000000 -0500 +++ misc.c 2005-04-20 23:29:19.000000000 -0400 @@ -613,7 +613,7 @@ char *value; */ # endif /* NEEDSETENV */ #else /* USESETENV */ -# if defined(linux) || defined(__convex__) || (BSD >= 199103) +# if defined(linux) || defined(__convex__) || (BSD >= 199103) || defined(__CYGWIN__) setenv(var, value, 1); # else setenv(var, value); --- pty.c.orig 2003-09-08 10:26:18.000000000 -0400 +++ pty.c 2005-04-20 23:30:58.000000000 -0400 @@ -34,7 +34,7 @@ #endif /* for solaris 2.1, Unixware (SVR4.2) and possibly others */ -#ifdef HAVE_SVR4_PTYS +#if defined(HAVE_SVR4_PTYS) && !defined(__CYGWIN__) # include <sys/stropts.h> #endif --- utmp.c.orig 2003-09-08 10:27:17.000000000 -0400 +++ utmp.c 2005-04-20 23:30:20.000000000 -0400 @@ -589,7 +589,7 @@ makedead(u) struct utmp *u; { u->ut_type = DEAD_PROCESS; -#if !defined(linux) || defined(EMPTY) +#if (!defined(linux) && !defined(__CYGWIN__)) || defined(EMPTY) u->ut_exit.e_termination = 0; u->ut_exit.e_exit = 0; #endif
http://cygwin.com/ml/cygwin-apps/2005-04/msg00163.html
crawl-002
en
refinedweb
. Securing The Blog You need to add some authentication to the blog so only you can make and edit posts. You will use a filter to secure certain actions and a tag to hide features that should be available only to authenticated users. On a larger project, integrating with a security framework like Acegi Security would be more appropriate for authentication, but this approach allows you to see how trivial implementing filters and tags are in Grails. Logout <> With this code: <gp:secureLink Edit this post </gp:secureLink> Making Yourself Presentable The next step in getting the application ready for launch is to think about making it more presentablenot that you would leave user interface considerations to this late stage on a normal project! So far the HTML is clean and minimal, but you need to think about common page elements and styling. Gra"> Logout </gp:secureLink> <gp:noAuthOnlyLink. Simple Tagging with AJAX Grails provides AJAX support through the following set of tags: To demonstrate some of these tags, you will add tagging to the blog. To add tagging to posts, you will need to make the changes to the domain shown in Listing 6. The changes to the Post class are highlighted in bold. The areas of interest in Listing 6 are the creation of a many-to-many relationship and the use of the "?." operator. The many-to-many relationship is created by having a static hasMany property on the tag and the post. Behind the scenes, Grails will create a linking table in the database to allow this many-to-many relationship to be persisted in the database. The belongsTo property should be put on the post end of the relationship to allow a save() call on a post to cascade to the tags to which the post is related. The "?." operator performs an implicit null check on the object before calling the method or property specified, which avoids having to perform a large number of null checks in the code. Next, you need to add a field to the edit.gsp file for posts to enter tags as a space-separated string: <dt>Tags:</dt> <dd> <g:textField </dd> When this field is in place, the PostController needs to be updated to handle creating tags and displaying posts by tag. Listing 7 also shows the PostService you should create to extract some logic from the controller. The PostService is created to extract the loadPost logic that was in the controller and to add the space-delimited list of tags to a Post. Remember that defining the postService property in the controller will automatically inject the PostService. The save action is updated to allow the tags to be added to the post. A new listByTags action is added to allow all posts for a given tag to be loaded. You will notice that this action assumes the ID property in the params map is actually the tag name: def tag = Tag.findByName(params.id) The reason for this is that you can create meaningful URLs that are readable, such as: This URL will show all posts tagged with java, and it is more intuitive than: To help with manual testing, you should add some tags to the posts that are created in the BootStrap class (see Listing 8). Finally, you need to display tags on the post list page. To do this, you must create a filter that will add the full list of available tags to the model, create a tag to list the tags for a post, and update the post list page to display tags. Listing 9 shows how to do this. The tags filter is configured to execute for every action in the site. You use the after closure to add the full list of tags to the model created by the action. You use the "?." operator for this because the model could be null if a redirect is issued. The tag library class will iterate over a list of tags and create a list of space-delimited links to the listByTag action on the post controller. In the list GSP, the webRequest, a Grails-specific request object (GrailsWebRequest), is used to determine which action has rendered this page to determine if the tag name should be displayed. The formatDate tag has been used to improve the readability of the published date of the post, and the new tagLinks tag is used to render the links to the tags for a post. Finally the layout, blog.gsp, must be updated to display the list of available tags on the right of the page: <div id="rightnav"> <h2>Tags</h2> <ul> <g:each <li><g:link${tag.name}</g:link></li> </g:each> </ul> </div> If you run the application now, you will see tags displayed on the list page and you will be able to add tags to and remove tags from a post (see Figure 5) through the post edit page (see Figure 6). Improving Tagging with AJAX To demonstrate the Grails support for AJAX, you can enrich the management of posts by allowing users to edit tags inline on the post list page. You will need to create two templates and add three new actions to the PostController. The Grails AJAX tags you will use are: Templates are used to separate out common chunks of view code into reusable fragments. They are especially useful when working with AJAX, as they allow you to easily replace discreet portions of the view as the result of a request. Templates are similar to views in that they exist in the grails-app\views\<domain> folder. The convention for naming templates is to create them with an underscore at the start of the filename. Create the two templates _showTags.gsp and _editTags.gsp under the grails-app\views\post directory with the code from Listing 10. The showTags template displays the tags for a post as before, but also provides a link that will call the editTags action on the post controller through an asynchronous JavaScript request. The attributes of the remoteLink tag are very similar to the Grails link tag you have used before. The controller, action, and id attributes tell the tag to which action the request must be submitted. The big difference is the update attribute. This tells the AJAX-handling code generated by the tag which HTML element to update with the result of the AJAX request. The editTags action will render the editTags template, which creates a form allowing tags to be edited in place of the current list of tags. The editTags template renders a form that will submit its data through an AJAX call. The formRemote tag specifies the URL to submit the asynchronous request to, while the use of the controller and action attributes are the fallback location to submit an HTTP request to in case JavaScript is not enabled. Another remoteLink is used to reload the list of tags if the user wishes to cancel the update. To allow the list page to use AJAX, you must include the following in the HTML <head> tag: <g:JavaScript This tells Grails to use the Prototype JavaScript library. Additionally, to add the new actions to the controllers, replace the line that currently shows the tags for a post: <p>Tags: <gp:tagLinks</p> With the following: <div id="tags${post.id}"> <g:render </div> The following are the three new actions to handle updating tags: def editTags = { render(template:"editTags", model:[post:Post.get(params.id)]) } def saveTags = { def post = postService.loadPost(params.id) postService.populateTags(post, params.tagString) if(post.save()) { render(template:"showTags", model:[post:post]) } else { render("Save failed") } } def showTags = { render(template: 'showTags', model: [post: Post.get(params.id)]) } The editTags action handles the rendering of the editTags template, just as the showTags action renders the showTags template. The saveTags action loads the identified post and adds the tags to the post before saving the post and then rendering the showTags template. If you now run the application you should have a link to edit tags on the post list page (see Figure 7). Clicking this link will load a form that allows you to edit the tags inline (see Figure 8). Packaging and Deploying the Blog Application You now have a blog application that will allow you to create blog posts, receive comments from the readers, publish the details of the posts via RSS, and manage the posts through tagging. It is time to think about deploying it! For this, you need to install Tomcat and MySQL. You will have to package the application as a WAR and tell it which database to access. The.
http://www.devx.com/Java/Article/37640/1954
crawl-002
en
refinedweb
Problem Statement Inversion Count for an array indicates – how far (or close) the array is from being sorted. If array is already sorted then inversion count is 0. If array is sorted in reverse order that inversion count is the maximum. Specifically, if there are two numbers a[i] and a[j] where a[i] > a[j] and i < j it is known as an inversion. You can think of an inversion as a pair of out of order numbers. Sample Test Cases Input: arr[] = {8, 4, 2, 1} Output: 6 Explanation: Given array has six inversions: (8,4), (4,2),(8,2), (8,1), (4,1), (2,1). Input: arr[] = {3, 1, 2} Output: 2 Explanation: Given array has two inversions: (3, 1), (3, 2) Problem Solution The idea is similar to merge sort, divide the array into two equal or almost equal halves in each step until the base case is reached. a number of inversions, that needs to be added a number of inversions in the left subarray, right subarray and merge(). Create a function merge that counts the number of inversions when two halves of the array are merged, create two indices i and j, i is the index, number of inversion in the second half and the number of inversions by merging the two. The base case of recursion is when there is only one element in the given half. Complexity Analysis Time Complexity: O(n log n), The algorithm used is divide and conquer, So in each level one full array traversal is needed and there are log n levels so the time complexity is O(n log n). Space Compelxity: O(n), Temporary array. Code Implementation #include <bits/stdc++.h> using namespace std; int _mergeSort(int arr[], int temp[], int left, int right); int merge(int arr[], int temp[], int left, int mid, int right); /* This function sorts the input array and returns the number of inversions in the array */ int mergeSort(int arr[], int array_size) { int temp[array_size]; return _mergeSort(arr, temp, 0, array_size - 1); } /* An auxiliary recursive function that sorts the input array and returns the number of inversions in the array. */ int _mergeSort(int arr[], int temp[], int left, int right) { int mid, inv_count =; } /* This funt merges two sorted arrays and returns inversion count in the arrays.*/ int merge(int arr[], int temp[], int left, int mid, int right) { int i, j, k; int inv_count = 0; i = left; /* i is index for left subarray*/ j = mid; /* j is index for right subarray*/ k = left; /* k is index for resultant merged subarray*/ while ((i <= mid - 1) && (j <= right)) { if (arr[i] <= arr[j]) { temp[k++] = arr[i++]; } else { temp[k++] = arr[j++]; /* this is tricky -- see above explanation/diagram for merge()*/; } // Driver code int main() { int arr[] = { 1, 20, 6, 4, 5 }; int n = sizeof(arr) / sizeof(arr[0]); int ans = mergeSort(arr, n); cout << " Number of inversions are " << ans; return 0; }
https://prepfortech.in/interview-topics/arrays/counting-inversions-in-an-array-using-merge-sort
CC-MAIN-2021-17
en
refinedweb
Description Specialization of the multicore contact container for SMC contacts. #include <ChContactContainerMulticoreSMC.h> Member Function Documentation ◆ AddContact() [1/2] Add a contact between two collision shapes, storing it into this container. The collision info object is assumed to contain valid pointers to the two colliding shapes. A composite contact material is created from their material properties. Implements chrono::ChContactContainer. ◆ AddContact() [2/2] Add a contact between two collision shapes, storing it into this container. A compositecontact material is created from the two given materials. In this case, the collision info object may have null pointers to collision shapes. Implements chrono::ChContactContainer. ◆ BeginAddContact() The collision system will call BeginAddContact() before adding all contacts (for example with AddContact() or similar). By default it deletes all previous contacts. More efficient implementations might reuse contacts if possible. Reimplemented from chrono::ChContactContainerMulticore. The documentation for this class was generated from the following files: - /builds/uwsbel/chrono/src/chrono_multicore/collision/ChContactContainerMulticoreSMC.h - /builds/uwsbel/chrono/src/chrono_multicore/collision/ChContactContainerMulticoreSMC.cpp
http://api.projectchrono.org/classchrono_1_1_ch_contact_container_multicore_s_m_c.html
CC-MAIN-2021-17
en
refinedweb
posix_spawnattr_setrunmask() Get the runmask attribute from a spawn attributes object Synopsis: #include <spawn.h> int posix_spawnattr_setrunmask( posix_spawnattr_t *attrp, uint32_t runmask); get the value of this attribute, call posix_spawnattr_getrunmask() . For more information about spawn attributes, see the entry for posix_spawn() . Returns: - EOK - Success. - EINVAL - An argument was invalid.
https://developer.blackberry.com/playbook/native/reference/com.qnx.doc.neutrino.lib_ref/topic/p/posix_spawnattr_setrunmask.html
CC-MAIN-2021-17
en
refinedweb
GREPPER SEARCH SNIPPETS USAGE DOCS INSTALL GREPPER All Languages >> Dart >> flutter date with timezone “flutter date with timezone” Code Answer flutter date with timezone dart by loonix on Sep 16 2020 Donate 0 /// converts [date] into the following format: `2020-09-16T11:55:01.802248+01:00` static String formatISOTime(DateTime date) { var duration = date.timeZoneOffset; if (duration.isNegative) return (date.toIso8601String() + "-${duration.inHours.toString().padLeft(2, '0')}:${(duration.inMinutes - (duration.inHours * 60)).toString().padLeft(2, '0')}"); else return (date.toIso8601String() + "+${duration.inHours.toString().padLeft(2, '0')}:${(duration.inMinutes - (duration.inHours * 60)).toString().padLeft(2, '0')}"); } Source: gist.github.com Add a Grepper Answer Dart answers related to “flutter date with timezone” convert datetime to TZDateTimeflutter convert iso date string into date and time string flutter convert timeofday to string flutter dart convert string to datetime DateFormat local fr flutter datetimeoffset flutter flutter convert datetime in day of month flutter date time to timestamp flutter dateFormat flutter firestore timestamp to datetime flutter get current date flutter get millis time flutter time count how to convert timestamp to datetime in dart how to display current date time in flutter how to show date only in flutter how to subtract dates in flutter string to timeofday flutter Dart queries related to “flutter date with timezone” flutter package:timezone flutter format datetime timezone flutter how to get timezone from datetime flutter how to get country timezone flutter get timezone from country get timezone in dart Timezone package in flutter flutter timeZoneDatabase.locations flutter tzdatetime get all timezones flutter date format timezone flutter utc time with timezone get local timezone in flutter get location with timezone in flutter how to get current timezone flutter timezone list in tzDateTime flutter get timezone information in flutter flutter display datetime timezone flutter get name timezone flutter get names timezone flutter get time string from timezone flutter date.timezoneoffset flutter get time of timezone as string flutter parse timezone flutter timezone cst flutter timezone android studio flutter time in timezone flutter get time of timezone flutter set timezone of datetime flutter change datetime to another timezone flutter change current datetime to another timezone flutter DateFormat timezone set timezone intl flutter display timezone based on country in flutter flutter timezone dart datetime now with timezone how to get location timezone flutter flutter timzone datetie settimezone flutter how to set timezone in flutter flutter datetimepicker timezone timezone offset list flutter timezone package flutter flutter get olsen timezone get loal timezone flutter datetime flutter timezone flutter datime withtimzone local time flutter flutter timezone example flutter how get mobile time now flutter int timezone flutter datetime parse timezone select utc for datetime flutter dart time.now flutter tiamein flutter datetime flutter date object flutter flutter get date and time Flutter DataNow use datetime in flutter How to get the time in flutter store day in flutter flutter datetime using timezone flutter flutter convert time to time zone asia flutter date time zone flutter today date get current time flutter timezone flutter datetime flutter utc to timezone flutter how to get date and time based on time zone flutter datetime now flutter, datetime timezone current how to get current time zone in flutter flutter get timezone flutter datetime zone flutter gmt time how to take of the time from the date of date.toUtc in flutter current time in millseconds flutter datetime type flutter timezone current data time in flutter date changes in datetime flutter show time now flutter time date flutter get monday flutter current time flutter time emoch flutter change datetime timezone flutter set datetime timezone time zone flutter how to get timezone in flutter how to get time from the particular timezone in flutter current time in flutter configure local timezone flutter set a time value in flutter tzdatetime to datetime flutter how to initialize a time in flutter give time in flutter how to get world time flutter convert time and date to datetime flutter get date and time flutter flutter get local time zone flutter datetime rules function flutter set datetime rules flutter use datetime to set rules how to set local location timezone flutter flutter time data time and date in flutter DateTime is Utc flutter flutter print time fluttter date time flutter datetime timezone how to get current time in flutter display current time in flutter get time now flutter use time in flutter date time flutter Time flutter how to use data and time in flutter date and time flutter LocalDatetime.dateTime flutter flutter date timezone flutter date with timezone Learn how Grepper helps you improve as a Developer! INSTALL GREPPER FOR CHROME More “Kinda” Related Dart Answers View All Dart Answers » how to remove debug tag in flutter flutter keyboard causes overflow listview.separated flutter flutter container rounded corners flutter get width of screen dart add String item to list flutter delay rounded raisedbutton in flutter dart print item # of a list dart random number underline text in flutter flutter wait for specific time dart string interpolation card border radius in flutter dart regex for email how to give shape to card in flutter flutter generate random color loop in dart flutter textformfield hide underline container flutter border radius dart regex for url Waiting for another flutter command to release the startup lock... how to return a random number from a list in dart flutter textfield with icon onclick flutter close dialog raisedbutton shape flutter dart timestamp flutter button border radius string to double fultter custom card shape flutter flutter screen size flutter snackbar showing error flutter remove last caracter from string how to add padding flutter text fieldform color flutter New Year's Eve java utils wait for seconds flutter clear navigation stack flutter container border only top flutter sleep StateError (Bad state: No element) flutter push route flutter check if string is number Is there any callback to tell me when “build” function is done in Flutter? flutter get current date dart string empty or null flutter size icon how to make a column scrollable in flutter how to diable flutter for web disable scroll in listview flutter flutter how to space buttons evenly in a row alertdialog flutter outside click disble how to get screen size in flutter flutter column center horizontal text datetime dart format print Flutter turn string to int dart callback function network image url flutter replace character in string copy to clipboard flutter media query width flutter dart get String input from user height appbar flutter floatingactionbutton flutter dart try-catch kill task flutter dart convert string to datetime flutter delay a function sleep in dart flutter return empty widget column round border flutter clickable container flutter get random color in flutter foreach loop in list in dart last element in list dart image from internet flutter flutter firestore timestamp to datetime switch case in dart extend class flutter flutter positioned center horizontally flutter button flutter text color text overflow ellipsis flutter flutter card border radius overflow hidden send params to stateful widget how to use hexadecimal color in flutter how to find the length a list in dart dart convert int to double DrawerHeader height flutter flutter container margin cupartino message box flutter generate method o dart list remove appbar shadow flutter flutter substring change icon color flutter flutter make a container clickable blur image in flutter rounded borders for container in flutte text should come below if space not available row flutter color of status bar flutter dart custom exception text field placeholder color flutter theme set container height flutter 25% of screen text in column flutter overflow ellipsis not working hive regiter adapter enum flutter font awesome spin how to stop screen rotation in flutter flutter round container remove space from string dart dart card outline flutter flat button size how to find the type of object in dart string to capital letter dart flutter random pick in list flutter text form field change underline color flutter network image size unable to locate android sdk flutter in windows flutter singleton generate random int dart dart command to stop program flutter trigger show off keyboard flutter espacio entre widgets Attribute application@icon value=(@mipmap/launcher_icon) from AndroidManifest.xml:17:9-45 flutter on build complete srring reverse dart make scaffold scrollable flutter close keyboard on button click flutter convert iso date string into date and time string flutter flutter get millis time image fit flutter flutter weekdays open popupbutton onclick in flutter flutter create my own future function must be immutable flutter flutter launcher icon generate increase text size of Test flutter how to get the last values of a string dart toast flutter dart store unique values dart list remove item declaring and initializing a list in dart flutter card timer in flutter how to show snackbar in flutter show keyboard bottom sheet flutter flutter get last element of array flutter reverse list open link with button flutter flutter center row flutter string contains flutter add a icon button copy option on text eidget flutter make listview not scrollable flutter leading image flutter error: insufficient permissions for device: user in plugdev group; are your udev rules wrong? flutter image asset flutter padding flutter text multiple styles flutter list tile flutter flip card flutter vertical space between containers flutter hot reloading not working flutter length of string inserting elements to list dart padding flutter top dart try how to convert timestamp to datetime in dart text input validation message color flutter add bg image to scaffold flutter inkwell in image flutter not working shape property of card in flutter print flutter objects round border container flutter dart update dart parse boolean from string double 2 decimal places flutter flutter use png as icon flutter border radius add list to list dart dart compare two lists italic text flutter flutter icon colo flutter layout builder cast variable dart how to create a toast in flutter how to load gif in flutter DioError (DioError [DioErrorType.DEFAULT]: Converting object to an encodable object failed: Instance of get length of map flutter type '_Type' is not a subtype of type 'Widget' dart enum how to display current date time in flutter container border left Unable to load asset: /storage/emulated/0/ sizedbox flutter flutter image size percentage dart extension datetimeoffset flutter dart loop flutter build apk release target arm android kill dart process kill all dart processes flutter toast in flutter search in flutter listview get last element in list dart flutter lock orientation flutter set widget width to 50% o parent show dialog close flutter double to int flutter conditionalstatement in widget flutter dart extension function how to get the display size of mobile display in flutter Flutter For In loop explained how to get terminal http request time int to string dart dart for in loop tabs flutter example string to int in dart color() in flutter array 2d dart convert a list to string in flutter fluter check that date is greater than another date chips in flutter unable to update dart sdk. retrying clickable card flutter ink image clip flutter delete shared preference flutter flutter dateFormat dart reverse list The argument type 'Wrap' can't be assigned to the parameter type 'List<Widget> sort list dart how to put the Pi in dart dart array split dart loop through object flutter get key from map flutter app icon flutter text field flutter color hex flutter download image from url dart list generate dart loop through array dart callback function with parameter dart regex Try using 'as prefix' for one of the import directives, or hiding the name from all but one of the imports.dartambiguous_import flutter date time to timestamp flutter status bar color flutter alertdialog get file name from path dart flutter delete file size row to maximum flutter flutter check if string is number dart how to add icon in the app bar in flutter dart function dart shuffle list flutter stateful widget flutter portrait only mainBottomSheet dismiss flutte flutter android x online dart compiler flutter float right dartlang group array by key RaisedButton hright dart input field overflow when keyboard open list widget flutter nested custom scroll view flutter how to subtract dates in flutter convert string date to datetime and format column remove space between flutter pass by reference in dart transform widget flutter remove first and last character from string dart how to make reusable widget in flutter flutter clear cache programmatically flutter snackbar color textfield text flutter dart filter by attribute if else dart example flutter clear all text in textfield flutter column flutter column min height screen sixe Map in dart Flutter get each letter from string cupertinoalertbox flutter example how to automatically close keyboard in flutter convert long to date android add a clickable link in flutter inserting elements to integer array dart flutter periodic timer flutter add text on image dart test expect assert fail flutter textfield label color flutter onpressed Container type '_InternalLinkedHashMap<DateTime, int>' is not a subtype of type 'Map<DateTime, double>' listview inside column flutter dart have array variables in dart Waiting for another flutter command to release the startup lock.. dart list of maps how to add elevation to container flutter flutter check file size removing element from array in dart validator flutter flutter DraggableScrollableSheet string to double dart flutter time count icon onpressed flutter showdialog with builder flutter flutter check ios or android how to get isoCode based on location in flutter flutter conditional statement how to perform get request in flutter hello world in dart flutter stuck at syncing files to device chrome flutter toggle color card on tap dart list to map message yes or not in dart create a validator in flutter app bar textStyle flutter keyboard height flutter class in dart flutter list.generate how i can close keyboard in flutter flutter delete directory dar initilize list with zero floor flutter flutter disable android back button flutter text cheatsheat flutter raised button with icon how to launch url in flutter web stateless widget flutter raisedbutton full width flutter string to timeofday flutter clipboard flutter flutter get parent width how to style text in flutter flutter types class enum dart char is uppercase how to parse an array of json objects in flutter define offset for floatingActionButtonLocation flutter Invalid argument(s): join(null, "bin", "cache", "dart-sdk"): part 0 was null, but part 1 was not. flutter create new map add years to date dart golang radom array int.parse flutter flutter toast dart string to int flutter check if any variable is null flutter textspan onclick TextStyle underline flutter how i can call keboard in flutter CupertinoSegmentedControl flutter example how to put two trailing icons in list tile flutter print dart convert timeofday to string flutter flutter widget destructor keyboard open event flutter add gradient bg to container in flutter Flutter svg get index of element in map dart how to make list view non scrollable in flutter flutter lock screen to portrait mode obfuscate flutter code flutter iterate over list widget flutter future return error flutter listview space between items pub http listview in flutter creating a stateful widget flutter onclick container how to change the shape of a buton in flutter to cicular download dart dart Absolute value aws ec2 upload file next row column in flutter regex dart dart object to map cannot run with sound null safety because the following dependencies don't support null safety how to check whether a list in dart is empty or not convert string to double flutter device_id flutter flutter listview top padding flutter create vertical list upload zip file to ec2 round container flutter flutter CustomPaint clip dart multiline string how to store list of object in dart how to give width based on screen size flutter get current line number dart flutter concatenate in flutter flutter otp input scrren flutter stop while running app sklearn rmse flutter how to execute function after building screen flutter check internet connection how to subtract he height of appbar in flutter flutter int max value python websocket flutter gray screen flutter dropdown overflow flutter music youtube source flutter banner with icon and text remove .0 flutter gridview in alerdialoge flutter flutter glassmorphism excuse function after 2 second flutter flutter convert datetime in day of month flutter performance timer compareTo dart strings flutter dart named routes phone authentication firebase flutter align column to center of flex flutter ~/ vs / dart how to give bottom padding in Listview in flutter how to obfuscate flutter code flutter close app programmatically media query flutter error dart switch with classes flutter List<Map<String, Object>> example Flutter list of strings to one String flutter image load first caractere in String in dart get single element from list in dart how to change color notification bar in flutter flutter ios disable back gesture how to buid a list each row contain 3 item in flutter dart list equality flutter error example dart class fields final flutter check if null dart lock screen orientation flutter double to int in dart write and read to file in flutter Flutter snackbar top dart list remove item by text flutter lock orientation for page flutter variables dart reduce dartlang tuple dart null aware operator ?? removing element from integer array in dart hud flutter line chart in flutter dart double question mark flutter show widget with animation flutter push and pop doesnt work dart call constructor in constructor dart string equals box decoration s flutter astnc await dart spread if then else inside child in flutter dart ?? operator DateFormat local fr flutter how to use flaticon as icon in flutter dart formatter stuck scaffold background color gradient redirect to specific screen on notification click in flutter uinstall php server on ubuntu flutter iconData fluster get children flutter how to rebuild widget in flutter in time intervals dartlang console plugin undefined name matrix4 flutter dark mode in flutter packages use search delegate flutter firebase flutter transition between screens in a streambuilder dart format print flutter how to get a value from text widget flutter floor database command peek problem in my main.dart future as a parameter with async in flutter implement app rate in flutter onpressed null flutter flutter futurebuilder future called twice dart jwt context in flutter random number dart with length 7 develop and test android tv apps with fultter build_runner not generating g.dart files flutter counter app with block library cupertino context menu example dart then method convert datetime to TZDateTimeflutter elevated Button Theme background color in flutter i want number before % symbol in flutter button copy to clipboard flutter flutter slow animation persistent flutter dart combine maps how to create random gradient in flutter flutter longpress vibration how to show date only in flutter dart matrix extend dart typedef add fullscreen modal on a page in flutter app mobx example class desing patters para Flutter dart svg drawer gradient color pairs flutter button playing sound trees in dart flutter block rotation how to show ad every second flutter showing ads every x seconds flutter add sound to my flutter app selecting a particular sublist in list in dart cluster analysis fir timeseries flutter appbar is still grey show error message in flutter dart test matcher expecting a field value widget capture in flutter onpressed icon flutter flutter materialpageroute no animation todo code style flutter question mark in dart dart inherit from generic allow background service in flutter app get coordinates of touch in flutter listview inside sliverlist flutter stuck flutter draggable bottom sheet Modal overlay in flutter flutter simple first main.dart file what is the use of substring in flutter flutter miror how to get File height and width in flutter hive dart type adapter types of data bases in flutter flutter disable container UserScrollNotification in flutter length of array in flutter dropdown button inside bottom sheet flutter convert from int64 to int dart whatsapp flutter link search button design in flutter dart httop client bloc lib flutter How to extract video id from youtube link in flutter dart set final variable in constructor golang radom arrat abstract dart dart the operator [] isn't defined for the class Type what does translate do in transform widget fluter modify item in list dart firebase array contains using dart list flutter ios status bar is dark secure storage flutter does not get removed on ios grebber not appearing in stackoverflow image not shoing when i use network image,flutter camera focus permission in android dart language asynchronous ?? Flutter how to disable splash on listview onpressed pass context flutter how to expand menu in flutter how to get whatsapp groups in app flutter programmatically how to store special characters in dart string pass string to a provider flutter dart string variable stack dart count words in string dart zip two lists with keyword in dart dart rob cross axis align not work random.secure dart dart he default constructor is already defined. Try giving one of the constructors a name. sglite offline in flutter get last element of array flutter dart break double for loop how to get first word of a sentence in flutter how to disable float stack in flutter get package flutter flutter runApp flutter conditional parent widget forloop in dart stack overflow when i type string in textediter in flutter it shows intger dart get href attribute dart program name dart function syntax what is the condition to check whether the text is overflown or not in flutter get data from args in flutter stackover flow dart forloop flutter concat string list dart how to tell if an object is an instance of a class dart reverse a string flutter date with timezone flutter run in background every second how to repeatedly call a function flutter add list fromflutter add firest in list in dart tab design in flutter future builder flutter _TypeError (type 'Image' is not a subtype of type 'ImageProvider<Object>') flutter count list flutter display widget based on device orientation change color icon tabbar flutter data types in flutter dart example flutter list with search dart contains method dart class show snakbar flutter real madrid dart ASCII to string Abstract method Dart dateTime.now addyears dart null error due to delay in api response Flutter make widget based on dio flutter union map flutter raised button shadow dart convert int string leading zeros killl dart daemon how to get a short code sms number in flutter button with icon in flutter how to rename file in flutter what is the problem to aqueduct with dart 2.8 flutter android x .
https://www.codegrepper.com/code-examples/dart/flutter+date+with+timezone
CC-MAIN-2021-17
en
refinedweb
TIMER_SETTIME(2) Linux Programmer's Manual TIMER_SETTIME(2) timer_settime, timer_gettime - arm/disarm and fetch state of POSIX per-process timer #include <time.h> int timer_settime(timer_t timerid, int flags, const struct itimerspec *restrict new_value, struct itimerspec *restrict old_value); int timer_gettime(timer_t timerid, struct itimerspec *curr_value); Link with -lrt. Feature Test Macro Requirements for glibc (see feature_test_macros(7)): timer_settime(), timer_gettime(): _POSIX_C_SOURCE >= 199309L timer_settime() arms or disarms the timer identified by timerid. The new_value argument is pointer to an itimerspec structure that specifies the new initial value and the new interval for the timer. The itimerspec structure is defined as follows:(2). points to a buffer that is used to return., POSIX.1-2008. See timer_create(2). timer_create(2), timer_getoverrun(2), time(7) This page is part of release 5.11 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 2021-03-22 TIMER_SETTIME(2) Pages that refer to this page: getitimer(2), syscalls(2), timer_create(2), timer_delete(2), timerfd_create(2), timer_getoverrun(2), ualarm(3), usleep(3), signal-safety(7), system_data_types(7), time_namespaces(7)
https://man7.org/linux/man-pages/man2/timer_settime.2.html
CC-MAIN-2021-17
en
refinedweb
. Properties overview Properties enable a class to expose a public way of getting and setting values, while hiding implementation or verification code. A get property accessor is used to return the property value, and a set property accessor is used to assign a new value. In C# 9 and later, an init property accessor is used to assign a new value only during object construction. These accessors can have different access levels. For more information, see Restricting Accessor Accessibility. The value keyword is used to define the value being assigned by the setor initaccessor. Properties can be read-write (they have both a getand a setaccessor), read-only (they have a getaccessor but no setaccessor), or write-only (they have a setaccessor, but no getaccessor). Write-only properties are rare and are most commonly used to restrict access to sensitive data. Simple properties that require no custom accessor code can be implemented either as expression body definitions or as auto-implemented properties. Properties with backing fields One basic pattern for implementing a property involves using a private backing field for setting and retrieving the property value. The get accessor returns the value of the private field, and the set accessor may perform some data validation before assigning a value to the private field. Both accessors may also perform some conversion or computation on the data before it is stored or returned. The following example illustrates this pattern. In this example, the TimePeriod class represents an interval of time. Internally, the class stores the time interval in seconds in a private field named . using System; class TimePeriod { private double _seconds; public double Hours { get { return _seconds / 3600; } set { if (value < 0 || value > 24) throw new ArgumentOutOfRangeException( $"{nameof(value)} must be between 0 and 24."); _seconds = value * 3600; } } } class Program { static void Main() { TimePeriod t = new TimePeriod(); // The property assignment causes the 'set' accessor to be called. t.Hours = 24; // Retrieving the property causes the 'get' accessor to be called. Console.WriteLine($"Time in hours: {t.Hours}"); } } // The example displays the following output: // Time in hours: 24 Expression body definitions Property accessors often consist of single-line statements that just assign or return the result of an expression. You can implement these properties as expression-bodied members. Expression body definitions consist of the => symbol followed by the expression to assign to or retrieve from the property. Starting with C# 6, read-only properties can implement the get accessor as an expression-bodied member. In this case, neither the get accessor keyword nor the return keyword is used. The following example implements the read-only Name property as an expression-bodied member. using System; public class Person { private string _firstName; private string _lastName; public Person(string first, string last) { _firstName = first; _lastName = last; } public string Name => $"{_firstName} {_lastName}"; } public class Example { public static void Main() { var person = new Person("Magnus", "Hedlund"); Console.WriteLine(person.Name); } } // The example displays the following output: // Magnus Hedlund Starting with C# 7.0, both the get and the set accessor can be implemented as expression-bodied members. In this case, the get and set keywords must be present. The following example illustrates the use of expression body definitions for both accessors. Note that the return keyword is not used with the get accessor. using System; public class SaleItem { string _name; decimal _cost; public SaleItem(string name, decimal cost) { _name = name; _cost = cost; } public string Name { get => _name; set => _name = value; } public decimal Price { get => _cost; set => _cost = value; } } class Program { static void Main(string[] args) { var item = new SaleItem("Shoes", 19.95m); Console.WriteLine($"{item.Name}: sells for {item.Price:C2}"); } } // The example displays output like the following: // Shoes: sells for $19.95 Auto-implemented properties In some cases, property get and set accessors just assign a value to or retrieve a value from a backing field without including any additional logic. By using auto-implemented properties, you can simplify your code while having the C# compiler transparently provide the backing field for you. If a property has both a get and a set (or a get and an init) accessor, both must be auto-implemented. You define an auto-implemented property by using the get and set keywords without providing any implementation. The following example repeats the previous one, except that Name and Price are auto-implemented properties. The example also removes the parameterized constructor, so that SaleItem objects are now initialized with a call to the parameterless constructor and an object initializer. using System; public class SaleItem { public string Name { get; set; } public decimal Price { get; set; } } class Program { static void Main(string[] args) { var item = new SaleItem{ Name = "Shoes", Price = 19.95m }; Console.WriteLine($"{item.Name}: sells for {item.Price:C2}"); } } // The example displays output like the following: // Shoes: sells for $19.95 Related sections - - Comparison Between Properties and Indexers Restricting Accessor Accessibility Auto-Implemented Properties C# Language Specification For more information, see Properties in the C# Language Specification. The language specification is the definitive source for C# syntax and usage.
https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/properties
CC-MAIN-2021-17
en
refinedweb
extsexts Just my collection of random scala helpers that I use on public and private projects. It's not really intended to be used by anyone (you can if you really want!) but is public because it's a dependency for elastic4s. libraryDependencies += "com.sksamuel.exts" %% "exts" % "1.61.1" import $ivy.`com.sksamuel.exts::exts:1.61.1` <dependency> <groupId>com.sksamuel.exts</groupId> <artifactId>exts_2.13</artifactId> <version>1.61.1</version> </dependency> compile group: 'com.sksamuel.exts', name: 'exts_2.13', version: '1.61.1' ivy"com.sksamuel.exts::exts:1.61.1"
https://index.scala-lang.org/sksamuel/exts/exts/1.61.1?target=_2.13
CC-MAIN-2021-17
en
refinedweb
# Toast Notifications Deprecation Warning: In RedwoodJS v0.27, the custom Flash Messaging was replaced with React Hot Toast. Flash, implemented with import { useFlash } from '@redwoodjs/web'will be deprecated in Redwood v1. If you are currently using <Flash />and useFlash, you can update your app via these instructions. Did you know that those little popup notifications that you sometimes see at the top of pages after you've performed an action are affectionately known as "toast" notifications? Because they pop up like a piece of toast from a toaster! Redwood supports these notifications out of the box thanks to the react-hot-toast package. # Usage This doc will not cover everything you can do with toasts, and the react-hot-toast docs are very thorough. But here are a couple of common use cases. # Displaying a Toast Wherever you want your notifications to be output, include the <Toaster> component: import { Toaster } from '@redwoodjs/web/toast' const HomePage = () => { return ( <main> <Toaster /> <!-- Remaining homepage content --> </main> ) } export default HomePage <Toaster> accepts several options, including placement options: - top-left - top-center - top-right - bottom-left - bottom-center - bottom-right and a delay for how long to show each type of notification: <Toaster position="bottom-right" toastOptions={{success: { duration: 3000 } }} /> See the official Toaster docs for more options. There's also a dedicated doc for styling. # Triggering a Toast To show a toast message, just include a call to the toast object: import { toast } from '@redwoodjs/web/toast' const UserForm = () => { onSubmit: () => { // code to save a record toast.success('User created!') } return ( // Component JSX ) }) There are different "types" of toasts, by default each shows a different icon to indicate that type: toast()- Text only, no icon shown toast.success()- Checkmark icon with text toast.error()- X icon with text toast.loading()- Spinner icon, will show for 30 seconds by default, or until dismissed via toast.dismiss(toastId) toast.promise()- Spinner icon, displays until the Promise resolves toast() for more options and usage examples. # Generators If you generate a scaffold, you will get toast notifications automatically for the following actions: - Creating a new record - Editing an existing record - Deleting a record
https://redwoodjs.com/docs/toast-notifications
CC-MAIN-2021-17
en
refinedweb
Schemas A database contains one or more named schemas. Each schema in a database contains tables and other kinds of named objects. By default, a database has a single schema, which is named PUBLIC. You can use schemas to group database objects under a common name. Schemas are similar to file system directories, except that schemas cannot be nested. Identical database object names can be used in different schemas in the same database without conflict. For example, both MY_SCHEMA and YOUR_SCHEMA can contain a table named MYTABLE. Users with the necessary privileges can access objects across multiple schemas in a database. By default, an object is created within the first schema in the search path of the database. For information, see Search path later in this section. Schemas can help with organization and concurrency issues in a multi-user environment in the following ways: To allow many developers to work in the same database without interfering with each other. To organize database objects into logical groups to make them more manageable. To give applications the ability to put their objects into separate schemas so that their names will not collide with the names of objects used by other applications. Creating, altering, and deleting schemas Any user can create schemas and alter or drop schemas they own. You can perform the following actions: To create a schema, use the CREATE SCHEMA command. To change the owner of a schema, use the ALTER SCHEMA command. To delete a schema and its objects, use the DROP SCHEMA command. To create a table within a schema, create the table with the format schema_name.table_name. To view a list of all schemas, query the PG_NAMESPACE system catalog table: select * from pg_namespace; To view a list of tables that belong to a schema, query the PG_TABLE_DEF system catalog table. For example, the following query returns a list of tables in the PG_CATALOG schema. select distinct(tablename) from pg_table_def where schemaname = 'pg_catalog'; Search path The search path is defined in the search_path parameter with a comma-separated list of schema names. The search path specifies the order in which schemas are searched when an object, such as a table or function, is referenced by a simple name that does not include a schema qualifier. If an object is created without specifying a target schema, the object is added to the first schema that is listed in search path. When objects with identical names exist in different schemas, an object name that does not specify a schema will refer to the first schema in the search path that contains an object with that name. To change the default schema for the current session, use the SET command. For more information, see the search_path description in the Configuration Reference. Schema-based privileges Schema-based privileges are determined by the owner of the schema: By default, all users have CREATE and USAGE privileges on the PUBLIC schema of a database. To disallow users from creating objects in the PUBLIC schema of a database, use the REVOKE command to remove that privilege. Unless they are granted the USAGE privilege by the object owner, users cannot access any objects in schemas they do not own. If users have been granted the CREATE privilege to a schema that was created by another user, those users can create objects in that schema.
https://docs.aws.amazon.com/redshift/latest/dg/r_Schemas_and_tables.html
CC-MAIN-2021-17
en
refinedweb
How to: Display a Detail View Directly in Edit Mode in ASP.NET Applications - 2 minutes to read In ASP.NET applications, when clicking a record in a List View, a Detail View is displayed in view mode. However, the SwitchToEditMode Action is available, and you can use it to reload the Detail View in edit mode. This is the default behavior. In individual scenarios, you may need to invoke a Detail View directly in edit mode. This topic demonstrates how to omit the display in view mode for a particular object type. To set a Detail View's display mode, use the DetailView.ViewEditMode property. To change this property value, implement a View Controller and override the OnActivated method. using DevExpress.ExpressApp.Editors; //... public class SwitchToEditModeModificationsController : ViewController<DetailView> { protected override void OnActivated() { base.OnActivated(); if (View.ViewEditMode == ViewEditMode.View) { View.ViewEditMode = ViewEditMode.Edit; ObjectSpace.SetModified(null); } } } To accomplish the implemented code when the current View represents an object of a particular type, set the ViewController.TargetObjectType property to this type in the View Controller's constructor. As an example, assume that the Controller is intended for Person type objects. If you now run the application, you will see that the Person Detail View is always displayed in edit mode. NOTE The View Controller demonstrated in this topic should be implemented in an ASP.NET module. In Windows Forms applications, Detail Views are always editable.
https://docs.devexpress.com/eXpressAppFramework/113017/task-based-help/views/how-to-display-a-detail-view-directly-in-edit-mode-in-asp-net-and-mobile-applications?p=netcore
CC-MAIN-2020-34
en
refinedweb
Related Tutorial Handling Metadata in Vue with vue vue-meta library provides a Vue plugin that allows us to take control of our app’s metadata from a component level. It’s important to curate the metadata of our web apps for SEO, but when working with single-page web applications (SPAs) this can often be a cumbersome task. Dynamic metadata was already partially covered here, but our goal today is to highlight how the vue-meta plugin handles this for us in a concise, logical way while providing us with even more control over our app’s metadata. Setup Since vue-meta is a plugin we’ll need to add the package to our project dependencies. We’ll also need to let Vue know we want to use the vue-meta plugin. Installation Install vue-meta with your preferred package manager: # Yarn $ yarn add vue-meta # NPM $ npm install vue-meta --save Bootstrap Bootstrap the vue-meta plugin in your main JavaScript file: import Vue from 'vue'; import VueMeta from 'vue-meta'; import App from 'App.vue'; Vue.use(VueMeta); new Vue({ el: '#app', render: h => h(App) }); If you’re using a routing solution like Vue Router, then you could bootstrap vue-meta in your router.js file: import Vue from 'vue'; import Router from 'vue-router'; import VueMeta from 'vue-meta'; Vue.use(Router); Vue.use(VueMeta); export default new Router({}) SSR If you’re using Server Side Rendering you’ll want to bootstrap vue-meta in a file that runs on both the server and the client before the root Vue instance is mounted. Vue Frameworks If you’re using a framework that already uses vue-meta, such as NuxtJS, you won’t need to bootstrap. Instead, you should refer to the documentation for your chosen framework. Other frameworks that already use vue-meta include Gridsome, Ream, Vue-Storefront, and Factor. Plugin Options vue-meta provides options to customize the plugin’s behavior. NuxtJS takes advantage of this by changing the name of the metaInfo property to head. You could do this by bootstrapping vue-meta like so: Titles vue-meta allows us to update the <title> tag on both parent and child components. In our root component we can define a default title that will appear if a child component lacks one. We can also define a titleTemplate which will be used to display the title from child components. export default { name: 'App', metaInfo: { title: 'Default App Title', titleTemplate: '%s | vue-meta Example App' }, ... } <title> Default App Title | vue-meta Example App </title> Other Metadata Of course, title isn’t the only thing we care about when populating a page’s metadata. Often we want to include other information to pass to the browser or web crawler such as a page’s charset, description, or viewport. You can even add attributes to the page’s html or head tags and inject external scripts. export default { name: 'App', metaInfo: { title: 'Default App Title', titleTemplate: '%s | vue-meta Example App', htmlAttrs: { reptilian: 'gator' }, headAttrs: { nest: 'eggs' }, meta: [ { charset: 'utf-8' }, { name: 'description', content: 'gator' }, { name: 'viewport', content: 'width=device-width, initial-scale=1' } ] }, ... } <html reptilian="gator"> <head nest="eggs"> <title>Default App Title | vue-meta Example App</title> <meta charset="utf-8"> <meta name="description" content="gator"> <meta name="viewport" content="width=device-width, initial-scale=1"> </head> </html> Make sure to check out the metaInfo properties spec of the vue-meta API documentation for all of the options available. Component Metadata Hierarchy Child components will recursively merge metadata with their parents. This allows us to update the page’s metadata based on which components are currently mounted. <template> <div> <HelloWorld /> </div> </template> <script> import HelloWorld from './components/HelloWorld.vue'; export default { name: 'App', metaInfo: { title: 'Default App Title', titleTemplate: '%s | vue-meta Example App' }, components: { HelloWorld } } </script> <template> <div>Hello World!</div> </template> <script> export default { name: 'HelloWorld', metaInfo: { title: 'Hello World!' } } </script> <title> Hello World! | vue-meta Example App </title> You could also disable the titleTemplate from a child component like so: export default { name: 'HelloWorld', metaInfo: { title: 'Hello World!', titleTemplate: null } } <title> Hello World! </title> If two child components are mounted and both contain metaInfo, the last child to be mounted will be used to populate the page’s metadata. Suppose we created a second child component called HelloWorld2 and modified our example as below: <template> <div> <HelloWorld /> <HelloWorld2 /> </div> </template> } } <template> <div>Hello World 2!</div> </template> <script> export default { name: 'HelloWorld2', metaInfo: { title: 'Hello World 2!' } } </script> <title> Hello World 2! | vue-meta Example App </title> Only duplicate metadata will be overwritten by child components. Other metadata will be concatenated. Using multiple Vue instances with vue-meta will result in only the metadata from the last app to be updated! VMID vue-meta allows us to assign a special property called vmid to our metaInfo so that we can control how it resolves with our component tree. If two sets of metadata have the same vmid, such as a parent and child, they will not merge but instead the child will override the parent like so: // parent component { metaInfo: { meta: [ { charset: 'utf-8' }, { vmid: 'description', name: 'description', content: 'reptilian' } ] } } // child component { metaInfo: { meta: [ { vmid: 'description', name: 'description', content: 'gator' } ] } } <meta charset="utf-8"> <meta data- Remove parent property in child If a child component shares a vmid with a parent and a metaInfo property is set to null, this property will be removed from the parent. Conditional property in child If a child component returns undefined for a metaInfo property vue-meta will fall back to the parent’s property. Wrapping Up vue-meta is a great solution if you’re looking to take control of and dynamically update your app’s metadata. It’s no question why so many popular Vue frameworks include the library out of the box. Make sure to take a look at the official documentation if you’d like to learn more about all the library has to offer.
https://www.digitalocean.com/community/tutorials/vuejs-vue-meta
CC-MAIN-2020-34
en
refinedweb
A namespace is a declarative region that provides a scope to the identifiers (the names of types, functions, variables, etc) inside it. Namespaces are used to organise code into logical groups and to prevent name collisions that can occur especially when your code base includes multiple libraries. Please refer need of namespace in C++ for details. Suppose we need two header files for a software project : 1: Header1.h -namespace one 2: Header2.h -namespace two C++ Code : Header1.h : Header2.h Source code file Output: Error: Call of overloaded print() is ambiguous. To overcome this situation, we use namespace objects independently through scope resolution operator. Source code file Reference : Advance sub-domains of namespace : GeeksforGeeks Namespace archive: - namespace in C++ | Set 2 (Extending namespace and Unnamed namespace) - Namespace in C++ | Set 1 (Introduction) - Why "using namespace std" is considered bad practice - Difference between namespace and class - Namespace in C++ | Set 3 (Accessing, creating header, nesting and aliasing) -++ - Header files in C/C++ with Examples - Trigraphs in C++ with Examples - Difference Between DART and C++ - How to fix auto keyword error in Dev-C++
https://www.geeksforgeeks.org/cons-using-whole-namespace-c/?ref=rp
CC-MAIN-2020-34
en
refinedweb
As we know Plotly Dash is most popular framework to build interactive dashboard in python. You can use Dash if want to build web application specifically for interactive dashboard. But if you want to build a web application and you want to serve other things (like video, music etc.) along with interactive dashboard then you have to choose some other framework in Python. Django is most popular framework in python to build such kind of complex web application. In this tutorial I will show you how to integrate Plotly Dash in Django. Also Read: - Learn Dash withPython in 5 minutes - Make interactivedashboard using Dash with Python - Plotstylish map in Dash with python Prerequisites While writing this tutorial below were my Python version: - Python: 3.6.3 To integrate Plotly Dash on Django using django_plotly_dash you need some additional libraries. To install those additional libraries with specific version, type below commands in cmd: pip install django==2.1.5 pip install django_plotly_dash==1.1.4 pip install --user channels pip install --user bootstrap4 pip install --user dpd_static_support==0.0.5 pip install dash==1.4.1 pip install dash_daq==0.3.1 pip install dash_bootstrap_components==0.7.2 pip install whitenoise==5.0.1 Now let’s start setting up a Django project to test one Django Plotly Dash example. This article will be easy for you if you have some basic knowledge in Django. Though I will explain everything basic level. Django Project Setup Type below command in cmd to create a Django project. django-admin startproject django_dash Note: Giving my project name django_dash Now inside main project folder create another folder called ‘templates’ and follow steps mentioned below. 1. Create a HTML file named ‘home.html’ (sharing code below). This is home page of our web application. 2. Create a HTML file named ‘dash_plot.html’ (sharing code below). This page is to show dashboard/ visualization built by Plotly Dash. 3. Create another folder inside ‘templates’ folder named ‘registration’ 4. Inside ‘registration’ folder create another HTML file named ‘login.html’ (sharing code below) So now folder structure for entire project should looks like below: django_dash ├── templates | ├── home.html | ├── dash_plot.html | └── login.html ├── django_dash │ ├── __init__.py │ ├── settings.py │ ├── urls.py │ └── wsgi.py └── manage.py Relate Article home.html dash_plot.htmlIn this code line number 12 to connect Plotly Dash with Django by ID login.html Now inside django_dash (application folder) folder you need to do below things 1. Edit settings.py 2. Edit urls.py 3. Create a python file named ‘routing.py’ 4. Create a python file named ‘dash_app_code.py’ So now folder structure for entire project should looks like below: django_dash ├── templates | ├── home.html | ├── dash_plot.html | └── login.html ├── django_dash │ ├── __init__.py │ ├── settings.py │ ├── urls.py | ├── routing.py | ├── dash_app_code.py │ └── wsgi.py └── manage.py Django Plotly Dash edit settings lines/ scripts at the end of settings.py # ---------- Add Django Dash start -------------------------------- # Adding ASGI Application ASGI_APPLICATION = 'django_dash.routing.application' # # To use home.html as default home page LOGIN_REDIRECT_URL = 'home' LOGOUT_REDIRECT_URL = 'home' # Define folder location of 'static' folder STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles') # 'django_dash': django app name STATICFILES_DIRS = [ os.path.join(BASE_DIR, 'django_dash', 'static'), ] # Static content of Plotly components that should # be handled by the Django staticfiles infrastructure PLOTLY_COMPONENTS = [ 'dash_core_components', 'dash_html_components', 'dash_bootstrap_components', 'dash_renderer', 'dpd_components', 'dpd_static_support', ] # Staticfiles finders for locating dash app assets and related files (Dash static files) STATICFILES_FINDERS = [ 'django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder', 'django_plotly_dash.finders.DashAssetFinder', 'django_plotly_dash.finders.DashComponentFinder', 'django_plotly_dash.finders.DashAppDirectoryFinder', ] # Channels config, to use channel layers CHANNEL_LAYERS = { 'default': { 'BACKEND': 'channels_redis.core.RedisChannelLayer', 'CONFIG': { 'hosts': [('127.0.0.1', 6379),], }, }, } Sharing full settings.py code for your reference settings.py Django Plotly Dash edit urls.py Create a python file named ‘routing.py’ Create a python file named routing.py inside django_dash (application folder) folder and write/paste below one line code into it. Repeating again to confirm that it is just one line of code. from django_plotly_dash.routing import application This routing.py code is necessary for ASGI server while connecting/ showing Plotly Dash in Django. Otherwise you will end up with error saying: raise ImproperlyConfigured("Cannot import ASGI_APPLICATION module %r" % path) django.core.exceptions.ImproperlyConfigured: Cannot import ASGI_APPLICATION module 'django_dash.routing' Create a python file named ‘dash_app_code.py’ Create a python file named dash_app_code.py inside django_dash (application folder) folder and write below code into it. This code is just a Plotly Dash code to make interactive dashboard In this code line number 14 is important. This line is to define Id for Plotly Dash integration with Django. dash_app_code.py Once you are done with above steps successfully, run below commands in cmd to migrate python manage.py migrate Then run Django server by executing below command in cmd python manage.py runserver Now you are done with the complete Django Plotly Dash example web application. Open in your web browser to see and use that complete Django Plotly Dash example web application. But you can’t use this application right now, as I have included authentication system to use this Plotly Dash with Django application. You can’t login now as you don’t have or you have not created any authenticated user name with password till now for this project. Follow my previous article to create user to login. Previous Article: Django Basiclogin logout tutorial Conclusion In this Django Plotly Dash tutorial I have shown you how to Connect Dashboards & Graphs made by Plotly Dash into a Django web application using Python library called django_plotly_dash. Now in this tutorial I have shown everything webpage. To make this same Django Plotly Dash web application attractive, check out my previous page: Django stylish login logout tutorial.
https://www.thinkinfi.com/2020/04/django-plotly-dash.html
CC-MAIN-2020-34
en
refinedweb
Python Code to Multiply Octonions and Sedenions Python Code to Multiply Octonions and Sedenions In this post, a data scientist and mathematician, will implement octonion multiplication in Python, and then sedenion multiplication. Join the DZone community and get the full member experience.Join For Free The previous post discussed octonions. This post will implement octonion multiplication in Python, and then sedenion multiplication. Cayley-Dickson Construction There's a way to bootstrap quaternion multiplication into octonion multiplication, so we'll reuse the quaternion multiplication code from an earlier post. It's called the Cayley-Dickson construction. For more on this construction, see John Baez's treatise on octonions. If you represent an octonion as a pair of quaternions, then multiplication can be defined by (a, b) (c, d) = (ac – db*, a*d + cb) where a star superscript on a variable means (quaternion) conjugate. Note that this isn't the only way to define the multiplication of octonions. There are many (480?) isomorphic ways to define octonion multiplication. (You can take the Cayley-Dickson construction one step further, creating sedenions as pairs of octonions. We'll also provide code for sedenion multiplication below.) Code for Octonion Multiplication import numpy as np # quaternion multiplication def qmult] ]) # quaternion conjugate def qstar(x): return x*np.array([1, -1, -1, -1]) # octonion multiplication def omult(x, y): # Split octonions into pairs of quaternions a, b = x[:4], x[4:] c, d = y[:4], y[4:] z = np.zeros(8) z[:4] = qmult(a, c) - qmult(d, qstar(b)) z[4:] = qmult(qstar(a), d) + qmult(c, b) return z Unit Tests Here are some unit tests to verify that our multiplication has the expected properties. We begin by generating three octonions with norm 1. from numpy.linalg import norm def random_unit_octonion(): x = np.random.normal(size=8) return x / norm(x) x = random_unit_octonion() y = random_unit_octonion() z = random_unit_octonion() We said in the previous post that octonions satisfy the "alternative" condition, a weak form of associativity. Here we verify this property as a unit test. eps = 1e-15 # alternative identities a = omult(omult(x, x), y) b = omult(x, omult(x, y)) assert( norm(a - b) < eps ) a = omult(omult(x, y), y) b = omult(x, omult(y, y)) assert( norm(a - b) < eps ) We also said in the previous post that the octonions satisfy the "Moufang" conditions. # Moufang identities a = omult(z, omult(x, omult(z, y))) b = omult(omult(omult(z, x), z), y) assert( norm(a - b) < eps ) a = omult(x, omult(z, omult(y, z))) b = omult(omult(omult(x, z), y), z) assert( norm(a - b) < eps ) a = omult(omult(z,x), omult(y, z)) b = omult(omult(z, omult(x, y)), z) assert( norm(a - b) < eps ) a = omult(omult(z,x), omult(y, z)) b = omult(z, omult(omult(x, y), z)) assert( norm(a - b) < eps ) And, finally, we verify that the product of unit length octonions has unit length. # norm condition n = norm(omult(omult(x, y), z)) assert( abs(n - 1) < eps ) The next post uses the octonion multiplication code above to look at the distribution of the associator (xy) z - x(yz) to see how far multiplication is from being associative. Sedenion Multiplication The only normed division algebras over the reals are the real numbers, complex numbers, quaternions, and octonions. These are real vector spaces of dimension 1, 2, 4, and 8. You can proceed analogously and define a real algebra of dimension 16 called the sedenions. When we go from complex numbers to quaternions we lose commutativity. When we go from quaternions to octonions we lose full associativity but retain a weak version of associativity. Even weak associativity is lost when we move from octonions to sedenions. Non-zero octonions form an alternative loop with respect to multiplication, but sedenions do not. Sedenions have multiplicative inverses, but there are also some zero divisors, i.e. non-zero vectors whose product is zero. So sedenions do not form a division algebra. If you continue the Cayley-Dickson construction past the sedenions, you keep getting zero divisors, so no more division algebras. Here's Python code for sedenion multiplication, building on the code above. def ostar(x): mask = -np.ones(8) mask[0] = 1 return x*mask # sedenion multiplicaton def smult(x, y): # Split sedenions into pairs of octonions a, b = x[:8], x[8:] c, d = y[:8], y[8:] z = np.zeros(16) z[:8] = omult(a, c) - omult(d, ostar(b)) z[8:] = omult(ostar(a), d) + omult(c, b) return z Published at DZone with permission of John Cook , DZone MVB. See the original article here. Opinions expressed by DZone contributors are their own. {{ parent.title || parent.header.title}} {{ parent.tldr }} {{ parent.linkDescription }}{{ parent.urlSource.name }}
https://dzone.com/articles/python-code-to-multiply-octonions-and-sedenions?fromrel=true
CC-MAIN-2020-34
en
refinedweb
Regexp to check if an IP is valid I'm wondering if it's possible to compare values in regexps with the regexp system in Python. Matching the pattern of an IP is easy, but each 1-3 digits cannot be above 255 and that's where I'm a bit stumped. You need to check the allowed numbers in each position. For the first optional digit, acceptable values are 0-2. For the second, 0-5 (if the first digit for that part is present, otherwise 0-9), and 0-9 for the third. I found this annotated example at : \b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b Validating IPv4 addresses with regexp, Here I have taken the value of ip and I am trying to match it with regex. Above condition checks if the value exceeds 255 for all the 4 octets then it is not a valid.. If your regex flavor supports Unicode, it may even match ١٢٣.१२३.೧೨೩.๑๒๓. Whether this is a problem depends on the files or data you intend to apply the regex to. No need for regular expressions here. Some background: >>> import socket >>> socket.inet_aton('255.255.255.255') '\xff\xff\xff\xff' >>> socket.inet_aton('255.255.255.256') Traceback (most recent call last): File "<input>", line 1, in <module> error: illegal IP address string passed to inet_aton >>> socket.inet_aton('my name is nobody') Traceback (most recent call last): File "<input>", line 1, in <module> error: illegal IP address string passed to inet_aton So: import socket def ip_address_is_valid(address): try: socket.inet_aton(address) except socket.error: return False else: return True Note that addresses like '127.1' could be acceptable on your machine (there are systems, including MS Windows and Linux, where missing octets are interpreted as zero, so '127.1' is equivalent to '127.0.0.1', and '10.1.4' is equivalent to '10.1.0.4'). Should you require that there are always 4 octets, change the last line from: else: return True into: else: return address.count('.') == 3 Validate an ip address, RegEx for Check whether a string is a valid ip address. . # repeat with 3 times (3x) $ #end of the line Whole combination means, digit from 0 to 255 and follow by a dot “.”, repeat 4 time and ending with no dot “.” Valid IP address format is “0-255.0-255.0-255.0-255”. 1. You can check a 4-octet IP address easily without regexes at all. Here's a tested working method: >>> def valid_ip(ip): ... parts = ip.split('.') ... return ( ... len(parts) == 4 ... and all(part.isdigit() for part in parts) ... and all(0 <= int(part) <= 255 for part in parts) ... ) ... >>> valid_ip('1.2.3.4') True >>> valid_ip('1.2.3.4.5') False >>> valid_ip('1.2. 3 .4.5') False >>> valid_ip('1.256.3.4.5') False >>> valid_ip('1.B.3.4') False >>> Validate an ip address, Regular Expression to Check whether a string is a valid. Regex is for pattern matching, but to check for a valid IP, you need to check for the range (i.e. 0 <= n <= 255). You may use regex to check for range, but that'll be a bit overkill. I think you're better off checking for basic patter and then check for the range for each number. For example, use the following pattern to match an IP: ([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3}) Then check whether each number is within range. 7.16. Matching IPv4 Addresses, Problem. You want to check whether a certain string represents a valid IPv4 address in 255.255.255.255 notation. Simple regex to check for an IP address: ^(? This regular expression is too simple - if you want to it to be accurate, you need to check that the numbers are between 0 and 255, with the regex above accepting 444 in any position. You want to check for 250-255 with 25 [0-5], or any other 200 value 2 [0-4] [0-9], or any 100 value or less with ? [0-9] [0-9]. The following supports IPv4, IPv6 as well as Python 2.7 & 3.3 import socket def is_valid_ipv4(ip_str): """ Check the validity of an IPv4 address """ try: socket.inet_pton(socket.AF_INET, ip_str) except AttributeError: try: socket.inet_aton(ip_str) except socket.error: return False return ip_str.count('.') == 3 except socket.error: return False return True def is_valid_ipv6(ip_str): """ Check the validity of an IPv6 address """ try: socket.inet_pton(socket.AF_INET6, ip_str) except socket.error: return False return True def is_valid_ip(ip_str): """ Check the validity of an IP address """ return is_valid_ipv4(ip_str) or is_valid_ipv6(ip_str) How to validate an IP address using Regular Expressions in Java , Return true if the string matches with the given regex, else return false. Below is the implementation of the above approach:. Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Your regex cannot match the valid IP Python program to validate an IP Address, Prerequisite: Python Regex. Given an IP address as input, write a Python program to check whether the given IP Address is Valid or not. What is an IP (Internet 7.16. Matching IPv4 Addresses Problem You want to check whether a certain string represents a valid IPv4 address in 255.255.255.255 notation. Optionally, you want to convert this address into a … - Selection from Regular Expressions Cookbook [Book] How to validate IP address with regular expression, Validate ip address with regular expression * @param ip ip address for validation * @return true valid ip address, false invalid ip address An example of a valid IP is: 192.168.4.1 To validate the IP address we should follow these steps Tokenize the string (IP address) using the dot “.” delimiter If the sub strings are containing any non-numeric character, then return false JavaScript : IP address validation, Example of valid IP address. 115.42.150.37; 192.168. Explanation of the said Regular expression (IP address). Regular Expression Previous: JavaScript : HTML Form validation - checking for password. Next: JavaScript IP address validation. Every computer connected to the Internet is identified by a unique four-part string, known as its Internet Protocol (IP) address. An IP address consists of four numbers (each between 0 and 255) separated by periods.
http://thetopsites.net/article/54025817.shtml
CC-MAIN-2020-34
en
refinedweb
Nuv import 'package:flutter/widgets.dart'; import 'package:nuvigator/nuvigator.dart'; class MyScreen extends StatelessWidget { @override Widget build(BuildContext) { return Text('Hello Nuvigator!'); // Your regular Flutter Widget } } @NuRouter() class MainRouter extends Router { @NuRoute() ScreenRoute myRoute() => ScreenRoute( builder: (_) => MyScreen(), ); @override Map<RouteDef, ScreenRouteBuilder> get screensMap => _$screensMap; } void main() { runApp(MyApp()); } class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( builder: Nuvigator( router: MainRouter(), screenType: materialScreenType, initialRoute: Main Router Router { @NuRoute() ScreenRoute firstScreen({String argumentHere}) => ScreenRoute( builder: (_) => MyFirstScreen(), ); @override Map<RouteDef, ScreenRouteBuilder> get screensMap => _$screensMap; // Router { @NuRouter() MyOtherRouter myOtherRouter = MyOtherRouter(); @override List<Router> get routers => _$routers; // Will be created by the generated code @override Map<RouteDef, ScreenRouteBuilder> get screensMap => _$screensMap; // Will be created by generated code } Router Options When extending from the Router you can override the following properties to add custom behaviors to your routes: deepLinkPrefix: A Future). routersSub-Routers grouped into this and the required imports ( package:nuvigator/nuvigator.dart and package:flutter/widgets.dart) - Navigation extension methods to Router - Typed Arguments classes -) { ... } } Navigation Extensions router = Router.of<SamplesRouter>(context); await router.sampleOneRouter.toScreenOne(testId: 'From Home'); await router.toSecond(testId: 'From Home');
https://pub.dev/documentation/nuvigator/latest/
CC-MAIN-2020-34
en
refinedweb
slydepay_payment 0.0.4 A flutter plugin to integrate the Slydepay plugin for iOS and Android. Currently only implemented for android. IOS plugin will be implemented as well. Pull requests are always welcome. 💳 Slydepay Plugin for Flutter # A flutter plugin to integrate the Slydepay plugin for iOS and Android. Currently only implemented for android. IOS plugin will be implemented as well. Pull requests are always welcome. Features # [x] Android (iOS Coming Soon) - [x] Slydepay Payment - [x] VISA, MTN Mobile money, Vodafone payment - [x] All supported payment options with your account Supported formats Screenshots # Show some ❤️ and star the repo to support the project # - Please note this is a plugin only. This plugin has used the Android SDK Slydepay Account (Skip this if you have an active Merchant Account) # Create a Merchant Account on Slydepay Follow the link to get started on that: (Slydepay Merchant Account) Usage # To use this plugin : - add the dependency to your pubspec.yaml file. dependencies: flutter: sdk: flutter slydepay_payment: To call payment procedure: import 'package:slydepay_payment/slydepay_payment.dart'; List<dynamic> result = await SlydepayPayment.openSlydepayPaymentDialog( amount: amount, itemName: itemName, description: desc, customerName: customerName, customerEmail: customerEmail, orderCode: orderCode, phoneNumber: phoneNumber, merchantKey: merchantKey, merchantEmail: merchantEmail ); print("RESULT TYPE " + result[0]); // 1: SUCCESS, 2: FAILED, 3: CANCELLED print("MSG " + result[1]); Special Thanks # @norrisboateng For his sdk Slydepay-android-sdk-with-sample TODO # - [ ] better error handling Created & Maintained By # If you found this plugin helpful and want to thank me, consider buying me a cup of ☕ License # Copyright 2018 awos.
https://pub.dev/packages/slydepay_payment
CC-MAIN-2020-34
en
refinedweb
RearrangeMoveUpdateEvent Since: BlackBerry 10.3.0 #include <bb/cascades/RearrangeMoveUpdateEvent> The object type used for events passed with the signal RearrangeHandler::moveUpdated(). Overview Properties Index Public Functions Index Properties QVariantList The index path of the item that is currently being rearranged. BlackBerry 10.3.0 QVariantList The suggested target position of the item being rearranged. BlackBerry 10.3.0 Public Functions Q_SLOT void Should be invoked by the application when the proposed move operation isn't carried out. BlackBerry 10.3.0 Q_SLOT QVariantList Returns the current value of the RearrangeMoveUpdateEvent::fromIndexPath property. The current property value. BlackBerry 10.3.0 Q_SLOT QVariantList Returns the current value of the RearrangeMoveUpdateEvent::toIndexPath property. The current property value. BlackBerry 10.3.0 Got questions about leaving a comment? Get answers from our Disqus FAQ.comments powered by Disqus
https://developer.blackberry.com/native/reference/cascades/bb__cascades__rearrangemoveupdateevent.html
CC-MAIN-2020-34
en
refinedweb
Amazing custom metrics using Azure Application Insights You know that old management saying, that you can't improve what you don't measure? It's annoying because being measured feels personal and uncomfortable, but it's useful in technology because it's totally true. There is a fairly lucrative market around monitoring stuff in the cloud now, because as our systems become more distributed and less monolithic, we do less tracing at the code level and more digestion of interaction data between components. When I launched the hosted forums, the big change was that I was finally exercising the two-level cache code that I wrote for POP Forums a long time ago. It was of course inspired by the way StackOverflow handles their caching. Basically, the web node checks to see if it has the object in its local memory, and if not, it goes to Redis. If it's not there either, then it goes to the database and puts it in Redis. Then, using Redis' pub/sub messaging, all of the web nodes get a copy and it holds on to it there with the same TTL. The default that I use is 90 seconds, but I don't know if that's "good" or not. I had no context or data to support that it worked at all, actually. The first step for me was to plug in Azure Application Insights, because it's silly-easy to use. You add a NuGet package to your web app, a little Javascript to your pages, the app key to your configuration, and enjoy that sweet sweet stream of data in the Azure portal. Instantly I had this beautiful map of curvy lines going between databases and web apps and Azure functions and queues and... not Redis. OK, no problem, a little google-foo reveals that the SDK doesn't have the hooks to monitor Redis calls. So I wander through the Azure portal to my Redis instance, and look up the numbers there. What I find is that there are almost three times as many cache misses than hits, which implies that data isn't repeatedly fetched very often, or something else. This is actually not super useful, because in theory, my two-level cache would not need to go all the way to Redis if the object is locally stored in the web node's memory. It's also not useful because I wanna see all of this in the pretty application maps! OK, so with the underlying forum project being open source, I didn't want to bake in this instrumentation because I don't know what others are using. Not forcing them to use App Insights, I decided to wrap all of my cache calls in a simple start/stop interface, and wire in a default implementation that doesn't do anything. That way, a consumer can write their own and swap out the dependencies when they compose their DI container. For example, here's the code wrapping a write to the memory cache: _cacheTelemetry.Start(); _cache.Set(key, value, options); _cacheTelemetry.End(CacheTelemetryNames.SetMemory, key); The _cache is an instance of IMemoryCache, and _cacheTelemetry is an instance of the interface I described above. One could argue that there are better ways to do this, and they're probably right. Ideally, since we're talking about something event based, having some kind of broader event based architecture would be neat. But that's how frameworks are born, and we're trying to be simple, so the default ICacheTelemetry is an implementation that does nothing. In the hosted forum app, I use a fairly straightforward implementation. Let's take a look and then I'll explain how it works. public class WebCacheTelemetry : ICacheTelemetry { private readonly TelemetryClient _telemetryClient; private Stopwatch _stopwatch; public WebCacheTelemetry(TelemetryClient telemetryClient) { _telemetryClient = telemetryClient; } public void Start() { _stopwatch = new Stopwatch(); _stopwatch.Start(); } public void End(string eventName, string key) { _stopwatch.Stop(); var dependencyTelemetry = new DependencyTelemetry(); dependencyTelemetry.Name = "CacheOp-" + eventName; dependencyTelemetry.Properties.Add("Key", key); dependencyTelemetry.Duration = new TimeSpan(_stopwatch.ElapsedTicks); dependencyTelemetry.Type = "CacheOp"; _telemetryClient.TrackDependency(dependencyTelemetry); } } When you add Application Insights to your web project, you add services.AddApplicationInsightsTelemetry() to your Startup. Under the hood, this adds a shared instance of TelemetryClient to your DI container. This is what we use to pipe data back to Insights. DANGER! A lot of the code samples in the SDK documentation show them creating new instances of the telemetry client with default configuration. This is naturally what I did first because I didn't read the documentation in any particular order. Something about this is bad, because my memory usage spiraled out of control until the app stopped responding. My theory is that it didn't have the right config, so it bottled up all of the events in memory and never flushed them, but I don't know for sure. Meh, using dependency injection is always better for testing anyway, so do that. As shown earlier, the cache calls are wrapped in start and end calls, so all we're doing here is starting a timer, then stopping it and recording the cache event as a DependencyTelemetry object. For extra flavor, I'm recording the cache key as well, so if something is particularly slow, I can at least infer what the cached data was. For example, a key like "pointbuzz:PopForums.PostPages.17747" tells me that the tenant is "pointbuzz," and the rest says it's a bunch of posts from the topic with ID 17747. I'm also giving the event a name that's prefixed with "CacheOp-" and not just the operation. Why? Because the lovely map view will group these together when they start with similar names. I learned this quite accidentally, because all of the database calls to tenant databases have a prefix on the database name. That worked out great because it groups the calls to tenant databases from the master database that describes the tenants. Let's see some raw data! We can enter our Azure Insights in the portal, go to Logs, and query for the dependencies we said we would send: There's a ton of context in every one of these entries, because they all roll up to the request data from the user. So yeah, I find a lot of weird cache misses from Russian bots that I assume are trying to spam forum topics that are 10 years old. So that's cool, but remember that my original intent was understanding what the hit ratios were for the cache, for both in-memory and Redis. Well, we can write a query for that as well, and even pin it to a dashboard, if we so choose: Behold! Useful data! This makes way more sense than my initial look at Redis data. It shows exactly what I would hope for, in fact: There are a ton of cache hits to the in-memory cache, and when those miss, they're persisted to memory and Redis. The bottom line is that the juicy data is right there in the memory most of the time. That's success! If you go back to the raw data above, you can see that those memory hits have a duration of zero, so less than a millisecond. That's obviously faster than crossing the wire to the database. You can also get a good summary of what's going on, and track down slow hits, by going to the application map: Right away, I wondered what the deal was with the slow gets from Redis. I'm still looking into it, but it looks like there's some overhead and warm up involved with the connection multiplexer in the StackExchange client. It's used so infrequently that there often isn't a connection to Redis established. That may partially explain why the SetRedis events are so short, because there had to be a connection to find there was nothing there before writing to it. It's all speculation at this point though, and generally pages are arriving in under 100ms. Azure Application Insights is a very cool tool, and not limited to just the basics. It's important that your monitoring goes deeper, because the lesson I've learned time after time is that contextual monitoring is the thing that will save you. Nothing knows about the health of the system better than the system itself, so you should strive to have it tell you what's up (or down, as the case may be).
https://weblogs.asp.net/jeff/amazing-custom-metrics-using-azure-application-insights
CC-MAIN-2020-34
en
refinedweb
Provided by: gnutls-doc_3.0.11+really2.12.14-5ubuntu3_all NAME gnutls_ia_generate_challenge - API function SYNOPSIS #include <gnutls/extra.h> int gnutls_ia_generate_challenge(gnutls_session_t session, size_t buffer_size, char * buffer); ARGUMENTS gnutls_session_t session is a gnutls_session_t structure. size_t buffer_size size of output buffer. char * buffer pre-allocated buffer to contain buffer_size bytes of output. DESCRIPTION Generate an application challenge that the client cannot control or predict, based on the TLS/IA inner secret. RETURN VALUE Returns 0 on success, or an negative error code..
http://manpages.ubuntu.com/manpages/precise/man3/gnutls_ia_generate_challenge.3.html
CC-MAIN-2020-34
en
refinedweb
Material not rendering in PV [SOLVED] On 05/06/2016 at 04:43, xxxxxxxx wrote: Hello, I have a litle problem with an Object Plugin. In my plugin I import a material from an c4d file in the res folder (its a more complex material,so I don't create it in my plugin) I have searched and read some threads about this but it just doesn't seem to work for me. My code: import os import c4d import random from c4d import plugins, bitmaps, utils, gui, storage PLUGIN_ID = 1037525 class olightroom(plugins.ObjectData) : def __init__(self) : self.SetOptimizeCache(False) doc = c4d.documents.GetActiveDocument() if doc.SearchMaterial("MITA_HDRI") == None: dir, f = os.path.split(__file__) path = os.path.join(dir, "res/mats", "hdri.c4d") c4d.documents.MergeDocument(doc, path , c4d.SCENEFILTER_0|c4d.SCENEFILTER_OBJECTS|c4d.SCENEFILTER_MATERIALS|c4d.SCENEFILTER_MERGESCENE) self.hdri_material = doc.SearchMaterial("MITA_HDRI") self.textureTag = c4d.TextureTag() self.textureTag.SetMaterial(self.hdri_material) self.textureTag.Message(c4d.MSG_UPDATE) self.hdri_material.ChangeNBit(c4d.NBIT_OHIDE, c4d.NBITCONTROL_SET) def GetVirtualObjects(self, op, hh) : doc = c4d.documents.GetActiveDocument() main_obj = c4d.BaseObject(c4d.Onull) hdri_object = c4d.BaseObject(c4d.Osky) hdri_object.InsertTag(self.textureTag, None) hdri_object.InsertUnder(main_obj) hdri_object.ChangeNBit(c4d.NBIT_OHIDE, c4d.NBITCONTROL_SET) return main_obj if __name__ == "__main__": path, fn = os.path.split(__file__) bmp = bitmaps.BaseBitmap() bmp.InitWith(os.path.join(path, "res", "icon.tif")) plugins.RegisterObjectPlugin(id=PLUGIN_ID, str="Mita's Lightroom 1.0", g=olightroom, description="olightroom", icon=bmp, info=c4d.OBJECT_GENERATOR) The funny thing is, that it works in the opengl view. Hopefully someone can help me. greetings, neon On 10/06/2016 at 09:10, xxxxxxxx wrote: Hasn't got anyone an idea? Or was I just not clear enough? greetings, neon On 10/06/2016 at 11:07, xxxxxxxx wrote: __init__() is the wrong place to do this, and GetActiveDocument() is not always the right document to do this with. Also, consider what happens when the material is deleted by the user. Maybe that helps, Cheers On 13/06/2016 at 02:50, xxxxxxxx wrote: Hello, a NodeData based plugin like ObjectData could be used in any context or situation (background rendering, team render client, etc.). So it is never save to call GetActiveDocument() from a NodeData based plugin. If you want to modify or interact with the scene that will receive the object instance when it is created from the GUI you can catch the message MSG_MENUPREPARE. This message is sent to the object before it is inserted into the BaseDocument. But the given data is a reference to the target BaseDocument. See the DoubleCircle example. Best wishes, Sebastian On 24/06/2016 at 06:16, xxxxxxxx wrote: Hello Neon, was you question answered? Best wishes, Sebastian On 24/06/2016 at 11:05, xxxxxxxx wrote: Hello Sebastian, yes my question was answered! I actually did reply but I think I missed the post reply button and closed the Window to early, sry my bad. Thanks again for all the Information. regards, neon
https://plugincafe.maxon.net/topic/9539/12803_material-not-rendering-in-pv-solved
CC-MAIN-2020-34
en
refinedweb
Cloud Run version running on the existing cluster, use the command kubectl get namespace knative-serving -o 'go-template={{index .metadata.labels "serving.knative.dev/release"}}' The command output is similar to: v0.14.0-gke.5 The first part of the returned value, v0.14.0, is the pinned knative version for this Cloud Run build. The second part, gke.5, is the Cloud Run build number.
https://cloud.google.com/run/docs/gke/cluster-versions?hl=it
CC-MAIN-2020-34
en
refinedweb
CSEN_InitMode_TypeDef Struct Reference Measurement mode initialization structure. #include <em_csen.h> Measurement mode initialization structure. Field Documentation ◆ sampleMode Selects the conversion sample mode. ◆ trigSel Selects the conversion trigger source. ◆ enableDma Enables DMA operation. ◆ sumOnly Disables dividing the accumulated result. ◆ accMode Selects the number of samples to accumulate per conversion. ◆ emaSample Selects the Exponential Moving Average sample weighting. ◆ cmpMode Enables the comparator and selects the comparison type. ◆ cmpThr Comparator threshold value. Meaning depends on cmpMode. ◆ singleSel Selects an APORT channel for a single conversion. ◆ inputMask0 Mask selects inputs 0 to 31. Effect depends on sampleMode. If sample mode is bonded, then mask selects inputs to short together. If sample mode is scan, then mask selects which inputs will be scanned. If sample mode is single and auto-ground is on ( autoGnd is true), mask selects which pins are grounded. ◆ inputMask1 Mask selects inputs 32 to 63. See inputMask0 for more information. ◆ autoGnd Ground inactive inputs during a conversion. ◆ convSel Selects the converter type. ◆ sarRes Selects the Successive Approximation (SAR) converter resolution. ◆ dmRes Selects the Delta Modulation (DM) converter resolution. ◆ dmIterPerCycle Sets the number of DM iterations (comparisons) per cycle. Only applies to the Delta Modulation converter. ◆ dmCycles Sets number of DM converter cycles. Only applies to the Delta Modulation converter. ◆ dmDelta Sets the DM converter initial delta value. Only applies to the Delta Modulation converter. ◆ dmFixedDelta Disables DM automatic delta size reduction per cycle. Only applies to the Delta Modulation converter. ◆ resetPhase Selects the reset phase timing. Most measurements should use the default value. See reference manual for details on when to adjust. ◆ driveSel Selects the output drive strength. Most measurements should use the default value. See reference manual for details on when to adjust. ◆ gainSel Selects the converter gain.
https://docs.silabs.com/gecko-platform/3.0/emlib/api/efr32xg12/struct-c-s-e-n-init-mode-type-def
CC-MAIN-2020-34
en
refinedweb
We've written a handy CircuitPython library for the various DC Motor and Stepper kits called Adafruit CircuitPython MotorKit that handles all the complicated setup for you. All you need to do is import the appropriate class from the library, and then all the features of that class are available for use. We're going to show you how to import the MotorKit class and use it to control DC and stepper motors with the Adafruit Stepper + DC Motor Shield. First assemble the Shield exactly as shown in the previous pages. There's no wiring needed to connect the Shield to the Metro. The example below shows wiring two DC motors to the Shield once it has been attached to a Metro. You'll want to connect a barrel jack to the power terminal to attach an appropriate external power source to the Shield. The Shield will not function without an external power source! You'll need to install a few libraries on your Metroca9685 - adafruit_bus_device - adafruit_register - adafruit_motor - adafruit_motorkit Before continuing make sure your board's lib folder or root filesystem has the adafruit_pca9685.mpy, adafruit_register, adafruit_motor, adafruit_bus_device and adafruit_motorkit files and folders copied over. Next connect to the board's serial REPL so you are at the CircuitPython >>> prompt. To demonstrate the usage, we'll initialise the library and use Python code to control DC and stepper motors from the board's Python REPL. First you'll need to import and initialize the MotorKit class. from adafruit_motorkit import MotorKit kit = MotorKit() from adafruit_motorkit import MotorKit kit = MotorKit() The four motor spots on the Shield are available as motor1, motor2, motor3, and motor4. In this example we'll use motor1. Note: For small DC motors like sold in the shop you might run into problems with electrical noise they generate and erratic behavior on your board. If you see erratic behavior like the motor not spinning or the board resetting at high motor speeds this is likely the problem. See this motor guide FAQ page for information on capacitors you can solder to the motor to reduce noise. Now to move a motor you can set the throttle attribute. We don't call it speed because it doesn't correlate to a particular number of revolutions per minute (RPM). RPM depends on the motor and the voltage which is unknown. For example to drive motor M1 forward at a full speed you set it to 1.0: To run the motor at half throttle forward use a decimal: Or to reverse the direction use a negative throttle: You can stop the motor with a throttle of 0: To let the motor coast and then spin freely set throttle to None. That's all there is to controlling DC motors with CircuitPython! With DC motors you can build fun moving projects like robots or remote controlled cars that glide around with ease.. You can alsoLEAVED DC motor""" import time from adafruit_motorkit import MotorKit kit = MotorKit() kit.motor1.throttle = 1.0 time.sleep(0.5) kit.motor1.throttle = 0 """Simple test for using adafruit_motorkit with a DC motor""" import time from adafruit_motorkit import MotorKit kit = MotorKit() kit.motor1.throttle = 1.0 time.sleep(0.5) kit.motor1.throttle = 0 For stepper motors: "")
https://learn.adafruit.com/adafruit-motor-shield-v2-for-arduino/python-circuitpython
CC-MAIN-2020-34
en
refinedweb
Building Dynamic Zip Bundle in ASP.NET Core: Part 1 - Dynamic PDFs How do you create dynamic files and include them in a dynamic zip file for download? In this two-part series, we first explain how to create a dynamic PDF Recently, a client requested something interesting. While I can't give away all of the details, I can say the project is taking some time. Basically, the system I'm writing contains a lot of sections: general project details, a discussion area, attachments, and other accompanying files associated with a project. They want the ability to bundle all of those sections into a ZIP file for archive purposes. Consider it like a snapshot of a project. They also said they don't want a file on disk. They don't want it stored anywhere except when requested. So they are requesting a dynamically-generated zip file with dynamically-generated content. Quite a task, wouldn't you say? In this two-part series, I will be showing you how to create such a routine to bundle a variety of files into a dynamically-generated zip file. But first, let's focus on creating a dynamic PDF. Building Dynamic PDFs I've mentioned how to build dynamic PDFs in an older post, but this time around, I wanted to use an updated library so I went searching. What I landed on was IronPDF. I went with their library for the following reasons: - Turn hard-coded HTML into a PDF - Create a PDF-version of a web page by simply passing in a URL - Return a PDF as a document, but provide the ability to turn that into a Stream (BIG selling point) I've found IronPDF gives you the greatest flexibility when working with PDFs. Of course, this is only scratching the surface of what this library can do. We'll be using feature 2 and 3. Feature 2 for the ability to modify my PDF contents declaratively as opposed to hard-coding HTML into a string and compiling every time we need to make a change. Besides, it makes more sense to have it as a webpage with an easy model backing it. Feature 3 should be evident as to why we'll be using this feature the most. We want to take these PDFs and generate a virtual file to include into a compressed zip file. Enough chit-chat...what does the code look like? This sample project was built using Visual Studio 2017 with ASP.NET Core 2.2. Installing IronPDF In your project, install the package IronPDF through Nuget in the Package Manager Console. Install-Package IronPDF And you should be ready to go. Creating the PDF Stream I created a class called ArchiveFile. This class contains the basics of our generated files: a filename, extension, and the bytes of the actual file. Models\ArchiveFile.cs public class ArchiveFile { public string Name { get; set; } public string Extension { get; set; } public byte[] FileBytes { get; set; } } This makes it easy to work with when writing to a zip file for later. Next, we create a service to give us our PDF document. Services\DocumentService.cs public class DocumentService: IDocumentService { public ArchiveFile GetDocument() { return GetTableOfContents(); } private ArchiveFile GetTableOfContents() { // Test parameter. var projectId = 5; var uri = new Uri(""+projectId); var pdf = CreatePdf(uri); return new ArchiveFile { Name="Header", Extension = "pdf", FileBytes = pdf.ToArray() }; } private MemoryStream CreatePdf(Uri uri) { var urlToPdf = new HtmlToPdf(); // if you want to create a Razor page with custom data, // make the call here to call a local HTML page w/ your data // in it. // var pdf = urlToPdf.RenderUrlAsPdf(uri); var pdf = urlToPdf.RenderHtmlAsPdf(@" <html> <head> </head> <body> <h1>Table of Contents</h1> <p>This is where you place you custom content!</p> </body> </html> "); return pdf.Stream; } } We place a button on our HTML page for a simple postback. Our code-behind on the Index.cshtml.cs takes the document and returns the bytes of the PDF as a FileContentResult. Pages/Index.cshtml.cs public class IndexModel : PageModel { private IDocumentService _service; public IndexModel(IDocumentService service) { _service = service; } public void OnGet() { } public FileContentResult OnPostDownload() { var document = _service.GetDocument(); var file = document.Name + "."+document.Extension; return File(document.FileBytes, "application/pdf", file); } } That's it. The file returns as a PDF and the name of the file is called Header.pdf. This simple project is fueled by the awesome IronPDF and performs all of the heavy lifting with their self-contained PDF library. Conclusion For this introduction to dynamically bundling files, our first achievement turns a simple HTML into a PDF document. While this is an extremely simple PDF document, you can easily uncomment the RenderUrlAsPdf in the DocumentService and transform any webpage into a PDF file. In the next post, we'll show how to take these dynamically created files and build them into a Zip file for the user without saving it on the server. How do you create PDFs dynamically? Is there a better library? Post your comments below and let's discuss.
https://www.danylkoweb.com/Blog/building-dynamic-zip-bundle-in-aspnet-core-part-1-dynamic-pdfs-GG?utm_campaign=ASP.NET%20Weekly&utm_medium=email&utm_source=Revue%20newsletter
CC-MAIN-2020-34
en
refinedweb
Introduction to Inner Class in Java An inner class in a Java program is nothing but the class that is declared and used in an already functioning class, so as to use all the functions and members which are accessible to the outer class. This is typically used when the coding pattern in the program needs to be more organized while reducing the length of the code. There are three types of inner classes, like member inner class, anonymous inner class and local inner class. The major factors seen as advantages of using the inner class in a Java program snippet are the inner class enable the code to be more optimized and organized, increases readability, and maintenance for this kind of classes are pretty low. Types of Inner Class in Java Inner class in java is basically those classes that are not static and are declared inside another class. So the inner class is a member of the outer class. There are 3 types of inner classes in Java: - Member inner class - Local inner classes - Anonymous inner classes Kindly note that Inner Class is a type of nested class that is not static. Let us discuss different types of Inner classes in java one by one. 1. Member Inner Class In this case, you just require to declare a class inside its outer class. But the class must not be inside the method of the outer class. It needs to be defined outside the method of the outer class. Inner class needs to be a non-static type. An object of inner class type can access the variable of the outer class. 2. Local Inner Classes In this case, also you just require to declare a class inside its outer class. But the class must be inside the method of the outer class. It needs to be defined inside the method of the outer class. Inner class needs to be a non-static type. The object of inner class type can access the variable of the outer class. As this class is declared inside a method of the outer class, its access is also restricted similar to local variables. If you require to invoke the function of the Inner class, you have to instantiate that inside the function. Points to be noted for local inner class: - Specifier of Local variable can’t be private, public or protected. - One cannot invoke Local inner class outside the function. - Till JDK version 1.7, Non-final local variables cannot be accessed by local inner class. But, a non-final local variables in local inner class can be accessed since JDK version 1.8. 3. Anonymous Inner Classes Anonymous, as the name suggests, is a call without name. But how it is possible? Actually, it is a type of inner class where we do both declaration and instantiation (means, object creation) at the same point in time. Whenever you want to override a method of a class, you might need to use an anonymous inner class. As an anonymous inner class does not have a name, we cannot create a constructor of an anonymous inner class. Also, note that you can only access anonymous inner classes at the point of its definition. Anonymous inner classes can be are created in two ways. - As a subclass of a particular type. - As implementer of the particular interface. Examples of Inner Class in Java Below we will discuss some code examples of Java Inner Class: Example #1: Member Inner Class In this example, we will demonstrate an example of a Member inner class. In this simple example where we declare a class inside an outer class. Inside “OuterClass” we have a private data member called “num1” and an inner class “InnerClass”. We can access the private variable “num1” of outer calls inside the inner class by an object of the “InnerClass” type. In this way, we are taking advantage of using the inner class where a private member of outer calls can be accessed by a method of Inner class. Code: class OuterClass{ private int num1=36; class InnerClass{ void shw(){ System.out.println("Member Inner Class"); } } } public class DemoOfMemberInnerClass{ public static void main(String args[]){ OuterClass oc=new OuterClass(); OuterClass.InnerClass ic=oc.new InnerClass(); ic.shw(); } } Output: Example #2: Anonymous Inner Class In this example, we will demonstrate an example of the Local inner class. Here our primary objective is to override the functionality of a method of the outer class. As the name suggests, the class name is explicitly not known and hence called an anonymous inner class. Here, both declaration and instantiation of the inner class are done at some point in time and hence it is called as Anonymous Inner Class. Code: abstract class Cat{ abstract void drink(); } public class AnonymousInnerClassDemo{ public static void main(String args[]){ Cat ct=new Cat(){ //anonymous inner class void drink(){ System.out.println("kitty loves milk"); } }; ct.drink(); } } Output: Example #3: Method Local Inner Class In this example, we will demonstrate an example of a method local inner class. In this simple example where we declare a class inside the method “display()” of the outer class “OuterClassDemo”. After that, we can access the method by an object of outer class. Code: public class OuterClassDemo{ private int num1=36;//instance variable void display(){ class LocalInnerClass{ // local inner class inside the method of outer class void shw(){ System.out.println(num1); } } LocalInnerClass li=new LocalInnerClass(); li.shw(); } public static void main(String args[]){ OuterClassDemo obj=new OuterClassDemo(); obj.display(); } } Output: Advantages of Java Inner Class Here are some of the advantages of java inner class which are explained below: - The advantage of an inner class is that it can access all of the members that means functions and variables of the outer class. - This feature in Java facilitates us to logically organize our codes based on functionality which will increase code readability and maintenance. It also facilitates the optimization of your code. - Inner class can access all of the private members (which means both data and methods) of its outer class. Conclusion This concludes our learning of the topic “Inner Class in Java”. Inner class is a very interesting feature in java where you can use a member of the outer class by the object of its inner class. Write yourself the codes mentioned in the above examples in the java compiler and verify the output. Learning of codes will be incomplete if you will not write code by yourself. Recommended Articles This is a guide to Inner Class in Java. Here we discuss types, different examples and advantages of Inner Class in Java. You may also look at the following articles to learn more-
https://www.educba.com/inner-class-in-java/?source=leftnav
CC-MAIN-2020-34
en
refinedweb
How To Generate a SAS Token for an Azure Service Bus Queue using C# communicate with the queue without this token, you will get a 401 unauthorized response. This blog post will outline how you can create a simple C# console application to generate this token for you. As stated earlier there is nothing on any of the Azure portals that will get you this SAS token directly which means that we will have to generate it manually given the information that Azure does supply. We will do so using .NET and more specifically we will use the Azure Service Bus NuGet package shown below: This package contains useful methods that can help us easily generate a SAS token for our other applications. While we may not necessarily need this package not doing so would require far more effort and would require us to use an HMAC-SHA256 hash to do so. For this blog post we will keep it simple and use the built in methods in the Azure Service Bus NuGet package. So in a newly create console app add the following code to the project: In this code replace all the variables with the following: - sbNamespace: The namespace of the Azure Service Bus that you created - sbPath: The name of the queue that you created - sbPolicy: The Shared Access Key Name - sbKey: The Shared Access Key Once you run this console app, navigate to the location specified on the last line and you should now see the text file which when opened should contain a SAS token similar to the one shown below: And there you have it! An easily configurable console app that generates a SAS token for your HTTP requests to the Azure Service Bus Queue. Learn more about Tallan or see us in person at one of our many Events!
https://blog.tallan.com/2016/01/13/how-to-generate-a-sas-token-for-an-azure-service-bus-queue-using-c/
CC-MAIN-2020-34
en
refinedweb
This simple program crashes "Abort trap (core dumped)" when it either expected to succeed or to catch an exception. $ g++ -v Using built-in specs. COLLECT_GCC=g++ COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc5/gcc/x86_64-portbld-freebsd11.0/5.4.0/lto-wrapper Target: x86_64-portbld-freebsd11.0 Configured with: /wrkdirs/usr/ports/lang/gcc5/work/gcc-5.4.0/configure --with-build-config=bootstrap-debug --disable-nls --enable-gnu-indirect-function --libdir=/usr/local/lib/gcc5 --libexecdir=/usr/local/libexec/gcc5 --program-suffix=5 --with-as=/usr/local/bin/as --with-gmp=/usr/local --with-gxx-include-dir=/usr/local/lib/gcc5/include/c++/ --with-ld=/usr/local/bin/ld --with-pkgversion='FreeBSD Ports Collection' --with-system-zlib --with-ecj-jar=/usr/local/share/java/ecj-4.5.jar --enable-languages=c,c++,objc,fortran,java --prefix=/usr/local --localstatedir=/var --mandir=/usr/local/man --infodir=/usr/local/info/gcc5 --build=x86_64-portbld-freebsd11.0 Thread model: posix gcc version 5.4.0 (FreeBSD Ports Collection) $ pkg info gcc gcc-5.4.0_2 Name : gcc Version : 5.4.0_2 Installed on : Wed Aug 9 03:18:50 2017 IDT Origin : lang/gcc Architecture : FreeBSD:11:* Prefix : /usr/local Categories : lang java Licenses : Maintainer : gerald@FreeBSD.org WWW : Comment : Meta-port for the default version of the GNU Compiler Collection Annotations : repo_type : binary repository : FreeBSD Flat size : 17.0B Description : GCC, the GNU Compiler Collection, supports a number of languages. This port pulls in gcc5 (or another version-specific port) and defines symlinks called gcc, g++, and gfortran. WWW: Gerald Pfeifer <gerald@FreeBSD.org> $ uname -a FreeBSD freebsd11 11.1-RELEASE FreeBSD 11.1-RELEASE #0 r321309: Fri Jul 21 02:08:28 UTC 2017 root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 ////////////////// Code: //////////// #include <iostream> #include <locale> int main() { try { std::locale l = std::locale("en_US.UTF-8"); } catch(std::exception const &e) { std::cerr << e.what() << std::endl; } catch(...) { std::cerr << "Unknown exception " << std::endl; } } For got to add building/running: $ g++ test.cpp $ ./a.out Abort trap (core dumped) Might this be related to what was just discussed a few days ago (related to libsupc++ vs libcxxrt) in PR 221288? (In reply to Artyom Beilis from comment #1) The compile/link command did not specify: -Wl,-rpath=/usr/local/lib/gcc5 and so is likely to get more of a mix of system and gcc libraries than gcc5 is designed for. (That command line option above has details that assume typical placements of files.) A from source build of lang/gcc5 reports the need for such options. (In reply to Mark Millard from comment #3) You can use ldd on the a,out after each type of link to see the different bindings. Can you confirm the issue doesn't affect lang/gcc6 and lang/gcc7? The default is going to change soon per bug 219275. I can reproduce in a pristine jail with nothing but gcc5 installed. gcc49, gcc48, gcc47, gcc46 are also affected. (In reply to Mark Millard from comment #3) > The compile/link command did not specify: -Wl,-rpath=... Maybe -Wl,-rpath should be added to the specfile instead of relying on ldconfig hints roulette. Not having sane defaults is a bug. . (In reply to Jan Beich from comment #5) >. There are still system libraries that are ambiguously bound to when the system has no gcc of its own. Use of: -Wl,-rpath=/usr/local/lib/gcc<?> for the appropriate <?> prevents that. For example: libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x800fbd000) vs. libgcc_s.so.1 => /usr/local/lib/gcc6/libgcc_s.so.1 (0x800e06000) But there is also the lack of: libcxxrt.so.1 => /lib/libcxxrt.so.1 (0x800b72000) when -Wl,-rpath=/usr/local/lib/gcc<?> is used. This can interact badly with binding to: libthr.so.3 => /lib/libthr.so.3 (0x8011d3000) since libthr was built based on the context for: libcxxrt.so.1 => /lib/libcxxrt.so.1 (0x800b72000) and not the implicit material in libstdc++. See bugzilla 221423. For reference: g++6 -std=c++14 -Wpedantic -Wall -pthread -Wl,-rpath=/usr/local/lib/gcc6 -O2 cpp_clocks_investigation.cpp # ldd a.out a.out: libstdc++.so.6 => /usr/local/lib/gcc6/libstdc++.so.6 (0x800844000) libm.so.5 => /lib/libm.so.5 (0x800bd9000) libgcc_s.so.1 => /usr/local/lib/gcc6/libgcc_s.so.1 (0x800e06000) libthr.so.3 => /lib/libthr.so.3 (0x80101d000) libc.so.7 => /lib/libc.so.7 (0x801245000) and the result has crash problems from the odd mix of libstdc++ supplying what would be used from libcxxrt inlibthr. (FYI: cpp_clocks_investigation.cpp is pure standard C++ code.) (I did not notice libthr using libgcc_s but if it did then it is the same sort of problem as for libstdc++ providing when the system libcxxrt would provide.) By contrast: clang++ -std=c++14 -Wpedantic -Wall -pthread cpp_clocks_investigation.cpp # ldd a.out a.out: libc++.so.1 => /usr/lib/libc++.so.1 (0x8008a6000) libcxxrt.so.1 => /lib/libcxxrt.so.1 (0x800b72000) libm.so.5 => /lib/libm.so.5 (0x800d90000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x800fbd000) libthr.so.3 => /lib/libthr.so.3 (0x8011d3000) libc.so.7 => /lib/libc.so.7 (0x8013fb000) works fine and libthr has libcxxrt to bind to (and the system libgcc_s if libthr has any binding to there). Separately from the above: -Wl,-rpath=/usr/local/lib/gcc<?> also disambiguates when having multiple lang/gcc* 's installed. But this type of context is not required for there to be binding problems. (In reply to Mark Millard from comment #6) Dumb typo. Wrong: See bugzilla 221423. Should have been: See bugzilla 221288 . (In reply to Jan Beich from comment #5) > Can you confirm the issue doesn't affect lang/gcc6 and lang/gcc7? > The default is going to change soon per bug 219275. I'm not sure which issue(s)/aspect(s) you are after, so I pick the following to try to answer. I strongly expect that an ldd on the original context that was using std::locale(LocaleName) would show something implying a mix of system and gcc original definitions, where at run-time a specific binding ends up being made. (But no one has posted such ldd output for the failing context(s).) I expect that what is required is producing the program and libraries it is bound to such that that they avoid the mix and bind at run time to the same implementation related materials as they all were built with. I expect that such applies to all lang/gcc* examples, including gcc6 and gcc7 and the older gcc5 (and before). This hole area of bindings is a mess. Progressing from gccN to gcc <N+1> is an example were if -Wl,-rpath=/usr/local/lib/gccN was used then it looks explicitly for files from: /usr/local/lib/gccN/ and if lang/gccN is uninstalled they will not be there to be found. It takes a rebuild or other form of forced redirection to have it try looking in: /usr/local/lib/gcc<N+1>/ instead. Even if it looks and finds a binding in the new place it can try to use, the behavior need not be compatible once bound. Some types of system have a means of leaving the libraries around for binding even when the compiler and such is no long around for the version in question. Without -Wl,-rpath=/usr/local/lib/gccN involved there are other issues. But sometimes the binding that results happens to work better than does with -rpath in use (since other libraries involved were not set up for the -rpath libraries but, say, system ones). I'm not sure there is a universal, fixed answer to which binding is better for the likes of (gcc6 example): libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x800fbd000) vs. libgcc_s.so.1 => /usr/local/lib/gcc6/libgcc_s.so.1 (0x800e06000) but as things are the run-time binding is controlled via use or not of the: -Wl,-rpath=/usr/local/lib/gccN Any set of libraries that is put to use in a program but that ends up being originally based overall on a mix of the two bindings (build time) is likely to end up being a problem combination when one implementation is actually bound. However, as I understand it, that option does not determine the use or not of the likes of: libcxxrt.so.1 => /lib/libcxxrt.so.1 (0x800b72000) because a bunch of those bindings can instead be found from the likes of: libstdc++.so.6 => /usr/local/lib/gcc6/libstdc++.so.6 (0x800844000) if it is involved, even without a -rpath in the link. Again a set of libraries used in a program but that mix the original contexts is likely to end up being a problem combination. (The program needs to match as well.) It appears that avoiding mixes is generally (but not universally?) required (both for libgcc_s alternative and for libcxxrt vs. implicit in libstdc++ ). In case an example makes it clearer: For my libthr example: It appears to me that a program using libstdc++ itself or in libraries would need a libthr equivalent that had also been built based on libstdc++ as libstdc++ is now constructed. Similarly for any libgcc_s use by the libthr equivalent. An alternate would be a libstdc++ that was built based on the system libgcc_s and libcxxrt and so that libstdc++ did not provide various bindings to gcc specifics that libstdc++ now does --and there would be no gcc based libgcc_s in use. As I understand g++ and libstdc++ is not designed for this sort of structure. Here are lang/gcc7 and system clang compile/link results as viewed by ldd (all under head -r322287 in a Virtual Box virtual machine): things look good until I try my threading example. Then one combination fails (the -rpath one!). # g++7 -std=c++14 -Wpedantic -Wall -Wl,-rpath=/usr/local/lib/gcc7 => /usr/local/lib/gcc7/libgcc_s.so.1 (0x800de5000) libc.so.7 => /lib/libc.so.7 (0x800ffc000) # ./a.out Note: The above did not crash but had no output. # g++7 -std=c++14 -Wpedantic -Wall => /lib/libgcc_s.so.1 (0x800de5000) libc.so.7 => /lib/libc.so.7 (0x800ffb000) # ./a.out Note: The above did not crash but had no output. # clang++ -std=c++14 -Wpedantic -Wall -O2 locale_failure_test.cc # ldd a.out a.out: libc++.so.1 => /usr/lib/libc++.so.1 (0x800824000) libcxxrt.so.1 => /lib/libcxxrt.so.1 (0x800af0000) libm.so.5 => /lib/libm.so.5 (0x800d0e000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x800f3b000) libc.so.7 => /lib/libc.so.7 (0x801151000) # ./a.out Note: The above did not crash but had no output. Replacing the locale line with: std::locale l = std::locale("NOSUCH::en_US.UTF-8"); # g++7 -std=c++14 -Wpedantic -Wall -Wl,-rpath=/usr/local/lib/gcc7 -O2 locale_failure_test.cc # ./a.out locale::facet::_S_create_c_locale name not valid # g++7 -std=c++14 -Wpedantic -Wall -O2 locale_failure_test.cc # ./a.out locale::facet::_S_create_c_locale name not valid # ./a.out collate_byname<char>::collate_byname failed to construct for NOSUCH::en_US.UTF-8 So no exception was thrown in any of the examples and the code did not fail. Trying instead: # more exception_test.cc #include <exception> int main(void) { try { throw std::exception(); } catch (std::exception& e) {} return 0; } # g++7 -std=c++14 -Wpedantic -Wall -Wl,-rpath=/usr/local/lib/gcc7 -O2 exception_test.cc # ./a.out # g++7 -std=c++14 -Wpedantic -Wall -O2 exception_test.cc # ./a.out # clang++ -std=c++14 -Wpedantic -Wall -O2 exception_test.cc # ./a.out So none of them fail. But trying my standard-C++ program that uses C++ threads: # g++7 -std=c++14 -Wpedantic -Wall -pthread -Wl,-rpath=/usr/local/lib/gcc7 => /usr/local/lib/gcc7/libgcc_s.so.1 (0x800e05000) libthr.so.3 => /lib/libthr.so.3 (0x80101c000) libc.so.7 => /lib/libc.so.7 (0x801244000) # ./a.out . . . (omitted) . . . Segmentation fault (core dumped) # g++7 -std=c++14 -Wpedantic -Wall -pthread => /lib/libgcc_s.so.1 (0x800e05000) libthr.so.3 => /lib/libthr.so.3 (0x80101b000) libc.so.7 => /lib/libc.so.7 (0x801243000) # ./a.out . . . (omitted) . . . End of clock tests. So it worked for /lib/libgcc_s.so.1 but not for /usr/local/lib/gcc7/libgcc_s.so.1 and I must have been wrong about /lib/libcxxrt.so.1 being what mattered. This threading example is a context where -Wl,-rpath=/usr/local/lib/gcc7 prevents correct operation because of cross library dependencies on implementation details of the build-time context vs. the mismatched runtime context for libthr.so.3 vs. libgcc_s.so.1 . # clang++ -std=c++14 -Wpedantic -Wall -pthread -O2 cpp_clocks_investigation.cpp # ldd a.out a.out: libc++.so.1 => /usr/lib/libc++.so.1 (0x800844000) libcxxrt.so.1 => /lib/libcxxrt.so.1 (0x800b10000) libm.so.5 => /lib/libm.so.5 (0x800d2e000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x800f5b000) libthr.so.3 => /lib/libthr.so.3 (0x801171000) libc.so.7 => /lib/libc.so.7 (0x801399000) # ./a.out . . . (omitted) . . . End of clock tests. So this also worked. Again /lib/libthr.so.3 and /lib/libgcc_s.so.1 go together just fine. Is this still relevant? (In reply to w.schwarzenfeld from comment #10) Well, I tried one of my old failing examples, but for more recent g++ vintages (8 and 9) in a more recent amd64 head release ( -r350364 ) and the failure did not happen . . . # g++8 -std=c++17 -Wpedantic -Wall -pthread -Wl,-rpath=/usr/local/lib/gcc8 -O2 cpp_clocks_investigation.cpp # ldd a.out a.out: libstdc++.so.6 => /usr/local/lib/gcc8/libstdc++.so.6 (0x800661000) libm.so.5 => /lib/libm.so.5 (0x8009f5000) libgcc_s.so.1 => /usr/local/lib/gcc8/libgcc_s.so.1 (0x800a27000) libthr.so.3 => /lib/libthr.so.3 (0x800c3e000) libc.so.7 => /lib/libc.so.7 (0x800c6b000) # ./a.out . . . # g++9 -std=c++17 -Wpedantic -Wall -pthread -Wl,-rpath=/usr/local/lib/gcc9 -O2 cpp_clocks_investigation.cpp # ldd a.out a.out: libstdc++.so.6 => /usr/local/lib/gcc9/libstdc++.so.6 (0x800663000) libm.so.5 => /lib/libm.so.5 (0x800a54000) libgcc_s.so.1 => /usr/local/lib/gcc9/libgcc_s.so.1 (0x800a86000) libthr.so.3 => /lib/libthr.so.3 (0x800c9d000) libc.so.7 => /lib/libc.so.7 (0x800cca000) # ./a.out . . . Both of those worked: no "Segmentation fault (core dumped)". Like earlier for g++7, locale_failure_test.cc did not fail either. I've no 11.x or 12.x context around to test. Being based only on head, this might not be enough evidence to close the submittal. (In reply to Walter Schwarzenfeld from comment #10) > Is this still relevant? std::locale test still fails on GCC < 6. As lang/gcc (i.e., g++ symlink) abides by GCC_DEFAULT it's not an issue since bug 219275. $ pkg install gcc48 gcc5 gcc6 gcc7 gcc8 gcc9 $ g++9 -Wl,-rpath=/usr/local/lib/gcc9 test.cpp $ ./a.out $ g++8 -Wl,-rpath=/usr/local/lib/gcc8 test.cpp $ ./a.out $ g++7 -Wl,-rpath=/usr/local/lib/gcc7 test.cpp $ ./a.out $ g++6 -Wl,-rpath=/usr/local/lib/gcc6 test.cpp $ ./a.out $ g++5 -Wl,-rpath=/usr/local/lib/gcc5 test.cpp $./a.out locale::facet::_S_create_c_locale name not valid $ g++48 -Wl,-rpath=/usr/local/lib/gcc48 test.cpp $ ./a.out locale::facet::_S_create_c_locale name not valid $ g++42 test.cpp $ ./a.out locale::facet::_S_create_c_locale name not valid As for ABI mismatch between g++ and libstdc++ when -Wl,-rpath is not passed and more than one lang/gcc* is installed it doesn't seem to crash on FreeBSD 11.3 or later. $ uname -rp 11.2-RELEASE amd64 $ pkg install gcc48 gcc5 gcc6 gcc7 gcc8 gcc9 $ g++9 test.cpp $ ./a.out Abort trap $ ldd ./a.out ./a.out: libstdc++.so.6 => /usr/local/lib/gcc48/libstdc++.so.6 (0x800822000) libm.so.5 => /lib/libm.so.5 (0x800b29000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x800d56000) libc.so.7 => /lib/libc.so.7 (0x800f65000)
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221423
CC-MAIN-2020-34
en
refinedweb
clone - create a child process #include <sched.h> int clone(int (*fn) (void *), void *child_stack, int flags, void *arg) _syscall2(int, clone, int, flags, void *, child_stack); clone creates a new process, just like fork(2). clone is explicitely one or several of the following constants, in order to specify what is shared between the calling process and the child process: CLONE_PARENT [Toc] [Back] (Linux 2.4 onwards) [Toc] [Back] If CLONE_FS is set, the caller and the child processes share the same file system information. This includes the root of the file system, the current working directory, and the umask. Any call to chroot(2), chdir(2), or umask(2) performed by the callng process or the child process also takes effect in [Toc] [Back] If CLONE_FILES is set, the calling process and the child processes share the same file descriptor table._SIGHAND [Toc] [Back]. CLONE_PTRACE [Toc] [Back] If CLONE_PTRACE is specified, and the calling process is being traced, then trace the child also (see ptrace(2)). CLONE_VFORK [Toc] [Back] [Toc] [Back] [Toc] [Back] [Toc] [Back] .). On success, the PID of the child process is returned in the caller's thread of execution. On failure, a -1 will be returned in the caller's context, no child process will be created, and errno will be set appropriately.. The clone and sys_clone calls are Linux-specific and should not be used in programs intended to be portable. For programming threaded applications (multiple threads of control in the same memory space), it is better to use a library implementing the POSIX 1003.1c thread API, such as the LinuxThreads library (included in glibc2 (libc6) ). See pthread_create(3thr). This manual page corresponds to kernels 2.0.x, 2.1.x, 2.2.x, 2.4.x, and to glibc 2.0.x and 2.1.x. fork(2), wait(2), pthread_create(3thr) Linux 2.4 2001-06-26 CLONE(2)
https://nixdoc.net/man-pages/Linux/man2/clone.2.html
CC-MAIN-2020-34
en
refinedweb
An asynchronous HTTP request (an AJAX request) is nothing more than another HTTP request. The difference however is that it returns immediately. It does not wait for the server to send a response, which will be eventually caught at a later stage of page life-cycle. In the third and final episode of our series of articles, we will focus on testing asynchronous HTTP requests coming from - An ASP.NET UpdatePanel web control - jQuery AJAX methods If you have already read and followed part one or part two of this tutorial, you will already have all you need to follow this part. If not,. - The MbUnit.Web helper project that comes as a part of the Web Testing with MbUnit and WatiN sample code project on GitHub. This contains the sample code for this article. -. Handling Asynchronous Requests Let’s consider a simple web page containing a button which triggers an HTTP request (for example a form submit). When you write a web test and use WatiN to emulate a user click, you invoke the method WatiN.Core.Button.Click(). This method returns once the whole HTTP request round trip is complete. In the case of a traditional synchronous post-back request, it means that the Click() method returns once the new web page was received, loaded, and displayed in the browser. However, because AJAX requests are, by defintion, asynchronous, the Click() method returns immediately when it invokes them, without waiting for the answer. If you rely on AJAX features in your web pages then, it’s likely that your web tests will behave strangely if you do not expect Click() to return before the asynchronous call actually updates the page. The MbUnit.Web project provides a few helpful methods to ease testing AJAX-enabled web pages. It supports two distinct techniques, but basically the principle is the same for both. After the AJAX request is submitted, we need to call an extra method which monitors the current running asynchronous request(s) and waits until they have all been completed. Note that the sample code for this article forms part of the SampleWebApplication project that comes as a part of the Web Testing with MbUnit and WatiN sample code project on GitHub. Testing Calls From An UpdatePanel Control The UpdatePanel web control is usually the preferred way to submit asynchronous requests in ASP.NET web forms applications. Once rendered in a browser, an UpdatePanel control exposes several handy properties and methods for use in your own JavaScript code. In the context of testing AJAX requests, we can use the isInAsyncPostBack() method on the PageRequestManager object to monitor asynchronous activities and check if an AJAX postback is currently in progress. Combining this method with WatiN’s Browser.Eval() method to make the current browser instance evaluate JavaScript code on the fly means that we have a simple way to make test code wait for a while until an AJAX request has completed. protected void WaitForAsyncPostBackComplete() { switch (BrowserContext.BrowserConfiguration.BrowserType) { case BrowserType.IE: { Wait(() => !Convert.ToBoolean(Browser.Eval ("Sys.WebForms.PageRequestManager.getInstance().get_isInAsyncPostBack();"))); break; } } } WaitForAsyncPostBackComplete() is part of the AbstractBrowserTestFixture class in the MbUnit.Web project so you need only make a couple of chages to our test code to accommodate the testing of AJAX requests. - Have the TestFixture class inherit from MbUnit.Web.AbstractBrowserTestFixture - Have your test call WaitForAsycPostBackComplete after an expected asynchronous submission to let the test re-synchronize with the AJAX-enabled page. For example. [TestFixture] public class DefaultPageTest : AbstractBrowserTestFixture<TPage> { [Test, RunBrowser] public void Async_postback_with_UpdatePanel() { var page = GoToPage(); page.TextBoxName.TypeText("McFly"); page.ButtonOkAsync.Click(); WaitForAsyncPostBackComplete(); // Wait for AJAX requests to complete Assert.AreEqual(page.SpanResultAsync.Text, "Hello from async postback, McFly."); Assert.IsNull(page.SpanResultSync.Text); Assert.IsNull(page.SpanResultAsyncJQuery.Text); } … } jQuery AJAX MVC-based web applications using ASP.NET MVC or any other similar frameworks are more likely to use a third-party API such as jQuery to send asynchronous requests. jQuery does not have any built-in property to monitor running AJAX requests. However it does provide a few hooks that we can use to instrument the page. function AjaxMonitorForWatiN() { var count = 0; $(document).ajaxStart(function() { count++; }); $(document).ajaxComplete(function() { count--; }); this.asyncInProgress = function () { return (count > 0); }; } var ajaxMonitorForWatiN = new AjaxMonitorForWatiN(); This short JavaScript snippet instantiates a simple monitoring tool that keeps track of running AJAX requests. It’s quiet rudimentary but efficient enough for our testing purpose. Of course we need to “inject” that code inside the page we want to test and as luck would have it, the AbstractBrowserTestFixture class includes the StartJQueryAjaxMonitoring() method to do just that. protected void StartJQueryAjaxMonitoring() { Browser.Eval( "function AjaxMonitorForWatiN() {" + " var count = 0;" + " $(document).ajaxStart(function() { count++; });" + " $(document).ajaxComplete(function() { count--; });" + " this.asyncInProgress = function () { return (count > 0); }; }" + "var ajaxMonitorForWatiN = new AjaxMonitorForWatiN();"); } To make use of this code, you must call StartJQueryAjaxMonitoring() as soon as the page is called, otherwise we could miss some asynchronous requests. [Test, RunBrowser] public void Async_postback_with_jQuery_Ajax() { var page = GoToPage(); // Attach a monitor to count async jQuery/AJAX requests in progress. StartJQueryAjaxMonitoring(); In a similar fashion to what we have done for monitoring UpdatePanel AJAX requests, it’s now possible to call a helper method - WaitForJQueryAjaxComplete() - from the abstract test fixture and make it wait if any asynchronous request is still running. page.TextBoxName.TypeText("McFly"); page.ButtonOkAsyncJQuery.Click(); WaitForJQueryAjaxComplete(); // Wait for all jQuery/AJAX requests to complete. Assert.AreEqual(page.SpanResultAsyncJQuery.Text, "Hello from async postback, McFly."); Assert.IsNull(page.SpanResultSync.Text); Assert.IsNull(page.SpanResultAsync.Text); } Much like the WaitForAsyncPostBackComplete() method we saw earlier, WaitForJQueryAjaxComplete() uses WatiN’s Browser.Eval method to query the simple monitor we injected into the page earlier in the test. protected void WaitForJQueryAjaxComplete() { Wait(() => !Convert.ToBoolean( Browser.Eval("ajaxMonitorForWatiN.asyncInProgress()"))); } The sample DefaultPageTest fixture summarizes all those different techniques and shows how to use them in an efficient way. Sometimes the manual registration of the jQuery/AJAX monitor may be problematic though. This might be an issue for instance if the scope of your test causes several pages to appear sequentially, or if an AJAX request is immediately triggered when the page is displayed. It’s then possible that the instrumentation of the page occurs after some requests have been issued. If such a case happens, you may prefer to move the instrumentation to a lower level: for example directly in your View or Controller base class. Ideally, the instrumentation should be only necessary if HttpContext.IsDebuggingEnabled is true. This will reduce the little overhead introduced by this extra functionality. Summary In this article, we’ve looked at the main problem with testing asynchronous (AJAX) calls from a web page to a server using both the UpdatePanel control and jQuery’s own AJAX methods. We saw how MbUnit.Web.AbstractBrowserTestFixture contains the WaitForAsyncPostBackComplete and the WaitForAjaxQueryComplete methods for use in this situation and what they do.
https://www.developerfusion.com/article/134437/web-testing-with-mbunit-and-watin-part-3-testing-asynchronous-ajax-calls/
CC-MAIN-2020-34
en
refinedweb
Security Training Classes in Fresno, California Learn Security in Fresno, California and surrounding areas via our hands-on, expert led courses. All of our classes either are offered on an onsite, online or public instructor led basis. Here is a list of our current Security related training offerings in Fres - Developing Linux Device Drivers (LFD430) 14 September, 2020 - 17 September, 2020 - CompTIA A+ Certification 15 August, 2020 - 19 August, 2020 - ASP.NET Core MVC 28 September, 2020 - 29 September, 2020 - .NET Framework Using C# 9 November, 2020 - 12. Checking to see if a file exists is a two step process in Python. Simply import the module shown below and invoke the isfile function: import os.path os.path.isfile(fname)…
https://www.hartmannsoftware.com/Training/security/Fresno-California
CC-MAIN-2020-34
en
refinedweb
ASP.NET Core MVC Project I am using Visual Studio 2019 Community Edition, a free download from Microsoft. Starting with 2019, the wizard for choosing templates is different from previous versions, but regardless which version you have, the steps are about the same. - Go to Create a new Project. - Select ASP.NET Core Web Application. - Select the name and location for the project (I called mine MultiAppDemo). - Choose ASP.NET Core (in my case, it's version 3.0). - Choose ASP.NET Model-View-Controller (for simplicity sake, select No Authentication, so VS doesn't generate artifacts irrelevant for this walk-through). Your project view in the Solution Explorer should look something like this: Since we used the ASP.NET MVC template and not the SPA template, we need to add Microsoft.AspNetCore.SpaServices.Extensions NuGet package. To install the package, open the Package Manager Console and run the following statement: Install-Package Microsoft.AspNetCore.SpaServices.Extensions Create Angular Project Make sure you have the following software installed (all free): - Visual Studio Code - Node.js - Angular CLI. To install, go to the command prompt and execute this command: npm install -g @angular/cli I am using Angular v8. Using an earlier version is okay as long as it has access to the createCustomElement API. Those capabilities are available in Angular v7 as well. To create an Angular solution for use in our ASP.NET MVC project, open the command prompt and navigate to the folder that contains the project file (extension .csproj) for your MVC project. Once there, create the Angular project by executing this command from the prompt: ng new Apps Choose N for routing and CSS for styling. Change directory to Apps, and type the following (including the trailing period): code . You should now have your Angular project opened in Visual Studio Code. Bootstrap Angular Elements The idea is to use this root project as a repository for re-usable components that will be available to other Angular applications (we will create them later) as normal Angular components and to the MVC views as Web Components (aka Angular Elements). So, what is a web component? Here is a definition from webcomponents.org: Web components are a set of web platform APIs that allow you to create new custom, reusable, encapsulated HTML tags to use in web pages and web apps. Angular provides a way to package Angular components as web components via an API called Angular Elements. For instance, if you create an Angular component that shows the current time and bootstrap this component as Angular element current-time, you can then include <current-time /> tag in plain HTML pages. More information is available on the official Angular site. Open your Angular project in VS Code. Open a terminal window and type a command to generate the clock component and to add that component to app.module.ts: ng g c current-time You should now have a folder called current-time under src/app with several files that make up your clock component. Change your app/current-time/current-time.component.html to have the following markup: <p>{{ time }}</p> Change your app/current-time/current-time.component.ts to have the following code: import { Component, OnInit, OnDestroy } from '@angular/core'; @Component({ selector: 'app-current-time', templateUrl: './current-time.component.html', styleUrls: ['./current-time.component.css'] }) export class CurrentTimeComponent implements OnInit, OnDestroy { timer: any; time: string constructor() { } ngOnInit() { var setTime = () => { var today = new Date(); this.time = ("0" + today.getHours()).slice(-2) + ":" + ("0" + today.getMinutes()).slice(-2) + ":" + ("0" + today.getSeconds()).slice(-2); }; setTime(); this.timer = setInterval(setTime, 500); } ngOnDestroy(){ if (this.timer){ clearTimeout(this.timer); } } } The implementation is rather simple. We have a timer that fires every half a second. The timer updates the time property with a string representing the current time, and the HTML template is bound to that string. Paste the following styles into your app/current-time/current-time.component.css p { background-color: darkslategray; color: lightgreen; font-weight: bold; display: inline-block; padding: 7px; border: 4px solid black; border-radius: 5px; font-family: monospace; } Now, save all the modified files and let's bootstrap this clock component as a web component: - Open a new terminal window inside Visual Studio Code. - Add Angular Elements libraries and polyfills. To do that type the following command at the terminal window: ng add @angular/elements - Navigate to src/app/app.module.ts - If it's not there already, add the following import statement at the top of app.module.ts: import { createCustomElement } from '@angular/elements'; - Add Injector to the import from @angular/core: import { NgModule, Injector } from '@angular/core'; - Replace bootstrap: [AppComponent] with entryComponents: [ClockComponent] - Lastly, add the constructor and ngDoBootstrap to the AppModule class. constructor(private injector: Injector) { } ngDoBootstrap(){ customElements.define('current-time', createCustomElement(CurrentTimeComponent, {injector: this.injector})); } There is one more thing we need to do now that will be necessary later when we try to import CurrentTimeComponent in a different Angular application. We need to export this component from the module. To do that, add the exports property just above providers: exports: [ CurrentTimeComponent ], Your entire app.module.ts should look like this: import { BrowserModule } from '@angular/platform-browser'; import { NgModule, Injector } from '@angular/core'; import { AppComponent } from './app.component'; import { createCustomElement } from '@angular/elements'; import { CurrentTimeComponent } from './current-time/current-time.component'; @NgModule({ declarations: [ AppComponent, CurrentTimeComponent ], imports: [ BrowserModule ], exports: [ CurrentTimeComponent ], providers: [], entryComponents: [CurrentTimeComponent] }) export class AppModule { constructor(private injector: Injector) { } ngDoBootstrap(){ customElements.define('current-time', createCustomElement(CurrentTimeComponent, {injector: this.injector})); } } Now, let's test that our solution works. Go to src\index.html and replace <app-root></app-root> with <current-time></current-time>. Type ng serve --open from the terminal window to run the project. You should now see the current time showing in your browser. Use Web Components in ASP.NET Project The next step is to make our current-time component available in the ASP.NET MVC Core Project. To do that, open the ASP.NET project in Visual Studio. Paste the following code before the closing </body> tag in Views/Shares/_Layout.cshtml <environment include="Development"> <script type="text/javascript" src=""></script> <script type="text/javascript" src=""></script> <script type="text/javascript" src=""></script> <script type="text/javascript" src=""></script> <script type="text/javascript" src=""></script> <script type="text/javascript" src=""></script> </environment> <environment exclude="Development"> <script asp-</script> <script asp-</script> <script asp-</script> <script asp-</script> <script asp-src-include="~/Apps/dist/core/main-es5.*.js" nomodule></script> </environment> The previous code segment shows two blocks, one for development and one for non-development. When we are in development, our Angular project that hosts web components will be running on port 4200, started from VS Code. When we are in production, the Angular project will be compiled into wwwroot/apps/core folder with javascript files named with hashes appended. In order to properly reference the files, we need to use asp-src-include tag helpers. Next, in _Layout.cshtml, add <current-time></current-time> right after the </main> closing tag. To test that our development configuration works: - Go to VS Code where your Angular project is opened, and type this command at the terminal prompt: ng serve --liveReload=false - Go to Visual Studio where your ASP.NET project is opened and hit F5 to run the project. Your ASP.NET site should open up and you should see the current time component displayed on every page... Community comments Issue with sample by Leonid Shraybman / Cannot install Microsoft.AspNetCore.SpaServices.Extensions by Chan Xavier / Securing Angular Routes with .Net Identity Autentication by Hermann Valderrama /.
https://www.infoq.com/articles/Angular-Core-3/?itm_source=articles_about_dotnet&itm_medium=link&itm_campaign=dotnet
CC-MAIN-2020-34
en
refinedweb
parts generated in multipart uploads, call oss_list_upload_part to list the parts. Then, call oss_abort_multipart_upload to delete the parts. For more information, see Multipart upload. The following code provides an example on how to delete a bucket: #include "oss_api.h" #include "aos_http_io.h" const char *endpoint = "<yourEndpoint>"; const char *access_key_id = "<yourAccessKeyId>"; const char *access_key_secret = "<yourAccessKeySecret>"; const char *bucket_name = "<yourBucketName>"; void init_options(oss_request_options_t *options) { options->config = oss_config_create(options->pool); /* Use a char* string to initialize the aos_string_t data type. */ aos_str_set(&options->config->endpoint, endpoint); aos_str_set(&options->config->access_key_id, access_key_id); aos_str_set(&options->config->access_key_secret, access_key_secret); /* Specify whether to use CNAME. 0 indicates that the CNAME is not used. */ options->config->is_cname = 0; /* Configure network parameters, such as timeout. */ options->ctl = aos_http_controller_create(options->pool, 0); } int main(int argc, char *argv[]) { /* Call aos_http_io_initialize in main() to initialize global resources, such as the network and memory. */ if (aos_http_io_initialize(NULL, 0) ! = AOSE_OK) { exit(1); } /* Create a memory pool to manage memory. The implementation code is included in the APR library. aos_pool_t is equivalent to apr_pool_t. */ aos_pool_t *pool; /* Create a new memory pool. The second parameter value is NULL. This value indicates that the pool does not inherit any other memory pool. */ aos_pool_create(&pool, NULL); /* Create and initialize options. This parameter includes global configuration information such as endpoint, access_key_id, access_key_secret, is_cname, and curl. */ oss_request_options_t *oss_client_options; /* Allocate a memory chunk in the memory pool to options. */ oss_client_options = oss_request_options_create(pool); /* Call oss_client_options to initialize the client options. */ init_options(oss_client_options); /* Initialize the parameters. */ aos_string_t bucket; aos_table_t *resp_headers = NULL; aos_status_t *resp_status = NULL; /* Assign char* data to the aos_string_t bucket. */ aos_str_set(&bucket, bucket_name); /* Delete the bucket. */ resp_status = oss_delete_bucket (oss_client_options, &bucket, &resp_headers); if (aos_status_is_ok(resp_status)) { printf("delete bucket succeeded\n"); } else { printf("delete bucket failed\n"); } /* Release the memory pool. The memory allocated to various resources used for the request is released. */ aos_pool_destroy(pool); /* Release the allocated global resources. */ aos_http_io_deinitialize(); return 0; } For more information about how to delete a bucket, seeDeleteBucket.
https://www.alibabacloud.com/help/doc-detail/147600.htm
CC-MAIN-2020-34
en
refinedweb
Technical Support On-Line Manuals RL-ARM User's Guide (MDK v4) #include <rtl.h> int recv ( int sock, /* Socket descriptor */ char *buf, /* Pointer to a buffer for data */ int len, /* Size of data buffer in bytes */ int flags, /* Message flags */ SOCKADDR *from, /* Pointer to address structure */ int *fromlen); /* Length of address structure */ The recvfrom function is used to receive data that has been queued for a socket. It is normally used to receive messages on SOCK_DGRAM socket type, but can also be used to receive a reliable, ordered stream of data on a connected SOCK_STREAM socket type. It reads as much information as currently available up to the size of the buffer specified. In blocking mode, which is enabled if the system detects RTX environment, this functions waits for received data. In non blocking mode, you must call the recvfrom function again if the error code SCK_EWOULDBLOCK is returned. The argument sock specifies a socket descriptor returned from a previous call to socket. The argument buf is a pointer to the application data buffer for storing the data to. If the available data is too large to fit in the supplied application buffer buf, excess bytes are discarded in case of SOCK_DGRAM sockets. For socket types SOCK_STREAM, the data is buffered internally so the application can retrieve all data by multiple calls of recvfrom function. The argument len specifies the size of the application data buffer. The argument flags specifies the message flags: The argument from is a pointer to the SOCKADDR structure. If from is not NULL, the source IP address and port number of the datagram is filled in. The argument fromlen is a pointer to the address length. It should initially contain the amount of space pointed to by from. On return it contains the actual length of the address returned in bytes. The recvfrom function is in the RL-TCPnet library. The prototype is defined in rtl.h. note The recvfrom function returns the following result: ioctlsocket, recv, send, sendto #include <rtl.h> __task void server (void) { SOCKADDR_IN addr; int sock, res, addrlen; char dbuf[4]; while (1) { sock = socket (AF_INET, SOCK_DGRAM, IPPROTO_UDP); addr.sin_port = htons(1001); addr.sin_family = PF_INET; addr.sin_addr.s_addr = INADDR_ANY; bind (sock, (SOCKADDR *)&addr, sizeof (addr)); while (1) { addrlen = sizeof (addr); res = recvfrom (sock, dbuf, sizeof (dbuf), 0, addr, &addrlen); if (res <= 0) { break; } procrec ((U8 *)dbuf); printf ("Remote IP: %d.%d.%d.%d\n",addr.sin_addr.s_b1, addr.sin_addr.s_b2, addr.sin_addr.s_b3, addr.sin_addr.s_b4); printf ("Remote port: %d\n",ntohs (addr.sin_port)); }.
https://www.keil.com/support/man/docs/rlarm/rlarm_recvfrom.htm
CC-MAIN-2020-34
en
refinedweb
Image Slider - 2 minutes to read The ImageSlider is an image-browsing control with two clickable navigation elements that become visible when hovered. The following are the main members the control provides: ImageSlider.Images - Stores images displayed by the ImageSlider. The ImageSlider also supports dynamic image loading. See the Virtual Mode topic to learn more. - ImageSlider.LayoutMode - Gets or sets the way an image is aligned within the ImageSlider container. - ImageSlider.CurrentImage - Gets a currently displayed image within the ImageSlider object. - SliderBase.SlideNext and SliderBase.SlidePrev - Navigate through the control's images in code. SliderBase.AnimationTime - Gets or sets the time required to switch to another image. NOTE If the WindowsFormsSettings.AnimationMode global setting is adjusted to DisableAll, the image sliding animation effect is disabled. The ImageSlider control provides support for touch-input devices. Pager Navigation The RadioGroup and WindowsUIButtonPanel can be used as a pager for the following controls: The pager automatically splits the target control's content into pages, and provides navigation buttons to scroll to corresponding pages. The pager navigation functionality is implemented as a Behavior and can be added to your controls using the BehaviorManager component. Example The example demonstrates how to create and customize an ImageSlider control. using DevExpress.XtraEditors.Controls; ImageSlider mySlider = new ImageSlider(); mySlider.Parent = this; mySlider.Size = new Size(240, 200); //Populate ImageSlider with images mySlider.Images.Add(Image.FromFile(@"c:\Images\im1.jpg")); mySlider.Images.Add(Image.FromFile(@"c:\Images\im2.jpg")); mySlider.Images.Add(Image.FromFile(@"c:\Images\im3.jpg")); mySlider.Images.Add(Image.FromFile(@"c:\Images\im4.jpg")); //Increase image sliding animation duration (default is 700 ms) mySlider.AnimationTime = 1200; //Display images at the center of ImageSlider in their original size mySlider.LayoutMode = DevExpress.Utils.Drawing.ImageLayoutMode.MiddleCenter; //... //Slide to the next image mySlider.SlideNext();
https://docs.devexpress.com/WindowsForms/12364/controls-and-libraries/editors-and-simple-controls/image-slider
CC-MAIN-2020-34
en
refinedweb
In certain cases you may need to use motors for different purposes. Depending on the experiment or the device you are building, the type of motor to use can be different. In this series of posts I will show you how to use those motors with Arduino. Servo Motors Servo motors are motors for which you can control accurately enough the speed and the angle of rotation. They can be used to precisely move parts in your device. For examples, in physics experiment you can use a servo motor to hold a ball in a given position and release it at a given time to study its motion. As most of the motors, servo motors can just rotate around their axis. However, with a bit of mechanics you can realise any kind of movement. To have an idea of what you can do with a rotating axis and some mechanics, just read the article on. Controlling a servo motor is incredibly easy with Arduino. Servo motors have three wires: usually coloured in black, red and white. The black one must be connected to the GND pin of the Arduino, while the red one to the 5V pin. They are used to feed the motor with some power. The third wire is used to control it. Any servo motor works receiving voltage pulses of a given width. Pulses are repeated at regular intervals (e.g. 20 ms), while the duration of a single pulse determines the rotation angle of the motor around its axis or its speed. Given the working principle of a servo motor, you will not be surprised to know that you need to connect the control wire to one of the PWM (Pulse Width Modulation) pins of Arduino. PWM pins can be configured such that they provide voltage pulses at given interval with the chosen duty cycle. The duty cycle of a PWM pin is the faction of time for which the pin is at its highest voltage. An excellent tutorial on PWM pins is given here. Putting the pin to zero makes the PWM pin to stay off, while putting it at its maximum value of 255 makes the pin to stay always on, i.e. with a duty cycle of 100%. In order to observe a square wave on the pin you must put it at 128, such that f=128/255=0.5 and the duty cycle is 50%. Any other number makes the pin to produce a square wave whose pulse width ranges from 0 to T, where T depends on the Arduino flavour. On the Arduino UNO T is about 2 ms. With Arduino you don't need to compute the values yourself to control a servo motor. The Servo library is in fact available for use and provides all the relevant configurations automatically. Consider the following sketch: #include <Servo.h> Servo myservo; void setup() { myservo.attach(9); } void loop() { myservo.write(90); delay(1500); myservo.write(0); delay(1500); } The attach() method in setup() just tells Arduino to which pin the motor is attached, represented by the object myservo, defined as a member of the main class (Servo myservo). In the example the servo is attached to pin 9. You can then provide an angle, in degrees, to the write() method. Its effect depends on which type of servo motor you have. There are, in fact, two types of servo motors: continuous rotation and standard. The write() command makes a standard servo rotate of the specified angle. A call to myservo.write(90); with a standard servo makes it rotate of 90 degrees. With the above sketch a servo of this type rotates of 90 degrees, then holds that position for 1.5 s, before returning at its initial position, where it stays for 1.5 s. Being in the loop the above rotations are repeated continuously. When a servo motor of this type is powered and is receiving a train of pulses, it resists to forces applied to it holding its position. Of course you cannot apply forces too large, if you do not want to damage your servo. The maximum torque you can exert on the servo axis is one of the characteristics you can find on the servo data sheet. The maximum torque is usually measured in kg·cm and is the product of the mass of a weight suspended at a given distance on a beam mounted on the motor axis. Using a servo whose maximum torque is 10 kg·cm you can suspend 10 kg at a distance of 1 cm from the axis as well as 1 kg at 10 cm. The larger the distance, the lower the weight the servo can tolerate. Needless to say, it is not a good idea to use a servo close to its limit. If you need a given torque, choose a servo that can tolerate at least twice that torque. In order to compute the torque in N·cm it is enough to multiply the torque in kg·cm by 9.8, i.e. by the gravitational acceleration. In this case a servo whose maximum torque is 10 kg·cm can tolerate a force acting 1 cm far from the axis of 10·9.8=98 N, or a force of 9.8 N acting at a distance of 10 cm from the axis. Continuos rotation servo motors, instead, rotate clockwise or anticlockwise until they are powered. The number passed to the write() method represents the rotation speed: numbers from 0 to 89 make the motor axis rotate anticlockwise (seen from above), while numbers from 91 to 180 make it rotating clockwise. The maximum speed is attained for 0 or 180. The higher the number, the slower the speed if the number is less than 90. On the contrary, if the number is larger than 90, the speed increases with the number. Setting the speed at 90 makes the servo stop rotating. In the above sketch, then the servo rotates anticlockwise for 1.5 s, then stops for other 1.5 s and so on. Here you can find the motor we used for our tests, but it is plenty of them in the Farnell Electronics store. Below is a video showing our continuous rotation servo working with the sketch outlined above. This post appears on my personal blog, too () and its content will be part of my freely available publication Scientific Arduino available here.
https://www.element14.com/community/community/arduino/arduino-tutorials/blog/2016/04/01/working-with-motors-servo-motors
CC-MAIN-2020-34
en
refinedweb
Seleziona la tua lingua Il blog di Red Hat Blog menu Red Hat Enterprise Linux 8 comes with a new feature called Application Streams (AppStreams), in which multiple versions of packages are provided, with a known period of support. These modules can be thought of as package groups that represent an application, a set of tools, or runtime languages. Each of these modules can have different streams, which represent different versions of software, giving the user the option to use whichever version best suits their needs. Each module will also have installation profiles, which help to define a specific use case, and will determine which packages are installed on the system. * Estimated timeline of support, for more information on life cycles please visit Red Hat Enterprise Linux 8 Application Streams Life Cycle Modularity and AppStreams provide users access to newer versions of software while being supported longer. In the past users would typically have one or two versions to work with throughout the lifecycle of the operating system. Now users will have more choices when it comes to versions of popular languages and tools. Starting with RHEL 8, Red Hat Software Collections along with Extras, Dotnet, and Devtools will be moved into and replaced by the Appstream repository. Installing Applications via Modules First things first, let's take a look at which modules are currently available to us after a fresh installation of RHEL 8. We can display modules using yum and see what modules and AppStreams are available to us. # yum module list # lists all modules As you can see there are quite a few already provided in the base installation. For our demonstration we are going to use one of the PostgreSQL modules. Let's take a look at which versions, or AppStreams are available for PostgreSQL. # yum module info postgresql # lists all modules for postgresql From this output we can see there are several AppStreams of PostgreSQL to work with. For now we are going to use stream 10, or version 10 of PostgreSQL, as it’s the default. Each module will display pertinent information including stream version, profiles, repos, summary, description, and artifacts. We’ll delve a little deeper into some of these later, but for now we can see the stream version as 10, which also has a [d] and [a] next to it. These mean that this module version is the [d]efault and [a]ctive version that will be installed should a user attempt to install PostgreSQL via yum. If no stream is specified, the default and enabled one will always be installed. Here is an example that we can break down to show all the options. # yum install @module:version/profile @moduledefines which module we are going to use. :versionspecifies which stream we are going to use for the specified module. /profiletells us which profile to use. If no profile is specified, the default one is used. If no default is defined, then the module is only enabled but no packages are installed. Let’s go ahead and install the PostgreSQL module using just the defaults. # yum install @postgresql # installs the default, PostgreSQL 10 module Since we did not specify a stream or a profile, we can see that the defaults were used for both AppStream and profile. What if we don't want to use the defaults then? Let’s continue to see how we switch between different AppStreams and profiles. Switching between different AppStreams in a module A common challenge that Red Hat system administrators face are requests to install newer versions of applications then are included in the base RHEL repositories. With modules we can seamlessly change between available versions of a particular RPM. How is that different from Red Hat Software Collections you might ask? Software Collections keeps multiple versions on one system, putting each package into separate namespaced paths. Modularity uses the standard RPM packaging, so paths are where you expect them to be. Keep in mind, unlike Software Collections, modules do not allow running multiple versions at the same time. Only one stream can be installed and used at a time. We’re going to continue to use PostgreSQL, but for this example our application team is requesting we move to a newer version. Let's see which AppStreams of PostgreSQL are available to us. # yum module info postgresql # Lists all AppStreams available Here we can see there is a newer version of PostgreSQL available to us through modules. Before we can go ahead and install a newer version of PostgreSQL, we will need to reset the current module used and then install the newer version, specifying the stream. # yum module reset PostgreSQL #Resets postgresql module As you can see when we reset the module, the streams of that module are set to their initial state, neither enabled nor disabled. If a module has a default stream, in this case stream 10 for PostgreSQL, then it becomes active after the reset. Now we can specify a newer stream and in this case, since there are no default profiles, we are going to select the server one. In the event a stream does not have a default profile specified with a [d] next to it, if you do not specify a profile, the stream will be enabled but no packages will be installed. # yum module install postgresql:12/server #Installs stream 12 We can see that stream 12 has been enabled, the server profile will be used, and the PostgreSQL version 12 packages will be installed. If you wish to revert back to a previous stream, you just reset the profile as before, and specify an earlier stream during install. Summary and Closing AppStreams and modular content are great new tools, giving greater flexibility to users on which software to install, all while staying supported for longer. Our hope is that with the module build pipeline and client tooling made available, it will enable developers to continue to provide multiple versions of software. For additional information and documentation on usage and the AppStream life cycle you can visit Installing, Managing, And Removing User-Space Components. You can find more about Appstream life cycles here: Red Hat Enterprise Linux 8 Application Streams Life Cycle. About the author Pete Sagat is a Platform TAM for Private Sector customers. He has spent more than 14 years as an open source evangelist, and has expertise in Red Hat Enterprise Linux, Red Hat Satellite, Ansible, and Red Hat Insights. He spends his time debating with his very spirited 4 year old daughter on which is better, Sed or Awk. He’s currently losing.
https://www.redhat.com/it/blog/introduction-appstreams-and-modules-red-hat-enterprise-linux
CC-MAIN-2020-34
en
refinedweb
Provided by: libcanlock-dev_3.1.0-1_amd64 NAME libcanlock - Split Cancel-Key or Cancel-Lock SYNOPSIS #include <libcanlock-3/canlock.h> cl_hash_version cl_split(char *input, char **klstring); Possible return values (by version 3.0.0 of libcanlock): CL_INVALID CL_SHA1 CL_SHA224 CL_SHA256 CL_SHA384 CL_SHA512 DESCRIPTION The cl_split() function splits a <c-key> or <c-lock> element according to RFC8315. The hash algorithm for <scheme> is extracted and the corresponding ID is returned. If the hash algorithm is not found or not supported, CL_INVALID is returned. A pointer to the <c-key-string> or <c-lock-string> element respectively is written to klstring on success (points inside the string input and therefore no additional memory is allocated). NULL is written to klstring on error. RETURN VALUE Hash algorithm ID (CL_INVALID on error). AUTHORS Michael Baeuerle (Based in part on lock_strip_alpha() written by G. J. Andruk for Version 2) REPORTING BUGS Report bugs to <mailto:michael.baeuerle@gmx.net>. STANDARDS libcanlock tries to comply with the following standards: RFC5537, RFC6234, RFC8315 SEE ALSO cl_clear_secret(3), cl_get_key(3), cl_get_lock(3), cl_verify(3), canlock(1)
http://manpages.ubuntu.com/manpages/eoan/man3/cl_split.3.html
CC-MAIN-2020-34
en
refinedweb
US20060248504A1 - Systems and methods for software development - Google PatentsSystems and methods for software development Download PDF Info - Publication number - US20060248504A1US20060248504A1 US11375376 US37537606A US2006248504A1 US 20060248504 A1 US20060248504 A1 US 20060248504A1 US 11375376 US11375376 US 11375376 US 37537606 A US37537606 A US 37537606A US 2006248504 A1 US2006248504 A1 US 2006248504A1 - Authority - US - Grant status - Application - Patent type - - Prior art keywords - software - review - application - development -8/00—Arrangements for software engineering - G06F8/60—Software deployment - G06F8/65—Updates Abstract This invention relates to methods and a system for developing software applications using software components. In one embodiment, a method for developing an application includes facilitating online software programming contests, some of which result in the development of software components. A specification describing the software components to be used in the development of the application and the design of the software application is provided to developers and, in response to the communicated specification, assembled applications comprised of one or more of the software components are received. A review process for scoring each of the received applications is facilitated, and based on the review process, one of the received applications application is selected. Description - [0001]This application claims priority to and is a continuation in part of U.S. patent application Ser. Nos. 10/408,402, filed Apr. 7, 2003, and 11/035,783, filed Jan. 14, 2005, both of which claim priority to U.S. provisional patent application Ser. No. 60/370,937, filed Apr. 8, 2002 and U.S. provisional patent application Ser. No. 60/536,760, filed Jan. 15, 2004. - [0002]This invention relates to computer-based methods and systems for developing and distributing software and, more particularly, to methods and systems facilitating the distributed development of software. - [0003. - [0004. - [0005. - [0006. - [0007. - [0008]In one aspect, online software programming contests are facilitated such that completed software components result from some of the contests. A specification for the design of an application is sent to a plurality of developers, the specification describing the components to be used in the development of the application. In response, assembled applications comprised of one or more of the software components are received from a subset of the plurality of developers. A review process for review of the received applications is facilitated, and based at least in part on the results, one application is selected. - [0009. - [0010]Prior to communicating the specification, a portion of the specification can be received from an entity requesting the development of an application. In some cases, the specification can be communicated using an on-line application, using, for example, the Internet. The method can further include rewarding the software developer that submitted the selected application or program with, for example, monetary rewards and/or increased skill ratings. - [0011]The review process may be performed by a plurality of reviewers, who in some cases may have been previously rated in a computer programming competition, and may have achieved a rating above a predetermined minimum rating. Where a plurality of reviewers participate in the review, the review process can include aggregating scores from each of the plurality of reviewers into a summary rating, and the selection of one application can be based on the summary score. The design review process can include one or more activities such as reading documents, completing a review form, which in some cases my be an on-line form, and identifying changes to be incorporated into the application by the software developer who submitted the application. The changes can be designated as mandatory or optional at the discretion of the reviewer. In some embodiments, an appeal can be made contesting the score assigned to a software developer's application. A selected application can be distributed, and in some cases support for the distributed application may be provided. - [0012]In yet another aspect, the invention relates to systems for implementing the methods just described. For example, a system for evaluating the functionality of software programs includes a contest server for facilitating a plurality of online software programming contests, some of which result in one or more software components, a communications server for communicating a specification for the design of a software application to a plurality of developers, the specification describing a plurality of the software components to be used in the development of the application; and a scoring server in communication with the communication server for scoring the received candidate applications based at least in part on a review of the submitted applications. - [0013]Other aspects and advantages of the invention will become apparent from the following drawings, detailed description, and claims, all of which illustrate the principles of the invention, by way of example only. - [0014]In the drawings, like reference characters generally refer to the same parts throughout the different views. Also, the drawings are not necessarily to scale, emphasis instead generally being placed upon illustrating the principles of the invention. - [0015] FIG. 1is a block diagram of an embodiment of a distributed software development system having a server according to the invention. - [0016] FIG. 2is a block diagram of one embodiment of a software development domain according to an embodiment of the invention. - [0017] FIG. 2Ais a block diagram depicting the components of a software application according to one embodiment of the invention. - [0018] FIG. 3is a flow chart depicting steps performed in developing a software program according to an embodiment of the invention. - [0019] FIG. 3Ais a flow chart depicting an overview of the operation of an embodiment of the invention. - [0020] FIG. 4is a flow chart depicting an overview of the operation of an embodiment of the invention. - [0021] FIG. 4Ais a flow chart depicting an overview of the operation of an embodiment of the invention. - [0022] FIG. 5is a block diagram depicting a software testing environment created with multiple submissions of test cases according to an embodiment of the invention. - [0023] FIG. 6is a more detailed diagram of an embodiment of a testing environment such as that shown in FIG. 5. - [0024] FIG. 7is a block diagram of an embodiment of a server such as that of FIG. 1to facilitate the development and/or testing of software programs. - [0025]Referring to FIG. 1, in one embodiment, a distributed software development system 101 includes at least one server 104, and at least one client 108, 108′, 108″, generally 108. As shown, the distributed software development software development system. - [0026, building applications,. - [0027, the client 108 automatically makes requests with the web browser 116. Examples of commercially available web browser software 116 are INTERNET EXPLORER, offered by Microsoft Corporation, NETSCAPE NAVIGATOR, offered by AOL/Time Warner, or FIREFOX offered the Mozilla Foundation. - [0028]In some embodiments, the client 108 also includes client software 120. The client software 120 provides functionality to the client 108 that allows a software developer to participate, supervise, facilitate, or observe software development activities described above.. - [0029. - [0030. - [0031]In some embodiments, the server 104 also can include a contest server, such as described in U.S. Pat. Nos. 6,569,012 and 6,761,631, entitled “Systems and Methods for Coding Competitions” and “Apparatus and System for Facilitating Online Coding Competitions” respectively, both by Lydon et al, and incorporated by reference in their entirety herein. - [0032]In one embodiment, the server 104 and clients 108 enable the distributed software development and/or assembly. - [0033#. - [0034. - [0035]Referring to FIG. 2, a software development domain 204 can be used to provide an entity 208 with high-quality software. One or more developers can be identified and/or selected by various methods from a distributed community of programmers 212, and subsequently used to develop software components. For example, the developers can be employees of, consultants to, or members of an organization, enterprise, or a community fostering collaborative computer programming and distributed software development, and in some cases the developers may have no other formal or informal relationship to each other. In some embodiments, one or more of the developers can act as a product manager who is responsible for organizing and coordinating the efforts of other developers. The product manager may also specify items such as, without limitation, the cost of the project, the project schedule, and the project risks. In one embodiment, the product manager creates a project plan for the project, which may include, without limitation, an estimated project cost and schedule, and a requirements document describing, for example, the scope and risks of the project. The project manager may also be responsible for assembling a team of software developers to work on the project. For example, the project manager may receive requests to participate in the project from one or more developers, and/or may review developer profiles to identify those developers that the project manager wants to include on a team. The project manager may organize multiple teams.. - [0036]In one embodiment, the software development domain 204 includes a communication server 216, one or more structured development methodologies 220, software development software 224, and an a review board 228, and a component library 230. The communication server provides a conduit through which the external entity 208, the community of programmers 212, and the review board 228 can interact, for example, to provide documentation, submit software, elicit and offer feedback, review submitted software, and potentially rate submitted software, either in design or functional form. In some embodiments, the communication server is or operates as part of the server 104 as described above, whereas in other cases the communication server may be a separate server, which may be operated by and/or outsourced to an application service provider (ASP), internet service provider (ISP), or other third-party. - [0037. In instances where the deliverable is an application, the developer(s) assemble an application using various combinations of previously developed components and/or new components, based on the design specification for the application. By assuring the high-quality of the design documents and/or the components. - [0038]The software development software 224 provides an operational mechanism for implementing the methodology 220, and a software development environment in which the developers can do one or more of develop, test, submit, assemble. - [0039]The component library 230 may include components from the current competition and components resulting from previously completed competitions. In one embodiment, the component library 230 provides a catalog or directory of information about the components available to contestants participating in the current contest. For instance, a participant can view a directory of the component library 230 and information about each component in the component library 230 to determine which component or components are appropriate for inclusion into an application being developed as part of a contest. The component library 230 may also include test cases and documentation for each component, such as, but not limited to, the component's memory requirements, efficiency, score received in QA testing, revision number, number of times deployed in an application, and the names of handles of the programmers that designed and/or developed the component. - [0040] FIG. 2Aprovides a general illustration of the development of an application 240 using the methods and systems described herein. The requirements for the application 240 can generally be classified as environmental requirements 245 and functional requirements 250. Examples of environmental requirements include, as examples only, the intended operating system or platform (e.g., .Net, J2EE) on which the application will be deployed, memory requirements or limitations, communication protocols supported, availability targets, and others. Functional requirements 250 generally describe the operational and processing tasks that the application is expected to perform, such as data extraction and collection, computational requirements, transaction processes, user interface forms, and others. - [0041]In cases where components have previously been developed (and, for example, are stored in a component library 230) an application may be assembled by selecting the appropriate components that perform each task given the specific requirements, such as those described above. For example, a customer service application may include functional components such as a telephony integration component for interacting with a telephone system, a data query component for supplying data to the application based on one or more query parameters, a user-input component for generating an input screen for data capture, as well as others. By employing the structured development methodologies described herein, each of the various components are likely to have been developed using similar coding and architectural guidelines, and thus are likely to be compatible with each other with little or no modifications. Thus, the assembly of the application can be completed in significantly less time (and at a lower cost) than using traditional programming methods. - [0042] FIG. 3provides a summary illustration of one embodiment of a method for developing software, for example, using the software development domain 204 described above. The communication server 216 receives a specification (STEP 304) describing the desired functions of a software program, which is then distributed to the distributed community of programmers 212 (STEP 308). One or more of the programmers in the community 212 creates a design detailing the technical aspects of the program based on the functionality described in the specification, and once completed, the design(s) are received at the server 104 (STEP 312). The submitted design(s) are then subject to a design review process (STEP 316) whereby the design(s) are compared to the specification, and evaluated on their implementation of the specified functionality, use of existing components, and compliance with the structured development methodology 220. A design that is the “best” of the submissions may be selected in response to the evaluations (STEP 320), and if there is at least one submission of sufficient quality, the selected design may be made available to the distributed community of programmers 212 (STEP 324). Each of a number of programmers (or, in some cases, each of teams of programmers) submits a software program that they believe conforms to the design and the requirements of the structured development methodology 220. The software programs are received at the server 104 (STEP 328) and the programs are subjected to a software review process (STEP 332) to determine which submitted program(s) best conform to the distributed design and the structured development methodology 220. Once reviewed, one (or in some cases more than one, or none if none are of sufficient quality) program is identified as a “winning” submission (STEP 336). - [0043] FIG. 3Aprovides one example of an implementation of the methods described above as applied to the assembly of an application. The communication server 216 posts competition details and an application specification (STEP 340) describing the parameters of the competition (e.g., start and end dates, payments, etc.) and the requirements for the application (e.g., the components required to be included in the application, the environment in which the application is to operate, etc.). Either prior to, simultaneously, or after the posting of an application competition, a review board is created (STEP 344) and teams are formed (STEP 348). - [0044]The review board 304 includes one or more developers who answer questions during the assembly process and review the completed applications as they are submitted. The review board preferably has a small number of (e.g., less than ten) members, for example, three members, but can be any number. Generally, the review board is formed for only the development of one application, although the review boards can be allocated to multiple application competitions as warranted. In one embodiment, the review board is open to members of the general public. In another embodiment, the review board is limited to software developers who have participated in at least one design, coding or application competition and are optionally pre-qualified based on their competition performance. In another embodiment, only the excellent developers as established in one or more competitions are eligible for participation in the review board. - [0045]Preferably, one of the review board members is selected, by the entity, a contest facilitator, other members of the review board, or otherwise, to be a primary review board member. If the board is instituted for multiple application assembly contests, typically, a primary review board member is assigned for each application, but the primary review board member also can be the same for all applications reviewed by that board, depending on the availability and skills of the members. The primary review board member is responsible for coordination and management of the activities of the board. The review board may be comprised of one or more programmers that have achieved sufficient ratings or rankings based on their involvement in previous review boards, and/or as contestants in one or more application or component design or development contests. - [0046]In step 348, one or more teams are created to facilitate collaboration among the members of the community of programmers to develop applications. In some embodiments, team creation forums are used to solicit participation requests from developers and potential project managers and to facilitate the formation of teams. Teams may sign up as a whole (e.g., a group of developers can decide to participate as a group prior to the announcement of a contest and indicate that they wish to form a team), whereas other developers may sign up as individuals and act as “free agents” that are available to any team needing additional developers. - [0047]In some cases, limitations may be placed on the number of team members a team may have, and/or the number of teams on which a developer may participate. Alternatively or in addition, a team captain may “bid” on particular developers to entice the developer to join her team (based, for example, on a particular developer's high rating, successful completion of previous projects, and/or a prior experience with that particular developer). The bidding may include offering the developer greater responsibilities on the project team, a higher share of the prize and the like. - [0048]Once the teams are created and the competition starts, each team begins the process of application assembly (STEP 352). Each of the teams participating in the competition creates a complete application using the necessary components as detailed in the specification. In some embodiments, each team has a working environment, which, in some cases may include the components being used to assemble the application, various versions and/or sub-assemblies of the application, and one or more discussion forums to facilitate team communication. The forums can be monitored by the competition facilitator to allow for real-time questions, requests for additional components, and resolution of other issues. As the application (or portions thereof) nears completion, test cases are provided such that the team members can test various functional elements of the application. Once the team is satisfied that their application meets the posted specifications, the application is submitted to the server 104. The submitted application(s) are then subject to an application review process (STEP 356) whereby the applications(s) are compared to the specification, and evaluated on their implementation of the specified functionality, use of existing components, and compliance with the structured development methodology 220. For example, the application may be tested by deploying the application on a test server and running a suite of test cases against the application. An application that is the “best” of the submissions may be selected in response to the evaluations (STEP 360) and the application is identified as a “winning” submission. - [0049]In some embodiments, a scorecard is used to determine which application is the best of the submitted applications. The scorecard can be a document, spreadsheet, online form, database, or other electronic document which may or may not be provided to the team. In some cases, the team can initiate an appeal contesting the score assigned to the team's application. - [0050]Once a final determination of the winning application has been made, the application is approved (either by the entity, a facilitator acting as a project manager, or in some cases both) and the application is deployed (STEP 364). - [0051]In some embodiments, the team continues to support the application during the deployment phase. For example, the entity sponsoring the application assembly may include contingencies such that only a portion of the prize is paid to the winning team upon deployment, and the balance of the prize is paid after some period (e.g., thirty days) during which the team is available to modify the application if necessary (STEP 368). In some cases, changes may be deemed to be enhancements (i.e., desired functionality that was not part of the original specification) and additional fluids may be provided for adding such features. In other cases, defects may be identified that cause the application to fail, incorrectly perform some process, or otherwise not conform to the specification. During the deployment phase, the defects may be assigned to the team captain, for example, who either fixes the defect or assigns the defect to a particular team member. In some embodiments, deadlines are assigned to fixing defects, and some of the remaining prize money may be deducted from the payments based, for example, on whether a defect can be fixed and if the fix is delivered according to its stated deadline. - [0052]If, as may happen, a defect is determined to be part of a component from which the application was assembled (e.g., a component does not work as described) the component may submitted to a component support process, as described in U.S. patent application Ser. No. 11/311,911 by Hughes, which is incorporated by reference in its entirety herein. - [0053] FIG. 4provides one possible implementation of the general method described above. In some such embodiments, the development process is monitored and managed by a facilitator 400. The facilitator 400 can be any individual, group, or entity capable of performing the functions described here. In some cases, the facilitator 400 can be selected from the distributed community of developers 208 based on, for example, achieving exemplary scores on previously submitted software designs and/or programs, or achieving a high ranking in a software programming contest. In other cases, the facilitator 400 can be appointed or supplied by the entity (e.g., entity 208) requesting the development of the software program, and thus oversee the design and development process for further assurance that the end product will comport with the specifications. - [0054 FIG. 2) may be asked to develop the specification, and in some cases multiple specifications may be submitted, with one of the submissions selected as the final specification to be used for guiding the design and development efforts. - [0055. - [0056]In some cases, the specification is assigned a difficulty level, or some similar indication of how difficult the facilitator, entity, or other evaluator of the specification, believes it will be to produce a comprehensive design design of a in two days, the difficulty level optionally may be increased due to the tight time constraints. In some embodiments, an award to the designer (e.g., money, skill rating, etc.) that submits the selected design may be produced or adjusted based in part on the difficulty level associated with the specification. - [0057. - [0058]Once complete, the specification is distributed via the communications server 212 to one or more developers 404, 404′, 404″ (generally, 404), who may be members, for example, of a distributed community of programmers such as the community 212 shown in FIG. 2. In one non-limiting example, the developers 404 are unrelated to each other. For example, the developers may have no common employer, may be geographically dispersed throughout the world, and in some cases have not previously interacted with each other. However, as members of the community 212, the developers 404 may have participated in one or more competitions, and/or have had previously submitted software artifacts subject to reviews. This approach allows an entity 208 to gain access to a large pool of qualified software developers. - [005960 some embodiments, the developers 404 may form teams and participate in the design and/or development contest as a group. - [0061. In instances where team-based participation is permitted, there may be separate “private” forums to which only team members have access, as well as a competition-wide forum that is open to all participants. - [0062. - [00 has a small number of (e.g., less than ten) members, for example, three members, but can be any number. Generally, the review board is formed for only one or a small number of related projects, for example three projects. Review boards, in some embodiments, could be formed for an extended time, but changes in staffing also can help maintain quality. - [0064. - [0065]In one embodiment, submissions for software designs are judged by the design review board. In some embodiments, the primary review board member screens the design submissions before they are reviewed by the other members of the design review board, to allow the rest of the review board to judge only the best of the submissions. In some embodiments, the screening process includes scoring the submissions based on the degree to which they meet formal requirements outlined in the specification (e.g., format and elements submitted). In some embodiments, scores are documented using a scorecard, which can be a document, spreadsheet, online form, database, or other electronic document. The design review board may also, in some cases, verify the anonymity of the developers 404 such that their identities cannot be discerned from their submissions. - [0066. - [0067 instances where the desired program is an application, the design requirements may also include specific components to be used in the design of the application, some of which may be identified as mandatory, whereas others may be deemed optional. - [0068. - [0069]In some embodiments, the scores and reviews from the primary review board member and the other members of the design review board are aggregated into a final review and score. In some embodiments, the aggregation can comprise compiling information contained in one or more documents. Such aggregation can be performed by the primary review board member, the other members of the design review board, or in one exemplary embodiment, the aggregation is performed using a computer-based system which resides on the server 104 ( FIG. 1). In some embodiments, the facilitator 400 or the primary review board member resolves discrepancies or disagreements among the members of the design review board. - [0070. There can also be prizes, payments, and/or recognition for the other submitted designs. For example, the designers that submit the second and third best designs may also receive payment, which in some cases may be less than that of the winning designer. Payments may also be made for creative use of technology, submitting a unique test case, or other such submissions. In some embodiments, the software developers can contest the score assigned to their design, program, or other submissions. - [0071. - [0072. - [0073. - [0074. - [00.). - [0076]Referring still to FIG. 4, the selected and approved design is posted or provided to members of the distributed community of programmers 212. As above, with the specification, the design may be sent to the entire community or only selected members of the community. In versions where the design is sent to selected members, the selection process can be based on any or a combination of suitable criteria, for example, without limitation, past performances in programming competitions, the quality of previously submitted software programs, involvement in the development of the design, or by specific request of the facilitator 400, entity 208, the designer that submitted the winning design, other designers, or other members of the community 212. In some embodiments, the communication of the design can be accompanied by an indication of a prize, payment, or other recognition that is available to the developer or team of developers that submits a selected software program, and/or runners up. In some cases, the amount and/or type of payment may change over time, or as the number of participants increases or decreases. - [0077. - [0078. - [0079. - [0080. - [0081; and (5) the submitted code makes use of previously developed components. - [0082. - [0083. - [0084. - [0085. - [0086. - [0087. - [0088 ( FIG. 1). In some embodiments, the facilitator 400 or the primary review board member resolves discrepancies or disagreements among the members of the code review board. - [0089. - [0090. - [0091. - [0092. - [0093]Referring to FIG. 4A, a similar technique may be employed for the development of an application. The facilitator 400 posts (STEP 442) the application specification for review by members of the distributed community. In one embodiment, for example, the facilitator is acting as a product manager and places the application specification on a web server for access by the members of the community. The application specification is then reviewed by members of the community as potential review board members (STEPS 444) and as potential team members (STEPS 446, 446′ and 446″). In some cases, the application specification is only available to select members of the community, based, for example, on a prequalification phase (STEPS 448) in which the members achieve a particular rating or ranking within the community of developers based on previous competitions, for example. - [0094]Developers wishing to be selected as members of the review board apply (STEP 452) to the facilitator 400. In one embodiment, the review board members are selected by the facilitator 400 as a result of their expertise, their ratings, and their expressed willingness to participate in this capacity. In one embodiment, the review board members are selected after the applications are submitted to allow all developers an opportunity to participate as a team member. In one embodiment, the review board members are compensated for their participation in the review board. This compensation can be, for example, in the form of recognition, a flat or hourly fee, or a percentage of revenue generated by the application, a percentage of the prize for the winning application, or some combination. - [0095]Once the facilitator 400 selects the review board, the board members review the specification to better understand the development requirements for that particular application. The review board members can ask for clarification or revision of the specifications, and the facilitator 400 can respond. In this way, the review board can be sure to understand the requirements for the application that they will evaluate. - [0096]In some embodiments, prior to being granted access to the application specification, the software developers (also called programmers) 440, 440′ and 440″, generally 440, are also pre-qualified (STEPS 450, 450′ and 450″), which may be similar to that described above for the review board members (e.g., ratings, etc.) or otherwise. The facilitator 400, or a member of the review board, then grants those developers meeting the pre-qualification requirements access to the application specification. In some embodiments, access can be granted by a developer 440 entering a password, by a developer 440 navigating to a particular web page which checks the developer's qualifications, by the facilitator 400 emailing the specification to the developers 400, or other similar means. Once granted access to the specification, the developers 440 can then review the specification (STEPS 446, 446′ and 446″) and apply to a team (STEPS 456 and 456′). In some embodiments, one team member (in this case team member 440) is identified as a team captain, who may also be responsible for selected the team members (STEP 460). The selection of a team captain may be based on any criteria. For example, the team captain may be determined strictly on which developer volunteers first. In other cases, the team captain may be select my members of the team and/or members of the review board. In some cases, the team member having the highest rating may be automatically identified as the team captain. - [0097]In cases where a team is “over subscribed” (i.e., more developers want to participate on a particular team that there are spaces), the developers can submit additional information in an attempt to secure a space on the team. For example, the developer may direct the team captain's attention to a previous contest or project on which the developer worked and/or one or more components that the developer built. In some embodiments, developers may “bid” for spaces on the team by offering to participate for a lower percentage of the prize money. Likewise, in various embodiments a team captain may “bid” for members by varying the percentage of prize offered. - [0098]Each team member participates in the application assembly process (STEPS 464, 464′ and 464″). As described above, the application assembly process may include the identification of various pre-built software components that provide the functionality described in the application specification. In some embodiments, the components are pre-specified in the application specification, whereas in other cases the team determines which components to use. For example, an application needing to communicate information via web services over the internet may require a web server component, an XML parser, a database connectivity component, and a user interface component. Once the proper components are identified, the team members determine the proper arrangement of the components to accomplish the stated goals of the application, make any necessary modifications to the components, data definitions and/or environmental settings as well as performance tuning. - [0099]In some embodiments, the facilitator obtains a suite of test cases (STEP 468) to be applied to the application (or portions thereof) as it nears completion. The test cases may be previously submitted test cases that are specific to particular components from which the application is being assembled, or new test cases developed specifically for the application. In some cases, the test cases are developed using a similar “contest” approach.. In some embodiments, the development of test cases is facilitated using the same techniques, systems, and methods described herein to design and develop software programs and applications. For example, a contest may be advertised to the community of developers that includes an application specification and the processing requirements associated with the application. Developers may then submit test cases for review by a review board. If the review board determines that the test case is useful (e.g., it tests for one or more conditions and no test case has been previously submitted that tests for that specific condition) the test case may be included in a test case suite for that application. The developer may then receive payments based on the extent to which the test case is used to test components, applications, or other software developed using the methods described herein. - [0100]In some embodiments, the review board 228 delivers the test cases (STEP 472) to the team and the applications are subjected to a team review process using the test cases in which the functionality of the application is tested (STEPS 474 and 474′). In some cases, not every team member participates in the testing process. The team review process allows team members to test, evaluate and review the pieces of the application being assembled by other team members. For example, one team member may be responsible for assembling all the components related to network connectivity and communications, whereas another team member may be responsible for assembling the components related to data exchange. As described above, the team members 440, 440′ and 440″ typically have minimal or no prior relationship to each other. In one exemplary embodiment, the team members are assigned (or select) on-line nicknames to be used instead of the their actual identities. Once the team has completed the application assembly and testing process (or, in some cases, the time limit to do so has been reached), the team (or in some cases the team captain) delivers the application to the review board (STEP 478) for review. Subjecting the applications to this independent and anonymous peer review process by other team members has a positive effect on the quality of the assembled application. - [0101]The review board 228 reviews the applications received from each team participating in the contest. In one embodiment, this review includes a first screening review by a primary reviewer, and then further review by other members of the review board 228. The first screening review determines, for example, that the required components have been used. The initial screening review can also, for example, verify that unit test cases exist for all public methods in the design, and each unit test is properly identified by a testing program. In one embodiment, the initial screening process reduces the number of entries to a manageable number for the review board 228 to review, such as five applications. - [0102]The review board evaluates the application against the application specification. In one embodiment, for example, with regard to the application, the reviewers evaluate the extent to which: (1) the application addresses the functionality as detailed in the specification; (2) the application correctly uses all required technologies (e.g. language, required components, etc.) and packages; and (3) the application has correctly implemented (and not modified) the public application programming interface (API) as defined in the design, with no additional public classes, methods, or variables. - [0103]The reviewer can even further evaluate the application by conducting accuracy, failure, and stress tests. Accuracy tests test the accuracy of the results output when provided valid input. Accuracy tests can also validate configuration data. Failure tests test for correct failure behavior when the application is provided with invalid input, such as bad data and incorrect usage. Stress tests test the application capacity for high-volume operation, but testing such characteristics as performance as throughput. The tests that fail are included in the evaluation of the application, for example as a score reduction. Each reviewer can then assign an overall score to the component based on this evaluation (STEP 480). - [0104]For example, the review board members can use the server 104 of FIG. 1to record and communicate their evaluations of the applications to the other board members. In one embodiment, the board member uses an on-line evaluation form to evaluate each application. The evaluations of the board members can then be identified, and the applications automatically ranked by board member scores received. Based on the evaluation of the submission(s) the review board 228 selects an application as the winning submission (STEP 484). - [0105]Once identified, the winning application is approved (either by the entity that requested development of the application, a facilitator acting as a project manager, or in some cases both) and the application may be deployed (STEP 488). The environment into which the application is deployed may be, for example, a testing environment, a staging environment, or a live environment. In some embodiments, the team continues to support the application during the deployment phase as described above with reference to FIG. 3A. The winning team is then paid (STEP 492) according to the payment terms outlined at the beginning of the contest. - [0106]As mentioned above, and in reference to FIG. 5, the developers 404 may, in some. - [0107]In a demonstrative embodiment, developers 404, 404′ and 404″ each submit software programs 502, 502′ and 502″ respectively to the development domain 204 in response to the communicated software design and/or specification referred to above. In addition to submitting the programs, the developers 404 also submit one or more test cases 506, 506′, and 506″. For example, when DEVELOPER 1 404 submits PROGRAM 1 502, she also submits TEST CASE 1A and TEST CASE 1B, collectively 506. DEVELOPER 2 404′ and DEVELOPER 3 404″ do the same, such that after all three developers 404 have completed their submission, the development domain 204 includes a submission pool 508 comprising three submitted programs and six test cases. Even though it is likely that DEVELOPER 1 404 ran TEST CASE 1A and 1B 506 that she submitted against her PROGRAM 502, it is also possible that the test cases 506′ and 506″ submitted by DEVELOPER 2 404′ and DEVELOPER 3 404″ respectively address cases or data not contemplated by DEVELOPER 1 404. Therefore, it can be advantageous to run each test case submitted by all of the developers against each of the submitted programs in an attempt to identify all potential faults of each submitted program. In some versions, a subset of the submitted test cases may be eliminated from the submission pool 508, or not used, for example, because they are duplicative, do not test necessary features, or are incorrect. If so, a subset of the test cases in the submission pool 508 can be used to test the submitted programs. Because the programs are tested more rigorously (i.e., using a suite of test cases submitted by numerous developers) the quality of the resulting programs is likely to be greater than that of programs tested only by those that developed the selected program. - [0108]Referring to FIG. 6, the test cases in the submission pool 508 are applied to the submitted programs 502, 502′, 502″. In some cases, all of the test cases in the pool 508 are applied to every submitted program, whereas in some versions only a subset of the submitted test cases are used. In some embodiments, certain programs may be eliminated from contention by running a first test case against it, such that subsequent test cases are not necessary. In some versions, each application of test case to a program results in a score 604. The scores 604 for each application of test case to submitted program can then be tabulated and aggregated into a combined, or overall score for that particular program. Some test cases have a higher or lower weight than others such that the scores for a particular test case may be more indicative of the overall quality of the program, or the results are more meaningful. In other cases, the scores may be binary—i.e., a passed test receives a score of “1” and a failed test receives a score of “0.” In some embodiments the tabulation and aggregation can be automated on the server 104. - [0109. - [0110. - [0111. - [0112]A competition factor also can be calculated from the number of developers, each developer's rating prior to the submission of the design or program, the average rating of the developers prior the submissions, and the volatility of each developer's rating prior to submission. - [0113. - [0114 so is applicable to rating the development of software or hardware designs, data models, applications, components, and other work products created as a result of using the methodology described above. - [0115. - [0116. - [0117. - [0118. - [0119]Referring to FIG. 7, the server 104 can include a number of modules and subsystems to facilitate the communication and development of software specifications, designs and programs. The server 104 includes a communication server 704. One example of a communication server 704 is a web server that facilitates HTTP/HTTPS and other similar network communications over the network 112, as described above. The communication server 704 includes tools that facilitate communication among the distributed community of programmers 212, the external entity 208, the facilitator 400, and the members of the review board(s) (commonly referred to as “users”). Examples of the communication tools include, but are not limited to, a module enabling the real-time communication among the developers 404 (e.g., chat), news groups, on-line meetings, and document collaboration tools. The facilitator 400 and/or the external entity 208 can also use the communication server 704 to post design or specifications for distribution to the distributed community of programmers 212. - [0120. - [0121. - [0122. - [0123. - [0124. - [0125. - [0126. - [0127. - [0128. - [0129). - [0130, or landscape design. Other non-limiting examples for which the techniques could be used include the development of all kinds of written documents and content such as documentation and articles for papers or periodicals (whether on-line or on paper), research papers, scripts, multimedia content, legal documents, and more. Claims (20) - 1. A computerized method for developing a software application, the method comprising:facilitating a plurality of online software programming contests, a subset of the contests resulting in one or more software components;communicating a specification for the design of a software application to a plurality of developers, the specification describing a plurality of the software components to be used in the development of the application;receiving, from each of a subset of the plurality of software developers, in response to the communicated specification, an assembled application comprised of one or more of the software components;facilitating a review process for scoring each of the received applications; andselecting one application from the received applications based at least in part on its score in the review process. - 2. The method of claim 1wherein each of the plurality of software developers were rated in one or more coding competitions. - 3. The method of claim 2wherein the plurality of developers is selected, at least in part, based on having a minimum rating received in the one or more coding competitions. - 4. The method of claim 1further comprising associating a difficulty level with the software application. - 5. The method of claim 4wherein the developers are rated at least in part based on the difficulty level associated with the application. - 6. The method of claim 1wherein the plurality of software developers are geographically distributed. - 7. The method of claim 1wherein the assembled application comprises one or more of a requirements document, an activity diagram, a case document, test cases, a prototype, and a UML document. - 8. The method of claim 1wherein the specification is communicated using an on-line application. - 9. The method of claim 1further including rewarding the software developer that submitted the selected application. - 10. The method of claim 9wherein the reward is monetary. - 11. The method of claim 9wherein the reward is an increased skill rating. - 12. The method of claim 1further comprising, prior to communicating the specification, receiving at least a portion of the specification from an entity requesting the development of an application. - 13. The method of claim 1wherein the review process is performed by a plurality of reviewers. - 14. The method of claim 13wherein each of the plurality of reviewers were rated in a computer programming competition. - 15. The method of claim 14wherein the ratings of each of the plurality of reviewers are above a predetermined minimum rating. - 16. The method of claim 13wherein the review process comprises aggregating scores from each of the plurality of reviewers into a summary score and the selection of one application is based on the summary score. - 17. The method of claim 1wherein the review comprises one or more of reading documents, completing a review form, and identifying changes to be incorporated into the application by the software developer who submitted the application. - 18. The method of claim 17wherein the identified changes are designated mandatory or optional at the reviewers discretion. - 31. The method of claim 1wherein the received application comprises one or more of source code, object code, and compiled code. - 20. A computerized system for developing software applications, the system comprising:a contest server for facilitating a plurality of online software programming contests, a subset of the contests resulting in one or more software components;a communications server for communicating a specification for the design of a software application to a plurality of developers, the specification describing a plurality of the software components to be used in the development of the application; anda scoring server in communication with the communications server for scoring the received candidate applications based at least in part on a review of the submitted applications.
https://patents.google.com/patent/US20060248504A1/en
CC-MAIN-2018-22
en
refinedweb
Independent The Taft August 5 - 11, 2011 TAFT INDEPENDENT FREEWeekly Publisher@Taftindependent.com August 5 - 11, 2011 • Volume 6 Issue 6 “Serving the West Kern County Communities of Taft, South Taft, Ford City, Maricopa, Fellows, McKittrick, Derby Acres, Dustin Acres, and the Cuyama Valley” Meet Your Local Public Servant- Debra Elliott City of Taft Passes Budget for 2011-2012 G St.’s Second Hand Ready For Picking Senator Jean Fuller Visits The Westside By Jane McCabe Brand Clothing Shoes • Jewelry A Hint of Class Name Accessories & More Step Back Into School In Style! New Arrivals of Backpacks & Shoes Inside The Historic Fort 915 N. 10th Street Suite 34 (661)623-1783 The Best Beer Selection on Tap in Taft! Black Gold Open Monday’s for Lunch and Dinner Cafe and Deli 508 Center Street • 765-6550 Try Our Meatball Sandwich $6.25 Our homemade meatballs and marinara sauce with parmesan cheese and garlic butter all baked to perfection on a soft toasted French roll 2 Shop Taft Get Ready For Back To School with Next Step! ITEM OF THE WEEK Pre - Workout Mix By N’SANE Come in for our Back To School Membership Specials & Savings! $25/mo Open 24 Hours! 506 Center Street (661) 205-5579 Anderson Business Services Bookkeeping • Income Tax • Notary WE COME TO YOU! Schedule of Services Acknowledgments & Jurats $10 per signature Mortgage Documents $150 per set Mobile Notary Service $1 per mile Sandy Anderson Notary Public Certified Signing Agent TAFT INDEPENDENT Passion For Nails Nail Services: Sea Shell • Glitter Acrylic Metalic Flakes • Rock Star (we also treat ingrown nails) 1014 6th Street • Taft In the Save A Lot Shopping Center Monday to Friday (661)745-4913 Personal Style Back - To - School Savings! Newly expanded Juniors & Contempory Fashions Personal Style Greg Anderson Call For Appointment 765-7665 Sandy 577-6790 • Greg 577-6032 Miller’s Beauty Supply SAN JOAQUIN Automotive Center Get Your Car Ready For Summer! 763-5445 EVERYDAY OIL CHANGES GAS ENGINE $35.99 OR LESS Next to the Fox Theater and Black Gold Cafe & Deli Introducing Back To School Daze... August 1st-31st Storewide Discounts 10% off professional shampoo and hair color lines featuring Paul Mitchell, RedKen, Matrix, Joico, L’oreal, Wella and Itely 20% - 50% off jewelry, hair accessories, feather earrings, feather extensions, handbags, nail polish and picture frames And much much more! 15% off for licensed stylists Hours: Tuesday 8am-8pm • Wednesday Closed Thursday 8am-5pm • Friday 8am-8pm Saturday 9am-3pm Come on out and see us every Thursday at the Farmers Market Shop and Save Downtown Taft! (up tp 7 qts oil, filter, tax, haz waste fee) DIESEL ENGINE $71.99 OR LESS (up to 3.75 gal oil, filter, tax, haz waste fee) J e w e l r y Small town, family owned, low overhead. We can save youFine money on •quality Jewelry Candlesjewelry! • Gifts Watchwill Batteries Acme Jewelry be closed on Tuesdays when Ray is in L.A. Please callSTREET first• 661.763.5451 763-5451 426 CENTER Thank You Store Hours: Tuesday to Friday 9:30am - 5:00pm Saturday 10:00am - 2:00pm Closed Sunday and Monday 426 Center Street (661)763-5451 J & D Recycling 1277 Kern Street Sacred Thread, Broomstick Skirts, Jackets, Blouses AND MUCH MORE 421 & 423 Center (661)763-3527 510 Center Street Taft, CA F i n e New Arrivals! Women • Contemporary Junior • Toddler • Infant Men • And More! Mobile Notary Public Certified Signing Agent acme jewelry co. Fine Jewelry • Gifts 14K• Gold • Sterling Silver 14K Gold Sterling Silver Black Hills Gold • Jewelry Repair • Watch Batteries Black Hills Gold• •And Jewelry Candies • Candles More! Repair Men & Seniors & Diabetics Welcome 10am-7pm and Saturday 9am-6pm August 5 - 11, 2011 SUMMER SPECIAL! $199.99 Cooling System Flush (includes up to 2 gal coolant, flush kit, conditioner) A/C Service We Can Haul Away Most Large Items Call Us Today • (661)765-6752 Recycling is OUR Business Ten Percent Firearms (includes up to 3oz of Freon, 2oz dye) Overall Vehicle Inspection (visual inspection of all external components) (tax, haz waste fee included) Billy Messenger Voted Best Mechanic for 2009 and 2010 531 Center Street • 763-1123 Precision Bodyworks & Towing We take the DENTS out of ACCIDENTS Phone (661)763-4420 FAX (661)763-1389 Cell (661)577-6785 317 Main Street • Taft 1277 Kern Street (661)765-6899 Ben’s Books The Largest, Cheapest and Only Used Book Store in Taft Fiction • Non Fiction • Paperback Hard Covers • SciFi • Biography • Religion Childrens • Cookbooks and More! Come stop by, have some coffee and leisurly browse our selection of books! 810 Center Street • (661)805-9813 August 5 - 11, 2011 Inside Community Events.........3 News Briefs.......................3 TAFT INDEPENDENT Community Events News Briefs Taft California “Home of the Taft Oilworkers Monument” “Gateway to the Carrizo Plain National Monument” Westside Watcher............4 VFW Bingo Every Tuesday Night at 5:30pm West Side Recreation Report..........5 The VFW will hold Bingo Night every Tuesday at 6:30pm at 600 Hazelton Street in Maricopa. Doors open at 5:30pm, buy in is $5 a pack, food will be served. Come on out, bring a friend and support our vets! Westside News.................6 End of Times Gallery Summer Art Classes Westside News.................7 The End of Times Gallery, 428 Center Street, is offering the following summer classes: DRAWING - Mondays, 1-3 p.m. CHILDREN’S ART LESSONS - Wednesdays, 1-3 p.m. WATERCOLOR - Thursdays, 1-3 p.m. ACRYLIC PAINTING - Thursdays, 6-8 p.m. All classes are $10 per session, $40 per month. For more information please call 765.4790. The End of Times Gallery is taking artists’ work on CONSIGNMENT for $5 per item. The gallery earns a 30% commission on work sold. If you would like to have your work considered for representation, please call for an appointment - 765.4790. Community Voices..........8 Obituary............................9 Classified Ads.................10 Westside News...............11 Negocios Hispanos........11 The Taft Independent 508 Center Street P.O. Box 268 Taft, California 93268 (661) 765-6550 Fax (661) 765-6556 Email: Publisher@taftindependent.com Website: Locally and Independently owned since 2006. The Independent is available free of charge, limited to one copy per reader. Additional copies are $1 each. The contents of the Taft Independent are copyrighted by the Taft Independent, and may not reproduced without specific written permission from the publisher. We welcome contributions and suggestions. Our purpose is to present news and issues of importance to our readers. SUBSCRIPTIONS. Subscription home or businessdelivery of the Taft Independent is available for $6.50 per month or $78.00 per year. To subscribe to please call 765-6550. LETTERS-TO-THE-EDITOR. Send us your letter to Taft Independent at the above address. Limit it to 300 words and include your name, address, and phone number. Fax: (661) 765-6556. Email your letter to: Editor@taftindependent.com. ADVERTISING. Display Ads: Rates and special discounts are available. Contact our advertising representative at (661) 765-6550, or email to Advertising@taftindependent.com. Classifieds: Call 765-6550 or fax us at (661) 765-6556. Phone order are taken. Visa and Master Card accepted. Publisher and Editor-in-Chief Michael J. Long taftindypublisher@bak.rr.com Managing Editor Advertising Jessica Skidgel Layout & Design Jessica Skidgel Contributing Writers Jessica Miller, Kent Miller, Wesley Morris, Nicole Frost Columnists Randy Miller, Wendy Soto, Mimi Collins, Jane McCabe, Dr. Harold Pease Member California Newspaper Publishers Association Printed in California Pancake/ Waffle Breakfast Saturday, August 6th There will be a pancake/waffle breakfast this Saturday, August 6th at the Veterans Hall in Taft, located on the corner of Cedar and Taylor Street in Ford City from 7am to 11am. Topping of the month is fresh peaches! The breakfast will be hosted by the Maricopa Chamber of Commerce, 25% of the proceeds raised will benefit the Taft Union High School All Star Band that will be traveling to Washington D.C. in December. Back-2-School Connection School Supply Drive Donations Monday, August 8th Donations are needed for the “Back-2-School Connection” Backpacks, school supplies and new or gently used clothing. Donations will be accepted until Monday, August 8th at the following locations: West Side Community Resource Center, 915 N. 10th Street, Suite #20. West Side Urgent Care, 100 E. North Street. First Assembly of God, 314 Asher Ave. West Side Furniture, 617 Center Street. For more information call 765-7281 or 769-8061. Help our children have a successful year! Perseid Meteor Shower Viewing Friday, August 12th Come join us at A Street Park to view the Perseid Meteor Shower on Friday, August 12th at 9:00 pm. This will be a night of close to peak activity, with nearly 100 meteors per hour expected. Bring a blanket and/or chairs and be prepared to stay awake, as the best viewing times are after 10:00 p.m. This event is FREE to all and s’mores will be provided for the kids. Brought to you by Imagination Laboratories, Inc. and West side Recreation & Park District. Roll In The Good Times ARC Bunco Saturday, August 13th Roll in the good times at Taft’s ARC Annual Bunco on Saturday, August 13th at 5pm at the ARC, located at 204 Van Buren Street. Cost is $20 per person and includes dinner. Dinner is served at 5pm with Bunco to follow. Pre-sell tickets only, deadline is August 10th. For tickets call 763-1532 ext 1. There will be cash prizes and raffle drawings. Bring your friends! Fill the Bus Saturday, August 13th Help support our schools by helping to provide needed supplies for our local children to go to school this season. Come fill the Bus on Saturday, August 13th at King’s Nursery 8am-12pm. Sponsored by the Taft Midway Sunset Lions Club. Please bring pencils, sharpeners, copy and lined paper, punches, construction paper, backpacks, glue sticks, colored tissue paper, air dry clay, scissors, tape, index cards, colored pencils, composition books, dry erase markers, crayons, pencil pouches, post its, headphones, Kleenex, hand sanitizer, socks, sweat pants and jacket. All donations will go to support our local schools by offering needed supplies to classes, teachers, and students. Chamber of Commerce Mixer At Taft’s Community Garden Tuesday, August 16th The Taft District Chamber of Commerce is bringing back community mixers. Hosted by a local business, each mixer is geared towards bringing the community together to learn about the business. Events include a business card drawing, 50/50 raffle, snacks, and fun. The next mixer will be held at the Taft Community Garden on Tuesday, August 16th from 5pm to 7pm. Learn about how to rent a garden bed and grow your own fruits and vegetables. City of Taft Passes Budget for 2011-2012 By Kent Miller The City of Taft has a budget and it’s lower than the income/spending plan for the previous fiscal year. Tuesday evening the council voted 4-to-0, with Councilmember Dave Noerr absent, to adopt both the final budget for the 2010-11 fiscal year and the proposed budget for the 2011-12 fiscal year ( July 1 through June 30). The 2011-12 proposed budget is about $121,000 less than the 2010-11 final budget of nearly $6.6 million. But the new budget includes a couple of major projects, could be expanded if funding is received for a pair of hoped-for projects and faces an as-yet unresolved issue of the Taft prison. “It’s a good document ... A tight document,” said Councilmember Paul Linder. Linder and Noerr sit on the city’s Finance Committee, which hammered the new budget into shape. “The city is healthy,” Linder said, though “not as healthy as we would like it to be.” Mayor Randy Miller noted that the budget was 32 days late, “but it is here and approved. “It’s one of the earliest budgets that we have approved.” Meeting as the Taft Community Development Agency during an adjournment of the council meeting, the council/agency members approved the final and proposed budgets. They also adopted the planning and administrative expenditures for Low and Moderate Income Housing Fund for fiscal years 2010-11 and 2011-12. Projects and pain The two major projects planned for 2011-12 are the rehabilitations of 6th Street and of 10th Street. The projects’ total cost is put at $720,000. Two hoped-for projects that would only become reality with outside funding are the continuation of Rails to Trails between Hillard and A streets, with Kern County money; and the construction of a $1 million park-and-ride facility in the downtown area, if approved for funding by Kern Council of Governments. Meanwhile, the Taft California Correctional Institute facility could be a major Continued on Page 7 Taft Farmers Market Thursdays 5pm - 8pm Rain or Shine 5th Street Plaza Over 15 vendors and we are still Growing! Fruits, Vegetables, Fish, Plants, Herbs, Arts, Crafts and more! For more information please contact the Taft Chamber of Commerce at 765-2165 Kern County Animal Control Low-Cost Rabies Vaccination Clinic Saturday, August 27th Come on out Saturday, August 27th to the Kern County Animal Control low cost rabies vaccination clinic and licensing at Ford City Park located on the corner of Cedar and Taylor Street from 8am-12pm noon. Taft Bike Fest Labor Day Weekend, Friday-Sunday, September 2nd-4th 2 Wheel Production presents The First Annual Taft Bike Fest which will take place this Labor Day Weekend, Friday (12pm-9pm), Saturday (9am-9pm) and Sunday (9am-2pm), September 2nd-4th at the Rails to Trails located at 6th St. and Main St. This three day event will feature concerts, beer garden, multiple vendors, motorcycle bike show and contest, tattoo contest, and motorcycle stunt show. There will be dry tent camping and RV/Trailer parking on site. Vendor space is available for food, crafters, commercial and business vendors. To apply for vendor space stop by the Taft Chamber of Commerce for event form and more information or contact Shannon with the Chamber at shannon.taftchamber@gmail.com or 765-2165. For more information on the Taft Bike Fest email them at taftbikefest@yahoo.com or check them out on Facebook. 4 TAFT INDEPENDENT Letters to the Editor Asian Experience Asian Food and Pizza Lunch and Dinner Tuesday - Friday 11 am - 2 pm 4 pm - 9 pm Saturday 4 pm - 9 pm 215 Center Street, Taft 763- 1815 Sagebrush Annie’s Restaurant and Wine Tasting Paik’s Ranch House Tasting Sat. & Sun. 11:30-5 pm Where Everybody Meets Dinner by Reservation Breakfast, Lunch and Dinner 4211 Highway 33, Ventucopa Open 7 Days (661) 766-2319 Mon. Tues. Thur. 6 am-8:30 pm Sun. Wed. Fri. & Sat. 6 am - 9 pm Taft Crude Coffee House 765-6915 200 Kern St. Taft Coffee House and Deli Monday – Friday 7 am to 4pm. Sagebrush Annie’s Saturday 7 am to 2 pm Restaurant and Wine Tasting Sundays 7:30 am to 10 am Tasting Sat. & Sun. 11:30-5 pm 1010 6th Street, Taft Dinner by Reservation 763-5156 4211 Highway 33, Ventucopa (661) 766-2319 Black Gold Cafe & Deli Pastas - Sandwiches Espresso - Beer - Wine Open Monday to Saturday Your Busines Listed Lunch served 9am-1pm HERE Dinner served 5pm - 8pm Call 765-6550 Wine Tasting on First Thursdays 508 Center Street 765-6550 Westside Entertainment Get Your Events in the Westside Entertainment Guide. Call 765-6550 or fax 765-6556 Your Restaurant Sagebrush Annie’s Listed Here! Wine Tasting Food and Pizza Asian ExperienceAsian Lunch and Dinner Call Dinner by Reservation Tuesday - Friday 11 a.m. - 2 p.m. 4 p.m. - 9 p.m. 765-6550! Award Winning Saturday 4 p.m.Wines - 9 p.m. Live Music Saturday Nights Starting as low 766-2319 as $12 per 4211 Highway 33, Ventucopa week! 215 Center Street 763-1815 Always Fresh! Dine In or We Deliver 765-4143 700 Kern Street Mon. - Fri. 10am 2;30pm Taft, CA August 5 - 11, 2011 Your Restaurant Listed Here! Call 765-6550! Starting as low as $12 per week! The Maricopa Promise Editorial Westside Watcher Staged Water District Robbery Strays from Planned Safety Exercise District Employee Distraught After Mock Heist By Michael Long, Publisher In a planned safety exercise gone awry, a West Kern Water District employee donned a mask and robbed a customer service clerk at the district's front offices Friday morning. According to an employee who wished to be unnamed, and later confirmed by district manager Harry Starkey, a male employee, as part of an emergency readiness exercise, put on a mask and entered the district front office on Friday morning and handed the clerk a note claiming he had a gun, and an empty bag with instructions demanding money. Four female employees were reportedly present at the time of the robbery. Three of the women fled when the robber entered the office, but a fourth employee, Kathy Lee remained behind and handed over an undisclosed amount of cash to the robber who then left. Lee, unaware that the robbery had been staged by the district as a test of emergency procedures, was reportedly distraught by the incident. According to Starkey, the exercise strayed from the original plan to have a recognizable employee walk into the office and state that a robbery was in progress to see how employees would react to training. However, prior to the test, the plan was changed at the last moment to have an unidentified employee wear a mask and hand the clerk a threatening note demanding money. Starkey said that the test was originally planned to test employee readiness for emergency situations. In a written statement, Starkey explained how the mock robbery was planned and changed by staff prior to the exercise. "Staff had been working for several months to develop training and exercises for the front counter staff that would prepare them for a possible robbery," Starkey wrote in a statement to the Independent. "The plan was to perform a mock robbery with the 'burglar' being an employee that was clearly recognizable by the front counter staff. In other words, the exercise would be seen as an act and staff would then have the opportunity to practice the information learned in training. The exercise as performed on Friday was redesigned without the consent of management to involve a mask and a reference to a gun. The exercise as conducted was understandably upsetting to those involved. Their welfare is District's foremost concern and we are working through the process with them." Taft Petroleum Club Every Friday is Ribeye Steak & Chicken Dinner Night Have Your Next Event At The Club! The club is available for Weddings, Birthdays, and Anniversarys. Our hall holds up to 200 people and the bar can hold 70. Book Today! 450 Petroleum Club Road - 763-3268 Open Tuesday- Friday 3:30pm to Close I’m Bob Archibald, my wife Lori and I own the Shell Foodmart in Maricopa. I was very happy to read the article that was on the front page of the Bakersfield Californian last Sunday, about Maricopa Police Chief Derick Merrit’s promise of change in their traffic policies. As a show of good faith, I have towed home the trailers with the signs on them. Let us all hope that the Maricopa Police can uphold the law without going overboard as in the past. We all need our police to protect our property, the good people of Maricopa as well as the travelers that pass through our great little town. Knowing that actions speak louder than words, time will tell if the promise is being kept. The opinion of if the promise is being kept will not come from me. It will come from the customers of our store. Customers from our town and the neighboring towns and the ‘valley to the coast travelers’ will sound off loud and clear if the promise is broken. If it’s not kept the trailers with the signs will have to come back. I wish the Chief and his crew good luck and success and I sincerely hope to move on and we can deal with our other problems that are at hand. Thank You, Bob Archibald WANTED Taft Independent Subscription-Circulation Manager The Taft Indepenent is looking for a part-time individual to solicit subscriptions and make weekly home and business deliveries. CDL and Insurance Required. Experience Preferred. Incentive Based Compensation. Call 765-6550 Paik’s Subscribe for home delivery of the Taft Independent today! Delivered weekly to your home or business only $6.50 per month! Ranch House Restaurant Address________________________________ Mon, Tues, Thurs - 6 a.m. to 8:30 p.m. Wed, Fri. Sat. and Sun. 6 a.m. to 9:00 p.m. Name_________________________________ Start Date____________End Date__________ Please complete and mail with your check to: The Taft Independent, P.O. Box 268, Taft, CA 93268 Please make checks out to Taft Independent “Where Everybody Meets” Breakfast, Lunch & Dinner Open 7 Days 765-6915 200 Kern Street, Taft, Ca. August 5 - 11, 2011 TAFT INDEPENDENT West Side Recreation Report Check us out online! Need more information on programs, classes or facilities? Visit us on the web: steph@wsrpd.com by Stephanie House OPEN SWIM Monday-Friday 1:30-5:00 p.m. Admission: $2 per person Last day of Open Swim: Friday, August 19 The William M. Thomas Aquatic Center at the Walter Glenn Natatorium is open for summer! All ages are welcome to stop by to enjoy the slides, brand new spray park and other amenities that have been added to the updated and renovated facility. Children ages 6 and younger must be accompanied by an adult during Open Swim sessions. SATURDAY SWIM Saturdays 11:00 a.m. to 1:30 p.m. Admission: $2 per person Last day of Saturday Swim: August 20 NIGHT SWIM Monday and Thursday Evenings 7:30-8:45 p.m. Admission: $1 per person Last night of Night Swim: August 18 Don’t get a chance to swim during the day? Monday and Thursday nights are just for adults and families! Ages 17 and younger must attend with an adult family member. ICE CREAM & MOVIE SOCIAL Tuesday, August 9 2:00-3:45 p.m. Community Center Assembly Room, 500 Cascade Place, Taft Grades K-8 $3 per person Escape from your couch and bring a friend to eat ice cream and watch the movie “Megamind.” There will be ice cream and a variety of toppings available for you to make the perfect sundae. WONDERFUL WAFFLE Thursday, August 1 2:00-3:00 p.m. Community Center Auditorium, 500 Cascade Place, Taft Ages 6 and up $3 per person ** registration deadline – August 10 Come learn how to make waffles from scratch! We will make them and then eat them. Yum! You will go home with a full tummy and the recipe to try at home. For dessert? Chocolate brownie waffles! Pre-registration is required and space is limited. PRESCHOOL REGISTRATION UNDERWAY The West Side Recreation & Park District’s Preschool program is now enrolling students for the upcoming 2011/2012 school year. Preschool Coordinator is Rene Adamo and teachers are Stefany Ginn and Stacey Wooley. Classes begin the week of September 6. The program is for children ages 3-5. Fees vary per class. As of now, there are still a few spaces available in the Monday/Wednesday class. For more information, please phone 763-4246 or send an email to steph@wsrpd.com. Monday/Tuesday/Wednesday/Thursday Class: 8:30-11:00 a.m. Monday/Wednesday Class: 11:30 a.m. – 1:30 p.m. Tuesday/Thursday Class: 11:30 a.m. – 1:30 p.m. FAMILY FUN FRIDAY Friday, August 12 6:30-9:00 p.m. Natatorium Swimming Pool, 821 4th Street, Taft All Ages $3 per person or $12 per family (max 6 people) Cool down with a dip in the pool and do-it-yourself ice cream sundaes! Bring the whole crew down to the Natatorium for this special swim just for families. The fee includes admission and ice cream. The snack bar will also be open. Ages 17 and younger must be accompanied by an adult. WEST SIDE RECREATION AND PARK DISTRICT 500 Cascade Place, Taft, CA 93268 (661) 763-4246 info@wsrpd.com PERSEID METEOR SHOWER VIEWING Friday, August 12 9:00 p.m. ‘A’ Street Park All Ages FREE! Come join us at ‘A’ Street Park to view the Perseid Meteor Shower. This will be a night of close to peak activity, with nearly 100 meteors per hour expected. Just bring a blanket and/or chairs and be prepared to stay awake as the best viewing times are after 10:00 p.m. The event is FREE to all and s’mores will be provided for kids. This fun family event is brought to you by Imagination Laboratories, Inc. and West Side Recreation & Park District. GYMNASTICS Who: Grades K and older When: Monday Evenings Time: 5:30-6:30 p.m. Sessions: September 19 – October 24 and November 7 – December 12 Where: Community Center Auditorium Fee: $40 per session ($30 for each additional family member) Instructor: Suzanne Hale DANCE CLASSES Who: Ages 3 and up When: Mondays or Wednesdays Season: classes begin the week of September 12 Where: Community Center Assembly Room Fee: $20 per month Instructor: Vicky Waugh Participants will learn the basics of tap, jazz and hip-hop. Classes take place one day per week either on Monday or Wednesday. A full class listing is available in the District Office or on our website. Class enrollment is limited so register now! WSYSL – WEST SIDE YOUTH SOCCER LEAGUE Who: Boys and Girls, Ages 4-13 Divisions: U6 (4-5 yrs), U8 (6-7 yrs), U10 (8-9 yrs), U12 (10-11 yrs) and U14 (12-13 yrs) When: August 27 – November 12 Where: TUHS Soccer Fields Fee: $50 per player (plus $5 late fee) Final Registration Deadline: Thursday, August 25 The goal of the WSYSL is to create a soccer environment that is fun and conducive to learning for all ages and ability levels. Please note: shin guards are mandatory. Late registrations are still being accepted. Partial financial (STOP) scholarships are available. Ask us for more details. INSTRUCTIONAL SOCCER Who: Ages 3-5 When: Practices on Mondays, Games on Saturdays Session: September 12 - October 8 Where: ‘A’ Street Park Fee: $25 per child Registration deadline: September 8 Kids will learn basic soccer skills with emphasis on fun and socialization with others their age. YOUTH FLAG FOOTBALL Who: Ages 6-10 When: Practices on Tuesdays, Games on Saturdays Session: September 5 – October 15 Where: ‘A’ Street Park Fee: $35 per child Registration deadline: September 1 This program is for boys and girls ages 6-10 who want to learn the basic fundamentals of football. The program provides young players a fun and exciting opportunity to engage in non-contact, continuous action while learning lessons in teamwork. SOUTH VALLEY X COMPETITION CHEER SPAGHETTI DINNER SHOWCASE FUNDRAISER Thursday, August 11 6:00-8:00 p.m. Community Center Auditorium, 500 Cascade Place, Taft $5.00 Donation per person Help the District’s competition cheer squad raise money for uniforms and competition costs! Stop by for a spaghetti dinner and also have the chance to win some cash in a 50/50 raffle and/or purchase a SVX shirt to support the cause. BOWLING PARTY RENTALS Make your reservation now! Reservations are now being accepted for party rentals at the bowling alley in the new Recreation Center. Parties may take place on Friday evenings, Saturday or Sunday beginning September 16. Rental fees start at $100 for 2-lane rentals. Rental prices include shoes, balls and use of the party room. The Center and bowling alley are slated to open in early September. Call 763-4246 for more information or to make a reservation. S.T.O.P. PROGRAM SCHOLARSHIPS (Strive To Optimize Participation) Did you know that the District has a youth scholarship program? Children in low income, single parent or multiple participant households are eligible! For more information, or to find out how your child can take advantage of reduced program fees, give us a call in the District Office at 763-4246. 6 TAFT INDEPENDENT Westside News & Business Briefs Taft Has A Friend In Senator Jean Fuller By Jane McCabe Jean Fuller, California State Senator of the 18th District. It helps to have a law-maker from your own community who understand your concerns. Taft has such a law-maker in California State Senator Jean Fuller, who was born in Kern County, received her PhD at UCLA, studied at Harvard and at Exeter in England, taught for 17 years, and for the past seven years has represented Kern County at the California State Legislature. In spite of her impressive education, Jean is at heart a downhome country girl, from a Kern County farm family, and, as such, she’s interested in helping the businesses, especially the farming businesses that operate in Kern County thrive. According to Michael Long, president of the Taft Chamber of Commerce and owner/editor of the Taft Independent newspaper, Jean is “Taft’s best friend in the state senate.” On Wednesday, August 03, 2011, Jean met with the members of the Taft Chamber of Commerce at OT Cookhouse for breakfast to give a talk on what’s happening in the state California legislature. “I love coming to Taft,” Senator Fuller says. “It feels like home to me, the city with a heart.” The good news, according to Senator Fuller, is that the state legislature passed a budget. When threatened with the loss of their paychecks if no budget was reached before the deadline, legislatures passed one 1 ½ days before the deadline. To Senator Fuller this proves that the people’s voice can be heard! Through the initiative process things can change. Deficit funding muddies the waters—when the California State Legislature passed a 85 billion dollar budget (15 billion dollar LESS than last year’s,) at the last minute 6 million dollars in expenditures were added. If phantom funds are not reached, then automatic “trigger cuts” go into effect. A reduced budget calls for a 25% reduction in expenditures, which can only be secured from the areas which are the biggest recipients—health & welfare, prisons, and schools. Everyone wants schools to have what they need, but as soon as the state budget shrinks, like it or not, trigger cuts will go automatically into effect. Despite the necessity of instating austerity measures, Senator Fuller thinks the state legislature has a liberal agenda. Bills she consistently fought against are now being passed. There are outcries from all sectors. OT Cookhouse & Saloon 205 N. 10th St. (661)763-1819 Specializing in Steak & Seafood Lunch Dinner Tuesday - Friday Tuesday - Thursday 4p.m. - 9p.m. 11a.m. - 2p.m. Friday & Saturday 4p.m. - 10p.m. CLOSED SUNDAY/MONDAY OT Cookhouse Daily Specials (For the week of 8-9-11 thru 8-13-11) Tues. 8-9-11 Lunch Pit Beef Sandwich $8.95 Tues. 8-9-11 Dinner BBQ Beef Ribs $10.95 Wed. 8-10-11 Lunch Beef Tips with Noodles $8.95 Wed. 8-10-11 Dinner Veal Liver with Bacon & Onions $10.95 Thurs. 8-11-11 Lunch Beef Stroganoff $8.95 Thurs. 8-11-11 Dinner Fri. 8-12-11 Lunch Fri. 8-12-11 Dinner Sat. 8-13-11 Dinner BBQ Pork Ribs $13.95/ $15.95 Stuffed Chicken Sandwich Prime Rib $9.95 $13.95 Half/ $15.95 Full $15.95 Small/ $18.95 Large $15.95/ $18.95 Charbroiled 1/2 Chicken with $10.95 Sauteed Veggies CLOSED SUNDAY AND MONDAY 205 N. 10th Street . (661)763-1819 Jean Fuller, third from left, with Taft Chamber of Commerce staff, Jessica G. Miller, Dr. Kathy Orrin and Shannon Jones. Senator Fuller referred to ancient Rome as an example of a government in which conditions were created to help trade flourish—the building of roads and aqueducts, an efficient and timely postal system, and such—as opposed to excessive regulations that strangle business. “People are going to be in a more visual place to make the difference next year,” she says. With the more liberal agenda as now exists in the state government, “cause” issues are rampant, as, for example, a bill to making the killing of sharks for their fins (for soup) illegal. Senator Fuller feels that some of the bills proposed take up an unnecessary amount of time when we need to create jobs, get water and road work done. She says newly elected, re-elected, Governor Jerry Brown will not raise taxes, as he promised not to, unless the people of the state of California vote for it. She thinks the number of bills put before the legislature should be limited and those bills should be prioritized, because, as it stands, far too many bills are proposed than can be enacted. When asked about instituting landlord protection laws to help landlords from being subjected to the costs they endure by deadbeat tenants, who often can live in homes rent-free f0r long periods of time, while landlords are expected to pay all kinds of costs, Senator Fuller was not very reassuring. Injustices change only when suffering citizens make their voices heard. If you would like to voice a concern or opinion to Senator Fuller, she can be reached at: Capital Office State Capitol, Room 3063 Sacramento, CA 95814, Phone: (916) 651-4018, Fax: (916) 3223304 or at the District Office 5701 Truxtun Avenue, Suite 150 Bakersfield, CA 93309, Phone: (661) 323-0443, Fax: (661) 3230446 August 5 - 11, 2011 Get To Know Your Westside Public Servants Debra Elliott, City of Taft, Administrative Assistant to the City Manager and Deputy City Clerk By Nicole Frost Debra Elliott If you have ever been to the Taft City Hall, there is a good chance that you’ve seen Debra Elliott, the administrative assistant to the City Manager and the Deputy City Clerk. “I do quite a bit on the job,” said Elliott. “As the City Manager’s administrative assistant, I assist the City Manager with meetings, I perform clerical duties, keep his calendar straight, and I assist him on projects. As the Deputy city clerk, my job is quite different. I assist with the agenda for city meetings by putting it together, making sure it’s out on time, making sure it’s correct and posting it for the public. Also, I filling during meetings sometimes to take the minutes and I take minutes for various committees such as the public works, traffic, personnel and sometimes finance committees.” Being busy is one of the reasons why Elliott enjoys her job so much. “Because my workday is so varied, I’m never stuck doing the same thing,” said Elliott, with a smile. “I like to work on upcoming projects for the city, especially if they’re exciting, and watching them progress from beginning to end. Plus, everyone gets along here at City Hall. There isn’t really anything about my job that I don’t like.” One of Elliott’s favorite days on the job involved working on the committee for the veteran’s fundraiser earlier this spring. “Working on the fundraiser was probably my most memorable experience, as well as my favorite,” said Elliott. “I saw the project through from beginning to end and, not only was it fun, but it was for a great cause.” Elliott is a wife of 17 years to her husband Michael and she’s a mother to two children, a junior and a senior at Frontier High School. When she’s not organizing the City Manager or assisting with the agenda for a city meeting, she enjoys playing tennis and cooking. Elliott is a Bakersfield native but she has quickly adapted to the Taft community. “I started working at City Hall in January 2010,” said Elliott. “Not having lived in Taft, I was very impressed with the supportiveness of the community.” There isn’t much more that Elliott can fit into her schedule, but she still has some project plans for the future. “I hope for the opportunity to be more involved in upcoming projects,” said Elliott. “Taft is such a friendly and giving community. It’s a great place to be.” August 5 - 11, 2011 TAFT INDEPENDENT Westside News & Business Briefs G St. Second Hand Thrift Open For Taft Pickers Kyle Goss, Tracy Streeter with shop dog Bella Tu and Gary Goss. G St.’s Second Hand , Anything Thrift Store is now open at 523 Center Street and ready for all Taft pickers. Owners Tracy Streeter and Gary Goss, both long time Taft and Maricopa residents opened the store a little over 2 weeks ago after their hobby for picking and collecting left them with an abundance of merchandise. Tracy and Gary frequent storage unit auctions and estate sales for their great treasures. “We were running out of room, we either needed to open a storage bin or a store front,” said Tracy. G St.’s merchandise ranges from collectables, antiques, furniture, clothing and much more. With something different hitting the shelves everyday. Stop by Tuesday to Saturday from 10am-5pm. The Place 4014 Highway 33 Beautiful Downtown Ventucopa (661)766-2660 AUGUST EVENTS Every Wednesday - Oak BBQ Steak Sandwich 12:00 PM - Close Saturday, August 13th $10.00 ALL YOU CAN EAT BUFFET School Refunds Bond, Earns Low Interest Rate Taft City Elementary School District has refunded an outstanding general obligation bond, a move administrators said would save the district’s property owners nearly half a million dollars in taxes. The refunded bonds, totaling $7.445 million, were authorized by more than two-thirds of voters in the June, 2001 election and were used to acquire, construct and modernize elementary school facilities throughout the District The interest rates on the outstanding bonds from the 2001 issuance ranged from 4.125% to 5.000%. The average interest rate cost for the new bonds issued in July was 3.23%, a difference that will save property owners $454,000. “We felt as stewards of tax dollars, it was the right thing to do,” said School Superintendent Ron Bryant. “The passage of time and a lower interest rate environment provided the opportunity to refund the old bonds.” The refinancing of the bonds was authorized by the Taft City Elementary School District Board at a November, 2010 meeting. “If you have an opportunity to save local taxpayers money, especially in this economy, you do it,” said Michael McCormick, school board president. The District also has outstanding bonds issued in 2005 and 2006 from the 2001 bond authorization. These bonds may be eligible to be refunded in the future, which would further benefit local taxpayers. BBQ Chicken green salad, watermelon, Corn on the Cob & Bread $1.50 Domestic Drafts 5:00pm to Close No To Go’s Starts at 5:00pm until gone! Live Music By: Cutthroat Reef (Pirate Band) City Budget Continued from Page 3 source of pain for the city and the prison’s employees after the state cancelled its contract with Taft. The prison issue could mean a decline of $700,000 to $900,000 in administrative fees and the laying-off of 50 employees. A solution would be an agreement between Taft and one or more of the state’s counties to house county prisoners. Police Chief Ken McMinn has reported to the council that he is working on such an agreement. He is already talking with counties about housing their inmates at the Taft facility, McMinn said. 2010-11 revenue The city’s General Fund draft summary of revenue resources for the 2010-11 fiscal year was $6,586,780, which as required balances with the total expenditures for the period. The budget included the transfer of $500,000 from the city’s reserve fund to obtain balance. Income of $225,000 in interest from loans to Taft Community Development Agency was removed from projected income because the notes have been rolled-over for another year. According to the agenda summary statement, prepared by Finance Director Teresa Binkley, the budget maintained the conservative fiscal policies of the city council. The budget was reviewed by the Finance Committee in July and recommended to be presented to the council for adoption, Binkley reported. The major revenue sources were: * Other city taxes of $1.6 million, with nearly $1.2 million of that coming from sales and use tax; * Taft Police department, $1.1 million; * Operating transfers-in, $963,534; * From other agencies of $725,385, with $703,552 of that coming from property tax in-lieu; * Property taxes, $618,280; * Streets/highways/drains, $526,419; * Use of money and property of $475,010, with $402,736 of that from interest income; * Other current charges, $439,333. Planning Department revenue is projected at $56,401 and licenses and permits at $54,983, with $54,555 of that from business licenses. 2010-11 expenditures The major expense areas were: * Police Department, nearly $2.3 million; * Public Works Department, $954,532; * General government, $917,176, with $318,167 going to personnel/risk management; * Kern County Fire Department contract services, $888,199; * Community development of $661,077, with $575,418 for planning and development; * Financial services, $472,944; * Capital purchases of $408,348, with $270,824 for the Public Works Department. Other items Among other items on the council’s small agenda for Tuesday’s meeting were a HOME grant application and determining how the city should benefit from the energy services agreement with Conergy/Enfinity. On July 5, the council authorized Geary Coats to apply for approval of a family housing project on the Sunset Rails property and on July 12, the Taft Planning Commission approved a conditional use permit, site plan and parking variance for the development. Tuesday evening, Geary Coats and Willow Partners asked and the council authorized submitting a HOME Tire & Automotive Service Center grant application for funding not to exceed $5 million for the 40-unit affordable family housing apartment project. The city is the official applicant for the funding request to the California Department of Housing and Plus Tax Community Development. If approved, funds would come from the Home Investment Partnership Program. $3.50 Oil Disposal Fee In the second items, the city and Conergy/Enfinity Exp. Sept. 30, 2011 have an agreement for the installation of a solar energy Must Present Coupon at system on city properties. But it hasn’t been decided yet Time of Purchase among two ways for the city to benefit financially from Finley Drive • 765-7147 • the agreement. Both options offer a projected savings on Brand Clothing Shoes • Jewelry A Hint of Class Name Accessories & More Step Back Into School In Style! New Arrivals of Backpacks & Shoes Inside The Historic Fort 915 N. 10th Street Suite 34 (661)623-1783 FREE Tire Rotation & Brake Check Plus We will check all fluids & tire pressure *Most Cars & Light Trucks Up to 5 Qts. Oil & Filter Special 95* $ 29 523 Mon-Fri 8am-5pm Sat 8am-1pm Continued on Page 8 8 Community Voices TAFT INDEPENDENT Bush and Obama Usurp the Powers of Congress by Using Signing Statements By Dr. Harold Pease The. City Budget Continued from Page 7 the city’s utility bill with Pacific Gas and Electric Co. The difference is the projected amount of savings and when it would happen, said Paul M. Gorte, city redevelopment manager. One plan, “Rebate to City,” pays the rebate directly to the city, front-loading the financial return but reducing the estimated long-term cumulative return, Gorte said. The other plan, “Rebate in PPA,” invests the rebate in the power purchase agreement, reducing the near-term annual return (the first five years) but yielding a greater long term return to the city, he said. Under the second option, the city would see a reduced savings for the first five years of the program, but beginning in year six, the annual savings would exceed the projected annual savings in the first option, Gorte said in his summary statement for the council. Using an estimated PG&E rate increase of 5 percent a year, the difference to the city over 20 years would be about $250,000. Estimated 20-year savings to the city under plan one is $1,850,000 and under plan two is $2,100,000. For the first five years, the estimated savings to the city under plan one is $380,000 and under plan two it is $170,000. Projected cumulative savings to the city’s PG&E bill: Plan one Plan two Over 5 years $380,000 $170,000 Over 10 years $600,000 $525,000 Over 15 years $1,065,000 $1,100,000 Over 20 years $1,850,000 $2,100,000 In discussion, Councilmembers Orchel Kreir and Ron Waldrop indicated preference for plan one, while Mayor Miller and Councilmember Linder showed preference for plan two. The measure was tabled until the Aug. 16 meeting when all five councilmembers are expected to be in attend and the council would have had more time to study the options. August 5 - 11, 2011 Do You Know Me? Looking for a male resident of Taft that is currently in his 60’s. He went to Citrus Heights, CA, around 1987 looking to meet Cornelia (Nellie Jo) Ruth; he was turned away at the door by a relative. Believe his father might be James Nelson Ruth who worked in the Texaco oil fields in/around Taft from 1920-1961. It was noted the Taft resident has a strong resemblance to the pictured individual. If you have any information on this please contact Amy at 801-201-6771 or email at amyanastasion@msn.com. BLM Plans Hunting Enforcement Checkpoint on Carrizo Law.” Native Americans came to hunt the abundant game and their many encampments dotted the plain. Carrizo Plain National Monument as statewide poaching violations are on the rise. A study conducted in the mid 1990s estimated approximately $100 million worth of California’s native wildlife is being poached annually; making poaching second only to the illegal drug trade in black market profitability. California’s fish and wildlife usually is poached from remote areas and transported to major cities for sale and export. “Poachers devastate nature by breaking they must have Weekly Gas Price Update Average retail gasoline prices in California have risen 0.5 cents per gallon in the past week, averaging $3.80/g as of Monday, August 1st. This compares with the national average that has increased 1.1 cents per gallon in the last week to $3.70/g, according to gasoline price website CaliforniaGasPrices.com. Including the change in gas prices in California during the past week, prices Monday, August 1st were 69.7 cents per gallon higher than the same day one year ago and are 3.6 cents per gallon higher than a month ago. The national average has increased 13.2 cents per gallon during the last month and stands 95.5 cents per gallon higher than this day one year ago. Subscribe for home delivery of the Taft Independent today! Delivered weekly to your home or business only $6.50 per month! Name_________________________________________ Address________________________________________ Start Date____________End Date___________________ Please complete and mail with your check to: The Taft Independent, P.O. Box 268, Taft, CA 93268. Please make checks out to Taft Independent August 5 - 11, 2011 Obituary TAFT INDEPENDENT Taft Crude Coffee House Ronald Lynn Davis The Only Mortuary On The West Side Where All Arrangements And Funerals Are Personally Directed By Age 47 - Passed Away July 19, 2011 A previous resident of Taft, Ron moved to Bakersfield in the 1990’s. Ron was born December 10, 1963. He was survived by his wife Shelly Darnell Davis, his parents Edward and Donna Diavis of Taft, sister and brother in law Bonita and Terry Bullard of Maricopa, brothers Larry Davis of Bakersfield and Edward and Monica Davis of San Diego and sister Susan Davis of Taft, stepdaughter Crystal and granddaughter Reily and many nieces and nephews. In-laws Ben and Ann Darnell, Darrell and Sheila Darnell, and three sister in laws, Sheila, Sherry and Cheryl and their husbands. Ron was preceded in death by his brother Timothy Kevin, grandmother Maude Waldron and grandfather Roy Waldron. Ron graduated from Taft Union High School in 1982. He married Shelly Darnell on August 28, 1988. Ron and Shelly were blessed with the apple of his eye, Reily in 2006. Ron passed away at his home due to a long term illness. By his side were his wife, Shelly, sister Bonita, brother Larry and niece Christina. Anyone that knew Ron knew his love of sports. Growing up Ron played little league baseball, Babe Ruth and in High School was a member of both the football and baseball Varsity teams. A memorial in Celebration of his life will be held at the First Southern Baptist Church at 120 Pico St., in Taft, August 6, 2011 at 1:00 pm. The family would like to thank Bakersfield Dialysis Center for all your years of caring for Ron. We would also like to say a special Thank You to Dr. Harold Baer. MARICOPA QUILT COMPANY FABRIC • NOTIONS • GIFTS WED.-FRI. 10:00-5:30 SAT. 10:00-2:00 New Summer Hours! Wed-Fri 10am-5:30pm Sat 10am-2pm 370 CALIFORNIA • 769-8580 Licensed Funeral Directors 501 Lucard St., Taft • 765-4111 Ice Blended Mocha Fat Free and Sugar Free Available in Most Flavors Open 7 Days - 763-5156 1010 6th Street • Taft YOUR CHURCH AD HERE! CALL TODAY! 765-6550 NEW LIFE COMMUNITY CHURCH Sunday Services 10am UTURN Youth Service Sunday 6pm 1000 6th St. Weekly Classes Mon - Thurs Please call 765-7472 for info For a ride to church call 765-7472 before 9am on Sunday Pastors Shannon N. and Shannon L. Kelly or nlctaft@bak.rr.com FD756 FDR50 FDR595 FDR618 YOUR CHURCH AD HERE! CALL TODAY! 765-6550 Gateway Temple Community Christian Fellowship 631 North Street Sunday School 9:30 a.m. Morning Worship 10:30 a.m. St. Andrew’s Episcopal Church 604 Main Street • P.O. Box 578 Maricopa, CA 93252 • (661)769-9599 Sunday Morning Worship 9:45 Sunday Evening Worship 5:00 Monday Evening Mens Prayer 7:00 Wednesday Evening Worship 6:30 Sunday Service - 10 a.m. For a ride: Call Dorine Horn 487-2416 Pastors Charle (Tommy) and Mary A. McWhorter 703 5th Street - Taft (661) 765-2378 Rev. Linda Huggard New Hope Temple Trinity Southern Baptist Church “Connecting Lives” 308 Harrison Street 765-4572 400 Finley Drive Sunday Morning Worship Service 10 a.m. Sunday Evening Worship Service 6 p.m Bible Classes All Ages Wednesday 7 p.m. We invite you to join us each week as we worship Sunday Bible Study 9:45 am Sunday Morning Worship 11:00 am Sunday Evening Worship 6:00 pm Wednesday Prayer & Bible Study 6:00 pm Peace Lutheran Church- LCMS TAFT UNITED METHODIST CHURCH Taft- A caring community under Christ We welcome you to worship with us at peace lutheran church, 26 Emmons Park Drive (across from the College). Worship service begins at 10:00 a.m. Communion will be offered 1st and 3rd Sundays 630 North St. 765-5557 “Open Hearts, Open Minds, Open Doors” Sunday School for all ages at 9:00 a.m. The Pregnancy crisis center is now open and available for support and assistance. For information, call 763-4791 If you have a prayer request please call (661)765-2488. Leave a message if the pastor or secretary is not available Angel Food Program Tues. 9am - 12pm Thurs. 3pm - 6pm Pastor Cindy Brettschneider Sunday Morning Worship 10:00 AM Adult Bible Study and Sunday School 11 AM Adult Bible Study Monday 6:00 PM Wednesday Night Service 6:00 PM Praise Team meets on Thursday at 6:00 PM WANTED: BULKY WASTE PICKUP Double Gold Medal Winner and Best Cabernet Sauvignon of Show at the San Francisco International Wine Competition Tasting Sat. & Sun. 11:30 to 4:30 pm. Now Celebrating Our 22nd Year 8 miles south of HWY 166 on HWY 33 in Ventucopa, Cuyama Valley, 4211 HWY 33. (661) 766-2319 See our new Website! Advertise With The Taft Independent Call Today 765-6550 Ford City Tuesday South Taft & Taft Heights Friday City of Taft Wednesday • REFRIGERATORS • MATTRESSES • WATER HEATERS • STOVES • WASHERS & DRYERS • SOFAS If Missed… Call Office at 763-5135 All green waste must be bagged. Tree Limbs cut in 6’ length, and bundled. ITEMS NOT ACCEPTED Construction/Demolition Waste/Used Oil/ Hazardous Waste/Tires Westside Waste Management Co., Inc. 10 Classifieds Classified Ads areare $3.00 per issue for upPhone, to threefax, lines, $5 per Classified Ads $2.00 per line. mail or issue off for up to 5 andTaft $7 per issue for up to 10 lines. Yard drop your adlines, to the Independent. Sale ads are free. Phone, fax, mail or drop off your ad to the Taft your Independent. Ad photograph for $5. Ad your company logo for TAFT INDEPENDENT Affordable Rents We’ve Got em! $5. Boxed ads are $3 additional. E-mail us (or bring to Boxed\outlined\bolded classified ads start at $12.00 for 8 our office) a photo of$20 your car,$25 truck lines, $16 for 12 lines, forhome, 15 lines, for or 20 motorcycle lines. and we’ll do the rest. Photo Ads. Car, truck or house for sale ads are $5 per week, Yard are $2Email for 3us lines, additional or $10Sale withads a photo. (or bring to our lines office)$2a each. photo of your home, car, truck or motorcycle and we’ll do the rest. Classified ad deadline is Wednesday at 12 p.m. (noon) Classified ads deadline is now Wednesdays at 2 p.m. Phone: 765-6550 Preserving for the Future Phone: 765-6550 Fax: 765-6556 765-6556 Fax: E-mail:Taftindypublisher@bak.rr.com Taftindypublisher@bak.rr.com Email: Payment can byby cash, check, or credit card. card. Payment canbebemade made cash, check, or credit Taft Independent 6thCenter St., Taft, CATaft, 93268. Taft Independent210 508 St., CA 93268 Community YARD SALES Advertise your yard sale ad. 3 lines for $2, additional lines after that $2 each. Fax your ad to 765-6556 or call and leave message at 765-6550 by 12 p.m. Wednesday. SEEKING INFORMATION ANNOUNCEMENTS COUNSELING & SUPPORT Business Services Friday, Saturday, Sunday 6am-? 204 D Street. Porcelain dolls. Yard sale, three families 324 East Woodrow 8/5 - 8/6 8am to ? childrens clothes, household Items and misc. 707 Harrison St. Apt. B. Sat.and Sun. 8 a.m.-? Tons of everything!! Saturday 7am- noon 106 Woodlawn Ave. Lots of misc. 506 Sierra Saturday 8/6 7am Tons of nice teen girl & plus size womens clothes, elec dryer, port DW and more! Saturday Aug 6th only Church wide Yard Sale Calvary Baptist Church in Valley Acres, off hwy 119, 8am-2pm. Yard Sale Friday and Saturday and Sunday 616 Taylor St., baby stuff and household misc. 7am-noon. Saturday 533 E Street 7am- noon. 50 years of collectables, antiques, appliances, books and much more! 506 Church Street Saturday 7am-? Clothes, shoes, furniture, misc. 610 Phillippine Street 8am-3pm Friday and Saturday. Tables, mini fridge, clothes, dvd. and more. Yard Sale 403 Shasta. Saturday. Lots of stuff! HANDYMAN SERVICES Handyman: Coolers, Landscaping, Homes. Call 765-2947 or 6231529 293-0359 or 661-7656497. We will pick up! For Sale FOR SALE Pickers Buy & Sell 428 Center Street. Tools, Furniture, Household, Collectables. MOTORCYCLES AUTOMOBILES Pets & Livestock FOUND PETS ALTERATIONS HOUSE CLEANING COMPUTER SERVICES Taft P.C. Services PETS Shihtzu puppies 2M/1F reg. vet checked 12 wks $250 ea. 661-763-3222 or 747-0638 LIVESTOCK LOST PETS Real Estate Computer Repairs 661-623-5188 Employment HELP WANTED BUSINESS OPPORTUNITY Wanted WANTED Junk Cars! Cash Paid (661) 805-0552 Old Appliances, In ANY Condition. Car Batteries & Motorparts. Cash Paid $1 - $20 Call David 661- PROPERTY MANAGEMENT Taft Property Management 1,2,3 and 4 Bedrooms now available in good areas. CRIME FREE HOUSING Brokers Licence 01417057 661-577-7136 PROPERTY FOR RENT BUSINESS FOR SALE FOR SALE Established local Taft business. Taft Crude Coffee House and Deli. Excellent location, near Taft College. In business for 6 years. $25,000. Room to expand product offerings. Good family business. Call 661-623-4296. HOMES FOR SALE Real Estate eBroker Inc. 325 Kern Street Karri Christensen LIC# 01522411 & #01333971 661-332-6597 Real Estate Sales & Purchase 2bd. 1 ba. $9,000. on leased land. New carpet and paint. Negotiable. 623-6718. 114 Franklin $40K (Contingent) 417 Tyler 3bd 2bath $60K 106 Lee St 3bed 2 bath $129,500 9057 Ellis Street 4bed 2 bath 10 acres $140K Commercial Building $169K Restaurant/ Dry Goods Store $195K 160Acres in Maricopa $295K Wondering how buying a house works? Set an appointment with Karri to watch a FREE video on the process. Call 661-332-6597 for a current list or drop by the office. ____________________ 4 Homes in Taft 1 House in Maricopa. $26,000 to $85,000. Serious Inquiries only. $9,500 down. Owner carry. 661-343-0507. MOBILE HOMES HOMES FOR RENT 3 bd rm 1 ba. home on 902 Williams Way. Huge backyard and newer detached 2 car garage. Original garage has been converted to large 4th bedroom or office. $1,250 mo plus $1,250 deposit. Ref. Req. Credit check. No smoking only. 623-4296 West Valley Real Estate (661) 763-1500. Lic # 01525550 www. BuySellManage.com. FOR RENT 507 Tyler 3/2 512 D St 3/2 223 Eastern 3/2 410 Buchanan 3/1 119 1/2 Madison 1/1 502 Lucard 1/1 FOR SALE Why rent when you can buy for almost half the cost?! Contact us for details and a complete list of homes for Sale! Super clean 1 bed room house with kitchen appliances, plus washer dryer hook ups. Water, garbage, pest control and gardener furnished. No pets. $800 plus $600 deposit. Call 765-4786 between 7a.m and 7 p.m. 707 Filmore 3 bd/1ba $750 mo. + dep. 707 1/2 1 bd/1ba $420 mo. + dep. 661-343-0507. APART. FOR RENT Room/Studio $350mo + dep. 661-577-4549 alintaft@yahoo.com Newly redecorated 2bd upstairs Apt. Kitchen appliances and washer dryer furnished. All util. paid No. pets. $700 mo. plus $500 deposit. Call 765-4786 between 7 a.m. and 7 p.m. MCKITTRICK. 3/2 Apt. Newly furn.$650 mo. Taft Property Mgt. 661 745-4892. Brokers Licence 01417057 Creekside Apartments. 1 BD and 2 BD. Pool, AC & Appl. 661.7657674. 420 Finley Dr. Courtyard Terrace Apts. 1 and 2 bdrm’s Pool,lndry rm.,1210 4th St. Apt. 1. Sec. 8 OK. (661) 763-1333. Well-Being BEAUTY PERSONAL TRAINER August 5 - 11, 2011 Business Services Ken Shugarts Air Conditioning & Heating Cleaning Services My Fair Ladies Cleaning Services Comm. and Residential Serving the Westside 661.477.3455 Lic. No. 007657 Rite Away Carpet Cleaning Carpet & Upholstery Cleaning\General Cleaning Owner Operated Visa\Master Card 765-4191 Plumbing • Septic • Roto-Rooter Framing • Electrical • Concrete We Do All Phases of Construction Kitchen and Bathroom Specialists Ken Shugarts (661) 343-0507 30 Plus Years in Construction License No. 927634 Personals WHEREABOUTS Danny Daniels If anyone knows his whereabouts please tell him it is very urgent for him to contact Betty Lopez at 805-350-0392 or 406-889-3755 or Vicky Valencia at 805245-8130. Get It Rented!! Real Estate eBroker Inc. 325 Kern Street Karri Christensen LIC# 01522411 & #01333971 661-332-6597 Place Your Ad for $2 Per Line! Call Today (661)765-6550 Get a Real Estate Sales & Purchase Lot for a Little Marketing is important to your business. The Taft Independent has marketing opportunities for every budget, large or small. By advertising in the Taft Independent, you will reach over 7,500 potential customers every week. To make a small budget go a long way, call us today at 765-6550 ADS STARTING AT $ 10 PER WEEK 508 Center Street or email taftindypublisher@bak.rr.com ROGER MILLER INSURANCE a division of DiBuduo & DeFendis Insurance Group Rich Miller License # 0707137 • (661) 765-7131 531 Kern Street - P.O. Box 985 (661) 765-4798 FAX Taft, CA 93268 • (661) 203-6694 Cell. August 5 - 11, 2011 TAFT INDEPENDENT Derby Acres Tumbleweed Festival Last Saturday, July 30th, Orchel Krier, owner of The Tumbleweed Bar & Restaurant, hosted the 3rd Annual Derby Acres Tumbleweed Festival. The event was highly attended with activities catering to everyone’s interests, including water slides, a horseshoe tournament, vendors and much more! Edward J. Herrera Insurance Negocios Hispanos Negocios de venta Servicios The Cell Fone Store Móviles y Accesorios y alimentos y más 510 Finley Drive 661-765-2500 G and F Footwear Athletic and Tennis Shoes Vans - Nike - Levis Adio and More! T-Shirts and Pants 405 Finley Street In the Pilot Plaza Phone 340-8609 Rosy’s Closet Hombres y Mujeres Ropa y Zapatos 401 Center Street Mar. - Sáb. 10am-8pm Dom. 11am-8pm Cerrado los Lunes Su anuncio aquí! Las bajas tasas! Llame hoy mismo! 765-6550 Sponsored by Edward J. Herrera Insurance Mercado de Agricutores de Taft Cada Jueves 5:00pm - 8:00pm Quinta Calle Plaza (5a Calle entre Main y Calle Center) Auto - Home - Health - Business - Notary Public We are an Independent Agency With Many Pre-Eminent Insurance Companies To Best Suit Your Needs We Represent You To Give You The Best Service WE Offer You Low Discounted Rates Our Friendly Staff Edward J. Herrera Insurance Vienen a comprar los productos!! Comprar Fresco y Local!! Frutas, verduras, hierbas, productos horneados, mermeladas, joyas, ropa de cama, artesanias y mucho mas Interesado en convertirse en un productor, proveedor o artista (musicos, cantantes, comedios) Ponganse en contacto con Shannon en 661-765-2165 o shannontaftchamber@gmail.com 420 Center Street Taft, Ca 93268 (661)745-4920 Lic. # 0277365 Auto - Casa - Salud - Negocio - Notary Public Somos una Agencia Independiente Con Varias Aseguradoras Prominentes Para Darle El Mejor Servicio Lo Representamos A Usted Para Darle Un Excelente Servicio Como Usted Se Lo Merece Le Ofrecemos Los Mejores Precios Nuestro Personal Amable 420 Center Street Taft, Ca 93268 (661)745-4920 Lic. # 0277365 12 August 5 - 11, 2011 Devon’s Body Shop Used to be Paul’s HARRISON STREET AUTOMOTIVE 209 Harrison Street • Taft (661)765-2505 or (661)763-1887 fax Ask about $500.00 Free Smog Repair Restrictions Apply $39.75 * for Smog Check ‘96 or Newer plus certificate TAFT INDEPENDENT Bike Shop We Have Moved! Come see us at 608 Center Street 745-4919 * must present ad at time of service ANNOUNCEMENTS SERVICES 408 Main Street • (661)765-4337 Qik Smog & Tune MORTIMER FIREARM TRAINING CCW Classes & BSIS Classes (661)763-4445 Taft Independent Publisher@taftindependent.com Ray Mortimer, Instructor 661-747-6965 No Appointment Needed for Smog Check! Certified C.A.P. Station General Automotive Repairs Pre-register at Ten Percent Firearms 661-765-6899 • 661-763-4445 • 500 S. 10th Street Larry Heptinstall, 661-342-4033 (CCW) Jay Thomas 661-809-1772 (BSIS) Randy’s Trucking Cart-Away Concrete Mix Trailer • Hydraulic Rotation and Tilt for Mixing and Dumping • Mixes Concrete While Traveling • • Large Internal Blades • • Rear Operator Control Panel • western shop & PET SUPPLY Now Carrying Wrangler FR Shaw’s Pet Wash Work Pants & Shirts 1st Dog at reg. price August Wash & 2nd dog at 1/2 price! Special Small dog up to 30lbs $14.00 $56.99 $65.99 Dogs 30 lbs & over $17.00 FR spray available for your at home washing and caring needs. Wrangler Cowboy Cut Jeans (661) 763-4773 1050 Wood Street t Augusal Speci 13 MWZ Includes: Shampoo, conditioner, brushes, nail clippers, dryers, and an air conditioned room. Kennels are available for additional dogs $31. 99 $29.99 Nails clipped and filed $12 Each additional dog or cat $9 Saturday, August 27th Dog Rabbies Clinic Ford City Park • 8am-12pm Monday-Friday 9-5:30, Saturday 9-3 419 Harrison St. Taft, CA 93268 (661) 765-2987 The Tumbleweed Bar and Restaurant Located in the Heart of Oil Country On the Petroleum Highway We Cater Your Place or Ours Full Bar Available For You Special Breakfast - Lunch - Dinner - Full Bar - Catering - RV Parking Available Event 24870 Highway 33 in Derby Acres • (661) 768-4655 Open 7 Days a Week Owner Orchel Krier Welcomes You and Your Family - Dinner Reservations Senator Jean Fuller Visits, Taft and The Westside Published on Aug 5, 2011 Senator Jean Fuller Visits, Taft and The Westside
https://issuu.com/taftindependent/docs/taft_indy_8-5-11_all
CC-MAIN-2018-22
en
refinedweb
If the Windows Script engine allows the source code text for procedures to be added to the script, it implements the IActiveScriptParseProcedure interface. For interpreted scripting languages that have no independent authoring environment, such as VBScript, this provides an alternate mechanism (other than IActiveScriptParse or IPersist*) to add script procedures to the namespace.
https://admhelp.microfocus.com/uft/en/14.03/UFT_Help/Subsystems/FunctionReference/Subsystems/VBScript/Content/html/741a35bb-5b92-489e-ba8a-a406b42125fc.htm
CC-MAIN-2018-22
en
refinedweb
Today's Little Program adds a folder to the Documents library. Remember that Little Programs do little to no error checking. Today's smart pointer library is… (rolls dice)… nothing! We're going with raw pointers. ->Release(); CoUninitialize(); return 0; } This program uses some helper functions for manipulating libraries. The SHLoadLibraryFromKnownFolder function is a shorthand for CoCreateInstance(CLSID_ followed by IShellLibrary::, and the SHAddFolderPathToLibrary function is a shorthand for SHCreateItemFromParsingName followed by IShellLibrary::. Run this program with the full path (or paths) to the folders you want to add to the Documents Library, and… nothing happens. Ah, because there's a gotcha with libraries: After you make a change to a library, you need to commit your changes. So let's fix that: ->Commit(); // add this line library->Release(); CoUninitialize(); return 0; } Okay, let's try it again. Run this program with the full path (or paths) to the folders you want to add to the Documents Library, and hooray! the folders are added to the Documents Library. Makes one wonder. Is there a sane use-case where one would want to AddFolderPathsToLibrary, but not commit afterwards? I think the Commit is a performance thing. Rebuilding the library after each individual Add would create wasted work if you were adding more than one. Ah, makes sense. Thanks! Well, they could commit on the final release, but doing important work when cleaning up is bad design. Somebody totally needs to actually create a Smart Pointer Library Die to give to Raymond for Christmas. Psst. Here’s a secret: The dice are loaded. That just means we need to make an easy way to weight them. I would totally buy some for my coworkers for Christmas, if any of them read this blog. I’m pretty much certain that the last place I worked at actually had a ‘Delimiter of the day’ dice… …and no. Chr(0) is NOT a good choice for joining strings! (I wish I was joking!) There is plenty of precedence for using ‘\0’ to separate strings, such as environment blocks and REG_MULTI_SZ. It’s actually not particularly inconvenient in C with C-style strings. I love the pointer dice roll (even if no actual dice are involved). Same. Unfortunately it’s one of those things I enjoy that if I tried to show and explain it to anyone else I know they’d think I was weird. Why is this API available? Only the user himself (through Explorer) should be able to organize the Libraries, by exactly the argument as for the pin-to-taskbar feature. Speaking of sane use-cases…. what would be the use case for a software (most likely during the installation process) to create document storage outside the user profiles document directory and adding that to the library instead of creating a directory INSIDE the users regular documents folder? Wouldn’t this circumvent all of windows’ profile management? Like, those additional directories would not be backuped along with the rest of the users profile*, it would not be moved to a data partition if a user tries to split up his system in a OS and data partition** Where would be a suggested location for an additional application data directory that could be added to the document library? (in a safe and clean way) * if not specified separately ** assuming as somehow sane that some user data will always be stored within the OS partition OneDrive, Dropbox, and SharePoint document libraries come to mind. You don’t really want them to roam with a user’s profile because, hey, they already roam a different way, and if you have a greedy synchronization stack (“up to date even before you log in!”) you don’t want them to invalidate a user’s profile. You may even want a different set of permissions (to line up with permissions on the remote site) that wouldn’t be reset by an overzealous “fix” to the user’s profile folder. Granted, you could easily accomplish all this and more with a shell namespace extension, but COM is hard, so let’s just create an icon overlay and go shopping!
https://blogs.msdn.microsoft.com/oldnewthing/20161107-00/?p=94655
CC-MAIN-2018-22
en
refinedweb
If the first run of the type checker succeeds, then running it again but with refined types will presumably also succeed, and will not achieve anything. Whitebox macros are useful when they are needed for the (first) type-checking phase to complete successfully – i.e., they guide the type checker for the right types and implicits to be inferred. What kinds of macros should Scala 3 support? If that would be interesting for the development group, we’d be happy to help run such a more detailed survey on a larger scale. It would definitely be interesting! I was wondering what would the best method here be, and I suppose any automated means of checking the source code would raise both privacy concerns and be hard to do accurately (because of transitive dependencies). So a self-reported usage report would be the way to go. We could ask people which macro libraries they (consciously ) use in their projects, with a division between blackbox/whitebox/annotation macros if the library offers multiple. Maybe @olafurpg has a good starting list of such projects? Plus a free-form area where people could state if they have custom macros, and what are the use-cases. What do you think? Adam When designing the research try to keep in mind that, at least in my experience, a lot of scala codebase is close to Java and written and maintained by people not that familiar with advanced topics such as macro and their differentiation. So if you are interested in real statistics, try to keep questions very specific, so the person who answers them doesnt need to know what is whitebox/blackbox macro or if they’re even using macros in the first place Ah yes, sure, I wouldn’t expect anyone not interested in macros development to know about the difference. What I had in mind is asking about specific features of a library, if it offers both blackbox/whitebox/annotation macros. @adamw But I think that users would likely not know what kinds of macros they were using. At least not the difference between whitebox and blackbox. Annotation/def macros is easier to answer, so this could be a useful datapoint. Maybe it’s easier to ask: Can you give us a shortlist of the macros you use most often (name of macro and library where it comes from)? Given the list, we can do the classification ourselves. This is very true, and I like the question. Perhaps you should even add a list of 10 or 20 “common” macro, because perhaps user don’t really know that what they use is a macro. That’s the counterpart of having macro so nicely integrated, most user may not even they use them. For ex, from an user point of view, it is not evident that: def values = ca.mrvisser.sealerate.values[Whatever] Is a macro call. Yes, you are right, sorry I didn’t express what I had mind clearly enough before :). As I was replying to @Krever, I thought about explicitly asking about usage of a set of known libraries which use macros (shapeless, circe etc.). Here the data set obtained by @olafurpg might be very helpful. Plus a free-form field so that people might add to the list if anything is missing. That looks like a good plan. So we collect a set of libraries that define macros and do are survey which of these libraries are used in their projects? What if a library defines blackbox and whitebox macros, you won’t know which are being used. Also how do you collect the set of libraries? I have authored two open-source Scala projects ( Chymyst and curryhoward), and in both I use def macros. Both projects have an embedded DSL flavor, so most likely my perception is skewed as to what features were “important” in def macros. In brief, here is what def macros do for me - and I don’t see mention of these features in Olafur’s summary: - Enable compile-time reflection: for example, I can say f[A => B => Int](x + y)where fis a macro, and I can use reflection to inspect the type expression A => B => Intat compile time. Then I can build a type AST for that type expression and compute something (e.g. a type class instance or whatever). Note that defmacros do not convert type parameters into AST; only the x+ywill be converted to an AST when the macro is expanded. So, here I am using macros to have a staged compilation, where I use reflection at the first stage, and create code to be compiled at the second stage. (The curryhowardproject uses this to create code for an expression by using a logic theorem prover on this expression’s type signature.) - Inspect the name and the type signature of the expression to the left of the equals sign. For example, in the curryhowardproject I can write def f[A,B](x: A, y: A => B): B = implementwhere implementis a macro. In that macro, I can see that the left-hand side is defining a method called fwith type parameters Aand B, return type B, arguments x, yof specific types. I can also inspect the enclosing class to determine that fis a method of that class, and to see what other methods that class have. Another use of the “left-side inspection” that’s great for DSLs is a construction such as val x = makeVarwhere makeVaris a macro that uses the name xas a string to initialize something, instead of writing val x = makeVar(name="x"). The result is a more concise DSL. It would be a pity to see such useful features disappear when the new Scala 3 macro system is created. On the other hand, I also encountered the breakage in the current def macros, as soon as I tried to transform ASTs. Even a very simple transformation - such as removing if true and replacing { case x if true => f(x) } by { case x => f(x) } - leads to a compiler crash despite all my efforts to preserve the syntax tree’s attributes. It would be good to fix this kind of breakage in the new macros. Another question: I noticed that type class derivation in Kittens and in Shapeless is limited to polynomial functors. Contravariant functors, for example, are not derived, and generally function types such as A => B are not supported for type class derivation. I wonder if this limitation will continue in Scala 3. I hope not! The way it seems to me, ' means “quote,” and is a good choice because it’s a quote symbol but is not used in Scala for strings – actually it’s used for Symbols, which are like code identifiers. So '{ ... } is completely new syntax – a new kind of literal expression for Exprs. On the other hand, ~ is a standard prefix operator in Scala (along with -, +, and !), and normally means “bitwise negation.” So it looks like it’s just a method on Expr that “flips” it from an Expr into an actual value. To summarize for people like me who haven’t done much macro programming and did not understand the docs well: ': Real Thing into Representation of Thing (It now stands for “something”) ~: Representation of Thing into Real Thing (It now is something) Which fits very much into @nafg’s reasoning for ' and ~. The real question is what kinds of macros shouldn’t Scala 3 support? – a whitebox fan ps) but in today’s racially-charged environment, I’m glad blackbox is catching a break for once. Is there an actual Marvel hero named Blackbox? because there oughtta be. Thanks, good to know these use cases. The way you describe it, it looks like these would work in the new system. The whole point of exposing Tasty trees is to allow decompositions like the ones you describe. Hi folks new poster here! just to let you know we (me+NEU/CTU folks) are working on a large-scale analysis of macro usage for exactly this purpose. The idea is to look at how macros (of all kinds) are used in the wild and generate some use cases so we can have an informed decision of how many constructs would be supported by a transition. It seems there is some interest in this already so it would be interesting to hear your thoughts if you haven’t posted already! Hi there! We use macros in couple projects: It allows getting handy and efficient JSON/binary serialization. Here are code and results of benchmarks which compares (in some custom domain) both of them with the best Scala/Java serializers that have binding to Scala case classes and collections: The most interesting feature that we are waiting for is opaque types (SIP-35) that would be work properly with macros. It would allow us to avoid using annotations (like @named, @stringified, etc.) for case class fields to tune representation properties or binding. Instead, we want to use some configuration functions for macro calls which will override defaults without touching sources of data structures, like some of these configuration functions: But instead of strings, they should have some type parameter(s) like it is modeled here:
https://contributors.scala-lang.org/t/what-kinds-of-macros-should-scala-3-support/1850?page=2
CC-MAIN-2018-22
en
refinedweb
In Python, is there a way to call a class method from another class? I am attempting to spin my own MVC framework in Python and I can not figure out how to invoke a method from one class in another class. Here is what I want to happen: class A: def method1(arg1, arg2): # do code here class B: A.method1(1,2) update: Just saw the reference to getattr to get the function object and then call it with your arguments class A(object): def method1(self, a, b, c): # foo methodname = 'method1' method = getattr(A, methodname) method is now an actual function object. that you can call directly (functions are first class objects in python just like in PHP > 5.3) . But the considerations from below still apply. That is, the above example will blow up unless you decorate A.method1 with one of the two decorators discussed below, pass it an instance of A as the first argument or apply getattr to an instance of A. a = A() method = getattr(a, methodname) method(1, 2) You have three options for doing this Ato call method1(using two possible forms) classmethoddecorator to method1: you will no longer be able to reference selfin method1but you will get passed a clsinstance in it's place which is Ain this case. staticmethoddecorator to method1: you will no longer be able to reference self, or clsin staticmethod1but you can hardcode references to Ainto it, though obviously, these references will be inherited by all subclasses of Aunless they specifically override method1and do not call super. Some examples: class Test1(object): # always inherit from object in 2.x. it's called new-style classes. look it up def method1(self, a, b): return a + b @staticmethod def method2(a, b): return a + b @classmethod def method3(cls, a, b): return cls.method2(a, b) t = Test1() # same as doing it in another class Test1.method1(t, 1, 2) #form one of calling a method on an instance t.method1(1, 2) # form two (the common one) essentially reduces to form one Test1.method2(1, 2) #the static method can be called with just arguments t.method2(1, 2) # on an instance or the class Test1.method3(1, 2) # ditto for the class method. It will have access to the class t.method3(1, 2) # that it's called on (the subclass if called on a subclass) # but will not have access to the instance it's called on # (if it is called on an instance) Note that in the same way that the name of the self variable is entirely up to you, so is the name of the cls variable but those are the customary values. Now that you know how to do it, I would seriously think about if you want to do it. Often times, methods that are meant to be called unbound (without an instance) are better left as module level functions in python.
https://codedump.io/share/4bdUUMeN8cFu/1/call-class-method-from-another-class
CC-MAIN-2017-04
en
refinedweb
VOL. 11 NO. 17 THURSDAY, NOVEMBER 23, 2006 50 cents NEWS HEADLINES Bell ringers wanted for the season The Good Samaritan aid Organization needs people to rings bells at its Food Lion collection site starting Nov. 25. Shifts last for two hours. For information or to volunteer, call 875-7743. AIDS WALK - County-wide walk to encourage awareness of AIDS and help for its victims to be held again in Laurel. Page 2 GOING, GOING, GONE! - Old Laurel Post Office goes on the auction block. Page 4 GROWTH IMPACTING SCHOOLS - The Laurel School District will hold a special meeting to discuss impact of growth, No Child Left Behind. Page 17 WILDCATS WIN - The Delmar varsity football team moves to 11-0 with a playoff win over Hodgson last week in Delmar. The Wildcats will visit Caravel in the semifinals this week. Page 41 ALL-CONFERENCE - Laurel and Delmar athletes are named to the fall Henlopen All-Conference teams. See first team photos starting on page 41. GOING TO FLORIDA - Sussex Tech senior Brittany Joseph of Laurel will attend Florida State University where she’ll play softball. Photo page 42, story page 46 THANKSGIVING - The Star office will be closed Thursday and Friday for Thanksgiving. $500 HOLIDAY GIVEAWAY See page 52 for details 31 Shopping Days until Christmas INSIDE THE STAR © Business . . . . . . . . .6 Bulletin Board . . . .22 Church . . . . . . . . .26 Classifieds . . . . . .32 Education . . . . . . .54 Entertainment . . . .30 Gourmet . . . . . . . .11 Growing Up Healthy15 Health . . . . . . . . . .13 Letters . . . . . . . . . .53 Lynn Parks . . . . . .21 Mike Barton . . . . . .57 Movies . . . . . . . . . . .7 Obituaries . . . . . . .28 Opinion . . . . . . . . .58 Pat Murphy . . . . . .39 People . . . . . . . . . .50 Police . . . . . . . . . .37 Snapshots . . . . . . .56 Socials . . . . . . . . .57 Sports . . . . . . . . . .41 Tides . . . . . . . . . . .59 Todd Crofford . . . .27 Tommy Young . . . .45 Weather . . . . . . . . .59 PREPARING COMMUNITY MEAL - Volunteers spent Saturday, Nov. 18, at United Delaware Bible Center in Laurel preparing Thanksgiving dinners for needy Laurel community members. This is the third year of the dinners. Evonette Gray, Margo Hitchens, Donald Hitchens, Devon Jones, Thelma Jones, Michael Jones, Myra G. Elzey, Grace Mills, Rosemary Martin, Ida Morris, Elizabeth Carter, Marla Morris, Bertha Hitchens, Teri Vann and Darlene Albury. See story, page 18. Photo by Pat Murphy Discovery project draws opposition By Lynn R. Parks One by one, residents whose homes are near the site of the proposed Discovery project begged the Laurel Town Council Monday night to postpone any decision on the project until further studies can be done. “I ask that you table this for one year to investigate the negative impacts of this massive development,” said W. D. Whaley, president of the newlyformed Sussex County Organization to Limit Development Mistakes (SCOLDM). “One year would give you the time to work out the details about how this would impact the environment, schools, water and sewer services, trash, noise and commercialism in our community.” “I know that you’ve got the best interests of Laurel at heart,” former Mayor Dick Stone told the council members. “But the scope of this project boggles my mind. I hope that you’ve gotten some opinions from qualified people who can see the possible pitfalls in this for Laurel. This kind of money, we just don’t have too much experience with it. And the kinds of people you are dealing with aren’t the kinds of people we have dealt with before.” Discovery is proposed for nearly 500 acres on U.S. 13, near the former site of the Laurel Drive-In. Developers are Ocean Atlantic, Rehoboth Beach, and the David Horsey family, Laurel. Monday night’s public meeting, held in the Laurel Fire Hall, addressed two questions: whether the land, and the Car Store property next to it, should be annexed into the town and whether, if annexed, the property can be developed under the town’s Large Parcel Development zoning. About 200 people attended the hearing. Both the Discovery property and the Car Store property are included as possible annexation areas in the town’s Comprehensive Plan, which is approved by the state. A review of the project by the state’s Office of Planning, completed in September, said that the state has no objection to annexation and development of the land. “The state views these parcels as a future part of the town of Laurel and has no objections to the proposed rezoning and development of this parcel in accordance with the relevant codes and ordinances,” the report said. The state did, however, have several objections to the plans as they stand. (See related box.) Doug Warner with the architectural firm Element Design Group, Lewes, said at the public hearing that the project would contain about 1,400 homes as well as more than 1 million square feet of retail space. Discovery would have two stadiums, one with 12,000 seats and the other with 6,000 seats. For comparison, Perdue Stadium in Salisbury has 5,200 seats. Wilmington’s Frawley Stadium in which the Blue Rocks play has 6,500 seats. There would also be two theaters, an amusement park, hotels, parking garages and a number of non-profit facilities. “This is too large-scale for what Laurel needs now,” said Monet Smith, Laurel. “We can’t fill the retail space that is downtown now. We can’t fill Discountland. The old Salisbury Mall is sitting empty. Downtown Salisbury is a beautiful area but it is vacant.” “We need to build on the town that is already here,” added Leslie Carter. “This will create sprawl and do nothing for our existing town center.” But Discovery is exactly what Laurel needs, said area businessman and former head of the Sussex County Economic Development Office Frank Continued on page 5 PAGE 2 SOUTHERN STATES 20689 Sussex Highway, Seaford, DE 302-629-9645 • 1-800-564-5050 Mon.-Fri. 8-6, Sat. 8-4 Stor e… !” m r a F alor e G han a t s t e f r i o “M tmas G s i r h C e We h a v New Items This Year Minnetonka Shoes Leanin’ Tree Cards Jewelry Carhartt Clothing Wolverine Hunting Supplies Breyer Collectibles Largest Selection Around Flags, Candles, Plus Warmers Your Pet Headquarters Science Diet - Dog Sweaters, Coats, Toys, Treats & Much More MORNING STAR ✳ NOVEMBER 23 - 29, 2006 Laurel park will host annual observance of World AIDS Day, Dec. 1 HIV/AIDS seems to be less and less on The Sussex County AIDS Council the minds of Americans and Delawareans. (SCAC) will hold its third annual World However, the number of HIV/AIDS cases AIDS Day observance at the Downtown continues to increase. Laurel Park at 6:30 p.m. on Friday, Dec. In Delaware, about 3,500 people have 1. The public is invited. been diagnosed with AIDS and nearly Each year on World AIDS Day, hun1,500 have died from the disease since the dreds of people in Sussex County, and first cases were reported in 1986. Since hundreds of thousands of people around the world, join together to remember those tracking began in 2003, more than 1,100 people in Delaware have tested positive lost to AIDS and to renew the public’s for HIV. promise of support for those living with “Each year on and at-risk for this day we pause to HIV/AIDS. remember and celeSCAC’s World ‘World AIDS Day reminds us all brate the lives of AIDS Day obserthose affected by vance will begin that HIV has not gone away, and HIV/AIDS,” said with a brief program that there are many things still to Wade Jones, at the Downtown HIV/AIDS prevenLaurel Park. This be done to educate about HIV, tion program manwill feature special ager with SCAC. comments, music reduce the rate of HIV infection, “World AIDS Day and “The Reading of reminds us all that the Names,” which and provide needed support for HIV has not gone is one of the most away, and that there moving parts of the those in Sussex County living are many things still evening’s program. to be done to eduThe names of with HIV/AIDS.’ cate about HIV, repeople lost to AIDS, duce the rate of HIV submitted to SCAC infection, and proover the past several Wade Jones vide needed support years, are read HIV/AIDS prevention program for those in Sussex aloud. Names may manager, Sussex County AIDS County living with be submitted for this Council HIV/AIDS.” reading by calling the SCAC office at The Delaware (302) 644-1090 or Division of Public by e-mail at info@scacinc.org. Health, Kent Sussex Counseling Services, Following the program, a Candlelight and LaRed Medical Center are participatWalk of Remembrance will move along ing with SCAC in this year’s World AIDS Delaware Avenue to the Janosik Park Day observance in Laurel. Sponsors of the where walkers may pause to toss flowers evening’s program include the Town of into Broad Creek in memory of those lost Laurel, Mercantile Bank of Rehoboth to AIDS. Accents Florist and Givens Beach, Pizza King in Laurel, and Subway Flowers & Gifts, both in Laurel, have doin Seaford. nated flowers for this special rememSCAC provides supportive services, inbrance. cluding emergency financial assistance for The walk will conclude back at the housing, transportation to medical apDowntown Laurel Park. Walkers are invitpointments and supplemental food, to ed to the nearby Centenary United more than 200 people in Sussex County Methodist Church afterward for refreshliving with HIV/AIDS. SCAC also eduments and fellowship. cates the public about HIV infection and It has been more than 25 years since its prevention, and advocates for clients the first case of AIDS was diagnosed and experiencing hardship. HIV was identified. Today, the issue of 500 W. Stein Highway • FAX (302)629-4513 • 22128 Sussex Highway • Seaford, DE 19973 • Fax (302)628-8504 (302)629-4514 • (302)628-8500 • (800)966-4514 • w Ne g! tin Lis Large in-town colonial - 4 BRs, 2 full & 2 half baths, huge master w/fireplace & cedar closet. Updated kit., great formal DR, all on a tidy well-landscaped yard with a view of the golf course!!! A true must see! Home Warranty included. $279,000 MLS # 541133 Happy Thanksgiving Karen Hamilton Member of President’s Club karensellshouses@comcast.net MORNING STAR PAGE 3 Castle announces two grants for volunteer firefighter assistance Congressman Mike Castle recently announced two key grants for volunteer firefighter assistance totaling $268,900. The first award of $134,950 will go to the Delaware Volunteer Firemen's Association through the Staffing for Adequate Fire and Emergency Response (SAFER) program. This award is administered by the Department of Homeland Security's Office of Grants and Training in cooperation with the U.S. Fire Administration. This grant will be used for strategic planning in the Delaware Volunteer Firefighter Association's Recruitment and Retention programs which marks the first part of a proposed four-year plan. The second grant of $133,950 goes to the Townsend Fire Company for operations and safety. They will purchase various pieces of protective clothing to outfit 50 firefighters and EMS personnel during a fire or rescue. This clothing includes gear to protect firefighters from blood born pathogens and any bio-hazard materials, gloves and headgear for protection from the heat and protective boots. Denn releases Guide to Insurance Issues for Military Personnel Insurance Commissioner Matt Denn marked Veterans Day with the release of a new guide to insurance issues for military personnel. “I developed this guide to address some of the unique and specific situations that may be faced by members of the military whether active duty, Reserves or the National Guard when it comes to insurance,” Commissioner Denn said. The Instant Insurance Guide: Military includes topics such as: the war exclusion that is part of many life insurance policies; the vacancy clause that might be triggered under a homeowners insurance policy if a home is left vacant during an extended deployment; and the possibility of suspending portions of auto insurance coverage during deployment. The guide can be found online at under military personnel or printed copies can be obtained by calling 1-800-282-8611. The guide is part of a series of insurance guides including auto, homeowners, life, health, and people with disabilities published by Commissioner Denn. Your Appliance Headquarters BURTON BROS. HARDWARE, INC. The Area’s Oldest Hardware Store” 407 High St., Seaford, DE 302 629-8595 PAGE 4 MORNING STAR ✳ NOVEMBER 23 - 29, 2006 Old post office building brings $304,500 at auction Buyer is with an area insurance company By Lynn R. Parks “Somebody’s going to own an old fallout shelter in about five minutes,” said auctioneer Doug Marshall. That was at 5:25 p.m. last Thursday, about two minutes before the auction of the old Laurel Post Office on Central Avenue was set to start. It took longer than five minutes. In fact, the auction, during which four people submitted bids, was the one of the longest single-parcel auctions Marshall had ever conducted. But at the end, about 34 minutes after the first call for a bid went out, Ned Fowler of The Insurance Market was the new, proud owner of an old fallout shelter. Buying price: $304,500. Fowler, the only bidding person among several representatives of The Insurance Market present at the auction, said that the building would be used by the company. He declined further comment. The old post office was built in 1935. Kevin and Pat Taaffe bought the building in 2002 and renovated it into five offices and one office suite. Pat Taaffe used the suite for her accounting firm, Edwards Taaffe and Company. She retired and sold her firm last year to George T. Walker, who renamed it G. T. Walker and Associates. That firm will move in December to an office in Laureltowne. Marshall started the auction, which was held in the post office lobby, promptly at 5:27 p.m., as promised. Bidding started at 5:45 p.m., after Marshall explained the terms of the sale. “It doesn’t get any better than this,” he said, then asked for an opening bid of $500,000. After getting no response, he asked for $400,000. Then $375,000. $350,000. $325,000. And so it went, until he was down to $175,000. “The lower they start, the more they bring,” he cautioned his audience. Finally, someone tossed out a bid: $100,000. “We’ve got a long way to go this way,” Marshall said. And a long way it was. The bid jumped to $130,000, then in $10,000 increments to $160,000. Fowler’s first bid was for $165,000. Slowly it crept up, by $5,000 then. Ned Fowler (right) of The Insurance Market receives a round of applause after making the high bid for the old Laurel Post Office building. Below, those gathered for the auction listen to instructions from auctioneer Doug Marshall, right. Photos by Pat Murphy Kevin Taaffe, former owner of the old Laurel Post Office building, looks over the main counter as the building is auctioned. The sale Thursday evening brought $304,500. Photo by Pat Murphy $2,500. “I thought I’d be at $400,000 by now,” Marshall said after Fowler bid $197,500. After Fowler bid $257,000, Marshall made his third and final call for more bids. The only remaining bidder, Fred Tana, a Lewes-area developer who was placing bids by phone, threw $500 more dollars in the pot, bringing the bid to $257,500. The bids went up from there in $500 or $1,000 increments, Tana taking his time and Fowler never hesitating. “Thanks for making me work this hard,” Marshall said when the bid stood at $295,000. “I sold a $9 million piece of land and it took less time than this,” he said after Fowler agreed to $303,500. At 6:19, Tana told his proxy that he was finished. Marshall, after receiving no further bids, declared the property sold. The nearly two dozen people who had watched the proceedings gave Fowler a round of applause. “When we got over $300,000, I felt a lot better than I did when I was floundering around at $199,000,” Marshall said Friday morning. “I was happy to see that number.” Getting Married Soon? Know Someone Who Is? Stop By The STAR Office 628 W. Stein Hwy., Seaford (Next to Medicine Shoppe) For A FREE Copy of Our Bridal Planner 629-9788 “31 Years Build ing A Heritage 555 North Hal Seaford, DE l St. 19973 629-5698 of Quality and Trust” Hours: M-Th 10-5:3 Fri. 10-8; Sat. 10 0 -2 MORNING STAR ✳ NOVEMBER 23 - 29, 2006 Calio says Laurel needs to grow Continued from page one Calio. “I strongly believe we need a new direction and a chance to grow,” he said. “This could be a new beginning for Laurel and will bring people here who will contribute to the community, not be a drain on society.” Calio urged the council, of which his son, Chris, is a member, to OK the development. “Do what other councils before you have not had the courage to do,” he said. “See beyond your noses and say that things have to change around here.” Larry Calhoun also spoke in favor of the project. “Laurel should be moving along a little bit better than it is,” he said. “I might not live to see the end of this project, but it will be here for my children and my grandchildren and for the future of this community.” Calhoun said that the town can use the revenue that property taxes from Discovery would generate. “I am so tired of living in a town where we need more revenue to fix things,” Calhoun said. But the vast majority of people at the hearing were opposed to the project. At the start of the hearing, when Mayor John Shwed asked people who were for the project to raise their 2.19. erate up to 10,000 jobs. “Do we really need more shopping in the area?” she added. “Do we really need another Target?” Many people talked about how the area will be changed with Discovery. “With this project, Laurel will be changed forever and the results will be disastrous,” Carter said. Randy Meadows, who at a previous meeting showing pictures of wildlife in the fields around his home, once again appealed for conservation of the land. “If this goes through, I’m going to be looking out my kitchen window at a parking garage,” he said. “How would you guys like that, after looking out at a beautiful field?” “If living in a rural area is where you’re going to be happy, look at what this is doing,” said Ray Emory. “I didn’t buy my land to be living in a town. But the town is coming to me.” For your information: The town council will discuss the annexation of the Discovery property and its development under the large parcel zone at its next meeting, Dec. 4. If the council votes on the proposal at that time, it would only be on a first hearing. A final vote on the proposal could come 30 days following that initial vote. Office of Planning recommends some changes in project By Lynn R. Parks In its review of the proposed Discovery project, completed Sept. 20, the state’s Office of Planning, while voicing no objection to annexation and development of the property, made several recommendations for modification of the plans. They include: Additional buffers around some stormwater management ponds Elimination of proposed intersections that are not at right angles Better protection of wetlands Realignment of tax ditches to eliminate conflicts with rights-of-way Better protection of forested areas Inclusion of a walking trail system Landscaping to buffer nearby historic properties Implementation of a program to plant trees to replace those that are lost to construction The state wants to be able to explore the site, to deter- mine if it is home to any endangered plants or animals. A foraging area for the Cooper’s hawk, a state-endangered bird, is nearby and could extend into the Discovery property as well, the state says. “Efforts to reduce forest fragmentation should be made,” the report says. The developer was also asked to develop a mechanism to ensure that the 400 homes that are to be set aside for first-time home buyers actually be accessible to that group. “Often proposals come through with units set aside for first-time homebuyers,” the report says. “However, when the units are actually built, their price is out of reach for this target population.” As for area schools, the report estimates that Discovery will mean an additional 700 students in the Laurel School District. “The district does not have adequate student capacity to accommodate the additional students likely to be generated from this development,” it says. The report encourages the developers to talk with the district and to consider donation of land for construction of a school. The complete report is available at the website. SAVE WE DO IT ALL When You Pay Cash On Delivery Or Pre-Pay For Your Fuel Delivery Call Toll Free Carlton B. Whaley & Sons did a really nice job; we are very pleased. Professionally done! Doug & Susan Pusey (866) 423-0781 1616 NORTHWOOD DR., SALISBURY, MD 21801 Serving Wicomico, Worcester & Somerset Counties In Maryland & Sussex County Delaware “We couldn’t ask for anything better, there were no hidden costs. We are well pleased. Doug & Pia Calhoun COLORED STEEL We Also Carry Colored Metal and Trim FINANCING AVAILABLE DESIGNED, BUILT & PRICED RIGHT CARLTON B. WH WHALEY ALEY & SONS 302 875-2939 LAUREL, DE LETS TALK BUILDINGS! - JUST 4 MILES EAST OF LAUREL. RESIDENTIAL & COMMERCIAL $ hands, about 10 hands went into the air. When he asked those who were opposed to the project to raise their hands, more than 100 did so. Several people came to the hearing to get more information about the project. David Edwards Jr. had a list of questions focused on taxes and infrastructure. “When will the new taxes begin to flow into the town’s treasury?” he asked. He also wondered if it would be more cost effective to allow Discovery to use a proposed county sewer rather than the town’s wastewater treatment plant. On several occasions, Shwed told those with questions that he would respond to them later. “At this point, you should have the answers to all of these questions,” countered Sylvia Brohawn. “You need to slow this down and get more information so you can give us proper answers.” Elly Shacker listed a number of studies she would like the town to do before OK’ing Discovery. They included analysis of crime increases that would come with the growth, whether area hospitals are equipped to handle in increase in population and where the people will live who will work in the Discovery stores. The developers have estimated that the complex will gen- PAGE 5 MORNING STAR ✳ NOVEMBER 23 - 29, 2006 PAGE 6 Business Mountain Mudd is spreading on the peninsula By Cindy Lyons Taylor That little green and white cabin replica with the welcoming lighted trees, sitting in the parking lot of the Ace Hardware store in Seaford, is not Santa’s house. It is Mountain Mudd, a franchise that offers specialty coffee. General Manager Mike Riley says business is “going well” and the response has been favorable, once customers realize what it offers. He’s amused by the comments he hears when informed that some people thought it was Santa’s spot, among other things. “They’re catching on,” he says. Riley and his family also operate the coffee booths in Millsboro and in Georgetown. By mid-November, Mountain Mudd will open a fourth site in Laurel on Route 13, in the parking lot of the former Discountland. Mountain Mudd coffee is beginning to attract attention here, as it has in the Mid West. “It’s a growing trend here on the Shore,” Riley says, commenting that he loves the fact that he can “get espresso now, without driving to the beach.” He adds that it is the quality of the coffee, along with the convenience, that keeps customers coming back. They tell him it’s the “best they’ve ever had.” Riley says that acceptance in the towns has been great. People have already approached him with ideas about doing fundraisers for schools, and other causes. Mountain Mudd supported a fundraiser for a young cancer patient in October. The idea to bring Mountain Mudd to the area originated with Riley’s father, John Riley, whose business connections brought his attention to the franchises. He witnessed the demand for the product, so he decided to introduce it here. It’s a family affair. Riley says that the large family, which includes 11 siblings, operates the core of the business, but they have hired other help. His mother and three sisters are involved in the day-to-day aspects, but the entire family helps out, including his wife, a teacher in the Laurel School District. “Sometimes it gets crazy, but it’s fun,” he says. From the menu, customers can choose any flavor combination, hot or iced. Flavors include Milky Way, and other popular candy bar flavors, tropical flavors, and traditional flavors like hazelnut, mint, mocha, or vanilla, and much more. Brewed tea is included on the menu, hot or iced, in flavors like peppermint and lemon. Riley points out that frozen drinks are also available in over 20 flavors. Many varieties of beverages are available. “Conservative or crazy, the combinations are endless,” he says. Each day there are different specials. Individually wrapped muffins and biscotti are sold as accompaniments. All of the beverages are made with water from the Georgia House that has undergone a hi-tech purification system. Customers return, often with big orders. Some local offices, including those of the medical profession, bring lists for the whole office group. Mountain Mudd was founded in Montana, and now the little “kiosks,” as the company calls them, in 22 states. The coffee is oak-roasted following the Italian tradition of master roaster Carlo Di Ruocco, giving it a rich, smooth taste that is without harsh acidity. The Riley’s goal is to bring more and more Mountain Mudd kiosks to the area, especially in the beach resort area. More are moving into spots in southern Maryland, with Salisbury a site focus. Mountain Mudd is open at all sites from 6 a.m. to 6 p.m., except in Seaford, where hours are 7 a.m. to 6 p.m. The business is closed on Sunday. Delmarva Poultry Industry creates electric buying group Delmarva Poultry Industry, Inc.(DPI), the trade association for the peninsula's broiler chicken industry, is creating an electric buying group to help its members lower their electric bills. "Rising electric bills, caused by rising rates and greater consumption, have created a difficult situation for many DPI members, particularly poultry growers," noted DPI president Roger Marino. "In response to members' concerns, we began an effort in September Inflation adjustments announced Personal exemptions and standard deductions will rise, tax brackets will widen and income limits for IRAs will increase in 2007, announces the Internal Revenue Service. By law, the dollar amounts for a variety of tax provisions must be revised each year to keep pace with inflation. Key changes affecting 2007 returns, filed by most taxpayers in early 2008, include the following: • The value of each personal and dependency exemption, available to most taxpayers, will be $3,400, up $100. • The new standard deduction will be $10,700 for married couples filing a joint return (up $400), $5,350 for singles and married individuals filing separately (up $200) and $7,850 for heads of household (up $300). •. to design a program to help all our members throughout Delmarva. Unfortunately, because of legal and market conditions, we will be unable to offer lower electric rates for many of our members, but Delmarva Power customers in Delaware and Maryland should be able to benefit," president Marino stated. DPI has mailed information packets to more than 2,000 members and will hold educational meetings in the coming days to inform members about the program and give them an opportunity to enroll. Persons interested in attending any of the meetings must make reservations by contacting the DPI office. A meeting to discuss the effort will be held on Tuesday, Nov. 28, 8:30-10:30 a.m. at the University of Delaware Research and Education Center, 16684 County Seat Highway, Georgetown. DPI hopes to go to the wholesale electric market in mid-December and seek bids from interested suppliers. On a date to be determined, individual DPI members will accept or reject the submitted bid. More information about the process is Visit Us On The WEB! “The ! Store” S u p e rOffice 600 Norman Eskridge Highway Seaford, DE 19973 (302) 629-6789 available on the DPI website. Individuals and businesses that are not DPI members can join by Dec. 1 to qualify for this program. For membership information or to register for one of the educational meetings, persons can contact the DPI office at 800878-2449. PAGE 7 MORNING STAR ✳ NOV. 23 - 29, 2006 Diamond State Drive-In Theater US Harrington, Del. 302-284-8307 SCHEDULE SHOWN IS FOR WEDNESDAY 11/22 THRU SUNDAY 11/26 WEDNESDAY THRU SUNDAY Deck The Halls . . . . . . . . . . . . . . . . . . . . . . .PG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7:00 Happy Feet . . . . . . . . . . . . . . . . . . . . . . . . .G . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8:45 SATURDAY Deck The Halls . . . . . . . . . . . . . . . . . . . . . . .PG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5:30 Happy Feet . . . . . . . . . . . . . . . . . . . . . . . . .G . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7:15 The Santa Claus 3: The Escape Claus . . . . .G . . . . . . . . . . . . . . . . . . . . . . .Sat. 7:00, Sun. 7:30 SUNDAY Deck The Halls . . . . . . . . . . . . . . . . . . . . . . .PG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5:30 Happy Feet . . . . . . . . . . . . . . . . . . . . . . . . .G . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7:15 Clayton Theater Dagsboro, Del. 20 732-3744 SCHEDULE SHOWN IS FOR FRIDAY 11/24 THRU THURSDAY 11/30 CLOSED MON. & TUES. The Santa Clause, The Escape Claus . . . . .G . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7:30 Regal Salisbury Stadium 16 2322 N. Salisbury Blvd., Salisbury, MD, 410-860-1370 The Movies At Midway Rt. 1, Midway Shopping Ctr., Rehoboth Beach, 645-0200 UPDATED SCHEDULE WAS NOT AVAILABLE AS OF PRESS TIME FOR SUBSCRIPTION SAVINGS COUPON or CHANGE OF ADDRESS Fri., Sat., & Sun., Nov. 24, 25, 26th 20% DISCOUNT ALL 3 DAYS • Refreshments Door Prizes - Free House Plant 1 plant per family - discount excludes live & cut trees Compare Our Quality, Variety & Low Prices! TREES! The Freshest Cut and Live Trees on the Shore o 100’s T e s o Cho m Fro including Douglas Fir, Fraser Fir, remium P White Pine and Blue Spruce. Grade These beautiful trees arrive Nov. 24th LOWEST PRICES ON THE SHORE FOR POINSETTIAS UPDATED SCHEDULE WAS NOT AVAILABLE AS OF PRESS TIME OPEN HOUSE WE GROW OUR OWN! ALL COLORS Priced From $1.75 & Up! 4 1/2” Pot 3-5 Blooms: $2.75 Ea. or 2 Pots for $5. 5” Pot - 4-8 Blooms: $4.25 Ea. or 2 Pots for $8. LARGER SIZES ALSO AVAILABLE • Hundreds of custom made • Foliage Plants - All wreaths and artificial Varietes 95¢ & Up poinsettieas for Home or • Natural Wreaths & Memorials Roping - All Prices • Hanging Baskets - All • From our Gift Shop: varieties The lowest prices in • Christmas Cactus, the area on Cyclamen, Ornamental Christmas Wreaths, Peppers, African Violets, Arrangements, Rieger Begonias, Silk & Dried Ferns, etc. Arrangements. May you enjoy an abundance of blessings this Thanksgiving. We are sincerely grateful for your continued and loyal support. Largest and Healthiest Selection on the Shore The Star THOUSANDS TO CHOOSE FROM! AUTHENTIC MEXICAN BUY ONE LUNCH Menu Items 1-13 or BUY ONE DINNER CO RE UPO QU N IR ED Combo Items 1-21 GET SECOND MEXICAN BEERS DOMESTIC BEERS DAILY DRINK 501 N. Dual Hwy., Seaford, DE - Old English’s Bldg. SPECIALS 302-628-9701 1/2 PRICE EVERY MONDAY Cactus Margaritas $2.50 REG. $4 Lime Only Open Mon. - Fri. 11 am - 2:30 pm (Siesta) 5 pm - 10 pm, Sat. Noon to 10 pm, Sun. Noon - 9 pm ENTER TO WIN STAR’S $500 GIVE-AWAY SEAFORD LOCATION Cambridge, MD 315 Sunburst Hwy. 410-228-7808 Ocean City, MD 12534 Ocean Gateway, 410-213-7324 Salisbury, MD 1045 S. Salisbury Blvd. 410-749-4303 Easton, MD 7813 Ocean Gateway, 410-770-8550 Chestertown, MD 715 Washington Ave. 410-810-1952 JEFF’S GREENHOUSES & GIFT SHOP Main St., Bethel, DE 302- 875-3420 • 1-800-276-3420 MONDAY THRU SATURDAY 8-5 SUNDAY 12-4 DON’T MISS OUR OPEN HOUSE TangerOutlets ® after thanksgiving sale Biggest OUTLET SAVINGS of the SEASON! NOVEMBER 24 - 26 Friday, November 24- 8am-9pm Saturday, November 25- 9am-9pm Sunday, November 26- 11am-7pm Select stores open even earlier. Log on to for a complete list of store specials & hours. buy direct from over 130 brand name outlets FREE SHUTTLE SERVICE FRIDAY-SUNDAY AMONG TANGER’S 3 LOCATIONS ON COASTAL HIGHWAY ROUTE 1 Rehoboth Beach, Delaware ❘ Route 1 to Rehoboth Beach ❘ 302-226-9223 MORNING STAR ✳ NOVEMBER 23 - 29, 2006 PAGE 9 OHS awards the Smart Drive program creator The Delaware Office of Highway Safety recently presented businessman Julian "Pete" Booker with a national safety award for his efforts to reduce teen crashes in Delaware at the YELL (Youth to Eliminate Loss of Life) annual conference in Dover. Booker was one of five individuals or groups of people selected to receive the Governor’s Highway Safety Association (GHSA) Peter K. O’Roarke Special Achievement Award. The O’Roarke Special Achievement Awards recognize achievements in the field of highway safety. OHS nominated Booker for the O’Roarke Award for his work in the creation and implementation of the Smart Drive program. Smart Drive is an educational program for 11th and 12 grade high school students which focuses on re-enforcing safe driving behaviors and techniques originally learned in driver education. Booker, the president and CEO of Delmarva Broadcasting Company, came up with the concept for the program in 2004 after several fatal crashes involving teen drivers. One of those crashes hit close to home as one of the victims was a friend of his son. So Booker brought together a partnership of several safety "experts" including OHS, the Delaware State Police, the Attorney General’s Office AAA Mid-Atlantic, the Delaware Safety Council and driver education teachers to develop a format for a program to remind teen drivers about how to make smart and safe decisions behind the wheel. The result was a series of monthly modules involving both written and hands on activities that must be completed by both the student and parent. Topics range from impaired driving to driving in rain and snow conditions. A wide array of prizes and incentives were available to those who participated in and completed the program, including a special concert staged by Delmarva Broadcasting. Other unique features of the program include a student advisory panel formed at each participating school, as well as the creation of the Smart Drive website for schools and students to find additional support and information. Originally rolled out assembly style in 16 Delaware high schools in 2005, Smart Drive has quickly expanded to 32 high schools statewide this year. Smart Drive is primarily privately funded, with Delmarva Broadcasting leveraging most of its resources to keep the program afloat. The Smart Drive safety partners, including OHS, provided not only time but also informational and incentive support to the program. To learn more about the program, visit. The GHSA is the states' voice on highway safety. The nonprofit association represents the highway safety offices of states and territories. These offices work to change the behavior of drivers and other road users in order to reduce motor vehicle-related deaths and injuries. Areas of focus include: occupant protection, impaired driving and speed enforcement, as well as motorcycle, pedestrian and bicycle safety, and traffic records. The association provides a collective voice for the states in working with Congress and the federal agencies to address the nation’s highway safety challenges. $127 million in bonds sold The Department of Transportation (DelDOT) announces the successful sale of $127 million of Delaware Transportation Authority bonds, and an upgraded bond rating from Standard & Poor’s. The transportation System senior Revenue Bond Series 2006 were issued to provide additional funds for the capital transportation program. UBS Securities LLC was the winning bidder among the seven underwriting syndicates that participated. The True Interest Cost (TIC) was 4.10 percent for the sale. The bonds were upgraded from AA to AA+ by Standard & Poor’s, and remained at last year’s Aa3 rating by Moody’s. This upgraded rating essentially means we can borrow for less, which saves the taxpayer money in the long run. Both rating agencies also reported a “stable” outlook for the transportation system revenue bonds. Regarding the Bond sale, DelDOT secretary Carolann Wicks stated, “This reaffirms that DelDOT has a sound and well managed financial plan. Still, we have implemented a variety of new and improved internal measures that will ensure our ratings remain solid and our bond sales remain significant.” 500 W. Stein Highway • FAX (302)629-4513 • 22128 Sussex Highway • Seaford, DE 19973 • Fax (302)628-8504 (302)629-4514 • (302)628-8500 • (800)966-4514 • Wishing you a happy and bountiful Thanksgiving. I am thankful for your business and look forward to helping you in the future. Sue Bramhall CRS, ABR, CIPS, GRI, SRES 500 W. Stein Hwy. (Rt.20 W.), Seaford, DE sue@suebramhall.com 629-4514 EXT. 246 MORNING STAR ✳ NOVEMBER 23 - 29, 2006 PAGE 10 Delaware landfills will make gas from decomposing organic waste Two solid waste landfills are about to take center stage in the ultimate recycling project – using the landfill gas generated from decomposing organic waste to produce renewable energy. The landfills, located in Kent and Sussex Counties, are owned and operated by the Delaware Solid Waste Authority (DSWA). “Reducing the burden on the environment and recycling all possible waste products is central to DSWA’s mission,” said N.C. Vasuki, DSWA’s CEO. “The landfill gas-to-energy projects successfully utilize a resource that would have otherwise been wasted, and in the process, produce benefits for the landfill, the environment, and the local community.” DSWA had the vision to recycle the landfill gas in a beneficial way, and selected Ameresco, an energy service company with an expertise in landfill gas project development, to make that vision a reality. Ameresco developed, owns, and operates the two multi-million dollar landfill gasto-energy power plants at DSWA’s Southern and Central Landfills. Thousands of tons of naturally occurring methane, a potent greenhouse gas, will now be captured and converted into “green” electricity. “With these two new plants coming into service, DSWA once again demonstrates its vision and commitment to environmental leadership” said George P. Sakellaris, President and CEO, Ameresco. “Ameresco is proud to be a part of such a forward looking project, especially one that has such tremendous community and environmental benefits.” Developing new sources of renewable energy will lead to improved local and global air quality by offsetting the need to use other, more polluting fuels for energy. The Delaware projects will reduce direct and indirect greenhouse gas emissions by approximately 60,000 tons a year, a local environmental benefit equivalent to removing more than 60,000 cars from Delaware’s roads, or offsetting the use of over 1,500 rail cars of coal annually. Until now, the methane gas was safely extracted at the landfill sites through wells and pipes buried in the landfills and combusted in a flare. The gas will now be diverted from the flare to the landfill gas plants equipped with specialized GE/Jenbacher engines designed to burn nonpipeline gases such as landfill gas. The seven engines are expected to produce a combined 7.4 megawatts (MWs) of electricity – enough to meet the annual power needs of over 4,500 homes. Constellation NewEnergy, North America’s largest competitive power supplier, has signed a 10-year agreement to purchase the power from the two plants. “Constellation NewEnergy is excited to partner with DSWA, Ameresco, and GE to bring these renewable energy sources online,” said Constellation NewEnergy’s Bruce McLeish, Vice President, Wholesale Origination. “The competitive power market in Delaware is expanding rapidly and competition is driving these innovations in renewable energy.” The State of Delaware has a renewable portfolio standard which requires power providers to have 10 percent of their power come from renewable resources by 2019. Northeast Energy Systems, GE Energy’s Jenbacher distributor for the northeast region, provided the engine-generator sets, application engineering, and will provide parts and service support for operations. “Northeast Energy Systems (NES) shares the project partners’ interest in renewable energy project development, and we are proud to deliver the best available technology for green power production,” said Al Clark, Vice President-General Manager. GE’s Energy Financial Services unit is financing the project and noted the positive impact on the environment. “Combining our financing and equipment, the Delaware landfill gas projects demonstrate how GE’s ecomagination initiative is helping customers meet environmental challenges,” said Kevin Walsh, a managing director and leader of renewable energy investments at GE Energy Financial Services, which financed the purchase of the gas-to-energy engines. Ecomagination is GE’s commitment to expand its portfolio of cleaner energy products while reducing its own greenhouse gas emissions. Governor Ruth Ann Minner applauded the public/private partnership and its positive impact on the environment and the State of Delaware. “The launch of these two landfill gas projects marks a new era for alternative energy in Delaware,” Governor Minner said. “By creating more diversity in our energy supply choices, we are setting the stage for improving our environment and our economy.” Richard Pryor, Chairman of DSWA concluded, “Producing green power from landfill gas is a win-win for the environment and the community. And for DSWA, it is the ultimate in recycling. We are proud to partner with these companies and support this visionary project.” C O U N T RY AC C E S S O R I E S & GIFTS 302 875-6922 11465 Sycamore Rd. Laurel, DE 1/2 mile from Rt. 13 Candlelight Open House Friday, Dec. 8th 6-8 pm IT’S CLUCK BUCK WEEKEND Fri., Dec. 8 th - 10 th Trim A Tree & Holiday Decorations Swags & Garland • Ornaments Holiday Flags • Table Decor GIFT IDEAS • Framed Art • Yankee Candles • Gourmet Foods • Stoneware • Lang Calendars We do gift baskets MEN’S NIGHT OUT THURSDAY DEC. 14TH 6-8 PM OPEN DAILY Mon. - Sat. 10 am - 5:30 pm Sunday 12-4 A Little Bit Of Country, Just Down The Road SUSSEX HABITAT BUILDING NEW OFFICE - Senator Thomas Carper joined USDA Rural Development officials for the announcement of funds that will help support a new office location for Sussex County Habitat for Humanity. Through Rural Development’s community facility program, a $650,000 loan will help Sussex County Habitat for Humanity move from cramped office conditions rented on Bridgeville Road to new construction just south of town. USDA Rural Development has over 40 programs to support rural affordable housing opportunities, business development, community facilities, and the environment. Construction is set to begin on the new office in the spring and representatives from Habitat for Humanity are speaking with area builders who may partner with them to lead the project. Volunteers will help build the new office. Over 500 volunteers a year work on their housing worksites. Currently, projects are ongoing in Georgetown, Lewes and Concord Village in Seaford. From left to right in front of their current office in Georgetown is Kevin Smith representing senator Joseph Biden; mayor Michael Wyatt; senator Thomas Carper; Sussex County Habitat for Humanity representatives Sandy Spence, treasurer and Kevin Gilmore, executive director; USDA Rural Development state director Marlene Elliott; and Kate Rohrer representing congressman Michael Castle. MORNING STAR ✳ NOVEMBER 23 - 29, 2006 PAGE 11 For authentic Thanksgiving dinner, don’t forget the corn The history of Thanksgiving cannot be told without acknowledging the influence of the native Indian population. The relationship between Pilgrim settlers and Indians was much more complex than the romanticized popular version but even though the Indians did not fully trust these new arrivals, their religion dictated that they treat all with hospitality and respect. It may have been out of that religious In a bowl, stir together the two cans of sense that the Indians provided the bulk of corn, corn muffin mix, sour cream and the the food for that first Thanksgiving feast. melted butter. Pour into a greased casseCorn was the most important crop of role dish and bake for 45 minutes, or until the northeast Indians. All varieties were golden brown. grown — white, blue, yellow and red — Remove from oven and top with chedand all parts of the plant were used. Husks were braided and woven into masks, moc- dar. Bake for an additional 5 to 10 minutes, or until cheese is melted. casins, sleeping mats, baskets, and cornLet stand for 10 minutes and serve husk dolls. Corncobs were used for fuel warm. and to make darts and rattles. Some of the grain was dried to preserve Corn and Wild Rice Pudding for the winter months in the form of Serves 6 to 8 hominy. Some was ground into corn meal that was used for bread, syrup and pud2 eggs ding. 1 egg yolk The Europeans knew nothing about 1 cup heavy or whipping cream corn before they met the Indians. Today, 2/3 cup milk more farmland in this country is used to 4 ears sweet corn, blanched and kernels grow corn than any other grain. removed from If you want to make your Thanksgiving cobs, about 3 feast more authentic, cups corn add what the Iro1 cup cooked wild quois prayer calls If you want to make your rice “the sacred food, our 3 scallions, finely sister corn.” Thanksgiving feast more chopped enough Here are two corn authentic, add what the Iroquois to make 1/3 cup pudding recipes, one 1 1/2 teaspoon traditional and one prayer calls “the sacred food, our cayenne pepper elegant. Both are 1 1/2 teaspoons salt yummy. sister corn.” 1/8 teaspoon grated fresh nutmeg 1/2 tablespoon butter Paula Deen’s Corn Casserole Serves 6 to 8 Preheat oven to 325 degrees. In a large bowl, combine egg, egg yolk, 1 15 and 1/4-ounce can whole kernel corn, heavy cream and milk and whisk well to drained combine. Add all remaining ingredients 1 14 and 3/4-ounce can cream-style corn except butter and mix well. 1 8-ounce package corn muffin mix (Jiffy Grease a 7- by 11-inch or 8- by 12-inch works well) casserole with the butter. Pour custard in1 cup sour cream gredients into prepared casserole and bake 1/2 cup (1 stick) butter, melted uncovered for 45 minutes, or until custard 1 to 1 and 1/2 cup shredded cheddar is set and golden brown on the top. Serve cheese warm. From Emeril Lagasse Preheat oven to 350 degrees. The Practical Gourmet Visit with Santa 2-4 pm Holiday Open House Sunday, November 26 thth 12-4 Special Arrangements for Thanksgiving and Christmas MYSTERY DISCOUNTS • REFRESHMENTS DOOR PRIZES • A ROSE FOR THE LADIES 07 FREE 20 rs Calenda John’s Four Season’s Flowers & Gifts Stein Hwy. at Reliance, John Beauchamp 302 629-2644 410 754-5835 628-9000 302 107 Pennsylvania Ave., Seaford, DE 19973 REDUCED!!!!! Picture yourself in this lovely rancher for the holidays!!!!!! 4 bedroom, 2 bath, new kitchen, new flooring, new roof, new windows and much more. This lovely home is located on the west side of Seaford on 1.19 acres. Also has a very large workshop/garage with many possibilities. $244,900 MLS 537713 BEAUTIFUL NEW CONSTRUCTION IN SEAFORD. 3 Bedroom, 2 bath, vaulted ceilings, kitchen appliances, gas fireplace and more. Construction to start ASAP. Being built by a wellknown very reputable local company. Call today for complete spec sheet $220,500 MLS542647 WONDERFUL INVESTMENT 0R 1ST TIME BUYER HOME!!!!! 3 bedroom, 1.5 bath, many possibilities with a little TLC. New roof, new vinyl….Priced to sell. $99,330 MLS 542637 BEAUTIFUL PARCEL IN LAUREL, improved by a very well-kept 2000 Clayton mobile home. Over 5 acres in the Delmar School District. 3 bedroom, 2 bath split floor plan. Property also has spacious 26x24 detached garage. $198,750 MLS 542632 Wishing you and your family a very happy and healthy Thanksgiving. Dan a Capl an 302-249-5169 BRAND NEW HOMES IN SEAFORD FOR UNDER $200,000!!!!!!!! Wonderful opportunity for the 1st time buyer….3 bedroom, 2 bath, lovely kitchen with appliances. Call today for the complete spec sheet. $180,600 MLS 542642 and MLS 542648 BEAUTIFUL, ROOMY & WAITING FOR YOU!!!!! 2001 Doublewide Clayton on a lovely 1.77 acre lot in Delmar. 3 bedroom, 2 bath vaulted ceiling in family room, formal dining room, large eat-in kitchen with center island, very large master suite with separate garden tub and shower, lots of closet space. Huge deck that leads to lovely above ground pool. Recently reduced!!!! VERY MOTIVATED SELLERS $167,900. MLS 540902 MORNING STAR ✳ NOVEMBER 23 - 29, 2006 PAGE 12 Delaware’s Growth Model approved by USDOE The U.S. Department of Education recently announced that Delaware is one of only three states to have their “Growth Model” approved under the guidelines of No Child Left Behind (NCLB). Just one year ago, U.S. Secretary of Education Margaret Spellings announced a pilot program where states who were closing achievement gaps and increasing student achievement could submit proposals to help strengthen their accountability standards. Secretary Spellings stated that no more than ten high-quality growth models would be approved in 2006. Delaware’s growth model is based on individual student achievement over time and will allow Delaware to look at individual student growth from year to year rather than comparing one class to another. “The growth model selected by Delaware for the pilot program is similar to one that had been developed prior to the No Child Left Behind Act of 2002,” said Robin Taylor, Associate Secretary for Assessment and Accountability. “For years, Delaware has had the necessary data systems and infrastructure, assessments for multiple years in the areas of reading and math in contiguous grades, and a model designed to hold schools accountable for all students being proficient by 2013 – 2014. Today’s announcement just further enforces our work to ensure all students succeed.” The approved growth model was developed by a statewide NCLB stakeholder group including teachers, building level administrators, administrators’ association, special education coordinators, Title I coordinators, curriculum directors, local chief school officers, State Board of Education, parents, business community, advocacy groups, and local boards of education. In order for the growth model to be approved by Washington, Delaware’s accountability system must meet seven core principles as outlined by USDOE. Those principles are: The proposed accountability system must ensure that all students are proficient by 2013-2014 and set annual goals to ensure that the achievement gap is closing for all groups of students. The accountability system must establish high expectations for low-achieving students that are not based on student demographic or school characteristics. The accountability system must establish high expectations for low-achieving students that are not based on student demographic or school characteristics. All students in the tested grades must be included in the assessment and accountability system; schools and districts must be held accountable for the performance of student subgroups; and the accountability system must include all public schools and districts in the state. Annual assessments in reading/ language arts and math in each of grades 3-8 and high school must have been administered for more than one year, must produce comparable results from year to year and grade to grade, and must be approved through the peer review process for the 2005-06 school year. The accountability model and state data system must track student progress. The accountability system must include student participation rates in the state's assessment system and student achievement on an additional academic indicator. Delaware will now report the traditional school accountability information as well as the growth model information side by side in school report cards when that information is released. $202,000 in refund checks are returned to the IRS The Internal Revenue Service is looking for 264 Delaware taxpayers who can claim their share of undeliverable refund checks totaling approximately $202,000. The IRS can reissue the checks, which average $766, after taxpayers correct or update their addresses with the IRS. In some cases, a taxpayer has more than one check waiting. Nationally, there are 95,746 taxpayers with undeliverable refunds, totaling approximately $92.2 million with an average refund of $9." re- fund. with undelivered refund checks who access "Where's My Refund?" by phone will receive instructions on next steps. Individuals whose refunds were not returned to IRS as undeliverable cannot update their mailing addresses through the "Where's My Refund?" service.. How to Address with the IRS. "Where's My Refund?" now has an online mailing address update feature for taxpayers whose refund checks were returned to the IRS. If an undeliverable check was originally issued within the past 12 months, the taxpayer will be prompted online to provide an updated mailing address. The address update feature is only available to taxpayers using the Web version of "Where's My Refund?" Taxpayers 500 W. Stein Highway • FAX (302)629-4513 • (302)629-4514 22128 Sussex Highway, Seaford, DE 19973 • Fax (302)628-8504 • (302)628-8500 • (800)966-4514 • • Dee Cross, CRS, GRI Broker Only 3 years old in desirable Clearbrooke Estates, this professionally landscaped, 4 BR, 3 BA Cape Cod style home features cathedral ceilings, gas FP in great room, formal DR, breakfast nook, ceramic tile, hardwood laminate & vinyl floors, CA, gas heat, ceiling fans. Irrigation, 2-car attached garage, fenced-in backyard, ceramic tiled patio & handicap access from rear of home complete the package. $295,000 (542836) Just Beclaus… DELIVERED WEEKLY $17.00 ONE YEAR Laurel Star 22128 Sussex Hwy. Seaford, DE 19973 628-8500 Office EXT. 132 Please send Seaford Star To: Name___________________________________ Address:_________________________________ SUSSEX COUNTY ONLY City __________ State ____Zip ______________ Kent & New Castle Counties, Delmar, MD and Federalsburg, MD, $20 Out of State $27 Send Gift Card From: ______________________ YOUR NAME SUBSCRIPTION TO START JANUARY 4, 2007 Mail to: Morning Star Publications, PO Box 1000, Seaford, DE 19973 or Call 302-629-9788 with Credit Card Payment MORNING STAR ✳ NOVEMBER 23 - 29, 2006 PAGE 13 Health National Influenza Vaccination Week By Dr. Anthony Policastro Every year we experience a flu epidemic. Some years the epidemic is mild. That was true in 2005 – The United States Department of Health and Human Services as joined with several other nationwide groups to raise influenza vaccine awareness.risk. Dr. Pankaj Sanwal of RAINBOW PEDIATRICS proudly welcomes Dr Vibha Sanwal, MD, FAAP starting December 21, 2006 and announces the opening of a second location on December 1st at 16391 Savannah Road, Lewes. Dr. Vibha Sanwal, Board Certified Pediatrician currently with Nemours Pediatrics in Georgetown (an affiliate of DuPont Children’s Hospital), will be welcoming new patients, Dr. Vibha Sanwal will be seeing patients at both locations, Lewes and Georgetown. All major medical Insurance’s, including Medicaid, welcome. Evening, weekend appointments available. Please call for an appointment 21141 Sterling Ave., unit 1 Georgetown, DE 856-6967, Fax 855-0744 16391 Savannah Road Lewes, DE 856-6967, Fax 645-6457 PAGE 14 MORNING STAR ✳ NOVEMBER 23 - 29, 2006 Easter Seals recognized for excellence The Board of Directors of Easter Seals Delaware and Maryland’s Eastern Shore was recently honored by the national office of Easter Seals with the Excellence in Affiliate Board Leadership Award which recognizes outstanding affiliate board performance and leadership. This is the second time this year that the Delaware affiliate of Easter Seals has received a national award. The award was presented to Easter Seals Board chairman, Robert J.A. Fraser, and Easter Seals president and CEO Sandy Tuttle at the Easter Seals National Convention in October. Nominees are evaluated on nine key criteria within critical board responsibilities, including: support of Easter Seals mission; oversight of Easter Seals chief executive officers for effective organizational planning; securing adequate resources to fund wellmanaged services; ensuring ethical and legal integrity and accountability; recruiting new board members; and enhancing Easter Seals public image. Currently, there are 27 directors on the board. Through com- bined efforts, the board secured $250,000 for the 2005 fiscal year, and contributed more than $1.5 million toward the local affiliates’ capital campaign. In May, the Easter Seals board received the Excellence in Comprehensive Development Award in the category of “Best Giving and Getting Board.” This award specifically recognizes the board’s involvement and commitment to fundraising efforts. Easter Seals provides services to ensure that all people with disabilities or special needs and their families have equal opportunities to live, learn, work and play in their communities. For more information, call 1800-677-3800 or visit. easterseals.com. Donald T. Laurion, D.O., F.A.C.C. Cardiologist DOMESTIC VIOLENCE AWARENESS - In recognition of October as Domestic Violence Awareness Month, Verizon Foundation (the philanthropic arm of Verizon Communications) and Verizon Wireless awarded over $100,000 to eight Delaware nonprofits to support domestic violence prevention and education efforts. Awards were presented at Hotel DuPont during the annual meeting and luncheon of the Delaware Coalition Against Domestic Violence. From left to right are Jennifer Gunther, VSA Arts of Delaware; Margaret Rose Henry, Delaware Technical & Community College; Tom Jewitt, Catholic Charities, Inc. of the Diocese of Wilmington; William Allan, Verizon Delaware; Christine Baron, Verizon Wireless; Dawn Schatz, Child, Inc.; Eleanor Kiesel, Community Legal Aid Society, Inc.; Geri Lewis-Loper, Delaware Center for Justice; Linda O’Neal, Delta Outreach and Education Center, Inc.; Abner Santiago and Maria Matos, Latin American Community Center. Alvaro Buenano, M.D., F.A.C.C. Cardiologist Angel E. Alicea, M.D., F.A.C.C. Cardiologist Richard P. Simons, D.O., F.A.C.C. Cardiologist “we’re proud that Nanticoke was named best in the state for response to emergency heart cases.” In the September 28, 2006, edition of the News Journal, Nanticoke was cited for our excellence in emergency response to heart attacks. The rankings were the result of an analysis performed by the federal Centers for Medicare & Medicaid Services. We credit our physicians, technicians, nurses, support staff, volunteers, auxiliary and board members for delivering on our AMERICAN MOTHERS MAKE DONATIONS - The Delaware Chapter of American Mothers Inc. recently presented three $1,000 checks to the pregnancy centers in each county of the state. Those presenting the check to the Sussex Pregnancy Center are from left, Doris Kowalski, Rita Denney, the executive director, Dusty Betts and Joyce Schaefer, the state president. The Delaware chapter of American Mothers Inc. is a member of the same national organization that encourages each state to honor a Mother of the Year for her efforts to strengthen the moral and spiritual foundations of her home and whose public service in her community has been widely recognized. MEMORIAL HOSPITAL A renewed spirit of caring. 801 Middleford Road • Seaford, DE 19973 promise to provide a higher quality of care. Because of them, our renewed spirit of caring is touching more lives and helping more people than ever before. To read the article in its entirety, visit or call us at 1-877-NHS-4DOCS for a reprint. MORNING STAR ✳ NOVEMBER 23 - 29, 2006 PAGE 15 Consortium seeks funds for HPV Vaccine Initiative The Delaware Cancer Consortium (DCC) recently requested $800,000 from the Delaware Health Fund Advisory Committee to support a vaccination program to prevent cervical cancer among Delaware’s estimated 29,000 uninsured and Medicaid females ages 9-26. The request is part of DCC’s goal to reduce the state’s cervical cancer incidence and mortality, which is part of their action plan for 2007-2010. Delaware’s cervical cancer five-year age-adjusted mortality rate ranks 45th in the nation, with 50 being the worst. Between 1999 and 2003, 76 Delaware women died of the disease and the state’s rate was 22.8% higher than the national. Human papillomavirus (HPV) is a sexually transmitted disease in a group of viruses that includes more than 100 differ- ent strains or types. Most people who become infected with HPV will not have any symptoms and will clear the infection on their own. However, some of these viruses are called "high-risk" types which may lead to cervical cancer. A vaccine, released in June, targets the strains of HPV responsible for 70 percent of cervical cancers. The vaccine is approved for use in girls and women ages 9- 26 and should be given before they become sexually active. The vaccine offers no protection to women who have already been exposed to HPV. The vaccine would be distributed in 2007 as part of the “Ending Cervical Cancer in Our Lifetime” program, an initiative started in 10 states in August 2006, and coordinated by Lt. Governor John Carney of Delaware. Get out and play by John Hollis GROWING UP HEALTHY In a recent opinion poll commissioned by Nemours, 58 percent of Remember, the daily Delaware parents reported that hour of physical activity their children get less than the recommended hour of physical activithat is recommended for ty every day. children doesn’t necesIn fact, according to their parsarily mean a solid hour ents, over one in 10 (13 percent) Delaware children only get an hour of running or biking. of exercise twice a week, or less! throw around a frisbee, play catch, play Bulletin to parents and caregivers: chilhopscotch, rake leaves together. If the dren need moderate to vigorous physical weather doesn’t cooperate, put on a CD activity every day. It should be an enjoyand dance, get a good family exercise or able part of their daily lives, and adults yoga video, play Twister, do household play a vital role in making sure that it is. chores that involve bending and stretchWhy is daily physical activity so iming. Also, take advantage of your local portant? YMCA, Boys and Girls Club or PAL Club * It is good for kids to get their hearts - they often have a wide range of propumping - when the heart beats faster, it grams for children of all ages. For more gets strong. ideas, go to. * Physical activity gives kids energy, Remember, the daily hour of physical helps with concentration and is a natural activity that is recommended for children mood lifter. doesn’t necessarily mean a solid hour of * When kids are moderately to vigorrunning or biking. It can be done in increously active, they often feel better, sleep ments throughout the day: Play tag for 20 better and think more clearly. * Exercise gets kids away from screens minutes, vacuum for 10, walk the dog for 30, and you’re there! - TV, video games, instant messaging Be creative, be committed, and in the which are sometimes violent and/or sugwords of a famous shoe brand, just do it. gestive, contain ads for unhealthy prodChildren who are active are far more ucts, and are awfully good at luring kids likely to be active as adults and better able to spend far too many hours just sitting. * Regular physical activity is one of the to maintain a healthy weight and good overall health throughout their lives. most important factors in helping children achieve or maintain a healthy weight. John Hollis is director of Community If you want your children to be active, Relations for the Nemours Health and get out and play with them. Take walks, Prevention Services. go to the park or playground, ride bikes, David L. Crooks, M.D . will be leaving the practice of Nanticoke Surgical Associates December 1, 2006 URGENT CARE DELIVERY SERVICE OUR SPECIALTY H. PAUL AGUILLON, MD Call us anytime. We’ll be happy to deliver your low-priced prescriptions and drug needs at no extra charge. BI-STATE PHARMACY Dr. Stephen Care y a nd Dr. Samuel Miller will continue to provide ongoing care! PHYSICAL THERAPY Edward M. Asare, Pharmacist 5 East State St., Delmar, DE 19940 302-846-9101 Hrs: 9 am-7 pm Mon.-Fri.; 9-3 Sat. PAGE 16 MORNING STAR ✳ NOVEMBER 23 - 29, 2006 stated, “Our vision for the Delaware Hospice Center developed from a statewide needs assessment that we undertook several years ago, which clearly indicated that citizens of Delaware needed and desired expanded options for end-of-life care. Today we take the next step to fulfill our promise and intention to respond to those needs.” The future Delaware Hospice Center will feature sixteen patient and family suites, a Family Support and Counseling Center, a Community Resource Center, a Meditation Room, and new offices for our home-based services and administrative staff. Families will be able to enjoy the kitchens, dining rooms and sitting rooms with alcoves for visiting children to play. The center will be available to patients of all ages. Professional hospice care will be available 24 hours a day, seven days a week. Special recognition was given to campaign co-chairs, Llaird and Peg Stabler; and to significant contributors to date, including: Mike Harrington, Lillian Burris, Bob Dickerson and Lida Wells, the team leaders of support committees; the Welfare Foundation; The Longwood Foundation; Crystal Trust; the State of Delaware; the Bank of America; and the Carl M. Freeman Foundation. To learn more about the Delaware Hospice Center and the Community Campaign to Expand Delaware Hospice, contact Manny Arencibia, vice president of development, 800-838-9800 x131 or visit. PAIN MANAGEMENT & REHABILITATION GANESH BALU, M.D. • KARTIK SWAMINATHAN, M.D. • MANO ANTONY, M.D. • ALFREDO ROMERO, M.D. Worker’s Comp. Injuries Auto Accidents Chronic Neck & Back Pain Medications X-Ray Guided Injections EMG Testing Massage Therapy Ne Acc w ept Pa i n tie g nt s New Location 34446 King Street Row Unit 2 Old Towne Office Park Lewes, DE 19958 (302) 645-9066 742 S. Governor’s Ave. Opp. Kent General Hosp. Dover, DE 19904 (302) 734-7246 8957 Middleford Road Near Nanticoke Hosp. Seaford, DE 19973 (302) 628-9100 Sleep Through Your Pain Management Injections Specializing In Glaucoma Treatment & Surgery Dr. Ortiz is a graduate of Swarthmore College and earned his medical degree from New York Medical College. Dr. Ortiz completed his Ophthamology residency at the Scheie Eye Institute, University of Pennsylvania. This was followed by a glaucoma fellowship at Addenbrooke’s Hospital in Cambridge, England. He completed a concurrent fellowship in ocular immune disease at Moorfield’s Eye Hospital in London.. • Sussex County, Georgetown State Service Center, 856-5213 • Sussex County, Shipley State Service Center, 628-2006 For more about flu clinic locations and dates, go to do D fre o, M l A er m Ro Dr. Ortiz is a diplomat of the American Board of Ophthalmology and a member of the American Glaucoma Society. He has been practicing ophthalmology since 1983 specializing in: Joseph M. Ortiz, MD • Glaucoma Management • Glaucoma Surgery • Dry Eyes • Pterygium • Eyelid Lesions. (302) 678-1700. NOW ACCEPTING NEW PATIENTS MORNING STAR ✳ NOVEMBER 23 - 29, 2006 PAGE 17 Laurel School Board discusses impact of new developments on school district By Mike McClure Laurel School Board president Calvin Musser brought up the issue of the impact of new developments on the Laurel School District for discussion during last Wednesday’s school board meeting. The board also watched and participated in a presentation by kindergarten teachers and students from Paul Laurence Dunbar Elementary School. Although the issue wasn’t on the agenda, Musser brought up the issue of new developments in the school district and their impact on Laurel schools. Musser said 11 new developments have come to the district since January. He believes the district should receive impact fee money to help offset the additional resources that will be needed to accommodate additional students from the developments. Vice president Jerry White said the issue would have to be addressed by the state through legislation. Musser pointed out that three or four of the developments are within Laurel’s town limits and that the town could designate an impact fee to help the schools out with added growth. At the beginning of Wednesday’s meeting, Pam McCumbers and Dawn Williams and some of their students made a presenta- The Laurel School Board will hold a special meeting hursday, Nov. 30, to discuss the federal law No Child Left Behind and the effects of growth on the district. The regular December meeting will take place Dec. 6. tion on kindergarten calendar time. The students, with help from their teachers, school board members, and members of the audience, demonstrated some of the things they do at the start of their school day. In other board business, the board was notified that inclement weather in-town bus transportation will be provided for secondary students. Bus transportation will be provided for secondary students in grades 7-12 who live in the walking area. The transportation will begin Dec. 4 and end April 5. The bids have been submitted for two buses at $82 per day for 77 days and will be paid for through a grant. School board member Harvey Hyland reported that he attended a Delaware School Board Association meeting recently. The board is looking at sharing school plans for stock designs to eliminate the need for new blue prints. According to Hyland, it was also reported at the DSBA meeting that there will be no state funding for stipends for student teachers. Kindergarten students from Paul Laurence Dunbar Elementary School demonstrate some of the things they do at the start of the school day. The demonstration took place during last Wednesday’s school board meeting. Photo by Mike McClure LEGION DONATION - Chris Otwell, director of Boys and Girls Club of Laurel, accepts a $200 donation from Helen E. Pepper, president of the Ladies Auxiliary of the American Legion Unit 19 of Laurel, at the post home. The donation will be used for the club’s projects. Picture by Carlton D. Pepper. 18 MORNING STAR ✳ NOVEMBER 23 - 29, 2006 Finisha Hopkins and her daughter, Rodnique’, put up a sign to advertise a dinner at the United Deliverance Bible Center, Laurel. Photo by Pat Murphy Area churches reach out to hungry to feed them a Thanksgiving dinner By Debbie Mitchell The words “anyone welcome” and “free to all” adorned marquees and posters last week as local church groups reached out to members of the community to offer them a Thanksgiving meal. “People are down this time of year and we want to reach out and share our blessings,” said Teri Vann, spokeswoman for the United Deliverance Bible Center in Laurel. At her church, the smells of roasted turkey and all the trimmings filled the air as busy volunteers prepared for this year’s dinner, which was served Saturday, Nov. 18. The United Deliverance Bible Center first held a community pre-Thanksgiving dinner in 2000 as a part of the church’s mission outreach program, Helping Hands, of which Vann is a member. This year, the dinner, which was held at the Bible Center, was also sponsored by St. Matthews, Victory in Grace Tabernacle, New Beginnings Christian Center, Emmanuel’s House and Sussex Mass Community Choir. People who visited the church for the dinner were greeting by smiling faces like that of Donald Hitchens. In addition to the meals served in the church, Hitchens and more than 25 volunteers delivered meals to people in the Laurel, Seaford, Millsboro and Delmar areas. According to Vann and Helping Hands president Edith Hood, the church has served as many as 400 meals. Planning begins a year ahead of time and the donations come from churches, members of the community and organizations, Hood said. “We visit the elderly and sick who can not get out,” Vann said. “We take a moment to sit and talk with people too.” A constable for the state of Delaware, Vann added that she sees this as an opportunity to plant a seed. “We definitely see a change in heart and spirit,” she said. And helping with the dinner benefits the volunteers, she added. “I aspire to inspire before I expire,” she said. From baking to packing, delivering to serving, there is a job for everyone at the dinner. Even the teens pitch in. “I think it is great helping the community for their needs,” said 13-year-old Rodnique Hopkins. “It makes me feel great and one day someone might need to do it for me. God will bless us.” New Zion Church in Laurel has been serving weekly meals for 10 years. In addition, the church hosts an annual community holiday meal. This year’s dinner will be served today, Nov. 22. The church planned to serve about 100 meals to young men who have lost work, people in poor health, shut-ins and the elderly. According to 78-year-old Ethel Fooks, “This is a celebration of the year and of God’s abundance to the food mission.” Centenary United Methodist Church, Laurel, hosted its community meal on Sunday, Nov. 19. Organizers Midge McMasters and Mimi Boyce head up dozens of Centenary volunteers who have served close to 150 people, including 50 shut-ins. The group has been serving the Thanksgiving dinner for more than 10 years. According to pastor John Van Tine, there is a real need for such a meal. “Our food pantry has been heavily used in the past week,” he said. “The dinner benefits a lot of people. It helps not only those in financial need, but those who wish to have the fellowship.” Police, town unite to help those in need The Laurel Police and and the town’s Public Works departments have joined forces to help needy families this holiday season. They are sponsoring the No Child Without a Toy program. Donations of gifts including new unwrapped toys, gift cards, new winter coats, hats and gloves are needed. For more information, contact Chief Jamie Wilson at 875-2244 or Public Works director Woody Vickers at 8752277. Donations can be dropped off at the Laurel Police Department or at Laurel Town Hall, Monday through Friday, 8 a.m. to 4 p.m. CUB RACERS - Cub Scout Pack 90 of Laurel participated in a Cub Mobile Derby Saturday, Nov. 4, on Willow Street in Laurel. Winners were Nicholas Wilder, Chance Walls and Ike Wharton. Consolation winner was David Elliott. Above are Jacob Foy, Wolf Den Leader (left), and John Theis, Cub Master. Below are the participating Cub Scouts with one of their homemade derby cars. Chicken Salad & Dumpling Dinner Bake Sale & Silent Auction The friends of Joey Wheatley will be holding a benefit to help offset the rising medical costs for Joey’s ongoing cancer treatments. SUNDAY, DECEMBER 3 FROM NOON TO 5 PM Bridgeville Fire Hall, Bridgeville, DE $15.00/Adult $7.50 children under 12 Tickets available at Woodbridge School Dist. Office, Layton’s Hardware and A.C. Schultes of Delaware, Inc. in Bridgeville and Burton Bros. Hardware and Harley Davidson in Seaford, DE Sorry - no carry outs. HOPE TO SEE YOU THERE! MORNING STAR ✳ NOVEMBER 23 - 29, 2006 PAGE 19 Annual Safe Family Holiday Campaign begins This week launches the ninth annual Safe Family Holiday campaign sponsored by the Office of Highway Safety and its safety and law enforcement partners, which runs through New Year's Day. As Delaware families prepare for the holiday season, the Office of Highway Safety (OHS) is implementing traffic safety checkpoints, hundreds of patrols, public awareness messaging in the form of ads and billboards and several communitybased safety events. During this year's campaign, motorists can expect to see not only increased DUI enforcement but also increased efforts to stop aggressive drivers with a new initiative, "Operation Commute" to target aggressive drivers during the morning rush hour. Highway safety officials feel the timing of the campaign is particularly critical as traffic deaths are already up 3% over this time last year. Additionally, the risk of traffic crashes typically increases with the onset of the holiday season, primarily due to increased traffic volume from people visiting families during the three major holidays and shopping for gifts. DUI prevention will also be a major focus of safety and police agencies in the SFH campaign. A total of 33 sobriety checkpoints are scheduled between Thanksgiving and New Year's Eve as part of Delaware's high visibility "Checkpoint Strikeforce" initiative, coordinated by OHS. Delaware's MADD chapter, which will hold a candlelight vigil for victims of impaired driving in late December, is supporting the initiative by assisting officers at checkpoints. Delaware will also participate in this year's second National "Drunk Driving Over the Limit, Under Arrest" impaired driving crackdown by funding State and local police agencies to conduct DUI saturation patrols during the last two weeks in Dec. Updated campaign statistics for DUI and aggressive driving enforcement will be available Nov. 28 at. Community-based public awareness efforts include statewide posters encouraging children and adults to buckle up as well as the OHS "Mocktail" party, which features safety information and samples of "smart" party foods. The DUI Victim's Trees will be on display in DMV lobbies statewide and MADD red ribbons are also available. The campaign timeline is as follows: DUI Checkpoints - weekly November 23 - Jan. 1; DUI Saturation patrols - December 1 31, as part of "Drunk Driving. Over the Limit Under Arrest." National mobilization; "Stop Aggressive Driving Campaign" & "Operation Commute" patrols - weekly, Nov. 23 - Dec. 30; Christmas Tree Tag Distribution - OHS will distribute tags with a "don't drink and drive" message on them to local Christmas tree farmers during the first week in December; Mocktail Parties - OHS will hold three non-alcoholic cocktail or "mocktail" parties this year. Dec. 2 - 11 a.m. - 4 p.m. at the Dover Boscov's, Dec. 6th at the Georgetown DMV from 5 - 8 pm and Dec. 15 from 5-8 p.m. at the Wilmington DMV. DUI Victim's Tree - Each red light on the tree symbolizes an alcohol-related death, and each green bulb an alcohol-related injury in Delaware during the Safe Family Holiday campaign. Trees will be located in the lobby of the Dover DMV, the Georgetown DMV, and the Wilmington DMV. Brochure and MADD ribbon distribution - brochures on impaired and aggressive driving, and MADD red ribbons in support of the Tie One on for Safety campaign are available by calling 302-7442740. Food specialty store expected to occupy Video Den location By Lynn R. Parks The Stein Highway property that is home to Video Den has been sold. Former owner Jim Horne, Seaford, said that the new owners are “local people” who are bringing a “food specialtytype shop” to the area. “They have asked me not to say anything about what it is going to be,” Horne said. “I will say that it will be something different for Seaford. Something that you might expect out of the city.” Rumors have been circulating that a Panera Bread restaurant is coming to the site. Mark Crawley, spokesman for Panera Bread, based in Richmond Heights, Mo., said last week that he had no information about a Panera Bread coming to the area. That does not mean that one is not coming, he added. It could be that one is in fact coming, but its opening is so far in the future that the company is not ready to talk about it yet. Horne sold his business, which includes about an acre of land, in October. Since then, he said, the new owners have been in the building, taking measurements. “I believe they are going to redo the whole thing,” he said. Horne bought the video and photo-development business 12 years ago from his brother, Harold. He said that in recent years, business was in a steady decline. “There was no way for me to compete,” he said. He is happy, he said, to have sold the property. “I think that people will be happy with what is coming,” he added. L I M I T E D T I M E O F F E R * Extended hours for Downtown For the second year, the retailers on High Street in Downtown Seaford will be hosting an extended hours shopping night for all of your holiday needs. Retailers will open their doors until 9 p.m. on Friday, Dec. 1, and the Union United Methodist Church Choir and Bell Choir will provide musical entertainment for your enjoyment. The choir will perform Christmas Carols on the east end of High Street at 6 p.m., the bell choir will perform at the corner of High and Pine Streets at 6:30 p.m. and the choir will perform again at 7 p.m. on the West end of High Street. Participants include 2 Cats in the Yard, Cranberry Hill, Sand & Stone Creations, Bon Appetit, Serenityville, Carol Beth's gift baskets, Hamilton Associates, Eastern Shore Books and Coffee, The Browsery, the Seaford Museum and more! Visitors are encouraged to enjoy the holiday music, save with many holiday specials, and enjoy personalized service and gift wrapping in many locations. Gift ideas include unique specialty items, gourmet coffees and teas, antiques, decorative house wares including wreaths, pillows, throws, towels and more, handmade and designer soaps and lotions, jewelry and jewelry making items, gift baskets, holiday decorations, gift certificates and more! For more information, contact Trisha Booth at 629-9173. *Excludes Oakley and Maui Jim Frames. May not be combined with any other insurance or discount. Some restrictions may apply. Offer expires 12-31-06. PAGE 20 MORNING STAR ✳ NOVEMBER 23 - 29, 2006 Superintendent reminds citizens how to request use of building Dr. David C. Ring Jr., superintendent of the Delmar School District, would like to remind citizens of the district’s procedures regarding requests to use the school building: • All requests must be approved by the Delmar Board of Education • The request must be submitted a month prior to the requested date • Request forms can be found in the district office • Those making the request must complete the responsibility release and the building request forms • They must then return the completed forms to the district office • The building principal will review the forms, check the master calendar, comGETTING IN THE SPIRIT - Laurel Middle School held its Spirit Night at Laurel Hardees on Monday, Nov. 13. Twenty percent of the evenings’ proceeds will go to the school to support incentives for better behavior. Included in the picture are Mary Bing, Nicole Ingley, Nicole Fook, Tucy Steele, Doug Brown, principal Jennifer Givens, Katie Coppoch, Carolyn Tyndall, Alyssa Givens, Brandon Steele, Marisa Lowe, Hardees manager Lori Bailey, Jennifer Bell, Ashley Healey and Sumika Dixon. Photo by Pat Murphy plete the attached fees and provide a signature • The request will be placed on the board’s monthly agenda for a final decision. Board meetings are held every third Tuesday of the month with the exception of November and December, when the meeting is held on the second Tuesday of the month • Immediately following the board meeting a letter will be mailed to the citizen with a final decision. Questions concerning the use of facilities should be directed to the school superintendent. He can be reached at 846-9544, ext. 104, or by e-mail at dring@delmar. k12.de.us. Delmar parade set for Dec. 2 The Delmar Christmas parade, sponsored by the Delmar Chamber of Commerce, will take place Saturday, Dec. 2, at 2 p.m. with a rain date of Dec. 3 (2 p.m.). Parade judges are needed for this year’s parade. Also, anyone interested in chairing the event next year may call Roger Mar- tinson at 410-430-6566. Parade applications are available at Delmar Town Hall. Applications will be accepted up to two days prior to the event. Anyone submitting late applications is asked to call Martinson. News items may be mailed to the Seaford and Laurel Star, 628 W. Stein Hwy., Seaford, DE 19973. Or they may be faxed to 629-9243. Procino-Wells, LLC Attorneys at Law 123 Pennsylvania Avenue, Seaford, DE 19973 302-628-4140 LIFE-SIZE DRAWINGS - Participants in Preschool Story Time at Laurel Public Library on Nov. 7 made life-size drawing of themselves. They received help from parents and older siblings. Additional “Me and My Family” programs will be held on Tuesdays, Nov. 14, 21 and 28 at 10:30 p.m. For more information about Preschool Story Time at the Laurel Public Library, call at 875-3184 or visit the the Web site. MUSICAL CELEBRATION - The Delmar High band plays in celebration of the Wildcat football team’s win over Hodgson in the first round of the state tournament. Delmar visits Caravel this Saturday night in the Division II semifinals. Photo by Mike McClure Michele Procino-Wells Shannon R. Owens • Wills, Trusts & Estates • Probate Avoidance • Elderlaw • Estate Administration • Medicaid/Nursing Homes • Corporations /LLCs • Business Purchases/Sales • Corporate/Business Formation • Real Estate Settlements • Guardianships Shannon R. Owens MORNING STAR ✳ NOVEMBER 23 - 29, 2006 PAGE 21 Memories during wartime of a long-ago childhood Summer evenings at my grandparents’ West Virginia home were YNN ARKS made for playing outside. Their front yard, an oasis of flat in a sea We went inside only of rolling hills, was perfect for freeze tag, hide and seek, Simon when darkness and says, red light green light — any playground game that three chiladvice from our dren, four years apart in age, grandmother about damp could come up with. Once in a while, we managed night air forced us to. to convince adult members of the family, who typically sat on the mail, was in italics and bold. front porch and talked, to join us in the “Then she went on to blame you” — cool grass. Our parents enjoyed the occabold — “for that ridiculous expression, sional round of badminton, my grandfathat you said it when you were kids. I ther, who even in his 70s could run the said it couldn’t be you — sounds more bases, often joined us for kickball. like Lynn” — again bold, followed by During one of those kickball games, I several explanation points. “What’s the misaimed my foot and kicked home truth here?” plate, a rock from the nearby field, inI was humbled by my brother-in-law’s stead of the ball. Despite my aching foot appreciation of my creative ability. But I and the fact that a kicked rock does not had to share the credit. travel nearly as far as a kicked ball, I “I don’t know who first said ‘Wobbly managed to make it to first base. Wilma,’” I wrote back. “But whoever it During another game, a small blood was, we all three endorsed it. And that vessel in our grandfather’s leg burst as he rounded third. He scored — Go team! only shows our wisdom — look at how the phrase has endured all these years. If — then limped to a chair under the Al Michaels himself used it, and John maple tree. Madden concurred, ‘Yes, that was indeed But troubles were rare. Most of the a Wobbly Wilma,’ I would not be at all evenings were wonderful, and we went surprised.” inside, and to the bathroom, where our Well, maybe I would be a little surmother helped us wash our grass-stained prised. But when dealing with brothersfeet, only when darkness and advice in-law, one must be firm. from our grandmother about damp night My brother’s account squared with air forced us to. mine. “I cannot remember who said it Much of our time outside was spent first, but there is a 33 and1/3-percent hitting a badminton shuttlecock. Not chance it was me,” he wrote. And, he over a net — the net wasn’t always set up — but one to the other in a circle, try- added, “I believe I have used that name in the last month.” ing to keep it in the air as long as we And this is the thing: We are not chilcould. For incentive, we got to sing one dren anymore. My brother, the youngest word of “Twinkle Twinkle Little Star” for every time our racquets hit the birdie. of the three of us, is a helicopter pilot, serving a one-year term (longer, if the We rarely made it past the first “star”; I powers-that-be feel like extending it) in don’t remember ever getting to the secIraq. ond and final “How I wonder what you Our days of play in cool West Virare.” We also had a Frisbee. Again standing ginia evenings are over. We all, and especially my brother, have far more seriin a circle, we threw it one to the other, trying, as with the shuttlecock, to keep it ous matters to worry about than catching Frisbees and hitting shuttlecocks. from hitting the ground. I hope that his ability to handle a sevWe didn’t sing in this game; instead, en-ton Blackhawk helicopter outweighs we invented silly names to describe our his skill, as I remember it, with a badthrows. The alliterative names were minton racquet. And I hope that when, in based on characters from The Flintthe last month, he was inspired to call stones: Fast Fred, Bad Barney, Bumsomething a Wobbly Wilma, it wasn’t Bum Bam-Bam; you get the idea. (Actually, I just made that last one up. If I had any kind of flying machine that he was talking about. thought of it 40 years ago, I would have Next Thanksgiving, my brother’s time ruled in the front yard Frisbee throwing in this foolish, ill-conceived and illcompetition.) planned war should be finished. He Most of the names were pretty munshould be back home and we all will be dane. But one, Wobbly Wilma, to deable to celebrate the holiday together. scribe a throw unlike anything the toy Perhaps, a celebratory game of “badmakers at Wham-O had in mind, we all use to this day. minton in the round” will be part of the “Hey Matt,” my brother-in-law wrote day. There are more people in our family in a recent e-mail to my brother (and now, including my athletic brother-incopied to other members of our family, law, and we should be able to get well including me). “I was watching the West beyond “Twinkle twinkle.” Virginia game the other night and the And if Frisbee throwing follows the Pitt quarterback threw a particularly bad badminton, I will be ready. Wobbly pass. My wife” —who is my sister and, obviously, my brother’s sister; back to Wilmas, Fast Freds, even Bum-Bum the story — “said, ‘Boy, that was a Wob- Bam-Bams — all will be welcome as we bly Wilma!” Wobbly Wilma, in his eall get to, once again, play like children. L P 628-9000 302 107 Pennsylvania Ave., Seaford, DE 19973 Two Convenient Locations 858-5009 302 503 W. Market St., Georgetown, DE 19947 Laurel mls 542710 $179,480 Michelle Mayer cell 302-249-7791 Village of Cinderberry mls 542468 $269,370 Deborah Johnson cell 302-245-3239 Seaford Golf & Country Club mls 540399 $419,000 Nancy Price Cell 302-236-3619 Coolbranch, Seaford mls539775 $46,000 Randy O’Neal cell 302-381-6395 Seaford mls540117 $185,000 Marty Loden cell 302-222-5058 Seaford mls542796 $129,900 Dan Bell cell 302-841-9750 Seaford mls541959 $209,000 Ed Higgins cell 302-841-0283 Seaford mls524907 $174,500 Brenda Rambo cell 302-236-2660 Laurel mls542632 $198,750 Dana Caplan cell 302-249-5169 Seaford mls542422 $389,000 Jessica Bradley cell 302-245-7927 • HONESTY • INTEGRITY • TRUST Wishing you a very happy Thanksgiving holiday. MORNING STAR ✳ NOVEMBER 23 - 29, 2006 PAGE 22 Community Bulletin Board EVENTS BINGOmember to join them for this interesting presentation. The date is Wednesday, Nov. 29. The program will start at 7 p.m. Light refreshments will be offered. Poker Night Novenber 25 The American Legion, Laurel Post 19, will hold Poker Night at the Post Home, 12168 Laurel Road, Laurel, DE 19956, on Saturday, Nov. 25, from 7 p.m. to 1 a.m. $3 per person entrance fee. Free Snacks. Come out and play a hand or two and a dozen more. Belly Dance Workshops SDPR is hosting 3 Belly Dance Workshops, Nov. 30, Dec. 7, and Dec. 14 at the Recreation Building, 7-8 p.m. Cost is $10. Attend one or all three.Classes will start in January. Call Athena at 381-6256 or the Recreation Office for more information. MEETINGS Toastmasters of Southern Delaware Visit the local chapter of Toastmasters International and improve your presentation and speaking skills. The next meeting is Nov. 30 in the educational wing of Bay Shore community church. For more information call Joy Slabaugh at 846-9201 or email joy@estfinancial.com. For more information about Toastmasters International, go to. Marine Corps League The Marine Corps League meets the first Thursday of each month, at 7:30 p.m., at the Log Cabin in Seaford. This month will be Dec. 7. Du Pont Golden Girls The annual Du Pont Golden Girls Luncheon will be Thursday, Dec. 7, at 11 a.m., at the Seaford Golf and Country Club. For reservations call Connie Keene 629-3377, or Jackie Davis 875-7625. How to submit items SHS Class of 1996 Stress Buster now through Dec. 22 Fitness Classes Monday, Wednesday, Friday, 9 a.m.; Tuesday and Thursdays, 5:30 p.m., now through Dec. 22 in St. John’s United Methodist Church Fellowship Hall in Seaford (Sponsored by St. John’s but open to the public). Sylvia will be providing for a.m. class only, excellent childcare at no extra fee. Beginners to intermediate participants welcome in this coed, non-competitive, muscle-toning, stretching, high/low aerobic class. Try a free one to see if it meets your needs. Only a 6-8 week commitment at a time required. For more information or to register call 21 year AFAA certified fitness professional, Carol Lynch, 629-7539. REUNIONS Basket BingoLongaberger Basket Bingo on Tuesday, Dec. 5, at Laurel Boys & Girls Club. Doors open at 6 p.m. Bingo begins at 7 p.m. Tickets are $20, $25 at the door. Several door prize drawings. Raffles: Hamper Basket, Hostess Holiday Bundle and more. Refreshments will be available. For more information call 875-1200 or 629-8740. Benefits the programming at the Laurel Boys & Girls Club. Your support is greatly appreciated. AARP Chapter 5340 Board AARP Chapter 5340 will hold a Board Meeting 10 a.m., Monday, Monday, ‘ole SHS. For additional information call Donna Hastings Angell 629-8077, or Mary Lee DeLuca at 6298429. Seaford Class of 1976 The Seaford Class of 1976 will hold its 30-year class reunion on Saturday, Nov. 25, at the Seaford Fire Hall from 6 p.m. until midnight. Light fare will be served, cash bar and music provided by Tranzfusion. For more information, contact David Smith at 410749-5776 or Dee (Christopher) Palmer at. 629-9410. You can also go to the class website at. HOLIDAYS Marine Corps League The Marine Corps League meets the first Thursday of each month, at 7:30 p.m., at the Log Cabin in Seaford. FOOD Breakfast Cafe VFW 4961 Breakfast Cafe, open Monday-Friday, 8-10 a.m., Seaford VFW, Middleford Road, to benefit Veterans Relief Fund. All are welcome. Sunday Breakfast Buffet Sunday breakfast buffet, All-You-CareTo Nov. 26. All-you-can-eat breakfast Blades Firemen and Ladies Auxiliary all-you-can-eat breakfast, Sunday, Dec.. DELMAR VFW POST 8276 Super Bingo Every Tuesday! CASH PAYOUT $100* Over 60 People $50* Under 60 People *Based on the number of people No one under the age of 18 allowed to play WINNER TAKE ALL Bonanza Game $1000.00 Jackpot! TIMES Doors Open 5:00 p.m. Games 6:45 p.m. TICKETS ON SALE Tuesday Night Delmar VFW Bingo 200 W. State St., Delmar, MD Information call: 410-896-3722 or 410-896-3379 Join Us For DINNERS 1st & 3rd Fridays, Starting at 6 p.m. MORNING STAR ✳ NOVEMBER 23 - 29, 2006 historic mansion. The charge is $10 per person and must be paid in advance. Reservations are required and may be made by calling Ruthe Wainwright at 629-8765. Seating is prearranged. Toys for Tots collections Nanticoke Auxiliary Winter Dance ‘Put. 15. You may also make a tax-deductible donation to marine Toys for Tots Foundation, PO Box 1947, Marine Corps Base, Quantico, VA 22134. Regional Builders appreciates your continued support for this very worthy cause. 6299596 or Sharyn Dukes at 236-7754. PAGE 23 875-3971 or 875-3733. dis- GOODFELLAS PIZZA & SUBS 1 Bi-State Blvd., Delmar, MD 410 DINE IN CARRY OUT DELIVERY 896-9606 Hand Tossed Pizza Baked In Brick Ovens Fresh Dough - Never Frozen FREE DELIVERY Present Ad Expires 12-31-06 Sundays and Mondays Ånyday 2 Large 1 Topping Pizzas $1.00 OFF $17. 99 + tax Any Size Pizza Present Star Coupon. Offer may not be combined with any other coupons or specials. Expires 12-31-06. Present Star Coupon. Offer may not be combined with any other coupons or specials. Expires 12-31-06. Dine-In Special Tuesdays Free Dessert Buy 1 Spaghetti & Meat Ball Dinner Get 1 FREE with Purchase of Meal & Drink Present Star Coupon. Offer may not be combined with any other coupons or specials. Expires 12-11-06. Offer may not be combined with any other coupons or specials. Thursdays Fridays Chicken n’ Dumplings Sub Special 2 Large Italian Subs $ 99 NLY + tax O Made the Italian Way with Guocchi’s 5 WITH GARLIC BREAD Offer may not be combined with any other coupons or specials. $ 900 + tax Offer may not be combined with any other coupons or specials. ENTER TO WIN STAR’S $500 GIVE-AWAY Dinner Special 50% off Dinner Friday • Saturday • Sunday Buy 1 Italian Dinner & 2 Beverages, Get 2nd Dinner 50% OFF (Equal or Lesser Value) Present Star Coupon. Offer may not be combined with any other coupons or specials. Expires 12-31-06. Wednesdays BBQ Ribs with Fries $ 99 7 + tax $ HALF RACK 1499 + tax Offer may not be combined with FULL RACK any other coupons or specials. Sun-Thurs 11 am-10 pm Fri & Sat 11 am-11 pm GROUPS & LARGE PARTIES WELCOME All Items Subject To MD Sales Tax Ad Specials Subject To Change Without Notice. WE DELIVER! 11am - 1pm & 5pm -Close $10.00 min. Purchase $1.00 Delivery Fee Purchase Limited Area PAGE 24 MORNING STAR ✳ NOVEMBER 23 - 29, 2006 SIX WEEKS Community Bulletin Board plays in the United States. Refreshments available. White elephant and consignment tables, train set raffle. FREE. 58 ISSUES ONLY 00 $ Players holiday production Possum Point Players’ holiday production, “The WPPP 1947 Christmas Special” will incorporate an old-style radio version of It’s A Wonderful Life mixed with seasonal solos, duets, and choral music at Possum Hall in Georgetown during the first two weekends of December. Performances are December 1, 2, 8 & 9 at 8 p.m., and December 3 & 10 at 2 p.m. in Georgetown. Tickets are $15, or $14 for seniors or students. For reservations, call the Possum Point Players ticketline at 856-4560. Bridgeville’s Caroling in the Park The Town of Bridgeville will host their annual Caroling in the Park on Friday, Dec. 1, at 6:30 p.m. The event will take place at the Historical Society Park on the corner of Delaware Avenue and William Street. Please bring a canned good donation for needy families. Come for fun, fellowship and a visit from Santa Claus. Bridgeville sponsors this event yearly on the first Friday evening in December. Christmas in Bridgeville Saturday, Dec. 2 - Christmas in Bridgeville Craft Show, Saturday, Dec. 2, 9 a.m.-3 p.m., at Woodbridge Jr./Sr. High School, Laws Street, Bridgeville. Admission is Free. There will be 60 vendors; $1 chances on an antique Oak Wash Stand. There will be catered breakfast and lunch available. Delmar Christmas Parade Saturday, Dec. 2 - Delmar’s annual Christmas parade. For details call the Delmar Chamber of Commerce, 846-3336. Rain Date: Sunday, Dec. 3, at 2 p.m. Applications can be picked-up at Delmar Town Hall. Georgetown holiday events Thursday, Dec. 7 - Georgetown Christmas parade. 7 p.m., starting at Sussex Central High School. For details call the chamber, 856-1544. Dec. 1, 2 and 3 - Annual Festival of Trees, Delaware Technical and Community College, Georgetown. Sponsored by Delaware Hospice Inc. For details call 856-7717. Dec. 1, 2, 3, 8, 9 and 10 - ‘The 1947 Christmas Special,’ a holiday music revue presented by the Possum Point Players, Georgetown, 8 p.m. Friday and Saturdays, and 2 p.m. Sundays. $15, $14 for senior citizens and students. For details, call 856-4560 or visit www. possumpointplayers.org. Monday, Dec. 4 - Caroling on the Circle, Georgetown. Beginning at 6:30 p.m., singers will lead members of the public in songs of the season. Canned goods will be collected. Laurel holiday events Friday, Dec. 8 - The Laurel Chamber of Commerce and Laurel Fire Department will again co-host the annual Christmas Parade. This year’s parade will take place on Dec. 8, at 7 p.m., with a rain date of Dec. 9. The theme this year is “Old Town Christmas.” Applications may be picked up at the Laurel Fire Department or the chamber office. Laurel Senior Center Christmas Show trip, Dutch Apple Theater, Lancaster, Pa., Dec. 20. Cost $63, includes transportation, luncheon and show. Shopping after the show if time permits. Call 875-2536 to reserve a seat with deposit. Art Show and Silent Auction The Children’s Beach House Art Show and Silent Auction committee is busy wrapping up details after almost one year of planning for their 17th annual Holiday Art Show and Auction on Dec. 1-3. All proceeds are divided among the programs offered by the Children’s Beach House whose mission is to help children with special needs reach their highest potential as functioning members of their families and communities. The event has reached 100% of its goal for artist participation. Nick Serratore of Lewes was named this year’s featured artist. Serratore will auction an original work based on his artistic interpretation of the event theme: “Home is where the heart is…Home is the Children’s Beach House.” A private reception for contributors and patrons is Fri., Dec. 1 from 6-10 p.m. The reception includes a pianist, caroling by Debbie Kee’s children’s choir, fine jewelry display by Elegant Slumming of Rehoboth, an artist meet and greet, and a sneak preview of the featured art and silent auction. The silent auction includes limo rides, child care, dining gift certifi- 17 * $ 00 SAVE 12 SUSSEX COUNTY OFF NEWSTAND PRICE DON’T MISS THIS SPECIAL SUBSCRIPTION OFFER Please start renew my subscription PLEASE CHECK ONE One Year Subscription $17.00 6 WEEKS FREE 58 Issues for ONLY $17.00* My check for $17 is enclosed. Please send Laurel Star Seaford Star to: Name _____________________________________________ Address: ___________________________________________ City _____________________ State _______ Zip __________ Phone __________________ Mail to: Morning Star, PO Box 1000, Seaford, DE 19973 Renewals: Please send this coupon with renewal notice. *Sussex County $17, Kent & New Castle Counties $22 Delmar & Federalsburg, MD $22, Out of State $27 Offer Expires Nov. 30, 2006 MORNING STAR ✳ NOVEMBER 23 - 29, 2006 carving, and more. Contest registration is held in September. The Egg Decorating contest is open to any Delaware resident interested in pursuing the art of egg decorating. The winning egg will receive $100 and an invitation from the White House to see the state eggs displayed with a welcome reception by the First Lady. For more information, contact Cindy Davis at the Delaware Department of Agriculture at 800-282-8685. cates, jewelry, art, home furnishings, golf packages, clothing, spa and salon services, lodging and more. The event continues with free admission on Sat., Dec. 2, 10 a.m. – 4 p.m. and Sun,, Dec. 3, noon – 3 p.m. For more information call 645-9184 or visit. Choral Society Christmas Concert Tickets are still available for the Southern Delaware Choral Society 22nd annual Christmas Concert, "Christmas Oratorio" by J.S. Bach, under the direction of John Ranney, on Saturday, Dec. 9, 2006 at 7:30 p.m. at St. Edmond's Church, Rehoboth Beach, and on Sunday, Dec. 10 at 3 p.m. at the Reformation Lutheran Church in Milford. Featured soloists will be soprano, Virginia Van Tine; alto, Rebecca McDaniel; tenor, Donald McCabe; baritone, Richard A.D. Freeman and bass, John R. Ranney. All are members of SDCS. Also joining the chorus will be trumpeter, Sarah Kuwick. Organist Crystal Pepper of Harrington is a guest soloist. In her 25 years as a church musician, Ms. Pepper has enjoyed a distinguished career as an organist and is well-known in a number of musical circles. She began accompanying church choirs at the age of 12 and by the time she was 15 she had become a regular organist and plays at various churches in the MidAtlantic region. She has a BA in vocal music from Delaware State University and has studied with John Dressler. She serves as director of music at the Dover Presbyterian Church and is currently pursuing a Master of Special Education at Wilmington College. Tickets to the Christmas concert are $15 and $10 for students. For tickets or more information call 302-645-2013 or log on to. SDCS is supported in part by grants from the National Endowment for the Arts and the Delaware Division of the Arts, a state agency committed to promoting and supporting the arts in Delaware. PAGE 25 Salisbury holiday events Saturday, Nov. 18, Sunday, Nov. 19 Maji Choral Festival at 7 p.m. on Saturday and at 2 p.m. on Sunday at Wicomico Senior High School, Salisbury. Tickets are $15. Call Bonnie Luna at 410-749-1633 for details.. Eggs will be on display Vote for the egg that you would like to represent the state of Delaware at the White House next year on Dec. 3 at the Dover Mall from noon – 5 p.m. Delaware egg artists of all ages will have their decorated eggs on display behind Santa, next to JC Penney. There will be more than 40 eggs to choose from. Since 1994, each state sends a decorated egg to the White House for display. Local crafters and artists create decorated eggs which represent each state and the District of Columbia. Eggs can be decorated in any fashion using paints, beads, decoupage, etching, Saturday, Nov. 25 - Starry Night Boat Parade along the Wicomico River in Salisbury. Sponsored by the Wicomico Yacht Club and Urban Salisbury. Call 410-5463205. Sunday, Dec. 3 - The 60th Annual Christmas Parade at 2 p.m. starting at the intersection of Mt. Hermon Road & Civic Avenue, traveling to East Main Street, ending at Ward Street. Sponsored by the Salisbury Junior Chamber of Commerce. Rain Date: Dec. 10, 2 p.m. Selbyville holiday events Friday, Dec. 1 - Selbyville Christmas Parade. The annual parade, sponsored by the Selbyville Chamber of Commerce, starts at 7 p.m. at the town hall, 68 Church St. For details call Bethany-Fenwick Area Chamber of Commerce, 539-2100, or visit www. bethany-fenwick.org. Snow Hill holiday events Christmas in Snow Hill, Friday through Monday, Dec. 1-4. Christmas tree lighting and kids coloring contest on Friday. Historic home and business tours on Saturday, along with Breakfast with Santa, Santa’s Workshop and a Christmas tree auction. Holiday music celebration and 19th Century Christmas at Furnace Town on Sunday. Snow Hill Christmas Parade on Monday, Dec. 4. Call 410-632-2080 for details. ETC. Babies & Toddlers. Read Aloud training Read Aloud Delaware volunteer training session will be held Tuesday, Nov. 28, at 1 p.m. in the Seaford Public Library, 402 North Porter St., Seaford. Call 8562527 to sign up for training or for further information. Volunteer readers are needed at various reading sites in Sussex County. Your Holiday Toy & Gift Headquarters W. C. Littleton & Son, Inc. 100 W. 10th St., Laurel, Del. • 875-7445 • 800-842-7445 IS YOUR GIFT STORE! A letter from Santa Mrs. Claus and I invite you and your families to join us at Delaware Hospice’s Festival of Trees for our Lunch with Santa, on Dec. 2, from 11 a.m. to 12:30 p.m., at Delaware Technical and Community College in Georgetown. Some close friends of ours from the North Pole will be joining us, and we’ll have pizza, goodie bags, and “special treats,” plus a picture with Mrs. Claus and I. You’ll also love our magnificently decorated trees and wreaths which will be on display. We hope to see you there! Sincerely, Santa Claus P.S. Admission tickets are $5 each, including admission to the tree and wreath exhibit. Purchase tickets in advance by calling Delaware Hospice, 856-7717 or Debbie Wright, 856-3878. All proceeds will benefit Delaware Hospice’s families. HATS STOCKING STUFFERS GALORE! OUR TREE IS LOADED WITH GIFTS FOR EVERYONE! STOP IN FOR BEST SELECTION! Christmas Sale up to 50% selected Items CHRISTMAS HOURS : Mon.-Fri. 8-5; Sat. 8-3 PM Saturday Dec. 23 8-5 PM Gift CA ava RDS ilab le! Visa, MasterCard, Discover Accepted GIFT CARDS AVAILABLE Scooters - Go Carts - 4 Wheelers - Hats - Toys - Hess Trucks - Pedal Toys So Much More... Layaway now ... Shop our wide selection! MORNING STAR ✳ NOVEMBER 23 - 29, 2006 PAGE 26 CHURCH BULLETINS Evening of gospel music Festivities planned on MLK Day St. Paul’s United Methodist Church, on Old Stage Rd. in Laurel, will present an evening of gospel music featuring the “Don Murray Family Band” on Nov. 26 at 7 p.m. A special guest performance begins the evening at 6:30 p.m. This band has spread the gospel through music for many years and is formerly known as “The Old Time Religion.” Songs are traditional and an enjoyable evening will be shared by all. For more information, call Pastor Don at 302-856-6107. For directions, call 302875-7900. Blaine Bowman at Christ Church Blaine Bowman and His Good Time Band are coming to Christ Evangelistic Church, 9802 Camp Road, Laurel, on Thursday, Dec. 7, at 7 p.m. A love offering will be taken. Thanksgiving dinners delivered Volunteers have been busy in the kitchen of St. Luke’s Episcopal Church parish hall. Thanksgiving dinners are being prepared for distribution to those in need in Seaford and the surrounding communities. The project is sponsored by the Church of God and Saints of Christ church members, who are using St. Luke’s facilities. The dinners will be delivered in Seaford, Laurel, Bridgeville and Georgetown by the YACTA youth group. This is a group of young people who organize food drives, and work within the church to serve Christ. YACTA stands for Youth Anointed with Confidence, Talent, and Old Time Religion will perform at St. Paul’s United Methodist Church. Atonement. Last year 1,600 dinners were prepared and distributed, some of which were served in the St. Luke’s Parish Hall to those in need on a walk-in basis. It is hoped that this year’s project will serve as least as many and perhaps more. Galestown UMC Fall Hymn Sing Galestown United Methodist Church will hold its annual Fall Hymn Sing on Dec. 3, at 2 p.m. Special music by “Revived” and “The Gospel Gents. A buffet style hot dinner will be served immediately following the service at the Galestown Community Center. The book titled “History Repeats Itself around Galestown Millpond” is now available for $5. This would make a great Christmas stocking stuffer gift for a special person as well as a great table top informative book. Guest preacher at Christ Church Come and hear dynamic preaching at Christ Evangelistic Church, 802 Camp Road, Laurel. Evangelist David Ellis will be preaching on Dec. 10, at the 11 a.m. service. Children’s Christmas Musical The children of Laurel Wesleyan Church will be performing a heavenly Christmas musical, “Fear Not Factor,” on A prayer breakfast, “Dare to Dream like the King,” is planned for Jan. 15, 2007 at 8 a.m. at the Seaford Country Club. The breakfast, which is a buffet, features keynote speaker, Dara Laws, the 2007 Seaford School District Teacher of the Year. Entertainment will be provided by The Good News Tour. Drs. Julius and NaTasha Mullen will receive the Community Recognition Award. Admission is $20 by advance tickets only. In conjunction with the prayer breakfast, the Western Sussex Boys & Girls Club will hold a day of activities for young adults from 11 a.m. to 5 p.m. Admission is $1 and features 7 Quilts for 7 Sisters as well as crafts, storytellers and entertainment. The day includes a teen summit and youth dance. Lunch is provided and vendors and giveaways are also included. For tickets and more information, call 302628-1908. Saturday, Dec. 2, at 6 p.m. and Sunday, Dec. 3 at 9 and 11 a.m., at Laurel Wesleyan church, located 1/2 mile north of Laurel on Rt. 13A. Nursery will be provided. For more information call 875-5380. Celebrate the Joy of Christmas The Delmar Church of God of Prophecy is excited to present the Broadway-style musical production “Let There Be Light.” Continued on page 27johns@dmv.com NOVEMBER 23 - 29, 2006 PAGE 27 FIRST BAPTIST CHURCH Merry Christmas to friends at Wal-Mart By the Rev. Todd K. Crofford Laurel Wesleyan Church PASTOR’S PERSPECTIVE It seems “Merry Christmas” is Most Americans you back in vogue. Wal-Mart announced this week that they will be meet have no problem including Merry Christmas in its seeing a Menorah on greetings, advertising, and holiday displays. one corner and a NaCertainly economics were a key tivity on the next. factor in this decision. Other retail stores including Macy’s and Kohl’s are following suit and believe this tion that embraces religious freedom is not will play well amongst American shopto sanitize us from religious expression, pers. but to be able to accept our differences Meanwhile, let me give three reasons why I believe ultimately this is a good de- without offense. Most Americans you cision, and one much more important than meet have no problem seeing a Menorah on one corner and a Nativity on the next. the bottom line benefit to stores. Finally, it is good to see a positive reFirst, it shows retailers still listen. sponse to Christians today. Recent years Wal-Mart was inundated by concerned have seen a parade of lawsuits trying to Americans who are tired of the liberals’ “protect” Americans against those dangerwar on Christmas. ous manger scenes in public, those acriIn letters, e-mails, personal complaints monious Christmas carols in school “holiand even outright boycotts customers told day” concerts, or any other mention of the Wal-Mart their politically correct decision name Christ during this season. was a poor one. Yet the celebration of Christmas preIt is gratifying to recognize that the dated the arrival of the pilgrims on the largest retailer in the world still gives Mayflower, is part of our historic tradition some credence to the opinions of their as a nation, and forms a part of who we clientele. Congratulations to those who are as a Christian nation. I hope that Waltook the time to graciously complain... Mart’s action will be a step in the direcyour voice was heard. tion of tolerance and reason that will serve Second, it represents a good viewpoint us all well this Christmas season. on freedom of speech. As Americans, we So, from my heart let me say, “Thanks need to realize that saying “Merry Christfor the Christmas gift, Wal-Mart.” Oh, and mas” is not a tacit form of saying, “Don’t “Merry Christmas to you too!” have a Happy Hanukah.” Celebrating a holiday of our own choosing is not a form The Rev. Crofford is Senior Pastor at Laurel Wesleyan Church. His views do not necessarily represent the views of of disrespecting other beliefs. the congregation or Wesleyan Church International. You The key to living side by side in a namay email pastortodd@laurelwesleyan.org CHURCH BULLETINS”) ome! Revelatio e To C n 22 Tim : 17 The Ark s ' t I Seaford Wesleyan Church River of Life Christian Center parsonage 875-2996 St. Luke’s Episcopal Church The Rev’d. Jeanne W. Kirby, Rector Continued from page 26 Directed and produced by three-time National Crystal Communicator Award winner, Wendy Craig, the production will premier Dec. 15, 16 and 17, at 7:30 p.m. with free admission. This is no ordinary “church skit.” With full set design, lighting, make up, costumes, singing and choreography it has already proved to be a delightful smash to both young and old alike. With a contemporary approach to the Christmas message, this group reminds us to “celebrate the joy of Christmas” - the joy of family and friends brought together again because of the baby Jesus. “Let There Be Light” is a major must-see event. The host pastor of the church is Bishop Michael Phillips. The church is located on Rt. 13 and Dorothy Road, just three miles north of the Maryland/Delaware state line. Refreshments will be served following the performance. A bicycle will be given away each night. Doors will open at 6:30 p.m. Come early because seats are limited. For more information, call 875-7824 o 875-3242. The Ninety & Nine Dinner The Ninety & Nine extends an invitation to both men and women to attend their annual Christmas dinner at The Seaford Golf & Country Club in Seaford, on Monday, Dec. 4, Guests Special speaker for the evening is Pastor Tim Dukes. When he was only eight years old, his family became a part of Epworth Fellowship Church in Laurel. In 1982, Tim graduated from Epworth Christian School. He attended Valley Forge Christian College and gradated in 1986. For more than five years he served as Youth Pastor in Farmville, Va. From Virginia he moved to Maryland and pioneered the Ocean City Worship Center and Continued on page 29 Sunday School - all ages 9:30 a.m. Worship 10:30 a.m. & 6:30 NOVEMBER 23 - 29, 2006 PAGE 28 OBITUARIES Jo Ann Sullivan, 64 Jo Ann Sullivan of Federalsburg, Md., died Tuesday, Nov. 14, 2006, at her home. She was born Oct. 16, 1942 in Federalsburg, the daughter of Rachel Bryant Richardson of Seaford, and the late Andrew A. Richardson, Sr. Jo Ann Sullivan She was a graduate of Federalsburg High School Class of 1960. In addition to being a wife and mother she had worked for the Seaford Banner, the Seaford and Laurel Star newspapers and the Seaford Leader in sales and marketing. She was instrumental in the startup of the Banner and the Stars. She attended Gloryland Tabernacle in Denton, Md. Besides her mother, she is survived by her husband of 45 years, James R. Sullivan, whom she married on Sept. 23, 1961, four children, Denise Stover and her husband, Mark, of Easton, Cindy Foskey and her husband, Mark, of Federalsburg, Cathy Todd and her husband, Larry, of Fenton, Mo., and Michael Sullivan and his wife, Kim, of Federalsburg; six grandchildren, Michael Cluley, Jr., Storm Sullivan, Candace Todd, Josh Todd, Amber Sullivan, and Kyle Sullivan; two brothers, Andrew Richardson and his wife, Sherry, of Federalsburg, and Bryant Richardson and his wife, Carol, of Seaford and several nieces and nephews. A memorial service was held on Saturday, Nov. 18, at the Framptom Funeral Home, P.A. in Federalsburg with the Rev. Otis Seese officiating. Memorial contributions may be made in her memory to Caroline Hospice Foundation, Inc., P.O. Box 362, Denton, MD 21629. Preston Hastings, 63 Preston “Cobby” Hastings of Laurel died Nov. 11, 2006. He was born a son of Alton and Alda Ferrell Hastings. Mr. Hastings worked 30 years, for Dukes Lumber Company. He was a member of the Seaford Moose Lodge. He volunteered his time to serve people in need. Obituaries are run without charge thanks to the support of area churches. He was an avid Dale Earnhart Sr. #3 fan. He loved working on cars. He enjoyed going to Ocean City, Md. for his wedding anniversary. He was a fantastic grandfather who loved every one of his children and grandchildren. He was predeceased by his parents and a brother Alfred “Punkin” Hastings, who died in 1995. He is survived by his wife of 13 years, Delores Hasting; a son, Preston Hastings Jr. and his wife Sheryl, of Laurel; daughters, Teresa Foskey of Laurel, stepdaughter Jeanette Massey of Blades; stepdaughter, Benda Robertson and husband Shannon of Selbyville; a brother, Harvey T. Hastings and wife Edna of Blades; sisters, Joyce Chambers and companion Henry Mason of Seaford; Peggy Dean and husband Bill of Laurel. He is also survived by 11 grandchildren: Eric, Chelsea, Tryston, Kerlee, Mason, Stephanni, Kortni, Benjamin, Zachary, Allen, Lori.; two great grandchildren, Kyler and Brianna.; and several nieces and nephews. His services were on Friday, Nov. 17, at Watson Funeral Home, Millsboro, with Pastor Jerry Denton, Pastor Timmy Dukes and Pastor Joe LeCates officiating. Interment was in Blades Cemetery, Blades. Contributions may be made to Blades Fire Dept., .200 East Fifth St., Blades, DE 19973 Letters of condolence may be emailed to: Watson Funeral Home, Delmarvaobits.com, or Watsonfh.com Gertrude A. Miller; and several nieces and a nephew. She is survived by a son, John L. Rouse and his wife, Patti, of Crisfield, Md.; two daughters, Sandy Bilbrough and her husband, Gary, of Secretary, Md., and Mary E. Sellers and her husband, David, of Denton, Md.; three grandchildren, Amy Wilson, Courtney Rouse, John Rouse, Jr.; three great-grandchildren, Michael, Dustin, and Amber. Her funeral service was on Nov. 22, at Framptom Funeral Home, P.A. in Federalsburg, with the Rev. Ray Parsons officiating. Interment followed at Maryland Eastern Shore Veterans Cemetery in Hurlock, Md. Memorial contributions may be made to Caroline County Hospice Foundation, P.O. Box 362, Denton, MD 21629. Harrison Bernard Connolley, 84 Harrison Bernard ‘Hots’ Connolley age 84, of Seaford, DE died Saturday, November 18, 2006 at Nanticoke Memorial Hospital. Born in Ridgely, MD on June 21, 1922, the son of Verona Hardesty and Carroll Connolley. He was a supervisor at the Chrysler Plant in Newark, retiring in 1982 after 30 years of service. He then worked as a guard at Beebe Hospital in Lewes, DE. He was a member of Our Lady of Lourdes Roman Catholic Church, Henlopen Grange # 20, an auxiliary member of Little People of America, Ches-Del Bays Chapter; in which he was instrumental in helping to form. He was a foster parent to 21 children and he had a great love for camping, fishing and crabbing. Union Eleanor M. Rouse, 77 United Methodist Church Eleanor M. Rouse, of Federalsburg known fondly as “Elea” departed this life on Nov. 17, 2006, at her residence. She was born Oct. 2, 1929 in Rochester, N.Y., a daughter of Walter E. Lambe and Olive G. Little Lambe. She retired from Black & Decker after 27 years of service. She worked in the kitchen at Caroline Nursing Home in Denton for four years and also worked for the Caroline County Board of Education for 10 years as a school bus driver. She was a member of A.A.R.P. and the Widowed Persons Service that met in Seaford. Besides her parents, she was preceded in death by her husband, Jack Rouse on March 6, 1993. She was also preceded in death by three sons, James Robin Rouse, Donald W. Rouse, Roy W. Rouse; a sister, 2 North Laws St., Bridgeville, DE 19933 Across from Bank 337-7409 Handicap Friendly WORSHIP TIMES: 9 am Contemporary Service 10 am Sunday School 11 am Traditional Worship Youth Group (Sun. 6 p.m.) Delphine Ann Page, 75 Delphine Ann Page of Greenwood, passed away on Saturday, Nov.18, 2006 at her residence. She was born on July 25, 1931 in Lebanon, DE to the late Delphin and Wilhemina Daisey. She is survived by her husband of 48 years, Richard Allen Page of Greenwood; three sons, Frederick Donophan of Cumberland, Md, Bruce Donophan of Pennsyl- He is survived by two sons and their wives, Keith and Pat Connolley, Seaford, and Tom and Mary Connolley, Greencastle, PA; two daughters, Linda Simmons and her husband Roger of Gaffney, SC and Penny C. Connolley, Lewes; a brother, Charles Connolley of Warren, RI; two sisters, Ellen Stant Lazzeri, Camden, and Henrietta Maloney, Milford; 11 granddaughters and one grandson; 15 greatgrandchildren; his extended family, which includes in-laws Edith and Chuck Benton, Palm Springs, CA; Frances and Jim Shields, of Delray Beach FL; and Janice Bramble of Millington, MD. In addition to his parents, he was preceeded in death by his loving wife Erma Bramble Connolley whom he met at Heavens Gate on November 18; a grandson and a granddaughter; six brothers and six sisters. Services were Wednesday, Nov. 22, in Our Lady of Lourdes Roman Catholic Church, Stein Highway, Seaford, with a commital service in Lewes Presbyterian Church Yard. Contributions may be made to Ches-Del Bays Chapter 64, 405 Ivory Lane, Newark, DE 19702. ✳ NOVEMBER 23 - 29, 2006 vania, Richard A. Page; four daughters, Regena Bordley of Greenwood, Tracy Murray of Greenwood, Deborah Page of Salisbury, Md, Deaneen Page of Grasonville, Md; four grandchildren; one great granddaughter. Funeral Services will be held at the Parsell Funeral Homes & Crematorium, Hardesty Chapel, 202 Laws Street, Bridgeville on Friday, Nov. 24, 2006 at 2 p.m. Burial will follow the services at Bridgeville Cemetery. Memorials can be made to Delaware Hospice 20167 Office Circle Georgetown, DE 19947-online condolences may be sent to condolences@parsellfuneralhomes.com. Doris Yvonne McQuay, 83 Doris Yvonne McQuay passed away at Coastal Hospice by the Lake in Salisbury on Saturday, November 18, 2006. She was born in Bozman, Maryland, a daughter of Daniel Seth McQuay and Helen Graff Fedder. Doris was a Major with the Salvation Army. Major McQuay was commissioned from The Salvation Army Training College in Atlanta, Georgia in May 1953. She then had a short appointment to the Mountain Mission in North Carolina. She also had been stationed in The Salvation Army’s Homes and Hospitals for Unwed Mothers in Birmingham, Tulsa, Tampa, Louisville and Richmond. She served at The Salvation Army Day Care Center in Baltimore and was the director of the Girl’s Club in WinstonSalem, North Carolina from 1973 until her retirement in 1985. Major McQuay was a Christian comic and traveled to many Salvation Army senior camps throughout the eastern United States after her retirement PAGE 29 and appeared many times on a local Salisbury television station. She was The Salvation Army’s Woman of the Year for the Salisbury area in 2005. She attended The Salvation Army Corp in Salisbury, Maryland. She is survived by her sister, Katherine Ziegelheafer of Delmar; a brother, Gordon Reuben McQuay of Baltimore; and several nieces, nephews and cousins. She was preceeded in death by a brother, Leroy Seth McQuay. A viewing was held at Duda-Ruck Funeral Home of Dundalk on Tuesday. The funeral service was at the funeral home on Wednesday. Major Keath Biggers and Major Gene Hogg officiated. Interment followed at Gardens of Faith in Baltimore. Memorial contributions may be sent to The Salvation Army, P.O. Box 3235, Salisbury, MD 21802. What must I do to be saved? CHURCH BULLETINS Continued from page 27 pastored there for 13 years. In July 2006, Pastor Tim began his tenure at Central Worship Center (formerly Epworth Fellowship Church) in Laurel. He, indeed, has come back full circle. He and his wife, Dottie live in Ocean Pines and have four children. The singer will be Corey Franklin. Corey pursued music when he was at a very young age. It wasn’t long before he began song writing and he has been making music a priority ever since. Corey joined the high school choir his junior year, became interested in vocal training, and gained an appreciation for vocal and music theory. He enjoyed much success and received several high honors such as the national chorale men’s choir division in 1995. Corey is now booking and playing live shows. Currently, he is the Worship Leader at Central Worship Center in Laurel. Corey and his wife, Michele, live in Laurel and have three children. Come and receive a blessing. Reservations are necessary. Deadline is Nov. 29. For details or more information call: Joyce Thomas at 629-2248, Michele Thompson at 877-0797, or Arvalene Moore at 8754387. Church of God Concert Jerry Jones will present a Christmas Concert at Stein Highway Church of God, 500 Arch St., Seaford, Friday evening, Dec. 8, at 7 p.m. He will share in word Help a lonely senior through the Be a Santa to a Senior Program Home Instead Senior Care, provider of non-medical home care and companionship for older adults, will hold the third annual Be a Santa to a Senior program now through Dec. 4. The program is designed to help stimulate human contact and social interaction for seniors who are unlikely to have guests during the holidays. Participating local non-profit organizations identify needy, orphaned and isolated seniors in the community and provide those names to Home Instead Senior Care for the program. Christmas trees in The Dover Mall and at each Halpern Eye location feature ornaments with the first names only of needy. A citywide gift-wrapping day will be held on Dec. 8 at Westminster Village in Dover at noon and Dec. 9 at Genesis/Seaford Center in Seaford at noon. The following local organizations have joined the program in Kent County - Green Meadows, State Street Assisted Living, Courtland Manor, Home Health Corporation of America, Compassionate Care Hospice, Capital Healthcare and Rehabilitation Services and Westminster Village. In Sussex County, the organizations include Nanticoke Senior Center, Harrison House, Lewes Senior Center, Delaware Hospice, The Greater Seaford Chamber of Commerce and Easter Seals. Also participating are The Dover Mall, and all Halpern Eye locations. Helen, 81, is one area senior who benefited from the program last year. She received gloves, a hat and a scarf that requested and was delighted to have visitors during the holidays. If you or someone you know is interested in volunteering to help on the citywide gift-wrapping day, contact Nancy Bork or Valerie Crew at 302-697-6435. Businesses are encouraged to contact the local Home Instead Senior Care office about adopting groups of seniors. and song with Traditional Christmas music, Country Gospel Music, and Contemporary Gospel Music. All are invited. A love offering will be accepted. For more information call 6299689 or 629-8583.. Each week Mary Ann Young sings your Gospel favorite. November guest singers are: Nov. 25: Hannah Smith, Abundant Joy. Everyone is invited to attend. Come as you are. For more information, contact the church office at 875-3983, or Bruce Willey at 875-5539. Send us your Church news Send items to Morning Star, PO Box 1000, Seaford, DE 19973 or email morningstarpub@ddmg.net Laurel Wesleyan Church Presents A Heavenly Children’s Christmas Musical FEAR NOT factor Saturday, Dec. 2 nd at 6:00 pm and ... Sunday, Dec. 3 rd at 9:00 am & 11:00 am Located 1/2 mile north of Laurel on Alt 13 in Laurel, DE For more information contact the office at 875-5380 PAGE 30 MORNING STAR ✳ NOVEMBER 23 - 29, 2006 “Your Satisfaction is Our Goal” Entertainment P.O. Box 598-US 13 Seaford, DE 19973 Fax: 302-629-5573 LICENSED IN DELAWARE & MARYLAND 302-629-5575 800-221-5575 Thanksgiving Greetings With best wishes to all our neighbors, associates, customers and friends. Thank you for giving us so much to celebrate this year. NEW BAY STREET BRASSWORKS IN CONCERT - The Seaford Community Concert Association will be presenting its second concert of the season with Bay Street Brassworks. The group consists of French horn, tuba and two trumpets. Among numerous awards, they received first prize at the 2003 New York Brass Conference, Brass Quintet and two Career Development Grants from the Peabody Conservatory. The concert is on Tuesday, Nov. 28, at 8 p.m., at the Seaford High School. The concert series has been sold out for this year, and admission is by membership only. Mid-Atlantic Symphony Orchestra to celebrate the 2006 holiday season Mark your calendars! During the first weekend of December, the Mid-Atlantic Symphony Orchestra (MSO) will celebrate the beginning of the holiday season with a concert of "Holiday Joy" featuring Robert Cantrell, bass/baritone guest soloist. He has been described by the late Washington Post critic Joseph McLellan as "a warm supple voice that brought out the lyrical intentions of the composers making them treasured moments". Cantrell has appeared with the Washington Opera Company as "Jim" in Gershwin's "Porgy and Bess" and as the "Jailer" in Puccini's "Tosca." He has also performed with several other opera companies, including Baltimore Opera Company, Wolftrap Opera, and Opera Delaware. Following a performance of Verdi's Requiem, a Baltimore Sun critic wrote "Cantrell's ripe bass filled his solos vividly." In January 2007 he will be making his debut at Carnegie Hall as bass soloist in Mozart's "Requiem." MSO Music Director Julien Benichou has chosen a rich full program certain to delight the audience. Along with traditional carols, such as "Joy to the World" and "The First Noel," there are other holiday favorites including Leroy Anderson's "Sleigh Ride." The program also features excerpts from Handel's "Messiah," Nutcracker Suite No.1, and a Hanukkah medley. The concert will take place in three locations: Friday, Dec. 1, 7:30 p.m. at Sts. Peter & Paul Catholic Church on Rte. 50 & Easton Parkway, Easton, Md.; Saturday, Dec. 2, 7:30 p.m. at the Community Church on Rte. 589 in Ocean Pines/Berlin, Md.; and on Sunday, Dec. 3, 3 p.m. at Mariners Bethel Church, Route 26 & Central Avenue, Ocean View, Delaware. Advance tickets may be obtained by calling (888) 846-8600. Tickets are $28 for adults, $10 for students, and children 12 and under are free when accompanied by a paying adult. A printable order form is also available at. This concert is sponsored in part by grants from the Endowment for the Arts, the Maryland State Arts Council, Talbot County Arts Council, Worcester County Arts Council, and by the generosity of loyal patrons. The MSO is very appreciative of their support. NEW Good sized rancher appears in excellent shape. 4 BR, 2.5 BA, sunroom, fenced yard, hdwd. flrs., etc. #542683 $235,900 A rare find!!! Waterfront home in exclusive Holly Shores. Reproduction “Deerfield” home sits on 1.83 ac. on the main channel of the Nanticoke w/dock. 3 BR, 2.5 BA, 3rd flr. study w/magnificent view of the Nanticoke, formal LR & DR, FR w/full bar, sunroom & bright sunny kitchen. Many recent updates. #542580 Virtual Tour Great poultry farm. 3 houses with 2 computerized. All have tunnel on 5.25 acres w/3 BR, 2 BA rancher & lots of outbldgs. $750,000 #530878 Immaculate in-town ranch home featuring hardwood flrs. w/private dining, landscaped & irrigated yard. 2nd floor is ready to expand. Cedar closet, lots of storage. #533978 Virtual Tour Just right with all the good stuff. Beautiful 4 BR 3.5 BA home w/bonus room & game room. Hardwood & tile in many areas, granite kitchen counter, WP tub, wall cabinets, marble windowsills, Energy Star certified. #541831 Need Space? Almost 2 ac. country lot w/custom ranch & extra 3-car detached gar. w/workshop. Home has many custom features & extra summer kitchen. #528167 Beautiful stately home w/gorgeous hdwd. flrs., unique dual stairway that meets at a landing. Spacious flr. plan w/ 2nd flr. balcony. Wraparound porch is a perfect place to relax. $157,000 #531584 This could be your new home. Likenew 2-yr old Cape on 1.59 ac. surrounded by woods & ready to move into. 2 BR, 2.5 BA & unfinished 2nd flr. w/elec., plumbing & C/A. Lots of amenities. #541582 Discover Bank CDs. ® We have your best interest at heart. At Discover Bank, we understand why your money matters. That’s why our CD accounts have features to help you make the most of it: • Competitive Rates — CD rates consistently exceed the national averages* • Flexibility — Terms range from 3 months to 5 years Discover Bank. where every customer is a neighbor. • Low Minimums — Deposit amounts start at $500 • Strength and Security — Discover Bank CDs are FDIC insured Discover Bank has been providing exceptional banking services to the community since 1911. Our friendly Banking Representatives are sure to help you find the financial services that are right for you. So stop in and open a CD account today, go online at MyDiSCoveRBank.CoM, or call us for more information at 1-888-765-6654. 502 E. MarkEt St. GrEEnwood, dE 19950 toll frEE 1-888-765-6654 MEMbEr fdic. a MorGan StanlEy coMpany. *according to cd rates reported in a recent survey of financial institutions by banxQuote.com MORNING STAR PAGE 32 ✳ NOVEMBER 23 - 29, 2006 Classifieds FREE CLASSIFIEDS* (For Personal Use Only) *Some exceptions such as homes for rent or sale Deadline: Monday, 3 p.m. Businesses: $4.50 per inch ($9.00 minimum) Boxed (Display) Ads: $6.30/inch Legals: $6.30 per inch LOST NOTICE LOST KITTEN, white except tail & spot on left ear, had blue collar. Dublin Hill Rd., Bridgeville area. 3377244 or 448-9930. 10/5 CHILDCARE SOLUTIONS GIVE-AWAY STUFFED ANIMALS, like new, free. 841-2409. 11/16 HARDWOOD FIREWOOD, you cut & haul. 855-5878. 10/12 KITTENS! Various colors, 5 mos. old, mostly males, free to good home. 8750964. 10/5 FREE HORSE MANURE, great for gardens & shrubbery. 337-3840. 9/7 HELP WANTED Victory Beverage, distributor of Red Bull Energy Drink, is looking for a hard working individual to join our sales team. Fax resume to 215-2444702 or email to jdaunoras @victorybeverage.com 11/16/4tc BUSINESS OPPORTUNITY FOR SALE School Bus Business In The Seaford School District Call 629-9793 or 745-8922 LOOKING TO PARTNER WITH 4 BEAUTY CONSULTANTS. If you have tried other cosmetic companies, only to be let down, we need to talk. Call 1-800211-1202 x 16387. Leave your name and phone & the best time to reach you. tnnc New Christian Home Day Care has openings for infants, toddlers, and preschoolers. Call Miss Marci at 875-4307. tnnc Enjoy the Star? Call 629-9788 YARD SALE GARAGE SALE Sat., 11/25, 7:30 - until. Christmas items, hosuewares, golf clubs. 26399 Bethel Concord Rd., Seaford, near 4 way stop. 11/23 WANTED! LOOKING FOR A SCOOP for tractor, size 3. 4226381, ask for Jerry. AUTOMOTIVE PAYING MORE THAN $35 / Month for AUTO INSURANCE? 1-877-621-1030 Credit Cards accepted. tnc Cheap • Cheap • Cheap AUTO INSURANCE? 1-877-621-1030 Credit Cards accepted. tnc ‘93 FORD THUNDERBIRD, front end damage, good motor, new tires, sell for parts. 875-3023. 11/23 RAILS off Ford Ranger for short bed, good cond., $50. 337-7494. 11/16 GAS MINI CHOPPER, holds up to 300 lbs., $350. Gas Scooter, holds up to 300 lbs., $250, like new. 875-9437. 11/9 UTILITY TRAILER, 2 axle, 5’x10’, enclosed. 1 yr. old, full of yard & garden tools, some antique. 875-9383. 11/9 ‘94 HONDA PRELUDE SI, doesn’t run, needs engine work, otherwise nice cond. BO. 410-754-5985 or email thorwor82@aol.com (photos on request). 11/2 ‘82 ELCAMINO SS P/U, 422-6381, ask for Jerry. 10/19 20’ AWNING $275. 6292226. 11/2 REESE CAMPER, 12,000 lb. weight distribution, hitch w/spring bars & friction sway control. $125. 3378962. 10/26 ANTIQUES/ COLLECTIBLES LENOX ENDANGERED Baby Animal Series. Wallaby Joey (kangaroo) & Panther cub, $35 ea. 628-5484. FOR SALE GOLF CLUBS, Dunlop Exceed, bag & cart, $100. 629-2226. 11/23 Hitchens Frame Shop Discount Land Rd., Laurel 302-875-7098 20% Off thru Christmas 40 Yrs Framing Experience “You name it we frame it” CHINA CABINET, walnut, glass & wood front w/open display area. Exc. cond., just in time for the holidays, $50. 875-0747. 11/23 QUEEN SLEEPER SOFA, good cond., blue embossed, $125. Dining Table, 4 chairs & 2 captains chairs, $125. 877-0646. BOATS HELP WANTED KAYAK 18’ w/Rudder, Kelvar Const., beautiful cond. w/all access. & more. Must see. Sacrifice $1600. 8759775. 10/12 The Woodbridge School District SALES POSITIONS JOHNNY JANOSIK’S New “World Of Furniture” Laurel & Dover, Delaware Locations WE WANT PEOPLE WHO: • Have sales experience, but not necessary • Have an interest in furniture • Have enthusiasm WE OFFER: • Paid training programs • Health insurance and 401K plan • Employee discount • Potential to earn $50K+ a year is seeking qualified individuals for the following positions: • Technology Coordinator @ District Office • Technology Specialist @ Elem. & Middle Schools • Part Time Clerk @ District Office • Long Term Substitute - Spanish • Full Time Kindergarten Paraprofessional @ Elem. School To review Qualifications go to preview list at Any interested individual must submit an application to: Heath B. Chasanov, Assistant Superintendent, Woodbridge School District, 16359 Sussex Highway, Bridgeville, DE 19933 or CLOSING DATE: December 1, 2006. Call Renee Collins or email your resume to info.box@johnnyjanosik.com Managers & Assistant Managers CAMPERS/ TRAILERS The Board of Education reserves the right to reject any or all applicants, re-advertise and/or withdraw the position. The Woodbridge School District does not discriminate in the employment or educational programs, services, or activities, based on race, sex, or handicap in accordance with State and Federal Laws. COLLEGE STUDENTS The Delaware State Police is taking applications for Cadets We’re looking for customer service oriented people with true people skills, who possess the ability to budget, market and manage busy restaurants in Dover, Seaford, Rehoboth DE & Salisbury MD. Positions offer paid training, paid vacation, health insurance, Incentive bonus plans, and complimentary meals. Pay commensurate with experience. Fax resumes and cover letters to 677-1606 or email Nancy@delawareihop.com. Work 12-15 hours per week - $9.33 per hour Requirements 18-21 years of age, US Citizen Enrolled in a Delaware College, Must possess a valid drivers license with one year driving experience Application Closing date 12-01-2006 FOR MORE INFORMATION CONTACT A RECRUITER AT Come hungry. Leave happy. © 2006 International House of Pancakes, Inc. (302) 739-5980 The D.S.P. is an Equal Opportunity /Affirmative Action Employer BUSINESS & SERVICE DIRECTORY A/C & HEATING ATTORNEYS AUTOMOTIVE SUSSEX HEATING & A/C AUTO ACCIDENT AND PERSONAL INJURY CLAIMS ALLEN BODY WORKS, INC. 302-745-0735 Service within 4 Hours Lowest Price in Sussex County Sales, Service, Installation Initial Consultation Free No Fee Unless You Recover Evening and Weekend Appointments FUQUA and YORI, P.A. 413 NORTH CENTRAL AVE. LAUREL, DE 19956 The Circle • Georgetown • 856-7777 302-875-3208 *Listing areas of practice does not represent official certification as a specialist in those areas. COMPUTER NEEDS CONCRETE CONSTRUCTION In-Home Computer Repair Specialist For All Your Computing Needs • DRIVEWAYS • GARAGES • SIDEWALKS • PATIOS Factory Specialist on Carrier, York, Bryant, Trane, Rheem & Goodman Heat Pumps - A/C - Furnaces Over 20 Yrs. Experience Licensed & Insured Computer Running Slow? ATTORNEYS AT LAW MR. CONCRETE 410-742-0134 Mark Donophan Virus, Spyware & Spam got you down? Call Paul DeWolf User Friendly Computer Service 302.629.9208 EMPLOYMENT Licensed & Insured Free Estimates FARM & HOME 1004 W. Stein Hwy.Nylon Capital Shopping Ctr., Seaford, DE Donald L. Short, Owner/Sales 328 N. DuPont Hwy., Millsboro, DE 19966 • Ponds • Mulch • Shrubs • Stones • Trees • Lawn & Gdn. Supplies Full Service Store: • Pet Food • Livestock Equip. • Flags • Wild Bird Seed & Feeders • Giftware • Rowe Pottery • Candles • Clothing 302-934-9450 U.S. 13 N., Seaford 302-629-9645 • 800-564-5050 IRRIGATION MATERIAL HANDLING R & L Irrigation Services Finish Site Work Complete Irrigation Systems Sod Laying & Seeding Exterior Lighting Ponds, Mulching, Concrete Pavers EASTERN LIFT TRUCK CO., INC. Materials Handling Equipment Industrial Trucks New - Used - Rental Parts & Service The power to amaze yourself.™ 216 LAURELTOWNE LAUREL, DEL. 302-875-4541 PHOTO COPIES Self Service Photo Copies 10¢ per pg 302-530-3376 Morning Star Publications 628 West Stein Highway Behind County Bank 302-629-9788 REAL ESTATE REMODELING SALES LAUREL REALTY . TILE AUCTIONEER • Personal Property • Real Estate • Antiques • Farm (302) Have Gavel Will Travel (302) 875-2970 236-0344 Cell Laurel, Delaware CONSTRUCTION Independently Owned & Operated 328 N. DuPont Hwy. Millsboro, DE 19966 301 Bay St., Suite 308 Easton, MD 21601 302-934-9450 410-819-6990 Dick Anderson 9308 Middleford Rd., Seaford, DE SALES “The Pole Building Specialists” 302-629-4281 Seaford, Delaware COSMETICS A complete line of salon quality cosmetics individually selected just for you. Ask about our custom blended foundations. Call for a FREE consultation Pole Buildings - Residential Garages Horse Barns - & Other Complete Celebrating Buildings 25 Years HOME IMPROVEMENT INTERNET Roofing, Siding, Decks, Window Replacement, New Homes, Home Improvements & Customizing Over 25 Years Experience 17792 Line Church Rd., Delmar, DE 19940 (302) 846-0372 (302) 236-2839 cell POWER WASHING “Dependable” Power Washing Services Residential & Commercial Free Estimates 302-841-3511 Owned & Operated by: Doug Lambert, USN Ret. Licensed & Insured SEAFOOD Increase Your Sales Call Rick, George, Pat or Carol To ADVERTISE! Jay Reaser 875-3099 Access, Design & Services 888-432-7965 / 28 Old Rudnick Lane, Dover, DE PRINTING For Your Business Needs Business Cards Letterheads, Etc. Call The Star 628 W. Stein Hwy. 629-9788 SEPTIC SERVICE GOO MAN OF DELMAR Septic Care Services TREE & LANDSCAPE SERVICE FOR ALL YOUR TILING NEEDS Kitchen & Bath Remodels Commercial • Industrial • Residential John Liammayty - Licensed & Insured 302-853-2442 Call For Appt. Open Tuesday thru Sunday MUSSER & ASSOCIATES, INC. t/a All Work Guaranteed Donald L. Short, Owner 1004 W. Stein Hwy.Nylon Capital Shopping Ctr., Seaford, DE Healthy Hair with a Healthy Glow Men - Women - Children 800-385-2062 • 302-628-2600 FREE ESTIMATES 302-629-4548 Healthy Hair Clinique MICHAEL A. LOWE, SR. Propane, Elec., Gas, Diesel 10254-1 Stone Creek Dr. Laurel, DE 19956 302-875-8961 • Fax 302-875-8966 RICHARD E. WILLIAMS Lee Collins BARBER/BEAUTY All work guaranteed Free Estimates M-F 8-5; Sat. 8-4 Full Service Nursery: 302-628-0767 AUCTIONEER A&K Enterprises & Hitchens Frame Shop ALT 13 at Bridge in Laurel Drop off your Holiday framing at A&K. We will have it for you! *20% off Thru December 24th DISHWASHER, apt. size, portable, 6 mo. old, $200. 877-0646. 11/23 COFFEE & END TABLE, exc. cond., $80. 410-8833462. 11/9 CHILD’S DOLL HOUSE, $300. 344-1246. 11/23 THOMPSON 50 CAL. blk. powder Hawkins style, $150 OBO. 337-3370. 11/9 PAGEANT DRESS, white, sz. 8, good cond., $15. 8755788. 11/16 HOT TUB, exc. cond., seats 4, orig. $3000. $300 OBO. 629-6189. 11/16 BRIDAL GOWN, $2000 new, size 8, high neck & mutton sleeves, 20 yrs. old, $300 OBO. 629-6189. 11/16 GO-CART, Yersdog, 2 seater, 6 hp, w/torque converter, exc. cond., $500. 875-9431 eves. 11/16 FOUTON, very good cond., $125. 875-9437. 11/9 PIANO, $150 OBO. 8587492. 11/9 NEW HARLEY HELMET, #1 logo, $75 firm. Harley Wedding Rings, $100 firm. 858-7492. 11/9 4-PC. LR SUITE, sofa, rocker, chair & coffee table, wood trim, blue floral, $75. Phillips color TV, 12”, $25. 877.0741. 11/9 MR. & MRS. SANTA CLAUS handmade figures, 13” - 15” tall, $5 ea. 8753935. 10/26 DOUBLE STROLLER, Stadium style (side by side), good shape, $50. 875-3099 after 1 pm. 10/19. 875-5513 GIRL’S HUFFY BIKE, nearly new! 18” w/lBarbie Bike Helmet, $35. 875-3099. ✳ NOVEMBER 23 - 29, 2006 KNEELING COMPUTER CHAIR for bad backs, $20. 846-2681. 11/2 TROYBILT YARD VACUUM, walk behind, chipper, shredder, 5.5 hp. $250. 629-3315. 11/2 WICKER SET, 4 pc., mint green, $75. 875-8840 before 8 pm. 11/2 DINING ROOM TABLE, birch, 44L, 42W, 2 end leaves, 44L, 42W, 2 end leaves, 6 chairs (2 captain), exc. cond.) $1200. 6295469. 11/2 HEADBOARD, Southwestern style Headboard, wood & wrought iron, $35. 8753099. 11/2 OIL DRUM & STAND, 275 gal., $25 for both. Solid wood microwave stand, shaped like a home comfort wood stove, $125. 8759610. 11/2 DVD MOVIES, horror, adventure, comedy, $3 ea. 628-1880. 10/26 HUNTING COAT, brand new, sz. 42. Pd. $50, will take $30. 846-3839. 10/26 MICROWAVE, SUNBEAM, small, white, $20. 875-3099 after 1 pm. 10/19. WINCESTER PUMP model 1300, 4 interchangeable barrels, scope, choke, $350. CVA Muzzle Loader, Hawkis, 50 caliber, side hammer, $100 OBO. Ask for Tony, 875-2454. 10/19 ANIMALS, ETC. Happy Jack Flea Beacon: Controls fleas in the home without toxic sprays. Results overnight! JAY DAVIS LAWN & GARDEN 8755943. 11/16/4tc 60 GAL FISH TANK w/ stand & access., $200. 8757643. 11/16 PEACOCKS, 1 Pr. for sale, $50/pair. 875-4952. 10/19 BORDER COLLIE PUPS, farm raised, registered, ready to go Oct. 15. $400 ea. 629-3964. 10/5 WANTED TO RENT SENIOR LADY seeking to rent 1 or 2 BR trailer in areas of Delmar, Laurel, or Millsboro, Del. Good housekeeper, on S.S. income, no pets or children. Can pay approx. $350 mo. Need by Dec. 1. Call 410334-2382 or 410-742-5230. 11/16 Log Home Dealers WANTED! Great Earning Potential Excellent Profits Protected Territory Lifetime Warranty American Made Honest Value Daniel Boone Log Homes Call 1-888-443-4140 Enjoy The Star? Subscribe! 629-9788 DISCLAIMER: be aware that Morning Star Publications has no control over the Regional ads. Some employment ads and business opportunity ads may not be what they seem to! Does Your Business Need SPECIAL REGIONAL ADS Automotive DONATE YOUR VEHICLE! UNITED BREAST CANCER FOUNDATION. A Woman Is Diagnosed Every Two Minutes! Free Annual Mammogram Fast, Free Towing, NonRunners Acceptable 1-888-468-5964. Autos Wanted DONATE YOUR CAR TO THE ORIGINAL 1-800Charity Cars! Full retail value deduction if we provide your car to a struggling family. Call 1-800-CHARITY (1-800-242-7489) Business Opportunity ALL CASH CANDY ROUTE. Do you earn $800 in a day? Your own local candy route. Includes 30 machines and candy. All for $9,995. 888753-3452 Business Services Lawyer - Michael Ryan DWI, Criminal, Divorce, Child Custody, Car Accidents, Workers Compensation, Name Change, Social Security Disability, Free Consultation. Avail. Eves./ Weekends. Please Call 301-805-4180 Employment Services Post Office Now Hiring. Avg Pay $20/hour or $57K annually including Federal Benefits and OT. Paid Training, Vacations. PT/FT. 1800-584-1775 USWA Ref # P1021 Help Wanted Become a Certified Heating/Air Conditioning, Refrigeration Tech in 30 days (EPA/OSHA certification). Offer Financial Aid/Job Placement Assist. M-Sunday 1-866-551-0278 #1 TRUCK DRIVING SCHOOL - Training for Swift & Werner. Dedicated Runs Available. Starting Salary $50,000+ Home Weekly! ** Also Hiring Experienced Drivers** 1-800-883-0171 A-53 Part -time, home based Internet business. Earn $500 -$1000 / month or more. Flexible hours. Training Pro- vided. No investment required. FREE details. Life Insurance & Sales Pros Huge Biz Oppty. $35K-$75K PT $100K+FT 1-800-8949693 AWESOME TRAVEL JOB!!! 18-23 guys / gals to travel USA with coed business group representing major Hip-Hop Rock & Roll, Fashion and Sport publications! Transportation furnished. 1888-890-2250 Help Wanted - Sales Sales / Sales Managers/ No-Fee Distributors. $9K Wk High / $100K Yr. $1 Million Yr./ Future, 2-3 Pre-Set Leads Daily-Overrides / Bonuses / Mgrs. Not Multi Level. 1-800-233-9978 Craftmatic Help Wanted-Drivers Drivers: ACT NOW! Early Christmas Bonus $1000+Wkly 36-43cpm / $1.20pm $0 Lease NEW Trucks CDL-A + 3 mos OTR 800-635-8669 Land For Sale HUNTER'S NY LAND SALE, LAST CHANCEAUCTIOIN PRICES. 50 Tracts-20 to 250 Acres. Discounts, rebates, free closing costs. Limited time. Steuben County/ Southern Tier- 5 Acres- $17,900. Borders state game lands- 10 cres- $19,900. Tug Hill/ Salmon River Area- 48 Acres- $59,900. Adirondack Hunt Club- 120 Acres-$580 per acre. Western Adirondacks with ponds & 175 Acres- $740 per acre. Our best deals in 10 years! EZ financing. Call Christmas & Associates, 800-229-7843, NYS' Only Company Participating with Cabela's Trophy Properties. 20+ Acres with Private River Access. Perfect for a vacation getaway and retirement. Very usable with long range mtn views. 8+ AC with 600' of Private Trout Stream. Frontage on paved state rd, open meadows, unsurpassed 180* views. Ready to fish or have horses. All for only A SHOT IN THE ARM? Place a business card-sized ad in 101 MD, DE & DC newspapers with just one phone call and for one low price! Reach 3.7 MILLION People! Get the Best Coverage! ONLY $1,250 PER INSERTION. For details, call Gay Fraustro of the MDDC Press Service at 410-721-4000 x17 SAVE UP TO 85% MDDC 2x2 DISPLAY AD NETWORK $148,728. Plus private deeded access to National Forest. New survey, perc. Special Holiday Financing! Call today 1-877-777-4837 FOR SALE BY OWNER. 1000' of seasonal stream, High elevation ridge w/ sunset views. Mixture of hardwoods/ pine. Easy access to camp or build. 22+ acres, perc, for only $131,500. Call 304-262-2770 LAND BARGAIN Gentle hardwood ridges, 2 seasonal stream. Enjoy sunrise views in this 20+ acre parcel w/ private deeded access to South Branch of Potomac River. Only $122,700. Call Now 304-596-6114 ONE OF A KIND 19+ ACRES. Park- like hardwoods with driveway & pristine sunset views. Over 1100' of Jefferson National Forest frontage. Fronting on paved state rd. New survey, perc, ready to use for only $157,123. Call Owner 1304-596-6115 Medical Supplies New power wheelchairs, scooters, hospital beds, ABSOLUTELY NO COST TO YOU If qualified. New lift chairs starting at $599, limited time offer. Toll free 1866-400-6844 Miscellaneous AIRLINES ARE HIRING Train for high paying Aviation Maintenance Career. FAA approved program. Financial aid if qualified - Job placement assistance. CALL Aviation Institute of Maintenance 1-888-3495387 Real Estate NORTH CAROLINA MOUNTAINS- Gated community with spectacular views, public water including fire hydrants, DSL accessibility, paved roads, nearby lakes; preselling phase IV $35,000+ 800463-9980 Coastal Georgia- New, PreConstruction Golf Community. Large lots & condos w/ deepwater, marsh, golf, nature views. Gated, Golf, Fitness Center, Tennis, Trails, Docks. $70k's-$300K. 1877-266-7376 MORNING STAR Real Estate Rentals NO RENT- $0 DOWN HOMES Gov't & Bank foreclosures! No Credit O.K. $0 to low Down! For Listings, (800)860-0573 Real Estate Services We Buy Houses... Fair price, fast settlement. Whatever the situation, Probate, Divorce, Death, etc. Roger 202-327-0196 Real Estate/Acreage Want to get your Business Booming?? Advertise in 120 newspapers across Maryland, Delaware, and DC, reach over 2.3 Million households for only $430. For more information contact this Newspaper or call Mike Hiesener, MDDC Classified Networks, 410721-4000, ext.19 or visit :. Tax Services IRS TAX DEBT KEEPING YOU AWAKE? Local CPA firm resolves all Federal and State tax problems for individuals and businesses. US Tax Resolutions, P.A. 877-477-1108. FREE CLASSIFIEDS Personal Items for Sale. No Vendors Please. Call 629-9788, or send to P.O. Box 1000, Seaford, DE 19973. Enjoy the Star? Don’t Miss It! Subscribe Today! Call 629-9788 302-875-3099 elegantyou.motivescosmetics.com LEGALS NOTICE OF APPLICATION “Castaways, Inc. T/A The Castaways have on November 13, 2006, applied with the Alcoholic Beverage Control (“Commissionerâ€?) seeking a 1,700 square foot extension of premise. Extension includes adding handicap-accessible restrooms, storage space and a 2,450 square foot outdoor patio. Licensee request variance(s) to allow external speakers or amplifiers, live entertainment and a wet bar on licensed patio. Premises located at 30739 Sussex Highway Laurel, DE. âœł NOVEMBER 23 - 29, 2006 Building, 820 North French Street, Wilmington, DE 19801. The protest(s) must be received by the Commissioner’s office on or before December 18, 2006. Failure to file such a protest may result in the Commissioner considering the application without further notice, input or hearing. If you have questions regarding this matter please contact the Commissioner’s Office.â€? 11/23/3tc PUBLIC HEARING The Town of Laurel, DELMAR SCHOOL DISTRICT SCHEDULES REFERENDUM The Delmar School District will hold a referendum on Tuesday, December 5, 2006 to seek voter approval to float bonds through the State of Delaware to continue the previously approved construction of six [6] additional middle school classrooms and two-thousand [2,000] additional square feet of cafeteria space. The additional monies appropriated and approved by the Delaware Legislature in June 2006 will be 80% funded by the State of Delaware. The 20% local share of $560,000 will be funded through bond sales for the school construction. THIS REFERENDUM DOES NOT INCREASE THE SCHOOL TAX RATE. In the six years since the construction of the 20 million dollar Delmar School District/Delmar Middle and Senior High School, the enrollment has climbed from under 700 students to 1070 in 2006, with increases anticipated in coming years. The additional space will greatly improve services and class enrollments. The election will be held in the Delmar District Board of Education Room with polls open from 12:00 noon until 9:00 p.m. If approved, planning will begin immediately, and construction is expected to start the following year. Voters may obtain absentee ballots by contacting the Department of Elections for Sussex County, 114 N. Race Street, Georgetown, DE 19947 [302]856-5367. Any resident of the Delmar, DE School District, eighteen years of age or older with proof of residency, may vote in the referendum. Voters, however, need not be registered to vote. Any questions concerning the referendum should be directed to the District Office. Informational meetings will be held at 7:00 pm in the auditorium of the Delmar Middle and Senior High School on Wednesday, November 15, 2006, and again, Wednesday, November 29, 2006. through the stimulation of private investment and community revitalization in areas of population out-migration or a stagnating or Laurel Town Hall, Laurel, Delaware on Monday, December 4, 2006 at 7:00 p.m. A status report for FY-06 will also be included. For more information contact William Lecates, Director of Community Development and Housing at 8557777. 11/23/1tc PUBLIC HEARING The Town of Greenwood, PAGE 35 Greenwood Town Hall, Greenwood, Delaware on Tuesday, December 5, 2006 at 7:00 p.m. A status report for FY-06 will also be included. For more information contact William Lecates, Director of Community Development and Housing at 855-7777. 11/23/1tc NOTICE OF PUBLIC HEARING NANTICOKE HUNDRED Subd. #2005-87 Notice is hereby given that the County Planning and Zoning Commission of Sussex County will hold a public hearing on Thursday evening, DECEMBER 21, 2006, in the County Council Chambers, Sussex County Administrative Building, Georgetown, Delaware, on the application of DERIC PARKER to consider the Subdivision of land in an AR-1 Agricultural Residential District in Nanticoke Hundred, Sussex County, by dividing 22.491 acres into 23 lots and a variance from the maximum allowed cul-de-sac length of 1,000 feet, located at the northeast corner of the intersection of Road 40, and Road 591. Planning and Zoning public hearings will begin at 6:00 P.M. Text and maps of this application may be examined by interested parties in the County Planning and Zoning Office, Sussex County Administrative Building, Georgetown, Delaware. If unable to attend the public hearing, written com- ments will be accepted but must be received prior to the public hearing. For additional information contact the Planning and Zoning Department at 302-855-7878. 11/23/1tc NOTICE OF PUBLIC HEARING Northwest Fork Hundred C/U #1676 NOTICE IS HEREBY GIVEN, that the County Planning and Zoning Commission of Sussex County will hold a public hearing on Thursday evening, DECEMBER 21, 2006, in the County Council Chambers, County Administrative Office Building, Georgetown, Delaware, on the application of PETER J. GOEBEL to consider the Conditional Use of land in an AR-1 Agricultural Residential District for retail crafts sales to be located on a certain parcel of land lying and being in Northwest Fork Hundred, Sussex County, containing 3.1469 acres, more or less, lying northeast of Route 404, 550 feet northwest of Route 18.. 11/23/1tc See LEGALS—page 36 Enjoy The STAR? Subscribe Today! 302-629-9788 6IWXEYVERX .EW -ANAGEMENT /PPORTUNITIES )TS .OT &AST &OOD )TS A .EW !TTITUDE #OME JOIN A COMPANY WHERE FAST DESCRIBES MORE THAN OUR SERVICE IT ALSO DESCRIBES YOUR CAREER ADVANCEMENT /UR GROWTH THROUGHOUT THE AREA HAS CREATED NEW OPPORTUNITIES 'ENERAL -ANAGERS 3ALARIED !SST -ANAGERS (OURLY WITH YEARS RESTAURANT MANAGEMENT EXPERIENCE WE ARE ./7 ()2).'
https://issuu.com/morningstarpublications/docs/november-23--2006
CC-MAIN-2017-04
en
refinedweb
Don't classes generally need to be contained in a Package or Model or something like that? On 22/07/2011 7:40 AM, Wuwei wrote: > I wrote a simple program to save a class diagram to a uml file. After > that I can read the elements such as Class in the uml > file using the following code: > > if(resource.getContents().get(i) instanceof Model) > { > System.out.println("Model name is " + ((Model) > resource.getContents().get(i)).getName()); > } else if (resource.getContents().get(i) > instanceof Class) > System.out.println("Class name is " + ((Class) > resource.getContents().get(i)).getName()); > ... > > But when I try to load the UML Metamodel from the Superstructure.uml > file, the above code failed. When I check Superstructure.uml, I find > this file is different from the > uml file where I saved a class model created using UML2 api. The > element in my created uml file is like UML:MetaClass such as UML:Class > while Superstructure.uml has elements whose name is PackagedElement... > In this case, how Superstructure.uml is created? It does not seem to > be created by ECore... How can I read Superstructure.uml? Thanks. > Wuwei Hi The Indigo version of Superstructure.uml starts <?xml version="1.0" encoding="UTF-8"?> <xmi:XMI xmi:version="2.1" xmlns:xmi="" xmlns:xsi="" xmlns:Ecore="" xmlns:ecore="" xmlns:uml="" xsi:schemaLocation=" pathmap://UML_PROFILES/Ecore.profile.uml#_z1OFcHjqEdy8S4Cr8Rc_NA"> <uml:Model xmi: demonstrating that the root element is a Model and that the namespace is rather than ...omg... It differs variously becuase OMG URI policy has been evolving and because an Ecore prpfile is applied. The file is readable by the UML model editor so you can debug that editor to compare it with your code. Regards Ed Willink On 22/07/2011 16:12, Wuwei wrote: > Yes. The following code should catch Model's name. But it seems nothing > from Superstructure.uml is an instance of Model...
http://www.eclipse.org/forums/feed.php?mode=m&th=222594&basic=1
CC-MAIN-2017-04
en
refinedweb
Details Description Bigtop has a lot of redundancy in the way it names its directories: $ ls trunk/ bigtop-deploy bigtop-packages bigtop-test-framework CHANGES.txt DEVNOTES docs Makefile package.mk README test bigtop.mk bigtop-repos bigtop-tests check-env.sh DISCLAIMER LICENSE NOTICE pom.xml src It would be nice to remove the prefix "bigtop-" in all these directories Activity - All - Work Log - History - Activity - Transitions - What value does that bring? So far I see more value in removing this redanduncy than keeping them - I see more projects not using that standard rather than using it. I would rather say Hadoop is the exception +1 for nuking bigtop from the toplevel naming. Its painful working on packaging. Tab completion is difficult. Thank god for mc to move around the tree quickly. Still seems like a good idea? Anyone? +1 for cleaning up namespace on top level. However its seems a big task to do this change in only one commit, since I think almost nobody is fluent in all the different aspects of bigtop involved. I would prepose to postpone it to 1.1.0 and doing it gradually. (Adding subtasks) Absolutely. Moving to 1.1.0 Some cleanup is necessary in terms of nuking redundant directories - most notably the top level test dir, and possibly the top level docs dir. But I think the "bigtop-" prefix is reasonable to keep. It's become reasonably standard in open source projects to use a project prefix on directories like this - see, e.g. It helps make it easy to tell what project you're in, etc.
https://issues.apache.org/jira/browse/BIGTOP-245
CC-MAIN-2017-04
en
refinedweb
In order to learn sockets in Python I am trying to write a simple group chat server and client. I need a little nudge, please. My question contains some GUI but only as decoration. The root question is asyncore / asynchat. I have read that twisted makes this all simple, but, I wanted to get my hands dirty here for educational purposes. I've managed to build a small echo server with asyncore and asynchat that can handle any number of connections and repeat to all clients what was sent in by individual clients. The server seems to work well. The GUI client, wxPython, creates a socket on open. The user types some text and clicks [SEND]. The send event puts the text out to the socket then reads the response and adds it to list control. Everything works well. I'm now ready for the next step, to disconnect the send data from the recieve data. So a user who does not send text, still gets what others may have written. I need to somehow poll the thread so "add to list control" can be triggered on recieving the data. I've tried several approaches and can't seem to get it right. First I tried setting up a separate threading.Thread that created the socket. This way I could put a poll on the socket. I even created (borrowed) a custom event so when data was found, it could notify the GUI and call the "add to list control" But I must have been doing it wrong because it kept locking up in the loop.. I knew from the server side that asynchat has built in helpers with collect_incoming_data() and found_terminator(). (my terminator is appended when data is sent to the server) I could then use the asyncore.poll() in my threading.Thread to raise the custom event that sends data to the GUI, when something comes over the socket. I think I have the concepts right, but the execution breaks down here. I tried having the threading.Thread create an asyn_chat but I keep getting errors that I assume the asyncore.dispatcher takes care of. So... maybe I should use both core and chat on the client as well as the server. The only examples of dispatcher I can find open up an asyn_chat on "listen". The client needs to initiate the communication when it starts. The server is listening and will respond. I won't know on which port the response will come back. Here's some bits showing what I'm trying to do. You may find some of it familiar. I hope I didn't clip anything that may have been needed If anybody has time to point out where I'm going wrong it would be very helpful. Thank you if you were patient enough to get this far... import threading import time import socket import asyncore import asynchat from wxPython.wx import * # server is listening on ... REMOTE_HOST = '172.0.0.1' REMOTE_PORT = 50001 class MyTest(wxFrame): def __init__(self, parent, ID, title): # Initialize wxFrame wxFrame.__init__(self, ..... # start the thread self.network = NetworkThread(self) self.network.start() EVT_NETWORK(self,self.OnNetwork) # build rest of GUI... works fine # the network thread communicates back to the main # GUI thread via this sythetic event class NetworkEvent(wxPyEvent): def __init__(self,msg=""): wxPyEvent.__init__(self) self.SetEventType(wxEVT_NETWORK) self.msg = msg wxEVT_NETWORK = 2000 def EVT_NETWORK(win, func): win.Connect(-1, -1, wxEVT_NETWORK, func) class NetworkThread(threading.Thread): def __init__(self,win): threading.Thread.__init__(self) self.win = win self.keep_going = true self.running = false self.MySock = NetworkServer(REMOTE_HOST, REMOTE_PORT, self.received_a_line) self.event_loop = EventLoop() def push(self,msg): self.MySock.push(msg) def is_running(self): return self.running def stop(self): self.keep_going = 0 def check_status(self,el,time): if not self.keep_going: asyncore.close_all() else: self.event_loop.schedule(1,self.check_status) def received_a_line(self,m): self.send_event(m) def run(self): self.running = true self.event_loop.schedule(1,self.check_status) # loop here checking every 0.5 seconds for shutdowns etc.. self.event_loop.go(0.5) # server has shutdown self.send_event("Closed down network") time.sleep(1) self.running = false # send a synthetic event back to our GUI thread def send_event(self,m): evt = NetworkEvent(m) wxPostEvent(self.win,evt) del evt class NetworkServer (asyncore.dispatcher): def __init__ (self, host, port, handler=None): asyncore.dispatcher.__init__(self) self.create_socket(socket.AF_INET, socket.SOCK_STREAM) self.connect((host, port)) def handle_connect (self): # I thought, maybe, the server would trigger this... nope ChatSocket (host, port, self.handler) def handle_read (self): data = self.recv (8192) self.send_event(self.data) print data def writable (self): return (len(self.buffer) > 0) def handle_write (self): sent = self.send (self.buffer) self.buffer = self.buffer[sent:] # send a synthetic event back to our GUI thread def send_event(self,m): evt = NetworkEvent(m) wxPostEvent(self.win,evt) del evt class ChatSocket(asynchat.async_chat): def __init__(self, host, port, handler=None): asynchat.async_chat.__init__ (self, port) def collect_incoming_data(self, data): self.data.append(data) def found_terminator(self): if self.handler: self.send_event(self.data) else: print 'warning: unhandled message: ', self.data self.data = '' class EventLoop: socket_map = asyncore.socket_map def __init__ (self): self.events = {} def go (self, timeout=5.0): events = self.events while self.socket_map: print 'inner-loop' now = int(time.time()) for k,v in events.items(): if now >= k: v (self, now) del events[k] asyncore.poll (timeout) def schedule (self, delta, callback): now = int (time.time()) self.events[now + delta] = callback def unschedule (self, callback, all=1): "unschedule a callback" for k,v in self.events: if v is callback: del self.events[k] if not all: break # ----------------------------------------- # Run App # ------------------------------------------- class TestApp(wxApp): def OnInit(self): frame = MyTest(None, -1, "Test APP") frame.Show(true) self.SetTopWindow(frame) return true app = TestApp(0) app.MainLoop()
https://mail.python.org/pipermail/python-list/2003-July/196882.html
CC-MAIN-2017-04
en
refinedweb
- NAME - SYNOPSIS - DESCRIPTION - CONSTRUCTORS - COMMON METHODS - GENERIC METHODS - SERVER METHODS - SCHEME-SPECIFIC SUPPORT - CONFIGURATION VARIABLES - BUGS - PARSING URIs WITH REGEXP - SEE ALSO - AUTHORS / ACKNOWLEDGMENTS NAME URI - Uniform Resource Identifiers (absolute and relative)/"); DESCRIPTION This module implements URI class interface. A "URI-reference" is a URI that may have additional information attached in the form of a fragment identifier. An absolute URI reference consists of three parts: a scheme, a scheme-specific part and a fragment identifier. A subset of URI references share a common syntax for hierarchical namespaces. For these, the scheme-specific part is further broken down into authority, path and scheme. The URI class provides methods to get and set the individual components. The methods available for a specific URI object depend on the scheme. CONSTRUCTORS The following methods construct new URI objects: - $uri = URI->new( $str ) - - URIobject. If no $scheme is specified for a relative URI $str, then $str is simply treated as a generic URI (no scheme-specific methods available). The set of characters available for building URI references is restricted (see URI::Escape). Characters outside this set are automatically escaped by the URI constructor. - . - $uri = URI::file->new( $filename ) - - $uri = URI::file->new( $filename, $os ) Constructs a new file URI from a file name. See URI::file. - $uri = URI::file->new_abs( $filename ) - - $uri = URI::file->new_abs( $filename, $os ) Constructs a new absolute file URI from a file name. See URI::file. - $uri = URI::file->cwd Returns the current working directory as a file URI. See URI::file. - $uri->clone Returns a copy of the $uri. COMMON METHODS (percent-encoded) or an unescaped string. A component that can be further divided into sub-parts are usually passed escaped, as unescaping might change its semantics. The common methods available for all URI are: - $uri->scheme - - $uri->scheme( $new_scheme ) Sets and returns the scheme part of the $uri. If the $uri is relative, then $uri->scheme returns. - $uri->opaque - - $uri->opaque( $new_opaque ) Sets and returns the scheme-specific part of the $uri (everything between the scheme and the fragment) as an escaped string. - $uri->path - - $uri->path( $new_path ) - - $uri->fragment( $new_frag ) Returns the fragment identifier of a URI reference as an escaped string. - $uri->as_string Returns a URI object to a plain ASCII string. URI objects are also converted to plain strings automatically by overloading. This means that $uri objects can be used as plain strings in most Perl constructs. - $uri->as_iri Returns a Unicode string representing the URI. Escaped UTF-8 sequences representing non-ASCII characters are turned into their corresponding Unicode code point. - . - $uri->eq( $other_uri ) - - URIobject references denote the same object, use the '==' operator. - . - $uri->rel( $base_uri ) Returns a relative URI reference if it is possible to make one that denotes the same resource relative to $base_uri. If not, then $uri is simply returned. - $uri->secure Returns a TRUE value if the URI is considered to point to a resource on a secure channel, such as an SSL or TLS encrypted one. GENERIC METHODS. - $uri->path - - $uri->path( $new_path ) Sets and returns the escaped path component of the $uri (the part between the host name and the query or fragment). The path can never be undefined, but it can be the empty string. - $uri->path_query - - $uri->path_query( $new_path_query ) Sets and returns the escaped path and query components as a single entity. The path and the query are separated by a "?" character, but the query can itself contain "?". - $uri->path_segments - - . Note that absolute paths have the empty string as their first path_segment, i.e. the path /foo/barhave 3 path_segments; "", "foo" and "bar". - $uri->query - - $uri->query( $new_query ) Sets and returns the escaped query component of the $uri. - $uri->query_form - - $uri->query_form( $key1 => $val1, $key2 => $val2, ... ) - - $uri->query_form( $key1 => $val1, $key2 => $val2, ..., $delim ) - - $uri->query_form( \@key_value_pairs ) - - $uri->query_form( \@key_value_pairs, $delim ) - - $uri->query_form( \%hash ) - - $uri->query_form( \%hash, $delim ) Sets and returns query components that use the module - - $uri->host( $new_host ) Sets and returns the unescaped hostname. If the $new_host string ends with a colon and a number, then this number also sets the port. For IPv6 addresses the brackets around the raw address is removed in the return value from $uri->host. When setting the host attribute to an IPv6 address you can use a raw address or one enclosed in brackets. The address needs to be enclosed in brackets if you want to pass in a new port value as well. - $uri->ihost Returns the host in Unicode form. Any IDNA A-labels are turned into U-labels. - $uri-. - $uri->host_port - - $uri->host_port( $new_host_port ) Sets and returns the host and port as a single unit. The returned value includes a port, even if it matches the default port. The host part and the port part are separated by a colon: ":". For IPv6 addresses the bracketing is preserved; thus URI->new("http://[::1]/")->host_port returns "[::1]:80". Contrast this with $uri->host which will remove the brackets. - $uri->default_port Returns the default port of the URI scheme to which $uri belongs. For http this is the number 80, for ftp this is the number 21, etc. The default port for a scheme can not be changed. SCHEME-SPECIFIC SUPPORT Scheme-specific support is provided for the following URI schemes. For URI objects that do not belong for mapping file URIs back to local file names; $uri->file and $uri->dir. See URI::file for details. - ftp: An old specification of the ftp URI scheme is found in RFC 1738. A new RFC 2396 based specification in not available yet, but ftp URI references are in common use. URIobjects belonging to the ftp scheme support the common, generic and server methods. In addition, they provide two methods for accessing for accessing. Its syntax is the same as http, but the default port is different. - ldap: The ldap URI scheme is specified in RFC 2255. LDAP is the Lightweight Directory Access Protocol. An ldap URI describes an LDAP search operation to perform to retrieve information from an LDAP directory. URIobjects belonging to the ldap scheme support the common, generic and server methods as well as ldap-specific methods: $uri->dn, $uri->attributes, $uri->scope, $uri->filter, $uri->extensions. See URI::ldap for details. - ldapi:. - mailto: The mailto URI scheme is specified in RFC 2368. The scheme was originally used to designate the Internet mailing address of an individual or service. It has (in RFC 2368) been extended to allow setting of other mail header fields and the message body. URIobjects belonging to the mailto scheme support the common methods and the generic query methods. In addition, they support the following mailto-specific methods: $uri->to, $uri->headers. Note that the "foo@example.com" part of a mailto is not the userinfoand hostbut instead the path. This allows a mailto URI to contain multiple comma separated email addresses. - mms: The mms URL specification can be found at. URIobjects specification of the rlogin URI scheme is found in RFC 1738. URIobjects belonging to the rlogin scheme support the common, generic and server methods. - rtsp: The rtsp URL specification can be found in section 3.2 of RFC 2326. URIobjects. URIobjects belonging to the rsync scheme support the common, generic and server methods. In addition, they provide methods to access the userinfo sub-components: $uri->user and $uri->password. - sip: The sip URI specification is described in sections 19.1 and 25 of RFC 3261. URIobjects belonging to the sip scheme support the common, generic, and server methods with the exception of path related sub-components. In addition, they provide two methods to get and set sip parameters: $uri->params_form and . URIobjects belonging to the telnet scheme support the common, generic and server methods. - tn3270: These URIs are used like telnet URIs but for connections to IBM mainframes. URIobjects belonging to the tn3270 scheme support the common, generic and server methods. - ssh: Information about ssh is available at. URIobjects belonging to the ssh scheme support the common, generic and server methods. In addition, they provide methods to access the userinfo sub-components: $uri->user and $uri->password. - urn: The syntax of Uniform Resource Names is specified in RFC 2141. URIobjects. - urn:isbn: The urn:isbn:namespace contains International Standard Book Numbers (ISBNs) and is described in RFC 3187. A URIobject. - urn:oid: The urn:oid:namespace contains Object Identifiers (OIDs) and is described in RFC 3061. An object identifier consists of sequences of digits separated by dots. A URIobject belonging to this namespace has an additional method called $uri->oid that can be used to get/set the oid value. In a list context, oid numbers are returned as separate elements. CONFIGURATION VARIABLES The following configuration variables influence how the class and its methods behave: - ("") ==> "" - $URI::DEFAULT_QUERY_FORM_DELIMITER This value can be set to ";" to have the query form key=valuepairs delimited by ";" instead of "&" which is the default. BUGS There are some things that are not quite right: Using regexp variables like $1 directly as arguments to the URI accessor methods does not work too well with current perl implementations. I would argue that this is actually a bug in perl. The workaround is to quote them. Example: /(...)/ || die; $u->query("$1"); The escaping (percent encoding) of chars in the 128 .. 255 range passed to the URI constructor or when setting URI parts using the accessor methods depend on the state of the internal UTF8 flag (see utf8::is_utf8) of the string passed. If the UTF8 flag is set the UTF-8 encoded version of the character is percent encoded. If the UTF8 flag isn't set the Latin-1 version (byte) of the character is percent encoded. This basically exposes the internal encoding of Perl strings. PARSING URIs WITH REGEXP As an alternative to this module, the following (official) regular expression can be used to decode a URI: my($scheme, $authority, $path, $query, $fragment) = $uri =~ m|(?:([^:/?#]+):)?(?://([^/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?|; The URI::Split module provides the function uri_split() as a readable alternative. SEE ALSO URI::file, URI::WithBase, URI::QueryParam, URI::Escape, URI::Split, URI::Heuristic RFC 2396: "Uniform Resource Identifiers (URI): Generic Syntax", Berners-Lee, Fielding, Masinter, August 1998. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. AUTHORS / ACKNOWLEDGMENTS This module is based on the URI::URL module, which in turn was (distantly) based on the wwwurl.pl code in the libwww-perl for perl4 developed by Roy Fielding, as part of the Arcadia project at the University of California, Irvine, with contributions from Brooks Cutter. URI::URL was developed by Gisle Aas, Tim Bunce, Roy Fielding and Martijn Koster with input from other people on the libwww-perl mailing list. URI and related subclasses was developed by Gisle Aas.
https://metacpan.org/pod/release/GAAS/URI-1.60/URI.pm
CC-MAIN-2017-04
en
refinedweb
- NAME - SYNOPSIS - DESCRIPTION - RATIONALE - THERE IS NO 'no common::sense'!!!! !!!! !! - STABILITY AND FUTURE VERSIONS - WHAT OTHER PEOPLE HAD TO SAY ABOUT THIS MODULE - FREQUENTLY ASKED QUESTIONS - AUTHOR NAMEcan:in the past, to avoid somebody accidentally using and forcing his bad standards on our code. Of course, this switched off all warnings, even the useful ones. Not a good situation. Really, the -wswitchin the list: we do not think that the conditions caught by these warnings are worthy of a warning, we insist that they are worthy of stopping your program, instantly. They are bugs! Therefore we consider common::senseto <blink>776 kilobytes</blink>. '"<elmex at ta-sa.org>"' The quotes are semantic distancing from that e-mail address." Jerad Pierce "Awful name (not a proper pragma), and the SYNOPSIS doesn't tell you anything either. Nor is it clear what features have to do with "common sense" or discipline." acme "THERE IS NO 'no common::sense'!!!! !!!! !!" apeiron (meta-comment about us commenting^Wquoting his comment) "How about quoting this: get a clue, you fucktarded amoeba." quanth "common sense is beautiful, json::xs is fast, Anyevent, EV are fast and furious. I love mlehmannware ;)"." [...]. - Is this module meant to be serious? Yes, we would have put it under the Acme::namespace otherwise. - But the manpage is written in a funny/stupid/... way? This was meant to make it clear that our common sense is a subjective thing and other people can use their own notions, taking the steam out of anybody who might be offended (as some people are always offended no matter what you do). This was a failure. But we hope the manpage still is somewhat entertaining even though it explains boring rationale. -. - But everybody knows that you have to use strict and use warnings, why do you disable them? Well, we don't do this either - we selectively disagree with the usefulness of some warnings over others. This module is aimed at experienced Perl programmers, not people migrating from other languages who might be surprised about stuff such as undef. On the other hand, this does not exclude the usefulness of this module for total newbies, due to its strictness in enforcing policy, while at the same time not limiting the expressive power of perl. This module is considerably more strict than the canonical use strict; use warnings, as it makes all its warnings fatal in nature, so you can not get away with as many things as with the canonical approach. This was not implemented in version 1.0 because of the daunting number of warning categories and the difficulty in getting exactly the set of warnings you wish (i.e. look at the SYNOPSIS in how complicated it is to get a specific set of warnings - it is not reasonable to put this into every module, the. - Why do you use JSON and not YAML for your META.yml? This is not true - YAML supports a large subset of JSON, and this subset is what META.yml is written in, so it would be correct to say "the META.yml is written in a common subset of YAML and JSON". The META.yml follows the YAML, JSON and META.yml specifications, and is correctly parsed by CPAN, so if you have trouble with it, the problem is likely on your side. -
https://metacpan.org/pod/release/MLEHMANN/common-sense-3.73/sense.pm.PL
CC-MAIN-2017-04
en
refinedweb
Hi, I've tried Advertising from ZPublisher.Iterators import filestream_iterator return filestream_iterator('/home/chrism/bigfile.xls', 'r') in a method to return a big file to users; however, it doesn't work, are there alternative ways to serve large files to users, serving files that are lying somewhere on the filesystem? Thanks, Morten -- Nidelven IT || We know Python, Zope & Plone _______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org ** No cross posts or HTML encoding! ** (Related lists - )
https://www.mail-archive.com/zope-dev@zope.org/msg38295.html
CC-MAIN-2017-04
en
refinedweb
mehran dicontinuity isnt possible dear Suzuki are introducing/modifying the below mentioned items/parts/facilities in Mehran: 1- 6 Air Bags2- Dual AC3- Restructure body for 5 star crash rating4- Parking Sensors5- Carbon Ceramics Brakes6- M powered engine7- Navigation System8- 5 Years service warranty9- tring tring (the alarms speaks) oh its 7 in morning @chinyoti.......bro im using coure tooo............bt u can mak a difrnce b/w mehran nd coure........who ever has driven mehran nd coure.......can make a diffrnce b/w dese 2 cars............at 1st i also had same thoughts abt coure against mehran bt ven i drove coure.......so i really found de difrnce dat y ppl prefer coure over alto nd mehran ^its suppose to be better, it costs around the price of 1.5 mehrans. while its crampier then a mehran altho comfortable but smaller then a mehran and a alto. Look Brothers, this is what we know that Mehran is a messed up car & company should modify it somehow, but at the end.. Agar Pak Suzuki Mehran ko aur kuch nahin sirf powerful engine like 1000 or 1100cc karde aur behtreen A/c dede like Alto or Cultus. Doosri baat agar yeh kuch nahin kar sakte to kam as kam A/c ke 4 wands de dain, 2 se sirf age wale passangers ko hawa lagti hai aur peeche wale paseene main lat pat hojate hain.. not only engine change is required , but proper brakes, safety features , better radiator to keep the temperature normal when using ac. Suzuki cannot afford this. On Mehran they are making hell of bucks. I think Mehran may cost them less than 1 lak and selling five times more. @chinyoti.....ok bro i agre wid u.....if dey r selling mehran @ 4current prices......atleast dey must upgrade the brakes,a/c,steering size,pick up on cng,audio system(must b installed),dashboard.......nd de main thing SHAPE......pakgaye ha es shape s......i think its been 2 decades dat dis shape is still in cumin......apart 4rm all dis if dey can't do this so dey must decrease dere prices upto 120k-150k.......cox suzuki is already gettin 300-350% profit margin on dese crapy mehranzzzz...........yra yeh mehran k ceo s koi nai puchskta k plx shape chnge krdo ya pir prodction band krdo.........@wahab & akhter......i agree wid u ppl... regrds why purchase mehran while on can have a faaaaaaaaaar more durable Margalla though old but reliable Yesterday evening I bought a brand new Mehran from Suzuki Authrozied Dealer in Lahore.<?xml:namespace prefix = oPakistan</st1:place></st1:country-region>. Can u imagine that petrol tank, fuel pump, oil filter & converter of a brand new car is not in working condition.<o:p></o:p><o:p></o:p>I went to Petrol Pump & asked him to refill Petrol my car of Rs 1500. After that when I wanted to converted my car from CNG to Petrol, it was not done. I made calls on show room & told them the situation. They asked me to bring car to their showroom next morning. <o:p></o:p><o:p></o:p>I request all of you that NEVER EVER BUY A NEW MEHRAN. Honda Motorcycle is better than Mehran<o:p></o:p><o:p></o:p>I am thinking to go to consumer court against Pak Suzuki.<o:p></o:p><o:p></o:p> Mehran 'own' is approx 30K at the moment. This means supply is less then demand. can anyone give me a SINGLE reason why would suzuki guys spend some money to upgrade their assembly line?? When their crap is selling like hot cakes, why you expect them to do any hard work? My father told me that Mehran is older than me because it was in production since the mid 70s.......with some minor changes....... yar tm sb keun haath dhoke mehran ke peeche par gai ho? itni zabardast gari hai yaar, zara sa jhatka aajye road pe tou shocks itne zabardast hain ke banda ur ke roof se takra jata hai, AC tou itna acha hai ke saath wali gaarion mei bhi iski cooling jaati hai, engine itna powerful hai ke kisi ko overtake karna pare tou agai se aane wali gari break maar ke kache mei uter jaati hai aur uska driver so jata hai ke mehran overtake karai hai. specially brakes are very strong when you push the padal to stop the car it refuses(i cant do this bro please dont push me). very good car indeed. its a peace of shitttttttt. +1 Mehran is de mst Fcukin car of our local market.......ALLAH paksuzuki walo ko hidayat naseeb farmaye.......BC'o ko........@adeelasalat.................damn true.....+1 if copy of mehran like CD 70 starts then competition will start Unlike other countries in Pakistan supply-demand is not the real predictor of own. Supply is in line with current demand, there is sometimes excess production but still OWN exists in the market. There are a lot of other factors which cause this situation. @ everyone, guys email a query about Suzuki Mehran that why are they not changing it & write any thing worse about Suzuki Mehran, I request all people to do that, by that shayad Suzuki walon ko sharam ajaye. Email address is : customercentre@paksuzuki.com.pk ^i second u dear but agar gairat hoti suzuki walun mein tou it wouldnt be havin same shape since 21 years
https://www.pakwheels.com/forums/t/is-suzuki-mehran-800cc-would-be-discontinued-or-maybe-modified/151673?page=3
CC-MAIN-2017-04
en
refinedweb