text stringlengths 454 608k | url stringlengths 17 896 | dump stringclasses 91 values | source stringclasses 1 value | word_count int64 101 114k | flesch_reading_ease float64 50 104 |
|---|---|---|---|---|---|
#include <AliFMDCorrNoiseGain.h>
Get the noise calibration. That is, the ratio
\[ \frac{\sigma_{i}}{g_{i}k} \]
where \( k\) is a constant determined by the electronics of units DAC/MIP, and \( \sigma_i, g_i\) are the noise and gain of the \( i \) strip respectively.
This correction is needed because some of the reconstructed data (what which have an AliESDFMD class version less than or equal to 3) used the wrong zero-suppression factor. The zero suppression factor used by the on-line electronics was 4, but due to a coding error in the AliFMDRawReader a zero suppression factor of 1 was assumed during the reconstruction. This shifts the zero of the energy loss distribution artificially towards the left (lover valued signals).
So let's assume the real zero-suppression factor is \( f\) while the zero suppression factor \( f'\) assumed in the reconstruction was (wrongly) lower. The number of ADC counts \( c_i'\) used in the reconstruction can be calculated from the reconstructed signal \( m_i'\) by
\[ c_i' = m_i \times g_i \times k / \cos\theta_i \]
where \(\theta_i\) is the incident angle of the \( i\) strip.
This number of counts used the wrong noise factor \( f'\) so to correct to the on-line value, we need to do
\[ c_i = c_i' - \lfloor f'\times n_i\rfloor + \lfloor f\times n_i\rfloor \]
which gives the correct number of ADC counts over the pedestal. To convert back to the scaled energy loss signal we then need to calculate (noting that \( f,f'\) are integers)
\begin{eqnarray} m_i &=& \frac{c_i \times \cos\theta_i}{g_i \times k}\\ &=& \left(c_i' - \lfloor f'\times n_i\rfloor + \lfloor f\times n_i\rfloor\right)\frac{\cos\theta}{g_i \times k}\\ &=& \left(\frac{m_i'\times g_i\times k}{\cos\theta} - \lfloor f'\times n_i\rfloor + \lfloor f\times n_i\rfloor\right) \frac{\cos\theta}{g_i \times k}\\ &=& m_i' + \frac{1}{g_i \times k} \left(\lfloor f\times n_i\rfloor- \lfloor f'\times n_i\rfloor\right)\cos\theta\\ &=& m_i' + \frac{\lfloor n_i\rfloor}{g_i \times k} \left(f-f'\right)\cos\theta \end{eqnarray}
Definition at line 63 of file AliFMDCorrNoiseGain.h.
Default constructor
Definition at line 69 of file AliFMDCorrNoiseGain.h.
Constructor from a float map
Definition at line 75 of file AliFMDCorrNoiseGain.h.
Get the noise value for a particular strip
Definition at line 86 of file AliFMDCorrNoiseGain.h.
Referenced by CorrDrawer::DrawIt(), and AliFMDESDFixer::Fix().
Set the value for a strip.
Definition at line 99 of file AliFMDCorrNoiseGain.h.
Referenced by ExtractForRun().
Get a reference to the noise map
Definition at line 108 of file AliFMDCorrNoiseGain.h.
Definition at line 110 of file AliFMDCorrNoiseGain.h.
Referenced by AliFMDCorrNoiseGain(), Get(), Set(), and Values(). | http://alidoc.cern.ch/AliPhysics/vAN-20180928/class_ali_f_m_d_corr_noise_gain.html | CC-MAIN-2020-34 | refinedweb | 439 | 51.99 |
in reply to Re: In praise of h2xs: A tool you gotta havein thread In praise of h2xs: A tool you gotta have]
Either you have to keep installing it every time you edit the file, or you mess with @INC and edit it within the blib/ directory (where it goes when you do the make) and then copy it back into place when you finish. It's even worse if you have multiple modules in your distribution with different namespaces (i.e. Foo::Something and Bar::Something).
h2xs now puts things in DIST/lib so the old default layout problems you mention are simple to overcome with PERL5LIB and PERL5OPT.
Deep frier
Frying pan on the stove
Oven
Microwave
Halogen oven
Solar cooker
Campfire
Air fryer
Other
None
Results (322 votes). Check out past polls. | http://www.perlmonks.org/index.pl?node_id=340807 | CC-MAIN-2016-26 | refinedweb | 136 | 74.73 |
John Smith
- Total activity 17
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 1
- Subscriptions 6
John Smith commented, John Smith created a post,Answered
How do I turn off line numbers in the Find results windowDoes any body know how How to turn off line numbers in the Find results window? I want to get rid of them as they don't serve any obvious purpose (I'm going to click on the line to take me to the...
John Smith commented, John Smith created a post,
IDEA14: How to create linked documentation for JUnit test casesHi,When I write my JUnit test cases I like them to look like:public class MyClassTest {/** * Unit test {@link MyClassTest#myMethod} */@Testpublic void testMyMethod() {}}The important bit is the gen...
John Smith created a post,
Code Refactoring IssueRecently I have been refactoring some code (renaming classes, fields, and methods) and I have a ZKM changelog that was produced with the code. I was wondering if there was a way to simultaneously m...
John Smith created a post,
Newbie question about GUI Designer - Doesnt workHello,I have created a very simple form in GUI Designer and am now trying to put it into my main JFrame.I did it the same way they do it in the help file but when i make an instance of my gui class...
John Smith created a post,
CVS improvements needed? (import and branches)Hello.I just want to see if there's common need around for better CVS support in IDEA?I usually don't use some external CVS client, but find IDEA's CVS support sufficient. Nonetheless, some things ... | https://intellij-support.jetbrains.com/hc/en-us/profiles/2134126079-John-Smith | CC-MAIN-2021-39 | refinedweb | 278 | 66.07 |
Hi everyone,
I have a program that is like a media library and has the user input titles, authors, etc. for books or recordings. What I have works so far, but when you input something with a space it breaks it up and only saves the first word. I looked it up and tried multiple things like cin.get(), but I couldn't make it work because the length is user-defined. I also tried getline() which gives me a red squiggly line saying "Error: no instance of overloaded function "getline" matches the argument list". I know using strings would fix this problem, but I was instructed to use char arrays. Here is my code:
I bolded the areas that I'm talking about. Let me know if you need to see the classes/headers, although I don't think those are the problem.I bolded the areas that I'm talking about. Let me know if you need to see the classes/headers, although I don't think those are the problem.Code:
#include <iostream>
#include <string>
#include "holding.h"
#include "book.h"
#include "recording.h"
using namespace std;
Holding* holdFunction(){
char* title;
title = new char;
char* performer;
performer = new char;
char* author;
author = new char;
char format;
char type;
int callNumber;
cout << "Enter B for book, R for recording: ";
cin >> type;
switch(type){
case 'B' :
{
cout << "Enter book title: ";
cin >> author;
cout << endl << "Enter book author: ";
cin >> author;
cout << endl << "Enter call number: ";
cin >> callNumber;
Book* book = new Book(title,callNumber,author);
return book;
break;
}
case 'R' :
{
cout << "Enter recording title: ";
cin >> title;
cout << endl << "Enter performer: ";
cin >> performer;
cout << endl << "Enter format: (M)P3, (W)AV, (A)IFF: ";
cin >> format;
cout << endl << "Enter call number: ";
cin >> callNumber;
Recording* record = new Recording(title,callNumber,performer,format);
return record;
break;
}
default:
cout << "You entered an invalid type!" << endl;
return NULL;
}
}
int main(){
Holding* arr[5];
cout << "Enter holdings to be stored in a list:" << endl << endl;
for(int i = 0; i < 5; i++){
arr[i] = holdFunction();
}
cout << "Here are the holdings:" << endl << endl;
for(int i = 0; i < 5; i++){
arr[i]->print(cout);
}
cin.get();
return 0;
}
Thanks for any help!!
-Ryan | http://cboard.cprogramming.com/cplusplus-programming/152713-user-input-char-array-including-white-space-printable-thread.html | CC-MAIN-2014-41 | refinedweb | 364 | 68.6 |
Not all useful integers on a given machine are necessarily represented by C's int type; so there is long int with a minimum range of a 32 bit one's complement integer. Likewise, not all character sets may be represented by char, so there is a need for a wider character type. What should its name and representation be? There appear to be three possibilities for implementation: typedef an implementation dependent integral type; define a standard struct, or class in C++, that appropriately describes the wide character; or add a new primitive type to the language.
The question boils down to what criteria should be used in deducing whether something is genuinely a new language type:
portability is often a driving requirement for both new types and new type names;
meeting a previously unfulfillable need is often the indicator for a new type, built-in or otherwise;
a literal constant form seems to indicate a new built-in type;
miscibility with existing primitives indicates a new built-in type in C, but not necessarily in C++;
the need to strongly distinguish between types is an indication of a new type, especially in C++.
Portability defined the need to add the types ptrdiff_t and size_t. The opaque fpos_t type was added to <stdio.h> to allow portable positioning within very large files using the fgetpos and fsetpos functions. Portability was also a reason for adding the third char type, signed char. This move also plugged an obvious type gap in the language. The addition of long double as a type met the demands for higher precision numerical computation. A primitive bool type has recently been added to C++ to allow differentiation from int for function overloading. It will also reduce the countless roll-you-own Boolean enums, typedefs and classes littering application and library code today. Many have tried, but it is impossible to create a useful Boolean enumeration or class in C++.
Before ANSI the need for wide characters was not explicitly catered for in C. Programmers of truly international software were forced to use raw integers for wide characters or a multi-byte representation. Widespread use of the language meant that with standardisation internationalisation was a top priority. This has lead to the addition of locales as well as basic support for wide and multi-byte characters to represent non-western character sets. The number and scope of these functions are sure to be extended in the next revision of the ISO C standard; it is a shame that with the exception of locales they all ended up in <stdkitchensink.h>.
The ANSI C committee added wchar_t, a synonym for an existing integral type, to <stddef.h> and <stdlib.h>. This makes wide characters easier to use than a struct such as XChar2b used for representing 16 bit characters in X. The committee also added manifest constant forms to the language for wide characters and strings:
wchar_t Char = L'a'; wchar_t String[] = L"a";
One would have thought that any type that had a literal form was obviously primitive: adding a new language type, rather than simply aliasing an integer, would appear to be the correct approach. However, C's already confused notion of char and int sets a precedent:
sizeof('a') == sizeof(int)
The new literal form for wide characters is effectively just another form of integer constant. In C++ the notion of exact type rather than coercible type plays a more fundamental role. Much of this nonsense has been sorted out:
sizeof('a') == sizeof(char)
The joint C++ standardisation committees have also recognised that wide characters deserve a type of their own, adding wchar_t as a new keyword and integral type. To understand this decision consider the problem of overloading output functions:
void Print(char); void Print(wchar_t); void Print(int);
This is not portable if wchar_t is a typedef or a macro because it will be a synonym of an integral type. An alias for int will cause a number rather than a character to be printed out. The compiler would also object to encountering a second definition of Print(int), assuming that all Print functions were defined in the same translation unit, otherwise the ball gets passed to the linker. A first cut solution is to introduce wchar_t as a standard library class. However, what type does that make literals like L'a'? The only solution in this case is to add a new language type. I would hasten to add that this in not just a solution for hacking C++, but a retrospective correction of what should originally have happened in C.
The only thing that remains for me to say against wchar_t is that the name is dreadful. Adding new keywords is always a problem, but wchar_t must count as one of the clumsiest - especially since the _t suffix has traditionally indicated a typedef[1]. I will, however, grant you that this new keyword is not likely to break many programs. (I am still surprised to see C programmers using class and try as identifiers. Where have they been? More to the point, where are they going?)
Given that long int and long double are the wider versions of int and double, what is wrong with long char? This requires no new keywords and it is also more obviously a character type. Interestingly the syntax of C and C++ does not exclude this formation. One criterion that Bjarne Stroustrup has used in deciding between features is to gauge how easy it would be to teach and learn them. That long char is unmistakably a character type and goes a long way to achieving this.
I do not feel the necessity to further complicate this type with sign, but signedness could obviously follow the char model if required. For compatibility long char must have the same implementation as one of the standard integral types:
sizeof(long char) == sizeof(char) || sizeof(long char) == sizeof(short) || sizeof(long char) == sizeof(int) || sizeof(long char) == sizeof(long)
The retrofit for both C and C++ would be to add the new type to the language and simply mandate that it is the synonym type for wchar_t. The decision to include wchar_t as a built-in type in C++ is not so old and widely implemented that it cannot be reversed to be replaced by long char. I recognise that the schedule for creating the C++ standard is already pressed and that this suggestion is not simply a global replacement of long char for wchar_t in the forthcoming draft. However, I do not believe it to be complex - unlike run-time type identification, exception handling and namespaces, for instance - and in many senses it is a reduction and not an extension. It is certainly more in the spirit of the language.
With this in mind, I have submitted a proposal to ISO for such a change (for ISOlogists the proposal is numbered WG21/N0507). My thanks to Sean Corfield for his feedback and for agreeing to propose it - read his column, The Casting Vote, in the coming months to find out which way this and a number of other issues go. The feedback has generally been good, but Francis informed me that at a recent ISO C meeting Plauger was less than impressed with the hidden implication that the C standard is anything less than perfect! Oh well, you can't please all of the people... | https://accu.org/index.php/journals/601 | CC-MAIN-2018-34 | refinedweb | 1,238 | 57.4 |
Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Programming Diversions:
Programming Diversions
Fill in numbers from 1 to 9
Rakesh Joshi
Ranch Hand
Posts: 218
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Fill in numbers 1, 2, 3, 4, 5, 6, 7, 8 and 9 into ..... to make the equations work.
----------------------
- ....(+)....(=).... -
- --- ---------(/) -
- ....(-)....(=).... -
- -------------(=) -
- ....(=)....(*).... -
----------------------
[ March 28, 2006: Message edited by: Rakesh Joshi ]
[ March 28, 2006: Message edited by: Rakesh Joshi ]
Life is a Game play it.
Stefan Wagner
Ranch Hand
Posts: 1923
I like...
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I translated this to
return ((a+b==c) && (d-e==f) && (g==h*i) && (c/f==i)); // which is equivalent to return ((a+b==c) && (d-e==f) && (g==h*i) && (i*f==c));
Solutions are [71][17]8954632 (a-i).
Most Multiplications get greater than 9 (3*4) so I started there.
1*x is smaller than 10 for every x in (1-9), but would lead to
1*x = x and that's impossible.
h*i=g and i*f=c don't have g or c on the left side.
Therefore h,i,f must be at least 2.
Since 2*5 is 10, every multiplication is too big if a 5(or bigger) and no 1 is involved.
2*3 and 2*4 are the only candidates, which is consistent to our problem: i occures two times and is therefore 2.
h and f are 3 or 4.
Therefore c is 6 or 8 and g is 6 or 8.
If f is 3 or 4, we only have 1,7 and 9 left for d.
But e+f=d, therefore d must be greater than f, which might be 7 or 9.
If d would be 7, e would need to be 3 or 4, which is impossible, since f or h are 3 and 4.
d = 9.
e+ (3,4) = 9 => e:={6, 5}, but since g is 6 or c is 6, e=5 and therefore f=4.
For a and b we have 1 and 7 left, which leads concluent to c=8.
But whether a or b are 1 or 7 is not decideable.
To verify my assumption I elegantly skipped the possibility to create a permutation, and let Random poof my assumption:
import java.util.*; /** Num1-9 @author Stefan Wagner @date Do M�r 30 02:27:13 CEST 2006 */ public class Num1to9 { public Num1to9 () { Integer x [] = {1, 2, 3, 4, 5, 6, 7, 8, 9}; List<Integer> l = Arrays.asList (x); int hits = 0; do { Collections.shuffle (l); x = l.toArray (x); if (solves (x[0], x[1], x[2], x[3], x[4], x[5], x[6], x[7], x[8])) { System.out.println ("solved: " + x[0] + x[1] + x[2] + x[3] + x[4] + x[5] + x[6] + x[7] + x[8]); ++hits; } }while (hits < 20); } public boolean solves (int a, int b, int c, int d, int e, int f, int g, int h, int i) { return ((a+b==c) && (d-e==f) && (g==h*i) && (c/f==i)); } public static void main (String args[]) { new Num1to9 (); } }
Seriously Rick? Seriously? You might as well just read this tiny ad:
the value of filler advertising in 2021
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
SoDuko puzzle
Latin square problem help
summing each row in a 2-dimensional array
29th Nov Bonus Puzzle
Smallest number
More... | https://coderanch.com/t/35419/Fill-numbers | CC-MAIN-2021-10 | refinedweb | 594 | 78.28 |
WMI Events
Updated: May 13, 2016
Applies To: System Center 2012 R2 Operations Manager, System Center 2012 - Operations Manager, System Center 2012 SP1 - Operations Manager
WMI events are created from WMI queries that detect particular actions in the operating system or in applications that create their own WMI events. These events can be used to detect such actions as a process ending, a file being created, or a registry key being modified. WMI events are not persisted. Therefore, any WMI events that are created when the agent service is not running are lost.
The table below lists the wizards that are available for WMI events.
When you run a WMI event rule or monitor wizard, you will need to provide values for options in the following tables. Each table represents a single page in the wizard.
The General page includes general settings for the rule or monitor including its name, category, target, and the management pack file to store it in.
The WMI Configuration Page allows you to provide the WMI namespace, query, and poll interval. There will be a single WMI Configuration page for a collection or alerting rule and for a monitor using manual or timer reset. For a monitor using WMI Event Reset, there will be a WMI Event Provider page to define the query for both the error condition and for the healthy condition.
WMI matching poll intervals
The Build Expression page allows you to define a filter for the data coming from the WMI query. There will be a single Build Expression page for a WMI event monitor using manual or timer reset. For a monitor using WMI Event Reset, there is an expression for each health state.
Because criteria can be specified in the WHERE clause of the WMI query, an expression is frequently not required in a WMI event monitor. It is only required if the query is expected to return multiple records. WMI event rules rely on the criteria in the query itself and don’t allow an expression. The Operations console wizards though require that criteria be specified in WMI Event monitors. If no criteria is required, then dummy criteria must be specified in the wizard and then removed by viewing the properties of the monitor after it is created.
The properties available for a WMI event will vary, depending on the kind of event being monitored. The properties available will also vary, depending on the properties of the WMI class included in the query.:
For example, the following WMI query monitors for the change in a file that is named c:\MyApp\MyAppLog.txt.
Assuming that data is added to the file changing the file size and triggering the query, examples of properties from this query are shown in the following table:
The Auto Reset Timer page is only available for timer reset monitors. It allows you to set the time that must pass after the alert is created before the alert is automatically resolved.
The Configure Health page is only available for monitors. It allows you to specify the health state that will be set for each of the events. For a manual reset monitor, the Manual Reset condition will be Healthy, and you can specify whether the Event Raised condition will set the monitor to a Warning or a Critical state. For a Timer Reset or an WMI Event Reset, you can specify the health state set by each event. The first event will typically set the monitor to Warning or Critical while the second event or the timer will set the monitor to Healthy.
The following procedure shows how to create a WMI event monitor in Operations Manager with the following details:
Runs on all agents with a particular service installed.
Sets the monitor to a critical state when Notepad is started on the agent computer.
Sets the monitor to a healthy state when Notepad is ended on the agent computer.
To create a WMI event monitor.
Right-click Monitors, select Create a Monitor, and then select Unit Monitor.
On the Monitor Type page, do the following:
Expand WMI Events, then Simple Event Detection, and then WMI Event Reset.
Select the management pack from step 1.
Click Next.
On the General page, do the following:
In the Name box, type MyApplication WMI Event Error.
Click Select next to the Monitor Target box.
Next to Monitor Target click Select and then select the name of the target that you created in step 2.
In the Parent Monitor box, select Availability.
Leave the Monitor is enabled box checked , select and click Next.
On the First WMI Event Provider page, do the following:
In the WMI Namespace box, type root\cimv2.
In the Query box, type the following WMI query.
In the Poll Interval box, type 60.
Click Next.
On the Build First Expression page, do the following:
Click Insert.
In the Parameter Name box type Dummy.
In the Operator box select Equals.
In the Value box type Dummy.
Click Next.
On the Second WMI Event Provider page, do the following:
In the WMI Namespace box, type root\cimv2.
In the Query box, paste the following WMI query.
In the Poll Interval box, type 60.
Click Next.
On the Second Expression page, do the following:
Click Insert.
In the Parameter Name box type Dummy.
In the Operator box select Equals.
In the Value box type Dummy.
Click Next.
On the Configure Health page, do the following:
Next to FirstEventRaised, change the Health State to Critical.
Click Next.
On the Configure Alerts page, do the following:
Check Generate alerts for this monitor
In the Generate an alert when box, select The monitor is in a critical health state.
Leave the box selected to automatically resolve the alert.
In the Alert name box, type Notepad process detected
Click the ellipse button next to Alert description.
Clear the contents of the Value box and then type Path of executable: .
Click Data, then Collection, then Property.
In the variable, replace <<INT>> with "TargetInstance" and <<STRING>> with ExecutablePath. The final text in the Value box should be Path of executable: $Data/Context/Collection["TargetInstance"]/Property[@Name="ExecutablePath"]$
Click OK.
Click Create.
Right-click MyApplication WMI Event Error and select Properties.
On the First Expression tab, click Delete.
On the Second Expression tab, click Delete.
Click OK. | https://technet.microsoft.com/en-us/library/hh457545.aspx | CC-MAIN-2018-13 | refinedweb | 1,051 | 64 |
No were in my code i've included cstdio.h... Don;t know where's that coming from
Printable View
Ah, but you #include <string>, which is a C++ standard header. Perhaps you wanted to #include <string.h> instead.
Anyway, you are using C, yet you are using C++ stuff like std::string.
Seriously, that code needs to rego a big change and either you need to learn C or stick to learning C++, because this code cannot compile as C (namespaces aren't supported in C either).
IMO they woudl get better performance by multithreading the compile. FileA can be compiled in parallel with FILEB, the linker stage would probably still need to be serial, but not compilation.
Visual Studio is terribly slow with large projects but is reported to be faster than most other compilers. Pre-compiled headers are far more headache than they are worth which is why at home I don't use them and we also do not use them at work.
I've noticed that even on a quad-core machine VS2003 and VS2005 take one core up to 100% and leave the other three at 0%. The compile is multithreaded insofar as you can still interact with the GUI but I seriously doubt if the compile process itself is multi-threaded. It 'appears' to be one thread.
Honestly, i think the whole multithreading thing kind of caught most companies by surprise, it was never a serious technique until multi-core made it give huge performance increases. Now I see hundreds of black box 'turn yoru serial code into parallel code without having to think' solutions. OpenMP, RapidMind, CUDA, although the last 2 are really for use with GPU's its only a matter of time before CPU's support native vector processing. I wouldn't mind, but I end up having to evaluate every new flavor of the month and then explain to the suit why it wont improve our applications or reduce development time (it mostly has to do with some internally closed source libraries that he wont let me get the code to so I can't optimize them).
The only real reason I can see to use PCH is to obfuscate a distributed LIB so thay cant even see your class structure.
I think somewhere both of you have had bad experiences, because I really don't get what you do.
PCH speeds up compiles greatly. You just have to include windows.h and you'll notice how fast it gets. 30 seconds is a big deal if you ask me.
PCH are not difficult to use and they are not error prone (at least not to me). I haven't received any problems with them pretty much in any project I have. Just don't include headers that keep on changing. Only static non-changing headers go there and you should have no problems whatsoever.
So far as I know, VS can only do multi-threaded compile with different projects, because I really have been unable to get it compiling on anything else than one core in one project.
Yeah I know it only uses a single thread, I was just saying they would get better performance increases by going MT than by saddling us with PCH. 30 seconds on a 2 minute compile is nothing, since Im going to get a water and bull........ with a collegue anyway.
Yes, MT with a single project would be great. Additionally, I think there is something along the lines of that, or should be, but I've never gotten something like that to work.
In this case your not slacking, your code is compiling. Just like the shirt says. :DIn this case your not slacking, your code is compiling. Just like the shirt says. :DQuote:
...since Im going to get a water and bull........ with a collegue anyway.
What you see above is a C++ style, converting into C ...What you see above is a C++ style, converting into C ...Code:
HWND CreateButton(const HWND hParent,const HINSTANCE hInst,DWORD dwStyle,
const RECT& rc,const int id,const ustring& caption)
{
dwStyle|=WS_CHILD|WS_VISIBLE;
return CreateWindowEx(0,
_T("button"),
caption.c_str(),
dwStyle,
rc.left,
rc.top,
rc.right,
rc.bottom,
hParent,
reinterpret_cast<HMENU>(static_cast<INT_PTR>(id)),
hInst,
0);
}
... gives a warning... gives a warningCode:
(HMENU)id
Ignoring this warning disables the minimize/restore/close buttons on the window... Any ideas on how to convert this properly?Ignoring this warning disables the minimize/restore/close buttons on the window... Any ideas on how to convert this properly?Code:
warning C4312: 'type cast' : conversion from 'int' to 'HMENU' of greater size | http://cboard.cprogramming.com/windows-programming/103056-avoiding-global-variables-2-print.html | CC-MAIN-2016-07 | refinedweb | 777 | 73.37 |
On Wed, 30 May 2007, Linus Torvalds wrote:> > And then the semantics: do these descriptors should show up in> > /proc/self/fd? Are there separate directories for each namespace? Do> > they count against the rlimit?> > Oh, absolutely. The'd be real fd's in every way. People could use them > 100% equivalently (and concurrently) with the traditional ones. The whole, > and the _only_ point, would be that it breaks the legacy guarantees of a > dense fd space.> > Most apps don't actually *need* that dense fd space in any case. But by > defaulting to it, we wouldn't break those (few) apps that actually depend > on it.I agree. What would be a good interface to allocate fds in such area? We don't want to replicate syscalls, so maybe a special new dup function?- Davide-To unsubscribe from this list: send the line "unsubscribe linux-kernel" inthe body of a message to majordomo@vger.kernel.orgMore majordomo info at read the FAQ at | http://lkml.org/lkml/2007/5/30/437 | CC-MAIN-2014-42 | refinedweb | 164 | 75.61 |
It all started when I got a new pet (Wall-E), a labrador puppy. When pups are small, they can’t be left alone and need a lot of your attention. If you prefer to spend your night working like me, you don’t get enough time to give proper attention to your loved pet. Small puppies doesn’t move much, they spend most of the time eating, pooping and sleeping. So, the pup only needs attention when he’s awake, Awesome! That got me thinking about designing a system that can alerts me whenever he moves.
Since, I work extensively with technologies I could easily think of systems that could easily simplify my work. Nevertheless, each and every design takes some time to get more usable, this is no exception.
What this arrangement of internet of things does for petcare?
Basically an alarm starts in your system whenever the pup moves and an email alert is sent to your mobile. The choices were made for rapid prototyping, you can select whatever medium you want to alert yourself.
Things you need to start with this IOT tutorial
To get started with this tutorial the prerequisites are:
1. 2 Wireless XBE Transceiver.
2. ATMEGA 328 PU (Microcontroller).
3. One red LED.
4. PIR Motion sensor.
5. Python installed in your computer.
You can easily buy these things from internet, no biggie here. For, installing python in your system, follow instructions here. If you are using Windows then make sure you add path to your system variables. Here’s a tutorial you can use for your reference.
What does the parts involved in this tutorial do?
PIR Motion sensor relies on light based difference. XBee Transceiver sends information ( one sends, other receives). ATMEGA Micro controller when it gets a software interrupt from digital “pin 8” of Arduino. It converts the signal in a digital form and sends it serially to transceiver while turning on Red Led at Pin 13, the transceiver in turns sends data to the other Xbee transceiver connected with PC initiating python script to send an e-mail.
Block diagram of the IOT arrangement
Scripts I used for this internet of things project
Here’s the Python script that I used for this project:
import serial import threading import queue import tkinter as tk from time import sleep import smtplib fromaddr = 'dog.sendmail@gmail.com' toaddrs = 'my@gmail.com' msg = 'Motion Detected' username = 'dog.sendmail@gmail.com' password = 'password' import winsound class SerialThread(threading.Thread): def __init__(self, queue): threading.Thread.__init__(self) self.queue = queue def run(self): s = serial.Serial('COM3',9600) while True: if s.inWaiting(): text = s.readline(s.inWaiting()) server = smtplib.SMTP('smtp.gmail.com:587') server.starttls() server.login(username,password) server.sendmail(fromaddr, toaddrs, msg) print('mail sent') server.quit() self.queue.put("POOP") winsound.PlaySound('/poop_alert/poop.wav', winsound.SND_ASYNC) sleep(100) self.queue.put("RESET") print("sentuu s.flush()): while self.queue.qsize(): try: self.text.delete(1.0, 'end') self.text.insert('end', self.queue.get()) except Queue.Empty: pass self.after(100, self.process_serial) app = App() app.mainloop()
Created by Pretty R at inside-R.org
Now that you are all set with Python, let’s look at the code that I used with Audrino:
import serial /.write("motion detected "); //Serial.print(millis()/1000); //Serial.println(" sec"); // Serial.write("POOP");); } } }
Created by Pretty R at inside-R.org
XBee 2.4 GHz Transceiver Configuration
Coordinator Console session
+++OKATID 1000 OKATDH 0013A200OKATDL
40ADFB32OKATID1000ATDH13A200ATDL40ADFB32ATWROK
Xbee Router Configuration
Similiarly you need to configure your router using following paratmeter as lister in the table below:
The console session for router will look like this:
Router
+++OK
ATID 1000
OK
ATDH 0013A200
OK
ATDL 40A78409
OK
ATID 1000
OK
ATWR
This system is far from perfect, I haven’t really worked much on it. But, if you have any suggestion towards improving the system, do not hesitate to drop a comment.
References:
1.
2.;wap2 | http://parikshit-joshi.com/internet-of-things/iot-pet-care-diy-tutorial/ | CC-MAIN-2021-31 | refinedweb | 662 | 60.31 |
table of contents
- buster 241-7~deb10u5
- buster-backports 247.2-4~bpo10+1
- testing 247.2-4
- unstable 247.2-4
NAME¶sd_bus_slot_set_userdata, sd_bus_slot_get_userdata - Set and query the value in the "userdata" field
SYNOPSIS¶
#include <systemd/sd-bus.h>
void* sd_bus_slot_set_userdata(sd_bus_slot* slot, void* userdata);
void* sd_bus_slot_get_userdata(sd_bus_slot* slot);
DESCRIPTION¶The userdata pointer allows data to be passed between the point where a callback is registered, for example when a filter is added using sd_bus_add_filter(3) or an asynchronous function call is made using sd_bus_call_async(3), and the point where the callback is called, without having any global state. The pointer has type void* and is not used by the sd-bus functions in any way, except to pass to the callback function.
Usually, the userdata field is set when the slot object is initially registered. sd_bus_slot_set_userdata() may be used to change it later for the bus slot object slot. Previous value of the field is returned. The argument and returned value may be NULL. It will be passed as the userdata argument to the callback function attached to the slot.
sd_bus_slot_set_userdata() gets the value of the userdata field in the bus slot object slot. | https://manpages.debian.org/buster-backports/libsystemd-dev/sd_bus_slot_set_userdata.3.en.html | CC-MAIN-2021-04 | refinedweb | 196 | 56.66 |
new
All examples and the Catharsis framework guidance are available here.
This article extends my previous story: The OOP Approach on MVC UI - System.Web.UI.Controls. You should take a look, because here I tried to skipp what was written there...
This article is intended as an complete overview 1) how we should NOT use MVC 3.0 Razor engine and 2) how we should USE the MVC 3.0 Razor engine. While the topic is complex and wide, I decided to put it all together in one place, inside one story. I believe that if reader can have everything summarized in one paper, it will simplify the understanding to my blames (what is inappropriate) and to my suggestion (how to correctly and effectively use Razor)
Everything is based on intensive 3 years experience with ASP.NET MVC. All our knowledge comes from currently 5 larger projects, which are based on the Catharsis framework. Its latest version on is the powerful extract of our experience, built on many useful design patterns and best practices.
To get the fully working example to this article take it here, Firm.Example.zip
The Razor and ASP.NET MVC 3.0 are already here. I have investigated and read some stuff about it. And became sad. Does someone remember ages when we used to code in C#? when OOP with inheritance, encapsulation and polymorphism was the saint grail? Are we all using VS 2010? Do we like the intellisense? Type safety? compile time checks?
Recently, I was working with a very sharp knife in the kitchen. In a moment an accident have happened, and I felt the pain (the bloody story should be censored). BUT! There is a question: Who is guilty? The knife? The TOOL? Or the user - me? Or better, the way I used it?
What is S#? see example and then you will get the answer S# == Spaghetti and unSafe code. Let's have a look on the main features which you will find in almost every article about ASP.NET MVC 3.0 and Razor.
I.
@ViewBag.Title
// the abbr. coming with "dynamics" for a ViewData["Title"]
Is the dynamic what is .NET 4.0 about? When we start to use that, it could be funny and sexy! But the more code with such 'dynamic references' in our application will be, the less we will remember them. And intellisense, Resharper, compiler ... NONE will help us!
II.
@RenderPage("~/Controls/Home/Home.cshtml", "Hello", 4, false, new { id = 1})
// the way how to add a "Control" on the View
Not only the part , "Hello", 4, false, new { id = 1} is in fact params object[] data. Yes in .NET everything is object, but this is too much... Well, and see the first parameter: "any/string/path/to/some/resource". Do I have to mention type safety for above statement? The .NET 4.0 and strings which are evaluated only during the run-time?
III.
<p>Hello
@if(ViewBag.IsFriend) {
<b>Friend</b>
} else {
<i>Visitor</i>
}
</p>
This is the mixture of the HTML and script code. Much more better then in MVC 2.0, but still not so clear when your application is growing.
IV.
ASP.NET MVC 1.0:
<%= "<br />" %> // rendered result was always "<br />"
ASP.NET MVC 2.0:
<%= "<br />" %> // rendered result was "<br />"
<%: "<br />" %> // rendered result was "<br />"
ASP.NET MVC 3.0: (Razor)
@("<br />") // rendered result is always "<br />"
So in the first version, nothing was Encoded (trust me, it was painful). Second edition allowed to decide, whether to encode or not. And the current Razor view engine? Do what ever you want, the result will be encoded. (Unless you return the HtmlString).
So you have to write more:
@(new HtmlString("<br />"))
// or use or create some encapsulation method X:
// public virtual HtmlString X(string text) { return new HtmlString(text); }
@X("<br />")
V.
@Html.DropDownList(ViewBag.Source, "Key", "Value", new { "Me", "We"})
HtmlHelper
The stand-alone design failure HtmlHelper is still here:
Do you need to change the result of this method, the rendered HTML text? you can have to copy paste the code and create new method! The same goes for parameter extending. <samp>(static</samp> methods as the pillar of the ViewEngine? == S# )
<samp>(static</samp> methods as the pillar of the ViewEngine? == S# )
Type safety suffers here the most... is the third string parameter 'key' or 'value'? Named or default parameters (C# 4.0) will not solve it, because there is NO way how to force to use them...
S#, Spaghetti and unSafe code is presented everywhere as the MVC 3.0 essence, as the new 'Razor style'.
All above, is simply very ugly workaround we get with the Razor engine. In fact this is only the way its used. We do not have to go this way.
The Razor engine, when used gently, could really make our code simpler, readable while still type safe and based on OOP. We will see more soon...
The Razors's nature is to REDUCE code. It should help us to be more effective. But there is no NEED to write in S# or to introduce type unSafety e.g.:
1) Razor itself is cool! see the Home/Index.cshtml
@model IHomeModel
@{ Layout = LayoutRich; }
@RenderControl("Home/Home.cshtml")
2) MVC 2.0 is verbose. see the Home/Index.aspx
<%@ Page Language="C#" MasterPageFile="~/Views/Masters/RichMaster.Master" Inherits="ViewPageBase<Models.IHomeModel>" %>
<%@ Register TagPrefix="cwc" TagName="Home" Src="~/Controls/Home/Home.ascx" %>
<asp:Content
<asp:Content
<cwc:Home
</asp:Content>
Both snippets are doing the same
OK, we mentioned "the ways of using Razor" which end up in the S#.
So what should we demand? What we would like to gain? How should our code in Razor look like to fit these requirements:
The underlying implementation have to be based on fully typed objects. And because we are in ASP.NET world, let's uncover the secret right now: the System.Web.UI.Control is the chosen one.
Yes, the old-fashioned System.Web.UI.Control objects family. Because this concept is one of the best things in the web forms (if used gently and correctly). These objects (Controls) will met the OOP essence
And that will allow us to extend them, reuse code, hide inner implementation and manipulate them as needed (e.g. Table can consume only ITableChild - TableRow, TableHead...)
And we will ask for more.
...and maybe some other added values as a by product...
Let's write down some code snippets, which will show the target appearance. The Razor syntax could look like this:
@AddControls(
new Div("myClass")
{
new Image(picturePath)
.SetAlt("MyPicture"),
new Span
{
new Literal("This is my picture")
},
})
the HTML result
<div class="myClass">
<img src="picturePath.jpg" alt="MyPicture" />
<span>This is my picture</span>
</div>
The same should be working in .aspx engines
<%= AddControls(
new Div("myClass")
{
new Image(picturePath)
.SetAlt("MyPicture"),
new Span
{
new Literal("This is my picture")
},
}) %>
We should have some compound Controls which will encapsulate some functionality. E.g. they will decide if they will render <div> or <input> element. Of course, decision will be done on strongly typed parameter
@AddControls(
new Div("myClass")
{
new MyControl("alignRight")
.SetText(Model.Item.FirstName)
.SetInputName("FirstName")
.SetReadOnly(Model.IsReadOnly),
})
And with a bit of Expression parsing:
@AddControls(
new Div("myClass")
{
new MyControl("alignRight")
.SetSourceProperty(() => Model.Item.FirstName)
// The FirstName will be read from this expression
// as well as the 'string' value for Text property
.SetReadOnly(Model.IsReadOnly),
})
Do you remember the S# syntax for if statement? Let's demand more!
@AddControls(
new Paragraph
{
new Literal("Hello"),
Model.IsFriend // if
? new Bold("Friend")
: new Italic("Visitor"),
})
In cases that we have a framework we usually have implemented master pages and do concentrate only on the Entity dependent implementation. Imagine that we have some CodeList entity, then we should demand this type of declaration:
@model ICodeListModel
@this.CreateForm()
@AddControls(
new Fieldset("w70p mh100 ", Str.Business.Common.Description)
{
new DefinitionList
{
new TextOrInput().SetSourceProperty(() => Model.Item.Code),
new TextOrInput().SetSourceProperty(() => Model.Item.Name),
new CheckBox()
.SetSourceProperty(() => Model.Item.IsVisible)
.SetCssClassName(Str.Align.Left),
new TextOrInput(true)
.SetSourceProperty(() => Model.Item.ID)
}
})
@this.CloseForm()
And this is the View with the CodeList rendered as a ListView. See that we are able to pass inner model:
CodeList
@model IEntityModel<IPersistentObject, ISearch>
@AddControls(
new ListView
{
ViewDataKey = "ListModel",
FormSubmitButton = this.GetButton(Str.SearchFor.ActionReturnResults),
}
)
I believe that right now you have some overall idea how should the final solution look like. We have to do these steps.
VisualControl
<samp>IVisualControl</samp>
<samp>ContentControl</samp>
<samp>AddControls</samp>()
well, let's start
The complete, working solution you will find in this download. Here I will describe only the main parts to reduce the snippets size
VisualControl will be descendant of the System.Web.UI.Control. And to get more functionality, it will be derived form the ASP.NET MVC ViewUserControl.
The ICoreModel is expected to be the base IModel of your application, which all Models do implement.
public abstract class VisualControl<TModel> : ViewUserControl<TModel>, IVisualControl
where TModel : class, ICoreModel
{
// #region HtmlString
// This is a gateway for a Razor (or .ascx) view engine.
// @AddControls() will call this ToHtmlString()
public virtual string ToHtmlString()
{
var builder = new StringBuilder();
var writer = new HtmlTextWriter(new StringWriter(builder));
RenderControl(writer); // see below how it is implemented
return builder.ToString();
}
// #endregion HtmlString
// if overridden in child Controls, it provides the tag name e.g."div"
// end decides whether the begin and end tags will be 'automatically' rendered
// if left empty, no tag is (by default) rendered, e.g. Literal or some CompoundControl
protected virtual string TagName { get { return string.Empty; } }
// #region Render
// explicitly implemented method, to allow simple call to all child controls
// (while still a bit 'hiding' it from public VisualControls methods)
void IVisualControl.OnPreRender(EventArgs e)
{
OnPreRender(e); // the way how to "call children" and forc
}
// this is a trick! the essence of this solution
// this method is called whenever a new Control is added into the Controls collection.
// but it could happen in time, when all needed properties are not provided yet
// e.g. UrlHelper, ViewContext...
// So, when a control is added, this overriden method (doing nothing) is called.
// the base implementation will be called manually later...
protected override void AddedControl(Control control, int index) { } // hide
// This is a call to all children. It is managed by RenderControl (until overriden)
// and it means, that at the moment of call, all needed properties
// are already set, e.g. UrlHelper, ViewContext
// That mean, that right now, we can call the base.AddedControl() implementation
// to profit form its powerful implementation
protected virtual void InitControls()
{
foreach (var c in Controls)
{
base.AddedControl((Control)c, 0); // it will provide child with lot of stuff
c.Url = Url;
c.ViewContext = ViewContext;
c.OnPreRender(new EventArgs());
}
}
// This method is the old fashioned RenderControl().
// Its implementation here:
// 1) mimics the Binding - the call InitControls()
// 2) Rendering
// - begin tag, content (children), end tag
public override void RenderControl(HtmlTextWriter writer)
{
InitControls();
RenderBeginTag(writer);
RenderContent(writer);
RenderEndTag(writer);
}
// If descendant Control returns TagName....
protected virtual void RenderBeginTag(HtmlTextWriter writer)
{
if (TagName.IsNotEmpty())
{
writer.Write(Environment.NewLine);
writer.WriteBeginTag(TagName);
Attributes.Render(writer);
writer.Write(HtmlTextWriter.TagRightChar);
}
}
// all child controls are already Initiated,
// provided with UrlHelper, Model, ViewContext...
// so they can be rendered
protected virtual void RenderContent(HtmlTextWriter writer)
{
foreach (Control control in Controls)
{
RenderChild(writer, control);
}
}
protected virtual void RenderEndTag(HtmlTextWriter writer)
{
if (TagName.IsNotEmpty())
{
writer.WriteEndTag(TagName);
}
}
// this method is intended to be overridden if needed...
protected virtual void RenderChild(HtmlTextWriter writer, Control control)
{
control.RenderControl(writer);
}
// #endregion Render
This interface will simplify polymorphic operations. For example it will help us to act with any control without generics.
public interface IVisualControl :
IComponent,
IParserAccessor,
IUrlResolutionService,
IDataBindingsAccessor,
IControlBuilderAccessor,
IControlDesignerAccessor,
IExpressionsAccessor,
IViewDataContainer,
IAttributeAccessor,
INamingContainer,
IUserControlDesignerAccessor,
IFilterResolutionService
{
string ID { get; set; }
IUrlHelper Url { get; set; }
ViewContext ViewContext { get; set; }
void OnPreRender(EventArgs e);
}
Why so many interfaces? Well, every System.Web.UI.Control has collection of Controls which must be of type System.Web.UI.Control. Because we would like to operate with interfaces (<samp>IVisualControl</samp>, <samp>ITableChild</samp>...) and there is now IControl (implemented in core MS lib System.Web) we simply declare as many interfaces implmented by Control as possible to make it obvious: if you want to implement IVisualControl - use the VisualControl as a base class. Its hack, but legal, fixing the missing features...
System.Web.UI.Control
<samp>IVisualControl</samp>, <samp>ITableChild</samp>
This interface has two mayor reasons
There are some controls which are derived directly from the VisualControl. These do not have children:
Their implementation is (except of the ListView) very simple:
public class Literal : VisualControl<ICoreModel>
{
// constructor
public Literal(string text = null)
{
SetText(text);
}
// properties
public virtual string Text { get; set; }
public override void RenderControl(HtmlTextWriter writer)
{
writer.WriteLine
(
HttpContext.Current.Server.HtmlEncode(Text)
);
}
// Set
public Literal SetText(string text)
{
if (text.Is())
{
Text = text;
}
return this;
}
}
public class Break : VisualControl<ICoreModel>
{
// render
public override void RenderControl(HtmlTextWriter writer)
{
writer.WriteBreak();
}
}
That's enough, until now, to start to use the above controls this way:
@AddControls(
new Literal("Text before break"),
new Break(),
new Literal()
.SetText("Text after break")
)
And to get this HTML result
Text before break
<br />Text after break
The abstract VisualControl provide base implementation for Controls without need to extend them fluently (e.g. break <br />). For controls, which requires more settings to render more complex content, there is a derived class ContentControl. It extends some base functionality:
The System.Web.UI.Control has built-in collection for HTML attributes. Very important feature for us is, that we can append, extend and remove attributes using this collection. And what's more, when we ask this collection to be rendered (see above) it is ENCODED. So we do not have to care!
In ContentControl we only simplify the access to this collection with 2 methods SetAttribute(name, value) (the fluent syntax support) and GetAttribute(name).
ContentControl introduces support for the syntax as we know from List (by implementing two methods: GetEnumerator and Add()):
IList<string> coll = new List<string> { "My", "Name", "Is"}
The ContentControl also introduces the filter, restriction for a type, which can be used for its children (where TChildControl : IVisualControl). Already noted Table control can be this way restricted to accept children of a ITableChild type only.
And there is finally the ContentControl definition.
public abstract class ContentControl<TModel, TChildControl, TContentControl> : VisualControl<TModel>, IEnumerable
where TModel : class, ICoreModel
where TContentControl : ContentControl<TModel, TChildControl, TContentControl>
where TChildControl : IVisualControl
{
// #region Add Controls
public virtual TContentControl AddControls(params TChildControlcontrols)
{
foreach (var control in controls)
{
Add(control);
}
return this as TContentControl;
}
// this two below methods are the only needed implementation
// to provide the syntax similar to list initialization:
// new DIV { control1, control2, control3 }
IEnumerator IEnumerable.GetEnumerator()
{
return Controls.GetEnumerator();
}
public virtual void Add(TChildControl control)
{
Controls.Add(control);
}
// #endregion
// attribute setter
public virtual TContentControl SetAttribute(string attributeName, string value)
{
base.SetAttribute(attributeName, value);
return this as TContentControl;
}
// attribute getter
protected virtual string GetAttribute(string attributeName)
{
if (attributeName.IsNotEmpty())
{
return Attributes[attributeName];
}
return string.Empty;
}
}
One of the simplest but very important ContentControl children is the PlaceHolder
public class PlaceHolder : ContentControl<ICoreModel, IVisualControl, PlaceHolder> { }
Yes that's all implementation. This control can be instantiated and can contain other Controls, while not rendering any HTML. Cool.
Another simple control is the DIV:
public class Div : ContentControl<ICoreModel, IVisualControl, Div>
{
// constructor
public Div(string cssClassName = null)
: base(cssClassName) { }
// properties
protected override string TagName
{
get { return Tag.Div; }
}
}
That's it. Div can consume any IVisualControl. By overriding the TagName the base VisualControl implementation is used: Open tag is rendered, all attributes, content, end tag.
Similar way other controls can be created. Even for complex controls we will use the same infrastructure. for more details download and see example.
Finally we have to place our control(s) on a view engine page. We need to learn Razor (or .ascx Control) how to use them. For this purposes we will implement the AddControls() method. It will be placed in the RazorControl class which is the base for every Razor view in our application.
public abstract class RazorControl<TModel> : WebViewPage<TModel>
where TModel : class, ICoreModel
{
protected virtual HtmlString AddControls(params IVisualControlcontrols)
{
var holder = new PlaceHolder
{
ViewContext = ViewContext,
ViewData = new ViewDataDictionary<ICoreModel>(Model),
Url = Url,
};
holder.AddControls(controls);
return new HtmlString(holder.ToHtmlString());
}
}
And that's it. From this moment we can live in Razor view engine, while still doing the real OOP. This will be working right now:
@AddControls( new Div { new Literal("Hello World") } )
I believe that the above article successfully explained how we can return the OOP, the ASP.NET Controls back on the track. Even in the MVC 3.0 Razor engine environment. MVC 3.0 Razor is cool, but the Type safety, intellisense and compile checks are cooooler. If we will succeed to put that all together we WILL gain a lot.
As in my very first note about the knife and its incorrect usage - Razor is a tool, which, in correct hands with the gentle intentions, can do a lot of job. In rude hands, it could and probably would do an unintended damage...
And how we can fix all the 'blamed! S# code
I.
@Model.Title // where IModel simply implements: string Title { get; }
II.
@RenderPage("~/Controls/Home/Home.cshtml", "Hello", 4, false, new { id = 1})
@AddControls(new Home("Hello").SetCount(4).SetIsReadOnly(false).SetId(1))
III.
@AddControls(
new Paragraph
{
new Literal("Hello"),
Model.IsFriend // if
? new Bold("Friend")
: new Italic("Visitor"),
})
IV.
@X("<br />") // to get "<br />"
V.
@AddControls( new ComboBox().SetSourceProperty( () => Model.Item.Country))
// observe example, this is really enough ...
All downloads are available here.
After discussion below this article I have to make sure, that also this is still working:
<fieldset>
<legend> my legend </legend>
<div class="body">
@AddControls( new ComboBox().Set.....
@AddControls( new TextBox().Set.....
</div>
<fieldset>
Other words: The Controls allows you to take out a part which is by your decision good to be accessed as object. If you would like to have the wrapped HTML placed as the tags (H1, DIV above)... it is still there and working.
Once, you will firstly see, feel or undertand the advantage of Controls as objects, then you will move to this:
@AddControls(
new Fieldset("my legend") // the LEGEND is encapsulated for you
{
new Div("body") //....
...
Isn't it cool?!? Imagine, what more you can do with objects, instead of the strings...
After all the notes and comments I decided to show you some real example. All above can be used on any project, without need to use any external library (just few coding). The pictures are taken from Catharsis Firm.Example, where it is already implemented. But the point is the solution, the approach - not the need to download and reference some .dll
I would like to thank you to all of you, who spent your time to append note, disagreement or blame, and of course to them, who succeeded to see - what that all is about. Without the feedback, I can hardly give you more... THANKS
Well the next picture shows the CONTROL ListView.
ListView
data-src="/KB/aspnet/OOP-in-ASP_NET-MVC-3_0/List_View-r-700.png" class="lazyload" style="cursor: pointer; border: 0; width: 700px; height: auto" onclick="imageCleanup.showFullImage('/KB/aspnet/OOP-in-ASP_NET-MVC-3_0/List_View.png')" data-sizes="auto" data->
Maybe until now, you can think, that you can do it your way, with htmlhelper or with Razor. To help you to have some idea about the result, there are some tables (for different entities) rendered by this control.
data-src="/KB/aspnet/OOP-in-ASP_NET-MVC-3_0/Tables-r-700.png" class="lazyload" style="cursor: pointer; border: 0; width: 700px; height: auto" onclick="imageCleanup.showFullImage('/KB/aspnet/OOP-in-ASP_NET-MVC-3_0/Tables.png')" data-sizes="auto" data->
The ListView is very powerful. It has paging, sorting, navigation to detail, to edit, delete... it is able to convert bool to Checkboxes... and many more.
But what if there is a new demand? to have special cell (TD). The TableCell (control) should simply render different HTML. And that's the place where OOP brings you, what anythinge else can hardly give you (sorry for the strict naming of things, but try to do it other way...).
data-src="/KB/aspnet/OOP-in-ASP_NET-MVC-3_0/ComplexListView-r-700.png" class="lazyload" style="cursor: pointer; border: 0; width: 700px; height: auto" onclick="imageCleanup.showFullImage('/KB/aspnet/OOP-in-ASP_NET-MVC-3_0/ComplexListView.png')" data-sizes="auto" data->
As you can see, we reused all the ListView functionality, and created a baby: ComplexListView. We have to change only one (ONE == 1) piece, the TableCell. And there is a result. Only one method is overriden. (Can you do the same over static Extension methods?)
data-src="/KB/aspnet/OOP-in-ASP_NET-MVC-3_0/ComplexResult-r-700.png" class="lazyload" style="cursor: pointer; border: 0; width: 700px; height: auto" onclick="imageCleanup.showFullImage('/KB/aspnet/OOP-in-ASP_NET-MVC-3_0/ComplexResult.png')" data-sizes="auto" data->
Summary of this example: While the above article mostly tried to show you advantages of OOP on the simplest stuff, this example targets the top level of Control usage. But behind of this, there are the bricks, the building blocks: TD, TR, TBODY... represented by objects - controls TableCell, TableRow, TableBody.... And these bricks-objects allow you creating and extending any HTML part, while still living in object representation of the HTML elements.
Enjoy the OOP, try to taste Catharsis
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)
@AddControls(<br />
new Div("myClass")<br />
{ <br />
new Image(picturePath)<br />
.SetAlt("MyPicture"),<br />
new Span<br />
{<br />
new Literal("This is my picture")<br />
},<br />
})
AddControls(new Image().SetSource(someSource).SetAlt(alt).SetTitle(title))
AddControls(new Image(new ImageDescriptor {Href = someSource, Alt = alt, Title=title}))
General News Suggestion Question Bug Answer Joke Praise Rant Admin
Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages. | https://codeproject.freetls.fastly.net/Articles/153262/OOP-in-ASP-NET-MVC-3-0-despite-of-the-Razor?msg=3756873#xx3756873xx | CC-MAIN-2021-49 | refinedweb | 3,675 | 50.53 |
Code. Collaborate. Organize.
No Limits. Try it Today.
In one of the earlier articles by Chris Maunder, User controls in ASP .NET, and a similar article by us, ASP.NET User Controls - 1, the highlights of ASP.NET usercontrols have been discussed. These previous artciles demonstrated how to create a UserControl and do declarative inclusion in the web page. This article will discuss programatic inclusion of the UserControls. As you will see that this process is not a rocket science, thanks to ASP.NET framework. A lot of details are already there in Microsoft documentation. But there are some things that you need to be aware of and shall take into consideration.
We have seen that a lot of users who have tried to programatically include UserControl on the web page, ran into some compile time and run time errors. And we are no exception to that kind of category of users. Although MS documentation has mentioned steps that need to be followed for programatic inclusion but still some users skipped those steps.
Make sure that you specify the className attribute in @Control directive in the .ascx file implementing your UserControl. What this means is that when you include the control in a web page and create an instance of it then you can refer to the control by its strong type name as specified in className attribute. If you don't specify this attribute, then framework appends _ascx to the class name of that control, defined in codebehind source file, and assigns it to the control. For example in our case we developed a UserControl named SiteHeader. The declaration in the code behind file looks like
className
@Control
_ascx
UserControl
public abstract class SiteHeader : System.Web.UI.UserControl
In this case, if you don't specify className attribute in @Control directive then page will load this control with strong name SiteHeader_ascx.
SiteHeader_ascx
This is one of the problems that people have run into. For example, when we tried to type case the user control to SiteHeader type, it failed. The reason was simple that it was created as type SiteHeader_ascx and not SiteHeader. So @Control in the control's ascx file should look something like this.
SiteHeader
ascx
<%@ Control
And then you need to follow the procedures for creation and implementation of actual control functionality. In our case we have defined two string properties for the SiteHeader contorl. These properties are used to specify the path for the images that need to be displayed in the control. at load time, in Page_Load event of the control, we check if the path for these images have been specified or not. If there is no path, then we skip the inclusion of asp:Image control. Here is the fragment of the code that we have used.
string
Page_Load
asp:Image
private void Page_Load(object sender, System.EventArgs e)
{
if (!IsPostBack)
{
// If the file path has been specified for left logo
// image then add a image control to the cell.
if (this.m_strLeftLogoImgPath.Length > 0)
{
//TODO: Check if the file path is valid or not.
System.Web.UI.WebControls.Image leftLogoImg;
try
{
leftLogoImg = new System.Web.UI.WebControls.Image();
leftLogoImg.ImageUrl = this.m_strLeftLogoImgPath;
this.LeftLogoCell.Controls.Add(leftLogoImg);
}
catch (Exception ex)
{
Trace.Write(ex.Message);
}
}
}
}
When you want to programtically include a UserControl in a web page, the steps are different than those followed for delarative inclusion of a control in web page.
For declarative inclusion of control in the page, you used @Register directive at the top of the page. But for programatic there is going to be a change. You will use @Reference directive. This directive takaes only one attribute, Page or Control. The value of this attribute specifies the file that contains the control or the page that this page should link to during dynamic compliation. This step is very important, otherwise your will get Compiler Error CS0246 indicating that class name or type was not found.
@Reference
Page
Control
Compiler Error CS0246
<%@ Reference Control="./controls/SiteHeader.ascx"%>
If you have created your UserControl in a namespace different than the the web application, then you need to add using directive for that namespace if you don't want to use the fully qualified name for the control's type.
using
using ASPNet_App.Controls;
And then the last step of actually loading the UserControl in the web page. In the Page_Load event for the page, call LoadControl method. This method is defined in System.Web.UI.TemplateControl class and the System.Web.UI.Page class inherits from Template class.
LoadControl
System.Web.UI.TemplateControl
System.Web.UI.Page
Template
If LoadControl method succeeds, it loads the UserControl from the specified file and returns a reference to that control.
You can access the properties and methods of the loaded control from the reference returned on the previous step.);
}
}
}
If all the steps are followed correctly and the proper declarations have been included, then programatic inclusion of UserControl is pretty straight forward.
In the coming days we will be posting more articles demostrating various aspects of UserControl development. So If you have any suggestions or would like to some feature to be demonstrated, please feel free to write us at softomatix@pardesiservices.com or visit
base.OnLoad( e );
(MyControlClass)Page.LoadControl("control.ascx");
Control c = Page.LoadControl("control.ascx");
public String Test()
Type ft = c.GetType();
MethodInfo mi = ft.GetMethod("Test");
String hello = (String)mi.Invoke(c, null);
General News Suggestion Question Bug Answer Joke Rant Admin
Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.
C# 6: First reactions | http://www.codeproject.com/Articles/1939/Programatically-include-an-ASP-NET-UserControl-in?PageFlow=FixedWidth | CC-MAIN-2014-15 | refinedweb | 939 | 57.77 |
I am trying to get c-mode block comments to automatically insert leading '* ' in each line in a block comment. I tried setting c-block- comment-prefix to '* ', and this works to auto-insert the prefix on the second line of a comment block but only if the the newline is auto- inserted. If I use a manual return (which for me is bound to newline- and-indent), the prefix is not inserted. And all subsequent lines of the block comment do not receive the prefix, whether from auto-fill or by manual newline-and-indent. c-comment-prefix-regexp is set to: ((pike-mode . "//+!?\\|\\**") (other . "//+\\|\\**")) I'm using GNU Emacs 21.3.1 with C Mode 5.28. Surely I must be doing something wrong, because Emacs and C-mode are too perfect to not be able to do this. | http://lists.gnu.org/archive/html/help-gnu-emacs/2007-05/msg00585.html | CC-MAIN-2014-42 | refinedweb | 141 | 64.2 |
A (bit-delayed-due-to-major-internal-changes) fresh weekly build of PhpStorm & WebStorm 2.0 is available:
- PHP editor performance was improved, both from CPU and memory perspectives. If you find any suspicious behavior when typing php code – do not hesitate to file a report into tracker!
- PHP library stubs were updated for many extensions, and Parameter inspection will treat non-last optional parameters more properly
- Language injection in PHP was reworked for predefined SQL & HTML patterns – you may want to open Settings|Language injection and delete all patterns and restart IDE to ensure that you do not suffer any performance penalties from old patterns. And again
- CSS inspection will treat browser-specific extension more appropriately. Also completion for typical font-family names was added
- Significant bug fixes, check project issue tracker for more complete changelog
Please note that ALL of this is work in progress and will undergo series of both technical and cosmetic changes during next months.
Download PhpStorm & WebStorm 2.0 EAP build 96.1130 for your platform from project EAP page.
Develop with pleasure!
-JetBrains Web IDE Team
This blog is permanently closed.
For up-to-date information please follow to corresponding WebStorm blog or PhpStorm blog.
Hello, thanks for this new EAP Build. I hope that this new release will provide speed improvement. Do you have an idea when the any frameowrk will be implemented in EAP Builds? Because I have some autocompletition problem with CodeIgniter. A cool feature will be to ignore some HTML error like body not closed, because I have an header and footer seperated.
Hi,
the current version (96.1130) has a bug: When having some code like this:
haveToPaginate()): ?>
$pager, ‘route_name’ => ‘message_index’, ‘parameters’ => array())) ?>
It marks the endif and says: “Expected: endif”
Best regards,
sewid
@sewid Thanks, we aware of some parser regressions in this build, they are already fixed. Please submit further bug reports to project tracker
The code has been stripped
There was a “if (…) :” and an “endif” around the code.
Best regards,
sewid | http://blog.jetbrains.com/webide/2010/09/phpstorm-webstorm-2-0-eap-build-96-1130/ | CC-MAIN-2013-48 | refinedweb | 337 | 57.27 |
If you haven’t done so already, please first read the Getting Started guide.
In this tutorial we are going to create a working wiki from scratch using Pylons 1.0 and SQLAlchemy. Our wiki will allow visitors to add, edit or delete formatted wiki pages.
Pylons is designed to be easy for everyone, not just developers, so let’s start by downloading and installing the finished QuickWiki in exactly the same way that end users of QuickWiki might do. Once we have explored its features we will set about writing it from scratch.
After you have installed Pylons, install the QuickWiki project:
$ easy_install QuickWiki==0.1.8 $ paster make-config QuickWiki test.ini
Next, ensure that the sqlalchemy.url variable in the [app:main] section of the configuration file (development.ini) specifies a value that is suitable for your setup. The data source name points to the database you wish to use.
Note
The default sqlite:///%(here)s/quickwiki.db uses a (file-based) SQLite database named quickwiki.db in the ini’s top-level directory. This SQLite database will be created for you when running the paster setup-app command below, but you could also use MySQL, Oracle or PostgreSQL. Firebird and MS-SQL may also work. See the SQLAlchemy documentation for more information on how to connect to different databases. SQLite for example requires additional forward slashes in its URI, where the client/server databases should only use two. You will also need to make sure you have the appropriate Python driver for the database you wish to use. If you’re using Python 2.5, a version of the pysqlite adapter is already included, so you can jump right in with the tutorial. You may need to get SQLite itself.
Finally create the database tables and serve the finished application:
$ paster setup-app test.ini $ paster serve test.ini
That’s it! Now you can visit and experiment with the finished Wiki.
When you’ve finished, stop the server with Control-C so we can start developing our own version.
If you are interested in looking at the latest version of the QuickWiki source code it can be browsed online at or can be checked out using Mercurial:
$ hg clone
Note
To run the QuickWiki checked out from the repository, you’ll need to first run python setup.py develop from the project’s root directory. This will install its dependencies and generate Python Egg metadata in a QuickWiki.egg-info directory. The latter is required for the paster command (among other things) .
$ cd QuickWiki $ python setup.py develop
If you skipped the “Starting at the End” section you will need to assure yourself that you have Pylons installed. See the Getting Started.
Then create your project:
$ paster create -t pylons QuickWiki
When prompted for which templating engine to use, simply hit enter for the default (Mako). When prompted for SQLAlchemy configuration, enter True.
Now let’s start the server and see what we have:
$ cd QuickWiki $ paster serve --reload development.ini
Note
We have started paster serve with the --reload option. This means any changes that we make to code will cause the server to restart (if necessary); your changes are immediately reflected on the live site.
Visit where you will see the introduction page. Now delete the file public/index.html so we can see the front page of the wiki instead of this welcome page. If you now refresh the page, the Pylons built-in error document support will kick in and display an Error 404 page, indicating the file could not be found. We’ll setup a controller to handle this location later.
Pylons uses a Model-View-Controller architecture; we’ll start by creating the model. We could use any system we like for the model, including SQLAlchemy or SQLObject. Optional SQLAlchemy integration is provided for new Pylons projects, which we enabled when creating the project, and thus we’ll be using SQLAlchemy for the QuickWiki.
Note
SQLAlchemy is a powerful Python SQL toolkit and Object Relational Mapper (ORM) that is widely used by the Python community.
SQLAlchemy provides a full suite of well known enterprise-level persistence patterns, designed for efficient and high-performance database access, adapted into a simple and Pythonic domain language. It has full and detailed documentation available on the SQLAlchemy website:.
The most basic way of using SQLAlchemy is with explicit sessions where you create Session objects as needed.
Pylons applications typically employ a slightly more sophisticated setup, using SQLAlchemy’s “contextual” thread-local sessions created via the sqlalchemy.orm.scoped_session() function. With this configuration, the application can use a single Session instance per web request, avoiding the need to pass it around explicitly. Instantiating a new scoped Session will actually find an existing one in the current thread if available. Pylons has setup a Session for us in the model/meta.py file. For further details, refer to the SQLAlchemy documentation on the Session.
Note
It is important to recognize the difference between SQLAlchemy’s (or possibly another DB abstraction layer’s) Session object and Pylons’ standard session (with a lowercase ‘s’) for web requests. See beaker for more on the latter. It is customary to reference the database session by model.Session or (more recently) Session outside of model classes.
The model/__init__.py file starts out rather bare-bones. It initializes the SQLAlchemy database engine, and imports the Session object.
At the top, add the following imports:
from sqlalchemy import orm, Column, Unicode, UnicodeText from quickwiki.model.meta import Session, Base
Then add the following to the end of the model/__init__.py file:
class Page(Base): __tablename__ = 'pages' title = Column(Unicode(40), primary_key=True) content = Column(UnicodeText(), default=u'')
We’ve defined a table called pages which has two columns: title (the primary key), a Unicode VARCHAR of 40 characters, and content a Unicode TEXT column of variable sized length.
Note
A primary key is a unique ID for each row in a database table. In the example above we are using the page title as a natural primary key. Some prefer to integer primary keys for all tables, so-called surrogate primary keys. The author of this tutorial uses both methods in his own code and is not advocating one method over the other, what’s important is to choose the best database structure for your application. See the Pylons Cookbook for a quick general overview of relational databases if you’re not familiar with these concepts.
A core philosophy of ORMs is that tables and domain classes are different beasts. So next we’ll create the Python class that represents the pages of our wiki, and map these domain objects to rows in the pages table via the sqlalchemy.orm.mapper() function. In a more complex application, you could break out model classes into separate .py files in your model directory, but for sake of simplicity in this case, we’ll just stick to __init__.py.
Add this to the bottom of model/__init__.py:
class Page(object): def __init__(self, title, content=None): self.title = title self.content = content def __unicode__(self): return self.title __str__ = __unicode__ orm.mapper(Page, pages_table)
A Page object represents a row in the pages table, so self.title and self.content will be the values of the title and content columns.
Looking ahead, our wiki could use a way of marking up the content field into HTML. Also, any ‘WikiWords’ (words made by joining together two or more capitalized words) should be converted to hyperlinks to wiki pages.
We can use Python’s docutils library to allow marking up content as reStructuredText. So next we’ll add a method to our Page class that formats content as HTML and converts the WikiWords to hyperlinks. Add the following at the top of the model/__init__.py file:
import logging import re import sets from docutils.core import publish_parts from pylons import url from quickwiki.lib.helpers import link_to from quickwiki.model import meta log = logging.getLogger(__name__) # disable docutils security hazards: # SAFE_DOCUTILS = dict(file_insertion_enabled=False, raw_enabled=False) wikiwords = re.compile(r"\b([A-Z]\w+[A-Z]+\w+)", re.UNICODE)
then add a get_wiki_content() method to the Page class:
class Page(object): def __init__(self, title, content=None): self.title = title self.content = content def get_wiki_content(self): """Convert reStructuredText content to HTML for display, and create links for WikiWords """ content = publish_parts(self.content, writer_name='html', settings_overrides=SAFE_DOCUTILS)['html_body'] titles = sets.Set(wikiwords.findall(content)) for title in titles: title_url = url(controller='pages', action='show', title=title) content = content.replace(title, link_to(title, title_url)) return content def __unicode__(self): return self.title __str__ = __unicode__
The Set object provides us with only unique WikiWord names, so we don’t try replacing them more than once (a “wikiword” is of course defined by the regular expression set globally).
Note
Pylons uses a Model View Controller architecture and so the formatting of objects into HTML should properly be handled in the View, i.e. in a template. However in this example, converting reStructuredText into HTML in a template is inappropriate so we are treating the HTML representation of the content as part of the model. It also gives us the chance to demonstrate that SQLAlchemy domain classes are real Python classes that can have their own methods.
The link_to() and url() functions referenced in the controller code are respectively: a helper imported from the webhelpers.html module indirectly via lib/helpers.py, and a utility function imported directly from the pylons module. They are utilities for creating links to specific controller actions. In this case we have decided that all WikiWords should link to the show() action of the pages controller which we’ll create later. However, we need to ensure that the link_to() function is made available as a helper by adding an import statement to lib/helpers.py:
"""Helper functions Consists of functions to typically be used within templates, but also available to Controllers. This module is available to templates as 'h'. """ from webhelpers.html.tags import *
Since we have used docutils and SQLAlchemy, both third party packages, we need to edit our setup.py file so that anyone installing QuickWiki with Easy Install will automatically have these dependencies installed too. Edit your setup.py in your project root directory and add a docutils entry to the install_requires line (there will already be one for SQLAlchemy):
install_requires=[ "Pylons>=0.9.7", "SQLAlchemy>=0.5", "docutils==0.4", ],
While we are we are making changes to setup.py we might want to complete some of the other sections too. Set the version number to 0.1.6 and add a description and URL which will be used on PyPi when we release it:
version='0.1.6', description='QuickWiki - Pylons 0.9.7 Tutorial application', url='',
We might also want to make a full release rather than a development release in which case we would remove the following lines from setup.cfg:
[egg_info] tag_build = dev tag_svn_revision = true
To test the automatic installation of the dependencies, run the following command which will also install docutils and SQLAlchemy if you don’t already have them:
$ python setup.py develop
Note
The command python setup.py develop installs your application in a special mode so that it behaves exactly as if it had been installed as an egg file by an end user. This is really useful when you are developing an application because it saves you having to create an egg and install it every time you want to test a change.
Edit websetup.py, used by the paster setup-app command, to look like this:
"""Setup the QuickWiki application""" import logging from quickwiki import model from quickwiki.config.environment import load_environment from quickwiki.model import meta log = logging.getLogger(__name__) def setup_app(command, conf, vars): """Place any commands to setup quickwiki here""" load_environment(conf.global_conf, conf.local_conf) # Create the tables if they don't already exist log.info("Creating tables...") meta.metadata.create_all(bind=meta.engine) log.info("Successfully set up.") log.info("Adding front page data...") page = model.Page(title=u'FrontPage', content=u'**Welcome** to the QuickWiki front page!') meta.Session.add(page) meta.Session.commit() log.info("Successfully set up.")
You can see that config/environment.py‘s load_environment() function is called (which calls model/__init__.py‘s init_model() function), so our engine is ready for binding and we can import the model. A SQLAlchemy MetaData object – which provides some utility methods for operating on database schema – usually needs to be connected to an engine, so the line
meta.metadata.bind = meta.engine
does exactly that and then
model.metadata.create_all(checkfirst=True)
uses the connection we’ve just set up and, creates the table(s) we’ve defined ... if they don’t already exist. After the tables are created, the other lines add some data for the simple front page to our wiki.
By default, SQLAlchemy specifies autocommit=False when creating the Session, which means that operations will be wrapped in a transaction and commit()‘ed atomically (unless your DB doesn’t support transactions, like MySQL’s default MyISAM tables – but that’s beyond the scope of this tutorial).
The database SQLAlchemy will use is specified in the ini file, under the [app:main] section, as sqlalchemy.url. We’ll customize the sqlalchemy.url value to point to a SQLite database named quickwiki.db that will reside in your project’s root directory. Edit the development.ini file in the root directory of your project:
Note
If you’ve decided to use a different database other than SQLite, see the SQLAlchemy note in the Starting at the End section for information on supported database URIs.
[app:main] use = egg:QuickWiki #... # Specify the database for SQLAlchemy to use. # SQLAlchemy database URL sqlalchemy.url = sqlite:///%(here)s/quickwiki.db
You can now run the paster setup-app command to setup your tables in the same way an end user would, remembering to drop and recreate the database if the version tested earlier has already created the tables:
$ paster setup-app development.ini
You should see the SQL sent to the database as the default development.ini is setup to log SQLAlchemy’s SQL statements.
At this stage you will need to ensure you have the appropriate Python database drivers for the database you chose, otherwise you might find SQLAlchemy complains it can’t get the DBAPI module for the dialect it needs.
You should also edit quickwiki/config/deployment.ini_tmpl so that when users run paster make-config the configuration file that is produced for them will also use quickwiki.db. In the [app:main] section:
# Specify the database for SQLAlchemy to use. sqlalchemy.url = sqlite:///%(here)s/quickwiki.db
Note
Pylons uses the Mako templating engine by default, although as is the case with most aspects of Pylons, you are free to deviate from the default if you prefer.
In our project we will make use of the Mako inheritance feature. Add the main page template in templates/base.mako:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" ""> <html> <head> <title>QuickWiki</title> ${h.stylesheet_link('/quick.css')} </head> <body> <div class="content"> <h1 class="main">${self.header()}</h1> ${next.body()}\ <p class="footer"> Return to the ${h.link_to('FrontPage', url('FrontPage'))} | ${h.link_to('Edit ' + c.title, url('edit_page', title=c.title))} </p> </div> </body> </html>
We’ll setup all our other templates to inherit from this one: they will be automatically inserted into the ${next.body()} line. Thus the whole page will be returned when we call the render() global from our controller. This lets us easily apply a consistent theme to all our templates.
If you are interested in learning some of the features of Mako templates have a look at the comprehensive Mako Documentation. For now we just need to understand that next.body() is replaced with the child template and that anything within ${...} brackets is executed and replaced with the result. By default, the replacement content is HTML-escaped in order to meet modern standards of basic protection from accidentally making the app vulnerable to XSS exploit.
This base.mako also makes use of various helper functions attached to the h object. These are described in the WebHelpers documentation. We need to add some helpers to the h by importing them in the lib/helpers.py module (some are for later use):
"""Helper functions Consists of functions to typically be used within templates, but also available to Controllers. This module is available to templates as 'h'. """ from webhelpers.html import literal from webhelpers.html.tags import * from webhelpers.html.secure_form import secure_form
Note that the helpers module is available to templates as ‘h’, this is a good place to import or define directly any convenience functions that you want to make available to all templates.
Before we can add the actions we want to be able to route the requests to them correctly. Edit config/routing.py and adjust the ‘Custom Routes’ section to look like this:
# CUSTOM ROUTES HERE map.connect('home', '/', controller='pages', action='show', title='FrontPage') map.connect('pages', '/pages', controller='pages', action='index') map.connect('show_page', '/pages/show/{title}', controller='pages', action='show') map.connect('edit_page', '/pages/edit/{title}', controller='pages', action='edit') map.connect('save_page', '/pages/save/{title}', controller='pages', action='save', conditions=dict(method='POST')) map.connect('delete_page', '/pages/delete', controller='pages', action='delete') # A bonus example - the specified defaults allow visiting # example.com/FrontPage to view the page titled 'FrontPage': map.connect('/{title}', controller='pages', action='show') return map
Note that the default route has been replaced. This tells Pylons to route the root URL / to the show() method of the PageController class in controllers/pages.py and specify the title argument as 'FrontPage'. It also says that any URL of the form /SomePage should be routed to the same method but the title argument will contain the value of the first part of the URL, in this case SomePage. Any other URLs that can’t be matched by these maps are routed to the error controller as usual where they will result in a 404 error page being displayed.
One of the main benefits of using the Routes system is that you can also create URLs automatically, simply by specifying the routing arguments. For example if I want the URL for the page FrontPage I can create it with this code:
url(title='FrontPage')
Although the URL would be fairly simple to create manually, with complicated URLs this approach is much quicker. It also has the significant advantage that if you ever deploy your Pylons application at a URL other than /, all the URLs will be automatically adjusted for the new path without you needing to make any manual modifications. This flexibility is a real advantage.
Full information on the powerful things you can do to route requests to controllers and actions can be found in the Routes manual.
Quick Recap: We’ve setup the model, configured the application, added the routes and setup the base template in base.mako, now we need to write the application logic and we do this with controllers. In your project’s root directory, add a controller called pages to your project with this command:
$ paster controller pages
If you are using Subversion, this will automatically be detected and the new controller and tests will be automatically added to your subversion repository.
We are going to need the following actions:
show(self, title) displays a page based on the title
edit(self, title) displays a from for editing the page title
save(self, title) save the page title and show it with a saved message
index(self) lists all of the titles of the pages in the database
delete(self, title) deletes a page
Let’s get to work on the new controller in controllers/pages.py. First we’ll import the Page class from our model, and the Session class from the model.meta module. We’ll also import the wikiwords regular expression object, which we’ll use in the show() method. Add this line with the imports at the top of the file:
from quickwiki.model import Page, wikiwords from quickwiki.model.meta import Session
Next we’ll add the convenience method __before__() to the PagesController, which is a special method Pylons always calls before calling the actual action method. We’ll have __before__() obtain and make available the relevant query object from the database, ready to be queried. Our other action methods will need this query object, so we might as well create it one place.
class PagesController(BaseController): def __before__(self): self.page_q = Session.query(Page)
Now we can query the database using the query expression language provided by SQLAlchemy. Add the following show() method to PagesController:
def show(self, title): page = self.page_q.filter_by(title=title).first() if page: c.content = page.get_wiki_content() return render('/pages/show.mako') elif wikiwords.match(title): return render('/pages/new.mako') abort(404)
Add a template called templates/pages/show.mako that looks like this:
<%inherit\ <%def${c.title}</%def> ${h.literal(c.content)}
This template simply displays the page title and content.
Note
Pylons automatically assigns all the action parameters to the Pylons context object c so that you don’t have to assign them yourself. In this case, the value of title will be automatically assigned to c.title so that it can be used in the templates. We assign c.content manually in the controller.
We also need a template for pages that don’t already exist. The template needs to display a message and link to the edit() action so that they can be created. Add a template called templates/new.mako that looks like this:
<%inherit\ <%def${c.title}</%def> <p>This page doesn't exist yet. <a href="${url('edit_page', title=c.title)}">Create the page</a>. </p>
At this point we can test our QuickWiki to see how it looks. If you don’t already have a server running, start it now with:
$ paster serve --reload development.ini
We can spruce up the appearance of page a little by adding the stylesheet we linked to in the templates/base.mako file earlier. Add the file public/quick.css with the following content and refresh the page to reveal a better looking wiki:
body { background-color: #888; margin: 25px; } div.content { margin: 0; margin-bottom: 10px; background-color: #d3e0ea; border: 5px solid #333; padding: 5px 25px 25px 25px; } h1.main { width: 100%; } p.footer{ width: 100%; padding-top: 8px; border-top: 1px solid #000; } a { text-decoration: none; } a:hover { text-decoration: underline; }
When you run the example you will notice that the word QuickWiki has been turned into a hyperlink by the get_wiki_content() method we added to our Page domain object earlier. You can click the link and will see an example of the new page screen from the new.mako template. If you follow the Create the page link you will see the Pylons automatic error handler kick in to tell you Action edit is not implemented. Well, we better write it next, but before we do, have a play with the Interactive Debugging, try clicking on the + or >> arrows and you will be able to interactively debug your application. It is a tremendously useful tool.
To edit the wiki page we need to get the content from the database without changing it to HTML to display it in a simple form for editing. Add the edit() action:
def edit(self, title): page = self.page_q.filter_by(title=title).first() if page: c.content = page.content return render('/pages/edit.mako')
and then create the templates/edit.mako file:
<%inherit\ <%defEditing ${c.title}</%def> ${h.secure_form(url('save_page', title=c.title))} ${h.textarea(name='content', rows=7, cols=40, content=c.content)} <br /> ${h.submit(value='Save changes', name='commit')} ${h.end_form()}
Note
You may have noticed that we only set c.content if the page exists but that it is accessed in h.text_area() even for pages that don’t exist and yet it doesn’t raise an AttributeError.
We are making use of the fact that the c object returns an empty string "" for any attribute that is accessed which doesn’t exist. This can be a very useful feature of the c object, but can catch you on occasions where you don’t expect this behavior. It can be disabled by setting config['pylons.strict_c'] = True in your project’s config/environment.py.
We are making use of the h object to create our form and field objects. This saves a bit of manual HTML writing. The form submits to the save() action to save the new or updated content so let’s write that next.
The first thing the save() action has to do is to see if the page being saved already exists. If not it creates it with page = model.Page(title). Next it needs the updated content. In Pylons you can get request parameters from form submissions via GET and POST requests from the appropriately named request object. For form submissions from only GET or POST requests, use request.GET or request.POST. Only POST requests should generate side effects (like changing data), so the save action will only reference request.POST for the parameters.
Then add the save() action:
@authenticate_form def save(self, title): page = self.page_q.filter_by(title=title).first() if not page: page = Page(title) # In a real application, you should validate and sanitize # submitted data throughly! escape is a minimal example here. page.content = escape(request.POST.getone('content')) Session.add(page) Session.commit() flash('Successfully saved %s!' % title) redirect_to('show_page', title=title)
Note
request.POST is a MultiDict object: an ordered dictionary that may contain multiple values for each key. The MultiDict will always return one value for any existing key via the normal dict accessors request.POST[key] and request.POST.get(). When multiple values are expected, use the request.POST.getall() method to return all values in a list. request.POST.getone() ensures one value for key was sent, raising a KeyError when there are 0 or more than 1 values.
The @authenticate_form() decorator that appears immediately before the save() action checks the value of the hidden form field placed there by the secure_form() helper that we used in templates/edit.mako to create the form. The hidden form field carries an authorization token for prevention of certain Cross-site request forgery (CSRF) attacks.
Upon a successful save, we want to redirect back to the show() action and ‘flash’ a Successfully saved message at the top of the page. ‘Flashing’ a status message immediately after an action is a common requirement, and the WebHelpers package provides the webhelpers.pylonslib.Flash class that makes it easy. To utilize it, we’ll create a flash object at the bottom of our lib/helpers.py module:
from webhelpers.pylonslib import Flash as _Flash flash = _Flash()
And import it into our controllers/pages.py. Our new show() method is escaping the content via Python’s cgi.escape() function, so we need to import that too, and also @authenticate_form().
from cgi import escape from pylons.decorators.secure import authenticate_form from quickwiki.lib.helpers import flash
And finally utilize the flash object in our templates/base.mako template:
<"> Return to the ${h.link_to('FrontPage', url('FrontPage'))} | ${h.link_to('Edit ' + c.title, url('edit_page', title=c.title))} </p> </div> </body> </html>
And add the following to the public/quick.css file:
div#flash .message { color: orangered; }
The % syntax is used for control structures in mako – conditionals and loops. You must ‘close’ them with an ‘end’ tag as shown here. At this point we have a fully functioning wiki that lets you create and edit pages and can be installed and deployed by an end user with just a few simple commands.
Visit and have a play.
It would be nice to get a title list and to be able to delete pages, so that’s what we’ll do next!
Add the index() action:
def index(self): c.titles = [page.title for page in self.page_q.all()] return render('/pages/index.mako')
The index() action simply gets all the pages from the database. Create the templates/index.mako file to display the list:
<%inherit\ <%defTitle List</%def> ${h.secure_form(url('delete_page'))} <ul id="titles"> % for title in c.titles: <li> ${h.link_to(title, url('show_page', title=title))} - ${h.checkbox('title', title)} </li> % endfor </ul> ${h.submit('delete', 'Delete')} ${h.end_form()}
This displays a form listing a link to all pages along with a checkbox. When submitted, the selected titles will be sent to a delete() action we’ll create in the next step.
We need to edit templates/base.mako to add a link to the title list in the footer, but while we’re at it, let’s introduce a Mako function to make the footer a little smarter. Edit base.mako like this:
<"> ${self.footer(request.environ['pylons.routes_dict']['action'])}\ </p> </div> </body> </html> ## Don't show links that are redundant for particular pages <%def\ Return to the ${h.link_to('FrontPage', url('home'))} % if action == "index": <% return %> % endif % if action != 'edit': | ${h.link_to('Edit ' + c.title, url('edit_page', title=c.title))} % endif | ${h.link_to('Title List', url('pages'))} </%def>
The <%def creates a Mako function for display logic. As you can see, the function builds the HTML for the footer, but doesn’t display the ‘Edit’ link when you’re on the ‘Title List’ page or already on an edit page. It also won’t show a ‘Title List’ link when you’re already on that page. The <% ... %> tags shown on the return statement are the final new piece of Mako syntax: they’re used much like the ${...} tags, but for arbitrary Python code that does not directly render HTML. Also, the double hash (##) denotes a single-line comment in Mako.
So the footer() function is called in place of our old ‘static’ footer markup. We pass it a value from pylons.routes_dict which holds the name of the action for the current request. The trailing \ character just tells Mako not to render an extra newline.
If you visit you should see the full titles list and you should be able to visit each page.
We need to add a delete() action that deletes pages submitted from templates/index.mako, then returns us back to the list of titles (excluding those that were deleted):
@authenticate_form def delete(self): titles = request.POST.getall('title') pages = self.page_q.filter(Page.title.in_(titles)) for page in pages: Session.delete(page) Session.commit() # flash only after a successful commit for title in titles: flash('Deleted %s.' % title) redirect_to('pages')
Again we use the @authenticate_form() decorator along with secure_form() used in templates/index.mako. We’re expecting potentially multiple titles, so we use request.POST.getall() to return a list of titles. The titles are used to identify and load the Page objects, which are then deleted.
We use the SQL IN operator to match multiple titles in one query. We can do this via the more flexible filter() method which can accept an in_() clause created via the title column’s attribute.
The filter_by() method we used in previous methods is a shortcut for the most typical filtering clauses. For example, the show() method’s:
self.page_q.filter_by(title=title)
is equivalent to:
self.page_q.filter(Page.title == title)
After deleting the pages, the changes are committed, and only after successfully committing do we flash deletion messages. That way if there was a problem with the commit no flash messages are shown. Finally we redirect back to the index page, which re-renders the list of remaining titles.
Visit and have a go at deleting some pages. You may need to go back to the FrontPage and create some more if you get carried away!
That’s it! A working, production-ready wiki in 20 mins. You can visit once more to admire your work.
After all that hard work it would be good to distribute the finished package wouldn’t it? Luckily this is really easy in Pylons too. In the project root directory run this command:
$ python setup.py bdist_egg
This will create an egg file in the dist directory which contains everything anyone needs to run your program. They can install it with:
$ easy_install QuickWiki-0.1.6-py2.5.egg
You should probably make eggs for each version of Python your users might require by running the above commands with both Python 2.4 and 2.5 to create both versions of the eggs.
If you want to register your project with PyPi at you can run the command below. Please only do this with your own projects though because QuickWiki has already been registered!
$ python setup.py register
Warning
The PyPi authentication is very weak and passwords are transmitted in plain text. Don’t use any sign in details that you use for important applications as they could be easily intercepted.
You will be asked a number of questions and then the information you entered in setup.py will be used as a basis for the page that is created.
Now visit to see the new index with your new package listed.
Note
A CheeseShop Tutorial has been written and full documentation on setup.py is available from the Python website. You can even use reStructuredText in the description and long_description areas of setup.py to add formatting to the pages produced on PyPi (PyPi used to be called “the CheeseShop”). There is also another tutorial here.
Finally you can sign in to PyPi with the account details you used when you registered your application and upload the eggs you’ve created. If that seems too difficult you can even use this command which should be run for each version of Python supported to upload the eggs for you:
$ python setup.py bdist_egg upload
Before this will work you will need to create a .pypirc file in your home directory containing your username and password so that the upload command knows who to sign in as. It should look similar to this:
[server-login] username: james password: password
Note
This works on windows too but you will need to set your HOME environment variable first. If your home directory is C:Documents and SettingsJames you would put your .pypirc file in that directory and set your HOME environment variable with this command:
> SET HOME=C:\Documents and Settings\James
You can now use the python setup.py bdist_egg upload as normal.
Now that the application is on PyPi anyone can install it with the easy_install command exactly as we did right at the very start of this tutorial.
A final word about security.
Warning
Always set debug = false in configuration files for production sites and make sure your users do too.
You should NEVER run a production site accessible to the public with debug mode on. If there was a problem with your application and an interactive error page was shown, the visitor would be able to run any Python commands they liked in the same way you can when you are debugging. This would obviously allow them to do all sorts of malicious things so it is very important you turn off interactive debugging for production sites by setting debug = false in configuration files and also that you make users of your software do the same.
We’ve gone through the whole cycle of creating and distributing a Pylons application looking at setup and configuration, routing, models, controllers and templates. Hopefully you have an idea of how powerful Pylons is and, once you get used to the concepts introduced in this tutorial, how easy it is to create sophisticated, distributable applications with Pylons.
That’s it, I hope you found the tutorial useful. You are encouraged to email any comments to the Pylons mailing list where they will be welcomed.
A big thanks to Ches Martin for updating this document and the QuickWiki project for Pylons 0.9.6 / Pylons 0.9.7 / QuickWiki 0.1.5 / QuickWiki 0.1.6, Graham Higgins, and others in the Pylons community who contributed bug fixes and suggestions. | http://docs.pylonsproject.org/projects/pylons-webframework/en/latest/tutorials/quickwiki_tutorial.html | CC-MAIN-2014-35 | refinedweb | 6,058 | 58.08 |
DNASeq Pipeline
The Databricks DNASeq pipeline is a GATK best practices compliant pipeline for short read alignment, variant calling, and variant annotation.
Beta
The Databricks DNASeq pipeline requires Databricks Runtime HLS, which is in Beta. Interfaces and pricing are subject to change before general availability.
We recommend running the DNASeq pipeline as a Databricks job. When run interactively, you are charged per DBU as well as per giga base pair.
Setup
The pipeline is run as a Databricks job. Most likely, a Databricks solutions architect will work with you to set up the initial job. The necessary details are:
- The cluster configuration should use Databricks Runtime HLS.
- The task should be the DNASeq notebook found at the bottom of this page.
- For best performance, use compute optimized instances with at least 60GB of memory. We recommend
c5.9xlarge.
- To reduce costs, use all spot workers with the
Spot fall back to On-demandoption selected.
Parameters
The pipeline accepts parameters that control its behavior. The most important and commonly changed parameters are documented here; the rest can be found in the DNASeq notebook. instead, replace
grch37 with
grch38.
To use a reference build other than GRCh37 or GRCh38, follow these steps:
Prepare the reference for use with BWA.
Copy the fasta and index files to the driver node of the cluster (using
%fs cpor
aws s3 cp).
Build a bwa-jni image:
import org.broadinstitute.hellbender.utils.bwa._ BwaMemIndex.createIndexImageFromIndexFiles(fastaPath, imagePath)
Save the index image to
s3://<refGenome_path>/<refGenomeName>.fa.img.
Note
Use a cluster running Databricks Runtime HLS. The image build process will run on the driver.
Create an init script that copies the index image from cloud storage to
/mnt/dbnucleus/dbgenomics/<refGenomeId>/data/, that will enable all nodes on your cluster to access the reference.
dbutils.fs.put(s"s3://<init_path>/init.sh", raw""" #!/bin/bash pip install awscli aws s3 sync s3://<refGenome_path>/ /mnt/dbnucleus/dbgenomics/refGenome/data/ --exclude "*" --include "refGenomeName*" """, true)
Configure your cluster to use the init script.
Set the
refGenomeNameand
refGenomePathparameters in the DNASeq notebook.
Manifest format
The manifest is a CSV file describing where to find the input FASTQ or BAM files. An example:
file_path,sample_id,paired_end,read_group_id *_R1_*.fastq.bgz,HG001,1,read_group *_R2_*.fastq.bgz,HG001,2,read_group
If your input consists of unaligned BAM files, you should omit the
paired_end field:
file_path,sample_id,paired_end,read_group_id *.bam,HG001,,read_group
Tip
The
file_path field in each row may be an absolute path or a path relative to the manifest. You can include globs
(*) to match many files.
Supported input formats
- SAM
- BAM
- CRAM
- Parquet
- FASTQ
- bgzip
*.fastq.bgz(recommended) bgzipped files with the
*.fastq.gzextension are recognized as
bgz.
- uncompressed
*.fastq
- gzip
*.fastq.gz
Important
Gzipped files are not splittable. Choose autoscaling clusters to minimize cost for these files.
To block compress a FASTQ, install htslib, which includes the bgzip executable.
- locally:
gunzip -c <my_file>.gz | bgzip -c | aws s3 cp - s3://<my_s3_file_path>.bgz
- from s3:
aws s3 cp s3://<my_s3_file_path>.gz - | gunzip -c | bgzip -c | aws s3 cp - s3://<my_s3_file_path>.bgz
Output
The aligned reads, called variants, and annotated variants are all written out to Parquet tables inside the provided output directory. Each table is partitioned by sample ID. In addition, if you configured the pipeline to export VCFs or GVCFs, they’ll appear under the output directory as well.
output |---alignments |---sampleId=HG001 |---Parquet files |---sampleId=HG002 |---annotations |---sampleId=HG001 |---Parquet files |---annotations.vcf |---sampleId=HG001 |---HG001.vcf |---genotypes |---sampleId=HG001 |---Parquet files |---genotypes.vcf |---sampleId=HG001 |---HG001.g.vcf
When you run the pipeline on a new sample, it’ll appear as a new partition. If you run the pipeline for a sample that already appears in the output directory, that partition will be overwritten.
Since all the information is available in Parquet, you can easily analyze it with Spark in SQL, Scala, Python, or R. For example:
# Load the data df = spark.read.parquet("/genomics/output_dir/genotypes") # Show all variants from chromosome 12 display(df.where("contigName == '12'").orderBy("sampleId", "start"))
-- Register the table in the catalog CREATE TABLE genotypes USING PARQUET LOCATION '/genomics/output_dir/genotypes'
Running programmatically
In addition to using the UI, you can start runs of the pipeline programmatically using the Databricks CLI.
After setting up the pipeline job in the UI, copy the job ID as you pass it to the
jobs run-now CLI command.
Here’s an example bash script that you can adapt for your workflow:
# Generate a manifest file cat <<HERE >manifest.csv file_path,sample_id,paired_end,read_group_id dbfs:/genomics/my_new_sample/*_R1_*.fastq.bgz,my_new_sample,1,read_group dbfs:/genomics/my_new_sample/*_R2_*.fastq.bgz,my_new_sample,2,read_group HERE # Upload the file to DBFS DBFS_PATH=dbfs:/genomics/manifests/$(date +"%Y-%m-%dT%H-%M-%S")-manifest.csv databricks fs cp index.rst $DBFS_PATH # Kick off a new run databricks jobs run-now --job-id <job-id> --notebook-params "{\"manifest\": \"$DBFS_PATH\"}"
In addition to starting runs from the command line, you can use this pattern to invoke the pipeline from automated systems like Jenkins. | https://docs.databricks.com/applications/genomics/dnaseq-pipeline.html | CC-MAIN-2019-22 | refinedweb | 842 | 50.43 |
: May 20,126 Related Items Preceded by: Gainesville daily sun (Gainesville, Fla. : 1954) Full Text 1 >- . .. - . 1 'I i . 1 What's That Again Fair 4 - i I (Details Page 2) .j t i Mayor Burns? flfl5fl4jJ7 0 f JACKSONVILLE (AP) Haydon Burns Tuesday answered NEWSSTAND PRICE lOc that a charge he had by Jacksonville his gubernatorial policemen opponent traveling Robert with King him. High ONE WEEK DAILY AND SUNDAY 88th Year; No. 273 GAINESVILLE, FLORIDA, WEDNESDAY, MAY 20, 1964 I} HOX12 DELIVERED 45o A He said only his wife, two advisers, and two pilots, "noneof ---- --- whom has ever been associated with the city of Jacksonville I .1 1 in any manner" travel with him. , He called the charge "just another of High's ridiculous, unfounded G'ville expressions of desperation." Wallace Calls Vote I -AA- -A- Took ItCalmly NAPLES (AP) A political demonstration in behalf of gubernatorial - candidate Haydon Burns was broken up Tuesday by Naples police, who arrested a Jacksonville police officer anda Fenway city building L. Cooey inspector., 41, the policeman, and William Henry Ful- Blow to Bill ler 46, a Jacksonville city building inspector, were charged Rights with operating a sound truck without a permit. Mrs. High Here Cooey and Fuller, who said they were on vacation, were given summons to appear in court and were released after 'Meeting People'By police chief S. B. Caruthers phoned Jacksonville Police Chief _. - - --- - Luther Reynolds to check their identification. JIM McGUIRKSun ; Caruthers said he stopped a 12-car Burns motorcade, of Staff Writer But Md which the sound truck was a part after residents complained. ' Citizens didn't exactly turn Cuba Alerts \ out with tears in their eyes MilitaryMIAMI when the Faith High bandwagon Goes ToBJohnson _._.u .... rolled through town yester- : "" ' ,1. :; dayBut Fla. (AP-Cuba) ob- plan to carry guerrilla war- neither did anyone throw served the 62nd anniversary of No Word fare, sabotage and subversionto rocks.In its independence from Spain today their homeland soon. fact, most just stared, expressionless amid reports of sabotageand broadcast A shortwave Of Manuel pur- as the wife of threats of armed action Raydead r. : porting to originate inside Cuba :Miami Mayor Robert King High against the Communist dictator- said this morning that comman- )- At rode through the streets and ship of Fidel Castro. dos of the anti-Castro Student Sen. Daniel B. Brewster, run- a of Gainesville This was the day on which 1 : shopping centers not unusual for circuits Directorate, still another exile ning as a stand-in for President !' asking for the votes her hus- Manuel Ray, Castro's first min- between Cuba and the United group, had burned hundreds of Johnson, defeated Alabama Gov. band have become Gov- ister of public works, promisedto must to States. acres of sugar cane in eastern George C. Wallace In a Mary- ernor of Florida. be fighting in Cuba againsthis land presidential primary cloud- Cuba. former The Miami exile colony was rs > tara Traveling by car with a small chief. ed by a close vote and a murky From Havana, The Associ- excited over the possibility that The broadcast, monitored in campaign team of mostly wom- legal question.In . t ,1L ated Press reported that Cuban Ray, or one of two other Miami, also reported that saboteurs <: armed forces were placed on a groups, would make a raid on had burned three taxicabsin a Democratic race pinnedon i I i nn state of alert and all military Castro's island during the day. Havana and that anti-Castro his opposition to the civil 14 ea' 'a tea.i en, Mrs. High linked up about leaves were canceled. Headquarters of the three slogans had been painted on rights bill pending in the Sen- \ i .i> 5 p.m. with a motorcade of Then the telephone line went groups said only that they still walls in Cuba's capital city. , the --- -- - i about 13 vehicles on city'soutskirts. Wallace made his point. See 3. \ Ht ts r- r= Then she climbed aboard her page U.S. Uncovers Secret MikesIn s " newt "' "bandwagon, a canopied truck "ri festooned with campaign post- ate, Wallace drew 212,068 votes Tuesday, 42.66 cent of the per ers, and paraded through town : first to the courthouse, then to Walls of Moscow EmbassyWASHINGTON party total.It . the shopping centers.As was better than his showing x a public address system in Indiana-29.8 per cent-or I blared campaign songs and jingles (AP) U.S. and other Eastern European out of the eighth, ninth and 10th Wisconsin-33.7-and he claimed s Mrs. High and a fivewoman security agents have dug more capitals. floors of the Moscow-embassy. vindication in the Maryland vote 1U team lined the sides of the than 40 secret microphones out They said any information It is on these floors that Kohler of his stand against the rights truck, clapped their hands and of the walls of the American losses which may have occurred and his principal aides have bill originated by John F. Ken- sang campaign ditties. Embassy building in Moscow through the microphone network their offices. Kohler's is on the nedy and pushed by Johnson. J The women smiled and wavedat during the past month and are were probably limited by "the ninth floor.Officials. Brewster, 41, a former Marine pedestrians and drivers, searching for others which may measures taken for protection said the Moscow em- elected to the Senate only two many of whom seemed grimly still be hidden in the building. against such a possibility." bassy has been checked 'repeat years ago, was elated by his effort intent on ignoring the whole Officials are investigating to This apparently referred to edly for hidden microphones to preserve Maryland's 48 procession.At determine if any important secret the fact that all employes of during the last 11 years. Re- national nominating convention the courthouse and againat information was obtainedby embassies in Communist coun- cently it was ,decided to makea votes for Johnson.He . a shopping center, Mrs. High the Soviets through the mi- tries are warned frequently that more exhaustive investigation had been tapped by the Mrs. Robert King High wife of the governor candidate followed the same general for- crophone network. their offices and residences may using demolition tech- party organization-with John- mingled with her husband's supporters during a mat. She briefly.greeted the on- Ambassador Foy D. Kohler be bugged and are cautioned' niques-in other words, tearingup son's blessing-to take on Wal- I brief tour of Gainesville yesterday. (Sun Photo by Eddie lookers, thanked them for com- has made a formal protest to' against discussing secret information some of the walls. Official lace in a border state with a Davis) (See HIGH on Page 2)) the Soviet government over the where it might be information did not make it recent history of racial strife I listening devices. picked up. clear why this decision was marked by repeated outbreaks The story of the hidden microphones The microphones were dug reached at this time. of violence in Cambridge. _. was disclosed by the ' Governor Rivals Covering : .7 State Department Tuesday. A Brewster wound up with statement by the department's 264,613 votes, 53.23 per cent of Recreation Dream.Project' security chief, G. Marvin Gen- the total. The remaining 4 per tile, said indications are the devices cent were cast by voters preferring - n Florida North to South were "placed in the build- Andrew J. Easter, a Bal- timore draftsman, or an unin- J ing prior to its occupancy by the United States" 11 years ago. DetailedA structed delegation to the national - By THE ASSOCIATED PRESS that some persons, through ida," Burns mentioned his news- The building was assigned to convention."We . :Mayor Haydon Burns of Jacksonville friends in high places who con- paper endorsements. the United States by the Soviet made the fight and we wooed voters in west trol the press, will try to blocka Before leaving Miami, High government for use as an em- $4 million dream projectto loosa Lake, locating campingsites won and I'm glad," said Brew Florida today while :Mayor Rob- candidate for public office. gave newsmen figures which he bassy in 1952 and was occupied convert nearly 15,000 acres on the east and west ster.He ert King High of Miami invaded "It seems there is some sinis- said put Miami in a better busi- in the spring of 1953. of Paynes Prairie into a giant ends of the prairie and possible aimed this parting shot at Key West in their torrid runoff ter force in the area of influ- ness light than Jacksonville in Officials said that not countingthe recreation lake was outlined at land purchases surrounding the Wallace: "In baseball, anyway, primary campaign for gover- ence of news that seems to recent years. newly found network, since a hearing before the directorof prairie to tie in with future it's three strikes and you'reout. move 'ahead of anyone who High said he understands 1949 more than 130 listening devices the Florida Outdoor Recrea- expansion plans. ." nor.Burns scheduled stops at Pan- goes ..contrary to their philosophies about 1.5 million copies of an of various types were discovered tion Council here today. Bill Mitchell, speaking for Wallace didn't see it that way. ama City and Pensacola. High ," Burns said. eight-page color supplement for and removed from U.s. County Commissioner Edgar the Chamber's water resources "This Maryland vote," he Johnson, who has spearheadedthe committee, described the said, "should let them know in from Embassy buildings in Moscow pro- to proceed Key planned Later, in a televised "reportto Burns will be inserted in news- project, presented the com- ject's"construction and Washington and in both national hydrology West to Fort Myers, Orlando, the people of northeast Flor- (See GOV. on Page 2)) Winter Park and Daytona prehensive plan for the Alach- problems.He parties that they can't get rid Beach.In Builder Hits ua County Commission to Ney said the construction, of us by calling us bad names." Landrum, director of the state which includes raising U. S. The governor hinted of a pos- a prepared talk in Key Reds Make New recreation council. 441 a few feet, will cost an es- sible technical challenge of the West said legislation with High Inaction timated $1 million. results because of teeth is needed to control the City Nearly 50 persons, most of Maryland'sold them representing groups in The primary cost of the proj- unit vote system. Similar to lobbyists who flock to Tallahassee the area that have endorsed the ect is the estimated $2.9 mil the Electoral College vote in for legislative sessions every Advances in LaosVIENTIANE On Housing project, attended the morning lion to buy the 14,600 acres of presidential elections, it makesit two years. hearing at the Gainesville land, Mitchell explained.The possible for a candidate to He said that if he is elected City officials were accused of Chamber of Commerce building.Sen. chamber official said win a primary even though he governor he will work for more Laos. (AP) western edge of the Plaine des taking a "hands off" policy J. Emory (Red) Cross benefits from the project include trails in the popular vote.A . rigid controls of lobbying.He The last positions held by neu- Jarres, was'Kong Le's original toward the proposed City and Rep. Ralph Turlington also recreational improvements that U.S. District Court in Bal said he would "press for des heaqquarters site which the Housing Code yesterday by sat in on the hearing. will increase tourist trade, en- timore has nullified the unit legislation which would require tralist forces in the Plaine Communists took Monday afteran Gainesville builder Clark But- Johnson said the $3.9 million hanced land values and temper- vote system in Maryland pri- that lobbyist state his Jarres region have fallen to the ler. ature regulation for citrus and a offensive over the weekend. project has seven phasesacquisition : maries for statewide office. It name, who he represents, how Communists, Premier Souvanna "Apparently everybody is of the prairie, buying sufficient other agricultural areas. has set a hearing for Mondayon much he is paid and in detailed Phouma announced today. taking a hands off policy be- access areas to the Organizations at the hearing a suit to apply the ban to fashion what he does for the Neutralist Gen. Kong Le aban- Alachua Co. cause they're afraid of elec- prairie for public use, buyinga supporting the lake project included the presidential primary also. money." doned his emergency command tion time," Butler told mem- half-mile strip of land from The Alachua County Brewster led in enough coun- Tuesday night High bid for post and withdrew farther south- Vote Called bers of the Bi-Racial Committee. Newnans Lake to Paynes Prai- Audubon Society, Alachua Coun- ties and Baltimore city districts some of the 27,000 Polk County west in the face of continuing rie, getting access land along ty Water and Conservation ot get a 92-79 margin in unit votes that went to that area'sfavorite. Communist pressure, a spokesman Commissioner Ed Turlington, Cross Creek for improvements Board, Gainesville Garden votes.,But his popular vote edge Scott Kelly, in the first for Souvanna said. a member of the committee, denied between Orange Lake and Loch- (See PRAIRIE on Page 2) (See PRIMARY on Page 2)BiRacial ) primary.At 'Proper9TALLAHASSEE the charge. a barbecue near Lakeland, U.S Secretary of State Dean "Maybe the commission did The :Miami mayor referred to Rsk: urgently recalled AdlaiE. (APJul- at one time but I don't feel we Burns as "Hiding" Burnsa Stevenson, the chief U.S. del- ius Parker, attorney for Rep. worry too much about it (beingan Group Proposes on Burns's first name and egate to the United Nations, Earl Faircloth of Dade County, election issue)," Turilngton play from because of asked Leon County Circuit explained. a Eropean trip JacksonvilleMayor's inspired refusal by the to further face- the deepening crisis in Southeast Court today to toss out Atty. Butler said he felt many of Talks Recreation Issuetion before the runoff.In Asia.A Gen. James Kynes' suit chal- the local builders and realtors on debate to-face leging Faircloth's first pri had .been talked into objecting."It . one speech in Jacksonville government statement said mary. is not nearly the issue S Tuesday night, Burns said that "following massive attacks, pre- people have tried to describeas By JEAN CARVER acceptable to the commu the press appears to be under pared well in advance launchedby Kynes challenged the May 5 a police-type program," But- Sun Staff Writer .. "Felt something was nity." the influence of "some sinister the Lao-Viet Pathet Lao vote on grounds charging more ler said. A brief statement from the wrong," says Acosta. See The city manager said this and North Vietnamese troops than 4,000 Alachua County citizens Bi-Racial Committee 2."We're. force. Butler noted that he has extra yesterday Page morning he had, already arranged - "In a second speech he said he against our neutralist positions had been registered improperly interest in the code becausehe recommended that City Man- a meeting in his office was proud of the endorsementof in the Plaine des Jarres and as voters. has proposed a special hous- ager Bill Green and Recrea- Thursday afternoon with mem- his candidacy for governor Muong Phanh, the.last neutralist Parker told the Associated ing project to the FHA that requires tion Director Ray Massey meet not in any position to bers of the advisory committeeand I by 46 Florida newspapers. positions existing on the pla- Press he based his request for a city housing code and with the Negro Community Cen- pass judgment on the Acosta Massey. Burns was the guest of a $25- tea"of Xieng Khouang have fal dismissing; ; Kynes' suit upon a workable program.Butler ter advisory committee.The business. We know the impres- Mills chairman of ; dinner given by members len. and a representativefrom committee suggestedthat Eugene a-plate letter from the attorney gener- sions the Negro community has \ of Jacksonville's Jewish Muong Phanh, perched on the al's office to Alachua County in Lincoln Estates met with they' "discuss the problems of the man. Our community the advisory committee, al so community. He was introducedby which the Alachua County reg- the Bi-Racial Committee yester- of recreation." generally thought he was doinga said this morning that Acosta'sfiring to Martin Sachs, his longtime istration was described as proper. day to discuss housing and related Although no reference was good job," Cosby explained. seem "rather hasty" personal attorney, who said: building trade activities made to last week's firing of the group. "The rumor has been spread WHERETOFINIJIT relating to Negroes. Harold Acosta, the Negro su- Committee member Thomas He'said that the advisory through the state that Haydonis Last month, the Alachua Salaries and job opportunities pervisor of the Community Cen- Coward said the group didn't committee was normally con- not a friend of ours. This is a County grand jury listed more were discussed and members ter, two members of the BiRacial want to comment on the Acos- sulted about hiring and firingat lieBurns than 4,000 registerations as irregular of the committee agreedto Committee issued personal ta firing until all the facts are the Community Center and dirty -said "I have never been 'Comics . . 22 and called upon Super- discuss similar topics with statements on the subject.Dr. in. was not aware of any com- more'deeply'hurt than I was by Classified . 23-25. visor of Registration Alma union officials. E. A. Cosby, pro tern "Our impression is that the plaints about Acosta's work. Bethea to correct them Following the discussion the editorial carried in a Miami 0 Entertainment . 23 by chairman of the Bi Racial recommended meeting of the Mills said petitions are being an Obituaries . 2 Sept. L meeting was closed to the pub- citi- Beach newspaper. To be de lic and Committee at yesterday'smeeting advisory committee will be circulated among Negro scribed "anti-semitic was the Opinion Page . 6 The irregularities included could review press so"delicate the committee mat that discussed Acosta's dismissal soon, within hours," Co ward zens protesting the advisory deepest cut I have ever'known," Sports . . 15.16Women's ; registration on Sunday and ters," including the,recent clos- behind closed doors, said. "We hope we can thrash committee's not being consulted . . 5 i j besaid.said improperly attested registra- ing of the two city recreation made a short statement to The out the rumors and boil down about Acosta and the dis i it was regrettable tions. centers on weekends. Sun after the meeting. the facts and arrive at a solu- missal.'I . 3 Ji "I J 4 Ji .., .. , . ,, ,_ it 'c# -" -- --- - I .... ....---- ;:.-;iMcNarnara_-_::- --;-- - ., .. .: ,- J r-- - I ] . -.. c...._ ...;. .: : ..' ; .. I Weather Roundup More AboutPrimary 'Felt SomethingWrong9 Cloture Vote ' I Faces PredictedFor , A . .\ From Page 1 : Acosta ; Viet Nam Quiz ''.con''''IIA B / \ \ o Senateb f e..vu.\ in Baltimore County, which has I ,., 14 unit i "I could sense something was ordinarily have been doing I WASHINGTON (AP-Senate ; c. votes, was only 106 out WASHINGTON (AP-Secre- a statement for a closed session ZONES *L\ .c \\.\ of 93,000 cast.A wrong in the air." something to keep them from Republicans meet behind closed 1 I tary of Defense Robert S. Me- of the House Armed Services reversal of the unofficialvote i Fired Negro Community Center -acts of delinquency," Acosta consider amend- B D Fair through doors today to ! Namara said today that American Committee. A of the I in recreation supervisor Harold . copy that county when the of- said.He Thursday. Low tonight low ments to the provision of the k Acosta told the Sun yester- said he did not feel the soldiers in South Viet Nam t statement was released by the i 85 to 90. ficial count is taken in about a civil bill that has evoked f\\ 60s high Thursday 'a "are receiving the best equipment committee as McNamara be- '4.,' 5 1w.eaa week could day he felt his dismissal was closing was wise and eated a rights change the unit vote Variable 5 to 12 mile winds. I the most GOP criticismequal 'j unjustified. He noted that he lot of friction, especially among l' ] available for the unique gan to testify. I picture, but Atty. Gen. ThomasB. I task at hand." Members of the committee' S Finan has said this would be had no idea that city officialswere Negroes."It employment opportunity. , With this statement, McNa- were expected to question him' A Clear to partly cloudy through meaningless.They not pleased with his work. hurt us more than them. After a session Tuesday on Thursday, isolated thunder showers "But I was puzzled even when They have more places to mara sought to refute charges closely. this evening not much temperature NwM1r\ can't change the rulesin go the 10 other titles of the bill, Re- that the of obsolescent change. Low tonight in 60s, high I[ asked them and they said than we do. It took away everything - use The chairman, Rep. Carl Vin- Thursday U to 92. the middle of the game," blican leader Everett M. Dirk- satisfied with that had. planes in South Viet Nam son, D-Ga., said in an opening C Fair through Thursday. Low Wallace insisted. An aide said they were my we said he is confident some sen tonight about 60, high Thursday 92. \ work, Acosta said. "I could The fired recreation H supervisor - caused the death of two American statement, also released by the Variable 5 to 12 mile winds.E the Baltimore County canvass senators have been swayed to sense something was in said he felt the action wrong city's fliers F G Partly cloudy few iso- committee, that "I want every lated showers through Thursday. Low would be closely observed.The the air." that suspended the weekend activities the side of cloture."I 1 McNamara gave his views in member to feel free to developany tonight, In 60s high Thursday 85 to WIMbJTa Brewster-Wallace race 90. Variable S to, 15 mile winds.H He said that although he felt at the centers "for fur- thought he with to pulled record 54 .believe we have satisfied a may express I Partly cloudy scattered a per cent of f the dismissal ther was unjustified; study" showers through Thursday. Low tonight was running away [More About or ask any question that' in 60s. High Thursday 85 to 90. eligible Democrats to the polls.In until he is provided a. list of from a problem rather than good many pople on a good f I " he thinks is pertinent to this Variable 5 to 15 mile winds.J other balloting: many things, he said. I K Partly cloudy scattered charges against him with ample solving it. , inquiry. said'that night showers 70 to through 75, high Thursday.Thursday Low around to- GAINESVILLE WEATHER -Republicans voted overwhelmingly -time for study before a hearingby "We shouldn't run away from Sen. Hubert H. Humphrey of I Gov. Vinson he had '5. Easterly 8 to 15 mile winds.CEDAR readingsfor to send an uninstructed " ; a a Municipal Airport the city manager, he did our problems, Acosta said. Minnesota, the assistant Demo- asked McNamara to answer the 24 hours to 8 a.m. to- delegation to their national convention not want to discuss the firing. He said he felt that the rec- cratic leader, made the same e ,points raised in various news KEY TIDES day: High 88 at 2-3 p.m., low rebuffing two individual He said he couldn't say that reation program developed at at 19:43<< claim his side after From 1 Thursday High I.m. and on a party Page reports about the deaths of the 11:14 p.m. Low at 4.29 ajn. and 5:16 56 at 6 a.m. No rain. candidates, one of them a backer the city resolution closing the the Community Center since he of pilots who were flying T-28 p.m. of Arizona Sen. Gold- conference on the package Barry Community Center and Recrea- took over in late 1962 had improved - ;t! papers throughout t the state Sun propeller-driven planes jn South Sunset today .ALMANAC.... ....... .. 7:18 TEMPERATURES High ELSEWHERE Low Preclp. water.Sen. tion Center on Friday and Saturday participation by Negro amendments worked out by Senate - > .1. p.m. leaders with Gen. Rob- j day. "In this brochure, High Viet. Nam. .Sunrise tomorrow .......... 5:33 a.m. Jacksonville 82 88 73 61 .36 J. Glenn Beall won Re- nights were directly in- youngsters. Atty. said, "much is made of Mr.Burns' The secretary was also in for Moonset tomorrow ........ 3:02 am. Miami 88 69 publican nomination to a third ert F. Kennedy. j Tampa volved in his dismissal."It . Full Moon :::._:.:,,.....".., May 26 Atlanta 85 63 "There's still a lot that can be record in Jacksonville. I questioning about over-all development -PROMINET STARS New Orleans 88 60 term, setting up a Novemberrace might have had some done or is on the road to being Dirksen told newsmen, how- i think a true comparison will be of the U.S.-backed Arcturus.The Twins high, set overhead....<.....,... 11:04 10-48 p.m.pm. New Boston York 89 83 61 70 .11 between him and Demo- bearing on it," he admitted. done," he noted. "We're mak- ever, he does not think the of concern to the people to determine fight against communist VISIBLE PLANETS 90 70 crat D. Tydings. A guer- Venus sets ................ 9.48 p.m. Washington Chicago 8. 45 Joseph per- Commenting on his personal ing progress when we can keep Southern filibuster can be shut I how they are going to rillas. Saturn rises .............. 1:46 am. Kansas City 90 68 sonal friend of the late presi- views about the suspension of one person off the street. off before early June. vote." McNamara recalled the con- Denver 82 52 dent, Tydings resigned as U.S. MARINE FORECAST Ft. Worth 86. 59 teenage: weekend activities at He said he could not help The Miami mayor said Jack- tribution of Kociuszko Van Steu- EAST GULF: Variable winds 5 to Los Angeles 73 SO 53 attorney to run against State both centers, the 32 year-old feeling he had been treated un The title against job discrimination - | sonville's indebtedness both ben and Pulaski to the fledg- 15 knots through Thursday. Fair.Five Seattle 70 Comptroller Louis L. Goldstein, Bethune Cookman College grad- fairly. takes up about half of the ; general revenue bonds and rev- ling United States and said "the who was backed by the party uate said he felt the closing did "No one can ever make me bill's 55-page text and has 1 i enue certificates is $131 milI mission of our men in South ay Forecast I organization dominated by Gov.J. more harm than good. believe I have done wrong be- aroused much opposition among \ ]lion while Miami's is less than Viet Nam is the same as the Millard Tawes. "A number of teenagers were cause I acted in the faith of Republicans. $76 million. Burns has been saying mission of those Europeans who Temperatures will average one-half inch of rainfall, exceptfor -AU congressional incumbents -put out in 'the street who could the people," he said. ] Jacksonville has a bonded came to assist us in our fight near the seasonal normal during locally heavier amounts in seeking renominationwon. Dirksen, chief author of the debt of less than $7 million but for liberty." the five-day period ending south portion. package of amendments, devot- the extreme High said this omits revenue "Let me be clear," McNa- Monday. The normal high In the Democratic presidential CORE ed many of his proposed f t f certificates. mara said. "We are sending reaches into the upper eighties Showers will occur in the extreme primary, Wallace carried 16 to Protest changes to this section.He . highly skilled and trained men south portion at the be- of 23 counties and two of six normal : Quoting other statistics, High during the day and the said in advance of today'scaucus f to Viet Nam. We intend to con- of the period and over Baltimore city districts.He . claimed Miami was ahead of low dips into the sixties at night. ginning he is confident these ] Jacksonville in gains in manufacturing tinue this commitment and the The forecast calls for less than the state by the weekend. swept all nine counties on amendments will meet substan- I.. trade Vietnamese intend to win the the Eastern Shore of Chesapeake City Hiring SetupHiring transportation, I the 8 finance, personal income and fight. Bay, where Cambridgelies tially the objections to pro- construction.r The road ahead will be long 'SABOTAGING'HIGH and which clings to the traditions vision as it cleared_the House. . the of and hard. But it is not in our of the Deep South.Brewster's and promotion policies adult working class Negroes in'I''' .. t the High arrest brought in up Naples report of twoc tradition to back off when the greatest vote came in Gainesville City Govern- CORE," he told The Sun. j Gainesville Sun going gets tough." BANDWAGONWhen from Negro and Jewish neigh- ment are being challenged by a According to information received - Jacksonville city employes, one Published eveninos except j newly organized chapter here of II borhoods in north and northwest by The Sun, CORE or- while and Sunday Saturday morn. s a policeman, campaigning the of Racial . for Burns Tuesday, and the Faith High band- "Now THIS is what me and Baltimore and the Montgomery Congress Equality.The ganizers will begin arriving nQS by the Gainesville Publishing - will hand said "I think it raises Qbitturie mind!" County suburbs skirting Wash- group a griev- here soon to coordinate the Company at 101 SE : quest Martin Luther had in wagon came to town'yesterday, ington, D.C.It ance report to the City Com- drive. II 2nd Place. Gainesville. Florida tions. It apparently was a refer- mission and entered as second class know who is someone had a sneak punch was the last stop for Wal- Monday night. The also is matter at the Post Office at 1; "People want to ence to Miami Mayor Robert "If the group trying to I I'I . demands for ' WARD BRADY equalityin prepared for her. lace on the primary trail. Heisn't 'line list of Gainesville. Florida.CIRCULATION . and a directing traffic carrying King High's pro-civil rights up nationally city job opportunities aren't j out other responsibilities police- Brady Roosevelt Ward, 62, As she spoke, unidentified per- stand. It is expected to be the entered. in the June 2 California met, demonstrations will occur -'I known speakers for this sum- RATES BY men perform. It raises a ques- 2724 SE 13th Place, was pro- circulated nearby passingout single most important, issue in race.Tickets ," Chapter President Mike mer.Officers CARRIER OR MAIL tion too whether this is in keeping nounced dead on arrival at Ala sons I the governorship campaign, and I Geison promised. "But of the chapter here, 1 Week .45 C with the best traditions of chua General Hospital Monday a handbill labeled, "It's the handbills were presumably Still thing will be within the every-law formed during the last two 3 Mo*. $5.85 i American politics," High said. night after suffering a heart HIGH time Yuawl," and depicting passed out by persons favoring On Sale ForSYInpl10ny and there will be no civil disobedience -!weeks, are Geison, who works I All mail subset iptions must The two Jacksonville em tack. I I a Negro sitting on the front High's segregationist opponent, ," he added. 'at the J. Hillis Miller Health' be paid in advance. I ployes arrested at Naples both He was a carpenter and brick porch of a mansion.The Mayor Haydon Burns of Jack- County and some private racial -'Center; Arrago Welch, also of Member of Audit Bureau of ,. said they were on vacation. mason.A I I handbill was captioned, sonville. issues also will be chal- 'the Health Center; first vice Circulation. , H They were charged with operat- native of Wilmington, N.C., Tickets for tonight's performance lenged. president; Paul Newman, a All material contained herein Is t I lj ing a sound truck without a he had lived here for more than by the heralded Philadel- sophomore at the university, the property of the Gainesville j permit. 40 years. He was a member of More still being "For the future, declared second vice president; and Julian Publishing Company, (c) 1964. Re- J phia Orchestra were Geison, "We have in mind production In whole or In part 'Is the Methodist Church. a Brown, an English student, strictly forbidden without the written sold today at Gridley's Music equality of job opportunity at oermlsslon of the publisher. More About AboutHigh I 'I { Funeral services will be at 10 Canova Drugs and secretary. Company, the county level, ending discrimination - a.m. Sunday at graveside in the Information Booth on the at Alachua General Prairie Micanopy Cemetery. with Jones- University of Florida campus. and improving ,. Hospital Negro 5 Johnson Funeral Home in \ charge. -- From Page One Music Director Eugene Or- ,housing in east Gainesville. ttHAYDON; BURNS mandy will conduct the Orchestra He said CORE thinks the National - Survivors include three I From Page 1 daughters, Mrs. Barbara Wellsof ing and then went on a handshaking "I feel that any candidate in a program which in- Association for the Ad- Governor of Florida cludes the works of Beethoven, vancement of Colored People] crowd. does not necessarily need the : L a k e I a nd, Mrs. Ernestine tour of the Club Gainesville Motel Assn. , Scarlatti-Tommasini, starting at here has moved too slowly.He I in endorsement of large, metropol- Steele of Chiefland, and Mrs. In her speeches .and an . : Alachua County Sportsm an's Burns is the said most of its work has Mayor Florida would not itan to win, but 8:15 p.m. in the Gym. Assn., Gainesville Boat Beryl Craig i of Zephyrhills; terview, Mrs. High newspapers any I > candidate in the governor's - candidate does need the vote The concert is a special Lyceum -been done by its youth council."There's . ..' Club and the Levy and Madis- three sons B. R. Jr., with the discuss the campaignleaving I C fi race who has Commissions. Army in Germany, Harry E., the "political i s sue s'' to her and confidence of the people." Council presentation. an age limit on I : P shown his ability to \ I County I r on membership in the youth coun-II ; t-; ( provide leadership and I Information and testimony at with the Air Force in Texas, ,husband _ _ _ cil and we feel that there's ; : .,, l sound business policyin I S the hearing will be considered and I. E. Ward, with the Armyin Gainesville was one stop-over I ; H : government. His opponent - ; by the recreation council for Jacksonville, N. C.; a brother in Mrs. High's nine day tour I I room for more participation of i 4$ M t can only prom consideration by state officialsfor Roland J., Gainesville; anda of the northern and central Flor-I I SEE by ,xi. / .i ise Haydon what he Burns might has do. - state and federal assistance sister, Mrs. Oran Kopman, i iI , ida territory many political analysts Peace Talks? J been elected mayor of Gainesville. j 1 .- expect to go strongly for, : e*% Jacksonville five times : iii1.i. in the first primary by SUSIE HOGUE opposition candidate Mayor -, I ADEN, Federation of South : .. the people who know Elks LodgeCompeting I' Haydon Burns of Jackson- the SUN Arabia (AP-About 300 rebel ? him best and soundly AUGUSTA, Ga. Mrs. Susie ville. I 0 O I tribesmen have gathered in the i endorse his proven I ' In Mae Hogue, who moved herea Yesterday she toured Pensa- Radfan hills, prompting British : leadership. "I If year ago from Gainesville, cola, Panama City, Apalachicola ALACHUA GENERAL Bramble, Lois Marie Hendricks, speculation that they may be 'A ; MAKE THE I State Meet died Monday in the Augusta In- and Perry before stopping May 18, 196 Vera Collins, all of Gainesville; discussing peace overtures to - firmary after a week-long ill- overnight in Gainesville. BIRTHSMr. James Certain, Alachua; Lucy the government of the Federa-, JACKSONVILLESTORY The eight-man ritual from the ness. Today she has s c h e duled and Mrs. Ray W. New- A. McKinney, Cross City; Ron- tion of South Arabia. I Gainesville Elk's Lodge will Survivors include a daughter, Ocala, Leesburg and Orlando. man, 1619 NE 19th Lane, a boy. ald Lesley Cothron, Cross City; The British army went into I -. THE compete for state honors to- Mrs. Leon F. McCrary of Tomorrow she'll be in Lakeland, I ADMITTED Ernestine J. Perry, Alachua; action against the rebels three I FLORIDA STORY morrow at the Elks annual l Gainesville. and St. Fri James weeks the desert Tampa Petersburg; A. Chitty, Reddick; Phil- ago to secure . convention in Miami.They'll Funeral services will be in Ar- Br denton and Elisash Williams, James Ron- Aden with Dhala (Paid Political Ad 2 _ Sarasota road to ip day in Sidney Anderson, Hernando; linking ald Crews Isaac Varnes Mar- Jack- II Methodist Church vie with six other lington , Ft. Myers. Mamie I. Markham Lake Butler the north. - teams, aU champions in their sonville, at 3 p.m. tomorrow, garet M. Colwell, Tressa Pearl]' ------ I Such has been her schedule. ; Carl Dixon Tummond, Valdosta Sanders Lucas with burial following in Ever- Dykes, , districts. I Three to five cities a day, start- Chiefland; Annie Lucille Gibbs, I The winner will go to national green Cemetery at Jacksonville.Platt ing on the east coast and ending Benita J. Zimmerman, Deborah: Hawthorne Nicholas ; Angelo, Renee Lewis William Louis Funeral Home of Augusta , competition.On the west coast. Archer. on : and Key McCabe Funeral I Goette, Norvelle Wall Alderman SELF PROPELLED the Gainesville team are "I've lost ten pounds," she Home in Jacksonville are in I Marion A 1 b e rt Abranfs, DISCHARGED Lou Hindery, Ira Carter, Gene charge. said, but added that she was I Thomas Neal McCallum, Janice Liddon, Rudy Freman, Bob Other survivors include her enjoying "meeting people" on' Fay Waldo, Shirley Jean Fair., Janet Clarice Hudson, Mrs. Heisler, Tommy Hicks, Dick husband, Robert J.; three other the grueling tour which begins cloth, Frank Bozarth, Verne}]I Esther Lampp and daughter, HEAVY DUTY MOWER Jeffcoat and George Reeves. daughters, Mrs. John G. Harrison -at 6:30 each morning and Drake, Betty Ruth -Hottenstein,, Mrs. Mary Brown and son, Mrs. \ - AU are local, district or state Augusta, and Mrs. Lewis sometimes doesn't,,wind up until' Alfred Taylor, al of Gainesville; Ina Baumgarner, Rochell Cur- ;\ Powered by 4-cycle 3 h.p. Clinton Engine, with spring- officers. Bowick and Mrs. Charles Stev- 2 a.m. the next morning.At I' William Jones, Ocala; Cora Roberta tis, Mrs. Rosa Benton, William I 1\ -\ wound impulse-type starter All-steel mower base. Coaching the local team are both 29, the five-foot two-inch Melton, Mrs. Elizabeth Butler ens, of Jacksonville; a son, I Green, Madison; Lewis: , Foster Brunson and WashingtonClark. Robert E., Jacksonville; a sister -mother of five is no stranger to Ray Wiman, Ocala; Effie Phoe.. Mrs. Carolyn I Ward, Geneva ,. Mrs. George Ryals, Way- politics. Her husband is currently ba Bass, Earlton; Ferman Williams -Hurst, Archie W. Yeomans, \ BIG 22-INCH CUT The Miami meeting, head cross, Ga.; two brothers, S. G.. in his eight two-year term as Jr., Alachua; Winifred Mrs. Mamie Blackshear and quartered in the Fontainebleau Evans, Waycross, and Carlos Mayor of Miami May Crawford, Melrose; Samuel son, Fred Watson, John W. An- \ Hotel, will last through Satur- Evans, Chattanooga; ten grand She said she had worked Otto Aungst, St. Petersburg; derson, Gladys H. Bass, Byron I I day. It begins tomorrow morn- children and five great grand- alongside her .husband during Frady Otto Gillman, Alachua; R. McCallum, Lucy A. McKin- $ f95 I ing. _,children. his successful effort in Miami, William Roy Hines, High ney, Nor v e lle W. Alderman,i i _ but the gubernatorial campaignis Springs. Francis Taylor, Vela Mae ONLY Iu her first venture at solo cam- Washington. .- Public BookCheckouts paigning.Her DISCHARGEDMrs. ' library EASY experience was obvious ACCIDENT ROUNDUP . I Emma Townsend, Her- TERMS in of her Confronted one answers. bert Carver, Lottie Mae Williams Involved in accidents reported -I Top 100,000The with the fact that a major and daughter, James G. by the Gainesville Police Department home town The Miami i PUSH TYPE newspaper, 1 I Prentice, Mrs. Ada Wiggins and and Alachua County '_ number of books checkedout -Hawthorne Library, up to Herald- had not endorsed daughter. Henry Blakely, Mrs. Sheriff's office in the past 24 C; ityiej 22 3.-inch h.p. 4-cycle cut only engine ................ 3895 her husband Mrs. I of the Gainesville public library 2,836 from 2,242. : High rejoined Nance R. Jones, Frank Ray hours were: I ' ? the. first six High', Springs Library Batchelor Marion t during' Coop, Betty , Edwards t Also Available. 20. 22 &! 25- Roy Tew 902 "We found it NW interesting , down to 2,430 from last very, _; - months of the 1963-64 fiscal year's Albert Abrams. 9th 4 inch mowers with Briggs Strat4' - reading.KirbySmith. Ave., and a bicycle ridden I & ton 100,000t 2,465. ? engines, slightly higher. year topped -Micanopy, up to 1,861 from May IS, 1964BIRTHS by Jerald Gaines, 704 NW 6th _ _ The total circulated-from Oct. Ave., at W. Univ. Ave. and I ALL MOWERS SERVICED 1 to April 1 was 104,940! compared 1,145.Starke, 13,983 from last- Eighth St. at 7:56 pjn. yester I with gas and oil, ready to to 87,960 during the same year's 11,656. Student Fete Mr. and Mrs. Roland Ward, day. I use. period a year,ago. The Gaines- -Bookmobile, down slightlyto 3178 NW 12th St. a boy; Mr. James Williams, 808 NE 22nd ville library accounted! :for 25,420 from the 25,508 figureof Graduating sixth-grade students and Mrs. James Perry Waldo, St., and Clifford Sylvester Goo-I ; PARTS&QUICK REPAIR J about two-thirds of- the total a year ago. will be honored at the R11 Box 30 C-5, a boy; Mr. den, 1239 SE 17th Drive, at SE SERVICE number of books circulated i by Total circulation in the district Kirby-Smith Parent-Teacher Association's and Mrs. Kenneth Beach, 917 11th St. and 10th Ave. at 3:56 Buy where you con get all parts and quick .bookmobile _ _ _ : the six libraries and NE 7th PL Mr. and j during the first six monthswas final meeting of the a girl; Mrs. p.m. yesterday. repair service by factory trained mechanics In the Santa Fe Regional 156,639 compared to 135- year at 7:30 pjn. tomorrow in Donald T. Hendricks, 1222 NW Margaret McReynolds. 'Roberts TRADEINSWELCOMED when you need it. Library. 438 in 1962-63. the school. 16th Ave., a boy. 728 NE 7th Ave., and SEE THESE MOWERS TOMORROW! The' circulation figures were Other figures in the library Also on the agenda .is solicitation ADMITTED Charles Hurst, 510 NW 3rd St., OPEN 7 a.m. until 6 p.m. weekdays 7 a.m. til 5 made public yesterday in a report report show a total of 46,458 of funds for financing music at W. Univ. Ave. and 3rd St at p.m. Saturdays by the regional library to books on hand, with 2,612 addedso activities at the school during Suzanne Ward, Geoffrey Hut- 3:38 pjn. yesterday. We will gladly accept your old the County Commission. far this fiscal year. There the next year, a musical ton Smith, John W. Anderson, Willie James Williams, 506 mower on one of these new models. C. B. BOHANNON JR.SE Figures for other libraries: have been 9,922 borrowers- program, installation of n extyear's Gladys Hazel Bass, Carol Jean NW 2nd St, and Zelma Thomas GOOD USED MOWERS . -Carver Library in Gainesville -. cards issued since October. officers and a receptionand Sodetz, Patricia Murial Beach, Bray, Micanopy, at S. Main SALE! FOR .uP to 5,169 from 4,462 a At story hours, attendance I refreshments in the school Francis A. Taylor, Lillian Bessie -and 1st Ave. at 11:29 a.m. yes- 7th .Sf. at 8th Ave. Ph. FR 2.9561 year ago. -- .- --- has ,totaled 2,536. cafeteria. Flanagan, Margaret Elise terday.. 4 1I I ;.. t L I ... . &-" .. .,' .'>. ,_ r.. 5... . --- --- - . "'-.. -- -- .' w -'. - . ' ! Wednesday, May 20 1964 Gainesville Sun 3 -control startled his colleagues, tem he says requires members Unique Wage Congress Wallace follows up today by introducing .to put in 20 or 25 years before I' Made His PointBy legislation to retire them. .they can hope to have much Pact Has'Penalties' Age Limit? His bill would limit senatorsto :impact on the affairs of Con- " three -6-year terms, representatives -gress. JAMES MARLOW states' rights. Putting equal Last March, the Maryland National Guardsmen last week WASHINGTON (APA con- to five 4-year terms Arrest Associated Press News Analyst treatment for Negroes in double Legislature passed a public accommodations -used tear gas to disperse dem- stitutional amendment that; -present terms are two years Dope WASHINGTON (AP) Ala- harness with states' would 70' declare that could rights was law-the Sen- onstrating Negroes.All prevent anyone over -and no one AP-A ( YOKOHAMA, Japan bama's segregationist Gov. probably especially helpful to ate's civil rights bill has a these factors had Mary- BERNE, Ind. (AP-An agree- from running for Congress is be elected after reaching 70. Chinese cook on the Americanliner George C. Wallace as provedhis Wallace in Maryland. I somewhat similar provision- land steamed up before Wallaceever ment that could cost union members -being proposed by a 67yearoldfoe Burkhalter, the oldest fresh-I President Wilson and the point: There is wide opposi- That state has been its there. didn't of the seniority system. up to got He miss I Yokohamabar prohibiting racial or religous up to six weeks' pay and man in the House, has already Chinese owner of a tion to President Johnson's civil neck in the states' rights issue.I any bets in talking on the sore arrested discrimination by operators of management a comparable Rep. Everett G. Burkhalter, announced he is quitting after have been on rights bill to give Negroes equal One of the cases in which the points. For instance, he broughtin He he is of smuggling $830,000 I restaurants, hotels, inns and amount if let future D-Calif., whose blast several one term. says disgusted charges treatment in many spheres of ,Supreme Court ruled out official similar eating and lodging the Supreme Court's ban on they negotiations weeks ago at the old-timers in at being shackled by a sys I worth of heroin into Japan. American life. prayers in public schools came]places. It did not apply to bars, official prayers or required Bible collapse was ready today - This is what [from Baltimore. The Maryland taverns or cocktail lounges.On reading. for final signatures.The . he said he House of Delegates has been re- I Early his month, preachingin S a'p wanted to Analysis: apportioned by court order.I top of all this, there had a Baptist church, he asked, contract, called the first ... . prove when he What The And a federal court has orderedthe been severe racial disturbanceson "Did you ever think the Bible of its kind in the history of collective .FFxec. r.ipzII' A entered the state's congressional dis-: Maryland's Eastern Shore, would have to be bootleggedinto bargaining, is to be NewsMeans presiden t i a 1 tricts redrawn. especially in Cambridge, where the schools?" signed in New York Thursdayby primaries in Harold D. Sprunger, presi- Wisconsin, Indiana dent of the Dunbar Furniture and Corp of Berne, and Sal B. Maryland, where a victory What Did It All Mean? Hoffman, president of the Up- FRIENDLY would have let him capture holsterers' International Union. their delegates to the Democratic National Convention.He Not Even Wallace KnowsBy officals Local signed union and the agreement management in lost in all three in running Berne Tuesday. Present wage; .... against stand-ins for Johnson: 1 scales were not disclosed. In Wisconsin to Gov. John W. INVITATION I. Reynolds; in Indiana to Gov. JULES LOH Tuesday night after all the votes lasted about 30 minutes. Then it Dunbar employs about 300 BALTIMORE, Md. (AP-The were counted and he was ended, almost abruptly, whenan Matthew E. Welsh; and Tues- workers, 70 per cent of them union : limp carnation was turning reflecting on the race in his announcement came that : day in Maryland to Sen. DanielB. members. The only strike at Brewster. brown in his lapel, the coffee strangely quiet motel room, with 41 per cent of the vote the plant, in 1959, was settled on. was cold in the stained cups lit- "that sectionalism is not a fac- counted Brewster had pulled day short of six weeks. But-in Wisconsin he got tering his headquarters, the last tor in opposition to the trend of ahead. From Haydon Burns supporters in the primaryWe about 34 per cent of the Demo- echo of elation had died in a trying to solve everything by This is the way the contract cratic vote, in Indiana about 30 hoarse whisper of fatigue, and federal force. Wallace was plainly disap- works: seeking realize that our candidate wasn't the only good man - pointed, even though moments per cent and in Maryland rough- George C. Wallace's 10 week !y 40 to 45 per cent. campaign in the North was, at "It is now evident that a new before the polls closed he had For a period up to 12 weeks the Governorship of our State. There were other good candi- His main appeal was against last, finished.No trend has been established, andit outlined once again, with paper beginning with the start of negotiations -I the civil rights bill-now stuck one, Wallace included, transcends sectional lines. and pencil, how it would be im- 50 per cent of em I dates who shared the Burns philosophy in many respects but for 11 weeks in the Senate be- could know precisely what it "This Maryland vote," he jority.possible for him to get a ma- ployes amount wages from and a matching funds I who had the support of relatives friends and admirers of their cause of a Southern filibuster meant or where it would all said, "should let them know in company will be paid to the First Bankof against it. lead.His Washington and in both national Mrs. Wallace, who accom- Berne, which will donate its I own. It is too soon to say what effect own estimation was that parties that they can't get rid panied her husband on his cam- services.If stake. A different philosophy is to be there is issue at NOW an his the votes he in Wisconsin, I showing particularly got of us by calling us bad names. paign swing through Maryland, in Maryland, will have on the Indiana and Maryland demon- "They called me a bigot, a sat quietly, looking fresh in a agreement is reached within -1 reckoned with. It is squarely up to all who prefer the Burns bill. But it will fortify the South- strated a reverse of what sym- white dress with red and blue six weeks, all the money held pathy in the North for the Ne- liar, a racist, an agitator, a i philosophy to join hands and work together for a cause. erners who can say now with trespasser. They pictured my accents and an orchid corsageon by the bank is returned. If a I I good evidence that they're not gro civil rights movements."I with Ku Klux hoods. her left shoulder. Later, settlement is arrived at within ,. alone in wanting it killed. have shown," he said late They supporters called in 10 senators to when the last meeting with nine weeks the payoff is 75 per, The primary demonstrated clearly that we should win by a bigmajority If the supporters of civil beat us down, and yet,*' he said cheering supporters was over, cent. Up to 11 weeks it drops to if the qualified voters will only GO TO THE POLLS AND rights can take any solace from with an air of triumph, "a ma- she seemed genuinely relieved. 50 per cent, the 12th week to 25 the results of Wallace's three Teachers jority of the white people in I "I'll be glad to get back to per cent. VOTE. That is our biggest challenge and your enthusiastic sup- campaigns it is this: In all Maryland gave me their sup- Alabama and see the children," - and is cordially urged. cooperation three states the majority of the For port. I'm elated That's far she said "I can't remember the port voters were against him. Ready more than I ever expected." last time I was away for so I NOW OPEN I FOR Probably very few of the people The Alabama governor won long." 7 a.m. to 11 p.m. VOTE FOR voting in these primarieshave Round TwoSALT about 43 per cent of the vote in As for her husband, at this ALL YOUR FAVORITE FLORIDA'SNEXT read the civil rights bill the Maryland Democratic pres- moment fatigued to the point of I BRANDS B U R NS in its entirety or, if they have. LAKE CITY, Utah;idential primary against Sen. exhaustion, he clearly longedfor 0 Liquors HAYDONPLEASE GOVERNOR could claim to understand all (AP) Utah's 10,000 public I Daniel B. Brewster, favorite-son more battles to join. But he Wines Pd. Adv. its legal implications. school teachers have voted to! stand-in for President Johnson. refused to say what form they O Beer Wallace combined his attacken end a two-day walkout, after!The state's Negro population is might take. One guess was that FREE DELIVERY civil rights with an appeal preparing for the next round in' 17 per cent. he will concentrate on expanding PAUL'S LET'S GIVE to those who see, or think they their fight for more money for For one brief moment shortly his unpledged elector move- VOTE HAYDON BURNS MAY 26 see, the encroachment of social- education. after the polls closed Wallace ment, overwhelmingly Package Store A LANDSLIDE i ism in American life. About 90 per cent of the teachers sniffed an actual victory. ful in Alabama, to success-I 1318 E. University Ave. I He said at one rally: "This voted Tuesday to resume The first returns showed him ern states. - -- ---- -- '- - hill would take over every ,eaching today, but they also de- leading Brewster-152 to 136 in -- -- -- home, farm, business, and labor cided not to sign next year's one district, 194 to 69 in another, union in your state. The left- contracts until a special legis- then some totals: Wallace 28- \ wingers want to drive this coun- lative session is called to consi- 000 to 22,000 with 11 per cent of try straight to socialism." der an emergency $6 million the vote in; Wallace 39,000 to Knowing that liberals, favor- school appropriation, and other 33,000 with 17 per cent counted. HOURSALE ing civil rights legislation, were demands are met. The victory-inspired levity The normal time for signing against him, Wallace's appeal teachers"contracts has Paid Advertising to conservatives gone by. .... xas and rac- ., Chances of recruiting new ists. He said he expected to geta teachers from out of state appear - vote which would knock the slim. The National Educa- u liberals' "eyeteeth" out. tion Association asked its 902,000 . Always he argued the civil members not to accept jobs in I; gUAL1TYI A rights bill is an invasion of Utah until the crisis is over. DISCOUNT I o ,.....:.........-:. >:... ._...._--.w.w.'.'.'___,_>_ ..:. -- I .. 1 s4 s - ALL AT UNHEARD OF PRICES AIR CONDITIONER SALE HOW f FULLY AUTOMATIC SAVE KELVINATOR ' $00 6'O'O 0'B T'urs YOUR { MULTI CYCLE Cy Only 10 1 1i Automatic Washer 1964 Modelsin Cartons HEART? 0 2 speed $ .. Adj.Thermostat Grills 138I i 95 Save. Vent$31.95 Control All Porcelain I I ns ide and With I Trade I 14,000 II I Top I NO MONEY DOWN! $2.50 per week 1964 Modelsin I 5 YEAR PAp'TS E Separate wash and spin speeds. Deluxe in Cartons GUAR ANTE lint filter agitator. Rinse and wash waOMA.f1C 0 3 ter temperature controls. 0 Thermostats $ \ p U T Adj. Grills 198 \ Eu +Y WE SERVICE WHAT WE SELL Vent Control 0 Zinc Coated )s \ Cabinet -. 0 Slide out 1 SAVE ChassisAll SAVE $31.95 I ' I $50.00 . '-" --- t NO DEFROST 2 DOORRefrigerator 20000 BTTJ"s If you are host to only two or three of the anti-heart conspirators listed below, your chances for a heart attack are one in two! iIII 0 crated 1964 High Blood Pressure 9 Zero Temp. slideputchassis models with $ multi You may be a candidate for a heart attack Excessive Cholesterol 100 Lb. Freezer speed fan.NEMA 24 8 I I without even knowing it. Take a look at the Excessive Eating t No. 553 rated._ right at some of the danger signs. 1 Cools ',up to-_ _ : - ki' _ I Cigarette SmokingTension 1500 square You can do something about every one of # 0 : feet!! Automatic - t them to live more safely-and live well, too. 199 97 thermo- ,SAVE- $40.85 Heredity ; - Little Exercise 3 WithTrade ---= 30,000 BTU'sr Overweight - NO MONEY DOWN Diabetes $2.50 Per Week 0 All crated IIYour Heart Has by Alton Blakeslee 4t Extra spacious. True with 1964'slide-out' --- convenience - _-- chassis, multispeed $ Nine Livesll and = __. and economy. fan, 3.49 ri ==-:= -::' automatic i '-'==== I Jeremiah Stamler, M.D. Separate freezer lets you thermostat 12 PART SERIES shop less frequently. NEMA rated. Cools up to I BEGAN MONDAY MAY 8 14 Cu. Ft. Kelvinator Upright Freezer 19995 feet 2000!. square SAVE $60.85 r I:' In the W.T., ALL PRICE DEL & SERVo EXTRA OPT. .. I II. Suu .; : I GAINESVILLE Open! 9 A.M.-9-9 ACRES P.M.-Sun.FREE Noon PARKING 7 P.M. CHARGE WES JUST MOMENTS TO IT I OPEN I Q/d QUALITY T"-"Iyu." ....,.. I Thai DISCOUNTS give you instant j jcath I I(i I" (kitflzUIIEt J" IT of value guarantttdALWAYS. saving gvaroittd I U.S. 441 N. At 23rd BUi Phone 376-8297 YOUR CHARGE ACCOUNT! EVERY DAY Ji [ j Ij ..I.IR s ! i -- - -''' ---, p'.A.._ _ j 1r. t ' Coiawille Sun Wednesday May 20. 1954 ",,. . j - N - - ," .' . T'.' -, TONIGHT'S THE j'f i ___.-; -.. ., : : : , ;II :r.' .i::1I j ; NIGHT TO MAKE 4i"1Hi1" ' ,. u. S. GOVERNMENT I GRADED " . J I I'I'. ' I : r : :!4 "v Be sure':it's a" W-D brand E-Z carve Rib Roast because. ,t j I. . ''. . ; : .,. . i _ , t 1 f : ,;f ; ra. .\ I' ,.. q :,. II I y : .. 'i ' . Close-Trim BEFORE weighingmeans f 1- : More Meat to Eat... Af2 ., . k. ja ' I r bvd '. ,: Less to Throw Awayl"! : , r II, I O ffsj FEATHER k v ) BONES REMOVED . i'I'' 4' :- i iJ II ; If f I , - In. vd4 _ CHINE BONE Ij ;y \ REMOVEDThe j :11 . I . I yn.g,4y ' 'f 3)r,,r I. y 6. y rib roast pictured above is a genuine W-D Brand I , ?;.,.:.. T.d '. ...as. S.: J E-Z Carve Rib Roast. Note how the troublesome .. II' ' vr \ feather bones have been removed with just enough fat I' : : : < ;; % A.. : left to assure cooking to juicy,tender goodness. With . I t the feather bones and chinbone removed you can carve 1 .< .:'iz perfect slices every time. It's a better value too/because I ; 4Yy ; i y'. this excess bone and fat is removed before weighI ,: d ing and pricing. You get more tender juicy meat to < g.w p. 9' ...: ..less throw W-D Brand E-Z I ? as & Vf tF Kfk9X t a.: eat. to away; Try a carve . 4. .j )bt.i9atLZfj.... ,$%, fv ., rib roast tonight-its beef at its naturally tender best. _ ). . .. . . . . . ., f --' I 1--- ; k .. I' : .. ' I : GET BEEF AT ITS NATURALLY TENDER BEST ';; . -.'".- .' ',1'" -E 4T1 ..... OVEN READY EASY CARVE.. RIBRoast \ y ( -';: : 69 ' ; r' Roast 39, ( I .A 7 LEAN, MEATY BEEF SHORT ;, 1/ Ribs LB. 331. .. r. :---.'..- ::f 100 EXTRA STAMPS WITH PURCHASE OF GROUND ., ., i s \ Beef 5 $195 -}; r P-G. '- ) _. ---:_. CD ST ", "; ,: ';. i.. ._ :> <, '," n .. :: : ': ..... '<; ...\ ..'.,:..._....-,. ..t._ t'1'1:.."; --_, " I '" "- '.. ;. : THBSMARfPLACETOGO.JORGOQDTHINGSmEATI / ;:"\,:/ ; ' ..i..-".-t.,\ '.. ,,:;'". .l4;';: (/ ; . , L r - ' - 'S I' -' - .! r ..; _ 4. 1. 2 *, Ii 1 E .........". ..J(..__-I II. 11II11II "" -v ,_ _._.._ _, ." _. ... >,' __ .. A l ::: .- ". ':-.'...... ...:....... .. ........ '- - - y _ . 'It Wednesday May 20. 1964. Gainesville Sun 5 .. "7'" -- -' ..-..., h. .- -. &,; i. .;....:,' :,-, .. !;ot .,, _ '. <', ;,' ",- ." .. y i : ",? .... !f sAv ; ? % : Q F ,. 7 Camay Soap Compare! fewer books BATH SIZE 2/29?! gift ! You need per ' L MEDIUM SIZELava L1 j' / with Top Value Stamps Soap g cs ...,.---,., 2 Bars 25Zest ""..m...n..-....................................;;;;;. :;;;;::::::::::::::;:::: :::;;;; eaa "u,m" u svsaa u __ .. es. _'_ _U", .. i J a SoapREGULAR koN smo ke s SIZE 2/29 11C BATH SIZE 2/410 QUANTITY RIGHTS RESERVED 100 Extra Stamps BEEF SALE 5 PRICES GOOD THRU MAY 23RD WHEN YOU BUY r l, I PERSONAL SIZE WINN-DIXIE TOREsINC.-COPYRIGHT-'set t' ' Hormel I CannedHAM 'I - 50 EXTRA STAMPS WITH SUNNYLAND BOILED i l- Ivory. Soap Sli. Ham O'VZPkg: 691REG. alf ,J Finest Beef Sold Anywhere 4'Bars 27 jIvory 29*! Copelond Sauce Pickle Bologna, Oliv.MLUNCHt W-D BRAND CHUCKRoast 2 29tPkfls.. 49 J LB. $259 fJ CAN ? SoapLARGE REG. 45* SUNNYLAND : Vw . 2/33* Sausaae ESHL.OR391 OVEN READY EASY CARVE RIB MEDIUM . 10* [{r f;., 50 Tarnow EXTRA STAMPS WITH ANY Pizza SIZE III. BACON i iJ Roast LB. 6 Ox Mr. Clean LEAN, MEATY BEEF SHORT 15-oz. . 39* 28-oz. . 69* ELGIN .1 ;j i Yellow Solids SUBER'S ; IDS LB. 33100 / ::1 Liquid Joy DRY CURE LB. / EXTRA STAMPS WITH W-D GROUND 12-oz. . 35* :; OLEO REG. 59c 22-oz. . 65* ( Beef..5195t KING SIZE 89* I. 1 ;: 1 CREAMY i LB.IO A,.. ::u. : :., 'A ',':'V "" u" ;!?';. Pink Thrill ? ; r' 12-oz. 35* 22-oz . 65* FOLDING LIMIT 2 WITH $5. : Samsonite r, ' ORDER OR MORE. TABLE FROZEN FOOD : Ivory Liquid i _ u uu 12-oz. 3522oz. * REG. 19* DIXIE DARLING BUTTERMILK ON SALE AT 65* I read2.. 33i ] STRAW KING SIZE . 89* , .f REG. 10* .. DIXIE DARLING BAKED-OUT 6"ct- TWIN it rrt15rir111 $ S .. r 'J Berries. 5 10-oz.. 51. DINNERWARE PACK 1, Rolls JL p 5I 151 Nationally ..... ..... .J MORTON ALL FLAVORS Prem. Duz m.-- Ii.. f Adverthectt r I !il fu jililf )J Fruit Pies 3F Size y51. STARTER QUEEN ...... .. 1.05 59* I' 50 Extra Top Value Stamps : t !! ; :,;; WITH THIS COUPON AND PURCHASE OF f LIBBY'S REG. OR PINK FAMOUS Just the thing for Mwing Two PKGS.FROZEN: KING SIZE ISa f Marvelous 1 for luncheons ade 9 6.OZ. 991 SnowLARGE Downy Flake Waffles S* Practical(or homework I Cans Ivory VOID AFTER MAT 23RD t WITH US WORTH and do-it-yourjelf . 35* for TV snack SOUTHERN BELLE DEVILEDCrabs Of REGISTER TAPES Convenient AT ANY WINN-DIXIE rl 41 rf ............... $6.95 Value dinnen Crab GIANT . 79* I II Reg. surd H Wonderful tor 5 79a. t. 4 PlaymaL4 I Pkg. I NST ANTIvory'Flakes t tI 50 Extra Top Value Stamps .-. i" ..',-''''\,:''OJ'${' \" :.6v.:.t";,.'.:"'.":'t "u_...,..:".L",<,:.,;,f'_,''L'' '':">J, ..:..I.rm. ;*:t:' ''>' r .m. ,,l.!t1. {_.,f f1 "I'!h '" ", $1.'W' t tf WITH THIS COUPON AND PURCHASE OF LARGE * I BOX oD Five 6-oz.CANS Fr. MINUTE MAID SAVE 10* DEEP SOUTH SALADDressing Orange DelightVOID t AFTER MAY 23o j DETERGENTPink j " 42 AT ANY WINN-DIXIE Q1.29; t 5r Dreft , LARGE . 35* SAVE 20* KRAFT Limit 1 with $5. order or more < GIANT . 83* 50 Extra Value : : - Top Stamps Miracle 39si 1 FRESH GOLDEN . WITH THIS COUPON AND PURCHASE Of Whip QT. :. DashLARGE I; BANTAM FLORIDASweet" .. "=! ANY Two PK& FROZEN . 39* Mrs. Smith Fruit PiesVOID GIANT . 79* AFTER MAY 23RD SAVE 20* CABOT BRIQUETS v! Corn JUMBO . 2.39 f AT ANY WINN-DIXIE SUPER . 4.69 43 CharcoaI79SAVE ; bETERGENT i_ j 6 EACH THRIFTY MAID Tide , 10 I u Rs49' . 50 Extra Top Value Stamps J LARGE . 33* THIS COUPON AND PURCHASE OF Tomatoes81. J GIANT . 79* ONE 2-LB.PK6.JESSE JEWELL. 1-1WITH B Fryer BreastVOID 1 JUICY SUNKIST DETERGENT AT ANY AFTER WINN MAY 23RD-DIXIE SAVE 8-1/6* EACH HI-C FRUJT FLAVORED ]I Lemons Dozen 391A OxydolLARGE 44 , iii F: U. S. NO. 1 BAKING POTATOESRussets . .35* Drinks..379 s GIANT . 83* 10 'Lb. Bag 691 50 Extra. Top Value Stamps SAVE 10* HUDSON BATHROOM 1 FRESH CRISP JUMBO CascadeREGULAR DETERGENT , WITH THIS COUPON AND PURCHASE OF I Celery 2. Stalks 291 f, ONE TWIN PACK CRACK1N. *GOOD . E J Potato AFTER or Dip MAY 2SRB ChipsVOID Tissue 4 ROLL PKG. 3 9; m F T""" 71< ". .- SIZE 45tf. AT ANY WINN-DIXIE m 1 :1 SalvoREG. 1 1 1 1 1 1 1 1 1 1 1 SIZE . 43* 1 1 1 GIANT SIZE 79* 50 Extra Top Value Stamps F 1 1 1 1 IIAXWELLI JUMBO SIZE 2.39 WITH THIS COUPON AND PURCHASE OfCrackir AstotN 1 1 ONE 2-L11.PK. 1 > Sfl ORTE I_. 1 ysf 1 1 Downy Good Fig BarsVOID aojlss 1 -- 1 cart 1 1 1 e ......II...":it., FABRIC SOFTNER AFTER MAY 2SRO rx .' 17-oz. SIZE 47 AT ANY WINN-DIXIE 1 iL * om 1 ? : 33-or.. SIZE . 46 r & .... 85ft'Spic I .. 1 ...-., .-. -# 1 I.Xi CRISCOSHORTENING '1 ASTORSHORTENING i BLUE or WHITE ARROWDETERGENT MAXWELL HOUSECOFFEE ASTOR - / . 1 -- & 1 1 COFFEE SpanREG. 1 50 Extra Top Value Stamps -:- 1 ' WITH THIS COUPON AND PURCHASE OF Save 24 3-Lb. Can Save 16cf 3-Lb. Can Save 20 Giant Box Save 24< 1-Lb. Can i 1i Save 24< 1-lb. Can SIZE . 29* ONE.-cT.Pica.GILLETTE 1 1 1 _.. GIANT. SIZE 89* + Stainless Steel BladesVOID 59 49 1 1 ,, 591Urnit 1t 49- 1 , AT ANY AFTER WINN MAY 23RD-DIXIE I i ,' 1 1 CometREG. 41 ' 1i H, Limit 1 with$5.00 order or more Limit 1 with$5.00 order or more 1 Limit 1 with$5.00 order or more 1 with$5.00 order or more i Limit 1 with$5.00 order or more ....---..--.....-------..-.-... SIZE 2/33 is SAYE w 7i GIANT . 249ftCheer Cf L 7)7Ike : '. E man I'a LARGE ... 33* oo +sss.w GIANT . .79* swBB .., : : iA a . " -! i is.t i *-m>*m*****-.. .., p"k...."""_._ ;;"'. ,. -., "", ' : - -- .'. --- -, .. --- - 1'-- .. --- -" -- - I 6 Gainesville sun Wednesday, May 20, 1964 _____ _ .- _.... __ ......_T T77". -' ...,.r\o..... .... i"" ,..., C"I'1" HEY FOFS WHAT rujLJig MULL rim YiJLL'lLta: , CONSCIENCEOF I I 0i.afUtsui11e'JSUtt' i i 'Youth Wants to Know II .. THESOUTH Nf'WJnrk. imra talking like they'd rather have ond is that people in general happened to account for the i By ARTHUR KROCK the other guy. feel that how they're got n g According to Farleys JI JIchange. JOHN L HAKAISON. President aadrvMUfceri Did teacher explain how she to vote is their affair. So the Law, that is eyewash. Did " FAT COWtES. Vie Press.. WASHINGTON A news knew that? "upset" in Oregon was only a your political science teach e r 3OSSSOK. TIe. Pres. report that mock nominati ED g Law? upset of the so-called expertsand tell you about Farley's all the an From newspapers { ISDn) and Exee U Cdltari: W. G. conventions have from Florida's Beautiful'University EBEKSOLE. Vfa Preside art ATcrtMBg *- the spread TV and the radio. She said those press and TV reporters No? I colleges to the high schools City' Director, BOB TAETAGLIONX. By RALPH McGILL they got it from the Poles. who went out on a limb Well, Mr. Farley holds the suggests that .. juvenile interest Vie PrexUemi.and Circulation .. Palllicr rill fflMlnr poMUhef But Stanislas Wyczkenovich, with them. But the experts world's rc"rd.for predictinghow I I I in politics has reached the : , '. \ Minacr. Of the Atlanta (Ga.) C.UUMUBA have old reliable alibi andI in the kindergarten, he claimsto an , level where the American an election will come out. r THE SUN'S POLICY ': be a Pole, and he told guess that's why they man- father Show must be prepared for a And his Law is that voters teacher he never heard noth- age to stay in business. 1. Report the news .fully and impartially Irr the news columns. discussion of the Oregon pri- ing of it at home. Daddy, what is an alibi make up their minds well in z: Expresrthe opinions of the Sun in--but only ft-editorial* mary somewhat as follows: advance and don't changethem How did teacher handle that AN ALIBI is when 3: Publish all sides of important controversial issues. For Dad, what is an "upset?" you unless their guy gets in ? claim left the before An one you scene THe Sun's telephones: All Departments-372-8441 something"upset"unexpected, Junior, by is when most Oh, she said she was speaking something happened you wrong and big election.So at least. aweek Want Ads-*76-467Z AmericansSemi everybody happens or something of a different kind of are being blamed for. In the before the this "upset" talk, Daddy, I the experts said n ever Poles. The kind like when you case of the sample Oreg o n ':; darkness came with would. What's on your mind? go to a lady's door and as polls, the alibi is that the voters is a lot of - 'A StormApproachesFrom : the pressing of a button. The her who she wants to be pres- changed their minds at the Son, I don't want to hear first half of the Federal Build- WELL OUR political science ident. And she said that was last minute, after it was too any of the other political sci- the blue has come a clap of fies Commissioners cannot dictate ing' show a*, the New Yort! teacher said today t hat what she meant by Poles, and late for you to sample them ence the terms you. learned in World's Fair came on the Rockefeller's winning the Oregon those who tooken it was knownas again. Even when nothing kindergarten.mised racial thunder, and! Gainesville city hiring-firing of city employees. This PoIsters. ' screen, with the picturing of Republican primary over officialdom has scurried to the closet, rules out -interference, maintains the people who constitute the Lodge was an upset. THEY'RE "pollsters"-p-o- = ON THE RIGIITJohnson = huddle'with thumb in mouth. Sutherland. Do have science double all there to world power we call America. you political IsterBut right. r There were the beginnings teachers in kindergarten? Now we can get to the pointof in and ink sketches Yes, sir, she says Dr. Spock your second questionwhy The rest of us watch the billowing From behind this paper shield, shown pen :a 4 thinks we can't start learning teacher described the Oregon ' by artists of the time, Commissioner Sutherland portraying , peeks (jf clouds and;) forked tongues of flame the small ships that about this stuff too early. primary as an upset. T he answer e lj and wonder what forces are about to hopefully as the racial storm brews. came the first settlements, Son, what are you? Five is that most of the people ]' be unleashed among: us, and how we the Indians, the men in armor and a half? Okay. But first, who voted in it did exactly 'The {J..J. can prepared for the deluge. ) teacher tell you what a pri- pollsters figured out they . by unfortunate circum- the slave ships. ' ( mary is? would after asking those ladies - stance. Two leaders There followed a series of WILLIAM F. BUCKLEY JR. major city { From whence comes! the storm? were She says it's when a bunchof at the doors bow aboutit. f1 f in New York, polishing off the details old photographs. The immigrant guys are running for'presi- I have yet to find a lady, of'weeks of a six million dollar bond -issue tide were some 40 million dent, like in Oregon, and each or a man for that matter, who Lyndon Johnson, for all his them 20 billion dollarsin It began a couple ago. persons the Irish, Ger- simplicity, is acquiring the of the next 10 tries some course which the City of Gainesville guy to get more peopleto ever was among those asked - Two Negro couples appeared at the recently mans, Jews from many lands, say they want him to be anywhere. But it seems that kingly habits. Wherever he years-an expensive dinner. : at the floated. Latvians, Ukrainians, Scandinavians goes now a days he seems to The routine I is weekend Teentime dance president than any of the other the "samplying of trends, as as say, white recreation center. Drunken Bohemians, Roman- guys. And that the most the operators call it, is very, have got into the habit of to make the promisethenstare white-boys danced with Negro girls. One of these men is a titular head ians, Croats, Serbs, Bulgars people sudde nly said they very scientific. So one of two making a royal gift, like Congress in the face who should lead Gainesville out of -they came from many lands, wanted Rockefeller.WHY things, probably both, ac the kings of yore who when and more or less challengeit thereby causing disturbance and to join the first adventures visiting their provinces would to call deadbeat the wilderness. He is Mayor Howard DID she call that an count for flubs like they madein you a the arrest of one youth. from England France an d upset? Did she say bow she Oregon.The scatter about a chestload or Congress being as Congressis McKinney, clearly the official spokesman Spain. knew they hadn't chosen Rock- first is that there are no two of ducats among the these days, i.e., fearful of for the city. For an absorbing while peasants, as evidence of their benumbed Exhibiting shocking lack of crew efeller some time ago? such things as "experts" in public opinion, by there flashed on the screen a Yes, she said they kept on this pollster business. The sec- royal favor.Considering. the ignorance of,the average tive imagination, the City Commis- In New York with :Mayor McKinney long series of these old pho how much Mr. voter about the source of all sion responded by closing down week- tographs. Here and there one Johnson is given to traveling those funds he is constantly end teenage activities at all recrea- has been City Commissioner heard a quick indrawn BELOW OLYMPUS By Interlandi about, there is some fear for showering about the country tion centers-both white and Negro. James Richardson, who is in a key breath, a whispered comment the endurance of the patri- and the world (they come, position. During his campaign for office but mostly there was a mony. His trip to Appalachiacost of course, out of the voter's i The reason given was that the two months ago, he pledged tribute of silence. An audience: the royal exchequer one own pocket), weakly suc- dances had become so popular that creation of a "Citizens Task Force"to of affluent Americans, able tc .,. ..r. billion dollars. When he went cumbs. With the exception of adequate supervision was "increas- attend the World's Fair, were up to the World's Fair to some of the squanderous buiit ponder Gainesville racial problems.He NAVE f0tt speak to the Amalgamated around the aid foreign ingly more- difficult. stilled by these pictures of A M'tht:StJMf programs is, in fact, the only Commissionerso their ancestors. These early Workers Union he was not I cannot think off hand pledged and dedicated, and this products of the camera's art of mind, and dropped therefore when recently Congress has To us, the logic was about the a mere million dollar aborted an act of royal lar doubtless played a role in his elec- are magnificent and moving.The 'rn same as closing down the Fire De- tion. subjects are stiffly pos- gift to the cause of juvenile gesse. \ partment because the city was havingtoo ed houses in the Dakotas, they delinquency in Harlem. There MR. JOHNSON, then, is in A I was a splendid opportunitythere a position to make the United fires. sit in groups on the decks of many Gainesville for the second consecu- immigrant ships, the women hIKItJjS I thought, for Nelson States Treasury a depressedarea tive spring faces serious racial up- shawled, the ir voluminous Rockefeller to upstage him if he keeps it up. Thereis 1' We dismissal of school by making a gift of two an about the man : i are aware heaval, which is part-and-parcel of skirts gathered about the ir energy million: but Nelson Rockefeller which mortifies those of us , 1 for the summer will idle Gainesville the national '/ Negro movement for a feet.There lllt' ,, is busy these days, in our thirties, who would in the next two weeks. We of a tr f youth place under the sun. Gainesville'sproblem are pictures men, spreading his wealth amoungthe not have the energy to giveaway I know warm weather will encourage will not be solved if the women and children before peasants of California... more than a few million . activity outside the home. We know dialogue between Negro and white is lonely cabins. Irish labor IT IS A VERY interesting dollars a day, if we were Gainesville is capable of racial ten- silenced.It crews digging the canals and precedent, this business of President. An observer said : tunnels, posed for some of sion. We know the need for solvingour _.. ___._ facing an audience, makinga once about Mrs. Rooseveltthat these pictures, as did those grandiose executive com- she treated all the world problems-not evading them. will not be solved with City immigrants who built the rail I j1Th\\\\\ mitment, and then sitting like her own, personal slum Manager William Green's wishy- lines westward. There are back to watch Congress writhe project, Mr. Johnson, who t Then comes another development. washy "personnel matter" approach.It pictures of Italians at labor,t t with embarrassment. One told a reporter in Decemberof of men before coal mine pits,, night in 1961 John F. Ken- last year that he considers i The city fires Harold Acosta, direc- will not disappear while City Com- of men with heroic mustaches nedy called in for a good himself more liberal than I ts, tor of the Negro Community Cen- missioner Alan Sutherland leafs sitting with beer mugs before i 7 W ,[ S 1 dinner at the White House at Mrs. Roosevelt, doesn't exactly t ter. But, most important, the city hopefully through the City Charter.We them in some sal 0 0 n., bunch of Latin American dip- do that: It is not a part . gives no reason for dismissing Acosta. But mostly the pictures are omen 'We need more censorship in literature, in movies, lomats, and before the of his psychological make-up \ City Manager William Green instead suggest these three routes to and women at wori: on television uh and on beaches!" evening was over had proEWPOINT to suggest that all the world is : building America, ripping its; sort of C o u e i s t optimismand into flamenco dance I goes a sound racial understanding: raw materials from the earth,, THE CONSERVATIVE V][ joie de vivre combine a about "this is a personnel matter"which laying steel westward, cutting : sort of Coueist optimism will be handled "between the (1) The City Commission make the plow to the prairies,,, ("everyday in every way the parties involved.'* the dramaticmove of reopening the killing the buffalo wantonl world is getting better and Gainesville youth and without reason. : New Profit-Sharing Ideas better") with a Donne like programs on a The pictures are stark, sensitivity (ICe v e ryman'sdeath \ It just so happens that the firingof sounder basis, reinforcing the pro- something almost cruel, with I diminisheth me, for I Acosta-whether for justifiable grams where weaknesses have been austerity and hardship of the s By DAVID LAWRENCEi Nor did Mr. Reuther of the employers and unions are be- am involved in mankind") to reasons or not-is not a "simple per- apparent, whatever the cost. time. The faces of womelook i WASHINGTON The bigI auto workers unIon-if, in- ing promoted in this countryand human want. sonnel matter between the parties out, some young an I profits which the automobile deed, he did read the speech are producing repeated HE DESIRES to settle all involved." It has, in fact, put the ((2)) Mayor McKinney conduct an pretty and dressed in the frilled industry recently disclosed -heed the advice given. What national emergencies." He the problems America has- blosues and long skirts oi f: have attracted the cov- Governor Romney said is, declared that the automobile even while assuring us that Negro community in an uproar. And investigation of the Acosta firing, the time; others, wrinkler and I etous eyes of the labor un- however, a new approach to industry must share its progress America doesn't have many this has incited a goodly segment of and either publicly justify the dis- old at 35 from much hard 1 ions. Walter Reuther, presi- the wage-price problem of the with the public, even problems. He wants to solve the whites. To this uproar, the missal or initiate reinstatement. work and the bearing of chil. dent of the United Auto Work day and certainly. is significant as the employees themselvesmust the problems! of race relations, Gainesville Sun's telephone operatorcan dren. ers, is quoted by the United beyond: the realm of party share. He made refer of poverty, of old age insurance attest. One is thankful for the itin. Press International as having politics. Extracts from Mr. ence to a profit-sharing plan of deliclent schooling, (3) Racially-pledged Commissioner erant cameraman of the time., said in a press interview: in Romney's talk follow: that he had put into effect of Communism and of Cyprus.His . Richardson-along with Mayor Many of those who daily an,d New York a few days ago "As a matter of fact, I thinkon when he was president of contribution towards the WP didn't expect much more than McKinney as the city's official nightly sit through these showings r. that the UAW would, in its the basis of current econ American Motors.' He continued solution of this last is Senator t.'I* -ane statement from City Man- spokesman-reopen the avenues of have pictures at home o new contracts, try to ref omic policies that it's just : Fulbright. His contribution! lieve" General Motors of some a question of time in this As far as I was concerned towards the solution of the a>T*' Green who is not renowned for communication between the white grandfathers and grandmothers : of its multimillionldollar prof- country before we'll face a I undertook to embody that others is to spend more hi :urageous stand in the face of and black segments of the popula perhaps even daguerreotypes in enact laws and real economic crisis, and I what I called a, progress- money more , c\ ....rary winds, but we certainlywere tion. of immigrant grandpar its.Now comes another news think this is because we have sharing contract that we ne- trust in the good faith 'of the ents like those shown on the shocked by the position of City dispatch from Washington been ignoring certain defectsin gotiated with the UAW in Soviet Union. Commissioner Alan Sutherland, who Gainesville borders screen. quoting a high government national economic policy 1961; and this contract startson An extraordinary man, no on an abyss the Once this show is over 1 that the theemise that if doubt about it. A with saying that labor source as are sooner or later going man conceded the Acosta firing has put which could cast into dismal crowds to mobile seating . us a move a Johnson administration doesn'tI to catch up on us. and.management' and capital chiliastic fervor: "See that his phone to ringing also. racial swamp, thus blackening the arrangement. It moves 1 expect the forthcoming nego1 NOW THE FACTS are are to prosper, then the problem? Believe in me. See r city's name and shamefully defiling semi darkness, traveling 1 tiations between the unions that under the current laws customer must be the first to now the problem is gone" I Commissioner Sutherland's hiding all that is human and holy. slow circular route. On each 1 and the companies to force we have in this country, permitting participate in progress." Here indeed is a true dif- place is not 'a closet. He grabs the side and ahead, pictures oThe f: an increase in car prices. the concentration of REFERRING TO the com- ference between the liberal America flash on screens. ; So it's apparent that the Unrom economic power, unions and ment by President George and the conservative mode, petticoats of the City Charter's Sec- God grant us the foresight to do history of development f ions will try to get as much employers have largely been Meany of the AFL-CIO in Atlantic for the conservative recognizes tion 14; Subsection C, which speciVoice Justice-in time. the first sea crossing t" tv<<<* as they can out of "the com- picking up the results of progress City recently that gov- the problem, seeks to do time men are orbiting th' panics profits. But there is and the customers ernment intervention in the something about it primarily I earth and preparing to go U: no indication as to what the have not been sharing in that fixing of wages and prices by harnessing hum a n instincts the moon appear on multiple j consumer may get, except progress. means destruction of collective rather than by har- screens. possibly the assurance that The thing that has madeour bargaining, Governor nessing g overnamental ma- of the PeopleOn There is not much tall i the prices of cars will not be economic development Romney said: THUS THE PROBLEM of among those who come out raised. This will be called broad, and has stimulated it, And not only are we in the poverty is, one that is met They are moved and bomb wage-price stability." has been bringing more and process of going down the more, successfully by the led. America was not always i ODDLY ENOUGH, a d i s- more customers into the mar road of destroying collective same means that brought this The Sun's Opinion Page==== so affluent, with pockets oi:f senting view has been express- ket. The reason automation bargaining-we're also going nation out of poverty into affluence - poverty hidden in mountainand -s ed by a man who not only -which is not a new thing, except down the road, of destroyingthe in the past two hun- Opinions GIld comments ol Sm readers are welcome in the Voice of the People co"""' Letters slums of large cities. Th< has often been mentioned for that we are using differ private-enterprise systemin dred years. The Liberal mode, must be signed Cln4.',.", u.. riter's address. Names will b. withheld if requested. A letter should shining towers of the Fair tes I the Republican presidential ent techniques, but as a principle this country, and we're so many more people becauseof not exceed 500 words and mast'be-written' only one side of the paper. Poetry cannot be used. The " nomination but who, prior to it is not new-the reason throttling its operation. its capacity to give instant Sun reserves the right to'rcicct any letter or to shorten it, without chaqing. the writer's meaning or tify to what man has creat election to his automation The Governor said gratification, is to do intent. ed, but not too long ago his! present post as is not produc ing Michigan away Governor of Michigan, headed more jobs, and enough: jobs, that, to permit a concentration with problems by acts of .of. the many cross currentsof by both High and Barns. High creations were sod and loj J g Supports-' laboriously up a big automobile company. is because customers are not of private power by a corporate national resolution. politics and governmentand complied. Burns has not. huts and implements He especially recommends being made the principal combination of unions or em- Lyndon Johnson is a perfect Disclosure: the interests of the major High ,promised to do so ev pounded out on .n-il is the public should get the benefit beneficiaries of our economic ployes not only thwarts economic embodiment of that kind ity of citizens. The<< ,tendency to by men called blacksmiths.One of national exhuberance and of high profits by being progress. Now that is number progress and the employment EDITOR Sun' We much avoid sharing in in ery year while governor and can go the .'t'oois fxh : are politics our T given a reduction in car and the use of automation he is giving us a wonderfulride. the editorial nation is reversal to conditions one year afterward. The bit and see a Disney cleat one.And pleased by vigorous a prices. this is important be- but it also increasesthe Sometimes, if I close my policy and practice of that.favor undemocratic Times editorial argues that Abraham Lincoln rise fron* I almost hear his What Governor George Rom- cause we have a conflict in reliance on government, eyes, can the Gainesville Sun and 'for: government The editorial the sources of income of his chair and talk about liber'- a ney said on May 7 was not our national economic policy, ar" the go- anent keeps music. But I do have to close the many editorials that reflect should be placed at the disposal high public official are of legitimate ty and justice. Or one may gi( widely printed. He talked informally and this conflict in our national stepping into this process." my eyes. I a high degree of sensiti- of the Burns campaign man- concern to the public to the Johnson Company building *I- at the Party-to- economic policy is as fatalto These are not the kind of When they are open I see vity to social and economic agers and a request that, they since these sources may and see an enchanting 5 People Forum" in Chicago economic growth in this thoughts the country is hearing the line in the Bible which&-17, We wish also to urge you to R. MEAD ial states, a Times reporterwill children on all parts of tL, talks though delivered at was.in the social field a hundred party, but they would which warns us that "He reprint the editorial, "Noth ask Burns to disclose his globe. open meetings, are sometimese years ago." seem to be worthy of further that passeth by, and meddleth ing to Hide" from the St. (Editor's Note: The St. personal and corporate assets But for Americans, t h < not given much attention in Governor Romney added study by the present or future with strife belonging not to Petersburg Times of May 17. Petersburg Times editorial and liabilities, both actual show in the Federal Buildinjjs g the press because they remade that concentrations of power makers of national econ- him, is like one that taketha This is much,needed in terms- .urges- lull financial' disclosure and contingent) one not to miss. at a political forum. among organizations of omic policy. dog by the ears." ,. .. , ... .. . YY . .. $ a r ,> _" r <;-:.- -,; >;<" -. - ._...' -"' v ::- ......... . _. -" -. '-'-' 6 ... r r .4 , t - [ \ , . f ' """" --- ' \ a' GoittesviH Sun Wedtnesc. oy..Mfl* ?Q, I .d4 ...} _..... .. , J., D. Shannon, reporter. nves for a fortnight. xne cruet; Evangelist will e* -1v---- 1.l'R/ !")" 'T.. COLORED NEWS I Mrs. James Williams returned view the !lesson. Hie :Sun d 7 ": MARRIAGE ANNOUNCEDRev. here yesterday =from /mart School:rally twill:be.held:jfollov ,r I and Mrs. James Williams -I ford, Conn., where she 'was lug 'Sunday :School. Devotions 0i.a 1tl1e .Suti..I .8..F.. Childs Colored News Editor announce the marriageof visiting with!her daughter,Mrs. services, ::11 am. Song service tts theirdaughter, Miss Dorothy Thelma L. "Young, and other by the choir. The Chief Evangelist / t. Williams, to Willie (Lemon) relatives for :two weeks. is asking 'the:members to * ,' I l LACROSSE NEWS REHEARSALSCHEDULED Wilson, son of .the, .late.,Mrs. Mrs. Lena Johns left 'yester. be;present ina business meet Choirs' Union The Choral Group of Juvenile Annie Johnson of this city .on day for Deland .because ',the ing :at !the end of :Ihis .service. \ IqJX a: BA R7i EQQr. ?resl4gat p' I, The .Choirs' Union will beheld Lodge No. 113 is asked to meetat May 1 at Miami. illness of her sister, .Mrs. EdnaJ. Mrs. J*. ,D. Shannon, reporter. rppAerf 'U C 1 rrIm. I I Lat tthe [St ;Luke Baptist the jhome of ?Master Donald They will return to -Gainesville =; :Ford, whose condition vas 1 lee, ED /CWt aoN:. rice r & i.t 1 f Church of God :in ,ChristChurch - ,.... ui Executive.* filteri )f. G. , I Church at Alachua, onMay 24. : Ross,'of;704.SW.1:5th> Terrace.-on in the near future to make reported as :slightly improved. Florida's BeautifulUniversity. EBEpcl. Tie* /MtUemt *M ,u. Both.ChoirsNos.l.and:: ; 2 anniversary Friday,for the final rehearsal. : :their home.ALACHUA William Madison, .of High ;School, 10 am.; morn- 1Ii 1 nrtWar Due..,. JBQB 1'AaTAGI I was successful which Springs, passed through ,Gainesville ing worship, 12 noon; Young City'h OWL Tic mMeBt ui' CtrciUUe I was.recently.held. MASS MEETING TODAY NEWS yesterday en route to People's Willing"Workers':Meet t atuF F j i 'To'.Present Program There will be an.important To Appear As ,Guest Choir Clearwater. ing, 7 p.m.; and evening worship : THE SUN'S POLICY, .I f Edna Cooke,' Willie James mass meeting at the Mt. Car- The .St .Matthew Baptist 8 pm.Bishop H. Williams, i l and,Mary'Moore-will appear'in mel Baptist Church today at 8 Church Choir wffl appear .as Miss Mattie Williams, of St. pastor.Mt. . f + : 1. Report tht news fully and Impartially In the news columns. J I, aprogram.at the St. Paul Bap guest-choir at the Mt. Olive Petersburg, passed ,through Carmel ,Baptist Youth , 2. Express the opinions of the yn k--but only Xt-editorials /J 25 p.m.During the meeting, there Primitive Baptist Church with Gainesville yesterday routeto and at 8 tistChurchMay 7:30 Forum : , \ I pjn. today, pjn. 3. Publish all sides of Important controversial 1 Issues. / Jacksonville will be a discussion in regards Rev. H. Sundayat Kinsey, pastor, The a dIn iss ion prices ,are: also both Choirs Nos. 1 and 2 i The Sun's telephones: All DepQrtft1ents-- 72-8*] f I adults, .:advance 75 cents; .at to conditions .at the Recreation 3 pjn.MONTHLY. I Miss Mary Hunter and Miss will have a meeting, 8 p.m.; ' Want Ad -376 4$7Z door, :31.09; children, advance, Department and,,also enlarge'give the some membership reo-- MEETINGThe Madge H. FQster, both of Day- and there will be Teachers' 50 cents; at door, 75 cents.Mrs. tona Beach, were sightseeingin Meeting tomorrow, 7:30 p.m. ognition of the ,10th session of .Female Protection Society - M. L. the Rev. T. A. Wright, pastor; Mrs. ; :Bryant, reporter. University City yester- r school integration.All No.l will hold its monthlymeeting I A Storm Approaches \ M1CANOPY NEWS interested PerSons are invited Sunday May 24,at 3:45 day.Mrs. I Esther Church W.of-Hamm the ,Living reporter God :to tOmeout.. pan. in the dining zoom of the Delia H. Young returned - (Sugar Hill) Rev. E. T. has of fies Commissioners cannot dictate Spring OperettaThe Greater ,Ft Clark Baptist here from Panama From the blue come a clap first through ,fourth yesterday Thomas, pastor, and his con- racial ,thunder, and Gainesville city hirins-tfring pip city ejjiployees. This grades of Micanopy Elementary GOSPEL .SINGING Church. City where she was called gregation will conduct a joint [ The members to urged are I officialdom has scurried to the closet, rules out his interference, maintains School will present their Annual -gospel There singing will be a at program the .Spring of pay :their dues in full. M I's.1 because of business.PRESCHOOL service today at 8 p.m.; the will there to huddle with thumb in mouth. Sutherland. i :Spring Operetta, entitled Hill Baptist Church on Friday, Amanda Scott, president; Mrs.I Heavenly Gospel Singers in Thursday, \ Goldllock's Adventure" Fri- appear a program Marie Brown Rev. secretary; ,1 May 22,at 7:30 pjn., featuringthe ROUND-UP and Elder Armstrong day May 22, at 8 in the W. A. Miles Airs. P. L. 8 pjn.; From behind tills paper shield, p.m. Anderson Brothers, the pastor; watch the billowing and his congregation The rest of us cafetorium of the school, Scott, reporter. Calvin L. Edwards pastor, spon- Heavenly Gospel Singers, Horace I principal Commissioner Sutherland peeks will also conduct a joint service clouds and forked tongues of flame sored jointly by .Mrs. NancyleeP. McKnight and others whose of the Williston Vocational I't j and wonder what forces' are about to hopefully as the. .racial storm brews.. Gill and Miss Ha M. Payton. names were not available. PERSONALSMrs. I School, announces pre-scho I Friday invited.,Bishop 8 pan.M.The M. Williams public is, unleashed and how We are.asking all parents and Choir No. 3. round-up for first graders ( be among us we Sponsored by Lillie Howard, of Willis- pastor ,Mrs. Lelia Miles, re I ; f can prepared for the deluge. The comedy of errors was com- friends to come out and enjoy' There is no admission price. ton, is visiting with relatives at] Thursday, May 21. Parents are porter j pounded by unfortunate circum seeing{ their children in action.V. Mrs. Evelyn Jackson, reporter. Miami. encouraged to register then- L. 'Trapp, principal. and children who will be six years Mt Pleasant Methodist - stance. Two major !city leaders were Mr. Mrs. Willie Manning, whence comest the storm? PLANS ANNIVERSARYThe before Jan. 1 1965. From old on or The Youth Choir will rehearse of Jacksonville Willis- j in New York, polishing off the details were at WALDO NEWS Pallbearers' No. ton last Sunday visiting with Please bring their birth certi- today, 6 pjn.; and Choir No. 2 of A six million dollar bond issue Note of Thanks Lodge ficates to verify the children's will rehearse on Thursday 7 It began a: couple of weeks ago. 113 will observe its anniversaryat Mr. Manning's mother, Mrs. Two Negro couples appeared at the which the City of Gainesville recently The family of Mrs. Alice the regular meeting place onTuesday Bertha Manning. Mrs. Bessie ages.It I p.m. 12dell Turner, president; weekend Teentime dance at the floated. / Jones wish to thank the .many at 8 pjn. Mae Wesley, reporter (Willis- is very necessary thai t1 Richard Parker, organist. Rev. friends for their T kind W. M. Fergson, pastor. I .r many During the anniversary an ton.) parents or guardians come because white recreation center. Drunken acts shown during the death of will be Mr. and Mrs. Alphonso Ed- First Baptist Choir No. 1 One of these men is a titular head interesting program there are vital questionsthat ! white boys danced with Negro girls, our sister. Bessie Washington, rendered. Several outstanding wards and daughters, Mamie must be answered by the will have its rehearsal today, who Gainesville should lead out of thereby causing a disturbance and Laura Floyd and Luconia Johns, persons will appear in the pro- and Helen all of Newark, N J parents. It is necessary for par- 7:30 p.m.Johnson. the arrest'of one youth. the wilderness. He is Mayor Howard sisters; Frank Gusby, Phillip gram. arrived here yesterday as ents to bring their children. Chapel Baptist - McKinney, clearly the official spokesman Gusby and Isiah Gusby, brothers. The public is invited. Mrs. F. I guests of Mrs. Edwards' rela Mrs. Bessie Mae Wesley, re Sunday School, 9:45 am.; for the city/ porter. B.T.U.,6 pjn. Choir No. 1 will Exhibiting a shocking lack of creative * i have its rehearsal Wednesday, imagination, the City Commission In New York with Mayor McKin- NOTICE BELOW OLYMPUS By InterlancfiJ CHURCH ANNOUNCEMENTSShady May 27, 8 p.m.; Deacons' responded by closing down week- Ladies participating in the Baord meeting, Friday, May I end teenage activities at all 'recreation ney has been City Commissioner Women's Day Program at the Grove Primitive Bap- 29, 8 p.m., and also Conference, centers-both white and Negro. James Richardson, who is in a key Bartley Temple Methodist tist The choirs and ushers 8 p.m. Rev. W. J Taylor, pas- position. During his campaign for office 2hurcb: May 24 are asked to will hold a joint meeting today, tor; Mrs. Harriet Jones, re- I The reason given was that the two months ago, he pledged meet at the church Wednesday, i' I a p m. Sunday School, 10 a.m. porter. ! dances had become so popular that May 20, at 7:30 p.m. for re- ur a a creation of a "Citizens Task Force"to wa aw ig1K I p I ingly adequate supervision difficult. was "increas- ponder Gainesville racial problems.He hearsal. WE CAN 1_ ON THE RIGHTJohnson = , more is, in fact, the only Commissionerso NOTICE pledged and dedicated, and this All juvenile members of d To us, the logic was about the doubtless played a rolf in IDs elec Lodge No. 113, who plan to take same as closing down>the Fire Department tion. the trip to Tampa, Sunday, May , 'because the city was having 24, are asked to meet at the : t \ fires. home of Mrs. P. L. Scott, of 514 t too many Gainesville for the second The consecu- SW 3rd Street, Sunday at 5:30 King'By tive spring faces serious racial up- ajn. Cars will leave for Tampa N // We are aware dismissal of school heaval, which is part-and-parcel of at ,6 a.m. sharp. r w Q WILLIAM F. BUCKLEY JR. ! for the summer will idle Gainesville the national Negro movement for a t w? youth in the next two weeks. We place under the sun. Gainesville'sproblem SOCIETY MEETINGThe Home Mission Society of Lyndon Johnson for all his President. An observer said , know warm weather will encourage will not be solved if the simplicity, is acquiring some once about Mrs. Roosevelt the Mt. Morian Baptist Church activity outside the home. We know dialogue between Negro and white is kingly habits. wherever he that she treated all the world meets with Mrs. Lillie Veal, of Gainesville is capable of racial ten- silenced.It 720 SW 6th St., today at 8 p.m. J .: .'. goes now a days he seems to like her own, personal slum sion. We know the need for solvingour have got into the habit of project, Mr. Johnson, who making a royal gift, like i told a reporter in Decemberof problems-not evading them. will not be solved with City PROGRAM BY CHOIR the kings of yore who when < last year that be considers ': Manager William Gr en'.: wishy- The Progressive Choirs' Union visiting their provinces would ]himself more liberal than with Levi Griffin president, , another scatter about a chestload or J Mrs. Roosevelt, doesn't ex- i Then comes development.The washy "personnel matter" approach.It will present its at the Acosta direc- program VN/lRi+ W.t7pCW I1M 4'6" two of ducats among the ,actly do that: It is not a partof city fires Harold will not disappear while City Com Mt. Olive Primitive Baptist peasants, as evidence of their his psychological make-up tor of the Negro Community Cen- missioner Alan Sutherland leafs Church Sunday at 3 p.m. "We need more censorship in literature in movies, royal favor.Considering. to suggest that all the world is ter. But, most important, the city hopefully through the City Charter.We The public is invited. Rev.I on television uh and on beaches!" sort of Coueist optimismand H. Mrs. Quincy how much Kinsey, pastor; Mr. gives no reason for dismissing Acosta. joie de vivre combine a Marks reporter.no J nson is given to traveling City ,:Manager William Green instead suggest these three routes to about, there is some fear for sort of Coueist optimism into a flamenco dance sound racial the endurance of the ("everyday in every way the goes understanding: paIn world is THE CONSERVATIVE VIEWPOINT getting better and about ,"this is a personnel matter" mony. His trip to Appalachiacost better") with a Donne like m i mmm m m* -* * which will be handled "between the ((1) The City Commission make the royal exchequer one sensitivity (lie ve ryman's parties involved." the dramatic move of reopening the billion dollars. When he went death diminished me, for I I to the World's Fair to New Profit-Sharing Ideas up am involved in mankind") to Gainesville youth programs on a speak to the Amalgamated human want. ' It just so happens that the firingof sounder basis, reinforcing the pro- Workers Union he was not Acosta whether for justifiable grams where weaknesses have been By DAVID LAWRENCE Nor did Mr. Reuther of the employers and unions are be- of mind, and dropped- there- HE DESIRES to settle all I reasons or'not-ris not a "simple per- apparent, whatever the cost WASHINGTON The big auto workers union-if, in- ing promoted in this countryand fore a mere million dollar the problems America bas- sonnel matter between the par- profits which the automobile deed; he did read the speech are producing repeated gift to the cause of juvenile even while assuring us that industry recently disclosed -heed the advice given. What national emergencies." He delinquency in Harlem. There America doesn't have many ties involved." It has, in fact, put the ((2) Mayor McKinney conduct an have attracted the cov- Governor Romney said is, declared that the automobile was a splendid opportunitythere problems. He wants to solve Negro community in an uproar. And investigation of the Acosta firing, etous eyes of the labor un- however, a new approach to industry must share its progress I thought, for Nelson the problems of race relations, this ,has incited a goodly. segment of and either publicly justify the dismissal ions. Walter Reuther, presi- the wage-price problem of the with the public, evenas Rockefeller to upstage him of poverty, of old age insurance - the whites. To this uproar, the or initiate reinstatement. dent of the United Auto Workers day and certainly is signifi- the employees themselvesmust by making a gift of two of deficient schooling, is quoted by the United cant beyond the realm of par .share. He made refer- million: but Nelson Rocke- of Communism End of Cyprus.His . Gainesville Sun's 'telephone operatorcan Press International as having ty politics. Extracts from Mr. ence to a profit-sharing plan feller is busy these days, contribution towards the attest. (3) Racially-pledged Commissioner said in a press interview in Romney's talk follow: that he had put into effect spreading his wealth amoungthe solution of this last is Senator Richardson-along with :Mayor New York a few days ago "As a matter of fact, I thinkon when he was president of peasants of California... Fulbright His contribution We didn't expect much more than McKinney as the city's official that the UAW would, in its the basis of current econ- American Motors. He contin- FT IS A VERY interesting towards the solution of the new contracts, try to relieve" omic policies that it's just ued: others is to spend more \ this inane, statement. from City Man- spokesman-reopen the avenues of precedent, this business of 1 : General Motors of some a question of time in this As far as I was concerned, audience money, enact more laws, and renowned for communication between the white facing an makinga is not ager, Green whp of its multimillionldollar prof- country before we'll face a I undertook to embody that executive trust in the good faith of the his courageous stand in the face of and black segments of the popula- its.Now real economic crisis, and I in what I called a progress- grandiose, and then sitting commitment Soviet Union. contrary winds, but we certainlywere tion. comes another news think this is because we have sharing contract that we ne- back to watch Congress writhe shocked by the position of City dispatch from Washington been ignoring certain defectsin gotiated with the UAW in with embarrassment One An extraordinary man, no doubt about it. A man with national economic 1961 and this'contract - Commissioner Alan Sutherland, who Gainesville borders on an abyss quoting a high governmentsource policy ; starts night in 1961 John F. Kennedy } chiliastic fervor: "See that as saying that the that are sooner or later goingto on the premise that if labor conceded the ,Acosta firing has put which could cast us into a dismal Johnson administration doesn't catch up on us. and management and capi- called in for a good problem? Believe ia me. See dinner at the White House at " his phone to ringing'also.I racial swamp, thus blackening the expect the forthcoming negotiations NOW THE FACTS are tal are to prosper, then the bunch of Latin American dip- now the problem is gone. city's name and shamefully defiling between the unions that under the current laws customer must be the first to Here indeed is a true difference - lomats, and before the between and the companies to forcean we have in this country, per- participate in progress." the liberal Commissioner Sutherland's hiding all that is human and holy. evening was over had promised and the conservative mode increase in car prices." mitting the concentration of REFERRING TO the com- : place is not a closet. He grabs the So it's apparent that the un- economic power, unions and ment by President George them 20 billion dollars for the conservative recognizes j petticoats' the City Charter's Sec- God grants us the foresight to do ions will try to get as much employers have largely been Meany of the AFL-CIO in Atlantic in the course of the next 10 the problem seeks to do tion 14, Subsection C, which speci- Justice-in time. as they can out of the com- picking up the results of progress City recently that gov- years-an expensive dinner. something about it primarilyby Danies nrofits. But there is and the ,customers ernment intervention in the The routine, as I say is harnessing human in- indication 'as to what the have not been sharing in that fixing of wages and prices to make the promisethenstare stincts, rather than by harnessing - consumer may get, except progress.The means destruction of collective Congress in the face g overnamental ma- possibly the assurance that thing that has made bargaining, Governor and more or less challengeit THUS THE.PROBLEM of Voice of the People the prices of cars will not be our economic development Romney said: to call you a deadbeat. poverty ii one that is met raised This win be called broad, and has stimulated it, And not only are we in the Congress being as Congressis more successfully by the I[ wage-price stability." has been bringing more and process of' going down the these days, Leo;, fearful of same means that brought this ) ODDLY ENOUGH, a dissenting more customers into the mar- road of destroying collective public opinion, benumbed by nation out'of poverty into af- Qn The Sun's Opinion Page_- view has been expressed ket. The reason automation bargaining-we're also going the ignorance of the average fluence in the past two hun- by a man who not only which is not a new thing ex- down the road of destroyingthe voter about the source of all dred years, The Liberal mode Ootafom ..* cwMMttat .* Su. radon .r* W.!CMM !. th. Yi<. .f tM Peopl. cor.... Utters has often been mentioned for cept that we are using different private-enterprise systemin those funds he is constantly so many xrore: people becauseof I must IN lita" .a4 Ian tK. writer's .d4'.... NCIMS win V. wHU U if 4HsteL A letter KuU the Republican presidential techniques, but as a prin- this country, and we're showering about the country its capacity to give instant II net .xc.*4 500. weNs s.J mmtt be writtea *' s ..hr.*. Ii.'. .* ... 99tetry ca....* to us....Tfce nomination but who, prior to ciple it is not new the ,reason throttling its operation." and the world (they come, gratification; is to do away the right t* reject cay letter r t. sfceftea it, witfcevt caaaaiaf the writer's aM Biafl w Sun nutria election to his automation is not j The said Governor f...__.. present post as produc D g Michigan of course, out of the voter's with problems by acts of In.5a. Governor of Michigan, headedup more jobs and enough jobs, that to permit a concentration own pocket), weakly suc corporate mtional resolution. Supports of the many cross currentsof by both High and B ru. High a big automobile company.He is because customers. are not of private power by a cumbs. With the exception of Lyndon Johnson is a perfect politics and governmentand compiled. Boras has not especially recommendsthe being made the principal combination of unions or em some of the squanderous built embodiment of that kindof Disclosure the interests of the majority High promised to do so every public should get the ben- beneficiaries of our- economic ployes not only thwarts economic around the foreign aid programs national exuberance, and i 1 of citizens. The' tendency to year while governor and efit of high profits by being progress. Now that is number progress and the employment I cannot think off hand be is giving I is< a.wonderfulride. EDITOR-Sun We are much avoid sharing in politics in our afterward. The given a reduction in car one. and the use of automation when recently Congress has Sometimes, if I close my p pleased by.the. vigorous editorial nation is a reversal to conditions one year prices. And this Is important be- but it also increasesthe aborted an act of royal lar eyes I can ainost hear his policy and practice of that favor undemocratic Times editorial arises that What Governor George Rom- cause we have a conflict in reliance on government gesse. music. But I 04 have to dose I the Gainesville Sun and for government. The editorial the sources of Income of a ney.said on May 7 was .not our national economic policy, ar" the go- nment keeps eyes. the many editorials that reflect should be placed at the'disposal high public official are of Ie- widely printed. He talked Informally and this mnflirt: in our national stepping into this process." MR. JOHNSON then is in my a high degree of sensitivity of the Burns campaign managers II m* concern to the penile at the Party-to- economic policy is as fatalto These are not the kind of a position to make the United When they art, open, I seethe ) _to social and economic and a request that they steee these sources may People Forum" in Chicago economic growth in this thoughts the country is hear- States Treasury a depressed line In the Bible which I I ethics ,in our society today. support it because of clean affect public deckkms. Each sponsored by -the Republican country as the conflict between -- ing from any of. the avowed area if he keeps it cp. Thereis Arthur Krock hai frequentlycited , l Thank the whole. for us. and good government day nrtfl election, the editorial National Committee, and such slavery and freedomwas presidential candidates of ei- an energy aboat the man from Pro+;orbs 25-17, We wish also'to urge you to A. R.'MEAD states, a Times reporter talks, though delivered at in the social field a hundred ther party, but they would which mortifies those of us which warns USA; that "He, I reprint the editorial "Noth- will ask Burns to disclose his open meetings, are sometimesnot years ago." seem to be worthy of further in our thirties, who would that passeth by, ard meddleth I ing to Hide" from the St (Editor's Note: The St personal and corporate as- given much attention in Governor Romney added study by the present or fu- not have the energy to give with strife belonging not to Petersburg Times of May 17. Petersburg Times editorial sets and liabilities, both ac- the press because they are that concentrations of pow. ture makers of national economic away more than a few' million him is like one Oat takes This is much needed In terms urges full financial disclosure tual and contingent) made at a political forum. er among organizations of policy. dollars a day, if we were a dog by the earsr / I it f \ \ tJ . L \ 1 , ........ f -. ......., \ Wednesday May 20, 1964 Gainesville Sun 7 Fla. 'Sw mp Merchants' Under FireWASHINGTON Robert Kennedy Isn't Eager for Senate Race I AP) Journal told a Senate subcom- and Misrepresentations Affect- Paulson asked why are peopleso The nearest settlement to Can- chance of Improvements ! any tors were told Tuesday-sena-I mittee that "It's high time we ing the Elderly also heard from I dumb as to buy land without averal Lake Estates, Paulson ever being made," Green- NEW YORK AP) Atty. staying on as attorney general" j "swamp merchants" are got some good, tough, inflexible Robert H. Doyle of Titusville, seeing it, and then he explained. said, is Osteen, a hamlet 11 wood said. Gen. Robert F. Kennedy says he until after the November election { poor Florida land by mail and laws governing mail order real Fla., that there should be speci- Many people, he said, be- miles away. To get Jto the subdi-. has had conversations about the he said. telephone as acreage with a estate-laws that will put the fic federal regulations to prohibit lieve they are protected against vision from the east, one must Oliver E. Payne assistant possibility of running for the New York Democrats are look- profit-making potential. swamp merchants out of busi- fraudulent or misleading fraud and misrepresentation by drive 23 miles ,over dirt road.i attorney general of New Mexico U.S. Senate from New York next ing for a candidate to oppose Re- Morton C. Paulson, business ness once and for all. advertising in mail order subdi- government regulations. In some Official maps and aerial photos,I said that "our experience fall but, "All,things being equalit publican Sen. Kenneth B. Keat- editor, Daytona Beach News I The Subcommittee on FraudsFlorida's vision land sales. cases they are impressed, he he said, show part of the property indicates that our state law would be better for citizen. ing in November.The . Doyle, executive director of said, with glittering credentials is swampy. I needs to provide a regulatory of New York to run for the posi- the East Central Florida Regional presented by the sellers. I-I agency, such as our real Estate tion." Going Planning Commission, also For example, he said, the Uni- Other acreage tracts P a u Commission, with adequate Kennedy told a news confer first mint in North Amer- said each state should enact le- versity Highlands brochure has son mentioned. as West promotion II authority." to control local selling ence Tuesday that friends had ica was in Mexico. Establishedby gislation to permit cities and pictures of four of the principal developments were Daytona -' raised the possibility of his seek- :a special charter of the Treasure counties to regulate the subdivi- officers of the company promoting Acres.Acres and New Smyrna He said that control under ing Democratic nomination to Spanish crown in 1535, the mintin HuntingTALLAHASSEE sion of land within their juris- the property, the First the mail fraud provisions of fed- the Senate Mexico City still produces diction. Warren L. Greenwood eral law has been ineffective in America Development Corp. of former "I have no plans other than coins.1 (AP) The State Cabinet put Florida in Every city and county, he Hollywood, Fla. president of the Daytona Beach controlling advertising and protecting -- -- -- the treasure hunting business Tuesday, but at undivulged said, should adopt strang subdi- Paulson said that the presi- Board of Realtors, said that prospective purchasers. Support and Re-Elect ; - locations.It vision regulations, insist on rea- dent of the company 'is Frank salesmen imply that the land Payne 'aid that unless all: authorized a state agency to go looking for wrecked sonable improvements and sep- Cannova, a former assistant at- be re-sold soon for much more states provide state regulationssuch I'' CLAUDE BRANDONCOUNTY ships in Florida's offshore waters. The authority was givento arately inspect each lot of five torney general of Florida; a than the purchaser would pay as are in effect in California the trustees of the Internal Improvement Fund. acres or less.Monday vice president is former Gov. for it. This, he said, in most in- and Oregon, federal regu-' COMMISSIONER"The Director William Kidd said the state would not do the ac- real estate authori- Fuller Warren and another vice stances is pure fabrication. lations may be needed. Cali-, tual diving but would hire a salvage firm on a commission ties from Oregon, New York, president is T. Frank Hobson,' "What the purchaser doesn't fornia and Oregon have laws i basis so the state would not be out any cash in case noth- California and Colorado oppos- former chief justice of the Flor- know, and is not told, is that requiring appraisals of land;: I Independent . ing was found. ed proposals for federal regula- ida Supreme Court. without drainage, roads and oth- being offered for sale and full I Candidate"Vote "There are two wrecks we think we can locate," Kidd tion of interstate land sales. "That gives it all the dignity er improvements, the land is all disclosure of the state appraisalto ' A said. "One is a Spanish ship and the other a Confederateboat. Tuesday Paulson said he it needs to prove its reliability," but worthless and that once own- prospective purchasers. I' for the man with a A ." didn't want to create the impression -observed Sen. Harrison W i 11- ership has been scattered among Payne said he thinks prospectsare record of representing the proven interests - He showed the Cabinet an 1852 $20 gold coin he said was that Florida real estate -iams D-N. J., subc o m m i ttee thousands of persons all over good for similar laws in of ALL the people. (Pd. Adv) from the Confederate vessel and a Spanish coin he said was is all bad. This definitelyis chairman. the world, there is virtually no New Mexico. II. I from a wrecked pirate vessel. not the case and I cannot em- Florida's coastline is dotted with old ship wrecks which :phasize the point too strongly.I . ' [ produce valuables in unknown amounts. The state never has believe that most Florida de- been able to police explorations properly. velopers give you your mon- Making the salvager an agent of the state with a state ey's worth, and a few are doingan employe looking over his shoulder should enable the state to outstanding job," he said. get its proper share of the findings, Kidd said. Paulson the subcom- gave He said the salvager would be offered 75 per cent of what mittee several examples of "in- /i i! ii -a-- AU he found, with the state keeping the rest. This was the same I vestment acreage" promotions ; division provided in treasure hunting leases given private operating in Florida now. Thosehe ; - _ individuals.Kidd . named include Florida _ declined to give the locations of the two ships which Ranchette Acres, University ) :j will be probed first. He did say one was in the Atlantic Highlands and Canaveral Lake _ Ocean and the other was in the Gulf of Mexico. Estates, all within 16 miles of Daytona Beach. YLxfr \ Most of the property in Flori- _ Storm da Ranchette Acres, P a u Ison __ _ Gathering said, has no roads or drainageand __ _ no clearing has been done. - The Ranchettesan acre anda i htt' of land-are adver- _ On Baker ProbeWASHINGTON quarter tised as speculative investments, and are priced at $695-$10 down and month. /Y Y'F "We Meet Beat All $10 a or (AP) -Storm I Ky., one of the committee's " and - In I clouds appeared to be closing in I three GOP members, said hen advertising promoting , the this , today on the proposed report o I was sure the Republicans will property promot-j that it.has Advertised Prices in ers say - the Senate's Bobby Baker investigation -draft a minority report protest- it potential'," Paulson said. ing any conclusion that an exhaustive "They infer that an investor can I, The Rules Committee, which i investigation has been double or triple his money. They OPEN This Area" carried outBalked conducted the probe into the affairs don't say he can go out and liveon of the former secretary to in their efforts to have the aren't property. They White House aide Walter Jen- 11 am-11 the Senate's Democratic major- permitted to advertise the tracts pm ity, called a meeting to discussthe kins and others called as wit- as homesites because of the draft report, but apparentlyonly nesses at the hearings, Repub- lack of improvements." Democrats were to be on licans have cried "whitewash." Paulson said University High- Jiand. lands is being advertised all over Closed Sun. eUfljer,5ttJXtU ALL PRICES Republican members sent Sub Base Pact I he country and sold by mail as Th wprd they probably wouldn't homesites. The brochures say GOOD THRU mike it because they have to attend PARIS (AP) The paper the land is varied and beautifulbut MAY 23rd a Republican senatorial Figaro said today that the Soviet Paulson said official maps conference on proposed amend- Union and Algeria report- indicate a large percentage of its V.$. 441 South ments to the civil rights bill. edly have signed an agreement swampland. He showed the "' Sen. John Sherman Cooper, R- providing for a Soviet nuclear subcommittee a picture of a submarine base in Algeria. man in boots standing on the No Deliveries fRanklin 26333SORRY Prisoners The Figaro dispatch was University Highlands property. written by its correspondent in Madrid. It gave no further de- The IdealRememberance Have PHILADELPHIA Rights 0V) A: tails. Iff For.>>. DISCOUNT LIQUORS( federal judge has forbidden use Coney Island was overrun by Shut-Ins of prisoners in line-ups unless rabbits before it became Brook- lyn's seashore kingdom of the police have the prisoners' per- CREVASSE FLORIST : hot dog. The name is thoughtto mission. ; Dist. Court Judge Abraham L.I, be a corruption of the Dutch 2015 Phone SE Hawthorne FR 6-2514 Rd. We Are Cheaper By The Bottle Than Others By The Case 'word rabbit Konijn. .1.1'I Freedman ruled Tuesday there I . was substantial merit in suits filed by two prisoners at the i'I ? Auto Insurance Problems ? I City Detention Center in CALL 372-1433 SPECIAL SPECIAL I Io Holmesburg. They contended 98c forced violated participation their in a line-up Haythorne Insurance Agency . constitutional WE INSURE EVERYBODY rights; I I Ancient 1/2 PINT 'BASKET N Genuine Sour Mash NO LIMIT SALE! : EZRABROOKS H Swing ToMIImU Age BOURBONS . Bourbon GINS ; BLENDS Ith4 4.98Philadelphia I I II II I 3.68 STH VODKAS i I ; REG. S.IS REG. 5.95 5TH SPECIAL J3L H IMPORTEDHAIG 90 PROOF ! r, V CALVERT I & 8 Yrs. OldBlend . THE BIG MONEY HAS SWUNG TO BURNS HAIG GIN *. 1 / The PEOPLE..Swing To HIGH 86.8 Proof ;:: :: 3' 38 :: 5TH . 3.28 ' 5.18 Sihi ,. I STH REG. ..0 j Special Inteests Will Count With Burns Reg. 7.15 i .. REG.. 4. O' ' "Jr i / YOU Will Count With HIGH SPECIAL -.- - : DON'T LET DOLLARS . 4 RON 8 Yrs. OldCHARRED FIVE FLAG :! COUNT YOU OUT! :;i ii BACARDIRUM i It's HIGH Time OAKBOURBON' VODKA 80 Proof t' Robert KING HIGH For Governor 80 Proof Reg. 4.19 3.98 3.28 '.78 .. REG. .,, 5TH REG. 4.65 STH 5THy. I (Pd. Pol. Adv. t I I Ii . .......------- ""- r = _.........___ ---'. .__..... ... .. ___ .. . : . : : -" . ;zt.: ; z- :::: ::::::::= ; : :::.......:.::..:....: -::::-.:-.:---- J --- - . i sun' . a Gainesville Wednesday May 20, 1964 , , -- .... / , FOR VALUE. UNLIMITED VARIETY. & FRIENDLIER SERVICE. It I \I POD Think 0[[MiC J-L Food Fairl . . . l : i 11 11 11 11 11 11 :MerchantsMarch nts' Merchants Merchants Merchants * CN.STAMPS GKEH5TUIPS GRUN. GREEN S1MP$ GREEN STUMPS GREEN STAMPS GREEN STUMP! GREEN STAMPS GREEN STUMPS GREEN STUMPS t t11 ttREN Sa i :;!; 1 tttt ,,. .' Prices Good Thru Weekend S FLORIDA GRADE 'A' FRESH WHOLE n .,. n Quantity Rights Reserved WINNER! ,Local Pepsi CcSa I'CI;; 'W'" "' LIMIT WITH 5.00 OR MORE ORDER :] Shopping Spree! MRS. SALLY STONE, r 2100 N.W. 55th St., Gainesville r a,Mt will shop for 5 minutes Thursday, May 21, a :, Fa at 8:30 a.m. here at our 'local store. .. < LBi5 - (I 1 ---NS MORE THAN ) HENS SOLD Ii'St NEW Better Homes 8..1 e e e f! COOK BOOKSndGardena r ::19vvtokfct; BLUE RIBBON QUALITY,SHANK CUT 1 Amazing value! For a limited time only, you can get each volume of Better Homes & Gardens new Creative Cooking Library for L8BUTT I t only 99>!. New books on sale each week! . . If EIGHT BEAUTIFUL COOK BOOKSGET FYNE-TASTE Plain or IodizedSALT HA M BUTT CUT OR WHOLE 45$ lb. 1 THECOMPLETE SET! Meals In Minutes Barbecues And Picnics 9 9 . Lunches And Brunches BLUE RIBBON QUALITY BEEF Best Buffets So-Good "' 260z ROUND BOY Meals Snacks And Refreshments "" ..... >"\ -_' Lji CHUCK STEAK LB 49c 1i S I Meals \ BLUE RIBBON QUALITY BONELESS Merchants , I \ .g' \ FLORIDA GRADE 'AI FRESH 1 1asuN.rsMP With A Foreign Flair SHOULDER STEAKLB7ge 1' s ! Birthdays And Family BLUE RIBBON QUALITY LEAN FRESH 1 FREE EXTRA ' - MERCHANTS GREEN STAMPS ; Celebrations \ < E G G 5 19 1 WITH IM1S COUPON ANOrUKHASiQfFlaer , 1 LBS 1 II 1 IJ" '. BLUE RIBBON QUA!ITY FRESH / p c*Cro i 1 t kIA Fryer CombinationFREE ; \. ....:-,-s '-I MEDIUM SIZE'. PORK BUTTS LB 3SC2g 1 r.pp9rTOt)4U.SVOeVCV1 erONR.C.. 1 -- '----"" '" 5.21.64------ BLUE RIBBON QUALITY FRESH i rV , e cue LIMIT WITH FOOD ORDER 49C j f Merchant I 8Ir'lI formed-froen breded veal or 1 1 v A Uf* : / 1 aREENSIUMPS 1 U69 C 1 1 EXTRA I 1 LIMIT.2,2 ROLL PKGS WITH ARMOUR STAR ' GREEN STAMPS DELSEY BATH WITH 5.00 OR MORE FOOD ORDER I MERCHANTS ' FRANKSk49c WITH THIS COUPON ANO PUKKAH Of SKINLESS TISSUE 2 19 LIMIT-2 DOZEN WITH '1 tOtl- Blue Ribbon Quo!.Col.jgap t ,r t4 t- 5.00 OR MORE FOOD ORDER PEELED& DEVEINED FROZEN I I BEEF ROAST , ROLL PKG 1 SHRIMP 279 ' GOl DEN ROSE PLAIN OR SELF-RISING -I-- LB BOX .-M*MK.ONIOMS'.PStOJnntnMOllOb.LKW7e....neune 5.21.64------ LIMIT WITH| 5.00 OR MOD 'R '. ,_ 4 E. FLOUR SLBBAG33 5.00 LIMIT OR MORE COFFEE FOOD WITH ORDER SANBORN CHASE & FAIR FOOD .- -.-'''-::..-." ,<-.-.- -,- -- -- --=::1A" :' ,j.f : I COFfEE 59 ' r 49c ' LB CAN LB CAN ; \ 1 LIMIT-I DETERGENT WITH 5.00 .. . OR MORE FOOD ORDER DASH FYNE.TEX ,, BUY 1 AND MORTON FROZEN ".'-*. t.,_,.J N ."x', .::<<<..,:'. -"" > " GET 1 FREE POT PIES. e DETERGENTGT 49 :rG 3'9c 'H i..;(:.,,w'."...'"',,4.tCl'. !'l'''' J if..,.../..,.IiL,, _:':.1\\'. " ,. BUITONI.15oz CANS .. LIMIT.1 SHORTENING WITH : : f" " chieken.turkey.b.et'and SNOWDRIFT or cvue-BAKE 5.00 OR MORE ORDER .... \... ,: : j Ji. 'ivd. : ,'<' ;,.. .f Y" y" BEEF meat balls 6 PKGSRAVIOLI' 80& $100 :SHORTENING' 3 CAN LB 49c c\<:!4f '<.'- / L/.' .. > / with each book! LIBBY'S FROZENDRINKS FF DELUXE PEACH. APRICOT OR PINEAPPLE 50 FREE STAMPS CHEESE 'SS'T FRUIT FLAVORS II PRESlktt) 4 JARS I2oi 100 SPECIAL OFFER FROM FOOD FAIR! RAVIOLI REAL CHINAWARE LOVELY Lunches And Brunches Dozens of delicious 10 99 FLAVOR LIMIT-1 OF EACH CANS "OLD DANIA" PATTERN. THIS with toast waffles salads OffER PER FAMILY CR MFLAVOSCALLON49: ways eggs, soups tI IIL -a ICE WEEK'S BONUS BUYCOFFEE....... and sandwiches eat and run lunches V --- ---------------- brunch boutique.; + LADY FAIR.49< VALUE.GIANT SIZE FRE-MAR 100% PURE 1''1 FREE EXTRAMERCHANTS GREEN.nuws Merchant l 1'1' ANGEL FOOD'if G39 j II MAYONNAISE QUAR139c CUPREGULAR GREEN STAMPS LADY FAIR THIN SLICED.BIG 1H> LB LOAVES ,_ TRAPPEY'S 39$VALUE I 160: t WITH THIS COUPON AND PUKKAH Of OKRA & TOMATOES 2 3Sc , 1 F14p Better Homes& Gardens 1t PULLMAN WHITE BREAD 2 49 CANS , 114jq CookBook YOL 2I ' I i II S.r,0MS.r S tlClM ,",o* uKwStvoo.rer w.- .- .- .- .- .- .- .- .- .- .- .- .- .- .- .-- .- .- .- .- .- .- .- .- .- .- .- .- .- .- .- .- .- . -- 5.21.64------ .:. o . , .u AP tE 11r .rr < /( FLORIDA BANTAMtIt r chants 1. .mfSweet. .. Mar ". I t 1 ,;, t t"J' t Ett45S C } .< ; .: t CORN EACH 1 ; ,; ; 1 EXTRA I I.'tJ--t: t; iS1M ' EE , 7 . I FR r ,... ,f: pSE )0 { [ R ;J I eu o TY ; 1t 1 wl iKmis cou OZEN x ANY YARIE, I I \ \ .'. ,........ i f CRISP CELLO WRAPPEDCARROTS VITH EACH $5.00 PURCHASEGET 1 TONER : : FIRM RIPE t F4t 3 MOR 3 2 1 1 > ![IfrOMATnES LB PKC 7c 1 PIECE WITH 5.00 PURCHASE... 1 A1at sr. ,- .. 2 PIECES WITH 10.00 PURCHASE... . f 1 esYOU t EnrtxiTM'rr ourrr 2 3 PIECES WITH 15.00 AND SO ON.LOYELY . totes t hftE 5.27.64l .Sw CTHS,2geYca Rs EA.5c ., n+ADrr r VOOr ,, t COMPLETER --- --------------- f I ifIijTf--I: : !j I I,"): '.....;<. '<:".'' ..'. '"_,,-,,,_.T -< '4".':.",.ot. -;:..,."-_'t...-.,.;...'.. -. <; 1-' , - .: .' > < "' : i.> ., V. ' .:c :1'. .W-4i e. : ; ;>; > '. '" , , } .. .. : ; " .. ; " : "" i jt4 -- "" 'J. iUt-'v' -, 'fJ': : ; ; ': :)' ;: : :" ., { : i. .' h. ' ;: ;;l : : ; .; ... .'...... ] ,4S ,0..;.;., ..- ,, ... ' < ':" ." -'t'.':.. __....... 1" ", ". : ': ;;'>-; ':" .. .l.. ., +lt ,. + .. _:, ': iCI < -- '" -"W-3-. .i :II\! ?"""'" J "i' - I[f ; .. : ':.... "W--:/:; ,:- "' ',, : _\._ -." f'.:,.t ;: :.. ':2""i- ,c' .' \\.:.{, ..'-; : '.'\ _J1 t.j: ;:.; -, a: t -' '- ,. '.I "," ' > ,:" ';. : ;.. ''' w.jt. ." : : : \ : ? : : .. :. 4.- .----.t ... :-" .', 'ii' -.',, '.!f-" .. ,;r ?" ':]r c--,;.- Kf? .' : , ;' : *' :: '' \f f : ' ] .;i ; .c , "t; - j \ ' , c J i i: =4' (, .".' :-\' ...;:., ', ,.. -. .. ..... t'f" > .._ """- St. 'C" a: .- r ", 1; :: .. "_ : ' . ... . '" >> Ot"'C.,...., 'J'I. t.';'..!.1. _;--.:\-4. I eaders of the Gainesville Sun - ..,. ," , or . .... .... o{ _.. ( , , in Alachua and surrounding counties r- ,:, .t ; y 4 rS : r. ;.f, . .Ie - ; l' : will be spending more than $12,000 . . .._: \ '. \ ; -. : . -'. \.. 4 t. : .. ., . .:* '-* i : : on graduation gifts this month! 5 , :, ... ." .:- . : ;'s: .. . t 'A" >: : ; 2f 1}:...:! -. ' -----5---- '\f.' ' :.! .= : 4.; c a ''''': 4'1 5- : S : ,. 'y l- -: l F'Y"' fs: ,: "fl "-> P' I .R :: ::: <, <:' '. . ', ;' ..a .' .r .'. .. .,t., , : :; -:13 '". IJI r : :- .1i. 1's:, ,; ;. I -, "; :- : .' : 1 t. ... ::if: .: .' \!'. ; 7, . i ""--,,,-- .a;., fd.JI".; tt,1 j. . - 'i I ;1,Jl1i! >. ., ; : ',; : /7" .: . j ,,-...,,...- '. -.. :; "' ' . ;; 4 ;' . " ; , ',a'" ", .'",- .. .. .,,..1.--..):,;" """;,. ._ \ : <.i ' ;, .i " ;.: l.. ..;e'f+_;fi ... ,. :' , : ". 'sr -.. :: ; :- - y n .. ' ": ; ..( .:f. : :< '. 'S. .c. ,'+ $ *...+a > .. ' -- -5 .f\ S " 5- : * S : < "' ::' ;; L lk : : ' "4 Y r -35- : ?; ,' : ;. A total of 1692 students will graduate this June from tFfepublic : :'; :j >: :', l ' .- .:\.;. _AJ.'i. .? ." schools of Alachua county and the surrounding -: > r . " t counties and, the University of Florida. Congratulations ' .. < ..._;.... ,', ; '. . : ' are in order-and a gift i or two. ;' :. :-- : f w." t , ., .<. : . You can reach and sell proud parents .by advertising'C': : ,. -,, : '. i ',- '.,:, :: .. '.:. .'-: ". t /" graduation gifts in the Gainesville Sun. y. <:1 ... ; .';{" p t l . . - > \ : .r ,-'- f - t YVI, : .. Proud parents: will find a hint on. what to buy by read- i '. : t: : ." _:. rKi\ -t . f ". ;:t f', -. ;Q . " :: ; this ;-. : newspaper. ,. ':. .. \M1',. .., .. _) .. , f 0""':' I. !2>*' fi-* s ? .- R" -, ar '< {l: ; 'tL: S :- ../r., '" t", ; .l> r --...#:-.. J i ,- t.- . --:.-:--'''' .,.. ...... < ........ -;;.- '. '-. --.;. y... ...........- . . ... . t4i1. - ? \ Aq'j. ;? ; ) "\ : '7 :3 1 , : ''. :': H :- 1i - < < a-' * jpf \, t-.' ". -,. : ""- _. _._-, +, -.-,'--. .f .. ,,:..( : t '. S - '- .. . .--- .....Ii.-- ..>>- ? ::22; :.:. (J atosmlk :P, '- f:.t , :_ .. :- ;'r, :. t . "- ._, .r.. ; '. .,> un '. ., !1 !. ; Jt-s! -J -: 'i. ':' .'- .-.-' : : < -l. . . -' WE LIKE IT HEREr .. i i _._ ._ -- - -- - ", ., < . ." ' -'I- .- , \ . (I (I IJI Wednesday( May 20. 1964 Gainesville Sun 2t I (JI; Only $284 Net Profit - I "SUPER-RIGHT" FINE QUALITY HEAVY WESTERN STEER BEEF R From Lady Bird's Farm A , ' . BILLINGSLEY, Ala. (APP on the part of the First Lady. Y. " Mrs. Lyndon B. Johnson's farm The overseer added that there in Alabama brought her a net are tenants living on the prop- 4 profit of only $284.23 last year, erty for whom Mrs. Johnson ,I the overseer of the property wants to provide a lifetime said Tuesday. home. Wallace Canterbury, the over- Canterbury said he tried to seer, said Mrs. Johnson's gross persuade Mrs. Johnson to put income from the farm in 1963 the farm in the soil bank when 1 k \ I was $2,463.41 and her expenses he became manager five years w. $2,179.18. ago. He said she could have J The farm came into the limelight realized as much as $5,000 an- recently when Reps. DavidT. nual profit that way. i Martin, R-Neb", and M. G. "But she decided against it YJ Snyder, R-Ky., described the because she would have hadrto i tenants on the Johnson property : displace the tenants and also as impoverished and their because of her attitude toward When you compare prices on steaks, take into consideration QUALITY, homes as tumbledown shacks.A accepting that much govern- '.ii: "? TRIM and CUT: And, you may have your steak cut thick'or thin ot A&P White House spokesman ment aid," Canterbury said.I I :: ; at NO EXTRA CHARGE. I answered the charge by callingthe rental of the homes and plotsof Close Trimmed CLUB land to tenants for only $60a Egg Market :.v..:: Your T-Bone year a humanitarian gesture JACKSONVILLE (AP) -The ., C CS" NOTICE OF FICTITIOUS NAME Northeast Florida Egg Market : CUBED Choice orPorfer Ann : Page NOTICE IS HEREBY GIVEN that feCla. . prices to retailers ' I the undersigned, desiring to engage in : BARBECUESAUCE ' "STH business j AVENUE under the PACKAGE fictitious STORE"name at of Extra large 38-43, mostly 41-i r GROUND - the corner of N. W. 5th Avenue and 43; large 36-40, mostly 38-39; I House N. W. 6th Street in the City of Gainesville l-pt. 12-ci. bottle s . Florida, Intends to register thelaid medium 2933, mostly 1.32; SIRLOIN name with the Clerk of the Circuit 3ge .l.b. Court of Alachua County. Florida. small 25-23 mostly 2628. . t EGOSTART INVESTMENT Poultry at farms: fryers 13; CORPORATION. ... . A Florida Corporation hens, too few sales to report. y - By President THOMAS COWART NOTICE OF APPLICATION FOR I xz;, Super Right Leon Meaty Vacuum Pocked Cooked " ATTEST: J. C. ROWLS TAX DEED Super Right Secretary Sec W.U, F.S. I' : IN(3321)THE 5:6.COUNTY 13. 20 JUDGE'S 27 COURT. IN of Thos.NOTICE the O following. &IS Jayne HEREBY certificates G. Neff GIVEN the has holder filed that.1,.I 'F ,t .\ Spare Ribs lb. 39c Ham . 6 oz. pkgs. 59c NWVVZ AND FOR ALACHUA COUNTY, FLORIDA said certificates for a tax deed to be Issued -' J\ Super Right Y4 Sliced' Pork Lon; Copeland's Smoked HC Link thereon. The certificate numbers :.1 9 203 M b. Avg.Pork . IN RE. Estate of and of Issuance. i years the description of . JENNIE M. GRISMORE. the property, and the names in which it : Sausage lb. Pkgs. 65c Deceased 55 NOTICE TO CREDITORS was assessed are as follows I I Chops. lb. ! Certificate No. 314 Year of Issuance 1961 ; M.All GRISMORE.creditors of Deceased the Estate, of JENNIE Ascription of Property Lot 13 Bk 3 Rg I r K .,F t, Super Right Sliced, Smoked Oscar Moyer All Meat FISH are hereby 1 less N 140 ft of E 60 ft & less S- notified and required to file any claim or 70' ft of E 75 ft Roper Aid DB J 550 !i Franks 59 demands said Estate which in the they Office may of have the against County Name All of I in said which property assessed being Abner in the Jones County r .. : .; Beef 4 oz. pkgs. 29c .Lb.pk9s. Judge of Alachua County Florida. In the of 'I STICKS Courthouse at Gainesville Florida, with- Unless Alachua such State certificate of Florida or certificates I' : Super Right Sliced Select Steer Co 'n John's Frozen Breaded in of Each six the claim(6)first calendar or publication demand months must of from this be the In notice.writ-date certificates property shall be described redeemed will be In according sold such to certificate the to law highest the or j kl Beef Liver . lb. 49c Shrimp 2 ib. box $1.79FRESH 3 $100- ing and must state the place of residence bidder at the court house door on the : : o l 10-oz. pkgs. I I . and post office address of the first Monday In Month of June. 1964 claimant and must be sworn to by the which Is the 1st day of june. 1964 Cap'n John's Frozen Fantail claimant, his agent, or his attorney Dated this 2d day of May, 1964 1 SHRIMP or It will become void according to J. B. CARMICHAEL GOLDEN SWEETCORN 10-oz. Pk 9. 59c law. Clerk of Circuit Court of Alachua I oS. Fred Grismore County. Florida i i Fred Grismore as Administrator (3322) 5:6. 13. 20. 27 I. of the Estate of Jennie IN :THE COURT OF THE COUNTY emS 4:29.M. Grismore 6:13.20 Deceased. JUDGE IN PROBATE.ALACHUA COUNTY. FLORIDA I.I 10 39c I Notice of Application for Tax Deed IN RE: ESTATE OF I FOR - Sec. 194,16 F.S. WALDINE B. McCAUL also known as I NOTICE IS HEREBY GIVEN. that MRS. T. V. McCAUL and also known _# Xxx Thos. O. & Jayne G. Neff the holder of as MRS. THOMAS V. McCAUL. II 4t: :/ SPECIALFr ! the following certificates has filed said Deceased. t certificates for a tax deed to be issued To All Creditors and Persons Having I FRESH CALIFORNIA .. : ;o Cap'n John's Frozen Scallop or .::ii::i iIII :! \ thereon. The certificate numbers and Claims or Demands Against Said Estate: l a years of Issuance, the description of You and each of you are hereby notIfied ; ; { the property and the names In which and required to present any claims //III SHRIMP llIi It was assessed are as follows: and demands which you. or either of you, I I :!: : Certificate No. 327. may have against the estate of Waldine .!iiji: :::"':' Year of Issuance 1961. B. McCaul also known as Mrs. T. V. Me- Description of Property Lot S & S'<% Caul and also known as Mrs. Thomas I LETTUCE HEAD19C DINNERS Of Lot 6 Bk 1 Parrish S.D PB A107 V. McCaul I, deceased, late of said Courty. - Name in which assessed Hugh & El- to the C o u n ty Judge of Alachua I I la Drummond. County Florida. at his office in the court I t1r 1 All of said property being In the house of said County at Gainesville. Florida -' i County of Alachua State of Florida within six calendar months from the 'I Unless such certificate or certificates time of the first publication of this notice. \ hall be redeemed according to law Each claim or demand shall be in writing I C the property described in such certificate !- and shall state the place of residence, 8-oz.: 49 iPk t or certificates will be sold to the and post office address of the claimant : FRESH TENDER GREEN it. ?; r highest bidder at the court house door and shall be sworn to by the claimant I i : 9. f 1 on the first Monday In Month of June. his agent his attorney and any ; illll! irf I 164. which Is the 1st day of June 19 oC. such claim or demand not so filed shall . Dated this 2d day of May 1764. be Void. ; 'I J. B. CARMICHAELClerk THOMAS V. McCAUL I Co. lO-oi. Pkg. Cap'n John's Frozen of Circuit Courtof THOMAS V. McCAUL. JR. 2V2 Lb. 597SS1S2 :: ri:1o Haddock Dinner 49c : ir Alachua County. Florida As executors of the Last Will and : w =o' f i. (3323) 5:6.13. 20. 27 Testament of Waldine B, McCaul I ;. BUNCHFRESH . also known as V McCaul Notice of Application for Tax Deed and also known us sMJs: Thomas VMcCaul i { Sec. 14.U. F.S. deceased I I NOTICE I 'IS HEREBY GIVEN, that First publication I May 6, 1964 I 5.5tsSs. Uriah Gilt, the dof the following 33201 5: t. 13 20, 27 certificates has filed said certificates ; *"*-- .. -----, RED RIPE CAROLINA for a tax deed to be issued thereon. The IN THE COURT OF THE COUNTY ;i aatr a I certificate numbers and years of issuance JUDGE, ALACHUA COUNTY FLORIDA ' t and, the the names description:In which of it the was property assessed IN ,PROBATE.IN I' I. PLAID'! RE Estate of rsoba , follows . are as : Certificate No. '26. CHARLES A. DEMAREE also known'' .. STAMPS 00 Jane Porker White Enriched Year of Issuance 1960. as C. A. DEMAREE. Deceased. : : 1 : . St 86 3 Description of Property E 17D ft of S To All Creditors and Persons Having :; I PTS 142 ft ot Lot 0 Grove Park PB A Claims or Demands Against Said Estate: 'I I ii With This Coupon and Purchase of i Ties THOROBLENDBREAD .5 You and each of you are hereby noti I ig Sealtest 2 lb. ,i Name tt which assessed J. T. & Rebecca led and required to present any claims ctn. I and demands which you. or either of you. 'n All of Gaddy.said property being in the County may have against the estate of CharlesA. : Cottage Cheese ...... 59c Ji: i of Alachua. State of Florida. ,Demaree also known as C. A. Dema- I :8 JAX 5-23-64 I Special! FiresideI Special! Supr Right Luncheor ree deceased late of said County to i Unless such certificate or certificates I CoupOn: Good Through Saturday May 23 . tile of Alachua County Judge County. shall be redeemed according to law the Bars Meat 21-2 69c property described in such certificateor Florida. at his office In the court house'' :"! : Fig 2 lb. Pkg. 35c oz. cans of said i County at Gainesville Florida' certificates bidder at the will court be sold house to the door highest on within, six calendar months from the time I .:___resasTP_______.-_____:_:_Hf___ __.JeII1________ Special! ACrP I-Ot 14-oz. Cans of the first of this notice. Each Jane Porker Lemon Orange Chiffon publication I or In Month the first Monday of June. --------------------------------- PineappleCake 14-0 . claim( or demand shall be in writing r= 2 % 164. which Is the first day of June ; 31CLoaves and shall state the place of residence and I -.ru . M.Dated this 5th day of May, 1964. post office address of the claimant and 'I 'j i lb. 2 oz. Ring 45c Juice 3 for $1.00 J. B. CARMICHAELClerk shall be sworn to by the claimant his' " i agent, his attorney and any such claim PIAID of Circuit Courtof or demand not so filed shall be void. I SO ; Special Jane Parker Cherry Special'! Ann Page Cream of Mushroom Alachua County Florida MARY DEMAREE i ii "NO HOLES" (3323) 5:6. 13. 20. 27 I STAMPS Hi As administratrix of the Estate of f Notice .f Application for Tax Deed Charles A. Demaree also known as I !lw : Pie. 1 lb., 8 oz. Each 45c SOUP 2 10-/2 oz. Cons 29c Sec. 14,it. F.S. C. A. Demaree deceased ; 5 With This Coupon and Purchase . NOTICE IS HEREBY GIVEN, that First Publication May 13. 1964 I :la. Poss. Beef and Chicken Brunswick 4f1: . I URIAH GILL the holder of the following (3343)) 5:13, 20. 27; 6:3 . certificates has filed said certificates IN THE CIRCUIT COURT OF FLORIDA I ;: Stew 1 1-lb. 8-oz. Can 61 c : Special JANE PARKER DELICIOUS for a tax deed to be Issues there- , EIGHTH JUDICIAL CIRCUIT INI .a f JAX. 52364Coupon The certificate numbers and en. years AND FOR ALACHUA COUNTY. IN Nabisco of Issuance. the description of the property Good Through Saturday, May 23 I : and the names In which It was CHANCERY LINDA RUSH !.. i Mb.I PREMIUM SALTINES . . Mb. Box 29c assessed are as follows: Plaintiff l I IL Ken-L-Treats . . . Mb. 8-oz. Pkg. 43c No. 469 Year Certificate of Issuance 1960. GARY-"'- RUSH. i _____-____ ------. ---- ____J Peach Pie 8-oz. 3 9 Birdseye Frozen Description of Property Lot 9 Bk. 2 Defendant I Each !SMALL ONIONS W/CREAM SAUCE 8 Pkg. 39c Range Pecan 22 Heights E. Sec. 27. Twp. 10 S. GARY NOTICE RUSH TO APPEARTO _.____ .________------, ArmstrOng oz. : All Name of said In which property assessed beinq In Ella the Rhode.County *17 East Second Street :r ,. fiiiii. i: 'ONE STEP" FLOOR CARE . Qt. Can $1.19 Unless of Alachua such certificate State of Florida.or certificatesshall YOU Llmberton ARE HEREBY North Carolina NOTIFIED that a 1 I IF.! ;i White House Evaporated Chicken of the Sea be redeemed according to law Complaint for Divorce has been filed I! &b'G-.is1. LIGHT MEAT CHUNK TUNA 6Vi oz. Can 3/$1.00 against you and you are required to Lipton the property described In such certi- pleading I Ito Iii' i serve a of or answer Cite or certificates will be sold to the the Complaint copy your upon the Plaintiffs at.: ;.i a I 'TEA BAGS . . . . 16 for only 27c bidder at the court house door "! highest torneys. Reynolds Goldin & Jones P.O. II en the first Monday In Month of June, IM With This Coupon and Purchase of i Lipton 164. which Is the 1st day of June. the Box original 468 Gainesville answer or Florida pleading and In file's the :I I;5J Ann Page Coarse Ground Black 6 Pk. 77 C I iNSTANT TEA . . . . 11/z oz. Jar. 44c office of the Clerk of the Circuit Court I Ii Lipton 194.Dated this of 1964.J. I Milk ' 5th day May B. CARMICHAELClerk of fore Alachua June 20.County 1964 If Florida.you fail on to or do be-I ;P" Pepper 112-oz.-Bot.29c- : I c-* I LOOSE TEA . . . . % lb. Pkg. 45cOnly of Circuit Court of ! judgment by default will be ; JAX. snipB < : Alachua County. Florida against you for the relief demanded In Ithe i.I Coupon Good Through Saturday. May 23 1 ' (3324) 5:6. 13. 20. 27 Bill Save Plait/'Stamps I of Complaint. DONE and ORDERED at Gainesville.I tj DOLE HAWAIIAN SLICED -2 f ...... .. .... Alachua May. 1964 County, Florida this 4th day ot I I ;;! a al4tara16se Special ; :1 Faster, i 5% r.W k.1 {r MF J. B.Circuit CARMICHAELClerk Court of Alachua r THE OEAT ATLANTIC & PACIfIC 7A COMPANY./ :. i cnfiic a k, :" County.: EMILY FloridaBY WATERHOUSE 1 = 4-oz. Deputy Clerk rr; :;D :: Pineapple .. (COURT SEAL) j/ / 1 ; .. IVfsr P.pJ' REYNOLDS. GOLDIN JONES .. .. By RICHARD TO JONES H IE .* . .. Attorney for Plaintiff u' I' 214 NW ;3.th. Post Gainesville.Office Box Florida 468 i :E With This Coupon and Purchase of 1 - * Also hi Ocala (3326) 5:6, 13. 20. 27 ;i-" Uncle Bens 6-oz. pks. PJj i Special PACIFIC EARLY JUNE Prices In this Advertisement are good through Saturday. May 23. I :jSQ Spanish Rice .... 39c Ii Ie ' I ;: .. Coupon Good Through JAX. S-23-44 Saturday, ,May 23 Ii;I Ctil 601 S.W. 2nd Ave. 'H' i : Small Peas 2 1 -Ib. 3.9 Close Mon. thru Wed., 7 p.m. I !! # !! J: Can Close Tfiurs. & Fri., 8 p.m. Close Sat. 7 p.m. , PERSONAL BARS GENTLE DETERGENT DETERGENT PREMIUM DETERGENT DETERGENT r ABUTSSalvo \ l Ivory Soap Ivory Snow Ivory Liquid Oxydol Duz 12-oz. I-pt. 6-oz. J-Ib.. 4-oz. 3-lb..1 -oz. I-lb. 7-oz. 2-lb.. 14-oz. ,t/ Unjversitv Inn 4 for 29c 2-lb. pkg. 83c 35c 65c 351 c: 81cVEGETABLE 2-lb., 7-oz. pkg. 81" 41 Pkg.c 79c Pkg. CLEANER LIQUID CLEANERSpic SHORTENING ROSY RED VAlLEY GOLD GOlDEN RISE Inl Span Mr. Clean Crisco Hawaiin Punch Frozen Drinks Biscuits "THE WORLD'S GREATEST ORCHESTRA"The " 15 GZ. Size 32-oz. Size PHILADELPHIA ORCHESTRAEugene 1-lb. pkg. 33c 41 c 71 c 3-lb. can 79c I-qt., 14-oz. can 39c 2 6-oz. cons 23c 6 8-oz. cons 49c Ormandy, Director BATH BARS DETERGENT LIQUID DETERGENT DETERGENT DETERGEN r DETERGEN r Wednesday May 20 Zest Soap Dreft Joy Tide Cheer Dash 1-1b.. 2-0z. 2-Ibs.. 12-oz. 12-oz. J-Pt... 6-oz. 1-Ib. 4-oz. 3-1b.. l-oz. I-Ib..6-oz. 3-lb.. 6-oz. : 8:15 P.M. 2 for 43c 3FkSc 3c 35c 65c 331: i9c' Pkg. 35c Pkg. 81 c 1-lb., 8V2-0Z. pkg. 39c All Seats $2.06 tax incl. CLEANSER LIQUID DETERGEN r for dishes BLUE BONNET WHIPPED I l Ocean Spray Cranberry Juice SUNNYFIELDP3CIN OCEAN SPRAY SELF R'SING' I Mail orders taken. Send checks to Comet Thrill Margarine I Cranberry Sauce Cocktail FI our Lyceum Council, University of Florida. " 14-oz. I-lb., 51 oz. 12-oz. I-Pt., 6-oz. Perfect with Pork Always Serve Welt Chilled , Tickets will be held at the door. I 17c 25c 35C" 65c 'I-lb. ctn. 33c I-lb. can 27 C "pint bottle 31 C S-Ib. bog 39c 1 1f -.;! "" - --- '''' ..... .. T: ... .. .. . r "-' - -. ; ', ------ -' .3 ..-- : .. .. a ; ; F" -- ------. 22 Gainesville Sun Wednesday May 20; 1964 : 1 THAT LITTLE ANDSHHS60IN6TOSES ryE 60T 10 5140)1[ HER! I''E yruf. i r TIES RED IRE061RL ME MAKE A FOOL OUT Of= GOT TO 6ET A WT AND )iNTHEsN / D '4 I:1) cREi IStJATGHINGI MYSELF N THE LAST INMIN&.. .I EVE60TTol'YE! GOT TO! What's problem For a genYou' - your THE 6AItt_. eral rep'I, write to Abby. Box 3365. !, I cJ f1i T Did ;;) i! Lady Beverly Hills. Calif.. 90212. and z: (it .I include self-addressed stamped en 1r. I s.It aa. wi. (k < s velope. Abby answers all mail. .'." Ii kt't't'SOBFDURYlFtRS 77 Abigail Van. Bur en Jl t'i' y ..mot ,rWE'LL -==== - - ::'D. DEAR ABBY: Could you please tell me if I did wrong? My try to convince her to take her boy 'to a doctor and to heed ??-rrsVE ALLSLOBBO f1ADELICihU511 THEN THERE is SOMETHING IN son had a serious back operation last March. When he startedto his advice. X CHIRR IT5 IS DEUSWJiS-DRENCHED SLOBBOV1A TO ITSELF SELL.V5LOBBOVIA // feel a little better I brought a large stuffed rabbit (about I STUDIED SELLINGS A OPP.1HARVARD / IN KICKAP00cSCNJIJICE , 22 inches tall) to the hospital thinking it would cheer him up DEAR ABBY: I laughed when I read the letter from the /.' BUT HAVE A tS as it was during the Easter season. The rabbit did not look woman whose child didn't look anything like her or her hus- THERE'S NOTHING IN ) SLICE 1r childish in my opinion.. My son is 44 years old. He was band, which was a constant source of embarrassment to her. ,.,. SELL SLOBBOVIA", TO -< ROOF.V / aF embarrassed and insisted I take the rabbit home. Do. you I went through the same thing, many years ago. My hair ,... r think this was a babyish gift or not? was mousy brown and as straight as a poker. My husband's I i 7's _ LE MARS was dark brown what there was of it. Our son had a head #*- ( , DEAR LE MARS: Stuffed animals are usually for young full of reddish-gold curls. My oil man, who showed up every = y b children. (Most 44-year-old men prefer live bunnies.) A postoperative now and then, had hair exactly the same color as my son's. < t4g. b t patient is in no mood to split his stitches over an and he looked more like the boy's father than my own ' Easter rabbit, so don't hold your son's lack of enthusiasm husband. Some stories got back to me that were positively e' against him. outrageous. I finally had to change oil companies to shut up r ( .' f # , the neighbors. rs. DEAR ABBY: What do you think of a mother who would COURT STREET, S.C., IOWA -J."o. . put a diaper on a nine-year-old boy and make him parade 1S7HARENNYTHING CAN DOTH'COOKIN SHORE-I'LL GITTH'STIRRIN'STICK around the school yard for punishment for wetting his bed? DEAR ABBY: Is there anything wrong with my girlfriend ''MAW'S FEELIN' I CAN DOSNLFF/) ? BE PLUMB I AN'HIT TH'MASH This lady must be cracked. .and me meeting two very nice clean boys from schoolin ;...c RIGHT PORELY PER ME TICKLED TO A LICK ORTWO LIVES ACROSS THE STREET the movies? All we do is meet them inside and sit with TODAY.ELVINEV :' DEAR LIVES: This woman is more than "cracked." She is them. We don't hold hands or anything like that. We are 15 EcIC- - cruel and ignorant. Bed-wetting is a sympton of an emotion. and so are the boys. al problem, and to humiliate a child for wetting the bed will IMPORTANT QUESTION cure nothing and only compound the problem. I urge you to DEAR IMPORTANT: There is absolutely nothing wrong enTTj J call on this neighbor (even if you know her slightly) and with it, IF you first get your mothers' approval. t., '-7 ' O Danny Rayeariety O I Love Lucy -5 1 "r c r 11:00 O O News, Weather, 11:00 O CD ConcentrationO I CD (Color) News, Price Is Right r $ZO , Sports, Weather 11:30 Q CD Missing Links Z - 0e 11:25 O Movie O Pete and Gladys ) : "Bannerline (1951) O Eighth Grade Science Racketeers are aroused 12:00 O Love of Life THE DIFFERENCE: IS NOT r14E BIII 1 s-fil INTERCOMS :' f WATCH ITf GRAVITY 700 GREAT- U5T A- IN THE HEAOPIECESENABL.E 1 HERE IS ONLY ONEN - DEPRESSURIZE THE edition of when a fake a O CD First Impression US TO TALK LITTLE MORE. SIXTH OF OURS. SPACE COUPE SLOWLY- new paper carries an ac- O High School Chemistry FREELY. BE MY GUEST. count of civic reforms. 12:25 O News ;"%, I Keefe Brasselle, Sally 12:30 O CD Truth or \ Forrest, Lionel Barry- ConsequencesO J more, Lewis Stone, J. Search for Tomorrow DANCEto Carroll Naish. 12:45 O Guiding Light . WEDNESDAY: EVENING roled in Judge Garth's; 11:30 O CD Johnny Carson O Visiting Spanish ,, 5:00 O Gallant Men-Drama custody.O (Color) Neighbors i J O Best Of Groucho To Be Announced. 12:55 Q CD News : 5:25 O Moments in Sports O What's New THURSDAY 1:00 O News 6os ; \1 nab ud: 5:30 O Newscope How to make an electri- 6:00 O Sunrise Semester CD Local News our 5:55 CD Local News, Weather cal transformer. 6:10 CD Continental Classroom O Midday V- Zi-co vWera:i, r "S5 .*.c** S/ .1 And Sports 8:00 0 Marketing on the American Government 1:05 CD Match Game .c 6:00 O News, Sports, Weather Move 6:15 O Sunshine Almanac 1:15 Q Focus Q _ O Sunshine Almanac "The Common Market: 6:30 O World Civilization O Elementary Spanish 6:15 0 Local News Cost versus Opportunity." O Pastors Study 1:30 Q Science NONE FOR I LIKE TO DRESS FORMALLY FOR DINNER... rOAU I WAS TELLING DR.MORGAN THAT MR.5TANDIYDINNER BUT WHEN I SIT DOWN AT THE TABLE,1 LIKE .YOU HAVEN'T HAD A PHYSICAL CHECK-UP 6:30 O O News Huntley, O Project 4"Everything 6:35 O Sunshine Almanac CD Ernie Ford IS READ FATHER/I TO BE COMFORTABLE/ FOR YEARS AND HESAID HE'D BE HAPPY Brinkley is Normal."I 6:410 Living Words O As The World Turns 'DONT THINK YOU1L HAVETWftEJ ABOUT YOU, REX?WHYVI SHALL IF I GET TO ARRANGE ONE AT HIS O News Walter 8:30 O Donna Reed Show 6:45 CD Hi, Neighbor (Color) 2:00 O CD Let's Make A Deal FOR ANOTHER DRINK/, ;T DONTYOU LOOSEN J UNCOMFORTABLE>, OFFICE TOMORROW/ Cronkite Q Jazz Casual 6:50 O Farm and Home O Password -5 YOUR TIE rser T MR.STANDLY/ > SOMETHEZTWIrI'LLBETERRIBLY O The Big Picture Joe Sullivan. 7:00 O CD Today 2:25 BCD News ', 4 I 7:00 O Biography 9:00 O Espionage O News, Weather 2:30 O House Party .. BUSY TOMORROWIs 1948 Presidential Campaign O Beverly Hillbillies 7:05 O Ranger Hal Q (CD Doctors and Truman as (D Ben Casey. 7:50 O News 3:00 Q CD Loretta Young 0 \ \ t President. O Arab Ferment 8:00 O Captain Kangaroo O To Tell The Truth fJ 6ur O Deputy "Egypt-A Land Awak 8:40 O Americanism. Communism 3:25 O News : 1/.t\ B Wanted Dead or Alive ening." 3:30 O CD You Don't Say lu 1 f't 1 O Just Imagine Lind- 9:30 O Dick Van Dyke 9:00 O Divorce Court O Edge Of Night : ., man. O At Issue 9:30 O People Are Funny 4:00 O Match GameD 7:15 0 The Friendly Giant 10:00 O CD Eleventh Hour t CD Jack La Lanne Secret Storm Ld 7:30 O O The Virginian "The Silence of Goo I 9:55 CD Sen. George Smathers ,CD Popeye's Pals . (Color) "The Evil that Men." A Senate Committee 10:00 Q Say When 1:25 Q News WELL,YOU CAN STOP HERE, DEAR-- X PONT KNOW WHETHEP I'VE BEEN TO A MOVIE YOU FOR -- - Men Do." Betsy is grow- subpoenas Dr. Starlet O News 4:30 Q Burns and Allea SURE CRYING NOWIT'SlALLOVER THANK LENDING ME :==.- J-r OR A LAUNDROMAT ing increasingly fond of to testify on the fitness 01 f:r CD Waldo Norris O Huckleberry Hound T SHDDEST AT\VASTHE II WAS ON. I YOUR Matthew Cordell an ex- a controversial physicist. 10:25 Q CD News CD Movie PICTURE AI BooHOO HAND- r been Starke 10:30 CD Word For Word Storm. VE SEEN c y KERCHIEF' It convict who has pa : Ralph Bellamy. O "The tN ALL I IMY HOOa 6n =rte LIFE - = i SMILE! With Art Bucliwald' da 0i J :x Q ? 1 4rY 6 Praying in SchoolWASHINGTON Q 0a r tote Pps.ZO dJ ) roU 't..L .r.ti.+.'- _,.,. I NEVER THOU6KTTHAT r, IFID0 IwHAT I JUST LOSING I SHOULD DO-NOW- The Con- tion of church and state.We've him. ens imploring the Almighty 1 to I'M SURE DANE 15 NO HE'S 50 THE PART IN THAT SHOW IS SOMETHING-THERE HL'D HATE ME*--MOST gressidnal hearings concerningthe "It worked once. He made my "hold that line." f4TrLRlY DI5APPOINTED DEPRE55ED i,I'M AFRAID WOULD-MAKE HIM HAT OF ALL! "prayer in school" issue studied the question not regular tea c h er sick and the In a community recently, a -BUT ACTORS ARE OF.-.OF WHAT HE. THE WHOLE WORLD! have been going on now for only from a Constitutional pointof substitute didn't ask for our test was given to see if prayer = INCLINED TO OVERDRAMATEETHING-?, MIGHT DO, MR5.5t CJ ' several weeks and will probably view but from a practicalone papers." had any effect an the students. 'ck- DEEDtE! y WORTH! continue right into the summer. and these are our findings. I Half the class used prayer and ll A teacher told that she dis- I i We found that school childrendo us the other half used another ::0i Hundreds of witnesses have covered .the that the, over years NI not want to pray all the brand. It was discovered t hat demanded to in front of children who the most in testify prayed time. They pray only when the the half that used prayer had Celler's committee school those who did the i Congressman were spirit moves them. far less cavities and were happier and there has been a great I least studying at home."I >c than those who didn't pray.; deal of passion at the hearings.It In discussing prayer with find those students who But the main point we're trying : . children, one student told us, "I. watch television the most are I < ' to make i that the l seems to us that a compromise I $ pro- ai only pray in school so I won'tget the same ones who are always t people. want should be found betweenthe prayer prayers ev- hell at home. I calling for help from the Deity morning while the forces who "want to put ery antiprayer - God back in school" and those Another student said '1 always the next morning. people want no prayers at who are defending the First i ask God to help me when, A young girl said, "I t h ink all in school No one has come HSAPBIK5...THE WITCH-DOCTOZ ACROSS YELi.OW CAN 5EE JCB THE ON ;. I con WILL CANYON SHOW, MY NOT PEOPLE 50 RD-IN AzE Amendment of the Constitution I haven't done my homework.? kids should be allowed to pray up wit h "Selective Praying." ;; Cap { THE 5A1L5. IT HITS, THE RAMP...AND MYSELF IN THE COCTRINATEP ' which guarantees the sepera- "Does it work?" we asked before a test. Why not let children pray only] o .1 BOTH TCAAKD RED THE PATROLS 5OUNP.RUSH.. f\ ONLY ONE GUARD ,.% WITCH-DCSTD2 ROLE I THAT THE FAIL CLP6CPS TO I Another young lady said, before tests, when report cards F2k5HT THEM/I "There are no atheists when are due, and when promot ion Iii Ju l BAKLR ADES report cards come out." time comes around? This is t 4., I + .BED DERIVE MILE Many students do not t h i nk when they need it the most. " S A LuTEs ALEC much about God until their They're going to do it anyway I"I ACROSS A TOM NEB A V E school is the , 1.Chop. 28.Doveshelter playing big 'gameof and it's better to have tJ DETECTED 4.Once YEW the year against an archri- them pray openly in class than + TED I R E n E around 29.Tightwad val. Then while the ball is on sneak into the locker room or A p R o N A G O Surge lang the two yard line and the oth- into the washroom for: a quick GLAD 5 o N E E L K 11.Mean 31.Mushroom er team has four downs to score prayer where no one will see i HAT EGO G L U E 13.Word of 32.Feastedaffirmation in, all eyes go up to the heav- them. 4 33.Battle A T I P I R O N I N G -= ILj I 14.Curative 34. Edible S T 0 A V A C A T E .a15lJli'RE sr J 15.Istle fiber tubers TEND E L A T E 16.Through 35.Bullfight. Today In HistoryBy TI4E O IAPLAIN'is I NOT MAMV OFFJCS2S BUT NOT MANY 17.Amer. cr',helper SOLUTION OF YESTERDAYS PUZZLE A RGii'ARGUY,15f WOULD PROP TXSR. TRUE OFFICERSSTA1NE9SLASS I4AYE A I+E7 W02:: TO JOIN THE } of , novelist 39.Weight DOWN 7.Candle THE ASSOCIATED I cqgM o PRESS bandit Raisuli.In . MEN ON TH+E BAILFIELD WINDOW TOPROTECT 18.Frosts India _ 1.Sandwich meat 8.Mimic Today is Wednesday May 20, 1932 Amelia Earhart flew ' Mangrove 40.Milkyvarl- f' .22.judah's son ety of glass Twilight 3.Many 10.9.bib.plode the 141st day of 1954. Thereare from Newfoundland en route to I 23.Maxilla. 41.Name for 4.Tics country 225 days left in the year. Paris but landed in Ireland.. Li5 Li-: 24.Child's Athena 5.Edible 12.Mature Today's highlight in history: She was the first woman to fly < s 5 i 42.Study seaweed 17.Swine I' 26.game Ventilate 43.Vinegar 6.Fcndng 18.Kiwi On this date in 1972, CharlesA. alone across the Atlantic.In 1i 27.Cove worm dummy 19.Unfavo. Lindbergh! took off from 1942 the British Royal Air (;:JEc I able New York in his monoplane, Force bombed Mannheim, Ger ..aa I Z 3/ + S o i 1 8 f 3- 20.Steep wilt "The Spirit of St. Louis" on many.In . brine the first solo nonstop flight to s.:" rt JJ 1943, the United States and /I 21.Mirthful I Paris. 4 Britain ratified the treaty which // 23.Cookie tJ; ; t J+ IJ"t' abolished extraterritorial rights container On this date ,I' 11W 25.Congeal In 1506 Christopher Clumbus in China. I / 27.Place to died hi poverty hi Spain. Ten years ago-A strike start-I 14 '' ZQ 11 zest In 1904, the warship "Brook ed May 7 against the Standard, :; XYE KMOWV BILL A LONG ) /WELLLET PUT IT THIS WW..IP j jf i MIL CORKEE1YS ' 28.Marine Fruit in Honduras VJBV TIME. HE'S NOT ONE TOSHS HA? A REASCN PONT KNOW i lyn" was sent to Tangier to demand Company ASSISTANT ARENT XXI:: ? U / 2J l+ l zoophyte *- FIRE YO! WITHOUT A KEASON.'Js f WHAT IT WAS ended with the of 30.C earwig g the release of Jon Perdi- granting pay [ir = j lJ / zarH' moth genus caris kidnaped by the Riffian raises. tt 31.Philippine Fivs years ago-An Air Force ii o / i ike turboprop transport. crashed 1 32.Copper- Italy's Doctors into an Air Force barracks in Jh j3 / fields wife Japan, killing the pilot of the. < 1+ J 11 IJJJ' 33.35.Legume Dry Feel BetterROME plane and'nine men in the bar i4 s 6.Expire racks. : I" 37.Smallest AP) -, Italy's health One year ago-The Supreme 4, I 2 Integer insurance plans and the 40,000 Court ruled that neither states I WAS HIS NEW ASSISTANT t I I fjJj"J I I 38.Unit ofreluctance doctors who treat insured pa- nor cities had the power to in- QIg y .THIRTY.I WAS MINUTES RREP ABOUT AGO! __ . Par time 22 mJn.AI'MN/Ir.O1 W. -z. tients have reached an agree- terfere with peaceful sit-in dem > ment giving the doctors higher onstrations for racial integration. - fees and less paper work. . . .k . ..... :...-. -..-- - ..- """" -- -- -- - --- . rw '- -: --L---- _ ... II FEMALE HELP WANTED SO PETS fir SUPPLIES -- IHtHtt/BttHJilffl/ "WM."' '"' I ADVERTISEMENT Rocket 'Twins' BEAGLES for sale. partially train.ad .r'- UNIQUE positions open now for ladies and some have shots. S20 "An easy way to increase your ; who quality for personallz I e d and $30. Good stock. Phone WANT-AD RATES 'II" Family income is by selling ;" ::: :- tige services.Line Vivianne Cosmetics.Woodard personal Pres-in 2-5135. 5 Make a list then phone 372-8441 ; : terview- the privacy of your 33 LOTS FOR SALEBY I. PH. 372.8441 - home. Call 376-1480 for appoint things you aren't using with the Embarrassing ment. I forClassified I Gainesville Sun Classified Ads. WANTED experienced booIlkHP e r. BEAUTIFUL wooded OWNER lot. 900- blockof 5 - to Insurance experience desirable but N.W. 22nd Street. HIT X155'. . place yourM.tr..aJ.ad. OnlyDEADLINES . not Salary commensurate I necessary. - J = Nl'IU Burk (timed $1 billion to develop. with experience. Good working Also lot In Gwynn Oaks 200'x180' = - with view and privilegesof I conditions with congenial peop I e. Clear Lake. 376-5109. E ! I of a combination of Please send complete resume of ! By JOHN W. FINNEY experience to box 422-A c-o Beautiful 3 Acre Tract Entered bya st= =-- WASHINGTON After five and technical Gainesville Sun."SARAH 60 ft. Wide Private Drive. N.W. Tues. thru Frl. papers-S pm. Day before publication I years of worrying about the naI -I appears likely that each COVENTRY"UNDER Section.. C. "CURLY"Out of City KUEHN Limits.E. .JR. 33 For For ads ads to to go go In In Sun.Mon.paper paper--12:00 1 pjn.a.m.Sat.Sat. s .. tion's lack of rocket thrust in will be new management. Openingsfor 638 N. Main St. = = . ., M.r-jl.S": I developed fashion directors. Part time or FR 6-2032 Broker FR 6-6544 : (Minimum ad 4 lines) NOW! 3 LAFF HITS! i space, the Space Agency and the operational stage.) 372-7049.full time. For appointment. call LOTS - FAMILY RATES . Open 7:00-Show 7:30 [ Pentagon are coming to the embarrassing ADO TO THE FAMILY INCOME - Set 2 Hits Late AI : realization that The question Near new V.A. HospitaL S Acres. ..... .. ... 34cllne 9:40 inde- . t CARY GRANT 7:30 ':i pendently they are developing within the executive now branch ONLY your own a few business hours now.daily.We train Start Call MARY MOELLER REALTOR 1 3 6 1 Insertion Insertion Insertions ',...:....:j?..:.......j:.::. ij: ::::::::jjjj.:::::::: 22C 17c lint line I CHARADE 'two super-booster rockets with you to become an Avon Repre- 1019 W. Unlv FR 6-4471 12 Insertions .. ... .. He line Congress is whether both sentative. Call Mrs. Burns FR 2- 33: Total charge computed by multiplying total lines x rat. earn- g I :roughly the same weight lifting 0421. 34 Waterfront PropertyON : ed x number of insertions. . ADVANCE TO I capability. ;ets are needed for heavy BOOKKEEPER SECRETARY experienced - { mature and pleasa n t = = THE :load missions in the 1970's. increases dependent THE GULF REAR individual. Frequent I One is the 1.5 million-pound- upon ability. Apply in Cedar Key Shores S Five letter words per line I GLENN FORD 9:40. : The that : person to Orkin ExterminatingCo. = thrust Saturn I rocket being developed prospect a .. 52S ... Main Street. lr Other Properties " Shirley Jones ( tion choice will be made 5 Same as 2 lines 51 S Gig Younq by the Nation Aero- BE A FASHION David AndrewsCedar 8 Pt. ordinary type x A TICKLISH AFFAIR .nautics and Space Administration. -tween the two rockets was SHOW DIRECTORNO Key 3841 Sameas3llries iitio The other is the Air 'ported delivering or collecting car 12 Pt. ordinary type by space officials necessary. Call Connie Robbins.FR WINFRED H. CRAWFORDReg. I Force's Titan III rocket 6-1968 after 6:30 p.m. Broker, specallzing In . - producing 4 lines STARTS FRIDAY have stimulated intensive LAKE PROPERTIESACRE.. , t I some 2 million pounds of CASHIER good salary good AGE. 3 miles No. of Melrose 18 Pt.ordinary type "THE 'I in Wonder- I hours. Apply SEVEN FACESOF hind-the-scenes lobbying by person GR 5-2981.' E take-off thrust. house Restaurant 14 SW 1st DR. LAO" competing industrial St.. behind Sears. LAKE GENEVA. contemporary 3 ! bedroom, 2 bath, nearly new. .24 Same: *s 5 lines g I (Each rocket is costing about r P t Wood - -- -- The industrial contractors, 12 Male Help Wanted paneling open beamed '. ordinary type ceiling throughout. Roman I ; . 65c ever, are not alone in bath. Large screened patio. == e= One Full :; up I Work shop carport 2 acres. I campaigning. Within the FOUND ARCHITECT or senior draftsman. white sandy beach. $32,500. Mel- = The Gainesville Sun will not be responsible for more than one . a5e :; up permanent position salary open. rose. GR 5-5661. incorrect insertion nor will it be liable for any error In advertisement - KC Sirloin; ; ernment both the Space female Puj> Box 790. Lake City. Fla. AIR CONDITIONED. to a greater extent than the cost of the space occupied - I heat. gas --jtLUNCH Street. Phone by the item to the advertisement. No adjustment will and the Pentagon furnished 2 bedroom are completely be made that 5 on errors do not effect materially the value of f : MOOCOMM. house Cowpen Lake. 22 miles HOUSE on the advertisement.The . Steak $ up with proposals and white purse East of Gainesville. Price $8,800. I UNIVERSITY ments to defend their glasses. & oth Terms. available. Phone FR 63672. 00 00 I no ques- Gainesville Sun reserves the privilege of revising or re- In some government or 376-0184. SWANKY: Large 2 tiled bath letting any advertisement which It deems objections and to : & case. J. 'Year around Home' on Little 5 change the classification of advertisement it has become increasingly 372-9795. SALESMEN in any area of local Santa Fe Lake. Commuting distance 5 oered t.. conform to the! policy any of the paper. from that or. eIIIIIIIIUIIJIIIII'IB1IIIIIIIIIII1U1JJJ1mllllllllllllllll area. to sell finished block homeson ; 1st Fed. Mtg. $15,000. As- parent that both rockets owners lot. Straight 20 year sume & own for 3600.00 cash FIRST AGAIN WITH FINNEY SERVICE payout. If experienced. see Mr. down! ' ably were not needed to McMurtry. Tampa Builders. a 11 I / / ------ !! !!!! lllfllllllllllllllmtII1IfIIITii-- the relatively limited day Monday May 25. at Holiday UNUSUAL: a nicely fur n Ish ed I Special at Inn, Route 441 Sol Gaines- home on COWPEN Lake wit h 35 Houses for Sol 35 Houses for Sal ' I heavy scientific payloads SchooL or elderly.FR vllle. amazing opportunity for development f ned for the next decade. of Fla. COUNTER MAN for cafeteria line because of 'King Size'frontage. FOR SALE by owner modern 3 880000. Good Terms. $14,77i up ON YOUR LOT. Open and soda fountain. College "TOM JONES" LATEST! Apply bedroom house in Carol Estates. House Sundays. 1 to ASKI 6 Designed HIS leaving early this year as Inn. Ins W. Univ. Ave. No phone ARCH CAMPBELL REALTORPh. Furnished or unfurnished. As- & engineered by p.m.U. S.- President's science adviser. calls please. 376-5707 ANYTIME. sume 61 loan or refinance. Best Steel Corp.. Homes Division. 2100 1 3- 5.. 7-9 p.m. OUT MEN to train as route salesmen. offer. Call 376-8414. sq. ft. 3 BR, 2 bath. air cond- Jerome B. Wiesner, for carry. Grocer Guaranteed salary while training.All BEAUTIFUL lot on the Suwannee brick veneer. 2 car garage. 1801 River at Rock Bluff. Call 376- 3 BR 2 bath. house for sale. Total - Thru tackle benefits. Paid vacations NW 36th Dr. Alachua 1 1 1SAT. etc. company Homes 1i 1ikNf:1TjzJ1pr1 ample, tried Creek Trad- insurances. Apply in per 6160. cost $11,500. Call FR 2-6936. Inc. Call Frank Thomas FR *. ;1IT' 1 kill one or the other 481-2697. son to Borden's Dairy 2420 NE CBS HOME. 3 BR 2 bath. LR. DR. 6690. 19th Dr. Gainesville. $400 DOWNAssume like large Fla. room & util. Rm. on the Titan a new III preferably LITTLEWOOD AREA Automatic DRAFTSMAN. full time permanent extra large lot. Keystone Lake. Loan at $96 per mo. for my that does ev position. Experience in civil engineering 2 blocks to business dist. closeto 3 bedroom, 2 Bath Fla. Room 4 BR 3 bath 2050 sq. ft. living I >Ji The Space Agency and like some- drafting required. 5 day school churches. Total price Home. By Owner. 1937 N.E. 7th area. central heat, built-in kit. of $6.00 week. 2 wk. paid vacation. Group 21000. terms. By owner phone Terrace after 5 P.M. 1 blk. from Westwood Jr. High ( Pentagon were able to Ph. 372- life & hospitalization avail. For 473-4386. 2 blks. from Littlewood elem. immediate choice on the appt. call FR 2-2591. FOR SALE OH MOM family school. Ideal and for elderly Ig. family persons.or f that both rockets I WANTED experienced GM trained Fine home at St. Augustine You'll love this 3 bedroom 2 bath Priced for Immed. sale. 344 were & Hat Shop mechanic. Start work immediately. Beach. 155 feet of ocean frontage beauty at top Northeast location. N.W. 13th Ave. 372-2893. for manned space flights in close May 15th Must own tools. Salary guar. and 300 feet deep. Large living Terrazzo floors G.E. built in all re p air anteed. Gateway Chevrolet Inc* room dining room with 20 x 18 oven and range. Newly redecor PROF. Moving. Sacrifice price. 3 latter part of this decade Starke Fla. 9643900.EXPERIENCED front glassed-in Florida room extending ated. $15,500. $600 down. FHA. Br. 2 bath wooded lot 140 x 210. Saturn as a test vehicle for I have a appliance serviceman. facing the from ocean.the living 3 large room bedrooms and- Pay only $101 per month includ- 20th Faculty St. neighborhood. 3436 S. W, automatic work. Give qual ing taxes and Insurance. Permanent each with full baths. Apollo lunar program and Machine that ifications. Write box 423-A c-o EDWARDS BY Servants quarters downstairs. For HUGH OWNER. Mason Manor. 3 BR. Titan III for launching first We would like Gainesville Sun.DISHWASHER further information contact the- 2 bath. ceo. heat built-in kit.. payments of apply in person VERLE A. POPE AGENCYP. INC.N.E. huge screen porch. paved dead recently cancelled total price Wonderhouse Restaurant. 14 S.W. O. BOX 519 end street shaded tot, reason- Ave. FR 6- St. Augustine. Florida 16th Ave. & 15th St. ably priced. FR 22378. glider and now 1st Street behind Sears. space 372-1551. Ptfrne VA 9-9061 the NO DOWN PAYMENT 3 BR2 l SHOWTIME launching newly ? J 3-Help Male or Female Houses for Sale NEARLY new 4 BR home with bath Central heat central air Manned Orbital 35 all luxury features within walking cond. Northwest. $19,000. Call distance of new school. $31- 376-2927. ORlOt IN THCATRlij (MOL) of the Air Force. PLACEMENT SERVICE 500. Easy tersm. 529 NW 58th lI E1-- j Mt ones worm o 7:30 (Next. to Winn Office Professional FOR Sale or trade. New 4 BR. St. Phone 376-3569. FOR $91.27 per mo. you can qualify Technical home located in Westmoreland for FHA 4 BR 2 bath home. I WINNER 3 ACADEMY It now appears, however, College GraduatesFor Estates. On city sewers pavedSt 3 BR., 1 bath CCB home. Stove For appt. to see phone Arnold AWARDS a choice be forced on Child Car appt. call 372-6377 2 Ig. bath Rms.. Ig. family refrigerator. air conditioner. Realty Co. 372-3522. may 10-12:00 A.M. 2-4:00 P.M. Rm. & living Rm., dining area. Central heat. Drive by 2503 N.E. t two agencies by Congress. Monday through Friday Central heat, built-in kitchen In- 10th Terr. then call 376-5890. 4 BR, 2 Bath home In N.E. Sec. i TOT PERSONNEL CENTER cluding GE dishwasher. 2 courtyards tion. Den. screened porch air. j Senate Space Committee, 102 NW 2nd Avenue walk to schools. close to SMALL DOWN PAYMENT 3 Br. conditioning central heat. Price U of F & medical center FHA Fla. Rm.. large fenced yard in $16,900 $600 down pay. 2809 N.E. 1: PAUL NEWMAN ed by Sen. Clinton P. ; Exp. secretaries salary open 22700. Down payment 1700. beautiful Idylwild. Priced at $14- 10th St. Call 2-6455. I D-N.M., has announced for yourself. Cashier-nostts attractive Immediate occupancy. Drive by 000. 6-7806. White houseKeeper. $25 wk. 1027 NW 40th Drive. Call Butter 3 BR Fla. Rm. Carol Estates . will hold extensive 230.'i awaits Bookkeeper salary open Brothers 372-9545 dally 376-9048 NEAT and CLEAN Spacious 3 near schools. Pay low equity I your Exp. Waltres, salary & comm. night. Br. Home in Excellent Condi- & assume VA loan with $77.94 ..s'HUDI next month on at JACK Exp. mechanics tion on extra large lovely gar mo. payments. Ph. 376-0539. . used SCHOOL. Store trainee. hi schl. grad. FHA House for sale NE sectionat den lot. Price only $11200. rocket boosters the. by educational Off. trainee hi schl. grad. appraisal value of $10,000. EXTRA VALUE air-conditioned i "I .SAL-UJ{ .. Air Force and the Space : Mon.-FrL, Tree surgeon. foreman. $2 hr. $300 down payment. low monthly BYRDASSOCIATES BR home -Paneled Family I .4.j DAN FR 6-3900. Auto salesman Exp. payments. 3 BR. 1 bath, carport Room adjoining living din In g .a-.11n1l ft1 wcc cy. home. Fenced Short order grill man large storage. Call after INC.Jack area for extra spaciousness electric . rates. Good Insurance trainee $100 wk. 6:00 P.M. FR 6-4774. range and dishwasher. Assume - 372-3713. Route salesman. Levy Co. DeYot Realtor 4Vi per cent Gl mortgage.Will . the smaller FOR only $450 down $91.27 per 1 Among 1I CONNELL EMPLOY. AGY. month payments you can qua- Associates consider financing balance.See . I PANAVlSON4 gjni tna.wjjn a fair degree of KORT 120 SE 1st Ave. lify for 4 BR, 2 bath home. 1806 Walter Stoddard. Chris Stone this unusual buy at 2213 NE &I um M .MCEMIP BJia BOKIBI'I! WHOM BIAS Phone 376-8234 NW 38th Terr. Will paint Inside Emmett Holloway 7th Ter. . has been achieved, 2-6667 CASHIER needed for 10:00 A.M. & outside completely. For appt.to 825 N.W. 13th St. 372-2511 I -2 BIG HITS-! is becoming recognized 2:00 P.M. daily and 8:00 AJM. see call 372-0481. Call Night or Day Investigate Now 5:00 P.M. Sundays. No exper- I bath LARGE WELL ESTABLISHED SACRIFICE $2400 equity for $700 NE 2 yrs. old. 3 BR. i c there are more \encf necessary FR'6-J525 cash. Total cost only 11427. C/H. screened porch, patio. GROCERY STORE. for sale with rockets than are actually Modem 3 BR, m bath home. stove. refrig., d-washer $500 complete Inventory. Be your own WANTED 14-Sales Help WantedOPPORTUNITY Near schools. Refrig.- elecv dn. $75 mo. FR 2-2774. boss and make a comfortab I e ed for launching range air cond.. and drapes.No living. 11 miles from GainesvilleIn MDA/AIl6EIALLMSBY home with excellently - qualifying. 1432 NE 14th Ter. AN exciting space small town with business already 1- the 300-to-2,500-pound()() KNOCKS! Phone 376-4068. built air conditioned. established. The price and I You've read about fabulous Village 3 BR 2 Bath family room and terms are reasonable. Call us for hour demon- Green. Now..help sell it! BY OWNER FINLEY AREA. 2 fireplace now being completedby full details. I, A major purpose of the Studio Girl Excellent earning opportunity for Bedroom. separate dining room. Lloyd Myrtck Builder in Part Time. licensed Real Estate salesman. Large secluded screened porch. Wimberly Estates outside city I mittee inquiry, therefore, 6. Allen Dorman sales manager. Fireplace. lovely yard. walking limits. N. W. 36th Terr. off EXTRA SPECIALJUST J:1'r'fl.-H.Ii'1'i1It4 derson made clear in an Hugh Edwards. Inc. 372-1551 distance to University. FR 2- N. W. 39th Ave. Offered for $22.- LISTED. Your children can 'view will be to lay "a Open- 9757. 500. Phone 2-5689. walk to Littlewood and Westwood I directors. Part 16 Work Wanted Female LIKE NEW 3 BR, 2 Bath. Lg. WHY PAY RENT? schools. New 3 bedroom 2 bath basis" for deciding between For appoint- LR.. with fireplace. D.Rbuilt New homes. 9500. 3 bedroom tile on paved dead-end street. Built in in kitchen enclosed patio. 2 bath $65 per month. Located on kitchen fireplace In family Saturn I and the Titan time into STUDENT stenographers available car carport. central air-cond. S. E. 45th Terrace. Also some room 2 car closed garage. Central - deliver. will work by the hour. Howell's and heating. Near schools. trade-Ins. Call FR 2-2372. Heat and Air Cond. Available If for routes. only economy or working Business College. 218 W. Univ. Priced to seU. 3505 N.W. 13th In June. Financing can be THE ACADEMY AWARD WINNER sons, he suggested, it may own call Ave. Ph. 376-3507. Ave. Tel. 2-6795. 'WESTWOOD Walking distance LITTLEWOOD to schools. 3 for arranged at no cost to to you. Call appointment to WANT lob as practical nurse or BY OWNER. S.W. Area. 3 Bedroom B R. 2 baths home In Skyline see. ; /TBEST' J BEST DIRECTOR".TonyRichardson come necessary support companion. Call FR 6-6319. 2 bath home. central heat. Heights. Study hardwood floors route or the other. business and hardwood floors. 2-car garage. built-in range & oven. Cent. ALACHUAREALTY I ninTHDC""BESTSCREENPLAY--JohrOsbome 18 Schools & Instructions Lot 105 x 127. $800 down.$94 per heat. Shaded back yard. Call II month. 126 S.W. 40th St. or call 376-0862. jfr rib I Unt jJi"BEST MUSIC SCORE".johnAdd P.M., Monday. FR 22727. . no other I BR, CB. city water lot 50 x 140" . FFA Dance Real Estate Exam SWIM CLUB MEMBERSHIP paved street down payment $200 I N. E. 4 BR 2 bath Lg. L. R. kitchen and $50 monthly. Immed. occu- Associates finishing lab. COURSE and screened porch. Air-condi pancy. Located near bus line and Member Multiple Listing COMEDY EVER MADENewsweek! "BEST Lab 513'* ATTEND First lesson free. tioner near elem. & Junior High Stephen Foster School. 1114 NW Arie T. Smith Realtor Here .Friday HOWELL'S BUSINESS COLLEGE!: VA loan. Down payment flexible. 39th Ave. See It and phone 376- Mabel Gore Associate I to take full COLLEGE. 218 W. Univ. Ave 7170. 635 N.E. itt St. 376-2441 , , office routines FR. 6-3507. 372-3727. . The Gainesville High handling MEN & women 18 to 55 to train for 71'8 whole world lovesToujrones FFA Chapter will pay.. Good with work-ex Examinations.CIVIL SERVICE For Informationsend 3721854.FUN 1a IN THE dance at the school gym girl responsibilities.or woman name address & Phone No. _ day night to raise money but must Key Training Service. 112 W. Adams St., Jacksonville. the chapter and the GHS Mr.know Sandefer some SPEEDWRITING Shorthand : arship fund. W. Univ. Ave. TYPING > BOOKKEEPING please. HOWELL'S BUSINESS COLLEGE Jim Hirschfield, S-day 218 W. Univ. Ave. FR 63507PIANO . of the event, said the good references. openings available for ) 6:00 P.M. Instruction. Adults or summer would begin immediately cafeteria line children. Mrs. Burko, 372-9896._ SUNBOATS 1'Pi lowing the Purple and Apply College \ football game. Ave. No phone 28 Livestock & Supplies NORTHCENTRAL FLORIDA \ Bill Marr, local disc WANT AN ECONOMICALL Y PRICED FEED? Then try CPA & MOTORS RE- or .. '" ... , ,i Production Dairy, part pulleted. 1 there will be special $2.50 hr. Ap- i. Hotel Thomas. Ideally suited for feeding on WHO WOULD LIKE THE 76th 24" GRILLS ,ti1'2 by the FFA quartet. P.M. Thurs.. pasture. Special for May only. HUNTER Fiberglass Fishtgg 12' Plywood fishing boats. HOOD-SPiT AND MOTOR t 4I '- positions FMX Gainesville or Alachua. Boat Introduced by FRANK $.c9.50 I $10.99 Phone FR 2-1095 or 4612105. PHILPOTT? GOOD YEAR :; SERVICE STORES iu [ EASY TERMS OR CENTRAL THE TACKLE BOX 725 N. Main 372-3537 I!, Yank KilledIn 30 PETS & SUPPLIES CHARGE :1 ':- 'The Heart Of East Gainesville"Check I FRANK PHILPOTTS with CharlieFR ; : ENGLISH shepherd puppies. Good List of to 2-1791. Classifications choose j SPORT CENTER Ambush for watch, stock, and pets. FR 2-0033. Home of HUNTER Fiberglass from Fishing Boats. 1.4 t fF all GERMAN shepherd pups AKC. ALACHUA COUNTY'S F i-we4; f SAIGON, South Viet shots ready to go. Shown week "Where Quality Sells Itself"" ONLY DEALER Skiing Swtmmlng-DIvIng. days after 7 P.M.. all day Sat. _,_j" M' (AP-An American i TIME and Sun. See Don Carney. 3501 20 NW. 14th Ave. JOHNSONSEA Fishing Equipment. : NW 18th Ter.MINIATURE HORSE MOTORS killed and an American FR 2-5011 or FR 6-6373 SALES AND SERVICE Safety Items. wounded in an ambush ; Pozin AKC registered Dachshund, 2 males Puppies and 2 Mon. Thru FrL 54 p.m. Sat. '-' Lone Star,Boats. Orlando Clipper . Boats. Ski supplies. Sailing rigs.BAIROS Golfing Equipment. night while on 8 females have had shots. $50. p.m. MARINE Phone 6-3800. 2923 N.E. 10th St. trol 45 miles northwest of : NINE week old American shepherd 601 S. MA'N ST. Tennis Equipment. gon near the Cambodian pups. well marked, registered Baseball Equipment. / male and female. $35. Phone 6-3470. Ads SWIMMING POOLS Where to Fish. Sun Want The officer, a member 441 FLUFFY kittens need a good &nw/usut/ U S. Army Special Forces ; home. They're black: and white BE"CAREFREE Plus many many more. : and part Persian. 6 wks. old. flown to a hospital in We are giving them away. Call and was reported in good 2-3757. Get Results EnloY Master a I clean Pool and Service healthy Inc.pool. ADVERTISE IN THE : EASTMANCOLDB/i UWTH UmTS-UftH tRust JREE! 2 kittens. Call 376- Supplies .. Monthly cleaning rJ service. tion.The 5350. FR 2-5363 6-0060 2-3171 SERVICE DIRECTORY J death of the Special workmanship DACHSHUND puppy. Red Female. weeks old. All shots. $40. -------- - rI FEATURES es enlisted man brought :/ Phone Kingsley Lake 533-2493. TODAY .. 120357.6:34-9:11 the in combat numer in of Americans Viet Nam SIAMESE sealpomt.KITTENS SIAMESE I mother weeks cat.old. MR. MERCHANT: To place your ad in the I 13th St. 2 yrs. old. Phone 376-8996. I I late 1961. The total of pie* KB and 2 MALE Beagles 1 yr. & 2V Fun in the Sun section PHONE 372-8441 deaths since then number mo.1076. old. All shots. Call FR 6- WAS THAT MR. ROPER WHO JUST - / WHATSTHAT THIS 15 THE PLACE. 5ENP ) I'M 6OIN& OUT TO WATCH. THIS ) DOtTT LOOK 70VWO THE \. rh-i LEFT ?-HE HAS A LONG'DtJTAXCE -1 FREIGHTER DOW THE OVERS. >/ I SHOULD BE INTERESTING. __. OFFICE, CAO/-.FEOM HrS EDHDR-ATPROOF' .p POINS SO CLOSE TO THE REEF? UNCLE 15 WATCHING US/ ) yJ !_ MAGAZINE/ 1 "V ccaEcTNGRIFLSF o - 11 == . I I I I \t . \ . - ---- -- 2: -------- -- -- - --- -- - -- - - ---- -- -- -Th 24 Gainesville! Sun Wednesday.. May 20, 1964 :::: :._ 1 ' :1 1- I fhafs what you get with . 1- 4- . 35 Houses for Sole 35 Houses for Sol 35 Houses for Sale 35 Houses for Sale 35 Houses for Sale E. C. "CURLY" WATCH FOR FOR SALE BY OWNER. NW sec KOREANVETERANS $450 DOWN FHA FINANCING BR. 2 bath BRICK HOME fenced wooded lot. IMPORTANTANNOUNCEMENT tion 3 bedroom. 2 tile baths 3 bedrooms and 2 baths. central house, 1806 NW 38th Terr. Only 4 BR, 2 bath Ig. living rm., KUEHN, JR. built-in appliances double and S9127 per month. Phone Arnold Fla. Rm.. & screened Homes. Lots. Business THE TIME IS NOW carport heat screened porch large porch. Income Cooperative apartments to paved street. connected to landscaped Realty. FR 2-3522 for appt. Elect. kitchen cent. heat & Only $100 down N.W. New 3 family room beautifully air and Lake Property. be built In Gainesville. For sewer. Small down payment. back fenced. cond. Many extras including Farms with yard and Acreage. information call FR 6-2921 BR. 1 and 2 Bath Homes. Immediate YOU will like the colors In this Days phone 3723826. After 6 occupancy. All city services near schools and shopping $15.000 3 BR. 1 bath home. If youdon't. swim club membership. NE sec 8:. C. "CURLY KUEHN. Jr. orrite: P.M. 376A11t.PARRISH 611 N. W. 34th Drive. Call any tion. Reasonable down payment. 633 N. MAIN ST. 3 blks. to elementary and owner will change 'em. Best P. O. Box 13956 time $123 per mo. Call FR 2-5953 FR C-2032 Broker FR C-6544 lunior high schools. Price 12.250 buy at 15750. Fenced yard ww Fla. Do including brick colonials. Ralph Realtor Call FR 2- evenings. Gainesville You Have A Room ApartmentOr to SIS.aoo Carpets. and drapes. Total monthly payments FOSSEYDick 3784 or see at 719 N.V/. 19th Lane. University Park Located NW 39th St. RobinsonAssociatePh. from $75. EYES RIGHT! ADVERTISE IN THE Uth Place. Call . House to Rent? NW. 13th and 376-1359 Apts. 2545 daily and 6-9048 nights. 11 W. University Ave. SERVICE DIRECTORY In Shadow See real dream living PRESENTS Florida Since 1906"IN BUTLER BROS. "Selling . Homes Lawn Estates. Models Open.F. Quality D. Oliver. BIdr. CITRA. Two 2 BR homes REMEMBER-A rental COSTS NEW LISTING Here is a perfect FREDARNOLD for sale. $2500 each or we Ph. FR 2-0$" vacancy home beautiful and spaciousfor will move houses. $150 down West 0. NW 37th Ave. past r gracious living. located in a and $50 monthly. Call Mrs.James WEST VILLA the Glen Springs intersec $ YOU MORE than the ad that will rentit choice westside location this 4 L Bowdin, Newberry. tion. Sea sign en left. ' bedroom 3 bath home with swim- Fla. 4722258. 16th Are. N.W. ---- - ming pool and lovely patio. liv- 1;: : I ing room with fireplace, separate dining room, large family room. McCOY'S & 37th St. " carpets and drapes included. REALTOR loads of storage space central Macoma Homes HOME ksliths l ? Here's what your Vacancy COSTS YOU heat and air conditioning. V ELEGANT AND EXPRESSIVE 4004 N.W. Inc.For TERMSWalter BUYERS EVERY DAY until it is rented : Relax and enjoy life and your Sale very attractive 3- M family in this 3 bedroom, 2 bath 13th Place bedroom bath home. 4617E. / . home. Large living room, wall to University Ave.; walking : . 3 bedroom 2 bath residence. centrally CUt I wall carpet. and brick fireplace. air-conditioned and heated. distance to Lake Forest Stubbs, Inc. GUIDEby i Olt0IIJe IF RENT IS: YOUR LOSS PER DAY IS:: Separate dining room modern Enclosed patio. Large lot. beautiful Schools. Price 12500. $500 kitchen plus a lovely scree n e d trees. 15000. down and $79.50 per month. patio on a large beautiful lot. Call Gerald or V. Q. McCoyJr. The James Co. $40 per mo. . $1.33 per day Day FR 6-7290. nights FR5015o "We Trade Houses"SURE GOOD BUY Owner leaving town SouthwestBeautiful Office corner N. Main $50 per mo. ,. . $1.66 per day home.and must living sell.room.4 bedroom family, 2 room.bath brick home on Vi acre and- 23rd Blvd. yule The Inc.James. Builders Co. of of Gainles-Kings- : Village y &ten built-in kitchen and scr e e n e d lot. Over 2.000 square feet in __ _m_ berry Homes for this area will $55 per mo. . $1.83 per dayI porch central heat and cent r a I main house. 3 bedrooms. 2 baths be happy to answer any ques- M1 1 air conditioning. Priced to sell. separate dining room large famIly tions you might have concern- :;;;: i roo m. Fireplace In liv In g ing home ownership. You mightbe 1j ] $60 $2.00 room. Central -conditioning HOUSE HUNTING? of those people that 6 MODELS OPEN I: per mo. . per day SUMMER COMFORT You must and heating. 24500. one but found :;i . see this attractive 3 bedroom 2 now owns a home that it Is now inadequate if H 1 Till Dark bath Today home located choice in a I $65 per mo. ,. . $2.16 per day northwest area with swimming $700 Downto CHECK THESE NORTHWEST this is the case a call to The I could well pool shuffle board court modern James Co. very $70 per mo. . $2.33 per day built-in kitchen. family room central qualified FHA Buyer. 3 bed- solve your problems. By this :... ...: 2 baths large living room 268 i heat and air conditioning. rooms. HOMES TODAY we mean trading in your present 2itn2YoM : with fireplace den. and modem home. M * $75 per mo. . $2.50 per day UNDER 10000. New 3 bedroom kitchen with dishwasher. Full tt: homes built under FHA specifications price 17000. $107 per month Including There are a number of questions - taxes and insurance. FHA & VA that we can answer con- I ;HUGH EDWARDS INC.I $80 per mo. ., . $2.66 per day buyers and with available FHA financing.to qualif led No cerning trading. We feel that ! closing costs and no city taxes. $21,500Excellent by talking with us you can I 2837 N.E.lSthStreetkL $85 per mo. . $2.83 per day Phone for further details. $15,400Three pick a suitable floor plan and ! 3 bedroom. 2 bath homein exterior design that will suit WESTSIDE. New residential subdi- Littlewood Westwood school your needs. from our many ( Phone 372-1551 jj $90 per mo. . $3.00 per day vision opening soon. Located on area. Carpets and drapes are Included bedroom, two bath colonial model. All brick, plans that we keep on hand. $3.16 down Newberry 5 years Road.on balance.Just $500.00 Lawn .and Charming landscaping screened are porch.exquI- front corner lot, paved street all! city services, walkto A get call all to the the facts James about Co. will any 1.1: @&'t ;i'l$:& _:E. 1B.f 1 $95 per mo. ., . per day site. 1029 N.W. 36th Drive. elementary and Junior High schools. Only $550 type financing, any questionsyou . M. M. ParrishAND down only $94.53 per month complete. These homesare might have without any --- - $100 per mo. . $3.33 per day ASSOCIATES. INC. Lakefront new; and almost ready for occupancy. obligations on your part. MEMBER MULTIPLE LISTINGH. 90 Acres on sparkling, springfedlake We have lots available Inmost : Wayne Hill Helen Graham with sand bottom. $ O.OOO. :29 any section of town for Carolyn Gardenhire Mary Parrish pet. down with terms. you to choose from. YOU CALL 372-8441 TO PLACE YOUR NE First St. TeL 372-5375 $13,500Three 119. ARNOLDRealty Jimmy Womeldurf and Gene Paramore have over 30 years SUN RENTAL WANT ADS FORDYCEREALTOR Company bedroom one bath model with double access combined construction experience of homes. By in careful the Multiple Listing Member to master bath. Stunning exterior elevation, lOOx supervision by Jim and CAN 1219 W. Univ. Ave. 372-3522 Gene, it will enable as the BUYA D Associates: Pete Sieg 100 foot lot. Lots of windows. Only $450 down FHA. homeowner to get more you home : Jane Caldwell F. W. Hodge Monthly payments only $81.00 per month. for your money and certainly Jim Sheppard Charlie Mayo makes The James construction tI Bob Kalkman Jimmy Greene to be beyond compare.By . 35 Houses for Sale 35 Houses for Salt Play It CoolSoak $15,000Three 3-Bedroom ; 2 up the sun this summer and M building primarily the , be cool about it in this home witha Kingsberry home we feel we HOUSE and 6 lots in Lake Shore 1200 Sherwood model. Homesites. Price 12500. For in- 2 BR Home. corner lot. West Park marvelous swimming pool. 3 attractive bedroom, two bath have a great advantage and formation call 372-2840. area. Reasonable payments ideal bedrooms 2 tile baths. El- square feet of modern living space. Only $100 down great opportunity for you as Bath Home With for young couple. Available by egant living room. family room PRICE REDUCEDLike VA or $450 FHA. Monthly payments of approximately the purchaser to pick design June 1st. See at 1031 N.W. 55th with fireplace separate din I n g and floor plans that are created - SPACIOUS"Over Ter. room. kitchen with breakfast area. new near shopping 3 br 2 $91.00 per unit complete. by some of the country's built-in gas or electricoven Contact FORDYCE & ASSOCIATES, bath Cent heat. Cent air, modern leading architects. 2900 Sq. Feet living area In 3 BR, family rm. home. Treed INC., 376-1236. kitchen ornamental fenced patio. this unique home. 2 king size lot. Littlewood Westwood dist. Call today. Call MARY MOEL- $12,250Our If you desire complete information and range for as BR's. 1 smaller BR, Co. and Huge living Top shape. Avail. Aug. $15,100. LER call The James room large Fla. famIly Quiet LivingJust will to come to room. big we be happy Satisfactory financing. 527 NW 35th room builtin elec. kitchen. Also St. Ph. 376-0417. outside the city limits away ANGLEWOODAprx best buy at a popular price. Three bedroomone your home and spend any little as $86.03 per mo. extra kitchen with stove. different at $400 amount of time necessary to from all the hubbub this 5 bed- bath home new and distinctively Re,.. & washer-dryer. 2 tile baths. i 2000 sq ft of gracious living explain The James Co. systemof home situated room 5 of 3 A-C units. HW & tile floors. MCKINNEYGREEN beautiful rolling land.on Living acres room space, 3 br 2 baths. Fla room. down FHA. 100x100 lot with trees, $74,00 a month home ownership.We (including ins. and taxes) Some of the most gorgeous pan- with fireplace and a charmin g for Cent heat awning windows dbl total payments. Newly clean and ready for a family.All t elling you've ever seen. Open mal dining room. Contact FOR garage, Ig corner lot. See MARY city services, walk to elementary and Junior High can secure FHA, VA and beam ceiling. You'll have to DYCE & ASSOCIATES. INC. 376- MOELLER schools.All several different types of con- after minimum FHA down. see to believe such exists. Can DEATONREALTORS 1236. ventional financing.Let , be used as two large Apt*. So of these homes are located on N.W. 39th Street convenient to town. All this and NEAR N.W. 13th and 14th Place and are readily acces- us mention a few of . more for $17.700. Excellent terms. Stop medical VA and the Homes that are either un- GAINESVILLECharming sible to downtown center Hospital der construction or in the NOTHING DOWN V.A. i' J. J. An Investment FinleyIf now will mean Income nearby shopping center. . later. This small home with spacious. 4 br 2 story planning stage.4Bedroom. I UNIVERSITYREALTY you have a large family and apartment Is the perfect way to house, partly furnished, entry ($100 Closing Costs) . want of this nice 3 full tile baths plenty room. Invest your money. Excellent fi i- hall Ig living room dining room, WHY PAY RENT? home will serve well 4 B. with 2300 Sq. Ft. living you nancing. Located in the downtownarea. kitchen. large landscaped yard. over R. 2 bath- Fla. Room-Central Lake view. Melrose Fla. Call area. You must see this hometo Heat Ideally located within 3 .Call INC..FORDYCE 376-1236. & ASSOCIATES MARY MOELLER Sales Office N.W. 39th Ter. in Palm View appreciate it. We will tradeon It has all these features I lBS N. Main St. Ph. 3724351W. blocks of the school Paved this one.3Bedroom. M. Munroe. Realtor streets Beautiful shaded lot l Asso. S. E. McLaughlin Frank This property is in excellent condition Go West- BUDGET HOME IV* bath with found in the most expensive Roby. Roy McCann, T. C. Doug- Priced under 17,000 Can 3 br IVi baths partially furnished hardwood floors located on las Jr.CENTRAL. be FHA financed with low down and you will find a gold mine of near schools & shopping, low Estates.BUTLER well shaded lot. Small down- attractive features In this 3 bedroom - payment Let us show payment. FHA.Construction Kirkpatrick & Pierson home AIR CONDITIOING this fine property before you you 2 bath home. Separate din- 900.down payment low mo. pay $10- BROTHERSPhone : FENCED REAR YARDA buy. Call FR 23617. Ing room spacious Florida Room. to start soon on complete home: Wall-to-wall $21.800 Contact FORDYCE & ASSOCIATES 5 V. A. 3-4-Bedrooms homesin carpets.. draperies.. central air Good ValueYou INC.. 376-1236. N.E. Gainesville. Call now Dwens-Cornlng fiberglass Insulation certified aluminum ""n- MARY and make all color selections.All dows central heating optional central conditioning. fenced rear yard.. aIr conditioning Idequate - : FR 2-9545 daily: FR 6-0948 nights these will be brick veneer. wiring for all future needs Quality Chambers gas oven. will find in this 3 B R. 1 bath FORDYCEAssociates modern cathedral beam ceilings - range. and hood. Use of shallow- home in the Northwest area. We have 40 lots on 39th Ave. television wire built-In telephone outlets In master well pump to keep lawn and Only $40000 down and $88 00. a MOELLERREAL -=---- 100x276. Pick a lot and house bedroom and kitchen spacious storage areas Wolmanlzed shrubs In present luscious con- month Call FR 3617.. Inc.Real plan to suit you. pressure treated lumber foldaway closet doors full land- dition. Vanitied laundry sink In scaping and spot sodded lawns paved streets. curbs. and connecting utility room. Large Estate Exchangors Now under construction 3- gutters full concrete LittlewoodHere driveways storm drainage city sewer living room. separate dining Grace Multiple S. Fordyce.Listing Realtors Broker TOR Not Every Bedroom, 2 baths with 1453 age double stainless steel sinks gas or electric Tappan ) I room. Three large bedrooms. Is the house that will suit Dudley Goulden Associate Sq. Ft. floor area double car built In oven and range range hood with fan and filter - Hugh Edwards. Inc. 3721551. your needs. It has the location- Harvey Benton, Associate 1019 W. Univ FR port on shaded 100x276' lot. Will safety edge Formica cabinet tops custom built-in cabinets I right by the school. It has 3 B.R 6-4471 trade on this one. bathroom colored 926 W. Univ. 376-1236 Member of Multiple Listing Wall-Tex vinyl paper In kitchens and baths . I SEE BEAUTIFUL 2 baths. Fla. room Kitchen con- _.. ..._..ou......._._....._....._......_.............._...._......_..__.............um.............._... tile and fixtures built-in vanities In all baths Moan Dial- bination Central heat. It Is ItItIIIIIItIIfIIWUIIIIIIIIIIIIIIIIIIIIIIIIIIIIIWIIIWIIIIII IIWWIJHIHI1IIWUJIIIIIIIIIIi Cet tub and shower fixtures PLUS free membership In - MALORE GARDENS priced right only $16.500 Can Real Estate Firm Can resident.restricted Swim Club and Community Center. : I be FHA financed One yr. old- 1 I FOR THISOUTSTANDING Owners have left town and must COMPARETHESE II I HOME fore sell. you You buy.should Call investigate FR 23617.be- HOME VALUES I Visit Our Model Today At I i \ We offer for your Inspection this ASSOCIATESJ. Display This Seal I fine new home. located in beautiful !- Fred Guy Jayne ButterworthCol. I BEFORE YOU BUY I Court Manor I Highland Malore Gardens. lot 20. 3 J. W. Davis R. J. Wiltshire : miles south of Campus on Ocala Multiple Listing fi I Hlway. NorwoodHope For More Information , t constructed Situated on of large Ocala wooded limestone tot. Redf ranksRealestate I SAVE! I Call block. 3 BR & den. kit.. laundry I"H" space. entrance porch and foyer TheJames , I large LR with fireplace, sep. I dining rm-famlly rm combination 1IIIIIIIImlllllllDllllllhuhlllllUU9III11111R11111111! Inc. large double carport with MODERN FLORIDA STYLE Co. . I generous storage facilities. HOME The large living 1115 NW 40th Drys3Br.2Bath '-' PLUS FEATURES room. dining area Flori d a - We Trade Homesor I Of Gainesville Inc. room & outdoor patio and 1. Near the new Gainesville Country Club walled-In garden beyond the g We must sacrifice this Builder of Kingsberry 1 BUILDERS AND DEVELOPERSSales 2. Designed by local architect sliding glass wall literall y i --Our inventory is too Property I I1IIIIIIII Homes . flow into each other. 3 large 3.4. Only Near a new few elementary minutes to school Med. bedrooms. 2 baths modern i much-We will take OFFICE PHONE Office NE 23rd Blvd. & 11th Center and downtown builtin kitchen. CENTRALAIRCONOITIONEO i 3 $750 for our equity. IIIIIIJ1IIIIIIIIIIIIIIIIIImmn1ll! 372-2527 Terr. 5. Loveliest lots In town are for the You assume $17,000 = NIGHTS & HOLIDAYS located In Malore Gardens long hot summer ahead. If you enjoy truly MODERN Approximate mortgage. The following are ready for 372-7401 Phone 372.3471 Call today for InformationFR FLORIDA LIVING you s Hurry to take advantageof occupancy. . 2-4625 or FR 2-8336 should call us now to see this. WOODROW SEAY CLOSE this. ONLY 22000. 1115 NE 5th St. 3707 N.W. 21st PI. ...:.$.....<.:..: :.W...: ....:.Y... ......o/.v.<<.y..(::: ....' (.(..<,<:!_:& _( ...w..H.o"Y.oY.ww.: .. .<.<.<.x....(...<, << :( .._... TO UNIVERSITY GOLF 4 BR. 2 bath $650 down. a ;; : ::: ;:- ; < ---- > 'lW .MrN..N..o'( ; IH.- .w.. BUILDERNEW COURSE & Campus. Cozy 3 Br.2 Bath $105 mo. ff \ 3 bedroom 1 bath homen Our Loss Your Gain oaks.$350 est DOWN led Only under 11.000 and spreading appx.with$70 a -Our be lowered inventory-- We must will 3 1442 BR. NE 1 bath.16th$350 PI. down. ; i1-) I II per mo. SHOWN BY APPT. take $750 for our equi- S98 per mOo g Better LISTINGSTHEIR ONLY. Call 4-0817. 'I HurryffJust ' 08 ty. You assume $13,600 3330 & 3320 I JUST OUTSIDE CITY LIMITS g (Approx.) mortgage NW 30th Ave. LOSS could be your gain. We now have several Hurry! We must sell 3 BR. 1 bath $500 dn $7950 3 : See this excellent listing. Three homes listed which are lust now! per mOo ? bedroom two bath centrally heat- outside the city limits I ed and air conditioned house with where TAXES & UTILITIESARE 1IW flfl1Uflt3Imt8tmlII ! Florida Room and screened porch 4617 SE 1st PI. LOWER but whereyou overlooking a spacious landscaped can still enjoy all the FOR RENT 4518 & 4608 SE 2nd PI. g garden. malor conveniences of city 3 B R. 1 bath $400 dn, $61 so Iffl I Homes M 1 living. Call us about these. l24SE7thSt.3BR,1 per mo. L : $40000 DOWN and $80.00 per =a Bath =- month will buy this three bed- BEFORE YOU BUY let us show 1 Year Lease $95 per Mo. 205 SE 38th St. g room house with Florida Room. you this NEARLY NEW Bath $300 dru. $66 per mOo 37 f Ii Range and refrigerator included. home with well established - I _nmnnmmEmnmBThtm1WL }: J yard. 3 large bedrooms. 303 SE 38th St. 2 bedroom masonry home and 334 2 glamorous baths. livi n groom When home this : ACRES OF LAND ONLY IV* of entertainment s I ze Norwood 304 & 314 SE 39th St. you buy a M miles from the city limits. 1. proportions. separate dining- 3 BR. 1 bath. $400 dn. $64 Leftin p 000 DOWNIt room. panelled F I lor Ida permfflllflniiummimnimiiwiisiiTitumiinumi. seal is best assuranceYou iii .; room with old brick fir e- your I t BLACK ACRES We have 2 lovely place. Oak strip fl o o r s. I Hope I 3 bedroom 2 bath masonry Central heat & AIRCONDI- won't pay too much. You won't waste days looking f I II' homes In this desirable area. TIONING. very Big modern kitchen 3236 NW 29th Ave. CALL US FOR DETAILSI Including Disposal. "H" Inc. at the "wrong" real estate. You'll get accurate Pine Forest 3 2 , BR. bath $450 dn S9t 37 --a .. fj Dishwasher. Built-in stove iii:: per mo. facts. You'll get skilled professional advice. You'llsee i if ACREAGEWe h a v. several & oven Refrigerator & We I property that fits needs and pocketbook. You'll! Trade Homesor your and small tracts of and f large Double Washer. attached oaaltrewilki telkna available. CALL US NOW garage room.with Convenient plenty of west.storage Property 3301 & 3311 receive Realtors:help-ready in finding to serve sources you. of financing. We are : fate&t community R I side location. Asking LESS .wwun1mImnu-U.Ifflw-rIIr8ltlBlTh NW 30th Ave. See Gainesville Board of Realtors Speciol Section in :!__ John Merrill for THAN appointment 25500. to Call see.6X1617 Im ALL OUR HOMES ARE per 4 BR.mo.2 bath, $600 dn, $91 37 Sunday May 24th Special Section in the Gainesville Sun. I ty:fl< Realtor Claude M. "Red" Franks. Realtor 08 JOY OPEN SEEING FOR YOU ANYTIME TO EN-IF I NATIONAL REA'LTORWEEK I Puee ?'Ze4t I MULTIPLE LISTING Myrtle Lassiter. Associate YOU WILL 3224 NW 30th Ave. HUGH EDWARDSINCIL. U j Phone 372-1494 6 UNREgLL Wm. E. BiII Harris. Associate 1123 S.E. 3 BR. 2 bath, $550 dn. $U ASSOCIATESMARCELLA 7 N.E. 1st Street Phone 3764817 FR 6-53OIorFR6-7t" per mo. MAY 24-30 N.E.16thAv .ot15fhSf. Ph.372-1551 J'J - PARDI Res. 372-7943 or 376-2927 t ,,, I W. H. BUCKHANNAN MEMBER MULTIPLE LISTING f- wllnHmmllu1fflmummuIffluUwnl -InuhIwiiJnfflmnmileeiuiufflHJ8nul_ :Jfl gS3Z lWtmf.q.W1WW; :" ( :'zJzrrtrZ'$4'r-: : : : : :: : rI ,- I THAT PUNKfc OLD miBQ) 6NFTUT r'NO7 VEP' R Rm l ,.1'A'.' Wcs u CA4 Mkt4tWY IS A POWERFUL MEAN 1JM'/ TEN YEARS ? THATD SHUT UP 524T T> MOVEMEMtf FC2 5UFFERlWJf'JNk L&Y HWTWAH so THAT-YOUNG ? BACK,WHEN OO WROTE A SERIES I NEVER kNEW JOE, BUT ocotrTl MRiIHE iAWg eW1H! WpPC1u liw'f Z PUNK THAT KEPT QETTIN'AUW MtBEBADFOROOEl BUT ABOUT HtM. HE HAD A QANS ""BOUTTHATt -SNIFFLE*HAS I / WITH MURDER BUND POOR JOE AND TH"lAfTCOOLDNT tc E! NEVER CUT MATIN" ' HIS, EH? PROVE A "THlNCil OOE OOUSTl o SERVED HIM RIGHT) o .f - tr :1 6RRAtlV _ , _ ( . . -- - -- -- ,. - - ---- --- --- - - -- -- -- --- - -- -- ---- --- -- - ,- ----- - -- i - - I( . ) Wednesday, May 20 1964 Gainesville Sun 25 42 Farms & Acreage 45 Furnished Apts. 49 Rooms For Rent 66 Mie. Fo Solo 77 Mobile Homes for Sal. ( i I 85 Automobiles for Sale I I CLASSIFICATION >EXl , Must SELL new CCB. 2 BR home.. NICE downstairs efficiency apt., NICE downstairs rooms, close .' SEWING MACHINE IT'S FOOLISH.t Value Rated In. LaCrosse with 3 acres. Price close In. Utu. d antenna. Idea In, private off-street 196 Automatic Zig Zag. Looks I960 FORD. V-8, 2-door, WW. R & E reduced $8,500. Good terms. for working man or woman. parking. 53] erance.2 P P FR sews like new. Makes .pay more. RECKLESS t ANNOUNCEMENTS MERCHANDISE 462-1175. 531 SE 2nd PL 2-2582. stitches' with drop pay less. GET THE REALACS and tune 22LRGE fan I up Go .iti 1 la MemorUmS button holessews Payments as low as i 5875. Phone . II Card of Thanks .1 Wanted to BIT I FARMS RANCHES ACREAGE EAST SIDE clean cool room access cas buttons, blind overcasts o $ month with $300 down, 37 B&G MOTOR CO. w S Lost *. Feu4 t3 Machinery Took RURAL PROPERTIES & refrigerator. Ln raw hes.& mends. LAKE GENEVAMobile 196 RENAULT. 20 miles. $115 4 Personalized Serried 63 Building Materials & maid service weekly. ees. Cadillac Oldsmobile ft Travel Information I Special Notices M Antlqies Hwy. 441 Micanopy. Fla. VERY nice 63 Renault .. ..... ... $795 refrigerator 1 riorlsts 61 Mbc. For Sale Em Ph. 466-3120 large ro PULL upholstered swivel I960 Vouxhall. $359 m t Baby Sitter CnlU Caro C7 Trading Post $57 per month upGainesville's 6-2721 private or Mfrlnce. Call FR ; Mahogany cole BELIEVE IT 1962 For Galaxie ......... 1495. Places T* Go And 68 Articles Wanted 43 Colored Property A5212. table with 2 leafs and 3 chairs Phone -3407 or FR 2-0245. r i Thlns T. 8eoAUTOMOTIVE $9 Tnt Oil A. Woods i Finest COZY single room, front corner, $20. Call 372-7998. OR NOT GAINESVlllE- ';0 Boat. Marino E, Jp. Furnished or unfurnished window awning well furnished WINDOW fan $9; refrigerator $39; BEAUTIFUL white station wagon = It. Camp Hunt Fllh E= HOMES FOR SALE Lovely 1 and 2 bedroom apart. gentleman only. 231 SE 2nd St., suitcase $1; adding machine $20. Save $600 10 x 46 2 BR fur 196 Plymouth. top AUTO SALES 73 Office EqoJpmeri 2 & 3 Bedrooms. SE 14th St. C, ment. 309 NE 9th St. Phone 376- near post office. tank type sweeper $7; nice bedroom nished. only $3195. $35040 don .1 around. Power steering r ?C SaiesEentalaT7 Alrplan 73 Musical Merchandise I SE 7th Ave. Some no down pay. 608. NICE suite $47; portable sewing $5409 per month. h, auto, trans. Will tradeequity 1007 N. Main St. Mobile room also small 2- Home for gala ment. Some small down pay eiie. Over models to choose fro I for older 1955 or 26313 . machine $15 FR table Phone ';1 Trucks for Sal. beds, private th. ; ping pong 5 cr. men:. Monthly payment $57 to I MALE Roommate wanted to share entrane. later car. Bal. screened net etc. $14; crib mattress S3; TRAILER MARTHWY. approx s I 79 Tracks Wanted $55 1 or 2 $65. Also homes built on apartment. Call FR 23748 eve pc M Northcentral FIOIId&sLargest your gate table $34: big attic 372-561. 50 REAL ESTATE bachelors. FR le ; Tractors Track Rentals FOR SALE I lot for down 2-m. . no payment. nings. fan $ ; birds eye maple chest 17 PHONE 3231050SUNDAYS MUST SELL Pontiac Catalina 1963 lit Trailer Rentals Call TOMMY RIDGELL LARGE room for men twin beds, $29; youth bed $10 RFD box $1 1 TO 6 ; ; , S3 Motorcycles *. Scooters 33 Lots for Sale Builder Phone FR 2-4122 STUDENTS 2 bedroom air-con- rent factory air-conditionipg power- 84 Automobile Repair 34 Waterfront Property g ditioned apartment available single or double. Showers. very nice sax a phone $22; lawn EAST PALATKA. FLORIDAOnly steering. power brake R & H Inpndent.Dealer ; refrigerator. Call 416 N.E. mower $4 radio $5 utility cabinet - es Automobiles 33 Houses For Sale June 1. Low summer rates. For 2-181. ; ; $2,500. Call 2-5. for Sato 2nd Ave.LOVELY. 38 Cotta .. g 44 for Rent appointment to see. phone 372- $4; screen door $3; porto 3 left at CLOSEOUT PRICES; . M For Cottages I Swap CarsEDUCATIONAL Sale 02 mirrors linoleum, SAVE to $1400 1961 PEUGEOT 403, excellent condition - 37 Real Estate Exchanged 0431 anytime. 1 Ig. corner room in crib 1 $?99 or best baby beds dishes.antiques BANK FINANCING ower. 14 Real Estate Wanted 02 STUDENTS apartment large adult home with db. bed. nice bs. offer. Call FR evenings.RED COOPER & NEW 10'< wide mobile homes 2-595 89 o. FURNISHED. 1 BR coHag. all big desk with Close rmmae. - t ( Town rrapertr enough for 5 to 7 students. Alr- IS Schools *. lastractlo in. 1318 N.W. 7th Rd. Bargains gator*. Br.nts 53 Town 8. Country Trai.. Sales I960 Alpine, new paint electric, tile shower, 19 Mo lie, Dvcelnt. 40 Basinets Properties good ventilation conditioned. 3 blks. from Cam __ 372.26. _8th Ave. 3860 S W. Archer 22290. wire wheels good lob A'TO TRIM \ 41 located on Santa Fe coitio Residential Income pus. Available Sept. 1. Phone CLEAN comfortable rooms ladiesor 20 I Wanted-InstrBctU* 45 Farms *. Acreage Lake. Phone FR 25458 or FR 2- 372-0481 anytime. gentlemen private entrance 4 size gas range in good condition 195 Model house trailer. 10 x 35'., Phone 376-7824 after 5 P. BOAT TOP & SEATS 41 Colored Property Rentals s 816?. and bath. Call $75. Call 376-8775 Bedroom, (4 can sleep). Pa KARMAN GHIA 15. Excellent MADE OR REPAIRED .: EMPLOYMENT 43-1 Colored Property Salts LARGE modern clean, 1 bed- 6-3 as little I$200 doW payment i condition. Phone 2-6545 2720 "5 17 Work Wanted Male room aoart.. $75 per mOo Call NICE rooms for rent. 1607 N.W. CLEAN your rugs & upholstery with can be balance., S.W. Archer Road. Private Own 2031 NW 6th St. 1 H Work Wanted Femalo RENTALS 45 Furnished Apts. FR 25625. 12 Roa Phone FR 2-4972 o amazing Lustre Foam. Use our Total price $2175. Like new In er. 376-4661 applicator free. Calt Home 1 m 14 Sales Help Wanted I 63- Beu. side and Colored fixtures 1 BEDROOM garage apartment. fu Furniture 1703 N. o. : MUST 1962 Ford Falcon. Trailer at 13 Help-Malo or Femalo 44 Cottage For Bent 50 FURNISHED Apartment tor rent furnished For rent at 309 S.E. NIELY furnished newly decorated mounted Gulf Service seen Brant SELL Fully equip U colorful Station. i Male Help Wanted 43 Furnished Apts. 50 with living Rm.. bedroom. tile 9th St. $50 month. FR 6-2441 or career Share b.t BEAUTFUL Call FR " 5 DramaUo 6-2930 Mr. Haynes.I with one girl. lirl. By Al Pfieguer, North of High Springs on 441.. p. 1115 2-74. 4< Unfurnished Apt. 50 bath air-cond. 1, 2 bedroom S 11 Femalo Help Wanted Miami, Fla. Only $16 The Tackle EXTRA clean' cars. $95 to $595. FOR THE 47 Houses fir Bent Faro. Apt. FR 2-9569. privileges. Phone TRAILER for sale with 10 COREC 50: BR trailer $65 per rro. No pets. 3762 Box 1490 Rd. x IS, 91 day 50-50 guarantee. No down . 48 Ileuses for Bent Cn/urn. 50 Utilities turn. FR 2-5633.I NICELY furnished room. Maid cabana. Located In Glenw 0 TIME payment, small weekly or monthly . FARMS & LIVESTOCK 49 Room for Beat 50 FOR RENT 1 bedroom furnished service. Parking Reasonable SOLID Mahogany bedroom suite Trailer Park Lot 19. Price Jl S fj St Form Equipment 50 Hotel Booms apartment. Clean and coot. 160( BR. 122614 N.W. 8th St., $65. spce. blond dining room suite. Maple 000. Call FR payments. H & H Motors. rates. 210 Phone 1 ;:= 27 Feed *. FertilIzer '51 Mise. Rentals 02 month. Water furnished. Call 1 BR. 419 N.W. 2nd Ave.. $55. FR hutch, new Walnut table. Buffets 6. 1636 SE 3rd Ave. Phone 3723749.. FR 2-1411 1.ni Livestock *. Supplies S1A Wanted To Bent Ronnie Hayward, FR 2-4761 or EFF.. 419 NW. 2nd Ave., 45. 674SIA oval front china cabinet. Reupholstered 1961 all extras t: >9 Landscaping Top Soil S! B.arder. Wanted 02== FR 6-6134.: 1 BR, 3505 NW. 17th St., $65. Lawson sofa, other 80 Tractors & Truck Rentals ; CONSUL Phone 372-07.excelet Courtesy Of 2 BR. 1010V4 W. Univ. Ave., $75. household items. NEARLY NU conditi S. .. M Feu *. Supplies S3 Office Wanted To Rent I Desk Space ONE-1 BR turn apt, with privateent. 1964 4-door air-cond. CHEVY II Chevrolet 51 Livestock WantedFINANCIAL 84 E! McKINNEY-GREEN. INC. Furniture Shop. 324 N.W. 8th University U Business BentaUSERVICE = Also a 2 BR apt with air Realtors FR 2-3617 Ave. FR RENT a truck one-way anywhere Nova. This car is one mthold N. Main St. at 16th Ave. 50 6WESTINGHOUSE In the USA. from United Rent- and Is being offered at to conditioner. Walking dist. FURN. 2 S or 3 BR house or equally - 1 Alls 625 NW 8th Ave. FR : town. Call FR 25514. washing machin 6-783. below lowest available Gaines large apartment for Sept. 1. 'I : M Business OpportunItIes K Special Service 46 Unfurnished Apts.. Westinghouse stove. vile price. Call FR 6-9954 days 'J 87 Money to LoanS S3 Horn Improvement E g I FURNISHED Apt. for rent $55 per Cal Hundley Roger Hatten 3729128.376-9361 or Chrysler piece of lake front prop 83 Motorcycles 6 Scooters or 372-5032 evenings S Montages 21 Radio *. TV Service is : mOo Water and lights furn. Call TWO bedroom duplex, kit. erty on Long Po. front for sale VOLKSWAGENMILLER I JEEP station J S* Moaer Wanted ZS Appliance *. Fnrultnr I FR 21823. or FR 23794. chen equipped. $85 per month. 10. depth 3. FR 6-4278 wagon : I CRUISAIRE motor lust Call I l- See at 4166 NW 6th St. 54 Business Rental 5:0 P.M 6$ or Lambretta 63. rebuit. 85281. 2 BR. furnished apartment. No 11n.1UIIIIWIIII..I11Inllll"nRl.lllllllnllnnl1l1l1? ? ? !! tfl!!III"tlJlnllll"III1IIIIIIInlllllllUll"III.lIIJllln"1ih! ,! !!! ......".. USED furniture. Single bed. $10. Mechanically excellent good 1960 RAMBLER deluxe six. 22,500 --- ""'IYi pets. 311 S.E. 8th St. Phone FR TWO bedroom apt. available Immediately transportation Call FR 28426or actual miles by original Upholstered chair $8. Recliner oer. 6-8961. lower level of duplex Univ. ext. ; 35 Houses For Sole 35 Houses for Sale ; stove and refrig., situated AIR CONDITIONED chair $5. Phone FR 6-9631. 326 235. Needs minor body work, other NICELY furnished convenient NEARLY ne modern office or SW. 12tn St.CLOSE. wise perfect. Reasonable. Movingto about 3 blks. off campus. 1105 location 84 AUTOMOBILE REPAIRS Call C. H. downtown area. $75. Also garage 3 West Univ. Ave. Calif. & must sell. 3 blks. from Finley school. 3 BR. ARMY Officer transferred.. must apt. air conditioned. $90. Adults FR NW 6-5871.4th Ave. $80 per. mo. Phone Ph. FR Weseman Realty OU SALEOn Marlowe FR 2-13 after 5 P.M. 1 bath, dining rim. screened sell. 3 BR. 2 bath Fla. room. only, no pets. Inquire Lillian's 1113 N. Main St. 98c a Roll SPECIAL auto Au- - porCh. garage. $16,600. 1735 NW In N. W. Near School. $15.500. Music Store. NEW 1 BR duplex apt., kitchen N.W. 13th St. Building to be con HARPER PAIN CO. tomotive re palntlllS.9. 87 Automobiles Wanter BROWN I 7th PL FR 28553.TEMPTING. Negotiate equity. FR 25043. CLEAN 4 room apartment. Closeto equipped. $60 per month on a structed. Space available for 10 S.W. 7th 372-4366 Miller & Sons. N.W. tneup.. AU..O..u" lease. 73 I BUY 3 BEDROOM home. extra large shopping. 609 N.E. 6th St. years evenings.Ph. 316-83 days physician, dentist. lawyer pharmacy FOR SALE Carol Estates Swim Phone 372-0088. CARS WANTED 1950-54 Fords 1030 E. Univ. e'"u 2 Bedroom. 2 bath. kitchen built- rooms hardwood floors. N.E. sec Phone FR 2-1391. $65 per month. 376-7 beauty shop and barb Club Membership. New member- AIR CONDITIONING Tune up & Chevrolets. Al Herndon Serv- FR 2-3582 in family room. central heat and tion. Large shady lot. FR 6- 1 I BR, living room. large patio 2 Beroom. blocks 6 room from house in Mel- shop. If Interested Call ships costs $200, will sell mine Special $2-50 for performance ice Station 916 SE 4th St. rose. air conditioning. Fen ced back 5554. walk-In closets, large built In Beach. Call 475-4061 Melro OFFICE building for rent for real for $175. Phone 374-4911. test. Al makes and models. yard. Outside city limits. Priced 2 BR. CCB. terrazzo floors tiled kitchen. Phone FR 2-3826. after 630. or 475165 estate, Insurance or related bus- EIGHT-piece set 2 Hawes Powers Motor Co., Air dining ; single reasonably. Located 3945 iness. 300 to 400 feet will Conditioning ! very Servicing Center. FAIRERBY bath. furnished square or unfurnished. NICE 1 BR furnished apt. Private Maple beds 2 with ; rugs foam AIRCONDITIONING NW. 36th Street. Phone FR 6- Small down payment with pay- bath & entrance. Hot & cold LARGE 2 BR ground floor apt. remodel to suit tennant. New and Whirlpool Ironer, large 204 N. Main St., Phone FR 2 2969. Stove refrig. & Venetian blinds clean, located near traffic artery, pads SM1 ments of $55 Cal FR per mo. 6- water furnished. $50 per mo. Call 372-8259. 1524. furnished. 1018 SW 8th Ave. $75 with paved off-street parking.For . ARCHER ROAD. 3'4 miles from Phone 2-9704 or 2-1995. I' per mo. Call 376-2641 or 6-293 Information call FR 2-07 THE best cost less. Heat water for 85 AUTOMOBILES for Med. Center and new V. A. Hospital STUDENT sacrificing 2 bedroom UTILITIES FURNISHED, close. In. ask for Mr. Haynes. less with from Fuilgas SAL 3 BR. tile bath CCB CCB home. furnished. including GARAGE space tar rent, 613 S.W. Phlga new Partly 2 rooms private bath off-street I Inc. FAR 2nd St. Call Merrill, 36-5392. _ CORVAIR Monza, ' home $10.900. Call FR 2-0844. appL and washing mach. parking. no pets. 15 SW 2nd PI. I 47 Houses for Rent Furn. Jo Real 63, eUip It minutes from Univ.. few tor. FR 2-1A4- NEW clothes; for 11" fashion dolls with radio heater 5on SPACIOUS 2 story 4 bedroom. 2 blocks to grade school. Ig. lot. SMALL apart., private bath and entrance Vt retail price. Many unusual de- wall tires. 8,000 actual miles. bath frame house. Swimming $9,500. 4117 N.W. lifts St. FR 2- util. and linens turn.. suit- 56 Business Opportunities signs. Must see to appreciate. Assume payments, small equi 1964FAIRLANE pool. N.E. Phone FR 2-3738. 4435 After 530. able for quiet student or career ON LAKE GENEVA 2 broom, 1004 NE 5th Ave. FR 2-6512.- ty. Wi consider older car for girl. Car necessary. $10 per week. large Florida room Call owner at 372-8441, 4 BR. 2 RENT or sale. terms. 2 year. Manor. C a ; GE apt. size refrigerator I late ext. 8-5 BY OWNER attractive easy BR. Available May 22nd. Call 376-5159 Mathews I 3 weekdays. Comets and bath. lovely yard. Air cond., CB steel roof. deep well tt acre. after 6:30 P.M. GR 520. SHELL OIL COMPANYIs model $50 or best offer. Cal DODGE Station Mercurys cent. heat. dbl. util. rrru. swim 20 3224 mm., Gainesville. Phone 466- FURNISHED apartment for rent 2 BEDROOM duplex at 2016 S.E. now taking applications for I 376-1128 after 5:00 P.M.THWARTED auto. trans., R Wagon& H 1954., VCor 2-oor.- Limited Time Only I AS LOW AS club membership. Walking distance Mlcanopy for two, male only alr-condi- 2nd Place. Corner 21st St. House service stations now under construction LOVERVi net good condition new-paint Metcaite fc Howard Bishop. HonIng central heating, util. _open Call FR 6-4230. In Alachua County. e registered diamond white $265. CRANE LINCOLNMERCURY I $98 mo. 2832 NE nth Terr. Ph. 39 Out of Town Property furnished. Phone 2-8433 or 6-4173. Please call Mr. Pope at FR gold ring set. Marquise. Ong. Call314. 2 E BR furnished house no pets. Call DODGE '57 Royal, AT PS. 376-2349. 2-5333 for application and price $375 sell for $275. 4Dr. I $199600 wi HOUSE FOR sale in Keystone EFFICIENCY apartment. private $70 per mo. 3037 SW Archer polntment. Paid training .p Aircond.needs some minor re 372-4251 For Info. J.w.KIRKPATRICK Heights. Fla. 3 BR.. 2 baths. 1 bath and entrance. Very clean. Rd. FR 2-5 guaranteed start. 6-112 & pair. $465. Joe Boone. 6-0222 or Cal lot will Adults. 708 E. Univ. Ave. RCA PORTABLE record player 6-7447. acre sacrifice. Appraise: VERY nice 2 bedroom CCB, car EXCELLENT downtown Sincla I r leather case. 45 speed. Good con- at $11,000 will sell for 14990. lights and port and front FurnishedIncluding DODGE STATION WAGON '61. 1 Bedroom duplex porc. Service Station -open and doIng ditlon. $25. Call 376-1131. Call 376-1168 Gainesville after 5 water furnished. Couples only. Near business will lease to responsible good condition take up paymentsof DODGEDARTDODGE SHAW&KEETER p.m. No children or pets. Call FR school and shopping center. $110 party with adequa Ic IF SOMEONE IN YOUR FAMILYis $5424 per mo. Call or CHARM In a colonial manner on a 6-5824. month. 311 N.W. 20th Ave. Phone capital. Sinclair Refining Co. hard of hearing encoura g e 6-1510. 6-815 TRUCKSPOOLEGABLE corner lot In Black Acres. Brick 40 Business Properties him to enloY the benefit of a hearing - and frame. dbl-hung windows with CLEAN 2 BR upstairs apartment 372-3. Phone FR 6 or 2-6512. aid. GAINESVILLE HEARING FORD. 1954. 4 dr.. auto trans.. excellent - S shutters. fireplace carpet. 3 bedrooms GOOD going business for sale. near Campus. $90 per mo. COMPLETELY furnished home. AID CO. 620 NORTH MAIN condition. 2 ,O act ual 2 baths. two car ga Dance hall. beer bar. snack bar. Phone 23329. 3 or 4 bedrooms. AvailableJune I STREET. OR PHONE FR 6-0095. miles. New tires. $. Call 372- 230 W. 23800.00 1st. $150. Phone FR 6- 61 Wanted to Buy 8304 119 SE First Ave. University rage. building 40 x 80. 1 acre land. DUPLEX 2 BR furnished apt. Gas e261. FOR SALE SPECIAL In so many ways: Size- located near High Springs on for cooking & heating. Cold 1 Conn Silver Flute, $40 00 HILLMAN convertible 1958 Minx. 372-4343 FR 2-0503 3 bedrooms. 2 baths 441. For Information come to water furn. Private front & back 2 STORY, 3 bedroom, 2 bath fur- WANTED water must be 1 Yankee Civil War officer's sword In gc condition. $450 Call FR Area Littlewood Motel 41, 5 ml. No. of High entrance. Phone FR 2-4400. 1806 nished house. 1005 SW 13th St. priced : cle. In $1500 2- ---- -- Bonus A playhouse Springs on 441 Lake City road. NE 18th Place. $125 per month. Phone FR an good FrencM fencing foil $5.00 I working 3724441 1 Terms Very flexible 3672. coition. Cal Mercury Monteray. 1959 4-door se kit. ext. 20. 1 Electric Mower. $15.00 dan. Air radio heater Price $14,400.00Mortgage ROOMY 1 BR. living room 15 4'* pet. 42 Farms & Acreage chenette. private bath & private 2 BR 4221 S.W. 44th St. $95. CASH for your used furniture. refrigerators 1904 NW 12th Terrace. Phone white.onditio.. Exceptionally SPACE for your grand piano. space entrance. No pets. Apt. 208. 204 Call FR 23617 stoves. TVs, clothing 376-0100 clean. Reasonable. FR 2-1313. I for your full-size buffet. space for BEAUTIFUL rolling 2 to 5 acre NE 5th Ave. Ph. 6-0266. McKINNEY GREEN INC. etc. FR William's CHOICE DAY LILIES BLOOMINGNOW. 1224. E. Univ. Ave. your king.size bed. and elbow estates. Choice of wooded or TWO Bedroom Trailer. $60; one FOR RENT 1 BR furnished house Service Center 2.393. Road. Also landscaping clumps in MCA 1958 Top conditin. like Yes! It's True! room for you and all the familytoo. permanent pasture. 7 miles westof bedroom. $48. On 5 acres. Adults located 309 NW 15th Ave. $70 per WANTED used room air conditioner assorted colors at 25 cts. You dig. new interior. Call 2-305 aft- Gainesville. $600 per acre- only. Sorry no pets. 4611 N.W. mo. Phone 3728690. New seedlings available. Gonow.Hlghwav er 7:30 P.M.PLYMOUTH Call FR Superior construction and reasonably be the first to make your choice small 691G2 Holllster . 6th St. Call 29838. 20 1 priced at 2450000. Call or see United Farm AVAILABLE about June 1st. Fum 1961 2-door hardop. V- LAKE ROSA frontage and a year Agency 3722954. J BEDROOM furnished duplex. 3 B R. 2 bath home Ig. screened 8, AT. heater 4 new NO FLIMFlAMNO rojnd modern. masonry. 3 bed Newly decorated. $50 month. 17 prch. carport. fenced back Machinery & Tool 70 Boats-Marine Equip. Whte with black interior. $900 or room, house with 4 car garage. 40 ACRES N.E. 13th St. Phone FR 2-0374. large shade trees. Good equity an take up payments.Mr. . and large lot. Recently reduced Uncleared land. South of Newber- neighborhood. Close to high school 14- LON ESTAR. Fiberglass. New L Wight. 462-1173. to $18,000. Ready for Immediate ry. $100 per acre. Terms. S. E. 2: BR lot floor furnished apt. large .& U of F. $150 per mo. Phone TWO A-6 Case combines with 25 H. start generator GIMMICKS ! occupancy. Consider renting Sapp. Realtor. Newberry. Flor- rooms screened porch clean 376-776 for.appt. motors. both for $500. Call or motor. Gator tilt trailer. $695. Valiant 16 extra clean. Small ida. Phone 4722000. freshly painted. sprayed monthlyfor write Eugene Haufler. Rt. FR 23241. equity car. Call 376-3162 month period.J. for a six CLOSE in, 2 bedroom furnished 3 pests. Water furnished. $60 afternoons or 3723813 after 5:30 W. KIRKPATRICKRealtor ACREAGE per mo. Phone FR 6-5883. h"-se. 403 S.E. 2nd St. Call 372- Box 217 B, Gainesville, FR 15'Fibergiass boat. 30 h.p. Johnson ask for Bob. m 3 Gator trailer. Trade for I New 1964 1 CMC Pickups 31 N. Main Phone FR 24404 REDWOOD APTS. 4401 S.W. 13th MISC. tools V4 h.p. ele fishing outfit or cash. BRING out the best In your car.Superior . 300 plus acres ext heavy hammock VERY CLEAN 2 BR house owners cmpesor. Member Multiple Listing St. New air conditioned 1 BR block making no lunk. G. E. Ganstlne. Waldo. Auto painting & body ASSOCIATES: land ideal for horse farm. apts. water furn. $90 per mo. have gone North until Nov. head door hardware. FR 2-4017. work Fast dependable service; I Floye Mathiasen Irene Bunnell Call FR 6-0427 or 26723.YOUNG 1st. Very good deal for right 1962 20 fishing boat equipped with delivery. WRIGHT'SBODY Ret. 640 ft on U.S. 441. Commercial site family. Phone 376-2892. BULLDOZER CATERPILLAR 10. anchors compass A. W. Reece. CaptUSN. an WORKS 2031 NW 6th St. 20 acres.; $770000 COUPLE or aged couple Very good condition. $1700. Call marine toilet 40 Evinrude FR 69707. $175 DOWN ONLY $450 DOWN preferred. but no children or pets. SLE. TRDE. RENT. Furn. Un- Alachua 462-1780. electric start outboard. Call FR .. Fla. Rm. BreakfastRm. Closing cost Included. Colonial Home on 95 acres. 2 lakeson Available now. Call 66512. 2-4837 after 5:00 P.M. 2 BR $62 per. mo. property. borders on another. 1 BEDROOM. completely furnished U.E.. 7th garage Terr.fine 372-8223 location., 7. 14'Flbergiass- boat. trailer & 27 11 within 25 ml Gainesville. $30,000 3 BR $72 per mo. upstairs or downstairs near 64 Household Scott motor. with many ex AIRCONDITIONING $5', See at 2030 N.W. 55th St. good terms. shopping center. See at 612 N.W. 2 BEDROOM house 2414 N.E. Goo h.p. $500 cash. Phone 372-0786. 6 Per Month Phone FR 20258.GLADYS. 10th Ave. or phone 63549. ,75 6th Avenue. Corner of 25th St. 2 ten acre tracts N.W., Vi mil. of House open. Call FR 6-4230. BOAT tilt trailer. 30 HP motor. mo. SMITH city limits. excellent buy $11,000 per T-A-G APPLIANCES Electric Start controls. Accessories - ea. See us for acreage. 2 BR furnished apart. with porch. BEAUTIFUL 3 bedroom, completely Tested and Guaranteed const. Perfect condS500 . Near University. See at 411 N.W. furnished house for rent. 4 Rerigerator from S up .ply 895, after 5. Including : License tag, state sales tax, life EXCLUSIVE AREA: MARY MOELLER REALTOR 15th St. or call 2-4647. $55 per Between June 15th Sept. 1st. Ranes from $ up 5on I FR 17 from up insurance and finance charges. Acre lot In prestige area with 1019 W. University FR 6-4471 mo. 6J.FURNISHED S Waher from $49 up 72 Office Equipment , four bedroom panelled home. Two 3 ROOM furnished apt. nice & 3 bedroom home. 2 Food-Freezers from fireplaces. rustic exterior. PriceIs Fordyce Acreage clean. For married cob: les on Clean nice neighborhood. $105 2 Dishwashers from $'up up SAINESVILLE'S largest volume ot- $21,000. Call 3725393. ly. Adults. no pets. Rent rea Mo. 1732 N.E. 21st Place. Ph. 10 TV Sets from $35 up flcf supply dealer. ChesnufsOffice Tropical Pontiac 180 acre ranch. 60 acres permanent sonable. Call 376-7844. 3767 60 McDonald. JIM VOYLES APPLIANCE CO. Equipment Co. Invites you Comets and Mercurys _ HORSE FANCIERSWill pasture fenced cross EFFICIENCY apt., private entrance 3 BR $75 per mo. & 5 rm. $30. 419 NW 8th Ave.Ph. 3725 to come In and shop, or call for Limited Time Only I like this 3 acres outside of fenced. 2 wells. $165 an acre. Located 81 bath. Lights & hot water Go Archer Rd. to Tobacco Barn MAYTAG S. KEL- free delivery. Chesnufs Office CMC Truck Center City limits. in exclusive section. In Levy County. Ready for furnished. Sum Tier student turn lef over RR tracks. go to WHIRLP automatic Equipment Co. 106 W. Univ. CRANE LINCOLN- House Is modern In constructionwith cattle farmer. preferred. Ph. FR 6-5824. 1st ., turn left go Vt mile. VINATORS Ave. In Downtown Gainesville 302 NW 8th Ave. FR 2-2583 large sleeping area. Guest W. Hunt. fro 1138.9.New MERCURY NICELY furnished for rent. Refrigerators from . 3 apts. fire- cottage.$30.000.Living Call room us witH at 372- 160 acres at $165 an acre. Off 1-1 BR apt. 2-2 BR apts. 503 FOR RENT 2 BR house furnished. New Freezers from SI3.95.New 73 Musical Merchandise Call 372-4251 For Info. place. Newberry-Archer Road. NE 4th Ave. 20 SE 48th St. Call GR 554 Icemaker refrig. from $ 5 --- 539X after WE SERVICE WHAT WE ORGAN SALE ----- --- -- 80 Icres. 10 miles out Archer Rd. 2 ROOM one bath garage apartment 5:3 P.M THE VARIETY Of Christmas Left overs. All k -I PASTURE $165 an acre. Beautiful oak trees. very quiet neighborhood. VERY nice. clean 2 BR. furnished 7 S.E. itt SORE new organs. Savings up to 30 S1! acres fenced. Two bedroom suitable for one person or cou house near Archer Rd. 5 minute FR cent. Earl's Piano Co. house. Deep well. Price Is $12.- 100 acres nice frame house. 11 ple. Call FR 6-1730. drive to Health Center. $95 per 6-3 per W. Univ. Ave. 750.00 and can be financed. miles out Archer Rd. $275 per acre. mo. m-216 FREEZER CHEST TYPE. Guar 70 372-2 Fenced and cross fenced. Other TWO bedroom furnished apt. anteed. Can deliver I $57.50. WURLITZER SMITH small tracts available at reason near Univ. & Alachua General 48 Houses for Rent Unfurn. Refrigerator service in your America's .No. 1 piano and BRAND GLADYS Hospital. Ph. FR 6-7955 Gainen.yule Piano Co. able prices. home. No servic charge on re organs are at Earl's or write R. T. Stroud P. 0. pairs. refrigerators and Gainesville's evcluslve Wurlit- t REALTOR Box 365 St. Augustine. freezers needing repair. FR 2-1330. zer Dealer. 702 W. UniversityAve. Fordyce 1 BR. furnished apt., water fur. FORDYCE RENTALS Phone 372-2 Associates Anna Hinson: Florence Burns Associates Inc. nished. 4123 NW 12th Tedr., $60 Call our agency to find the PIANO. good condition $100. C a II . house you wish. Many 66 Misc .For Sale. Call 376-2641 376-2930 lste per mo. or Ben Griffin r Caroline Noyes Also apartments FR 22487 after 6:0 P. Member Multiple Listing 926 W. Univ. 376-1236 I ask for Mr. Haynes. FORDYCEASSOIATE. PRACTICE PIANO SALE N -W1964 ADMIRAL II cubic Ft. Refrigerator - Upright pianos some as Is. some frost free. Go. $45. Eng rebuilt priced from INC factor S 926 3075.lish Bike, $16 Grldley Music; .. : SERVICES UNFURNISHED 2 bedroom house, Gainesville Shopping Center. FR $70 Unfurnished 2 bed ALL CHANNEL T. V. anTe 25353. mt month. Furnished Dbl stack Not hous. cpee duplex S., $90 month. FR In ese to . 8th Avenue. Automotive 64HOUSE for rent. See house 2400 DOWLING'S UPHOLSTERY RAMBLER6.pasenger Home And Business blk. Hawthorne Rd. 2 BR $ Chairs, "o as s No money 77 Mobile Homes for Sale down : monthly. Medium standard as $ per mot Call FR to rent. Free estimates, pickup 1958 HICKS trailer 8 x 43'. with I 22 lver service. All guaran x 30 cabana. Air conditioned Auto Gloss Plumbing 2 BR duplex. unfurnis. Located _te Phone 3767 w 1 furnished. Phone 376-7317. at 1823 NW No pets.Couple BR SEWER INSTALLEDNEW preferred. per mo. TRADE your costly to operate AUTO GLASS Is our only busl- & used fixtures complete 810 E. Univ. Ave.s ELECTRIC water heater and WY A sedan at ness. Immediate Installation; $48 for a new glasslined GAS free pickup & delivery. Add plumbing HUGULEY.service Gainesville"BIG"PlumbIng JIM- FOR RENT OR SALE 3 Bedroom. water heater. Much more hot TTrailer never before price. beauty & value to your car. FR 21589 2 bath. central heat built-in water at about half the cost with MAULDIN'S AUTO GLASS CO. stove. Call 431 after 3 p.m OUR LP GAS. PROPANE. ACT NOW! ! 323 N W. 6th St. FR 6-2558 2 BR. unfurn. house with stove. ARCHER ROAD. fR 6-5110. . UpholsteryUPHELSTER I II large yard, quiet street $65 per HOOVER and KENMORE home Home of I Bulldozing Phone 3329.. floor Pacemaker Mobile HomesShasta : your furniture at mo. polishers, excellent operatIng and Airstream reasonable prices. Call Sally. VERY nice. 2 CCB. car Cli. In. ea. PLAT Travel Trailers ( SMALL bulldozer. lOader. dump bedro Experienced FR -9888. trucks. fill dirt lime rock. Top port and front porch. Furnished.Inctuding FOR ROKER. $12 376.NEW Ocaia's First Mobile Home soil. Phone 372-7S46. automatic washer. and used chain saws lawnmowers Dealer Since 1948 i RemodelingDO Nea school and shopping cen edger tampers light 1923 Silver Springs Blvd $ BULLDOZERS & Dragline Backhoe ter. $110 month. 311 N.W, 20th plat clbe. wSIn Briggs Phone 6213 1763 wheel tractors motor YOU NEED. Florida room ex Ave. Phone Olla. . 3723.LEASE Statt m nw' grader. Free estimates. W. G. Ira room more room.. roof work .sle and . (Burkt Johnson FR 219. or maybe a complete new home1 or SALE. Prof. movi Meyers 231 NE Br. 2 bath. Hardwood Tool FEDERAL QUALITY HOMES 3 For a free estimate. & guaran- fo 16th Ave. -: . Concrete teed work phone Carl C. double garage. Ig. we lo. Phe Waters. 372-8049. Faculty neighbors. 3 S. AIR CONDITIONER Coldspot 1L500 G NW 13th St. 441 South 6 Station 20th St. BTU. 250 volts excellent condition Gainesville 3725113 Passenger / CONCRETE finishi"9W I k a S. $150. See at Lot Pine- I to S, Sunday 11 to 7 drives. patios slabs and shuffleboard Sewing Machine RepoirrCALL 3 BR, 1 Bath complete kitchen, hurt Trailer Park.REPOSSESSED 6 Hour Is a must with us.SPECIA Wagon at never etc. expertly done. Estl- near schools and shopping cen _ mates Call 377-3884. anytime. -SEWING MACHINE SER- ters. For information, Manaro's Slant Needle THIS WEEK before price. Appliance Repair & VICE CO. (15 W. UniversityAve. Restaurant. FR 2-4690. Singer. Zig Zag and attac W mobile Landscaping 376-1075. We repair ell ments aplIus. S large lot. $2895. 1 Mile he.. Act NowDELIVERED _ 3 BR house at 1311 NE Air Conditioning Makes Work fully guaranteed. 14 Te.Stove overcasts switch, I. & refrigerator. $ per $4se Balance $ : Paynes Prairie. For appointmentcall per mo. LANDSCAPE SERVICE 7.ef FR 63052.WEBUY 0 Grass-Sod-Garden MainNurserystock Tires Alignment m Phone FR 620 Wevman W. Univ. Ave. Phone . A-l HANDYMAN SHOP of ail kinds.CREVASSE'S Brake Service Realty.RENTALS 21" MOTOROLA console TV euip First In air conditioning and Appliance NURSERY with remote control. repairs. We sell guaranteed Landscape Co. P perfect at USED MOBIL HOME washers, refrigerators etc. FR 6-2514 for free estimate. VACATION SPECIALON We have many attractive rentals 'Just $9$. FR citi Price Top dlar p . famous nationally known Mohawk f P. FR in houses turn and unfurn. Call c"c tires . Save to I x 37* New Moon house trailer. $2038 up 60267.WE SOFABED. One owner FIX IT Mortgage BrokerFHA 50% on new tires. See our new MARY MOELLER. REALTOR new 10 years ago. No bh Must sell b Aug. Excellent buy. I Any type appliance electrical and conventional at lowest wrap around retread that gives 1019 W. Univ. FR Phone FR 2-8297- 5 p. Very resonabe. Write box 421- work or gasoline engine repairs current rates. Terms to 25 more mileage & traction. Latl- 2 BR house with 2 screened p weekdays o all day Sat. tV Sun. A. co Gaiie S ' Immediately and economi mer Tire Co. 623 N. Main St es in NW Good NOW SHOWING don years. Will gladly discuss at no si John boat 4 cally. Pick up and delivery. obligation. Call tomorrow.J. tion. Water furnis $75 p. JZ ALUM trailer $150 mt; 16 MOBILE HOES AT RIDGWAY MOTpRS-Plus Tax & Tag. BUTLER & SONS Tree Service Phone ext. 1 2 Floor I KIRKPATRICK. Realtor i m 636' cap stove W. $75 camp a ; Motors has their entire sale! SERVICE CENTER 31 N. Main St. Ph. FR 24 N quiet, 3 BR 1 home misc. furniture tools. Terms tailed to meet Ridgway put inventor on special I 376-1866 A-l TREE SERVICE CLEAN bat later little and 1531 NW 6th St. your budget. FRED B. ARNOLD Pruning. demossing! bracing & ca- ner s.. $ m & camera ept. See John save a lot at If you have been thinking abou new car, AIR conditioners Installed and re.paired. REALTORFHA /. & tree removal. Cavity SOS 3th Phone 248. Teter. SW 3 eve CONNOLLYMobile this is your chance save big II! One day service. AND CONVENTIONALLOANS work & tree feeding. Lawn serv- MODERN. 3 BR. IVj bath air-co nings. Sat S Home Sales C. A. Bohannon Ine i NE 23rd Blvd. FR 64169i ice and maintenance. Licensed diti with large sce FOR SALE Hotpoint stalnt steel 2 Miles No o U. S" PLANNING TIME IS USED CAR TIME VACATION M60 121f W. UNIV. AVE. PH. 372-3522 & insured. Free estimates. Troy porh. carport and uit r range & oven bil i type SELEC i REFRIGERATORS. electric ranges Thames. 376-2940. Jack Hoov r. with washer-dryer ci separate pieces cabnt excellent Closed 62-16 Fairlane and washing machines repair MORTGAGE MONEYS 466-3482 Gainesville. Fla. at 601 NW. 36th .. condition. 175'al. Ph Says '61 PONTIAC Bonneville 4.dor sedan wagon and serviced. One day service. II per cent Interest. Terms to mo. Call FR 2-1476 or FR 62 TWO bedroom house trailer. S automatic transmission, . ( 25 years. TRUCK 3194 one bedroom house trailer I automatic transmission radio ' rors experience.. Btvd C A.FR Bohannon.6-IUf BUY BUILD REFINANCECall HAULING 2 BEDROOM house ufIs FOR SALE Bell 12 watt ampKfer. Can be rente Ph 3761234Monday I heter. . . . $1995 E. 23rd & MOVINGANY stove, refrigerator $10; Fisher series 1 AM- t Fry S heater steering power Ambassador 4- . Dan Byrd 4141 NW. 13th month. FM tuner $25 Electro corner per. ; S S Vo I low ; Appraisal Service 125 NW 13 St. Ph. FR 2-2511 type hauling. large or small,. FR 6-1541, 623 Hay sake$15; All to s Call FOR trailer SALE& newly cab redecorated$600. Owner 2 BR. brakes. price. door sedan., air conditioning, automatic - done Immediately courteously. 5 $1895 at 1070 S-E. FR 271 P. sell Immedi GLADYS Smith/ Realtor FHA and economically. BUTLER & 2 BR CCB h leaving transmission, power and conventional loans. Low .1 21 st Ave. $ mo. Phone 2- GE Good citi Cheap. ately. Ar Rd. Trailer Village ! SONS SERVICE CENTER. 1355NW RNGE FRED B. ARNOLD rates. Terms to 25 years. 1221 4136. sedan steering, power brakes, wide REALTOR 6th St. 37-284. Ph Aa A17 lo 16 C.fe j 1 I 60 BUICK Electra 4.dor ,. REAL ESTATE APPRAISALSERVICE W. Univ. Ave. 372-U9X ONLY $450 DOWN TREADLE sewing mai. $25; MODERN. 10 x 4' tr.ie. available .'I transmission radio bucket seats . . $2195 FORDYCE and Associates, Inc. Well Drilling Closing cost Included. vetia blinds 72 n xS4. up t Aug. 15t 15 per ml' automatic ,' '62 FORD Galaxie "500" I' HI* w UNIV. AVE. PH. 372-3522 Conventional and F.H.A. loans.Cal' SBR $62 per mo 3 x 3 g cit Call Phone 36S. heater, power steering, power 4.dor 3761236. Grace Fordyce. WALLACE BIJRCH WELL DRILLING SBRllpermo. 62 101 2 PlaUSE automatic transmission, 1964 FLEETWOOD 57 x 10. 3 BR. I Realtor. Fordyce 5. Associates. See at 2030 N.E 55th St. I I brakes .V. . . $1595 hrdto Auto Equipment Inc.. TU West University Ave- Quality Work at Fair Prices. _Phone FR D refrlrt gas,range fan.and $380$d. Tai over paymentsof raio, power steering. j flUe. 2 to 6" Wells. 5.0 lter. wit m. Jam H $1695 CLEAN 2 bedroom house, kc Hete almost n. 376- Brown. Waldo. -J7s I Call 372-0598. furnished. SW 9th . JACKS rebuilt I 'AINTINGVANTED 1 71. .23 years in Mobile Home Bust- HYDRAULIC Realty FR 245. - exchanged Repair kits tc WINDOW CLEANINGWINDOWS mt Unlv.r WURLITZER Maha" spin pi nessDeals t Service to .stisf RIDGWAY MOTOR CO. Free Queen $450. Special attention Walker Jacks. Factory authorUtd ; Painting es- an sle. y walker Hydraul Jact timates. No }lob too small cleaned. floors claite!I lilt NW 40th Ave. 3 BR. CCB sle b springs $15. F students. Buns .Mobile Service Agent. HULL'S BRAKE and waxed houses washed 1'', home, separate dining rm.. carport dinette s 4ch a Irs Ho Inc. across from G.lns 1132 S. MAIN ,ST. FR 28433I SERVICE & SUPPLY 1314 5.i 1 I Work guaranteed. ,Phone yrs. experience. Free stlmett fo porch. Near Stephen Turquoise cover. 906 N.E. 20th vI. Uve Market. 441 North _ Main FR 2UH I FR 2-5630. Phone FR 2-ttii $per m 2&5 Ave d 376436 \10- . \ i :....- '- A -' .I -. .. ,-, --_ _." -" "',"'k. .--z. -_ '. ___ _. _. ''_ . , I .p1S: .. r . -- ,,'I. '-- 1- -26 Gainesville Sun Wednesday, May 20, 19d 1964 or early in 1965. Privately, American rocket. France Is pre- American scientists said the paring to orbit a 100 per cent h I Will for Year Space Activity Lag a first Gemini ship probably French satellite with a 100 per GOOD SEATS would not be launched for a cent French rocket. -o FLORENCE, Italy (AP) -It orbital flights of 1963. days in space with present.ed now. year. Other pace experiments being may be a year before either the equipment. Prof. Anaoli Blagonravov, The Soviet Union and the Unit- plannedBy : SAVE LIVESGive the annual of . United States or the Soviet Un- During meeting The scientists said astronautswere chief Soviet delegate said it ed States plan to continue send- the end of 1964, a Mars i ion undertakes major new the International Committee on might be a year before his ing satellies and rockets aloft. probe by a U.S. Mariner rocket j! manned space ventures. Space Research COSPAR showing such aftereffectsof country is ready to try a majornew that will fly past the planet and Your Car A Physical Examination At which closed today, United space flights as low blood venture. Italy and France also have transmit television pictures I A Gainesville Safety CirclePENNEY'S Both countries must solve crucial States and Soviet scientists said pressure. Delegates from both important space plans. The Ital-'.back to earth. I 201 W. Univ. Ave. problems before they can manned space flights had raised day flights by Soviet astronautslast The United States reported it ians hope to launch their first -By 1970 U.S. and Soviet at- try space experiments more the question of whether a man year were about the long- planned to start flights by two- satellite using a floating launch :tempts to put artificial satellites I 376-6453 spectacular than the manned could tolerate more than five est that could be safely attempt- man Gemini ships by the end of ing 'platform off Kenya and an in orbit around Mars. I . May ATTENTION Car Owners PamtJanilioree? Popular 13, 14, or 15-in. Sizes: Ml -M - 1 i Look at the LowPrice ( f ;I, Qf sr cD on a Set of 4 N : Jlstate Safe-T-Tread Tires fF f" DpI Y '7r ? l Factory Retread from Sidewall to Sidewall t 15 Mo. Guarantee f.; t C'- . r i3? l j. i4ithZ; ;9 e 6J 4 for 3988 :X, : And Four Tires Off Your Car s . Dries in Just 30 Minutes %<. Easy To Apply Master-Mixed r M yt Whitewalls fi Only *2 More Per Tire .. . , Latex Interiors 6.00x13 6.50x13 3R4 " 9 7.50x14 8.QOt14.-, k d A bt / Flat 3 . C' 0 w A 8.50x14 9.00x14 -f A MM MM* M . 59 6.70x15 Other Sizes Also 7.60x15 Available tH Yom' r 5 Scars low price ' Gallon Fii ( NO MONEY DOWNon 1- . Sears Easy Payment Plan 4, o Odorless paint in any weather with windows closed t 9 gt i 1 We use only the best, most select tire 'A? e Stays bright and fresh-looking washable, too casings. m A .. ; Wonderful latex! dries in just 30 minutes to a rich tile- Modern tread design just like brand-new X- % smooth finish. And it's completely odorless. Apply with a brushor r- , roller onto any interior surface. Clean-up's easy, too simply I : ALLSTATE tires a real value at this wash tools and hands with soap, water. low price buy now! ' Choose from 17 Sparkling Colors 6 Spring violet Champagne ivory Sunshine yellow Spice beige ALLSTATE Passenger Tire Guarantee Oyster whiteSandolwood Frosty pinkParchment Horizon blue Capri blue TREAD LIFE CUARANTEE TREAD "WEAR beige AquamarineSage Jade green p >AGALNST ALL FAILURES GUAR. TEE Mint green Antique white green White Every ALLSTATE tire itguaranteed Tread life months for the against all failures number of stated. If & r Sunset pink tram road hazard or defect tread wears out in this period. for the life of the original return it In exchange,w.will ti srk If tire faila. w.willre pl ace it, ehargwgat the cur 4treed. gur optioo-repair it withrent exchange:: price Jes* act / out cost; or in exchange:: for dollar"allowance.* y the tire we will replace it "Exchange Price is regular. . charging only for tread worn retail price plus Federal Excise - (charge will be a pro:rats Tax less trade-in at time.* share of exchange:: price*t., of return (no trade-in deduc tioa on won tires). i 7 Roll or brush it on Clean-up's easy Wonderfully was liable t Free ALL STATE Tire Mounting with ease dries tools hands wash with mild soap in just 30 minutes. clean with tap water.. and o damp sponge. For Summer Vacation I I rfll . r r \ -ll-- 130 Mies Per Gallon; Up to . 47 MPH with the New AllstateCruisaire ( J .r -- f ,., 4 I : elI s { : \ , \\ I I nM \ 0 $349Ml Remanufactured - Enginesfor No Down s . jMoney Ladders For Every Purse and Purpose ' Ckevrolet-6 On Sears Easy Payment Plan J ; Wood or Alllm nllll1-Step or Extension2ft. Sears first Cruisaire from Italy 1 Check Sears low price 149 was built so well and designed.so . 5 Models 1949 through 60 beautifully) that the only .. ' Wood Step Stool . 1.29 2-ft. Aluminum Step Stool . 4.98 With major 1 change has been a boostin r - 4-ft. Wood Step Ladder . 3.77 5-ft. Aluminum Step . 13.22 Trade power. It's powerful 2-cycle 5-ft. Wood Step Ladder .. 4.65 6-ft. Aluminum Step . 15.99 engine boasts 5 horsepower 6-ft. Wood Step Ladder . 5.55 24-ft. Aluminum Ext. ._ _. 29.88 Complete engine assembly, with over 200 but it's such a miser with gas. 5-ft. Better Wood Step .. 6.44 16-ft. Wood Ext. . . 14.88 new parts. Precision assembled and tested. Where else could you go 268 6-ft. Better Wood Step . 7.99 8-ft. Wood Stepladder _. 10.33 You full miles on just one filling? It's get trade-in allowance on your old built by Pioggo & Co., crafts- NO MONEY DOWN on Sears Easy Payment Plan engine regardless of its condition. man of Genoa Italy.SEARS . 14 S.Main Ph. 327-8461 STORE HOURS Shop at Scars and Save STORE HOURS Shop at Sears and Save 14 Sooth Main i SEARS T as., Wed.. Thur. S.f.f I Tues., Wed., Thurs., Sat. MOIIFrJ Satisfaction Guaranteed oi Your Money Back Mon, AJM.Fri. f!..Jt'P.M. Satisfaction Guaranteed or Your Money Back Phone 372-8461 9 AM to 5:30 PM 9 AM to 9 PM I I, I 'I -- '. ( ,- . --- - Contact Us | Permissions | Preferences | Technical Aspects | Statistics | Internal | Privacy Policy © 2004 - 2011 University of Florida George A. Smathers Libraries.All rights reserved. Acceptable Use, Copyright, and Disclaimer Statement Powered by SobekCM | http://ufdc.ufl.edu/UF00079931/00126 | CC-MAIN-2016-22 | refinedweb | 44,288 | 77.13 |
goto statement
From cppreference.com
Transfers control to a new location.
Used when it is otherwise impossible to transfer control to the desired location using conventional constructs.
Syntax
Explanation
The goto statement transfers control to the location specified by Template:sparam. The goto statement must be in the same function as the Template:sparam it is referring. If goto statement transfers control backwards, all objects that are not yet initialized at the Template:sparam are destructed. It is illegal to transfer control forwards if doing so would skip initialization of an object.
Keywords
Example
Run this code
#include <iostream> struct Object { ~Object() { std::cout << "d"; } }; int main() { int a = 10; //loop using goto label: Object obj; std::cout << a << " "; a = a - 2; if (a != 0) { goto label; //causes obj to be destructed } std::cout << '\n'; //get out of multi-level loop easily for (int x = 0; x < 3; x++) { for (int y = 0; y < 3; y++) { std::cout << "(" << x << ";" << y << ") " << '\n'; if (x + y >= 3) { goto endloop; } } } endloop: std::cout << '\n'; return 0; //causes obj to be destructed }
Output:
10 d8 d6 d4 d2 (0;0) (0;1) (0;2) (1;0) (1;1) (1;2) d | http://en.cppreference.com/mwiki/index.php?title=cpp/language/goto&oldid=46567 | CC-MAIN-2014-15 | refinedweb | 197 | 51.07 |
detail.Age = atoi(word.c_str());
getline(iss,]]whats that doing there
line.
issand loads the string
lineinto it. A stringstream allows us to do input or output using a string, as if it was a file.
getlineagain, using the stringstream which we just created. This is the really useful part. We use the delimiter '\t' (or other value if you prefer) which allows the reading of an item which contains spaces.
wordis all of the string up to the first delimiter, yes.
getline, once for each item. Each time it reads the next portion of the string, starting just after the previous delimiter, and up to the next one.
#include <sstream>as well as
#include <string>
DataEntry()and it will close at the end of the function. The file will be created fresh each time, thus only the most recent version will be kept.
ios::app, in order to append the new data at the end of the existing file.
DataEntry(), and close it after all the user-input has been done. | http://www.cplusplus.com/forum/beginner/89067/4/ | CC-MAIN-2014-49 | refinedweb | 172 | 75.71 |
Easy app-specific settings for Django
Project description
django-easysettings
Easy app-specific settings for Django apps.
Provides a method for using a declarative class for an app’s default settings. The instance of this class can be used to access all project settings in place of django.conf.settings..app import AppSettings class Settings(AppSettings): MYAPP_FRUIT = 'Apple' settings = Settings()
Then in your app, rather than from django.conf import settings, use from myapp.conf import settings. For example:
from myapp.conf import settings def dashboard(request): context = {} context['fruit'] = settings.MYAPP_FRUIT if settings.DEBUG: context['debug_mode'] = True # ...
Dictionaries
A common pattern is to use a dictionary as a namespace for all an app’s settings, such as settings.MYAPP['settings'].
Easy-settings handles this fine, overriding any keys provided in the project while still having access to the default app settings keys.
You can also use a subclass of an AppSettings class to set up a dictionary.
from easysettings.apps import AppSettings class MyAppSettings(AppSettings): """ MyApp settings """ #: Preferred fruit FRUIT = 'Apple' #: Preferred drink DRINK = 'Water' class Settings(AppSettings): MYAPP = MyAppSettings settings = Settings()
Legacy Usage
If previously your app used a common prefix (like MYAPP_) you can still support projects that still use these stand-alone legacy settings while moving to a MYAPP dictionary for your settings.
from easysettings.legacy import LegacyAppSettings class Settings(LegacyAppSettings): MYAPP = {'FRUIT': 'Apple'} settings = Settings()
If a project uses settings like MYAPP_FRUIT = 'Banana' they will continue to work. As soon as a project switches to MYAPP, any MYAPP_* settings will be ignored.
While the legacy app settings class is used, the dictionary settings can still be accessed via the prefixed setting (for example, settings.MYAPP_FRUIT).
Change Log
2.0.1 (10 August 2019)
- Add Python 3.7 and Django 2.2 to the test matrix.
2.0 (24 April 2018)
- Full rework of project! Import is now from easysettings.app import AppSettings (but left importable from easysettings for better backwards compatibility).
- Removed isolated settings functionality, unnecessary with a separate settings module for tests and/or use of the TestCase.settings() context manager.
- Added easysettings.legacy.LegacyAppSettings for providing backwards compatibility for prefixed project settings when moving settings to a dictionary rather than individual settings with the same prefix.
1.1 (4 April 2017)
- Django 1.11 compatibility.
1.0.1 (24 May 2012)
- Included extra source files.
1.0 (16 April 2012)
- Initial release.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages. | https://pypi.org/project/django-easysettings/ | CC-MAIN-2019-47 | refinedweb | 422 | 59.5 |
Borislav Hadzhiev
Last updated: May 1, 2022.
Here is an example of how the error occurs.
def example(): example() # ⛔️ RecursionError: maximum recursion depth exceeded example()
We call the function, which then calls itself until the recursion limit is exceeded.
You can get the current value of the recursion limit by using the
sys.getrecursionlimit() method.
import sys # 👇️ 1000 print(sys.getrecursionlimit()) # 👇️ set recursion limit to 2000 sys.setrecursionlimit(2000) # 👇️ 2000 print(sys.getrecursionlimit())
The getrecursionlimit method returns the maximum depth of the Python interpreter stack.
You can use the setrecursionlimit method if you need to update this value.
To solve the error from the example, we have to specify a condition at which the function stops calling itself.
counter = 0 def example(num): global counter if num < 0: return # 👈️ this stops the function from endlessly calling itself counter += 1 example(num - 1) example(3) print(counter) # 👉️ 4
This time we check if the function was invoked with a number that is less than
0 on every invocation.
0, we simply return from the function so we don't exceed the maximum depth of the Python interpreter stack.
If the passed in value is not less than zero, we call the function with the
passed in value minus
1, which keeps us moving toward the case where the
if
check is satisfied.
You might also get this error if you have an infinite loop that calls a function somewhere.
def do_math(a, b): return a + b while True: result = do_math(10, 10) print(result)
whileloop keeps calling the function and since we don't have a condition that would exit the loop, we eventually exceed the interpreter stack.
This works in a very similar way to a function calling itself without a base condition.
Here's an example of how to specify a condition that has to be met to exit the loop.
def do_math(a, b): return a + b total = 0 i = 10 while i > 0: total += do_math(5, 5) i = i - 1 print(total) # 👉️ 100
If the
i variable is equal to or less than
0, the condition in the
while
loop is not satisfied, so we exit the loop.
If you can't track exactly where your error occurs, look at the error message.
The screenshot above shows that the error occurred on line
84 in the
example() function.
You can also see that the error occurred in the
main.py file.. | https://bobbyhadz.com/blog/python-recursionerror-maximum-recursion-depth-exceeded | CC-MAIN-2022-40 | refinedweb | 404 | 61.46 |
PRCList is a huge pain to use. We could do a lot better with a templated class.
I have code written, but I need to test it out.
Assuming that this can live in MFBT
Created attachment 586555 [details] [diff] [review]
Patch v1
Comment on attachment 586555 [details] [diff] [review]
Patch v1
I feel like this is something khuey can review, but I'd like the blessing of a mfbt peer. Waldo?
Comment on attachment 586555 [details] [diff] [review]
Patch v1
>+ /* Check that the next/prev pointers match up. */
>+ LinkedListElement<T> *prev = this;
>+ LinkedListElement<T> *cur = this->mNext;
>+ do {
>+ MOZ_ASSERT(cur->mPrev = prev);
>+ MOZ_ASSERT(prev->mNext = cur);
Wait, should this be an assignment?
Ouch, no!
Jeff pinged me on IRC about comparing this to the webkit LinkedList classes.
Jeff, I'm still happy to talk about this in realtime, but I wanted to address the concern that, because webkit has three linked list classes, we're probably going to need more than one ourselves, and therefore we shouldn't name this class "LinkedList" (and should perhaps design it differently?):
I guess I'm not particularly concerned about this. For one thing, we currently have only one linked list in Gecko, PRClist, (at least, I'm not aware of any others), and prima facia we haven't desperately needed a different one. (LinkedList<T> operates on the same principal as PRCList.) For another, none of the three webkit classes enjoys widespread use according to my searches [1]:
SinglyLinkedList: 1 use
SentinelLinkedList: 3 uses
DoublyLinkedList: 4 uses
(Most of these uses are in the JS heap management code.)
Also note that their singly linked list supports only push and pop; it's really more of a linked stack than a list. :)
But more generally, I prefer to design iteratively, for the task at hand. You Ain't Gonna Need It. If we did need another linked list class, it wouldn't be so painful to rename the one we have here, right?
[1] (Google is taking down code search, so who knows how long this will be valid for.)
Comment on attachment 586555 [details] [diff] [review]
Patch v1
Review of attachment 586555 [details] [diff] [review]:
-----------------------------------------------------------------
General comments for mfbt stuff:
When we've added stuff to mfbt, we've usually added at least one use of it. That ensures the code builds, that the implementation works to some moderate extent, and that the spellings of things are reasonable in context. No need to make everything that could use something, use it, but we want to at least know that it's reasonable for *someone*. Please find one existing place that uses a circular linked list and make it use this. The patch that depends on this kind of qualifies -- except that you can't see that the spellings are reasonable in context with a separate-bug patch. :-\ Maybe it's not too big a problem.
We use camelCaps for method names, don't prefix member fields with "m" or arguments with "a", don't brace single-line if/loop bodies, and put * by the type name in |T* foo|. We're not always consistent on all these points (I mean to clean it up at some point), but that's no reason to make things worse. I'd like to hold currently-clean mfbt code to a standard as high as the JS standard, and given how we roll it's difficult to get consistency without enforcing it from the start.
::: mfbt/LinkedList.h
@@ +3,5 @@
> +
> +/* This Source Code Form is subject to the terms of the Mozilla Public
> + * License, v. 2.0. If a copy of the MPL was not distributed with this file,
> + * You can obtain one at. */
> +
mfbt files contain a summary comment describing what they implement, so that the source files can be the primary documentation for everything, and directory listings and to merely direct readers to the appropriate source file:
Please add one here.
Since we don't have much experience with this with the 2.0 header to know what'll cause MXR to still display those summary comments, you probably have to experiment with this across m-c merges and MXR source pickups until you figure out something that works. :-\ Alternatively, just use the old header for now, and let the rewrite script figure it out. (I would be so lazy if it were me. :-) )
@@ +4,5 @@
> +/* This Source Code Form is subject to the terms of the Mozilla Public
> + * License, v. 2.0. If a copy of the MPL was not distributed with this file,
> + * You can obtain one at. */
> +
> +#ifndef mozilla_LinkedList_h
It looks like the convention has been to have a trailing _ on such guards in this directory.
@@ +6,5 @@
> + * You can obtain one at. */
> +
> +#ifndef mozilla_LinkedList_h
> +#define mozilla_LinkedList_h
> +
You should enclose this in #ifdef __cplusplus / #endif, in case a C/C++ dual-nature header ever wants to include this. I wouldn't be surprised to see a public JS header using this eventually.
@@ +8,5 @@
> +#ifndef mozilla_LinkedList_h
> +#define mozilla_LinkedList_h
> +
> +/*
> + * == Usage Notes ==
The more common separation we've used for describing interfaces and implementations puts the interface description, uses, and so on before the class definition (as here), but it puts the implementation information within the definition. And we haven't used == header == for separation in interface comments, usually. I suspect they'd make it easier for descriptions to be less concise than possible for the level of informativeness we want, a bad tendency.
@@ +17,5 @@
> + * The class T which will be inserted into the linked list must inherit from
> + * LinkedListElement<T>. A given object may be in only one linked list at a
> + * time.
> + *
> + * == Example ==
I think example code should generally implement some sensible concept, or at least make sense, in addition to just demonstrating the implemented API. How about if you changed the example to be a list of observers, with addition, notification, and removal ops? ElemType would become Observer, ElemContainer would become ObserverList, then Foo would become separate notify, add, and remove methods. (add/remove could be simple one-liners that forward, which seems best for understandability.)
@@ +37,5 @@
> + *
> + * aElem.Remove();
> + * }
> + *
> + * LinkedList<ElemType> mList;
Hyper-nitpick, but for readability, put the list at the top of the class (where it and its type will be seen first, at a scan), then put the methods in a public section following. Although I guess it's not really nitpicky, because otherwise the class isn't usable at all...
@@ +45,5 @@
> + * == Implementation Notes ==
> + *
> + * Circular linked lists with a sentinel node are fast and easy to program, but
> + * they're not so easy to use; the sentinel node is of the same type as a list
> + * element, but you have to be sure never to cast the sentinel node to T*.
As a general rule, implementation notes like this should go inside the implementation, away from the interface description that serves as primary documentation for the class and its use. The best place for this, it seems to me, is by the isSentinel member of LinkedListElement.
@@ +50,5 @@
> + *
> + * LinkedList and LinkedListElement provide a typesafe interface to a circular
> + * linked list. Instead of returning the sentinel node and relying on the
> + * programmer not to cast it to T*, we return NULL to indicate that you've hit
> + * the end of the list.
This info should really go up in the first paragraph of the overall comment. Although it should be rephrased to not use the "sentinel" jargon, simply saying that the ends of the lists are represented by NULL. NULL's equally as clear as sentinels here, and it's more user-friendly.
@@ +66,5 @@
> +#include "mozilla/Assertions.h"
> +
> +namespace mozilla {
> +
> +template<class T>
I prefer using typename when a template type parameter won't necessarily be a class. I know, it comes to the same thing, but might as well avoid the mental disconnect if possible...
@@ +84,5 @@
> + /*
> + * Get the next element in the list, or NULL if this is the last element in
> + * the list.
> + */
> + T *GetNext()
Existing mfbt style would use camelCaps |T* getNext()| here. Same for all the other methods.
@@ +99,5 @@
> + return mPrev->Get();
> + }
> +
> + /*
> + * Insert aElem before this element in the list. |this| must be part of a
Hmm, so
elem.insertBefore(aElem);
isn't inserting elem before aElem, but rather aElem before elem? Either way this could be interpreted seems easily confused with the other, and either way won't be obviously readable in the context of a use, far away from this description..
@@ +122,5 @@
> + }
> +
> + /*
> + * Remove this element from the list which contains it. If this element is
> + * not currently part of a linked list, this method does nothing.
Hmm, the latter behavior seems...complex. What's your rationale for this over asserting that this is in a list? I think we should assert in-listness in this method, and if a use case comes up later (that wouldn't be more clearly satisfied by a check in the caller), we can ease the requirement.
@@ +149,5 @@
> + */
> + friend class LinkedList<T>;
> +
> + /* Only LinkedList objects should call this constructor. */
> + LinkedListElement(bool aIsRoot)
bools as function arguments are difficult to read, so make this a protected enum { Sentinel }. (There's only one caller with one constant value, so no need for an Element enum too.) The member field can still be bool; the signature of the ctor called would indicate the right translation.
@@ +158,5 @@
> + }
> +
> + /*
> + * Return |this| cast to T* if we're a LinkedListElement object, or return
> + * NULL if we're a LinkedList object.
This isn't really the check you're making. Rather, you're converting an element into either the T* it represents or the NULL a sentinel represents. I was confused for a bit by the way you described this, until I'd worked through the implications of what I intuitively thought should happen in the body of this method (see the next comment).
Plausibly a better name for this would be toPointerOrNull?
@@ +164,5 @@
> + T *Get()
> + {
> + if (!mIsRoot) {
> + return static_cast<T*>(this);
> + }
I think this would be more readable if the field were named for sentinel-ness than for root-ness. And I would invert the check here to avoid a double-negative when reading:
if (isSentinel)
return NULL;
return static_cast<T*>(this);
The intuition here should be that sentinel corresponds to null, and otherwise this corresponds to an element. The extra negation makes that less clear to me.
@@ +189,5 @@
> + /*
> + * Insert aElem after this element, but don't check that this element is in
> + * the list. This is called by LinkedList::InsertFront().
> + */
> + void InsertAfterUnsafe(T *aElem)
There's really no difference between this->insertBeforeUnsafe(aElem) and aElem->insertAfterUnsafe(this), right? It's just whether you want to talk about inserting after, or about inserting before. There should definitely be only one implementation of inserting, not two, given it's a bit twisty to understand.
@@ +202,5 @@
> + }
> +
> + LinkedListElement *mNext;
> + LinkedListElement *mPrev;
> + const bool mIsRoot;
As it would be Bad for someone to copy an instance of this class because mutations to the copy/instance would totally screw up the instance/copy, please MOZ_DELETE the copy constructor and assignment operators in a private: section.
@@ +206,5 @@
> + const bool mIsRoot;
> +};
> +
> +template<class T>
> +class LinkedList : private LinkedListElement<T>
Why private inheritance here, rather than composition? Composition seems much preferable to me; otherwise the implementation has to keep in mind when it's calling a LinkedList method versus a method of an element, and the two method namespaces have to be careful not to trample on each other.
@@ +226,5 @@
> + {
> + /*
> + * InsertAfter asserts InList, which would fail if someone called
> + * InsertFront on an empty list. InsertAfterUnsafe skips the InList
> + * assertion.
I'd just say /* Bypass the in-list assertion that InsertAfter would make. */,
Come to think of it, this is also going to skip the !inList() assert for aElem. Or, hm, there's no actual such assert even in insertAfter. Add it to the unsafe insertion methods?
@@ +259,5 @@
> + /*
> + * Get and remove the first element of the list. If the list is empty,
> + * return NULL.
> + */
> + T *PopFirst()
"removeFirst" seems a better name, same for Last.
@@ +293,5 @@
> + /*
> + * In a debug build, make sure that the list is sane (no cycles, consistent
> + * next/prev pointers, only one root). Has no effect in release builds.
> + */
> + void DebugAssertIsSane()
Hmm, and we encounter the problem of checking doubly-linked-list consistency. Is it even possible to have inconsistency, if every insertion asserts that the element being inserted is asserted to not be in any other list? I think it may not be...
@@ +308,5 @@
> + slow = slow->mNext,
> + fast1 = fast2->mNext,
> + fast2 = fast1->mNext) {
> +
> + MOZ_ASSERT(slow != fast1 && slow != fast2);
It's been our experience in the JS engine that having two assertion is better than just one, because should the assertion fail, you know more precisely which part was problematic. (If it were just |slow != fast1| failing, it's possible the second half might also be failing, of course, but even still, two asserts provides strictly more information than one.) Make this assertion, and the one in the loop below it, two.
@@ +335,5 @@
> + LinkedListElement<T> *prev = this;
> + LinkedListElement<T> *cur = this->mNext;
> + do {
> + MOZ_ASSERT(cur->mPrev = prev);
> + MOZ_ASSERT(prev->mNext = cur);
==
@@ +342,5 @@
> + cur = cur->mNext;
> + } while (cur != this);
> +#endif
> + }
> +};
Copy constructor and assignment operator should be deleted here too.
@@ +344,5 @@
> +#endif
> + }
> +};
> +
> +} // namespace mozilla
/* namespace mozilla */ for any potential users that must be C-compatible and don't use -std=c99.
>.
WebKit::DoublyLinkedList::setNext() is not the same as mfbt::LinkedList::insertAfter at all!
template<typename T> inline void DoublyLinkedListNode<T>::setNext(T* next)
{
static_cast<T*>(this)->m_next = next;
}
WebKit's DoublyLinkedList uses "append()", which I'd be fine with on the LinkedList class, but not on LinkedListElement.
> put * by the type name in |T* foo|
So mfbt is explicitly *not* SpiderMonkey style? Or is the wiki wrong?
Ugh, I mis-skimmed on DoublyLinkedList::setNext. I agree append doesn't make sense for individual elements. setNext per nsIFrame's meaning of it, however, I think, does make sense and is unambiguous.
mfbt is its own special snowflake amalgam -- mostly but not entirely SpiderMonkey. There hasn't been an iron fist of style applied to it quite yet, just what gets reviewed (not consistently)...
> "removeFirst" seems a better name [than popFirst()], same for Last.
I think
T* foo = list.removeFirst()
isn't as clear as
T* foo = list.popFirst()
since "pop" makes it explicit that you're going to get something and what you're going to get. (It's conceivable that a [poorly-designed] list class might return the *new* list head from removeFirst().) I have to imagine that the return value of (pop/remove)First will be used much more often than it's ignored.
I totally agree that insert{Before,After} aren't the best names, but I don't like "setNext", because it suggests that the function does what webkit's setNext function does, which insertAfter definitely *doesn't* do. I'll try to think of a better name or see if I can find one.
The rest of the review comments look good to me; thanks for being so thorough, Jeff.
bz, Gecko's nsIFrame has setNextSibling for inserting one frame after another frame in a frame list. Were any other names considered?
We're implementing a doubly linked list here, and we need names for inserting before/after an element in the list. But insertBefore/insertAfter are a bit ambiguous about whether |a->insertAfter(b)| inserts a after b or b after a.
I tend to think setNext is at least not too bad -- which is hardly a ringing endorsement. You have any better ideas left over from the frame list changes?
> Hmm, and we encounter the problem of checking doubly-linked-list consistency. Is it even possible
> to have inconsistency, if every insertion asserts that the element being inserted is asserted to not
> be in any other list? I think it may not be...
I was thinking DebugAssertIsSane() might be useful for checking that the list hasn't been corrupted, more than for checking that the LinkedList hasn't messed it up.
That's certainly reasonable. I'm just wondering where we could actually use it, while not inducing overly-quadratic behaviors in any users. Maybe only the client code gets to play with it, and the implementation itself is stuck not using it. :-\
Upon reflection, I'm fine with setNext/setPrevious if we can't come up with anything better.
> There's really no difference between this->insertBeforeUnsafe(aElem) and
> aElem->insertAfterUnsafe(this), right?
Except MOZ_ASSERT(!elem->isInList()), which is key.
I wonder if we want LinkedList::setFirst() instead of LinkedList::insertFront(), so we're symmetrical to LinkedList::getFirst() in the way that LinkedList::setNext() is symmetrical to LinkedList::getNext().
I admit that I prefer insertFront() in the absence of this analogy.
Created attachment 587925 [details] [diff] [review]
Patch v2
Review: jwalden+bmo
I left popFirst and popLast, but I'm happy to change these to removeFirst and removeLast if you really think they're better.
Hm...git-bz usually works, and then sometimes, it does that! Thanks, Josh.
I forgot to take care of a few style nits; patch forthcoming.
Created attachment 588040 [details] [diff] [review]
Patch v2.1
Nix a few braces.
(In reply to Jeff Walden (remove +bmo to email) from comment #7)
> > + T *GetNext()
>
> Existing mfbt style would use camelCaps |T* getNext()| here. Same for all
> the other methods.
I think we should either
1) fix MFBT to conform to Gecko; or
2) fix Gecko to conform to MFBT.
The current mix is weird.
> Were any other names considered?
I was changing an existing singly-linked-list datastructure that already had a SetNextSibling. I just left the name the same to avoid changing tons of existing callers.
I think that setFirst sounds like it would move the sentinel to between the element previous to the one calling setFirst and the one calling setFirst, making the old first and last be linked.
>FWIW, I hope review comments for the LinkedList class cause LinkedList's capitalization to be Gecko-style. :)
Comment on attachment 588040 [details] [diff] [review]
Patch v2.1
Review of attachment 588040 [details] [diff] [review]:
-----------------------------------------------------------------
::: mfbt/LinkedList.h
@@ +41,5 @@
> +/* A type-safe doubly-linked list class. */
> +
> +#ifndef mozilla_LinkedList_h_
> +#define mozilla_LinkedList_h_
> +#ifdef __cplusplus
Nitpicky, but I'd prefer this ifdef start before the C++ stuff begins, so before |namespace mozilla|.
@@ +45,5 @@
> +#ifdef __cplusplus
> +
> +/*
> + * The classes LinkedList<T> and LinkedListElement<T> together form a
> + * convenient, type-safe doubly-linked list implementation.
Hmm. Ordinarily we would have this comment by the class, and I think everything in mfbt does now. But that would mean you'd have stuff like the forward-declares and stuff before it, here -- and moreover, an entire class as well. That's a readability mess. So this is a good deviation. We should make the same change to all the other headers, for consistency. (You don't need to do that here, but if you want to file the followup, that's cool.)
@@ +84,5 @@
> + * for (Observer* o = list.getFirst();
> + * o != NULL;
> + * o = o->getNext()) {
> + *
> + * o->Observe(topic);
Remove the blank line above this?
@@ +198,5 @@
> + LinkedListElement(const LinkedList<T>& other) MOZ_DELETE;
> +
> + friend class LinkedList<T>;
> +
> + enum LinkedListNodeKind {
"LinkedList" is redundant with context here -- just "NodeKind".
@@ +214,5 @@
> + /*
> + * Return |this| cast to T* if we're a normal node, or return NULL if we're
> + * a sentinel node.
> + */
> + T* AsTypeT()
asTypeT; I'd actually be inclined to just make it asT(), myself.
@@ +367,5 @@
> + slow = slow->prev,
> + fast1 = fast2->prev,
> + fast2 = fast1->prev) {
> +
> + MOZ_ASSERT(slow != fast1);
Remove this blank line too.
> Nitpicky, but I'd prefer this ifdef start before the C++ stuff begins, so before |namespace mozilla|.
What do you mean? Everything which appears before the ifdef __cplusplus is either a comment, a preprocesssor directive, or whitespace.
I'd leave the introductory comment and the #includes outside the #ifdef. See, for example, what mfbt/GuardObjects.h does.
\o/
This should be mentioned on in the same style as the other mentions -- enough of a teaser to tell the reader what's there, then directing him to the actual file for full description. | https://bugzilla.mozilla.org/show_bug.cgi?id=715405 | CC-MAIN-2016-26 | refinedweb | 3,366 | 63.49 |
C Programming/C Reference/stdio.h/getc
getc is one of the character input function. getc reads next character from file and it needs file pointer to tell it which file. It is simplest function to read the file.
Like getchar, getc() may be implemented macro instead of function. getc is equivalent to fgetc. getc returns the next character from the stream referred to by fp; it returns EOF for End Of File or error.
Syntax[edit]
int getc( FILE * stream);
Here, parameter stream is the pointer to a FILE object which identify the stream on which the operation is to be performed.
Example[edit]
/*getc example*/
#include <stdio.h> int main() { FILE *fp; int c; int n = 0; fp = fopen("myfile.txt", "r"); if(fp == NULL) perror ("Error opening file"); else { do { c = getc(fp); if(c == '#') n++; } while(c != EOF); fclose(fp); printf ("File contains %d#.\n",n); } return 0; }
Above program read the file called myfile.txt character by character and uses n variable to count '#' character contained in file.
Return Value[edit]
Character read is returned as an int value.
If the End-of-File is reached or error in reading occurs, function returns EOF and corresponding error indicator. We can use either ferror or feof to determine whether an error happened or EOF reached. | http://en.wikibooks.org/wiki/C_Programming/C_Reference/stdio.h/getc | CC-MAIN-2013-48 | refinedweb | 219 | 68.06 |
Hi All,
I am using MCU MSP430F5529 for my current project,I am getting some difficulty in it.Please find below the problems.
In our project we want to convert character/int value to string, for this we are using sprint() inbuilt function
Provided by compiler. If the character/int value is less than 10 then we want to append ‘0’
For e.g. if value is 9 we want in string as “09”. To achieve this we are using the following format
Sprint (Buffer, “%02d%02d%04d%02d%02d%02d, Day,Month,Year,Hour,Min,Secs);
But this is not working we are getting the same content in Buffer as mentioned in format specifier.
Is there any setting in CCS IDE to achieve this.
Please help me out of this asap.
The default for (s)printf is just basic support. That means, the format string is jsut printed. It doesn't make much sens for sprintf, but is meant for simple debug text output throught he debug console without need to write your own outptu funciton or have all the overhead of a full printf in your binary.
To enable interpretation of the format string, you must change the project stettings. there mey be different levels of priintf support. Keep in mind that the code behind full printf support is huge, as printf is a very complex function.
____________________________________.
Sprint (Buffer, “%02d%02d%04d%02d%02d%02d, Day,Month,Year,Hour,Min,Secs); is missing a ".
elturySprint (Buffer, “%02d%02d%04d%02d%02d%02d, Day,Month,Year,Hour,Min,Secs); is missing a ".
utpal kumar... I am using MCU MSP430F5529 for my current project,I am getting some difficulty in it... Is there any setting in CCS IDE to achieve this...
Your problem is not related to the MSP430F5529. It is caused by CCS and the way you use it (or, abuse it).
hi jens,
thanks for reply.
i will try it ,and come back with feedback soon.
Hi jens,
Missing " in the sprintf function was my typing mistake but in the code it was there. You have mentioned as sprint instead of
sprintf, this also we tried but giving error as TI doesn’t have sprint library function.
We have used syntax as follows in code:
sprintf (Buffer, “%02d%02d%04d%02d%02d%02d”, Day,Month,Year,Hour,Min,Secs);
So please give the solution.
hi ocy,
utpal kumarsprintf (Buffer, “%02d%02d%04d%02d%02d%02d”, Day,Month,Year,Hour,Min,Secs);
However, you'll have to change the default project settings (not your code) so the linker will include the printf/sprintf code with full funcitonality. The default will just discard all parameters and only print the format string as-is.
The reason is that the full functionality code is some kb size and won't even fit into the smaller MSPs. It also requires quite some stack space, also not available on some of the smaller MSPs.
utpal kumarYou have mentioned as sprint instead of sprintf
Jens-Michael GrossThe reason is that the full functionality code is some kb size and won't even fit into the smaller MSPs. It also requires quite some stack space, also not available on some of the smaller MSPs.
Not sure how sprintf is implemented on CCS but some implementations actually use the Heap, so you'll have to deal with dynamic allocation also...
The best way IMHO is to use something like itoa() which unfortunately is not available on CCS or IAR, but it's much more compact than sprintf.
Tony
utpal kumarSo please give the solution.
Version 4.0.0 has the following bug:
------------------------------------------------------------------------------FIXED SDSCM00042077------------------------------------------------------------------------------Summary : Printf only prints first character of argument correctlyFixed in : 4.0.1Severity : S2 - MajorAffected Component : Runtime Support Libraries (RTS)Description: Printf only prints first character of argument correctly.For example, printf("%d\n", 123 ) is printed as 1cÿ
If you only want to convert a small integer (0 to 99) to two ASCII characters, you can simply do:
first_char = small_int / 10 +'0';
second_char = small_int % 10 + '0';
old_cow_yellow
If you only want to convert a small integer (0 to 99) to two ASCII characters, you can simply do:
first_char = small_int / 10 +'0';
second_char = small_int % 10 + '0';
The library fixed point division and modulo add up to almost 100 bytes; in the same space you can implement a more general solution for converting integers to ASCII:
#include <stdint.h>
// div & mod through series decomposition
class Modulo
{
public:
uint16_t quotient;
uint16_t remainder;
//num = number to be divided, d = divisor
Modulo(uint16_t num, uint16_t d)
{
quotient = 0;
remainder = num;
do {
num -= d;
if(num > remainder)
break;
remainder = num;
quotient ++;
} while(num);
}
private:
Modulo();
};
char* utoa(uint16_t num, char* s)
{
int count = 0;
char buffer[8];
do
{
Modulo result = Modulo(num, 10);
buffer[count] = '0' + result.remainder;
count++;
num = result.quotient;
} while(num);
int i;
for(count--,i=0; i < count; i++)
{
s[i] = buffer[count - i];
}
// null terminate string
s[i] = '\0';
return s;
}
int main(void)
{
char temp[8];
utoa(16384, temp);
// temp is {'1','6','3','8','4','\0'}
return 0;
}
The whole thing including main() compiles to about 100 bytes (on IAR). I'm sure it can be further optimized since I didn't spend much time tweaking.
For an even more general solution, you can "templatize" the factory class, then use specialization in each case of signed/unsigned/int/long/etc. You'd have to specifically check for signs in signed specializations but should be fairly trivial.
TonyKaoThe library fixed point division and modulo add up to almost 100 bytes;
Your implementation is nice and is more or less a class-bound, recursive implementazion of my proposals/sample code made earlier in this board.
Jens-Michael Gross
Your implementation is nice and is more or less a class-bound, recursive implementazion of my proposals/sample code made earlier in this board.
I almost squealed unseemly like a schoolgirl. Thanks Jens-Michael :)
And the implementation is not quite recursive, since there's only once instance of the factory class at any given time; only the computed results are "recursed". The C/C++ language is not meant to be (shudders) functional after all. Although funnily enough, the C++ template semantics can be metaprogrammed functionally, and is actually Turing-complete...
The Modulo constructor might result in a very large number of repeated subtractions. Worst case for a number of 65535, there would be 6553+655+65+6 = 7279. Here's my implementation of an algorithm purposed by Jens-Michael Gross. It uses repeated subraction of 10^n bases. It also creates the digits in order. Plain C. Not as visually clean are your C++ code.
/*-----------------------------------------------------------------------------Lookup table for units for each position. Order is from largest to smallest.Example below assumes "int" is 16 bits. Last value must always be one.-----------------------------------------------------------------------------*/static const unsigned int g_units[]={ 100000, /* 10^5 */ 10000, /* 10^4 */ 1000, /* 10^3 */ 100, /* 10^2 */ 10, /* 10^1 */ 1 /* 10^0 */};/*-----------------------------------------------------------------------------Converts signed integer to base 10 string. Caller must allocate enoughspace for result. Returns pointer to beginning of string. Same as passed in.Assuming 16 bit signed integers and value is 29999, there will be 38subractions.-----------------------------------------------------------------------------*/char *itod(int v, char *s){ register char *p = s; register unsigned int vabs; register unsigned int unit; register int n; register int i; /* Handle 0 as special case. Code below assumes a non-zero value. */ if(v == 0) { *p++ = '0'; *p++ = '\0'; return(s); } /* Make the value absolute and emit a '-' is required. */ if(v < 0) { *p++ = '-'; vabs = -v; } else vabs = v; /* Find first unit */ i = 0; for(;;) { unit = g_units[i]; if(vabs > unit) break; i++; }; /* Loop through each unit. */ for(;;) { unit = g_units[i]; if(unit==1) break; /* Subtract units until no more of this unit. */ n = 0; while(vabs > unit) { vabs -= unit; n++; } *p++ = (char)('0' + n); /* Emit character. */ i++; /* Advance index to next unit. */ } /* Last unit is always one. Special case. Finish up. */ *p++ = (char)('0' + vabs); /* Emit last character. */ *p++ = '\0'; /* Null terminate.*/ return(s);}
I don't have a MSP430 platform. Can't say how much code space would be. | http://e2e.ti.com/support/microcontrollers/msp430/f/166/p/187230/674387.aspx | CC-MAIN-2013-20 | refinedweb | 1,351 | 63.9 |
#include "libavutil/attributes.h"
#include "ac3enc.h"
#include "eac3enc.h"
#include "eac3_data.h"
#include "ac3enc_opts_template.c"
Go to the source code of this file.
Initialize E-AC-3 exponent tables.
Definition at line 52 of file eac3enc.c.
Referenced by exponent_init().
Determine frame exponent strategy use and indices.
Definition at line 68 of file eac3enc.c.
Referenced by compute_exp_strategy().
Set coupling states.
This determines whether certain flags must be written to the bitstream or whether they will be implicitly already known by the decoder.
Definition at line 95 of file eac3enc.c.
Referenced by apply_channel_coupling().
Write the E-AC-3 frame header to the output bitstream.
Definition at line 128 of file eac3enc.c.
Referenced by ff_ac3_encode_init().
Definition at line 38 of file eac3enc.c.
LUT for finding a matching frame exponent strategy index from a set of exponent strategies for a single channel across all 6 blocks.
Definition at line 49 of file eac3enc.c.
Referenced by ff_eac3_exponent_init(), and ff_eac3_get_frame_exp_strategy().
Definition at line 254 of file eac3enc.c. | http://ffmpeg.org/doxygen/trunk/eac3enc_8c.html | CC-MAIN-2018-30 | refinedweb | 169 | 56.32 |
Events
There are two types of events in Bolt. Global events and entity events. Global events are sent at a connection level and not to a particular entity. Global events have a number of overrides that allow them to fine tune who receives the event (either defined in the Bolt event in the user interface or overridden through code). Entity events are sent to a BoltEntity.
Event Types
Global Events:
Global events can be either be ReliableOrdered or Unreliable. In order to create an event you first must have defined it in Bolt and then you must compile Bolt (in order to generate the backing code for the new event as Bolt uses a code generator behind the scenes).
Entity Events:
Entity events are always unreliable. They are sent to an explicit Bolt entity and Bolt will automatically ignore connections that do not have the entity scoped to it when sending entity events.
Events Reliability
Reliable Events:
Reliable events in Bolt are guaranteed to arrive and to arrive in the order they were sent. The only reliable events that can be sent in Bolt are Global Events.
There is a 3 byte overhead per reliable event.
Unreliable Events:
Remember that Bolt does not send events as a separate packet. The way Bolt works is that it packs everything (state, events, etc) into a single packet each send tick based on your SendRate (see Packets Under the Hood, above). For unreliable events, Bolt will try to pack the event into this packet in two subsequent send ticks; if it was unable to fit the event in either of those attempts, it will drop the event. Essentially Bolt will try to fit unreliable events into the end of the packet if any space is remaining. It will try in two subsequent packets to fit the event into the packet and after that it just gives up and deletes the event. Keep in mind “unreliable” in this context has nothing to do with an “unreliable” network packet in the traditional sense.
There is a 1 byte overhead per unreliable event.
Buffering
Also note that Bolt will not buffer events. If an event arrives for an entity (via an entity event) and the entity doesn’t exist, Bolt will just drop the event. If you need a reliable entity event you should just use a global event with the entity as a field of the event. However, keep in mind that since Bolt packs events and states together in a single packet, not everything can make it into a packet for each send tick - this means that if you try to send an event to an entity right after creating it, you will find that sometimes the event arrives before or after the entity is created. Bolt events and entities are created in separate logical streams in the packet and they will not be ordered with respect to each other.
Bolt Event Generation
Bolt will generate a new class for your event derived from the Bolt Event class after you compile Bolt. So if we created an event
EventTest then Bolt would generate (you can see this event metadata by right clicking on it in
Visual Studio and clicking
Go To Definition):
public class EventTest : Event { // ... }
You then can create the event with one of the the static creation methods. Each of these methods allows you to specify endpoint information. If you specify no target information the defaults from the Event specified in Bolt will be used. If you just want to send the event to a particular connection there is an override specifically for that.
public static EventTest Create(); public static EventTest Create(BoltConnection connection); public static EventTest Create(GlobalTargets targets); public static EventTest Create(BoltEntity entity); public static EventTest Create(ReliabilityModes reliability); public static EventTest Create(BoltEntity entity,EntityTargets targets); public static EventTest Create(GlobalTargets targets,ReliabilityModes reliability); public static EventTest Create(BoltConnection connection,ReliabilityModes reliability);
Once you create your event you can populate the event with your data. The Bolt code generator will generate fields for all of the data you added when you created the event in Bolt and compiled Bolt. For example, if we had added a field called “MyField” as an integer in Bolt for this event we could do:
// Create and setup var myEvent = EventTest.Create(GlobalTargets.AllClients); myEvent.MyField = 5; // Send the event myEvent.Send()
Receiving Global Events
You can receive global events by deriving a class from
GlobalEventListener and adding it to the scene. Bolt will automatically find all
GlobalEventListeners and register them if they are in the scene when Bolt starts. However, Bolt will de-register them after it shuts down so if you are using a singleton listener and you want the listeners to persist make sure that you override
PersistBetweenStartupAndShutdown in your derived class and return
true.
You can also decorate a
GlobalEventListener derived class with
[BoltGlobalBehaviour()], and using the various parameters have that listener automatically created when Bolt starts (the two common scenarios using this attribute are adding network type specific listeners (i.e. client vs server) or scene specific listeners). This is used in the tutorials.
Once you have a
GlobalEventListener derived class you can simply override the event handler for the global event you are interested in and implement your logic for receiving the event.
You can also register your own listeners with
BoltNetwork.AddGlobalEventListener and
BoltNetwork.RemoveGlobalEventListener. You can also register for singular events with
BoltNetwork.AddGlobalEventCallback and
BoltNetwork.RemoveGlobalEventCallback although I have not used them myself. You could also forgot
GlobalEventListener and implement the interfaces yourself and manually register the listeners.
You can retrieve the connection that sent the event with
EventInstance.RaisedBy.
IEventListener
This interface can be implemented on
Bolt.GlobalEventListener,
Bolt.EntityEventListener and
Bolt.EntityEventListener<T> in order to modify if the event is still raised if the
MonoBehaviour/GameObject is disabled (by default it will not be raised).
public interface IEventListener { bool InvokeIfDisabled { get; } bool InvokeIfGameObjectIsInactive { get; } }
Example:
[BoltGlobalBehaviour(BoltNetworkModes.Server)] public class BoltServerCallbacks : Bolt.GlobalEventListener, Bolt.IEventListener { public bool InvokeIfDisabled { return true; } public bool InvokeIfGameObjectIsInactive { return true; } // event callback overrides below } | https://doc.photonengine.com/zh-CN/bolt/current/community-wiki/bolt-essentials/bolt-events | CC-MAIN-2022-21 | refinedweb | 1,018 | 52.9 |
Code comments: A quick guide on when (and when not) to use them
- select the contributor at the end of the page -
Suppose that we have a reasonably large code base which was built and deployed to production over the span of several months. Classes, methods and fields have all been properly commented. Maybe it looks something like this:
class User
{
...
/// <summary>
/// Gets the tax-paying region for the user based on
/// the user's residence address.
/// </summary>
/// <returns>Tax region for this user.</returns>
public TaxRegion GetTaxRegion()
{
Region homeRegion = RegionCodes.Find(this.homeRegionCode);
TaxRegion taxRegion = TaxRegion.FromRegion(homeRegion);
return taxRegion;
}
}
This piece of code returns an object representing the user's tax region. Tax regions can uniquely be determined from the region in which the user lives. And that's precisely what the comment says. Now, try to imagine a situation in which this method must support nonresidents who still have to pay tax. Legislator has proposed a special tax region just for that purpose, so here is the modified method:
class User
{
...
/// <summary>
/// Gets the tax-paying region for the user based on
/// the user's residence address.
/// </summary>
/// <returns>Tax region for this user.</returns>
public ITaxRegion GetTaxRegion()
{
if (this.IsNonresident)
return new NonresidentTaxRegion();
Region homeRegion = RegionCodes.Find(this.homeRegionCode);
TaxRegion taxRegion = TaxRegion.FromRegion(homeRegion);
return taxRegion;
}
}
Notice any problems? The first red flag here is that the old comment remained intact. It still states that the tax region is determined from the residence address, but this claim is no longer true in all cases. When developers forget to fix the comment code (after it's been altered), the result is confusion. This isn't so much a question of whether we want to let the comments rot or we want them shine. It's just one of the artifacts of long-running projects to have a certain percentage of rotten comments. And once that percentage grows, developers tend to stop relying on comments -- if they ever relied on them in the first place.
Bottom line: Code comments do not stand the passage of time.
Of course, we can say that the comment must be changed whenever its corresponding code is modified, full stop. But try to say the same thing on Friday evening around 8 p.m. as developers struggle to procure a hotfix to the production. Chances are no one will even look at the comment, let alone bother writing it over. On Monday morning, the general response will be something like, "Yeah, we had that critical on Friday, but we're okay now.”
Bottom line: Code comments are the first victims of bug-fixing.
Recently I had a case of a dozen classes that needed to be refactored. They were mixing two responsibilities in an awkward way. The decision was to split these two responsibilities into separate classes. Parts of the code would go into one namespace, while other parts remained as they were. Some classes disappeared completely, and a few more new classes appeared. A couple of new classes were added to coordinate the others.
The refactoring took a day and it went well, thanks to helpful unit tests. The whole process consisted of many small steps; change the code and its corresponding tests, when all green commit and step to the next piece. All operations were conducted using integrated refactoring tool, no manual refactoring. One important aspect of this task was that classes had no comments. Otherwise, all comments would've needed to be rewritten manually, requiring a tremendous amount of work (the task could have taken a day and a half to complete).
Bottom line: Code comments do not help refactoring, but make it more difficult.
Years ago I relied on automated converters, which can build API documentation from XML comments in .NET or Javadoc comments in Java. This practice, however, turned out to be of low value. For one, there were rotting comments in the code base. One way to find them was to send out the documentation and then listen for cries of help (for every error in the source comment, a user will surely call support about it). Additionally, I always had to re-package the document into the company's own format. That is (even today) tedious, manual work. Eventually, I found it much easier to write or refresh the required documents occasionally, completely by hand, and exclusively on demand. That really pays off.
On a related note, I've had several opportunities to receive such API documents. In these instances, I relied on the "show me the code,” or "show me the public interface" maxim. I can trust the code more than the document, for sure.
Bottom line: Code comments do not help build documentation faster.
The previous statement is a strong one; I trust code more than documents. Code executes while documents tell the tale of how it might unfold. When you have to fix the bug, would you read the document to pinpoint the problem? No. Instead, you'd read the code and search for the error. Programmers are trained to ignore the code comments entirely when simulating execution errors in their heads. It only pays to read comments at the very line where we suspect the bug is hiding. Basically, that comment would be the only one worth writing.
And let's not forget the issue of comments versus language; sometimes code doesn't tell the full story. When this is the case, it's not only useful to write comments in code, but it should be mandatory. If everything else fails, you can even write a separate document, with graphs and images, and refer to it in the code. The rule of thumb here is that code comments are useful when a programming language doesn't communicate intention well.
Bottom line: Code comments are of little help when trying to understand code execution.
Takeaway
You can put comments against all sorts of things to see what happens. But in almost all cases you'll conclude that code comments are just standing in the way. After years of experience, I can freely say that there are only a few legitimate situations that call for code comments, and those are the situations in which programming language is not the proper tool to pass the information.
This happens when we work on a problem from a specific domain, such as graphical representations, electric circuits, fluid dynamics, economy and financials, etc. Programming languages simply don't reflect those domains well, and corresponding source code could look opaque and hard to understand; make sure to put a line or two of comment next to such code. And never use comments around code that clearly conveys what it does. | https://www.pluralsight.com/blog/software-development/code-comments-dos-and-donts | CC-MAIN-2021-43 | refinedweb | 1,121 | 65.12 |
[
]
Chris Nauroth updated HDFS-3519:
--------------------------------
Target Version/s: 2.7.0
> Checkpoint upload may interfere with a concurrent saveNamespace
> ---------------------------------------------------------------
>
> Key: HDFS-3519
> URL:
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: namenode
> Reporter: Todd Lipcon
> Assignee: Ming Ma
> Priority: Critical
> Attachments: HDFS-3519-2.patch, HDFS-3519-3.patch, HDFS-3519.patch, test-output.txt
>
>
> TestStandbyCheckpoints failed in [precommit build 2620|]
due to the following issue:
> - both nodes were in Standby state, and configured to checkpoint "as fast as possible"
> - NN1 starts to save its own namespace
> - NN2 starts to upload a checkpoint for the same txid. So, both threads are writing to
the same file fsimage.ckpt_12, but the actual file contents correspond to the uploading thread's
data.
> - NN1 finished its saveNamespace operation while NN2 was still uploading. So, it renamed
the ckpt file. However, the contents of the file are still empty since NN2 hasn't sent any
bytes
> - NN2 finishes the upload, and the rename() call fails, which causes the directory to
be marked failed, etc.
> The result is that there is a file fsimage_12 which appears to be a finalized image but
in fact is incompletely transferred. When the transfer completes, the problem "heals itself"
so there wouldn't be persistent corruption unless the machine crashes at the same time. And
even then, we'd still have the earlier checkpoint to restore from.
> This same race could occur in a non-HA setup if a user puts the NN in safe mode and issues
saveNamespace operations concurrent with a 2NN checkpointing, I believe.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332) | http://mail-archives.apache.org/mod_mbox/hadoop-hdfs-issues/201501.mbox/%3CJIRA.12559906.1339195685000.139912.1421883457521@Atlassian.JIRA%3E | CC-MAIN-2018-43 | refinedweb | 268 | 52.39 |
- Type:
Bug
- Status: Open
- Priority:
Major
- Resolution: Unresolved
- Affects Version/s: None
- Fix Version/s: None
-
- Labels:
Given the following script:
import multiprocessing as mp import pyarrow as pa def ls(h): print("calling ls") return h.ls("/tmp") if __name__ == '__main__': h = pa.hdfs.connect() print("Using 'spawn'") pool = mp.get_context('spawn').Pool(2) results = pool.map(ls, [h, h]) sol = h.ls("/tmp") for r in results: assert r == sol print("'spawn' succeeded\n") print("Using 'fork'") pool = mp.get_context('fork').Pool(2) results = pool.map(ls, [h, h]) sol = h.ls("/tmp") for r in results: assert r == sol print("'fork' succeeded")
Results in the following output:
$ python test.py Using 'spawn' calling ls calling ls 'spawn' succeeded Using 'fork
The process then hangs, and I have to `kill -9` the forked worker processes.
I'm unable to get the libhdfs3 driver to work, so I'm unsure if this is a problem with libhdfs or just arrow's use of it (a quick google search didn't turn up anything useful). | https://issues.apache.org/jira/browse/ARROW-2081 | CC-MAIN-2019-51 | refinedweb | 175 | 66.94 |
So the get the area of the largest circle I can use the shortest side of the rectangular piece for the circle equation.
A= Pi * r^2 r being the shortest side / 2. If I get this right.
So the get the area of the largest circle I can use the shortest side of the rectangular piece for the circle equation.
A= Pi * r^2 r being the shortest side / 2. If I get this right.
I would use If to get the shortest side. Is there an easier short way?
Well, actually If I use length and width... width would be the shortest side.
Last edited by XodoX; 03-01-2009 at 07:44 PM.
Try writing the whole program by yourself, using the methods you know. Post back if you have any problems or are getting errors you don't understand.
Most likely, many methods used by some of the programmers here are beyond you and wouldn't be accepted by your prof. So use what you know and let us know if you hit a road block.
Well, like I said.. I will use the length ( not width, sorry) as my shortest side.
Ok ,this is what I have now. We also had to convert it to acre. That's why I divided it.
Code:// Headers and Other Technical Items #include <iostream> using namespace std; // Function Prototypes void get_data(void); void process_data(void); void show_results(void); void pause(void); // Variables double length; double width; double total_rectangular; float pi; float farmable_area; float nonfarmable; //****************************************************** // main //****************************************************** int main(void) { get_data(); process_data(); show_results(); return 0; } // Input void get_data(void) { cout << "\nEnter the length of the property in feet --->: "; cin >> length; cout << "\nEnter the width of the property in feet ---->: "; cin >> width; return; } // Process void process_data(void) { pi = 3.14159265; total_rectangular = (length * width)/ 43560; farmable_area=pi*(width/2)*(width/2)/43560; nonfarmable = total_rectangular - farmable_area/43560; return; } // Output - void show_results(void) { cout << "\n"; cout << "\nThe total area of the property is ---->: "; cout << total_rectangular; cout << "\nThe total area that is farmable is ---->: "; cout << farmable_area; pause(); return; } //****************************************************** // pause //****************************************************** void pause(void) { cout << "\n\n"; system("PAUSE"); cout << "\n\n"; return; }
Where does this number 43560 come from? Oh it's an acre, I see.
However, the unfarmable area is already in acres.
Also I would not assume that width is smaller, you probably should check and use whichever value is smaller. Or at least make it clear to the user that they need to type the smaller value into width.
Last edited by rossipoo; 03-01-2009 at 10:15 PM.
Thank you for the hint! | https://cboard.cprogramming.com/cplusplus-programming/112834-cplusplus-math-equation-2.html | CC-MAIN-2017-22 | refinedweb | 431 | 82.34 |
First time here? Check out the FAQ!
I want to use a webservice, which I created in Inubit. The WSDL URL is [][1]. When I test the service in [soapUI][2] everything works fine (see picture).
When I test the service in Xpert.ivy Designer 5.1.0 S6, I get the error javax.xml.stream.XMLStreamException: element text content may not contain START_ELEMENT. What could be the reason for this error?
Here is the XML Request in soapUI:
POST HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: "BetreibungsregisterauszugErhalten"
Content-Length: 352
Host: venus.zhaw.ch:8000
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
<soapenv:Envelope xmlns:
<soapenv:Header/>
<soapenv:Body>
<bet:BetreibungsregisterauszugErhalten>CH450234</bet:BetreibungsregisterauszugErhalten>
</soapenv:Body>
</soapenv:Envelope>
asked
06.12.2013 at 14:03
Björn
36●8●9●13
accept rate:
100%
edited
11.12.2013 at 10:28
PS: Your WSDL is not valid to ppl outside the ZHAW Network.
I'm using the service now outside the ZHAW Network and it works in soapUI. Why do you mean, it isn't valid?
because we can't see venus.zhaw.ch:8000 outside the zhaw Network.
Probably your firewall is blocking venus.zhaw.ch, because it has not a valid SSL certificate. But when you check venus.zhaw.ch with port 8000 outside of the Soreco Network, it is open: see ping.eu/port-chk
Off topic: May I ask, where you work?
sent you an E-Mail
You sent a single string instead of a valid xml. You need to send a valid XML-object.
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "contentType", propOrder = {
"senderPerson"
})
public class ContentType{
@XmlElement(required = true)
protected String senderPerson;
/**
* Returns the senderPerson.
* @return the senderPerson
*/
public String getSenderPerson() {
return senderPerson;
}
/**
* Sets the sender person.
* @param senderPerson the senderPerson to set
*/
public void setSenderPerson(String senderPerson) {
this.senderPerson = senderPerson;
}
With this you create a valid response. Change the senderPerson to your field of choice and your fine.
First you need to specify how your request looks. So Ivy understands the incoming request and can validate the fields. You can create such specification in creating a plain java class inserting the code above. The first line defines the name of the request in this case contentType. Followed by properties. You add them in correct order separated by comma. I added a single field called senderPerson.
The Java class itself maps the xmltype field to Java fields and provides getter and Setters.
You can use this class now as Parameter type in your webservice call.
answered
06.12.2013 at 14:28
Daniel Oechslin
497●7●11●21
accept rate:
39%
edited
06.12.2013 at 15:06
Wow, this is definitely not straight forward. I hoped, that Xpert.ivy does the String-To-XMLparsing job for me, as I am used to from using Inubit.
I need more information to get your answer to work for me. Where to put your code - in a script step or somewhere else? And what do you mean with "field of choice" - is this the name of an data class attribute of the type ch.ivyteam.ivy.scripting.objects.Xml?
Could you add a picture of a SoapUI generated XML-request?
I've added the raw XML request at the end of my question.
It would be nice, if I get further support, since I don't know how to implement the answer (see my comment of 06.12 at 14:43). The answer makes no sense to me.
can you share a soap UI project with the mocked service and sample answer as well? else I'm not able to reproduce this issue - as the schema is not available from my network.
Hi Reguel. Thank you very much for your offer to help. But as it is now too late for the students to implement a solution, I told them that they should ignore for now. But in the long-term I would like to get a solution to this. May I contact you in January 2014 for a netviewer session, so we can investigate this directly on my computer?
I found the error on your soap request. But I can't show you the solution in Xpert-Ivy.
Your error is due to a missing START_ELEMENT means: the SOAP-request is missing the name of your webservice.
What you send:
<soapenv:Envelope xmlns:
<soapenv:Header/>
<soapenv:Body>
<bet:BetreibungsregisterauszugErhalten>CH450234</bet:BetreibungsregisterauszugErhalten>
</soapenv:Body>
and what it should be:
<soapenv:Envelope xmlns:
<soapenv:Header/>
<soapenv:Body>
<unk:betreibungsregisterauszugerhalten>
<bet:BetreibungsregisterauszugErhalten>CH450234</bet:BetreibungsregisterauszugErhalten>
</unk:betreibungsregisterauszugerhalten>
</soapenv:Body>
The difference is the unk:betreibungsregisterauszugerhalten-tag in the SOAP-request. The tag specifies the name of the webservice which should handle your request. It is nescessary to know the name of the webservice, because there can be several webservices where your request may fit.
Where the first part: unk stays for the package name. unk= unknown in this case.
The second part: betreibungsregisterauszugerhalten is the method name, defined in your top-level-interface. Like betreibungsregisterauszugerhalten().
If this doesn't help you, please provide a full code example.
answered
10.12.2013 at 16:56
edited
11.12.2013 at 08:28
Thank you very much for your 2nd answer. I'm still not able to solve the problem, but I believe coming closer to the problem. I recorded a short screencast, where I show the structure of the webservice in Inubit and my attempt to use the service in Xpert.ivy (screencast is in german only, sorry). Also I exported the Xpert.ivy project shown in the screencast to an IAR-file for further investigation.
The links to the screencast and iar-file are at the end of my initial question.
it looks like you simply need to map the return value in the result tab of your webservice. There is an empty testwebserviceresponse. This missing xml could trigger the not found exception because there is no valid XML in an empty response.
Thanks for your comment. I tried what you said, but it don't work.
One of the students groups was able to at least partially test the webservice call, so I looked, what they are doing else than me. It seems, that the input string is the problem. I made another very short video to explain my findings until now (see link at the end of the initial question).
Once you sign in you will be able to subscribe for any updates here
Answers
Answers and Comments
Markdown Basics
learn more about Markdown
webservice ×42
xml ×5
Asked: 06.12.2013 at 14:03
Seen: 11,417 times
Last updated: 13.12.2013 at 07:28
Import certificate for HTTPS web service calls
How can I evalute webservice response?
Fully qualified name of webservice including /-sign
How to use MTOM in Ivy web service call
how can I programmtically import or export processes in ivy designer into xml files?
How to increase java heap space
Web service development in AXON Ivy
WebService Process: XmlElement(required=true) does not work
How can I integrate with SAP?
Special character / Umlaut in XML with ch.ivyteam.ivy.scripting.objects.Xml | https://answers.axonivy.com/questions/172/xmlstreamexception-while-calling-a-soap-webservice | CC-MAIN-2019-22 | refinedweb | 1,205 | 68.26 |
gaggoMembers
Posts21
Joined
Last visited
gaggo's Achievements
Newbie (1/14)
3
Reputation
- Hi @GreenSock, sorry for the late response – was on holidays for the week. I don't know of any risks of adding it to the package.json. I think it would make it much more intuitive to many of us, if it would 'just work', without using the /umd/ files.
- OK, I found the solution: Browserify expects commonJS modules Babelify runs before the final Browserify process and converts all es6 modules to commonJS – files inside node_modules are ignored by default GSAP V2 uses es6 modules and resides inside node_modules, which caused the errors Adding this to the package.json of the npm GSAP solves this: "browserify": { "transform": ["babelify"] } Could you please put this inside by default? Could save a lot of people some trouble.
- So, I found the cause of this: Are you guys planning to pre-compile gsap for babelify/browserify, soon?
- ...This also creates problems when I use premium plugins like the ThrowPropsPlugin. I have to re-write this line: import { TweenLite, _gsScope, TweenPlugin, Ease } from "gsap/TweenLite.js"; to import { TweenLite, _gsScope, TweenPlugin, Ease } from "../gsap/TweenLite.js"; ...making it also reference the relative folder outside the default node_modules location.
- Hi there, I'm having problems once again with babelify and gsap. When importing any file from gsap: import TweenLite from 'gsap/TweenLite'; ...I keep getting this error in the console: SyntaxError: 'import' and 'export' may only appear at the top level (22:0) while parsing [...]/node_modules/gsap/TweenLite.js [...] is my local path. The file exists. It works just fine, if I copy the full gsap folder in my project and reference it relatively: import TweenLite from '../gsap/TweenLite'; This is not related to the many issues in the internet, that are being solved by installing `babel-preset-es2015`. (One example:)
Draggable snap to selector
gaggo replied to gaggo's topic in GSAPHi Craig, ok thank you, I think in this case I will have to write a callback function for the snap property and determine which element is closest to the value. Thanks again for your hints!?
- Thanks guys, your work is greatly appreciated! I sometimes work without a decent internet connection, that's why I tend to import everything locally. But you are right, using a CDN for the production site totally makes sense. Again, thank you!!
- Yes, I saw your post over at GitHub. Thanks so much for trying to work it out!
- Hi Jack, so this is the reply that I got from the guys over at browserify: They claim it's gsap, you say it's browserify... I would be happy to help, but sadly I am not firm enough for that kind of thing.
- So – I somehow "fixed" the problem. I replaced this line in both files: import TweenLite from 'gsap'; with import 'gsap/TweenMax'; Any idea why?
- If you are interested, you can test it yourself. I am really puzzled about this. browserify assets/js/script1.js -o dist/js/script1.js -t babelify browserify assets/js/script2.js -o dist/js/script2.js -t babelify ...and here are the two source files: When I switch out the order of the two scripts are embedded in my html page, the last included always doesn't work. `TweenLite` is only an empty object in the second included file.
- OK, thanks again for your feedback. I will report back as soon as I have found out about what happens there.
- Thanks for your response! I just set up another test, using Flickity twice from two different files: This works without any problems. Maybe this helps finding the solution?
- Hi there, I set up a test case on my server: There are two scripts included on the page, both importing TweenLite from the same npm gsap package. The first animates the .el-1, the second should animate .el-2. If you open the console, you see what I mean (the second script errors). Sorry for saying, TweenLite pollutes the global namespace. I didn't really know what I was talking about there EDIT: I should maybe add that I am using watchify with babelify transform. EDIT #2: ...but the babelify transform doesn't make a difference, just tested it without it. | https://staging.greensock.com/profile/35871-gaggo/ | CC-MAIN-2021-43 | refinedweb | 712 | 66.33 |
1,2
Suggested by the Yellowstone permutation A098550 except that now the key conditions in the definition have been reversed.
Let Ker(k), the kernel of k, denote the set of primes dividing k. Thus Ker(36} = {2,3}, Ker(1) = {}. Then Product_{p in Ker(k)} p = A000265(k), which is denoted by ker(k).
Theorem 1: For n>2, a(n) is the smallest number m not yet in the sequence such that
(i) Ker(m) intersect Ker(a(n-1)) is nonempty,
(ii) Ker(m) intersect Ker(a(n-2)) is empty, and
(iii) The set Ker(m) \ Ker(a(n-1)) is nonempty.
(Without condition (iii), every prime dividing m might also divide a(n-1), which would make it impossible to find a(n+1).)
Idea of proof: m always exists and is unique; no smaller choice for a(n) is possible; and taking a(n)=m does not lead to a contradiction. So a(n) must be m.
Theorem 2: For n>2, Ker(a(n)) contains at least two primes. (Immediate from Theorem, since a(n) must contain a prime in a(n-1) and a prime not in a(n-1)).)
It follows that no odd prime p or even-or-odd prime power q^k, k>1, appears in the sequence. Obviously this sequence is not a permutation of the positive integers.
Theorem 3. For any M there is an n_0 such that n > n_0 implies a(n) > M. (This is a standard property of any sequence of distinct positive terms - see the Yellowstone paper).
Theorem 4. For any prime p, some term is divisible by p.
Proof. Take p=17 for concreteness. If 17 does not divide any term, then 19 cannot either (because the first time 19 appears, we could have used 17 instead).
So all terms are products only of 2,3,5,7,11,13. Go out a long way, use Theorem 2, and consider two huge successive terms, A*B, C*D, where Ker(B) = Ker(C) and Ker(A) intersect Ker(D) is empty. Either C or D must contain a huge prime power q^k, 2 <= q <= 13. If it is in C, replace it by q and multiply D by 17. If it is in D, replace it by 17. Either way we get a smaller legal candidate for C*D that is a multiple of 17. QED
Theorem 5. There are infinitely many even terms.
Proof. Suppose the prime p appears for the first times as a factor of a(n). Then we have a(n-1) = x*q^i, a(n) = q*p, where q<p is a prime and i >= 1. If q=2 then a(n) is even. So we may suppose q is odd. If x is odd then a(n+1) = 2*p. If x is even then obviously a(n-1) is even. So one of a(n-1), a(n), or a(n+1) is even for every prime p. So there are infinitely many even terms. QED - N. J. A. Sloane, Aug 28 2020
Theorem 6: For any prime p, infinitely many terms are divisible by p. - N. J. A. Sloane, Sep 09 2020. (I thought I had a proof that for any odd prime p, there is a term equal to 2p, but there was a gap in the argument. - N. J. A. Sloane, Sep 23 2020)
Theorem 7: There are infinitely many odd terms. - N. J. A. Sloane, Sep 12 2020
Conjecture 1: Every number with at least two distinct prime factors is in the sequence. In other words, apart from 1 and 2, this sequence is the complement of A000961.
[It seems very likely that the arguments used to prove Theorem 1 of the Yellowstone Permutation paper can be modified to prove the conjecture.]
The conditions permit us to start with a(1)=1, a(2)=2, and that does not lead to a contradiction, so those are the first two terms.
After 1, 2, the next term cannot be 4 or 5, but a(3) = 6 works.
For a(4), we can rule out 3, 4, 5, 7, 8, 9 11, 13 (powers of primes), and 10, 12, and 14 have a common factor with a(2). So a(4) = 15.
The graph of the first 100000 terms (see link) is similar to that of the Yellowstone permutation, but here the points lie on more lines.
The sequence has fixed points at n = 1, 2, 10, 90, 106, 150, 162, 246, 394, 398, 406, 410, ... (see A338050). - Scott R. Shannon, Aug 13 2020
The initial pattern of odd and even terms: (odd, even, even, odd), repeat, is misleading as it does not persist. (See A337644 for more about this point.)
Discussion of when primes first divide some term, from N. J. A. Sloane, Oct 21 2020: (Start)
When an odd prime p first divides a term of the Enots Wolley sequence (the present sequence), that term a(n) is equal to q*p where q<p is also a prime. We say that p is introduced by q. It appears q is almost always 2 (the corresponding values of p form A337648), that there are precisely 34 instances when q = 3 (see A337649), and q>3 happens just once, at a(5) = 35 when q=5 and p=7.
We conjecture that even if p is introduced by some prime q>2, 2*p appears later.
Sequence A337275 lists the index k such that a(k) = 2*prime(n), or -1 if 2*prime(n) is missing, and A338074 lists the indices k such that a(k) is twice a prime.
Comparison of those two sequences shows that they appear to be essentially identical (see the table in A337275).
The differences between the two sequences are caused by the fact that although normally if p and q are odd primes with p < q, then 2p precedes 2q, this is not true for the following primes: (7,5), (31,29), and (109, 113, 107), which appear in the order shown. We conjecture that these are the only exceptions.
Combining the above observations, we conjecture that for n >= 755 (at which point we have seen all the primes <= 367), every prime p is introduced by 2*p, and the terms 2*p appear in their natural order.
(End)
Scott R. Shannon, Table of n, a(n) for n = 1..20000.
David L. Applegate, Hans Havermann, Bob Selcoe, Vladimir Shevelev, N. J. A. Sloane, and Reinhard Zumkeller, The Yellowstone Permutation, arXiv preprint arXiv:1501.01669 [math.NT], 2015. Also Journal of Integer Sequences, Vol. 18 (2015), Article 15.6.7
Scott R. Shannon, The first million terms (7-Zip compressed file)
Scott R. Shannon, Image of the first 100000 terms. The green line is y=x.
Scott R. Shannon, Image of the first 1000000 terms. The green line is y=x.
Scott R. Shannon, Graph of 11.33 million terms, based on F. Stevenson's data, plotted with colors indicating the least prime factor (lpf). Terms with a lpf of 2 are shown in white, terms with a lpf of 3,5,7,11,13,17,19 are shown as one of the seven rainbow colors from red to violet, and terms with a lpf >= 23 are shown in grey.
Scott R. Shannon, Graph of the terms with lpf = 2. This, and the similar graphs below, are using F. Stevenson's data of 11.33 million terms. The y-axis scale is the same as the above multi-colored image. The green line is y = x.
Scott R. Shannon, Graph of the terms with lpf = 3.
Scott R. Shannon, Graph of the terms with lpf = 5.
Scott R. Shannon, Graph of the terms with lpf = 7.
Scott R. Shannon, Graph of the terms with lpf = 11.
Scott R. Shannon, Graph of the terms with lpf = 13.
Scott R. Shannon, Graph of the terms with lpf = 17.
Scott R. Shannon, Graph of the terms with lpf = 19.
Scott R. Shannon, Graph of the terms with lpf >= 23.
N. J. A. Sloane, Table of n, a(n) for n = 1..161734
N. J. A. Sloane, Graph of 11.33 million terms, based on F. Stevenson's table. The red line is y=x. It is hard to believe, but there are as many points above the red line as there are below it (see the next graph). Out of 11333576 points, 46% (5280697), all even, lie below the red line. All the odd points lie above the red line.
N. J. A. Sloane, Blowup of last 1.133 million points of the previous graph. There are a very large number of points in a narrow band below the red line.
N. J. A. Sloane, Conant's Gasket, Recamán Variations, the Enots Wolley Sequence, and Stained Glass Windows, Experimental Math Seminar, Rutgers University, Sep 10 2020 (video of Zoom talk).
Frank Stevenson, First five million terms (zipped file, starting with a(4)=15)
Frank Stevenson, First 11333573 terms (zipped file, starting with a(4)=15)
with(numtheory);
N:= 10^4: # to get a(1) to a(n) where a(n+1) is the first term > N
B:= Vector(N, datatype=integer[4]):
for n from 1 to 2 do A[n]:= n: od:
for n from 3 do
for k from 3 to N do
if B[k] = 0 and igcd(k, A[n-1]) > 1 and igcd(k, A[n-2]) = 1 then
if nops(factorset(k) minus factorset(A[n-1])) > 0 then
A[n]:= k;
B[k]:= 1;
break;
fi;
fi
od:
if k > N then break; fi;
od:
s1:=[seq(A[i], i=1..n-1)]; # N. J. A. Sloane, Sep 24 2020, based on Theorem 1 and Robert Israel's program for sequence A098550
M = 1000;
A[1] = 1; A[2] = 2;
Clear[B]; B[_] = 0;
For[n = 3, True, n++,
For[k = 3, k <= M, k++,
If[B[k] == 0 && GCD[k, A[n-1]] > 1 && GCD[k, A[n-2]] == 1, If[Length[ FactorInteger[k][[All, 1]] ~Complement~ FactorInteger[A[n-1]][[All, 1]]] > 0, A[n] = k; B[k] = 1; Break[]]]]; If[k > M, Break[]]];
Array[A, n-1] (* Jean-François Alcover, Oct 20 2020, after Maple *)
(Python)
from math import gcd
from sympy import factorint
from itertools import count, islice
def agen(): # generator of terms
a, seen, minan = [1, 2], {1, 2}, 3
yield from a
for n in count(3):
an, fset = minan, set(factorint(a[-1]))
while True:
if an not in seen and gcd(an, a[-1])>1 and gcd(an, a[-2])==1:
if set(factorint(an)) - fset > set():
break
an += 1
a.append(an); seen.add(an); yield an
while minan in seen: minan += 1
print(list(islice(agen(), 70))) # Michael S. Branicky, Jan 22 2022
Cf. A000961, A098550, A098548, A064413, A255582, A020639, A006530, A337648, A337649, A338050 (fixed points), A338051 (a(n)-n).
A337007 and A337008 describe the overlap between successive terms.
See A337066 for when n appears, A337275 for when 2p appears, A337276 for when 2k appears, A337280 for when p first divides a term, A337644 for runs of three odd terms, A337645 & A338052 for smallest missing legal number, A337646 & A337647 for record high points, A338056 & A338057 for record high values for a(n)/n.
See A338053 & A338054 for the "early" terms.
Further properties of the present sequence are studied in A338062-A338071.
A338059 has the missing prime powers inserted (see also A338060, A338061).
See A338055, A338351 for variants.
A280864 is a different but very similar lexicographically earliest sequence.
Sequence in context: A221719 A095380 A287012 * A338055 A336799 A340779
Adjacent sequences: A336954 A336955 A336956 * A336958 A336959 A336960
nonn
Scott R. Shannon and N. J. A. Sloane, Aug 09 2020
Added "infinite" to definition. - N. J. A. Sloane, Sep 03 2020
Added Scott R. Shannon's name "Enots Wolley" (Yellowstone backwards) for this sequence to the definition, since that has been mentioned in several talks. - N. J. A. Sloane, Oct 11 2020
approved | https://oeis.org/A336957 | CC-MAIN-2022-21 | refinedweb | 2,011 | 81.33 |
Introduction to Java Package
A Java package is a mechanism for organizing a group of related files in the same directory and having each class file in a package directive with that directory name at the top of the file. Programmers also use package convention to organize classes that belong to the same files or providing similar functionality.
Java source files can include a package statement at the top left of the file to designate the package for the classes in which the source file defines. If we are not including any package in our java source file then the source file automatically goes to the default package.
Features of a Java package
Using packages
The package to which the source file belongs is specified with the keyword package at the top left of the source file.
eg:
The source file HelloWorld.java will be saved in the package named mypackage.
Access protection in packages
No modifier (default): In case of no modifier, the classes and members specified in the same package are accessible to all the classes inside the same package.
public: The classes, methods and member variables under this specifier can be accessed from anywhere.
protected: The classes, methods and member variables under this modifier are accessible by all subclasses, and accessible by code in same package.
private: The methods and member variables are accessible only inside the class.
Access to fields in Java at a Glance:
Naming convention of packages
A hierarchical naming pattern is used for java packages, with levels separated by dots in the hierarchy. The packages that comes lower in the naming hierarchy are called "subpackage" of the corresponding package higher in the hierarchy. Java uses the package naming conventions in order to avoid the possibility of source file having the same name. The naming convention defines how to create a unique package name, so that packages that are widely used with unique namespaces. This allows packages to be easily managed.
In general, we starts a package name begins with the order from top to bottom level. Package names should be in lowercase characters whenever possible.
Packages in Core Java package,Java Packages
Post your Comment | http://www.roseindia.net/java/tools/master-java/java-package.shtml | CC-MAIN-2016-30 | refinedweb | 362 | 52.29 |
Revision history for Perl extension Bio::Graphics. 2::Graphics::Math" to avoid CPAN namespace collisions. 2.21 - Changed almost all occurrences of attributes() into eval{$feature->get_tag_values()} to achieve compatibility with Bio::SeqFeatureI. One exception is in spectrogram glyph, which depends on the non-standard behavior of attributes() when called with no args. 2iggle_xyplot that prevented plot from being drawn in SVG renderings. 2.18 - Made handling of min/max scale calculations consistent across all xyplot glyphs and their derivatives. - Added following autoscale options to wiggle_xyplot and wiggle_whiskers: "z-score" to rescale data such that mean is zero and values are standard deviation-fold change; and "clipped_global" to scale to global mean +/- some number of standard deviations indicated by "z_score_bounds". - Added "z_score_bounds" option to wiggle_xyplot and wiggle_whiskers to control how many standard deviations to show. 2.17 - In segments glyph, fixed bleedover of "deletion" color when a deletion is followed by an insertion. - In segments glyph, fixed the display of inserted bases such that they will not bleed into a preceding deletion. - In segments glyph, fixed the mismatch color highlighting when the alignment is to the negative strand. - In segments glyph, fixed the default colors for mismatch, insertion and deletion. - In segments glyph, fixed treatment of soft clipping as an "insertion"; this will avoid the insertion color from appearing at the ends of soft-clipped reads. - In gene glyph, fixed occasional linking of two neighboring transcripts. 2.16 - Distinguish between "chromosome" and "global" autoscaling in the xyplot and density glyphs. Global autoscaling only works when underlying database is bigwig. - Regularized options which select glyph subtypes with an option named "glyph_subtype". 2.15 - Fixed documentation bug: sort_order options to sort by feature length should be "longest" and "shortest" rather than "longer and "shorter". - Improved layout algorithm, achieving speedup of ~4x on busy tracks. - Fixed font color problems when displaying multiple alignments at DNA level in the segments glyph. - Fixed problem of DNA alignment indels disappearing from view when they span entire region. - Fixed problem of mismatch and indel colors leaking off ends of feature arrows. 2.14 - Fixes to the way that "fast bump" works so that tracks never fast bump. This fixes problems when using groups to simulate subtracks, and the groups are of different heights. - The group glyph will now add the group labels to the list of track keys stored in the panel and retrieved from the call to $panel->key_boxes(). 2.13 - Changed default namespace for callbacks to make them portable across freeze/thaw cycles. 2.12 Tue Aug 31 10:42:06 EDT 2010 - Created a read_pairs glyph that contains the settings most often used for SAM paired end reads/mate pairs; this fixes the mate-pairs overlap bug. - xyplot glyph now obeys "flip" setting. 2.11 Tue Jun 29 15:37:03 EDT 2010 - Cleaned up stylesheet-based rendering of features when the main glyph has a type of "hat" and subfeatures overlap with each other. This occurred when rendering certain DAS sources. 2.10 Mon May 24 13:58:26 PDT 2010 - Fixed a long-standing but rarely-seen bug in layout algorithm that caused some features to be displaced downward further than they should be. - Added support for labeling groups (on the left side). This is used by GBrowse to create subtracks. 2 that begin or end with soft clips. - Indels displayed in correct color when indel begins or ends outside current visible region. 2.05 Identical to 2.04. 2.04 Sun Apr 18 17:26:01 EDT 2010 - Segments glyph now smarter about fetching reference sequence; this improves performance on multiple alignments. - -show_mismatch option now takes following arguments: 0 (false), "always", "base level" (draw only when DNA is in view), or a number, in which case mismatches will only be drawn when the length of the window is <= that number. For compatibility, a value of "1" is the same as "base level." - Fixed display of protein sequence in genes when -draw_protein is true. - Fixed display of long deletions in segments glyph base-pair alignments to avoid drop-out of sequence from the right end of the alignment following deleted region. - Fixed display of insertions in segments glyph base-pair alignments so that the length of the deletion is displayed when there is more than one digit of length. - Fixed Wiggle loader routine to handle statistics on chromosomes that have a combination of fixed and variable step declarations. 2.03 Fri Mar 26 16:32:02 EDT 2010 - Bad CPAN upload. Do not use. 2.02 shows mismatches when zoomed out and -show_mismatches is true. - Added an -indel_color option to segments glyph to show indels in a different color from simple nucleotide substitutions. - Added a -mismatch_only option to segments glyph that only shows mismatching base pairs when zoomed in. 2.01 Thu Feb 25 16:46:08 EST 2010 - Fixed display of alignments that have hard-clipping in their CIGAR strings. 2.00 Wed Jan 20 11:12:13 EST 2010 - Added the "cross" glyph for DAS compatibility. - Fixed the triangle glyph so that DAS stylesheets can set orientation properly. - Fixed wiggle_xyplot/density documentation of smoothing options. - Turn off sampling from wiggle loader by default (turn it on with --sample option). - Multiple sequence alignment code in the segments glyph has been updated to deal with the Samtools case of both reference DNA and target reporting minus strand alignments. - It felt like time to go to 2.00. 1.995 Wed Jan 6 10:06:17 EST 2010 - Fixed the gene glyph so that non-SO genes (gene=>exon without an intervening transcript) display properly. Otherwise the exons were bumping. - Added support for "featureRGB" and "featureScore" special color names. This provides an additional level of UCSC graphics compatibility. 1.994 Thu Dec 10 10:07:19 EST 2009 - The GFF3 Gap attribute (which contains a CIGAR string) is now supported in the segments glyph. Set -split_on_cigar=>1 when creating the track in order to activate this feature. 1.993 Thu Dec 3 06:36:06 EST 2009 - Fixed issue which caused GD::SVG rendering of xyplot glyph to show scale but no values under some circumstances. 1.992 Wed Nov 18 13:06:07 EST 2009 - Fixed issue in which the connector vanishes when zoomed in to the region between two parts (such as the region between two exons) 1.991 Mon Nov 16 09:20:18 EST 2009 - CPAN upload failed due to lack of $VERSION in hybrid_plot. Uploaded again. 1.99 Mon Nov 16 08:15:23 EST 2009 - Segments glyph now handles indels for features that have CIGAR strings. 1.982 Wed Aug 26 17:57:43 EDT 2009 - Fixed DAS stylesheet support so that Ensembl and Dazzle sources both work properly. 1.981 Wed Aug 19 15:21:31 EDT 2009 - Peter Ruzanov fixed bug in wiggle_xyplot that caused histogram to go to background color under some circumstances. 1.98 Mon Jul 6 09:48:58 EDT 2009 - Documented -feature_limit in the Panel docs as well as in Glyph. - Fixed bug in wiggle_xyplot that caused an ugly 1-pixel rectangle to be drawn in the case of a zero-height data value. 1 "line" glyph works in order to support DAS 1.5. 1.95 Sat May 30 18:07:21 EDT 2009 - In the substitution pattern rules, $id is replaced with the output of either the feature_id or primary_id methods depending on which one is implemented. - The image.pm glyph will now render into SVG if a sufficiently-current GD::SVG module is available. - Some fixes to the segments glyph to work better with Bio::DB::Bam rendering at the base pair level. - The glyph_help.pl script can now create SVGs. 1.94 Wed Apr 29 05:59:02 EDT 2009 - Added a "fast" bumping option suitable for very dense tracks in which all features have identical height. Activate it using -bump=>3 or -bump=>'fast'. - Fixed division by zero error in xyplot glyph when min_score==max_score. 1.93 Thu Apr 2 18:20:35 EDT 2009 - Many fixes to ideograph glyph to be more stable. - Fixed minor display issues involving bumping and directional arrows. - Continued documenting glyphs. About 75% done. 1.92 Tue Mar 31 00:38:16 EDT 2009 - Added documentation system for glyphs, but only half the glyphs are documented this way so far. - Bug fixes for GBrowse on Windows. 1.91 Tue Mar 17 09:54:02 EDT 2009 - wiggle_density now supports local scaling - wiggle loader now defaults to clipping at 2 stdev - adjusted default smoothing parameters to do less smoothing 1.90 Sun Mar 15 01:11:28 EDT 2009 - Optimized Bio::Graphics::Wiggle to sample directly from disk when the desired visualization size is significantly (less than 100 fold) smaller than the length of the region to be sampled. 1.88 Sat Mar 14 23:31:46 EDT 2009 -Cleaned up calculation of min and max values for scaling and introduced the "autoscale" option. 1.87 Sat Mar 14 20:56:47 EDT 2009 -Fixed bug in xyplot visualization. 1 fatal bug. Do not use. 1.05 fixes this and is identical to BioPerl 1.01. 1.04 Fri Apr 12 08:20:35 EDT 2002 - Take advantage of optimizations in Bio::DB::GFF::Feature so don't have to retrieve subfeatures at low magnifications (when you can't see 'em anyway). 1.03 Fri Apr 12 00:26:12 EDT 2002 - Fixes to handle case of a transcript glyph that is zoomed in so far that only an intron shows (no exons). 1.02 Sun Mar 31 16:19:35 EST 2002 - Make the Bio::Graphics::Feature objects more-or-less compatible with Bio::SeqFeatureI and Bio::LocationI. Slightly difficult because this is a moving target. - Minor bugfixes to support Generic Genome browser version 1.37 0.98 Fri Feb 22 14:02:11 EST 2002 -Fixed up the scale so that numbers don't (or shouldn't) overlap. 0.97 Mon Feb 18 22:04:57 EST 2002 -Added the "dna" glyph, which supports display of raw DNA and a GC content histogram. 0.96 Fri Jan 11 13:23:03 EST 2002 -Added support for displaying heterogeneous features, such as WABA similarities. 0.95 Thu Jan 3 08:50:01 EST 2002 (LS) -Removed generic genome browser from project, it is now part of Generic-Genome-Browser. 0.92 Sat Dec 8 23:28:19 EST 2001 (LS) -Fixed up key glyph so that it correctly tracks what appears on screen -Fixed wormbase_transcript glyph so that it uses the skinny arrow when there isn't enough room to show the filled arrow. 0.91 Sun Nov 18 22:59:14 EST 2001 (LS) -Modified Feature.pm to accept vanilla GFF format. -Fixed Panel.pm so that empty tracks (height zero) do not take up space in the map. 0.90 Sun Nov 18 21:46:46 EST 2001 (LS) - Added the gbrowse genome browser script and supporting files - Added a wormbase_transcript glyph for Wormbase's curated/uncurated genes. 0.85 Mon Oct 1 16:41:57 EDT 2001 (LS) - Changed all instances of stop() to end() so that BioSeqFeatureI is supported correctly. 0.82 Fri Jul 20 10:36:57 EDT 2001 (LS) - Removed perl 5.6'isms. - Added appropriate documentation to Feature. 0.81 Tue Jun 12 09:30:10 EDT 2001 (LS) - Messed up sourceforge upload, so bumping version no to clean up. 0.80 Tue Jun 12 09:10:15 EDT 2001 (LS) - Basically functional - examples in eg/ - Bio::Graphics::Panel documentation complete, other documentation incomplete 0.01 Tue Jun 5 07:26:52 2001 (LS) - original version; created by h2xs 1.20 with options -n Bio::Graphics -A | https://metacpan.org/changes/release/LDS/Bio-Graphics-2.25 | CC-MAIN-2019-09 | refinedweb | 1,953 | 63.9 |
0
Hello,
I am writting a code for class and I am having a hard time inserting my variables into my "cout". I know how to do it the long way but I know it has to be easier.
Right know this is the portions I am working on:
void displaySlpInt (double m, double b) { cout << (("y = %f x - %f)\n"), m, b) << endl; }
I have already solved for the values m and b in an earlier function but when I run this function it only gives me the "b" value.
Both m and b are set to double and I have included: iostream,iomanip,string and while I know it is frowned upon I do have "using namespace std." Any guidence is appreciated, thanks in advance! | https://www.daniweb.com/programming/software-development/threads/494099/insert-variable-into-statement | CC-MAIN-2017-09 | refinedweb | 127 | 71.68 |
.
HTTP purge an article from the backend with restart
This allows Varnish to re-run the VCL state machine with different variables.
acl purgers { "127.0.0.1"; "192.168.0.0"/24; } sub vcl_recv { # allow PURGE from localhost and 192.168.0... if (req.restarts == 0) { unset req.http.X-Purger; } if (req.method == "PURGE") { if (!client.ip ~ purgers) { return (synth(405, "Purging not allowed for " + client.ip)); } return (purge); } } sub vcl_purge { set req.method = "GET"; set req.http.X-Purger = "Purged"; return (restart); } sub vcl_deliver { if (req.http.X-Purger) { set resp.http.X-Purger = req.http.X-Purger; } }
Source:
Accessed: 17th August 2016
Softpurge
- Reduces TTL to 0
- Allows Varnish to serve stale objects
sub vcl_hit { if (req.method == "PURGE") { softpurge.softpurge(); } }
source:
Accessed: 17th August 2016
Purge call
Purge call to X-Headers
Banning
Examples in the varnishadm command line interface:
ban req.url ~ /foo ban req.http.host ~ example.com && obj.http.content-type ~ text ban.list
Example in VCL:
ban("req.url ~ /foo");
Example of VCL code to act on HTTP BAN request method:
sub vcl_recv { if (req.method == "BAN") { ban("req.http.host == " + req.http.host + " && req.url == " + req.url); # Throw a synthetic page so the request won't go to the backend. return(synth(200, "Ban added")); } }
source:
To inspect the current ban-list, issue the ban.list command in the CLI:
0xb75096d0 1318329475.377475 10 obj.http.x-url ~ test0 0xb7509610 1318329470.785875 20C obj.http.x-url ~ test1
Lurker-friendly bans
The following snippet shows an example of how to preserve the context of a client request in the cached object:
sub vcl_backend_response { set beresp.http.x-url = bereq.url; } sub vcl_deliver { # The X-Url header is for internal use only unset resp.http.x-url; }
Now imagine that you just changed a blog post template that requires all blog posts that have been cached. For this you can issue a ban such as:
$ varnishadm ban 'obj.http.x-url ~ ^/blog'
Since it uses a lurker-friendly ban expression, the ban inserted in the ban list will be gradually evaluated against all cached objects until all blog posts are invalidated. The snippet below shows how to insert the same expression into the ban list in the vcl_recv subroutine:
sub vcl_recv { if (req.method == "BAN") { # Assumes the ``X-Ban`` header is a regex, # this might be a bit too simple. ban("obj.http.x-url ~ " + req.http.x-ban); return(synth(200, "Ban added")); } }
Purge and ban together example
sub vcl_recv { if (req.method == "PURGE") { return (purge); } if (req.method == "BAN") { ban("obj.http.x-url ~ " + req.http.x-ban-url + " && obj.http.x-host ~ " + req.http.x-ban-host); return (synth(200, "Ban added")); } if (req.method == "REFRESH") { set req.method = "GET"; set req.hash_always_miss = true; } } sub vcl_backend_response { set beresp.http.x-url = bereq.url; set beresp.http.x-host = bereq.http.host; } sub vcl_deliver { # We remove resp.http.x-* HTTP header fields, # because the client does not neeed them unset resp.http.x-url; unset resp.http.x-host; }
Force cache miss
sub vc_recv { set req.hash_always_miss = true; }
Causes Varnish to look the object up in cache, but ignore any copy it finds This is a useful way to do a controlled refresh of a specific object. If the server is down, the cached object is left untouched. Depending on the Varnish version, it might leave extra copies in the cache. It is useful to refresh slowly generated content.
source:
Xkey (formerly known as Hashtwo)
The idea behind Xkey is that you can use any arbitrary string for cache invalidation. You can then key your cached objects on, for example, product ID or article ID. In this way, when you update the price of a certain product or a specific article, you have a key to evict all those objects from the cache.
Xkey can be used to support Surrogate Keys in Varnish in a very flexible way.
On Debian or Ubuntu:
apt-get install varnish-modules
On Red Hat Enterprise Linux:
yum install varnish-modules
Finally, you can use this VMOD by importing it into your VCL code:
import xkey;
VCL example code for xkey:
import xkey; backend default { .host = "192.0.2.11"; .port = "8080"; } acl purgers { "203.0.113.0"/24; } sub vcl_recv { if (req.method == "PURGE") { if (client.ip !~ purgers) { return (synth(403, "Forbidden")); } set req.http.n-gone = xkey.purge(req.http.key); # or: set req.http.n-gone = xkey.softpurge(req.http.key) return (synth(200, "Invalidated "+req.http.n-gone+" objects")); } }
Normally the backend is responsible for setting these headers. If you were to do it in VCL, it would look something like this:
sub vcl_backend_response { set beresp.http.xkey = "secondary_hash_key"; }
source: A complete Grace example ————————
# grace mode sub vcl_hit { if (obj.ttl >= 0s) { # normal hit return (deliver); } #); } } } sub vcl_backend_response { set beresp.ttl = 10s; set beresp.grace = 1h; } sub vcl_recv { # intial state set req.http.grace = "none"; } sub vcl_deliver { # copy to resp so we can tell from the outside. set resp.http.grace = req.http.grace; } # source: # blogpost:
Source:
Ready to interact with the Varnish Wiki? | https://info.varnish-software.com/blog/wiki-highlights-cache-invalidation-varnish | CC-MAIN-2020-05 | refinedweb | 854 | 69.58 |
Here’s the question,
A researcher has gathered thousands of news articles. But she wants to focus her attention on articles including a specific word. Complete the function below to help her filter her list of articles.
Your function should meet the following criteria:
Do not include documents where the keyword string shows up only as a part of a larger word. For example, if she were looking for the keyword “closed”, you would not include the string “enclosed.”
She does not want you to distinguish upper case from lower case letters. So the phrase “Closed the case.” would be included when the keyword is “closed”
Do not let periods or commas affect what is matched. “It is closed.” would be included when the keyword is “closed”. But you can assume there are no other types of punctuation.
Here’s my ans(I want to solve this just using loops and ifs):
def word_search(doc_list, keyword): """ Takes a list of documents (each document is a string) and a keyword. Returns list of the index values into the original list for all documents containing the keyword. Example: doc_list = ['The Learn Python Challenge Casino', 'They bought a car, and a horse', 'Casinoville?'] word_search(doc_list, 'casino') >>> [0] """ #non-course provided and my own code starts here. k=0 print(doc_list,keyword) for string in doc_list: print(string) for char in string: if char.upper()==keyword[0] or char.lower()==keyword[0]: print(char,string[string.index(char)-1]) if (string[string.index(char)-1]==" " or string[string.index(char)-1]=="" or string[string.index(char)-1]==".") and (string[string.index(char)+len(keyword)]==" " or string[string.index(char)+len(keyword)]=="" or string[string.index(char)+len(keyword)]=="."): print(string[string.index(char)-1]) for k in range(len(keyword)): print(k) if string[string.index(char)+k].upper()==keyword[k] or string[string.index(char)+k].lower()==keyword[k]: c=c+k if len(c)==len(keyword): x=[doc_list.index(string)] return x
But after running the check code:
q2.check() #returns, Incorrect: Got a return value of None given doc_list=['The Learn Python Challenge Casino', 'They bought a car, and a horse', 'Casinoville?'], keyword='casino', but expected a value of type list. (Did you forget a return statement?)
Here’s what gets printed out after executing the code:
['The Learn Python Challenge Casino', 'They bought a car, and a horse', 'Casinoville?'] casino The Learn Python Challenge Casino C C They bought a car, and a horse c Casinoville? C ?
The code is compiling successfully without syntax and other explicit errors. But I can’t find any implicit bugs that’s generating a wrong ans after struggling for 5+ hrs. please help!
Source: Python Questions
2 thoughts on - Kaggle Python course Exercise: Strings and Dictionaries Q. no. 2
Suppose you have collected hundreds of blog articles on web
programming. But you want the ability to find articles including a specific
keyword. Example – You can type “python” to search for all articles
containing the word the python. Write a python function below to filter
your list of articles. Your function should meet the following criteria:
A. The function takes a list of strings and a keyword as parameters.
B. The function returns a list of strings which contain the keyword
C. Do not include strings where the keyword string shows up only as a
part of a larger word. For example, if you are looking for the keyword
“closed”, you would not include the string “enclosed.”
D. Your search should not be case sensitive. So the string “CSS is for
styling.” would be included when the keyword is “css”.
E. Do not let periods or commas affect what is matched. “Interactivity is
created using JavaScript.” would be included when the keyword is
“JavaScript”. You can assume there are no other types of punctuation.
We’re using python lists to record students who attended our class and what
order they arrived in. For example, the following list represents a class with 8
students, in which Yash showed up first and Jony was the last to arrive:
students = [‘Yash’, ‘Nabila’, ‘Maria’, ‘Rafi’, ‘Imam’, ‘Sinthiya’, ‘Sumon’, ‘Jony’]
A student is considered ‘fashionably late’ if they arrived after at least half of
the participants. However, they must not be the very last participant (that’s
taking it too far). In the above example, Imam, Sinthiya and Sumon are the
only students who were fashionably late.
Write a function which takes a list of students and the name of one
student and prints whether that person is “fashionably late”. If the student is
not in the list, print “Student was absent”. | https://askpythonquestions.com/2020/09/05/kaggle-python-course-exercise-strings-and-dictionaries-q-no-2/ | CC-MAIN-2021-31 | refinedweb | 772 | 67.55 |
Prev
Java RMI Experts Index
Headers
Your browser does not support iframes.
Re: Updates to a single class instance
From:
Daniel Pitts <googlegroupie@coloraura.com>
Newsgroups:
comp.lang.java.programmer
Date:
Sun, 19 Aug 2007 19:57:24 -0000
Message-ID:
<1187553444.033800.31250@r23g2000prd.googlegroups.com>
On Aug 18, 2:16 pm, unlikeablePorpo...@gmail.com wrote:
On Aug 18, 4:05 pm, Eric Sosman <esos...@ieee-dot-org.invalid> wrote:
(Please position a reply after the message you're replying
to, or interspersed with it for a point-by-point reply.
Backward things read to harder it's.)
unlikeablePorpo...@gmail.com wrote:
Thanks for your replies. I tried to use a singleton, but for some
reason each attempt to create the singleton from different classes
says the object is null (the second and subsequent calls should say
that the object has been created). Here's the test code:
package org.collector;
public class Collector{
private Collector() {}
private static Collector ref;
public static synchronized Collector getCollectorObject()
{
if(ref == null)
{
System.out.println("ref is null");
ref = new Collector();
}
else
{
System.out.println("ref exists");
}
return ref;
}
}
When I call 'Collector col = Collector.getCollectorObject();' twice in
two different classes, it returns "ref is null". However, if I do this
twice in the same class method, ie
Collector col = Collector.getCollectorObject();
Collector col2 = Collector.getCollectorObject();
I get the expected result:
"ref is null"
"ref exists"
Just to clarify, the Collector singleton is in its own package, and
the methods that have to access it are in different packages.
Am I missing something here? Or is the singleton limited to use one
class or package?
With the code as you've shown it, I don't understand how
the behavior you report can occur. Is the Collector class
truly as lightweight as shown? Or have you deleted other bits
of code for brevity's sake? That's usually a good idea, but
you may have omitted something important -- for instance, a
method that accesses `ref' while synchronizing on something
other than Collector.class, or not synchronizing at all.
As for the interaction of package membership and singletons:
There is none. The package forms part of the complete name of
a class (it's org.collector.Collector, not just Collector), and
package membership affects the reach of some access levels (but
not public and not private). Package membership has nothing to
do with whether `ref' is or isn't null, nor with what the method
synchronizes on, nor with how many times the constructor is used.
Perhaps the secret lies in how you call the method "twice in
two different classes:" if you run one class' main method and let
the program finish, and then run the other class' main method and
let its program finish, these executions are in two different
universes, separated by a Big Crunch and a Big Bang. Nothing that
happened in one execution (aside from modifying persistent storage
like a file system) affects what happens in the other. When the
second program runs, the Collector class is loaded anew -- it is
in this sense a "different" Collector class -- and the singleton
that existed in the first program is long gone. The second program
will then create a new singleton Collector.
If you need a singleton that persists across different JVM
instances, you'll need to work harder. It's doable (I think; I
haven't done it myself), but takes you into the arena of object
serialization and of debates about what "the same" means across
what amounts to a reboot.
By the way, you can visit
that there's an organization out there who might distribute Java
code of their own. If they do, their package names will begin
with org.collector, and there will be confusion and perhaps bad
consequences if someone tries to use your code and their code in
the same program. Unless you're part of collector.org, you should
probably choose another package name.
--
Eric Sosman
esos...@ieee-dot-org.invalid
I think you are right. I am attempting this in two different main()
methods. Damn.
Thanks,
Sarah
So, you mean you want a piece of datum that can persist between
execution of your program, and even different programs...
If you want multiple classes to be able access this object (I'll call
these classes Clients) concurrently, then perhaps the state of this
object should be maintained in a its own class (I'll call this the
Server). The Clients will connect to the Server, probably through
Sockets, Possibly using RMI or some other remoting protocol, and ask
the server to manipulate and report on the state of your "singleton".
If, however, all you need is that the state of your "singleton" be
maintained across multiple runs (that never ever overlap), then you
want to persist your "singleton" to either a disk, database, or some
other persistence technology.
If you really only care about the current execution, then just using
the standard "Singleton" pattern may be good enough, although I would
suggest using the Dependency Injection pattern instead where possible/
feasible. | https://preciseinfo.org/Convert/Articles_Java/RMI_Experts/Java-RMI-Experts-070819225724.html | CC-MAIN-2022-27 | refinedweb | 848 | 54.83 |
[Date Index]
[Thread Index]
[Author Index]
Another chapter in the NeXT Tanh bug saga!.
The following is a transcript of a brief test I ran on my NeXT.
I have NeXT's 2.0 operating system, and an '030 processor.
(Heorot is the machine's name.)
Heorot (104) > cat testmath1.c
#include <math.h>
main()
{
printf("%g %g\n", tanh(-1.73287), tanh(-1.73288));
}
Heorot (105) > make testmath1
cc testmath1.c -o testmath1
Heorot (106) > testmath1
-0.939394 -0.939395
Heorot (107) > cat testmath2.c
main()
{
printf("%g %g\n", tanh(-1.73287), tanh(-1.73288));
}
Heorot (108) > make testmath2
cc testmath2.c -o testmath2
Heorot (109) > testmath2
-0.939394 -1.73288
Did you see it? If I compile the program WITH the #include
line, then tanh works just fine! But if I compile without the
#include line (a "minimal" program?) the promised discontinuity
appears!
I have no idea why this happens, but since the man page for
tanh does say that you must "#include <math.h>" when you use
this function, I am revising my blame conjecture and guessing
that somebody at WRI left out an #include line from a source
file, and that's what's causing the problem.
Further info from WRI representatives would be welcome!
Now I wonder why Mma doesn't misbehave on my system,
seeing that the C program does.
--Cameron Smith
Still baffled Mma consultant
cameron at midd.cc.middlebury.edu
>From CAMERON%midd.cc.middlebury.edu at mitvma.mit.edu Mon Mar 4 00:58:30 1991
Received: from MITVMA.MIT.EDU by dragonfly.wri.com with SMTP id AA18149
(5.65+/IDA-1.3.4 for cat >> /users/swolf/Mail/incoming); Mon, 4 Mar 91 00:58:30 -0600
Received: from MITVMA.MIT.EDU by mitvma.mit.edu (IBM VM SMTP R1.2.1MX) with BSMTP id 3909; Mon, 04 Mar 91 01:57:28 EST
Received: from MIDD.CC.MIDDLEBURY.EDU (CAMERON) by MITVMA.MIT.EDU (Mailer
R2.05) with BSMTP id 4394; Mon, 04 Mar 91 01:57:28 EST
Date: Mon, 4 Mar 91 01:42 EST
From: CAMERON at midd.cc.middlebury.edu
Subject: Addendum to "Another chapter..."
To: mathgroup at yoda.ncsa.uiuc.edu, swolf at dragonfly.wri.com
Message-Id: <AEB5644B91DF009794 at MIDD.CC.MIDDLEBURY.EDU>
X-Envelope-To: swolf at dragonfly.wri.com
X-Vms-To: IN%"mathgroup at yoda.ncsa.uiuc.edu"
X-Vms-Cc: IN%"swolf at dragonfly.wri.com",CAMERON
I forgot to mention in the previous posting: I repeated
the tests with and without the compiler's -O flag,
with and without stripped executables, with and without
the -object option, etc., and found nothing other than
the use/nonuse of #include that changed the behavior
of the program. Just thought I'd be complete -- I have
no idea what might or might not affect this sort of thing.
--CS
>From mathgroup-adm at yoda.ncsa.uiuc.edu Mon Mar 4 01:19:46 1991
Received: from yoda.ncsa.uiuc.edu by dragonfly.wri.com with SMTP id AA18201
(5.65+/IDA-1.3.4 for cat >> /users/swolf/Mail/incoming); Mon, 4 Mar 91 01:19:46 -0600
Received: by yoda.ncsa.uiuc.edu id AA20190
(5.64+/IDA-1.3.4 for ); Sun, 3 Mar 91 23:10:22 -0600
Received: by yoda.ncsa.uiuc.edu id AA20186
(5.64+/IDA-1.3.4 for /usr/lib/sendmail -odq -oi -fmathgroup-adm at yoda.ncsa.uiuc.edu mathgroup-out); Sun, 3 Mar 91 23:10:20 -0600
Message-Id: <9103040510.AA20186 at yoda.ncsa.uiuc.edu>
From: madler at kanga.caltech.edu (Mark Adler)
Subject: Re: Tanh
Date: Mon, 4 Mar 91 05:02:34 GMT
To: mathgroup at yoda.ncsa.uiuc.edu
In article <9103030700.AA19440 at yoda.ncsa.uiuc.edu> swolf at dragonfly.wri.com (Stephen Wolfram) writes:
>
On a 68030 NeXT running 2.0, the result of the above program is:
-0.939394 -0.939395
(correct), while on a 68040 NeXT running the very same binary executable
gives (incorrectly):
-0.939394 -1.060605
Note that on the 68040, all the transcendental functions are done in
software. This means that you do not have to get your 68040 replaced
to fix this--just a small software upgrade.
That is not the only problem with 68040 math--I've seen the NeXT
completely lock up as a result of simple calculation. I'm hoping all
of this will be fixed very soon. As it stands, I have no confidence
in any numerical results from my recently upgraded NeXT.
Mark Adler
madler at pooh.caltech.edu | http://forums.wolfram.com/mathgroup/archive/1991/Mar/msg00027.html | CC-MAIN-2017-09 | refinedweb | 768 | 71.41 |
Free for PREMIUM members
Submit
[Webinar] Streamline your web hosting managementRegister Today
#include <cstdlib>
#include <fstream>
int main()
{
std::fstream fs("c:\\temp\\test.txt", std::ios::out | std::ios::in | std::ios::app);
for(;;)
{
system("pause");
fs << "Hello" << std::endl;
}
}
Select all
Open in new window
}
// Release the lock
lock.release();
// Close the file
channel.close();
} catch (Exception e) {
}
With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.
PSID psidWorldSid = NULL;
SECURITY_DESCRIPTOR sd;
SECURITY_ATTRIBUTES sa;
// Create a security descriptor for the log file that allows
// access from both the privileged service and the non-privileged
// user mode programs
psidWorldSid = ( PSID) LocalAlloc ( LPTR,
GetSidLengthRequired ( 1)
);
InitializeSid ( psidWorldSid, &siaWorldSidAuthority, 1);
*( GetSidSubAuthority ( psidWorldSid, 0)) = SECURITY_WORLD_RID;
InitializeSecurityDescriptor ( &sd, SECURITY_DESCRIPTOR_REVISION);
SetSecurityDescriptorGroup ( &sd, psidWorldSid, TRUE);
ZeroMemory ( &sa, sizeof ( SECURITY_ATTRIBUTES));
sa.nLength = sizeof ( SECURITY_ATTRIBUTES);
sa.lpSecurityDescriptor = &sd;
sa.bInheritHandle = FALSE; $49.99.
Premium members get this course for $151.20.
Premium members get this course for $122.40.
Premium members get this course for $95.20.
Premium members get this course for $12.50.
Premium members get this course for $143.20.
Maybe you could clarify a bit more about what you are trying to achieve here as it may help us guide you to a more appropriate solution.
-Rx.
Open in new window
Open in new window
With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.
Something very similar:
Best Regards,
DeepuAbrahamK
So far it works okay. But the log files are growing and there is a requirement once per a while to copy the log file to backup and empty it. This I want to do using a script (in similar way as unix systems do). Problem is that the log file is held by the logger daemon, so the script cannot do anything with it.
As the logger daemon is idle most of the time and reach the log file only if there is a message to write, I have to fine a way how to release the log file for other processes when the logger is idle (but do not close it, as i am afraid that closing and opening the file would slow it down).
Does fstream class enable something like that?
thanks matoust
Get you code to do this, it'll be simpler! Code to copy a file can be found here.
Just close the file, copy it then reopen with ios::trunc to set it to 0 bytes in length.
File locking is handled by the OS, fstream doesn't really give you much control over this.
>>there is a message to write, I have to fine a way how to release the log file
>>for other processes when the logger is idle
Close the file then - if the daemon is only writing at sparse intervals anyway, the slowdown won't matter at all. Or even better, consider sending a message to the daemon for that purpose, indicating that you want to copy the file and it should close it for that purpuse.
The main thread watch the queue, fetch the message from it and process it. I think I need to suspend the main thread in the way which release the file (as the pause does). Do you know how to do it.
- closing the file explicitly
- share using the Win32 API
C:\>pause
Press any key to continue . . .
>> I really don't want to open and close the file for each message entry
Just chose it when you want to copy it and then reopen it with ios::trunc to zero size it (http:#20760982)
>> Can I get the main thread of the logger to the same status as the pause does programatically?
I think you misunderstand what pause doe :)
>> I think I need to suspend the main thread in the way which release the file (as the pause does).
Pause is a DOS command, it does nothing other than wait for a key to be pressed (see above)
HANDLE fileHandle = CreateFile(
fileName.c_str( ),
(FILE_READ_DATA | FILE_WRITE_DATA | FILE_APPEND_DATA),
(FILE_SHARE_READ | FILE_SHARE_WRITE),
NULL,
OPEN_ALWAYS,
FILE_ATTRIBUTE_NORMAL,
NULL);
and then write to file using
WriteFile( fileHandle,
buf,
sizeof(buf),
&len,
NULL);
It did not help; other application are able to read the file, but not to write (clean, copy) the file. Is there any Win32 API trick that I am missing?
Open in new window
Finay have solve it using the Win32 calls as CreatFile, WriteFile and so on. The reason why I wrongly stated that it does not work in my previous respond was that I tried the to open and modify the file using Windows notepad, whichprobably does not open the file in the share mode.
When I create file in share mode and by one application and then open it in share mode by the other, both application can read write, move pointer , delete and so on. | https://www.experts-exchange.com/questions/23111718/How-to-open-file-using-fstream-constructor-in-shared-mode.html | CC-MAIN-2018-09 | refinedweb | 850 | 69.21 |
When you compile
your source code in Visual Studio, the compiler translates the
high-level source code, not into machine-specific instructions, but
into an intermediate language known as Microsoft Intermediate Language
(MSIL). This Intermediate Language (IL),
along with additional security, versioning, sharing, and other
related metadata, is packaged into one or more DLLs or executable
files. The complete package is referred to as an assembly. As you saw
in , there are free tools that can examine the IL of
an assembly.
While examining the IL of an assembly can be useful at times, it
requires familiarity with MSIL. More often than not, the average
developer is much more comfortable with a high-level programming
language like C# or Visual Basic rather than IL. Fortunately, a free
tool called Reflector
can translate the intermediate language of a .NET assembly into
either C# or Visual Basic code. In addition to converting IL to C# or
Visual Basic code, Reflector provides an outline of the
assembly's
classes
and its members, the ability to view the IL for an assembly, and
support for third-party add-ins.
Reflector is a free program created
by Lutz Roeder, a Microsoft employee. It is one of those essentials
that every serious .NET developer should have in her toolbox.
Reflector is updated frequently; the latest version is available at. At the
time of this writing, when you download Reflector, you download a zip
file containing just two files: Reflector.exe
and ReadMe.htm. After unzipping these two files
to some directory, you can run Reflector by simply double-clicking
the Reflector.exe file.
By default, Reflector opens a handful of common assemblies:
mscorlib, System,
System.Data,
System.Drawing, and so on. Each opened assembly
is listed in Reflector's main window (see ). Clicking on the + icon
next to an assembly will expand the tree, showing the
assembly's namespaces. Each namespace has a
corresponding + icon next to it as well that, when
clicked, will show the namespace's classes.
Additionally, each class can be expanded to show the
class's members—its events, fields, methods,
and properties.
To view the details of other assemblies, such as assemblies
you've created, go to the File menu and choose Open.
Next, browse to the assembly you want to view. Once you have selected
a valid .NET assembly, the assembly will be displayed in
Reflector's main window along with the default
assemblies. To remove an assembly from Reflector's
main window, right-click on the assembly and choose Close.
While being able to browse through
assemblies, namespaces, and classes is handy,
Reflector's true usefulness shines through in its
disassembling capabilities. Once you have drilled down to a
class-level member, you can
disassemble the class-level member by going to the Tools menu and
choosing Disassembler. This will open up a second pane, showing the
disassembled content in either C#, Visual Basic, Delphi, or IL. (You
can specify what language the disassembled output should be shown in
through the View → Options dialog or via the drop-down list
in the toolbar.) shows the disassembled
contents of the DataSet class's GetXml()method in C#.
With its disassembling capabilities, Reflector makes it easy to
investigate the guts of the .NET Framework Base Class Library. You
can also examine the source code of assemblies that you
have created or are using but don't have the
original source code for.
TIPSeeing.
Seeing.
In addition to serving as an object
browser and disassembler, Reflector can display
call and callee graphs for class
and class members, offer one-click access to search Google or MSDN,
and provide a framework that allows third-party developers to create
add-ins for Reflector.
To view the call or callee graphs, simply select a member in the tree
view, go to the Tools menu, and select the Call Graph or Callee Graph
option. The Call Graph lists the members called by the selected item,
whereas the Callee Graph lists those members that call the selected
item. For example, as shows, the
ArrayList class's Clone() method
calls the System.Array.Copy() method and the
ArrayList's constructor (as it created a new
ArrayList instance), and works with the ArrayList's
_items, _size, and
_version private member variables.
The callee graph is the inverse of the call graph. It shows those
members that call the selected item. For example, the
ArrayList's Clone()
method's callee graph shows that the
System.NET.SocketPermission
class's Copy() method and the
System.Xml.XPath.XsltFunction
class's Clone() members, among
others, call the ArrayList's
Clone() method.
Reflector's functionality can be further extended
through the use of
add-ins.
There are add-ins for displaying assembly dependency graphs, for
automatically loading the currently running assembly, for outputting
the disassembled contents of an entire assembly, and for hosting
Reflector within Visual Studio. These add-ins, and more, are listed
at
and are all worth checking out.
Of particular interest is the
Reflector.VisualStudio Add-In. This add-in, created by Jaime
Cansdale, allows for Reflector to be hosted within Visual Studio.
With this add-in, you can have Reflector integrated within the Visual
Studio environment. To get started, you will need to have the latest
version of Reflector on your machine. Once you have downloaded
Reflector, download the latest version of the Reflector.VisualStudio
Add-In from. The
download contains a number of files that need to be placed in the
same directory as Reflector.exe. To install the
add-in, drop to the command line and run:
Reflector.VisualStudio.exe /install
After the add-in has been installed, you can start using Reflector
from Visual Studio. You'll notice a new menu item,
Addins, which has a menu option titled Reflector. This option, when
selected, displays the Reflector window, which can be docked in the
IDE (see ). Additionally, the add-in
provides context menu support. When you right-click in an open code
file in Visual Studio, you'll see a Reflector menu
item that expands into a submenu with options to disassemble the code
into C# or Visual Basic, display the call graph or callee graph, and
other related choices. The context menu also includes a Synchronize
with Reflector menu item that, when clicked, syncs the object browser
tree in the Reflector window with the current code file.
Reflector is an object browser, disassembler, and so much more, all
wrapped up into one program that can be hosted through Visual Studio.
Reflector is useful for inspecting the source code of the .NET
Framework's Base Class Library, as well as a helpful
tool for inspecting your own assemblies. With its bevy of features
and add-ins, Reflector is an indispensable tool that every .NET
developer should know of and use.
—Scott Mitchell
O'Reilly Home | Privacy Policy
© 2007 O'Reilly Media, Inc.
Website:
All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners. | http://archive.oreilly.com/pub/h/5172 | CC-MAIN-2016-40 | refinedweb | 1,163 | 55.64 |
Hi, I am new to SoapUI, I am able to connect to my database for now. I want to know how can I use the data from the query and input that into the request parameter so that it gives a response using groovy script. My query will give tracking numbers and I want the soapui to input these tracking numbers and give the appropriate response.
Thanks.
In SoapUI open source, after JDBC connection, response will be shown in xml format.
Please see below image, wher I am doing a sample JDBC connection
From this response I retrieve Email value with this groovy script. And set this Email value as a Properties in TestSuite. So that I can use this property in any TestCase. [${#TestSuite#Properties}]
Like Email You can retreve Tracking Number from response. I think It will help you.
hi
i got solution for you.
example of groovy script which recover and test one database field value :
before you have : testcase property with expected values, and a JDBC Step which give you database answer :
<Results><ResultSet fetchSize="0"><Row rowNumber="1"><databasename.datafield1>123</databasename.datafield1>
...<databasename.datafieldname>123</databasename.datafieldname>...
</Row></ResultSet></Results>
import com.eviware.soapui.support.XmlHolder
def reponse = context.expand( '${JDBCTestStep#ResponseAsXml#//*:Results/ResultSet/Row}' )def egal = trueif (reponse != "") {// log.info " answer recover : " + reponse // Test field in database def Slurp = new XmlSlurper().parseText(reponse)def FieldDB = Slurp."databasename.datafieldname"// log.info " FieldDB : " + FieldDBdef FieldExpected = testRunner.testCase.getPropertyValue("FieldValueExpected")if (FieldDB == FieldExpected ) { log.info " the field " + FieldDB + " is correct in database."}else { egal = false; log.info " the field " + FieldDB + " is not correct in database."}}else { egal = false; log.info " request sent is empty !"}assert egal | https://community.smartbear.com/t5/SoapUI-Open-Source/Parametize-test-data-from-JDBC-into-request/m-p/172445 | CC-MAIN-2018-51 | refinedweb | 280 | 52.46 |
Created on 2014-05-05 12:00 by srittau, last changed 2015-12-13 00:30 by berker.peksag. This issue is now closed.
It was very easy to load plugin files in Python 2:
import imp
my_module = imp.load_source("what.ever", "foo.py")
Unfortunately, this became much more obscure in Python 3.3:
import importlib.machinery
loader = importlib.machinery.SourceFileLoader("what.ever", "foo.py")
my_module = loader.load_module("what.ever")
In Python 3.4 even this has been deprecated. There should be a way (preferable an easy-to-use one) to load a Python module by filename or by stream.
So it's not quite as bad as you think as SourceFileLoader.load_module() doesn't need an argument (I've opened to fix the documentation). Admittedly it is a longer command than imp.load_source() to type, but there is no extra information required or a necessity that you break the command up into multiple lines.
Plus imp.load_source() is just plain bad. The reason the imp module is deprecated in Python 3.4 is because it does not expose the low-level details of import in a way that makes any sense since Python 2.3 (and yes, I meant to write 2.3 instead of 3.3; the problem has persisted _that_ long).
That being said, talks are just starting to consider undoing the documented deprecation of load_module() such that you can continue to use that as a substitute for imp.load_source()/imp.load_module().
I'm going to leave this bug open, hijack its title, and refocus this as to consider leaving importlib.abc.Loader.load_module() in importlib as the all-powerful fallback API which also simplifies transitioning from imp.
I'd rather see something like "load_from_spec()" added to importlib.util, a la issue #21235.
Python 3.5 lets you do:
spec = importlib.util.spec_from_file_location('what.ever', 'foo.py')
module = importlib.util.module_from_spec(spec)
spec.loader.exec_module(module)
I am satisfied that case for loading from a file is easy enough to not warrant keeping load_module() around just for this use case. | http://bugs.python.org/issue21436 | CC-MAIN-2016-30 | refinedweb | 343 | 52.66 |
#include <assert.h>
#include <stdint.h>
#include <string>
#include <type_traits>
#include <vector>
#include "sql/iterators/row_iterator.h"
#include "sql/join_optimizer/interesting_orders_defs.h"
#include "sql/join_optimizer/materialize_path_parameters.h"
#include "sql/join_optimizer/node_map.h"
#include "sql/join_optimizer/overflow_bitset.h"
#include "sql/join_optimizer/relational_expression.h"
#include "sql/join_type.h"
#include "sql/mem_root_array.h"
#include "sql/sql_array.h"
#include "sql/sql_class.h"
Go to the source code of this file.
Find the list of all tables used by this root, stopping at materializations.
Used for knowing which tables to sort.
For each access path in the (sub)tree rooted at “path”, expand any use of “filter_predicates” into newly-inserted FILTER access paths, using the given predicate list.
This is used after finding an optimal set of access paths, to normalize the tree so that the remaining consumers do not need to worry about filter_predicates and cost_before_filter.
“join” is the join that “path” is part of.
Like ExpandFilterAccessPaths(), but expands only the single access path at “path”.
If the path is a FILTER path marked that subqueries are to be materialized, do so.
If not, do nothing.
It is important that this is not called until the entire plan is ready; not just when planning a single query block. The reason is that a query block A with materializable subqueries may itself be part of a materializable subquery B, so if one calls this when planning A, the subqueries in A will irrevocably be materialized, even if that is not the optimal plan given B. Thus, this is done when creating iterators.
Modifies "path" and the paths below it so that they provide row IDs for all tables.
Return the TABLE* referred from 'path' if it is a basic access path, else a nullptr is returned.
Temporary tables, such as those used by sorting, aggregate and subquery materialization are not returned.
Returns the tables that have stored row IDs in the hash join result.
Returns a map of all tables read when
path or any of its children are exectued.
Only iterators that are part of the same query block as
path are considered.
If a table is read that doesn't have a map, specifically the temporary tables made as part of materialization within the same query block, RAND_TABLE_BIT will be set as a convention and none of that access path's children will be included in the map. In this case, the caller will need to manually go in and find said access path, to ask it for its TABLE object.
If include_pruned_tables = true, tables that are hidden under a ZERO_ROWS access path (ie., pruned away due to impossible join conditions) will be included in the map. This is normally what you want, as those tables need to be included whenever you store NULL flags and the likes, but if you don't want them (perhaps to specifically check for conditions referring to pruned tables), you can set it to false. | https://dev.mysql.com/doc/dev/mysql-server/latest/access__path_8h.html | CC-MAIN-2022-27 | refinedweb | 488 | 57.87 |
Flex Meets Google App Engine
Adobe did a very good job with Flex and they are far ahead of their rivals in RIA area. Meanwhile Google is doing great with several Java projects (such as Guice, GWT) and bringing Java support to Google App Engine. Actually Google even has an open source Flex component library called flexLib.
Java on Google App Engine is a very important step. Since I graduated I've heard most of friends bringing up ideas but not trying to build them, mostly because of the costs of Java hosting. Java is a elegant and sophisticated platform which is fun to work on but never offers cheap and easy hosting alternatives like PHP. Google App Engine can finally change this. It offers zero cost startup, flexible payment options as your project grows and also provides a very easy development environment. All you need is just to install the Eclipse plugin and start coding. Even when a new GAE project is created, a basic GWT example is already included.
I really like the scene where Obi-wan Kenobi meets Anakin Skywalker in Episode I. Qui-Gon introduces Anakin and says “Anakin Skywalker meet Obi-Wan Kenobi”. It is an important scene bringing two different people together for a very long time. This post will be an introduction of Flex to Google App Engine. Two great but totally different worlds. We will build a very basic servlet to feed data to our Flex application, and use Google's datastore to easily persist the data. Before starting the tutorial I assume GAE plugin and Flex builder plugin is already installed to your Eclipse instance.
You must have noticed the new three buttons on toolbar. Just click the “New Web Application Project”.
Next give a package and project name.
You must have noticed the wizard already added GreetingService, GreetingServiceImpl and a GWT class with the name of your project (in this case “FirstProject”). This is a good start especially for starting GWT but not useful for us. Just leave them there and open web.xml file under war/WEB-INF and add a servlet description.
We are ready to create a servlet to feed our Flex Client. Right click org.flexjava.server package and add a new class file extending HttpServlet as shown below.
Now its time to design our backend service. I don't really like hello world projects so even if we are coding a basic project lets find a real (but still basic) phonebook project worth to code. For the basic functionality we need retrieve the list of the contacts stored in the datastore and we also need to add new ones.
We need an Entity for our contacts. Lets create a new Class named Entry and add the annotations to make our Entry class persistance capable.
package org.flexjava.server;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
@PersistenceCapable
public class Entry {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
Long id;
@Persistent
private String name;
@Persistent
private String phone;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
// Add all getter/setters...
}
GAE's datastore is quite easy to use. Just create a persistanceManager and use makePersistant or newQuery methods to save or retrieve data.
PersistenceManager persistenceManager = pmfInstance.getPersistenceManager();
//..
persistenceManager.makePersistent(entry);
//..
persistenceManager.newQuery(query).execute();
Lets start coding our servlet using those.
package org.flexjava.server;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.List;
import javax.jdo.JDOHelper;
import javax.jdo.PersistenceManager;
import javax.jdo.PersistenceManagerFactory;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@SuppressWarnings("serial")
public class FlexServiceImpl extends HttpServlet {
//persistanceManager
private static final PersistenceManagerFactory pmfInstance = JDOHelper.getPersistenceManagerFactory("transactions-optional");
@SuppressWarnings("unchecked")
public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException {
//PrintWriter to return and receive data from flex client
PrintWriter writer=resp.getWriter();
writer.println("\n");
PersistenceManager persistenceManager = pmfInstance.getPersistenceManager();
//reading parameters from http request
String operation = req.getParameter("operation");
String name = req.getParameter("name");
String phone = req.getParameter("phone");
//if adding new contact is requested
if (operation.equalsIgnoreCase("save")){
Entry entry=new Entry();
entry.setName(name);
entry.setPhone(phone);
persistenceManager.makePersistent(entry);
writer.println("Success");
//if retrieving all contact list is requested
}else if (operation.equalsIgnoreCase("get")){
//Query to retrieve all Entry data
String query = "select from " + Entry.class.getName();
List entries = (List) persistenceManager.newQuery(query).execute();
writer.println("");
for (Entry entry : entries) {
writer.println("");
writer.println(""+entry.getName()+"");
writer.println(""+entry.getPhone()+"");
writer.println("");
}
writer.println("");
}
}
}
Our GAE code is ready, now we can move on to Flex. To enable our project Flex compatible, right click project and select add Flex Project Nature.
Click next to continue.
Select war folder as the output folder so the build files will be deployed to server.
Since we just added Flex nature and created a mxml file, Flex Builder finds it confusing to prepare the HTML wrapper files for the SWF build. To make Flex builder's life easier go to errors tab, right click the error and select recreate HTML Templated. If there are no errors just skip this and continue.
Now we are free to design our own user interface. Switch to design view drag and drop 2 labels, 2 text boxes, a button and a datagrid component.
Now we can switch to source mode to code. We are going to use very little coding, most of the work will be done by auto XML parsing and binding the data between components and variables.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:
<mx:TextInput
<mx:TextInput
<mx:Label
<mx:Label
<mx:Button
<!-- datagrid is directly binded to phonebook variable -->
<mx:DataGrid
<mx:columns>
<!--datafields determine which property belongs to that column-->
<mx:DataGridColumn
<mx:DataGridColumn
<mx:DataGridColumn
</mx:columns>
</mx:DataGrid>
<!--HTTPService can easily post and receive xml data-->
<mx:HTTPService
<!--xml request will be automatically formed with bindings-->
<mx:request
<operation>{command}</operation>
<name>
{nameTxt.text}
</name>
<phone>
{phoneTxt.text}
</phone>
</mx:request>
</mx:HTTPService>
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
import mx.rpc.events.ResultEvent;
[Bindable]
private var command:String;
[Bindable]
private var phonebook:XML;
//xml var to hold the received data,note bindable attribute
//to enable binding
public function resultHandler(event:ResultEvent):void{
if (event.result!=null){
var xml:XML=event.result as XML;
if (xml.result=="success"){
callService("get");
}else{
phonebook=xml;
}
}
}
public function callService(command:String):void{
this.command=command;
httpXmlDataService.send();
}
]]>
</mx:Script>
</mx:Application>
So little and our client is ready, right click the project and select run as Web Application.
GAE Plugin adds an embedded datastore and a server to your project to test. Whenever you click run the embedded services will be running and even an internal browser will run your client. Since our project name and mxml file has the same name, the default page on web.xml file point to our Flex application. Please dont forget to modify in your web.xml file if yours differ.
Easy? Well yes but still this does not release the real power and integration of Java and Flex. Next time we will focus on BlazeDs to make Flex to talk to Google App Engine. Stay tuned ;)
(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)
Murat Yener replied on Sat, 2009/05/16 - 3:15am
List<Entry> entries = (List<Entry>) persistenceManager.newQuery(query).execute();
This should work.. Thanks Yang..
p.s. Just realised how this error happened :) I post this article first on my site which uses blogger. Blogger thought List<Entry> is an html tag and deleted from the code part. Later when i copy and paste it to here this part was missing... Sorry for that and pls let me know if there are any other problems...
Jonny Yorke replied on Wed, 2009/05/20 - 5:45am
Hey!
Great article. Can you publish the entire project..? I'm probebly missing a very basic thing and looking at the actual project structure will help me. Thanks!
Murat Yener replied on Wed, 2009/05/20 - 4:17pm
Sure, i added the project export. Please let me now if anything is wrong..
Thanks...
Fred Rahmanian replied on Thu, 2009/05/21 - 12:11pm
Murat Yener replied on Thu, 2009/05/21 - 3:29pm
in response to:
Fred Rahmanian
To be honest I am not a GAE expert, but it does make me excited and I really think it is going to fill a gap between developer ideas and cheap hosting (free startup). Never thought of using it only for data store but depending on your subject actually yes you may... GAE for Java is in very early stage so security issues must be evaluated. Even thought it is in early stage I find it great to see it works with other platforms than GWT and offers a stable and easy development environment. Ohh and thanks for your nice comments, hope the article can give some ideas for starting up.
Murat
Chetan Sachdev replied on Sat, 2009/05/30 - 2:29pm
Very nice article although syntax highlighter is playing with the code so it took me a few minutes to recognise that I am not getting XML and getting raw strings :D Have a look at FlexServiceImpl
for (Entry entry : entries) {
writer.println("");writer.println(""+entry.getName()+""); writer.println(""+entry.getPhone()+""); writer.println("");}
Very nice article, integrated flex and gae in about 30 minutes (includes all installation time)
Thanks, now jumping to next article with BlazeDS integration.
Murat Yener replied on Wed, 2009/06/03 - 9:47pm
in response to:
Chetan Sachdev
Ola Bratt replied on Mon, 2009/07/06 - 1:34am
Antonio Monroy replied on Tue, 2010/04/06 - 11:04am
Antonio Monroy replied on Tue, 2010/04/06 - 11:27am
Antonio Monroy replied on Wed, 2010/04/07 - 1:14pm
"I omitted the signs <>"
xml version="1.0" encoding="UTF-8"?
cross-domain-policy
site-control permitted-cross-domain-policies="all"/
allow-access-from domain="*" secure="false"/
allow-http-request-headers-from domain="*" headers="*" secure="false"/
/cross-domain-policy | http://java.dzone.com/articles/flex-meets-google-app-engine | CC-MAIN-2013-48 | refinedweb | 1,694 | 50.43 |
Absolute and Weighted Frequency of Words in Text
An important set of metrics in text mining relates to the frequency of words (or any token) in a certain corpus of text documents. However, you can also use an additional set of metrics in cases where each document has an associated numeric value describing a certain attribute of the document.
Some examples:
- Tweets and their respective number of engagements.
- URLs and their pageviews and bounces.
- Movie titles and their gross revenue.
- Keywords and their impressions, clicks, and conversions.
In this tutorial,
- You will first go through the process of creating a simple function that calculates and compares the absolute and weighted occurrence of words in a corpus of documents. This can sometimes uncover hidden trends and aggregates that aren't necessarily clear by looking at the top ten or so values. They can often be different from the absolute word frequency as well.
- Then, you will see a real-life data set (movie titles and the gross revenue), and hope to discover hidden trends. A teaser: love will come up somehow!
- You will be using Python as a programming language and use the
collectionsmodule's
defaultdictdata structure for the heavy lifting, as well as pandas
DataFrames to manage the final output.
Absolute and Weighted Word Frequency: Introduction
Let's assume that you have two tweets and that their content and number of impressions (views) are as follows:
It is simple to do the basic analysis and find out that your words are split 50:50 between 'france' and 'spain'. In many cases, this is all you have, and you can only measure the absolute frequency of words, and try to infer certain relationships. In this case, you have some data about each of the documents.
The weighed frequency here, is clearly different, and the split is 80:20. In other words, although 'spain' and 'france' both appeared once each in your tweets, from your readers' perspective, the former appeared 800 times, while the latter appeared 200 times. There's a big difference!
Simple Word Frequency using
defaultdict
Now consider this slightly more involved example for a similar set of documents:
You now loop through the documents, split them into words, and count the occurrences of each of the words:
from collections import defaultdict import pandas as pd text_list = ['france', 'spain', 'spain beaches', 'france beaches', 'spain best beaches'] word_freq = defaultdict(int) for text in text_list: for word in text.split(): word_freq[word] += 1 pd.DataFrame.from_dict(word_freq, orient='index') \ .sort_values(0, ascending=False) \ .rename(columns={0: 'abs_freq'})
In the loop above, the first line loops through
text_list one by one. The second line (within each document) loops through the words of each item, split by the space character (which could have been any other character ('-', ',', '_', etc.)).
When you try to assign a value to
word_freq[word] there are two possible scenarios:
- The key
wordexists: in which case the assignment is done (adding one)
- The key
wordis not in
word_freq, in this case
defaultdictcalls the default function that it was assigned to when it was first defined, which is
intin this case.
When
int is called it returns zero. Now the key exists, its value is zero, and it is ready to get assigned an additional 1 to its value.
Although the top word was 'france' in the first table, after counting all the words within each document we can see that 'spain' and 'beaches' are tied for the first position. This is important in uncovering hidden trends, especially when the list of documents you are dealing with, is in the tens, or hundreds, of thousands.
Weighted Word Frequency
Now that you have counted the occurences of each word in the corpus of documents, you want to see the weighted frequency. That is, you want to see how many times the words appeared to your readers, compared to how many times you used them.
In the first table, the absolute frequency of the words was split evenly between 'spain' and 'france', but 'spain' had clearly much more weight, because its value was 800, versus 200 or 'france'.
But what would be the weighted word frequency for the second, slightly more complex, table?
Let's find out!
You can re-use some of the code that you used above, but with some additions:
# default value is now a list with two ints word_freq = defaultdict(lambda: [0, 0]) # the `views` column you had in the first DataFrame num_list = [200, 180, 170, 160, 160] # looping is now over both the text and the numbers for text, num in zip(text_list, num_list): for word in text.split(): # same as before word_freq[word][0] += 1 # new line, incrementing the numeric value for each word.style.background_gradient(low=0, high=.7, subset=['rel_value'])
Some observations:
- Although 'france' was the highest phrase overall, 'spain' and 'beaches' seem to be more prominent when you take the weighted frequency.
rel_valueis a simple division to get the value per occurrence of each word.
- Looking at
rel_value, you also see that, even though 'france' is quite low on the
wtd_freqmetric, there seems to be potential in it, because the value per occurence is high. This might hint at increasing your content coverage of 'france' for example.
You might also like to add some other metrics that show the percentages and cumulative percenatages of each type of frequency so that you can get a better perspective on how many words form the bulk of the total, if any:.style.background_gradient(low=0, high=0.8)
More can be analyzed, and with more data you would typically get more surprises.
So how might this look in a real-world setting with some real data?
You will take a look at movie titles, see which words are most used in the titles -which is the absolute frequency-, and which words are associated with the most revenue, or the weighted frequency.
Boxoffice Mojo has a list of more than 15,000 movies, together with their associated gross revenue and ranks. Start by scraping the data using
requests and
BeautifulSoup - You can already explore the Boxoffice Mojo here if you'd like:
import requests from bs4 import BeautifulSoup
final_list = [] for i in range(1, 156): if not i%10: print(i) page = '' + str(i) + '&p=.htm' resp = requests.get(page) soup = BeautifulSoup(resp.text, 'lxml') # trial and error to get the exact positions table_data = [x.text for x in soup.select('tr td')[11:511]] # put every 5 values in a row temp_list = [table_data[i:i+5] for i in range(0, len(table_data[:-4]), 5)] for temp in temp_list: final_list.append(temp)
10 20 30 40 50 60 70 80 90 100 110 120 130 140 150
boxoffice_df = pd.DataFrame.from_records(final_list) boxoffice_df.head(10)
boxoffice_df.tail(15)
You will see that some numeric values have some special characters, (
$,
, , and
^), and some values are actually
N/A. So you need to change those:
na_year_idx = [i for i, x in enumerate(final_list) if x[4] == 'n/a'] # get the indexes of the 'n/a' values new_years = [1998, 1999, 1960, 1973] # got them by checking online print(*[(i, x) for i, x in enumerate(final_list) if i in na_year_idx], sep='\n') print('new year values:', new_years)
(8003, ['8004', 'Warner Bros. 75th Anniversary Film Festival', 'WB', '$741,855', 'n/a']) (8148, ['8149', 'Hum Aapke Dil Mein Rahte Hain', 'Eros', '$668,678', 'n/a']) (8197, ['8198', 'Purple Moon (Re-issue)', 'Mira.', '$640,945', 'n/a']) (10469, ['10470', 'Amarcord', 'Jan.', '$125,493', 'n/a']) new year values: [1998, 1999, 1960, 1973]
for na_year, new_year in zip(na_year_idx, new_years): final_list[na_year][4] = new_year print(final_list[na_year], new_year)
['8004', 'Warner Bros. 75th Anniversary Film Festival', 'WB', '$741,855', 1998] 1998 ['8149', 'Hum Aapke Dil Mein Rahte Hain', 'Eros', '$668,678', 1999] 1999 ['8198', 'Purple Moon (Re-issue)', 'Mira.', '$640,945', 1960] 1960 ['10470', 'Amarcord', 'Jan.', '$125,493', 1973] 1973
Now you turn the list into a pandas
DataFrame by naming the columns with the appropriate names, and converting to the data types that you want.
import re regex = '|'.join(['\$', ',', '\^']) columns = ['rank', 'title', 'studio', 'lifetime_gross', 'year'] boxoffice_df = pd.DataFrame({ 'rank': [int(x[0]) for x in final_list], # convert ranks to integers 'title': [x[1] for x in final_list], # get titles as is 'studio': [x[2] for x in final_list], # get studio names as is 'lifetime_gross': [int(re.sub(regex, '', x[3])) for x in final_list], # remove special characters and convert to integer 'year': [int(re.sub(regex, '', str(x[4]))) for x in final_list], # remove special characters and convert to integer }) print('rows:', boxoffice_df.shape[0]) print('columns:', boxoffice_df.shape[1]) print('\ndata types:') print(boxoffice_df.dtypes) boxoffice_df.head(15)
rows: 15500 columns: 5 data types: lifetime_gross int64 rank int64 studio object title object year int64 dtype: object
The word 'star' is one of the top, as it appears in five of the top fifteen movies, and you also know that the Star Wars series has even more movies, several of them in the top as well.
Let's now utilize the code you developed and see how it works on this data set. There's nothing new in the code below, you simply put it all in one function:
def word_frequency(text_list, num_list, sep=None): word_freq = defaultdict(lambda: [0, 0]) for text, num in zip(text_list, num_list): for word in text.split(sep=sep): word_freq[word][0] += 1()) return abs_wtd_df word_frequency(boxoffice_df['title'], boxoffice_df['lifetime_gross']).head()
Unsurprisingly, the 'stop words' are the top ones, which is pretty much the same for most collections of documents. You also have them duplicated, where some are capitalized and some are not. So you have two clear things to take care of:
- Remove all stop words: you can do this by adding a new parameter to the function, and supplying your own list of stop words.
- Handle all words in lower case to remove duplicates
Here is a simple update to the function (new
rm_words parameter, as well as lines 6,7, and 8):
# words will be expanded def word_frequency(text_list, num_list, sep=None, rm_words=('the', 'and', 'a')): word_freq = defaultdict(lambda: [0, 0]) for text, num in zip(text_list, num_list): for word in text.split(sep=sep): # This should take care of ignoring the word if it's in the stop words if word.lower() in rm_words: continue # .lower() makes sure we are not duplicating words word_freq[word.lower()][0] += 1 word_freq[word.lower()] = abs_wtd_df.reset_index().rename(columns={'index': 'word'}) return abs_wtd_df
from collections import defaultdict word_freq_df = word_frequency(boxoffice_df['title'], boxoffice_df['lifetime_gross'], rm_words=['of','in', 'to', 'and', 'a', 'the', 'for', 'on', '&', 'is', 'at', 'it', 'from', 'with']) word_freq_df.head(15).style.bar(['abs_freq', 'wtd_freq', 'rel_value'], color='#60DDFF') # E6E9EB
Let's take a look at the same DataFrame sorted based on
abs_freq:
(word_freq_df.sort_values('abs_freq', ascending=False) .head(15) .style.bar(['abs_freq', 'wtd_freq', 'rel_value'], color='#60DDFF'))
Now let's visualize to compare both and see the hidden trends:
import matplotlib.pyplot as plt plt.figure(figsize=(20,8)) plt.subplot(1, 2, 1) word_freq_df_abs = word_freq_df.sort_values('abs_freq', ascending=False).reset_index() plt.barh(range(20), list(reversed(word_freq_df_abs['abs_freq'][:20])), color='#288FB7') for i, word in enumerate(word_freq_df_abs['word'][:20]): plt.text(word_freq_df_abs['abs_freq'][i], 20-i-1, s=str(i+1) + '. ' + word + ': ' + str(word_freq_df_abs['abs_freq'][i]), ha='right', va='center', fontsize=14, color='white', fontweight='bold') plt.text(0.4, -1.1, s='Number of times the word was used in a movie title; out of 15500 movies.', fontsize=14) plt.text(0.4, -1.8, s='Data: boxofficemojo.com Apr. 2018. Feedback: @eliasdabbas', fontsize=14) plt.vlines(range(0, 210, 10), -1, 20, colors='gray', alpha=0.1) plt.hlines(range(0, 20, 2), 0, 210, colors='gray', alpha=0.1) plt.yticks([]) plt.xticks([]) plt.title('Words Most Used in Movie Titles', fontsize=22, fontweight='bold') # ============= plt.subplot(1, 2, 2) # plt.axis('off') plt.barh(range(20), list(reversed(word_freq_df['wtd_freq'][:20])), color='#288FB7') for i, word in enumerate(word_freq_df['word'][:20]): plt.text(word_freq_df['wtd_freq'][i], 20-i-1, s=str(i+1) + '. ' + word + ': ' + '$' + str(round(word_freq_df['wtd_freq'][i] / 1000_000_000, 2)) + 'b', ha='right', va='center', fontsize=14, color='white', fontweight='bold') plt.text(0.4, -1.1, s='Alltime boxoffice revenue of all movies whos title contained the word. (Top word is "2") ', fontsize=14) plt.text(0.4, -1.8, s='Data collection & methodology:', fontsize=14) plt.vlines(range(0, 9_500_000_000, 500_000_000), -1, 20, colors='gray', alpha=0.1) plt.hlines(range(0, 20, 2), 0, 10_000_000_000, colors='gray', alpha=0.1) plt.xlim((-70_000_000, 9_500_000_000)) plt.yticks([]) plt.xticks([]) plt.title('Words Most Associated With Boxoffice Revenue', fontsize=22, fontweight='bold') plt.tight_layout(pad=0.01) plt.show()
It seems that in the minds of producers and writers at least, love does conquer all! It is the most used word in all of the movie titles. It is not that high when it comes to weighted frequency (box-office revenue), though.
In other words, if you look at all the titles of movies, the word 'love' would be the one you would most find. But estimating which word appeared the most in the eyes of the viewers (using gross revenue as a metric), then '2', 'star', and 'man' would be the most viewed, or associated with the most revenue.
Just to be clear: these are very simple calculations. When you say that the weighted frequency of the word 'love' is 1,604,106,767, it simply means that the sum of the lifetime gross of all movies who's title included the word 'love' was that amount.
It's also interesting that '2' is the top word. Obviously, it is not a word, but it's an indication that the second parts of movie series amount to a very large sum. So is '3', which is in the fifth position. Note that 'part' and 'ii' are also in the top ten, confirming the same fact.
'American', and 'movie', have high relative value.
A quick note on the stop words used in this function
Usually, you would supply a more comprehensive list of stop words than the one here, especially if you are dealing with articles, or social media posts. For example the
nltk package provides lists of stop words in several languages, and these can be downloaded and used.
The words here were chosen after a few checks on the top movies. Many of these are usually considered stop words, but in the case of movie titles, it made sense to keep some of them as they might give some insight. For example, the words 'I', 'me', 'you' might hint at some social dynamics. Another reason is that movie titles are very short phrases, and we are trying to make as much sense as we can from them.
You can definitely try it with your own set of words, and see slightly different results.
Looking back at the original list of movie titles, we see that some of the top words don't even appear in the top ten, and this is exactly the kind of insight that we are trying to uncover by using this approach.
boxoffice_df.head(10)
Next, I think it would make sense to further explore the top words that are interesting. Let's filter the movies that contain '2' and see:
(boxoffice_df[boxoffice_df['title'] .str .contains('2 | 2', case=False)] # spaces used to exclude words like '2010' .head(10))
Let's also take a peek at the top 'star' movies:
boxoffice_df[boxoffice_df['title'].str.contains('star | star', case=False)].head(10)
And, lastly, the top 'man' movies:
boxoffice_df[boxoffice_df['title'].str.contains('man | man', case=False)].head(10)
Next steps and Improvements
As a first step, you might try to get more words: movie titles are extremely short and many times don't convey the literal meaning of the words. For example, a godfather is supposed to be a person who whitnesses a child's christening, and promises to take care of that child (or maybe a mafioso who kills for pleasure?!).
A further exercise might be to get more detailed descriptions, in addition to the movie title. For example:
"A computer hacker learns from mysterious rebels about the true nature of his reality and his role in the war against its controllers."
tells us much more about the movie, than 'The Matrix'.
Alternatively, you could also take one of the below paths to enrich your analysis:
- Better statistical analysis: handling extreme values / outliers, using other metrics.
- Text mining: grouping similar words and topics together ('happy', 'happiness', 'happily', etc.)
- Granlular analysis: running the same function for different years / decades, or for certain production studios.
You might be interested in exploring the data yourself as well as other data:
- Boxoffice data
- Gutenberg top 1,000 downloaded books, which invites you to ask questions such as:
- Which words are the most used in book titles?
- Which words are the most associated with book downloads?
- iPhone search keywords (obtained through SERPs)
- What do people search for together with 'iphone'?
- What has the most weighted frequency?
Ok, so now yo have explored the counts of words in movie titles, and seen the difference between the absolute and weighted frequencies, and how letting one out might miss a big part of the picture. You have also seen the limitations of this approach, and have some suggestions on how to improve your analysis.
You went through the process of creating a special function that you can run easily to analyze any similar text data set with numbers, and know how this can improve your understanding of this kind of data set.
Try it out by analyzing your tweets' performance, your website's URLs, your Facebook posts, or any other similar data set you might come across.
It might be easier to just clone the repository with the code and try for yourself.
The
word_frequency function is part of the advertools package, which you can download and try using in your work / research.
Check it out and let me know! @eliasdabbas | https://www.datacamp.com/community/tutorials/absolute-weighted-word-frequency | CC-MAIN-2022-05 | refinedweb | 3,006 | 61.77 |
Hello, On vdr 1.7.17 I have problem with xineliboutput and subtitles. It's oversized and cropped. Problem is probably incompatibility to change OSD layer size on 1.7.17 Here is my hotfix. I am not sure, if it is correct because I don't know vdr/xineliboutput internals. But it siply works for me. Jiri PS: many thanks for nice piece of SW, specially thanks to Klaus. --- osd.c.old 2011-03-18 15:55:32.681879469 +0100 +++ osd.c 2011-03-18 16:02:54.111874506 +0100 @@ -393,10 +393,13 @@ #if VDRVERSNUM >= 10708 +#if VDRVERSNUM < 10717 if (xc.osd_spu_scaling && (m_Layer == OSD_LEVEL_SUBTITLES || m_Layer == OSD_LEVEL_TTXTSUBS)) { m_ExtentWidth = 720; m_ExtentHeight = 576; - } else { + } else +#endif + { double Aspect; int W, H; m_Device->GetOsdSize(W, H, Aspect); | http://www.linuxtv.org/pipermail/vdr/2011-March/024577.html | CC-MAIN-2015-40 | refinedweb | 125 | 63.66 |
Using four global variables
foundCount = 0
searchCount = 0
names = [ "Mary", "Liz", "Miles", "Bob", "Fred"]
numbers = [ 4, 17, 19]
def find(item):
....
def result():
....
Write code for the body of the two functions:
find()
1.takes a single parameter which it looks up in the global list of names, and if it's not found there, then it looks in the list of numbers.
2.always increments searchCount, whether the item was found or not
3.if it finds the item, it increments the foundCount and prints "Found in Names" or "Found in Numbers" as appropriate.
4.displays "Not found" if it can't find the item
results()
this has no parameters. It prints a summary of the search counts:
e.g. "Total Searches: 6, Found items: 4, Not found: 2"
Sample run
>>> find("mary")
Not found
>>> find("Mary")
Found in names
>>> find(0)
Not found
>>> find(19)
Found in numbers
>>> results()
***** Search Results *****
Total searches: 4
Total matches : 2
Total not found: 2
I dont know where to start with the find item function, any tips? | http://forums.devshed.com/python-programming/942928-help-global-variables-last-post.html | CC-MAIN-2017-04 | refinedweb | 176 | 76.05 |
Flex popup bugCRez79 Mar 31, 2010 11:55 AM
I seem to be having a issue with a large flex app. Regardless of browser,
In a view,
#Click combobox
+Combobox pops up
#Click outside of the browser
+Combobox closes
#Click combobox (same one as before)
+Combobox pops up
#Click outside of the browser
+Combobox does NOT close
In a small application (brand new project) this bug does not appear. But for some reason in a large application I've been help develop on, I get this bug.
Tia
Charles
1. Re: Flex popup bugCRez79 Mar 31, 2010 1:06 PM (in response to CRez79)
Ok, for additional testing I created 2 functions that handle 'closing' and 'focusOut'.
I click the popup, then click outside the browser, the 2 functions are called.
I return to the browser by clicking on the combobox again to have the popup occour, but the 2nd time I leave the browser my functions are not called. So it's almost as if some how the control is losing something here, it's not that it's uninitialized (i created a function for that) it's just almost like the events aren't being fired the 2nd time around.
2. Re: Flex popup bugCRez79 Apr 5, 2010 6:44 AM (in response to CRez79)
The issue becomes more evident when I create a sample project. I have 2 swf's that are modules. Both contain dropdown's. Normally if you click out side of drop box the box closes. But when you click in swf#1 then swf#2 the dropdown#1 does not close. But if you click within swf#1's window area it does close. Is there a way I can make swf#1 listen to the events from swf#2?
Chuck
3. Re: Flex popup bugFlex harUI
Apr 5, 2010 8:38 AM (in response to CRez79)
File a bug or post your simple test case.
4. Re: Flex popup bugCRez79 Apr 5, 2010 10:03 AM (in response to Flex harUI)
I have a project that I would like to zip then post. But I can only attach images and movies? Is there any quick place I can upload my project to or am I able to attach my project somehow to this thread?
In the mean time, I have used free service to share this test project. Let me know if there is any issues with downloading this zip. It's a complete test-case project.
5. Re: Flex popup bugFlex harUI
Apr 5, 2010 11:46 AM (in response to CRez79)
I don't want to see a project with images. Please make a simplified test
case in about 20 lines and copy/paste that to this thread.
6. Re: Flex popup bugCRez79 Apr 6, 2010 9:08 AM (in response to Flex harUI)
Thanks for the reply. Ok, I will do my best
--App1.mxml-----------------------
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
private var col:ArrayCollection = new ArrayCollection(['value','value2','value3']);
private function mouseOut():void
{
trace("mouseout");
}
]]>
</mx:Script>
<mx:ComboBox
</mx:Application>
--App1.mxml-----------------------
--App2.mxml-----------------------
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
private var col:ArrayCollection = new ArrayCollection(['data1','data2','data3']);
]]>
</mx:Script>
<mx:HBox>
<mx:ComboBox
<mx:ComboBox
<mx:ComboBox
</mx:HBox>
</mx:Application>--App2.mxml-----------------------I'm sorry it's more then 20 lines but I'm not sure what else to cut. I'm not including the 'housing' of these two swf's that basicly present them side by side like it's one, but it's actually 2.
7. Re: Flex popup bugFlex harUI
Apr 8, 2010 10:03 PM (in response to CRez79)
I am unable to reproduce the problem. I can show the dropdown and click
anywhere, even outside the browser and the dropdown will go away.
Which version of Flex are you using? Try 4.0 if you haven't. | https://forums.adobe.com/thread/608388 | CC-MAIN-2018-30 | refinedweb | 672 | 72.56 |
N' from the experience so far its been a profound improvement in testing our WPF application.
These are the improvements that have helped so far:
- The Improved upgrading experience without conversions. This will smooth out the test script management and version control A LOT.
- Improved overall test performance by up to 30%.. AT LEAST. UI Object identification had to improve for this to be accomplished and we've noticed.
- Fixed a bug where WPF controls without a namespace would not be available in the WpfImproved element tree. No doubt this was an issue for us in certain places.
- Fixed a UI bug with the Key data property for the Key shortcut action
- Fixed a bug where dependent files would be renamed incorrectly if the name of the parent file was changed
- Fixed a bug where renaming project items with dependent files would create additional links in the project file if the dependent file was not changed
- Plus we picked up a solid handful of updates to XPath processing that are making certain jobs MUCH EASIER.
Modal dialogs that could only be addressed through key commands are now addressable and have been completely mapped.
Still have yet to explore the Improved and extended image-based testing functionality.. but have plenty of reason to loop back around on that issue. Just wanted to say thanks for this release. Big changes for us.
Much appreciated! | https://www.ranorex.com/forum/ranorex-v9-2-and-wpf-t15105.html | CC-MAIN-2020-05 | refinedweb | 232 | 61.97 |
Please help me to understand how to implement the following scenario: my device based on CYW20706 is BLE peripheral that is able to accept pairing from multiple clients and maintain bonding info over power cycles.
According to WBT101-04B-BLE-Ntfy-Sec.pdf document, if bonding info for the remote device being connecting exists, it shall be loaded upon receiving BTM_PAIRED_DEVICE_LINK_KEYS_REQUEST_EVT. Now comes the question: the proposed solution is to find the proper bonding info in NV database, based on the MAC address of the remote. However, if the address is random, the one from the database and the one coming with the BTM_PAIRED_DEVICE_LINK_KEYS_REQUEST_EVT don't match. I checked the data provided in the wiced_bt_device_link_keys_t structure delivered with BTM_PAIRED_DEVICE_LINK_KEYS_REQUEST_EVT, and there only 'bd_addr' (the random one) and 'key_data.le_keys_available_mask' are set. So, there's no chance to find out whether the data from NV database belongs to the remote device being connecting.
However, if we use only one device, it works pretty well: when BTM_PAIRED_DEVICE_LINK_KEYS_REQUEST_EVT is received we load bonding data without checking MAC address, and it gets accepted.
I did find some tickets that discuss similar issues, for example, this one, but they describe scenario with one remote device only.
For my tests I'm using latest version of ModusToolbox 2.4.0 with Bluetooth SDK 3.1.0 on CYW920706WCDEVAL, with LE_Battery_Service sample application.Show Less
Hello,
I want to search BR/EDR devices which use limited inquiry access code.
It seems like that setting 'mode' paramter in wiced_bt_dev_inq_parms_t to BTM_LIMITED_INQUIRY when calling wiced_bt_start_inquiry function is releated to inqury access code but I cannot find how to set limited inquiry access code.
I'm using CYW20719B2 and BT SDK v3.1.0.
Thanks,
Eric JeonShow Less
Hello Cypress,
I have cyw20719b2 SDS Sleep configuration with TRASNPORT / NO_TRANSPORT mode. Device goes to SDS Sleep correctly. But after around 3 minutes in SDS Sleep device gets hard/cold reset, this issue is observed if BLE Advertising is turned off just before allowing SDS Sleep. If BLE Advertising is not turned off, then issue is not observed and device stays in SDS Sleep until there is a wake up triggered from gpio interrupt.
BLE advertising interval is set to infinite (set to 0).
I just want to confirm if it's possible to keep ble advertising off in SDS Sleep ? OR it is mandatory to keep ble advertising on when device is put in SDS Sleep ?
Thanks,
Aniket JesuShow Less
I'm trying to generate Bluetooth project for CYW920706WCDEVAL with ModusToolbox 2.4 and it fails for any project I select. The project's directory gets created and it is not empty, its content looks OK, but the project does not appear in Project Explorer in ModusToolbox IDE. Also "mtb_shared\wiced_btsdk" directory is empty.
Please find log for "LE Hello Sensor" project below.
Checking if remote manifest is accessible...
Getting manifests from remote server...
Processing super-manifest...
Successfully acquired the information.
Summary:
BSP: CYW920706WCDEVAL
Template Application(s): LE Hello Sensor
Application(s) Root Path: C:/Work/mtw
Press "Create" to create the selected application(s).
Collecting application data...
Info: The following entered on the command line will create the exact same project as that created with the GUI tool:
C:/Infineon/Tools/ModusToolbox/tools_2.4/project-creator/project-creator-cli.exe --board-id CYW920706WCDEVAL --board-uri --board-commit latest-v3.X --app-id mtb-example-btsdk-ble-hello-sensor --app-uri --app-commit latest-v3.X --cypress-tools C:/Infineon/Tools/ModusToolbox/tools_2.4 --target-dir C:/Work/mtw --user-app-name LE_Hello_Sensor --output-for-machine --use-modus-shell
==============================================================================
= Cloning 'mtb-example-btsdk-ble-hello-sensor' =
==============================================================================
Cloning into C:/Work/mtw directory...
env git clone --progress --origin cypress LE_Hello_Sensor
Cloning into 'LE_Hello_Sensor'...
remote: Enumerating objects: 63, done.
remote: Counting objects: 100% (63/63), done.
remote: Compressing objects: 100% (25/25), done.
remote: Total 63 (delta 30), reused 60 (delta 30), pack-reused 0
Receiving objects: 100% (63/63), 49.76 KiB | 4.98 MiB/s, done.
Resolving deltas: 100% (30/30), done.
Checking out latest-v3.X...
env git checkout --progress latest-v3.X
Note: switching to 'latest-v3.X'. 9a3cc26 Upload mtb-example-btsdk-ble-hello-sensor 3.1.0.17479
==============================================================================
= Creating "TARGET_CYW920706WCDEVAL.mtb" file(s) =
==============================================================================
C:/Work/mtw/LE_Hello_Sensor/deps/TARGET_CYW920706WCDEVAL.mtb was added
C:/Work/mtw/LE_Hello_Sensor/deps/TARGET_CYW920819EVB-02.mtb was removed
==============================================================================
= Updating Makefile for "LE_Hello_Sensor" =
==============================================================================
==============================================================================
= Applying the Latest Version Locking for "LE_Hello_Sensor" =
==============================================================================
C:/Work/mtw/LE_Hello_Sensor/deps/TARGET_CYW920706WCDEVAL.mtb was updated
==============================================================================
= Getting Dependencies for "LE_Hello_Sensor" =
==============================================================================
C:/Infineon/Tools/ModusToolbox/tools_2.4/modus-shell/bin/make.exe getlibs CY_TOOLS_PATHS=C:/Infineon/Tools/ModusToolbox/tools_2.4
==============================================================================
= Importing libraries =
==============================================================================
Git is git version 2.33.0, found at /usr/bin/git
Resolving dependencies...
Checking if remote manifest is accessible...
Getting manifests from remote server...
Processing super-manifest...
Successfully acquired the information.
C:/Work/mtw/LE_Hello_Sensor/libs/20706A2.mtb was added
C:/Work/mtw/LE_Hello_Sensor/libs/btsdk-common.mtb was added
C:/Work/mtw/LE_Hello_Sensor/libs/btsdk-include.mtb was added
C:/Work/mtw/LE_Hello_Sensor/libs/btsdk-tools.mtb was added
C:/Work/mtw/LE_Hello_Sensor/libs/btsdk-utils.mtb was added
C:/Work/mtw/LE_Hello_Sensor/libs/core-make.mtb was added
Dependencies resolved.
Searching application directory (.mtb)...
Found 10 .mtb file(s)
Processing file "C:/Work/mtw/LE_Hello_Sensor/deps/TARGET_CYW920706WCDEVAL.mtb"
fatal: loose object 4ce767e209cefd1bcbf785e0c2f2e5d4a6b184ee (stored in ./objects/4c/e767e209cefd1bcbf785e0c2f2e5d4a6b184ee) is corrupt
error: Could not fetch origin
ERROR: Unable to checkout "TARGET_CYW920706WCDEVAL". This is not a valid git repository.
==============================================================================
ERROR: --ABORTING--
: Script : C:/Infineon/Tools/ModusToolbox/tools_2.4/make/getlibs.bash
: Bash path : /usr/bin/bash
: Bash version: 4.4.12(3)-release
: Exit code : 1
: Call stack : trap_exit error perform_git process_mtb extract_data find_mtbs main
fatal: failed to copy file to '../mtb_shared/wiced_btsdk/dev-kit/bsp/TARGET_CYW920706WCDEVAL/release-v3.1.0/.git/objects/00/1ce47243711f9148cc2ae167ddd2f0c8ac9cc0': Permission denied
make: *** [C:/Infineon/Tools/ModusToolbox/tools_2.4/make/getlibs.mk:121: getlibs] Error 1
Project "LE_Hello_Sensor" failed to create.
"make getlibs" failed.
Failed to create and export "LE_Hello_Sensor" application.Show Less
Dear all,
I have a CYW920721B2 Evaluation Board and want to run the Audio_Headset_and_Speaker Example on ModusToolbox IDE,
The point is that i want to extend the MTU size of BLE connection to 247 (Default is 23 byte). I've read some answers on Cypress forum and they recommend to edit "gatt_cfg.max_mtu_size" and also call wiced_bt_gatt_configure_mtu() API when the BLE connection is established to reconfig the MTU size.
I changed gatt_cfg.max_mtu_size to 247 and call wiced_bt_gatt_configure_mtu(p_status->conn_id, 247) inside hci_control_le_connection_up() but it always return 0x80 (WICED_BT_GATT_NO_RESOURCES).
I really appreciate if any one could help me to config the MTU size correctly.
Hi,
in the WICED BT SDK v3.1 I see a call back defined for the SPP BT Tx being completed:
wiced_bt_spp_tx_complete_callback_t WICED CYW208XX: SPP Library API (infineon.github.io)
Call backs for BT up/down/failed/rxdata are configured in:
wiced_bt_spp_reg_t WICED CYW208XX: wiced_bt_spp_reg_t Struct Reference (infineon.github.io)
but I cannot see where the wiced_bt_spp_tx_complete_callback_t is configured.Show Less
I have been trying to figure out how to add a custom BSP as shared resource visible in the Library Manager and Project Creator.
I am able to successfully create the BSP inside a specific application, (Ref: KBA 231373) but have not found clear instructions to add the BSP as a TARGET in the shared location (..\mtb_shared\wiced_btsdk\dev-kit\bsp) and make it visible to the tools as mentioned above. Both KBA 231373 and the MTB User Manual refer to the 'Manifest' chapter of the User Manual, but I do not see clear instructions there.
Setup: ModusToolBox 2.3 using BTSDK with CYW20719B2 Chip.Show Less
Hello Cypress,
I have few observations on SDS Sleep handler not getting called if HCI UART CTS pin state is low in few cases:
- CASE 1: After a COLD Boot and after firmware has started to run, but before the Sleep Handler is called the first time, if I momentarily ground the CTS pin, then the Sleep handler will never be called, but the FW continues to run (i.e. the button Interrupt handler is still active.
- CASE 2: After COLD Boot and let the sleep handler be called at least once so that the board goes to SDS Sleep, wake the board with the Buttton press, ... after this it seems I can momentarily ground the CTS pin with no effect (The Sleep handler will be called eventually and the board will enter SDS Sleep).
HOWEVER, (CASE 3:) if I leave the CTS pin grounded for a longer period of time (through the time when the sleep handler should be called again), again I can see that the Sleep handler will NOT be called and the board will never go to SDS Sleep.
Do you have any details on how and why HCI UART CTS Pin state affects SDS Sleep handler not getting called ?
Thanks,
Aniket
Show LessShow Less
In a new EMPTY_BTSDK_App in ModusToolbox, I am trying to test out some OBEX functions.
I have included the header file:
#include "wiced_bt_obex.h"
Under " /* TODO your app init code */":
wiced_bt_obex_status_t obexstatusvariable;
obexstatusvariable = wiced_bt_obex_init();
However, when trying to build the project, I am getting an undefined reference to `wiced_bt_obex_init' error.
I know that the function was somehow found in the wiced_bt_obex.h file because by hovering over "wiced_bt_obex_init()", it shows this:
/**
* Function wiced_bt_obex_init
*
* Initialize the OBEX library
* This function must be called before accessing any other of OBEX APIs
*
* @return @link wiced_bt_obex_status_e wiced_bt_obex_status_t @endlink
*
*/
wiced_bt_obex_status_t wiced_bt_obex_init(void);
Questions:
1) Why am I getting the undefined reference error? Any files I am suppose to manually include?
2) I can see that the "wiced_bt_obex.h" is under the mtb_shared directory in ModusToolbox, however where is the "wiced_bt_obex.c" source file for the function implementations?
Employee
Contributor
Contributor II
Contributor II
Employee
Employee
Honored Contributor II
New Contributor
New Contributor II
New Contributor II | https://community.infineon.com/t5/Bluetooth-SDK/bd-p/ModusToolboxBluetoothSDK/page/4 | CC-MAIN-2021-49 | refinedweb | 1,640 | 50.33 |
About Flask
Flask is a Python based web application development framework that is specially designed to be minimal to get you started. This helps in rapid prototyping, fast development and quick deployment. Any advanced features that you need to add to your web application can be added through extensions. The official site of Flask describes itself as a “micro” framework since it leaves all major decisions to users themselves and decides little on behalf of them. Users can choose their own template engines, database management libraries, form validation tools and so on, though Flask does come with some sane defaults.
Installing Flask in Linux
If you are using Ubuntu, you can install Flask by executing the command mentioned below:
You can avoid using repository version and install latest version of Flask from “pip” package manager by running following two commands in succession:
$ pip3 install flask
If you are using any other Linux distribution, search for “Flask” packages in the package manager or install it from the “pip” package installation tool. Further detailed instructions are available here.
Once the installation has finished, you can check Flask version by using the command specified below:
The Client-Server Model
As stated earlier, Flask is used to develop web applications. Typically, all web application development frameworks in Python and other programming languages use client-server architecture. Flask also uses a client-server model where users can write server side logic to create web applications or websites. The “client” here refers to a web browser or any other app that allows rendering of web pages using HTML, JavaScript and CSS technologies. While the “server” refers to a local or remote server where your Flask app written in Python language is executed.
When you run a Flask app locally on your PC, a local server is automatically created to serve the web application. Flask will output a localhost URL in your terminal. You can visit this URL in any web browser to view the end result. You can also set up a remote server to facilitate communication between a client and server and launch your own public website or web application.
You can create client-side HTML, JavaScript and CSS code needed for your web application by using server side code written in Flask and Python. But once the web application is deployed and you run it in a web browser, your web application won’t see or understand Python code. It will process HTML, JavaScript and CSS only as only these technologies are mainly supported by web browsers. You will still be able to communicate with the server from the client side using HTTP requests. You can very much pass data from client to server, process it using some server side logic and return the result.
So depending on the kind of web application you are developing, you may have to decide where to implement logic: on server side or client side on case by case basis.
Simple Hello World Application in Flask
You can use the code sample below to create a simplistic “Hello World” application in Flask to get started:
app = Flask(__name__)
@app.route('/')
def hello_world_app():
message = "Hello World!!"
return message
The first statement in the above code sample imports the “Flask” class from the “flask” module. Once imported, you will be able to use all methods available in the “Flask” class.
In the next statement, a new instance of “Flask” class is created and the name of the file is supplied to it as an argument. If you are just using a single “.py” file without an additional “__init__.py” file typically used while creating a file structure for a Python package, the name will have a hardcoded value of “__main__”. The “__name__” argument tells Flask where to look for files related to the current flask application being executed. You can also supply your own custom path to your main Flask file instead of supplying a “__name__” argument. But typically, most developers use “__name__” only and this seems to be standard practice.
Next, a “decoration” “app.route” is attached to the “hello_world_app” function. Decorating functions extend or modify the function they are attached to, without actually changing them. Here, “app.route” decorator is used to specify the URL path where the attached function will run. The “/” symbol tells Flask to execute a function on “/” URL, which stands for “root” domain or “root” URL. For instance, if the URL for your app is “app.com”, the function will be triggered for “app.com” URL. You can change it to something else as well. For instance, by using a decorator “@app.route(‘/helloworld’)”, you can map the function to “app.com/helloworld” URL.
Finally the function “hello_world_app” is used to return the content you want to display in a web browser when your web app is running.
Running a Flask App
To run a Flask app in Linux, you need to run a command in the following format:
$ flask run
Change “main.py” name as needed to match it with your own .”py” file where you have written your Flask code. The second command runs your Flask app. You can also run this alternate command as well:
After running these commands, you should see some output like this:
Just open the URL mentioned in the terminal in a web browser to see your application in action.
You can run Flask app in debug mode by using “FLASK_ENV” environment variable in the following format:
Using Jinja2 Template Engine
Flask uses “Jinja2” to template engine to facilitate writing of HTML code in Python. You can use it to set a markup for “Hello World!!” message.
Create a new directory called “templates” where your main Flask script is located. Inside the “template” directory, create a new file named “hw_template.html”. Open the “hw_template.html” file and put the following code in it:
This code is written in a syntax that “Jinja2” understands. You can refer to “Jinja2” documentation available here. The template markup checks if a variable named “color” has been passed to it or not. If yes, then it changes the color of the “Hello World!!” message using the value from the “color” variable passed to it.
To pass a variable to “Jinja2” template, you have to write code in following format:
def hello_world_app():
return render_template('hw_template.html', color="red")
The “render_template” method is used to render markup from a “Jinja2” template file. You can supply it the name of the template you want to render and any arguments you want to pass on to the template. The “hw_template.html” template used above processes a “color” variable after the Flask code has passed it a “color” variable having a value of “red”. After running the code sample mentioned above, you should get the following result:
You can also pass on variable values from a URL itself. Have a look at the code sample below:
@app.route('/<color>')
def hello_world_app(color="blue"):
return render_template('hw_template.html', color=color)
Two URL paths or routes are attached to the “hello_world_app” function. When you visit the root domain (example “app.com”), you will see the “Hello World!!” message in blue color as the default value for “color” variable is defined as “blue” and this is the value you are passing to “Jinja2” template as well.
The second path defined by “@app.route(‘/<color>’)” uses a special syntax. Within “<>” symbols, you can define any variables to pass on to the “hello_world_app” function. The default value for this variable is defined as an argument for the “hello_word_app” function. You then pass your own custom variable as an argument to the “render_template” method and set its value to the variable you defined while decorating the function with a new custom route.
For instance, “Hello World !!” message will change to color red when you visit “app.com/red” URL but it will remain blue when you visit “app.com” URL. Here is a side-by-side comparison:
Conclusion
Flask is a powerful web application development framework that can be used to create both simple and advanced applications. This tutorial mainly explains creating a simple “Hello World!!” app. You can connect it to a database and use extensions to further extend its functionality. Refer to Flask documentation to know more about managing databases and extensions. | https://linuxhint.com/hello-world-app-flask/ | CC-MAIN-2021-21 | refinedweb | 1,381 | 63.29 |
Hey peeps, i am just another lost programmer here looking for some good old fashion help, pertaining to a histogram program.
If there is anyone out there that can follow me as to what i will me explaining i would like it if u'd step in make
a suggestion or plainly help me solve this problem. Are u ready kids....GRRRRRRRREAT!!!!
I want to be able to use the getData algorithm to read the file and store the data in an array, (still with me....GOOD).
Then be able to use the printData algorithm to print the data in the array(asleep yet...GREAT). Thirdly, using the
makeFrequency algorithm to examine the data in the array, one element at a time, then add 1 to the corresponding element ina
frequency array based on the data value (ya'll still there right?...FABULOUS).
Finally,use makeHistogram algorithm to print out a vertical histogram using asterisks for each occurrence of an element.
Uh like...for eg. if there were like five value 1s and eight value 2s in the data, it would print out:
1: *****
2: ********
P.S. This is an example of the program but i am somehow going at it wrong because of the books i am using. So if any one can
help me please, and tell me what i need to do to better it, i would really appreciate it. Thanx a million.:-)
#include <iostream> #include <ctime> using namespace std; void display( int[], int ); int main() { const int arraysize = 10; srand( time( 0 ) ); int val, array[ arraysize ] = { 0 }; // initialize the ten element "array" to zero for( int i = 0; i <= 500; i++) { val = 0 + rand() % 99; array[ val / 10 ] = val; } display( array, arraysize ); }//end main void display( int a[], int arraysize ) { int minimum = 0,maximum = 9; // Declare and initialize maximum and minimum of the first range for( int i = 0; i < arraysize; i++ ) { cout << minimum << "-" << maximum << " " << a[ i ]; //output range for( int j = 0; j < a[ i ]; j++ ) cout << "*"; //output frequency cout << endl << endl; minimum = minimum + 10; // Increment minimum by 10 maximum = maximum + 10; // Increment maximuim by 10 } system("PAUSE"); return; } | https://www.daniweb.com/programming/software-development/threads/89285/suggests-and-solution-to-histogram-program-problem-please | CC-MAIN-2019-09 | refinedweb | 354 | 51.01 |
You can find the nth occurrence of a substring in a string by splitting at the substring with max n+1 splits. If the resulting list has a size greater than n+1, it means that the substring occurs more than n times. Its index can be found by a simple formula, length of the original string - length of last splitted part - length of the substring.
def findnth(string, substring, n): parts = string.split(substring, n + 1) if len(parts) <= n + 1: return -1 return len(string) - len(parts[-1]) - len(substring) findnth('foobarfobar akfjfoobar afskjdf foobar', 'foobar', 2)
This would give the output:
31
The n in this starts from 0. It is quite trivial to change that. | https://www.tutorialspoint.com/How-to-find-the-nth-occurrence-of-substring-in-a-string-in-Python | CC-MAIN-2022-21 | refinedweb | 119 | 70.13 |
ui.Switch and Scene
Hi All,
Would love some help on this one! I've got the bare bones of a game I'm building here but I've hit a stumbling block.
What I have is a ui.View with a ui.Switch attached at the top to control flicking between two scenes embedded scenes ("MyScene" and "MyScene2"). I can get the switch to flick between the two scenes but what I can't do is get the "clear_game" function to run within each Scene. Essentially what I want is either; A) ability to run the "clear_game" function from within each scene when the ui.Switch value changes or, B) ability to completely restart each scene when the ui.Switch value is changed.
Code is below. I'm not sure if this is troublesome because I'm trying to call a function within a Scene from a different module i.e. ui.Switch? Or am I just having a 'mare, so to speak?
from scene import * from ui import * import canvas X,Y = ui.get_screen_size() W,H = (X-40)/3,(X-40)/3 Left = 20 Mid = int(Left+W) Right = int(Mid+W) Base = 150 Centre = int(Base+H) Top = int(Centre+H) Locations = [(Left,Top),(Mid,Top),(Right,Top),(Left,Centre),(Mid,Centre),(Right,Centre),(Left,Base),(Mid,Base),(Right,Base)] def Switch_Flicked(self): if switch.value==True: V.remove_subview(SV) V.add_subview(SV2) MyScene2.clear_game else: V.remove_subview(SV2) V.add_subview(SV) MyScene.clear_game class MyView(ui.View): def __init__(self, *args, **kwargs): ui.View.__init__(self, *args, **kwargs) class Squares(ShapeNode): def __init__(self, *args, **kwargs): ShapeNode.__init__(self, path=ui.Path.rect(0,0,W,H), stroke_color='#000000', anchor_point=(0,0), fill_color='#ffffff', **kwargs) class MyScene(Scene): def setup(self): self.background_color = '#4dc870' = '#065fa2' def clear_game(self): for shape in self.shape_list: shape.color = '#ffffff' class MyScene2(Scene): def setup(self): self.background_color = '#c84d93' = '#e5cc35' def clear_game(self): for shape in self.shape_list: shape.color = '#ffffff' switch = ui.Switch(action=Switch_Flicked, x=0, y=0) V = MyView(background_color='#ffffff') V.add_subview(switch) SV = SceneView(frame=(0,50,X,Y-100)) SV2 = SceneView(frame=(0,50,X,Y-100)) SV.scene = MyScene() SV2.scene = MyScene2() V.add_subview(SV) V.present()
In Switch_Flicked() you are missing parens after MyScene2.clear_game. If you make that MyScene2.clear_game() (add the parens to make the call) what happens?
I would rewrite as:
def Switch_Flicked(): old, new = SV, SV2 if switch.value else SV2, SV V.remove_subview(old) V.add_subview(new) MyScene2.clear_game()
Ah yes, I was missing the parentheses as I was playing around with it a bit. After correcting to MyScene2.clear_game() I get the error:
TypeError: clear_game() missing 1 required positional argument: 'self'
And when I run clear_game(self) I get the error:
ui.Switch object has no attribute "shape_list"
Obviously I was to be calling the shape_list attribute from the MyScene/MyScene2 object but am having trouble doing so.
Remove self from Switch_Flicked(). That is a pure function and is not a method of any class.
You are also calling clear_game as a method of the class and not the instance. Change e.g.
MyScene2.clear_game()to
SV2.scene.clear_game().
In general, reserve uppercase for classes only, to avoid confusion.
And while we are at it, I would recommend having just one MyScene class, as they look functionally identical. Pass the varying bits like colors as arguments to
__init__and store them in
selffor use in other functions.
If differing functionality is needed in the future, consider subclassing to add the diverging methods. | https://forum.omz-software.com/topic/4462/ui-switch-and-scene/6 | CC-MAIN-2019-18 | refinedweb | 595 | 69.07 |
A Deeper Look: Java Thread Example
The concept of thread is intriguing as we dive deeper from different perspective of its construct apart from the gross idea of multitasking. The Java API is rich and provides many features to deal with multitasking with threads. It is a vast and complex topic. This article is an attempt to engross the reader in some concepts that would aid in better understanding Java threads, eventually leading to better programming.
A Process
A program in execution is called a process. It is an activity that contains a unique identifier called the Process ID, a set of instructions, a program counter—also called instruction pointer—handles to resources, address space, and many other things. A program counter keeps track of the current instruction in execution and automatically advances to the next instruction at the end of current instruction execution.
Multitasking
Multitasking is the ability of execute more than one task/process at a single instance of time. It definitely helps to have multiple CPUs to execute multiple tasks all at once. But, in a single CPU environment, multitasking is achieved with the help of context switching. Context switching is the technique where CPU time is shared across all running processes and processor allocation is switched in a time bound fashion. To schedule a process to allocate the CPU, a running process is interrupted to a halt and its state is saved. The process that has been waiting or saved earlier for its CPU turn is restored to gain its processing time from the CPU. This gives an illusion that the CPU is executing multiple tasks, while in fact a part of the instruction is executed from multiple processes in a round robin fashion. However, the fact is that true multiprocessing is never possible, even with multiple CPUs, not because of the machine limitation but because of our limitation to handle true multiple processing effects. Parallel execution of 2/200 instruction does not make a machine multiprocessor; rather, it extends or limits its capability to a cardinal precision. Exact multiprocessing is beyond humane scope and can be harnessed only by the essence of it.
Thread Overview
There is a problem with independent execution of multiple processes. Each of them carries a load of a non-sharable copy of resources. This can be easily shared across multiple running processes, yet they are not allowed to do so because processes usually do not share address spaces with another process. If they must, they can communicate only via some of the inter-process communication facilities such as sockets or pipes, and so forth. This poses several problems in process communication and resource sharing, apart from making the process what is commonly called heavy-weight.
Modern Operating Systems solved this problem by creating multiple units of execution within a process that can share and communicate across its execution unit. Each of these single units of execution is called a thread. Every process has at least one thread and can create multiple threads, only bounded by the operating system's limit of allowed shared resources, which usually is quite large. Unlike a process, a thread has only a couple of concerns: Program Counter and a Stack.
- Program Counter: A program counter leaps across instructions to keep track of the current execution routine.
- Stack: A stack stores values of the local variables.
A thread within a process shares all its resources, including the address space. A thread, however, can maintain a private memory area called Thread Local Storage, which is not shared even with threads originating from the same process. The illusion of multi-threading is established with the help of context switching. Unlike context switching with the processes, context switch between threads is less expensive because thread communication and resource sharing is easier. Programs can be split into multiple threads and executed concurrently. A modern machine with a multi-core CPU further can leverage the performance with threads that may be scheduled on a different processor to improve overall performance of program execution.
Threads in Java
A thread is associated with two types of memory: main memory and working memory. Working memory is very personal to a thread and is non-sharable; main memory, on the other hand, is shared with other threads. It is through this main memory that the threads actually communicate. However, every thread also has its own stack to store local variables, like the pocket where you keep quick money to meet your immediate expenses.
Because each thread has its own working memory that includes processor cache and register values, it is up to the Java Memory Model (JMM) to maintain the accuracy of the shared values across multiple threads that may be accessed by two or more competing threads. In multi-threading, one update operation to a shared variable in the memory area can leave it in an inconsistent state unless coordinated in such a way that some other thread must get an accurate value even in some random read/write operation on the shared variable. JMM ensures reliability with various housekeeping tasks, some of them are as follows:
Atomicity
Atomicity guarantees that a read and write operation on any field is executed indivisibly. Now, what does that mean? According to the Java Language Specification (JLS), int, char, byte, float, short, and boolean operations are atomic but double; long operations are not atomic. Here's an example:
long longVar=12345678L; // not atomic
Because it is internal, it involves two separate operations: one that writes first 32 bits and the second writes last the 32 bits, to assign a 64 bit value. Now, what if we are running a 64 bit Java? The Java Language Specification (JLS) reference provides the following explanation:
"Some implementations may find it convenient to divide a single write action on a 64-bit long or double value into two write actions on adjacent 32-bit values. For efficiency's sake, this behaviour."
This specifically is a problem when multiple threads read or update a shared variable. One thread may update the first 32-bit value and before updating the last 32-bit, another thread may pick up the immediate value, resulting in an unreliable and inconsistent read operation. This is the problem dealing with instructions that are not atomic. However, there is a way out from long and double variables.
Declare it as volatile. Volatile variables are always written into and read from main memory. They are never cached. That is the reason it is as follows:
private volatile long longVar;
Or, synchronize getter/setter:
public synchronize void setLongVar(long val){ this.longVar=val; } public synchronize long getLongVar(){ return this.longVar; }
Or, use AtomicLong from java.util.concurrent.atomic package, as shown here:
private AtomicLong longVar;
Thread Synchronization
Synchronization between thread communications is another issue that can be quite messy unless handled carefully. Java, however, provides multiple ways to establish communication between threads. Synchronization is one of the most basic mechanisms among them. It uses monitors to ensure that shared variable access is mutually exclusive. Any competing thread must go through lock/unlock procedures to get an access. On entering a synchronized block, the values of all variables in the working memory are reloaded from the main memory and writes back as soon as it leaves the block. This ensures that, once the thread is done with the variable, it leaves it in the memory so that some other thread can access it soon after the first thread is done.
There are two types of threads synchronizations built into Java:
- Mutual exclusion: Mutual exclusion ensures that only one thread can access a critical point of code at a time.
- Conditional synchronization: In conditional synchronization, multiple threads work together in a resource sharing scenario.
A critical section in a code is designated with reference to an object's monitor. A thread must acquire the object's monitor before executing the critical section of code. To achieve this, a synchronized keyword can be used in two ways:
Either declare a method as a critical section. For example,
public class CriticalSectionDemo{ public synchronized void aCriticalMethod(){ // ...some code } }
Or, create a critical section block. For example,
public class CriticalSectionDemo{ public void aMethod(){ // ...some code synchronized(this){ // ...some code } // ...some code } }
JVM handles the responsibility of acquiring and releasing an object monitor's lock. The use of a synchronized keyword simply designates a block or method to be critical. Before entering the designated block, a thread first acquires the monitor lock of the object and releases it as soon as its job is done. There is no limit on how many times a thread can acquire an object monitor's lock, but must release it for another thread to acquire the same object's monitor lock.
Conclusion
This article tried to give a perspective of what Java thread means in one of its many aspects, yet a very rudimentary explanation omitting many details. Thread in Java programming construction is very deeply associated with Java Memory Model, especially, on how its implementation is handled by JVM behind the scene. Perhaps the most valuable literature to understand the idea is to go through the Java Language Specification and Java Virtual Machine Specification. They are available in both HTML and PDF format. Interested readers may go through them to get a more elaborate idea.
| http://www.developer.com/java/data/a-deeper-look-java-thread-example.html | CC-MAIN-2017-09 | refinedweb | 1,554 | 52.7 |
In this tutorial we will learn about exceptions, how to handle exceptions with try, catch and finally block, how to throw an exception, how to implement checked exception at compile time, how to implement unchecked exception at run time and how to create custom exception in java along with examples.
- To have in depth knowledge lets learn to handle exceptions in java through the steps given below :
- Handling Exceptions try, catch and finally blocks, How to throw exception : –
- Handling Exception : When error condition throws an exception object, if that exception object is not caught and handled properly then the interpreter will display an error message and will terminate the program. If we want the program to continue with the execution of the remaining code, then we should try to catch the exception object thrown by error condition and then display an appropriate message for taking corrective actions. This whole task is called as exception handling.
- Try Block : Java uses a keyword try to beginning a block of code that is expected to cause an error condition and throw an exception. The try block may have one or more statements that could generate an exception. If one statement generates an exception, the remaining statements in the block are skipped and executions bounce to the catch block that is located next to the try block. Every try block must be followed by at least one catch block, else compilation error will occur. If for some sort of reason the try block is not throwing any exception, then the catch block will be fully avoided and the program continues.
- Catch Block : The keyword catch is used for defining catch block. Catch block is added immediately after try block. It is used for catching the exception thrown by the try block. The catch block works like method definition. With a single parameter the catch statement is passed, which is reference to the exception object thrown by the try block. If the catch parameter matches with the type of exception object, then the exception is caught and statement in the catch block will be executed. Otherwise, the exception is not caught and the default exception handler will cause the execution to terminate.
Error handling code performs the following tasks: –
i. Hit the exception.
ii. Throw the exception.
iii. Catch the exception.
iv. Handle the exception.
Example : This example shows that how try catch block is used in java class.
public class ExceptionPro { public static void main(String[] args) {/*in try block write code which is cause an error condition and throw an exception*/ try {//for loop which check condition 5 to 0 For (int i=5; i>=0; i--) {//print on console System.out.println (16/i); } } Catch (Exception e)//catch exception which thrown by try {//print on console System.out.println ("Exception: "+e.getMessage ()); /*this method print a stack trace for this Throwable object on the error output stream*/ e.printStackTrace (); } System.out.println ("After for loop...");//print on console } }
Output
3 4 5 8 16 Exception: / by zero java.lang.ArithmeticException: / by zero at ExceptionPro.main (ExceptionPro.java:9) After for loop...
Example : This example shows that how finally block is used in java class.
public class Try { public static void main(String args[]) { int j=20; int k=10; /*in try block write code which is cause an error condition and throw an exception*/ try { int x=j/(k-k); //Exception here } //catch exception which thrown by try catch(ArithmeticException e) { System.out.println ("Exception Message: "+e.getMessage()); } /*finally block is executed at least once if exception occurs or not*/ finally { int y=j/k; System.out.println ("y = "+y); //print output } } }
Output :
Exception Message: / by zero y = 2
Example : This example shows that how to throw an exception in java class.
public class ExxeptionPro { public static void main(String args[]) { System.out.println (show());//print show() } public static int show() { try { throw new Exception();//here new exception thrown } catch(Exception e) { throw new Exception();//caught an exception } finally { return 16;//finally print value 16 } } }
Output :
16
Checked exceptions are nothing but the exceptions that are checked at compile time. In this case the program will give a compilation error, when a method is throwing a checked exception then it should declare the exception using throws keyword or it should handle the exception using try-catch block. Compile time exception is nothing but the exception at the time of compiling the java program exception is thrown by java virtual machine.
Unchecked exceptions are nothing but the exceptions that are not checked at compile time. In this case the program won’t give you a compilation error; if a program is throwing an unchecked exception and even if you didn’t declare or handle that exception. Most of the times these exceptions arise during the user-program interaction due to the wrong data implemented by user. All unchecked exceptions are sub classes of RuntimeException class.
Example : This example shows that how to throw an unchecked exception in java class.
class UncheckedExce { public static void main(String args[]) { int a=10; int b=0; /*here I'm dividing an integer with 0 it should throw ArithmeticException*/ int div=a/b;//exception throw here at run time. System.out.println (div); } }
Output :
Exception in thread "main" java.lang.ArithmeticException: / by zero at UncheckedExce.main (UncheckedExce.java:9)
In this above example you compile this code and it will compile successfully however when you will run it, it will throw ArithmeticException. That means here it is clearly shows that unchecked exceptions are checked at compile time.
Custom exceptions are nothing but the exceptions that are defined by the user and extended by exception class or RuntimeException class. You can use this custom exception by keyword throw.
Syntax :
throw new Throwabl’e subclass;
Example : This example shows that how to create custom exception in java class.
class MyException extends Exception//extends with Exception class { MyException (String msg) //define parameterized constructor { /*The MyException(String) constructor calls super(msg) to construct a throwable with the specified detail message.*/ super(msg); } } class TestMyExc { public static void main(String[] args) { int a=5, b=1000; //declare variable try //throw exception { float c=(float)a/(float)b; if(c<0.01) //check condition { throw new MyException("Number is tooooo small"); } } catch (MyException me) //object me contain error message is caught by catch block { System.out.println ("Caught My Exception"); System.out.println (me.getMessage ()); //display message } finally //finally will execute at least one time at last { System.out.println ("Hi this is Finally Block"); } } }
Output :
Caught My Exception Number is tooooo small Hi this is Finally Block
Here, we use user-defined subclass of Throwable class. Note that Exception is a subclass of Throwable and therefore MyException is a subclass of Throwable class. An object of a class that extends Throwable can be thrown and caught.
Thus, we have learned successfully about how to handle exceptions in java. | https://blog.eduonix.com/java-programming-2/learn-to-handle-exceptions-in-java/ | CC-MAIN-2021-17 | refinedweb | 1,156 | 53.61 |
Hello everyone, im glad i have come across this forum, im sure its going to be a lot of help for me!
I have been reading through the forum here to try and find some help with a problem i am currently experiencing.
My problem is that i am trying to write a piece of code which asks for a string and then relates back to the user how many words are within that string.
My code so far:
// Prog to calculate the number of words in a sentence #include <iostream.h> #include <cstring.h> void main() { string s, space; int wordcount = 1; space = " "; cout<<"Enter a sentence: "; getline(cin,s); for (int i=0;i<s.length();i++) //Loop to test chars in string if ((s[i] == space) && (s[i+1] != space)) wordcount++; //If no double space occurs then increment wordcount cout<<"Number of words equals: "<<wordcount<<endl; }
This is working fine even if double spacing is occuring at the front or middle of any words. However, if i try to input a space at the end of the string, an error box pops up saying "Program Aborted" obviously due to this end character being a spcae but no character after it to check if its a space.
I am using Borland v 5.02 because that is the version that is currently at my college.
I have checked through the forum and have come up with EatTrailingWhitespace which sounds as though it would help me here. Ive looked for it in the Help index and cannot find it. Is this because my program is a lot older and doesnt have this facility?
I have also thought of trying to look at the end char and if it is a space then to delete it from the string. Would this be the easiest way of getting around it? I have also looked at the Trim commands but cannot seem to get them to work.
Any help in pointing me in the right direction would be mostly appreciated. :D
>#include <iostream.h>
If you can use the string class then you can stop using these old headers.
>#include <cstring.h>
Either you're using an old, nonstandard header, or this should give you a compiler error.
>void main()
No matter how old your compiler is, main always returns int. This has always been the case.
>for (int i=0;i<s.length();i++)
Because you check s[i+1], this should loop to s.length()-1 so that you do not overrun the string's memory boundaries.
>if ((s == space) && (s[i+1] != space))
space is a string, yet s is a char. It would be better to make space a char. Something like this:
#include <iostream> #include <string> using namespace std; int main() { string s; int wordcount = 1; char space = ' '; cout<<"Enter a sentence: "; getline(cin,s); for (int i=0;i<s.length()-1;i++) //Loop to test chars in string if ((s[i] == space) && (s[i+1] != space)) wordcount++; //If no double space occurs then increment wordcount cout<<"Number of words equals: "<<wordcount<<endl; }
You also have issues with short strings and empty strings or strings with nothing but spaces. Perhaps a new algorithm is in order.
Thanks Narue! Cant change the libraries for some reason but by changing to char and slipping that -1 in there it works perfectly, many thanks!
Now that it think about it, it makes a lot of sense too.
Thanks again! | http://www.daniweb.com/software-development/cpp/threads/13048/ideas-needed-for-problem-with-trailing-whitespaces | CC-MAIN-2014-15 | refinedweb | 580 | 81.33 |
#82294 is related, but not exactly the same problem (that bug talks about syslog, I’m talking about just stdout/stderr).
I wrote a very simple little C program:
#include <stdio.h>
#include <unistd.h>
int main() {
while (1) {
printf("Still alive (journald bug test).\n");
fflush(stdout);
sleep(60);
}
}
When running this C program with this unit file:
[Unit]
Description=stillalive
[Service]
User=nnweb
ExecStart=/home/secure/stillalive
[Install]
WantedBy=multi-user.target
…I get one log message every minute into the journal.
However, after issuing “systemctl restart systemd-journald.service”, I no longer get these log messages. In fact, my program receives -EPIPE when write()ing:
$ strace -f -p 13573 -s 2048
Process 13573 attached
restart_syscall(<... resuming interrupted call ...>) = 0
write(1, "Still alive (journald bug test).\n", 33) = -1 EPIPE (Broken pipe)
--- SIGPIPE {si_signo=SIGPIPE, si_code=SI_USER, si_pid=13573, si_uid=1028} ---
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
nanosleep({60, 0}, 0x7fffe2dac3f0) = 0
write(1, "Still alive (journald bug test).\n", 33) = -1 EPIPE (Broken pipe)
--- SIGPIPE {si_signo=SIGPIPE, si_code=SI_USER, si_pid=13573, si_uid=1028} ---
…
Given that this is the default setting, I’m wondering if I’m doing anything wrong, or whether there perhaps is a problem with the distribution packaging (using systemd 215 on Debian)? Is systemd-journald.service not supposed to be restarted ever? (How) are programs supposed to handle SIGPIPE?
Thanks for clarifying.
It's a known problem. When systemd-journald is restarted, the sockets are closed. We have a similar problem with logind too.
(In reply to Zbigniew Jedrzejewski-Szmek from comment #1)
> It's a known problem. When systemd-journald is restarted, the sockets are
> closed. We have a similar problem with logind too.
Thanks for confirming. Is there a good workaround or shall I just resort to using Restart=on-failure and let the services die on SIGPIPE?
I don't think that there's a workaround, except to not restart systemd-journald. But current situation sucks, and putting workaround in many different units does not seem like a good option.
Please correct me if I'm spouting absolute nonsense, but I wonder if it would be possible to fix this in journald with something like the following on restart:
- journald: stop reading from the service output descriptors
- journald: start listening on a UNIX socket (lets call it the dump socket)
- journald: Spawn a secondary process which double forks
- aux: Connect to the dump socket, and start listening on a restore socket
- journald: pass the FDs over to the dump socket and possibly a serialized form of state, close the FDs, then exit
- new journald: Check for the existence of the dump socket. If it exists, grab back the state and the FDs, and signal the aux process to close
- new journald: Resume operating normally
Thinking a bit better, all the roundabout I proposed isn't even necessary, couldn't the journal serialize then re-exec on a special signal, like init does?
Hmm, Note that precisely for this reason IgnoreSIGPIPE is set to true by default. Is your service turning it on explictly?
*** Bug 82294 has been marked as a duplicate of this bug. ***
(In reply to Lennart Poettering from comment #6)
> Hmm, Note that precisely for this reason IgnoreSIGPIPE is set to true by
> default. Is your service turning it on explictly?
Some programming languages (Go in this case) install a default SIGPIPE handler, and I’m not inclined to change this in all of my programs, as it may have other side effects :).
I added some code in git that allows systemd-journald to keep the connections across restarts.
Which version of systemd contains the fix?
We are using systemd-219-19.el7_2.9.x86_64 and we still suffer from this problem.
Several people on Internet suggest the workaround to catch SIGPIPE and restart.
But, this isn't possible in all cases.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. | https://bugs.freedesktop.org/show_bug.cgi?format=multiple&id=84923 | CC-MAIN-2017-47 | refinedweb | 669 | 65.22 |
2
AR Quick Look
Written by Chris Language
The message from Apple is crystal clear: Augmented reality (AR) is here to stay, and it’s going to play a big part in the future of the iPhone. Ever since the release of ARKit 2.0 and iOS 12 at WWDC 2018, Apple has deeply integrated AR into the core of all its operating systems.
Even apps like iMessage, Mail, Notes, News, Safari and Files now have support for AR.
This is thanks to AR Quick Look, which is the simplest way to present AR content on mobile devices. In this chapter, you’ll learn about AR Quick Look. You’ll see how easy it is to integrate it into your own apps to give them some cool AR superpowers.
What is AR Quick Look?
You’re probably already familiar with Quick Look, which lets you quickly peek at images, PDFs and spreadsheets in apps like Mail and Safari. Quick Look is a framework that does the heavy lifting for you, giving your app superpowers that let it support a wide selection of universal file formats.
Here’s the best part: Quick Look now offers support for USDZ and Reality file formats via its AR Quick Look feature.
AR Quick Look lets you showcase a virtual 3D model of a physical product within your local space. The model appears grounded in your environment, giving you a good sense of how the physical product looks.
Imagine you want to buy a new sofa. A shopping app with this technology lets you check out how various sofas actually look in your living room.
AR Quick Look achieves a high degree of realism by mimicking realistic lighting conditions in your local environment. It combines this lighting with soft shadows and physically-based rendering (PBR) materials that shine and reflect the local environment, just like the real thing.
Using AR Quick Look is as simple as providing it with the path to your USDZ or Reality content and letting it do its magic. And there are lots of nifty things you can do with it, too.
AR Quick Look features
At face value, AR Quick Look seems simple enough. When you dig deeper, however, you’ll notice that it comes with a bucket-load of insanely cool features.
Here’s a look at what’s inside:
Anchors: Anchors allow you to anchor virtual content to various real-world surfaces. With the release of iOS 13, AR Quick Look supports horizontal surfaces like floors, ceilings, tables and chairs; vertical surfaces like walls; images including photos and posters; and faces and objects like toys and consumer products.
Occlusion: Occlusion allows the physical world to obscure virtual content based on its depth relative to the real world. AR Quick Look currently offers occlusion for people and faces. This feature works only on certain devices.
Physics, Forces and Collisions: Virtual content responds to the laws of physics. Objects can fall due to gravity and bounce and collide with one another.
Triggers and Behaviors: Users can reach into AR and interact with objects to trigger events, animations and sounds.
Realtime Shadows: Virtual content casts realistic-looking shadows onto real-world surfaces. The quality of the shadows depends on the device’s capabilities. Low-end devices project shadows, while high-end devices use ray-traced shadows.
High Dynamic Range, Tone Mapping and Color Correction: AR Quick Look samples the local environment in real time and uses the results to control the virtual content’s brightness, color and tone. This makes objects seem to blend naturally with their surroundings.
Camera Grain, Motion Blur and Depth of Field: Post-processing camera effects push the visual fidelity to the next level. Fast-moving objects blur, distant objects appear out of focus and adding a grain effect to crisp-looking virtual content makes it blend in with a typical grainy camera feed.
Multi-Sampling and Specular Anti-aliasing: AR Quick Look anti-aliases the virtual content’s edges to smooth out pixelation. It also anti-aliases specular reflections to prevent flickering.
Physically Based Rendering Clear Coat Materials: Apply super-realistic materials to virtual content so your objects look exactly like their real-life counterparts.
Ambient and Spatial Audio: Ambient sounds add another level of realism to virtual content. Objects produce spatially-accurate sound effects based on their location in physical space and their position relative to the camera.
Integration and Customization: You can easily integrate AR Quick Look into Web, iOS, macOS and tvOS apps.
Apple Pay: Apple Pay is fully integrated into AR Quick Look. Users can impulse buy your products without leaving the AR experience.
As you can see, AR Quick Look gives you the flexibility to make your products shine in AR. However, there are a few limitations to keep in mind while you work with it.
AR Quick Look limitations
Although AR Quick Look offers plenty of features, it’s important to note that the AR experience scales back some effects based on the capabilities of the user’s device. Only the latest and greatest high-end devices are capable of offering the full experience.
This might seem obvious, but it’s worth mentioning that AR Quick Look is only available in the Apple ecosystem. You can’t view AR Quick Look content on devices that run Android, Windows or any other non-Apple operating system.
AR Quick Look experiences are also somewhat limited due to the lack of any kind of scriptable or codable pipeline. More intelligent AR experiences require you to create apps for them.
Experiencing AR Quick Look
Apple offers a fantastic gallery of 3D models that you can use to explore AR Quick Look. If you’re running iOS 12 or newer on a device, you can try it for yourself.
Open the following link in Safari:
These models use the USDZ format, and thanks to AR Quick Look, Safari now has built-in support for that format.
Did you notice that tiny cube on each of the model images?
That’s Apple’s signature icon to indicate that the model is viewable in AR.
So, what are you waiting for? Pick an option and try it for yourself.
AR mode
When you pick a model, Safari launches AR Quick Look, which loads the referenced USDZ file from a URL and presents it to you.
It launches directly into AR mode to get the user into AR as quickly as possible.
Wait, what the duck! Is that Launchpad McQuack?
As soon as AR Quick Look detects the desired surface, it automatically places the 3D model on top of that surface. The experience is seamless and, with quality virtual content, you can easily believe you’re seeing the real thing.
There are a few things you can do while in AR mode:
Positioning: You can easily position the 3D model with a tap, hold and drag gesture to place the model wherever you want. AR Quick Look understands both horizontal and vertical surfaces. So if there’s a wall behind the model, you can simply drag the model onto the wall, and it’ll stick.
Scaling: Scale the 3D model larger or smaller with a pinch-in or -out gesture. Reset the scale to 100% by double-tapping the 3D model.
Rotating: Rotate the 3D model by placing two fingers on the screen and moving them in a circular motion. Again, a double-tap gesture will reset the rotation.
Levitating: Defy gravity and levitate the 3D model with a two-finger upwards-drag gesture.
Snapshots: Take cool pictures of your AR experience by quickly tapping the camera shutter button once. This will save a snapshot to your photos.
Videos: You can even make a video recording of your AR experience by holding down the camera shutter button for a short time. As soon as you let go, AR Quick Look will automatically save the video clip to your photos. Excellent!
Sharing: Select the share button at the top-right and you’ll get a list of apps that let you share the current model. How about AirDropping it to a nearby friend?
Once you’re done playing, you can close AR Quick Look with the X button at the top-left corner. You’ll return to the webpage, where you can explore some of the other cool 3D models.
Object mode
Switch into Object mode by selecting the Object tab in AR mode. Here, you can inspect the 3D model with the same basic gestures to manipulate it, like pinch to scale and swipe to rotate.
With Object mode, you’re able to see the object’s details without the distractions of the real world around it.
Once you’ve finished looking at the models, you’re ready to move on to learning how to add augmented reality to your websites.
AR Quick Look for web
As of iOS 12, Safari has built-in support for previewing USDZ and Reality files, thanks to AR Quick Look. In this section, you’ll learn how to integrate USDZ file support into your own websites.
Open the starter_web folder and double-click index.html. This launches Safari and loads the following web page:
This is an example web page with two USDZ models. When you inspect the files in the folder, you’ll observe three images along with three USDZ files.
Your next step is to go through the process of adding another USDZ model to your AR gallery.
Open index.html using a plain text editor.
Note: To edit HTML files, you need to use a plain text editor; TextEdit tends to render the file rather than give you access to the underlying HTML code. If you do not have a plain text editor, you can use Xcode to edit the file.
Add the following HTML markup to the bottom of the file, just above the
</body> tag:
<a href="pig.usdz" rel="ar"> </a>
This adds a standard
<a> tag, which creates references to URLs. Look at the provided attributes:
href: This is set to pig.usdz. It points to the USDZ file that you’re referencing, which is in the same location as index.html.
rel: This attribute specifies the relationship between the current document and the linked document. In this case, you’re setting the relationship to ar, indicating that the referenced document is an AR model.
Now, add the following line of code just before the previously-added
</a> tag:
<img src="pig.jpg" width="250" height="250">
Up to this point, the reference to the USDZ file was invisible on the webpage. This line of code adds an image to the reference, giving the user something to tap.
Finally, open .htaccess with a text editor and add the following line:
AddType model/vnd.usdz+zip .usdz
This adds the required MIME type so Safari knows what to do with the USDZ file type.
Note: To support Reality files, use the following MIME type:
AddType model/vnd.reality .reality
Save your changes and test. Once again, open index.html in Safari.
That’s it; you just added another USDZ file to your webpage. Fantastic!
Note: You can only experience AR Quick Look on an actual device running iOS 12 or newer. You also need to deploy your webpage to an actual web server to browse to it from your device. Setting up a local web server falls outside the scope of this book.
If you’re wondering how to add AR Quick View support to existing apps, you’ve come to the right place. You’re going to do that next.
AR Quick Look for apps
Your first step to add AR Quick Look to an app is to open the starter project from the starter folder. It’s a basic single-view app with a
UITableView and a custom cell that shows a small image and a name.
Do a quick build and run to test it.
When you select a row, nothing happens yet. All you’re doing at this point is storing the selected row index in a variable named
modelIndex. You’ll use this variable later.
Next, you’ll load the images using an array of strings named
modelNames, which links directly to the images stored in Assets.xcassets.
Import the USDZ files into the project by dragging and dropping the Models folder, found inside resources, into the project.
Make sure you’ve checked Add to targets, then click Finish to complete the process.
You’ll now see a new Models group inside the project; you can preview the USDZ files within Xcode.
Open ViewController.swift and add the following to the top of the file:
import QuickLook
This imports the QuickLook framework, which is required to implement the AR Quick Look functionality within your app.
Next, add the following protocols to
ViewController:
QLPreviewControllerDelegate, QLPreviewControllerDataSource
Here’s a closer look at these protocols:
QLPreviewControllerDelegate: This protocol lets the preview controller provide a zoom animation for the Quick Look preview. It also specifies if your app opens a URL and responds to the opening and closing of the preview.
QLPreviewControllerDataSource: This protocol lets the data source tell the
QLPreviewControllerhow many items to include in a preview item navigation list.
Implement the protocols by adding the following below
QLPreviewControllerDataSource:
``swift func numberOfPreviewItems(in controller: QLPreviewController) -> Int { return 1 }
When previewing AR content, you’re _always_ going to preview only one object at a time. So when the data source queries the number of preview items, you tell it that there’s only one item available for preview. Add the following function below the previously-added function: ```swift func previewController( _ controller: QLPreviewController, previewItemAt index: Int) -> QLPreviewItem { let url = Bundle.main.url( forResource: modelNames[modelIndex], withExtension: "usdz")! return url as QLPreviewItem }
So what’s going on in the code above? When the preview controller requests the
resourceURL, you construct the URL for the selected resource name at
modelIndex in the
modelNames array. You also specify the resource extension as usdz. Finally, the code passes the URL back to the controller as a
QLPreviewItem.
You’ve now implemented all the Quick Look protocols. The only thing left to do is present the preview.
Add the following lines of code to the bottom of
tableView(_:didSelectRowAt:):
// 1 let previewController = QLPreviewController() // 2 previewController.dataSource = self previewController.delegate = self // 3 present(previewController, animated: false)
Finally, you’re ready to present the AR Quick Look preview to the user. With this code:
- You create an instance of
QLPreviewController.
- Next, you nominate the
ViewControllerclass as
dataSourceand
delegatefor the preview controller.
- Finally, you present the preview controller to the user.
That’s it, you’re done! Your app can use AR Quick Look now. Build and run to test it.
Note: Make sure your device is running iOS 12 or newer, or you won’t be able to see it.
You’re about to witness Uncle Scrooge banking a coin!
Key points
Well done, you’ve reached the end of the first chapter.
Here’s what you learned:
Apple has deeply integrated AR into iOS, macOS and tvOS. Many commonly-used apps provide AR support with AR Quick Look.
AR Quick Look is feature rich and provides a premier augmented reality experience out of the box. Users instinctively know what to do.
AR Quick Look uses USDZ and Reality files.
You can use USDZ and Reality content on the web. Upload your file and create a stock-standard reference to it. Thanks to its built-in support, Safari’s smart enough to know it can view the content with AR Quick Look. It automatically gives the user that mind-blowing AR experience.
Need to add AR support to some of your existing apps? AR Quick Look has your back. Simply add your USDZ and Reality files to your existing project along with some sampled images. Then use
QLPreviewControllerto do the heavy lifting for you.
Where to go from here?
Here are a few links to expand your knowledge on this topic:
Quick Look Documentation:
Quick Look at WWDC 2019:
Now that you know all there is to know about AR Quick Look, you might wonder how you create your own USDZ and Reality files. Well, continue to the next chapter to find out! | https://www.raywenderlich.com/books/apple-augmented-reality-by-tutorials/v1.0.ea3/chapters/2-ar-quick-look | CC-MAIN-2021-04 | refinedweb | 2,712 | 64.2 |
How to get the last characters in a String in Java, regardless of String size
java substring last 4 characters
java string substring
replace last character in string java
find last character of a string
get last 3 characters of a string in java
get second last character in string java
apex get last character from string
I'm looking for a way to pull the last characters from a String, regardless of size. Lets take these strings into example:
"abcd: efg: 1006746" "bhddy: nshhf36: 1006754" "hfquv: nd: 5894254"
As you can see, completely random strings, but they have 7 numbers at the end. How would I be able to take those 7 numbers?
Edit:
I just realized that
String[] string = s.split(": "); would work great here, as long as I call string[2] for the numbers and string[1] for anything in the middle.
Lots of things you could do.
s.substring(s.lastIndexOf(':') + 1);
will get everything after the last colon.
s.substring(s.lastIndexOf(' ') + 1);
everything after the last space.
String numbers[] = s.split("[^0-9]+");
splits off all sequences of digits; the last element of the numbers array is probably what you want.
Get last 4 characters of String in Java, Learn how to get last 4 characters of a String or simply any number of last characters of a string in Java using string substring() method. Get the string and the index; Create an empty char array of size 1; Copy the element at specific index from String into the char[] using String.getChars() method. Get the specific character at the index 0 of the character array. Return the specific character. Below is the implementation of the above approach:
How about:
String numbers = text.substring(text.length() - 7);
That assumes that there are 7 characters at the end, of course. It will throw an exception if you pass it "12345". You could address that this way:
String numbers = text.substring(Math.max(0, text.length() - 7));
or
String numbers = text.length() <= 7 ? text : text.substring(text.length() - 7);
Note that this still isn't doing any validation that the resulting string contains numbers - and it will still throw an exception if
text is null.
Comparing Strings and Portions of Strings (The Java™ Tutorials , The Java Tutorials have been written for JDK 8. The String class has a number of methods for comparing strings and portions of strings. is a String object that represents the same sequence of characters as this object. Region is of length len and begins at the index toffset for this string and ooffset for the other string. Java String lastIndexOf() The java string lastIndexOf() method returns last index of the given character value or substring. If it is not found, it returns -1. The index counter starts from zero. There are 4 types of lastIndexOf method in java.
This question is the top Google result for "Java String Right".
Surprisingly, no-one has yet mentioned Apache Commons StringUtils.right():
String numbers = org.apache.commons.lang.StringUtils.right( text, 7 );
This also handles the case where
text is null, where many of the other answers would throw a NullPointerException.
Extract substring from end of a Java String – zParacha.com, Today I'll show you how to extract last few characters (a substring) from a string in Java. Here is the code to do this. public class SubStringEx{. /**. Method to get.
This code works for me perfectly:
String numbers = text.substring(Math.max(0, text.length() - 7));
wordwrap - Manual, wordwrap — Wraps a string to a given number of characters So if you have a word that is larger than the given width, it is broken apart. it calculates wrapping based on font and point-size, rather than character count. the wordwrap() output before using wordwrap, otherwise you will get line breaks inserted regardless The idea is to match the whole string from ^ to $, capture the last sequence of \w+ in a capturing group 1, and replace the whole sentence with it using $1. Demo. You can do that with StringUtils (from Apache Commons Lang). It avoids index-magic, so it's easier to understand.
You can achieve it using this single line code :
String numbers = text.substring(text.length() - 7, text.length());
But be sure to catch Exception if the input string length is less than 7.
You can replace 7 with any number say N, if you want to get last 'N' characters.
Strings and Drawing Text \ Processing.org, The full documentation can be found on java's String page. If we didn't have the String class, we'd probably have to write some code like this: see if two String objects contain the exact same sequence of characters, regardless textFont() takes one or two arguments, the font variable and the font size, which is optional. letter in string java, find character in string java, check character in string java, character in string java, character in a string java, find a character in string
Arrays and Strings, Let's say that you have an array: A[ 6 ] = {2, 5, 6, 4, 7, 9} and you have to find the sum of In spite of only 5 characters, the size of the string is 6, because the null I have a string: /abc/def/ghfj.doc I would like to extract ghfj.doc from this, i.e. the substring after the last /, or first / from right. Could someone please provide some help?
4. Pattern Matching with Regular Expressions, Pattern Matching with Regular Expressions Introduction Suppose you have been on the Internet for Consult Table 4-1 for a list of the regular expression characters. End of entire string (except allowable final line terminator) READ_ONLY , 0 , fc . size ()); // Decode ByteBuffer into CharBuffer CharBuffer cbuf = Charset . Java - String length() Method - This method returns the length of this string. The length is equal to the number of 16-bit Unicode characters in the string.
[PDF] Regular Expressions: The Complete Tutorial, your own regular expressions like you have never done anything else. regular expression package included with version 1.4 and later of the Java Similarly, «$» matches right after the last character in the string. longest match be returned, regardless if the regex engine is implemented using an NFA or DFA algorithm. Re: Last 5 characters from string (irrespective of the length) Posted 07-17-2014 (145045 views) | In reply to sas_lak Depends if NUMBER is a number or a character string.
- Both your question and several answers mention
String.split(), but it is worth noting that
s.split(": ")is going to compile a new
java.uitl.regex.Patternevery time you call it, then match your string with that pattern, creating a regex
Matcherand an
ArrayListbefore the
String[]that is returned. It will be relatively slow and will allocate far more than necessary to solve this problem. Whether this matters depends on the nature of your application. I generally avoid
split()unless I really need it. (Note that
split()does not use regex if you split on a single character.)
- One serendipitous aspect of the
lastIndexOfapproach is that if there aren't any spaces,
lastIndexOfwill return -1, so you'll end up with the whole string (
s.substring(0)).
- s.substring(s.lastIndexOf(':') + 1); I would like to use that, but how would I be able to get the letters after the first colon? Wouldn't it be s.indexOf(":", 1)?
- I wonder too. This way is much more safe than handling all possible problems.
- This is also the only answer that works if you want/need a single expression to safely convert something to a string and get up to the last
ncharacters. For example, you could do
StringUtils.right(Objects.toString(someObj), 7).
- It's better to check in advance whether the input length is 7 or longer, and then do the substring.
- Regex should be
[0-9]{7}$to make sure it matches the last 7 digits.
- @ Willi Schönborn: Agreed. The OP's case suggested that the other groups in the string would always contain letters. I was assuming that it was unnecessary to specify a boundary. | https://thetopsites.net/article/50152063.shtml | CC-MAIN-2021-25 | refinedweb | 1,354 | 73.27 |
In this section, you will learn how to delete a file.
Description of code
Java makes file manipulation easier by providing many useful tools. Through the use of these tools, you can easily perform file operations. Here we are going to delete a file. For this, we have created an object of File and call the method delete() through the object. This method delete the file from the given path name.
Here is the code:
import java.io.*; public class FileDelete { public static void main(String[] args) { File f = new File("C:/newfile.txt"); f.delete(); } }
Through the method delete(), you can delete the file from the given path name.
Advertisements
Posted on: Aug | http://www.roseindia.net/tutorial/java/core/files/filedelete.html | CC-MAIN-2016-36 | refinedweb | 114 | 85.89 |
(take 5 (brenton-ashworth))
Brenton Ashworth is relatively new to the Clojure community, but has already created four interesting (and useful) projects: deview, lein-difftest, sandbar and carte. I met Brenton at the previous Pragmatic Clojure Studio and we talked a little bit about what would eventually become carte. He’s an interesting guy with interesting ideas.
(take… is an on-going series of micro-interviews focused on Clojure.
What led you to Clojure?
I was looking for a language that was good for writing concurrent programs. The options were Erlang, Scala and Clojure; which I evaluated in that order. This order came about naturally from the order in which I could obtain books on each of these languages. It was mid 2008, “Programming Erlang” was already out, “Programming in Scala” came out in November of 2008 and then “Programming Clojure” in May 2009. After my initial evaluation, I liked all three languages (still do), but I was most impressed with Scala. Erlang seemed more like a specialized language for distributed, fault-tolerant programming but not necessarily a great general purpose language. Clojure was the most foreign and the one which I liked least. I wrote a couple of small programs in both Scala and Clojure for comparison. The Scala versions were easier to write and more readable.
At about this time, I started watching and re-watching some of Rich’s presentations on Clojure. I loved all of the ideas behind the language: functional programming, identity separated from value, persistent data structures, etc… I also knew from experience that OO is overused. I just didn’t like actually writing Clojure code. I suddenly realized that Clojure wasn’t the problem, I was. I didn’t like Clojure because the syntax was foreign and it was hard to think non-imperatively. So, I decided to force myself to use it until I liked it. If it wasn’t for those presentations by Rich,1 I would have never made that decision.
After a year of Clojure programming, it is much easier to read Clojure code than it is to read Java or C++. Consequently, I read a lot more code these days. part of the Clojure Studio did you find the most compelling?
Whenever I listen to Rich speak about Clojure, I am always impressed by how he uses ideas from science, philosophy or real world examples to justify or explain decisions he has made about the language. This is the one aspect that I like most about Clojure; the ideas in Clojure are more in sync with the real world than any other language I am aware of. It is easy for us as developers to let crazy ideas get into our software and these usually cause us problems. At one point in the Studio, when Rich was talking about maps being functions of their keys and keywords being functions of maps someone asked, “Why not make lists functions of their indexes?”. I remember thinking, “that’s interesting”. Rich’s response was, “Lists are not functions, as an idea.”. At another point when Rich was talking about how readers don’t block, someone suggested that it would be nice if you could see the current value of something. Rich’s response: “There is not such thing as the current value. The future just keeps coming.”. Rich’s commitment to ensuring that Clojure has a strong connection to reality is mind-blowing.
What aspect of Clojure did/do you find the most difficult to grasp?
It is hard to leave behind imperative thinking. I still find myself writing ugly code and then realizing that it is ugly because it is overly imperative. Once I realize this and re-write it using functional techniques, it is much smaller and all of the difficulties disappear. It is hard to get to the point where my first thought is the correct functional version.
This is one big advantage of Clojure over Scala. In Scala, imperative code doesn’t stand out2 as being out-of-place and ugly. Coming from Java, it would take much longer to learn functional programming in Scala than it does in Clojure.
Can you name three uses for an empty Altoids can?
- small pet coffin
- miniature Caribbean steel drum
- the perfect toy for a young child with a good imagination
What’s next for you and Clojure?
Recently, I have been working on Deview which currently provides a more dynamic view of running tests and displays better test results with diffs, when tests fail, as well as shorter stacktraces. This is just the beginning. Very soon it will run all tests automatically when files are modified, run only the tests that need to be run based on which files were modified and run tests in parallel. The theme here is to shorten the amount of time between when you break something and when you know exactly what the problem is. If this period of time is too large then you lose your train of thought. To finish out testing, I will add some kind of test coverage reporting.
Because Clojure code is just data, it will be relatively easy to turn this tool into something that can analyze that data and make suggestions for improvements. It will report things like functions without doc strings, suggestions for cleaning up namespace declarations, and occasions where another function might be better than the one you are using (e.g.
(not (= x)) ->
(not= x)).
For every one idea I implement, I get ten more; so, we will see how far I get.
I am also obsessed with the idea of graphical representations of Clojure data structures and therefore Clojure code. I may play around with the idea of creating images of Clojure at various levels of abstraction. It would be nice to a have function that creates an image of the namespace dependencies for a project or the flow of code from a specific function. This would become a part of Deview and also could be a great addition to automatically generated documentation.
Clojure videos to the rescue again. I would love to see similarly paced videos for Scala and Erlang. ↩
As someone who has spent a lot of time with Scala I will say that the language gives you the ability to be as imperative as you need — the onus is therefore on you to do good things. Except in the cases of heavy interop scenarios, I’ve not found much imperative Scala code in the wild. ↩
3 Comments, Comment or Ping
Sam Aaron
a wonderful way of expressing a change that’s been ravaging its way through my mind since putting down Ruby and picking up Clojure. This has really cleared my thoughts on this matter – thanks so much.
Aug 3rd, 2010
Phil
For the record, altoid tins are also great for storing Nintendo DS games.
Aug 3rd, 2010
Ramakrishnan
Altoid cans can also make good enclosure for homebrew QRP ham radio rigs!
Aug 3rd, 2010
Reply to “(take 5 (brenton-ashworth))” | http://blog.fogus.me/2010/08/03/take-5-brenton-ashworth/comment-page-1/ | CC-MAIN-2019-47 | refinedweb | 1,171 | 62.68 |
Download presentation
Presentation is loading. Please wait.
Published byBethany O’Connor’ Modified over 4 years ago
1
PowerPoint Slides to accompany Copyright © 2013 by Nelson Education Ltd.
2
PAYABLES Module Basics Premium 2012
3
Contents The PAYABLES Module 3 GAAP Related to Accounts Payable 4 The PAYABLES Module Window 5 The Vendor PAYABLES Ledger 6 Purchase Orders 10 Payment Method Options 11 How the PAYABLES Module Work 12 Purchase Journal 13 Purchase of Merchandise 13 Purchase of Non-Merchandise Items 14 Purchase of Services 15 Transaction Date for the Purchase 16 Vendor Payment 19 Paid By Options 19 Journalizing Invoice Payment 20 - Pre-Printed Cheques 21 Invoice Payment with Credit Card 22 Setting up Credit Card and Paying Credit Card Bill 23 Using Make Other Payment Option 24 Adjusting a Cheque 25 Journalizing Purchase Returns 26 Return of Merchandise Return of Non-Merchandise Items Contents Slideshow 3A
4
The PAYABLES Module There are three main types of transactions that affect a company’s ACCOUNTS PAYABLE account. They are: Click. One thing that is very important to understand before you proceed: There is a difference between goods for resale (merchandise) and goods not for resale (expenses). Goods such as office equipment, office supplies, furniture, etc., that are purchased for use in the day-to-day operation of the business are considered assets. Consumables such as office supplies are entered as prepaid assets at the time of purchase. When assets (e.g., equipment), depreciate in value or consumed (e.g., office supplies), the depreciation value or the value consumed is entered as expenses. Likewise, payment for services such as advertising, rent, freight, etc. are entered as expenses. Click to continue. Purchases on account (credit). Payment for purchases on account. Prepayment (advanced payment) paid to a vendor for a future purchase. Types of transactions that affect ACCOUNTS PAYABLE
5
GAAP related to Accounts Payable: Review Review the GAAP principles and concepts related to Accounts Payable that you have already learned: Click. Click to continue. Comparability (Consistency) Principle In the preparation of financial statements, the same accounting concepts are applied in the same way in each accounting period. Representational Faithfulness Principle The term objectivity refers to unbiased measurements or valuations (“arm’s length transactions”) that could be independently verified. Cost Principle Items are recorded at their acquisition cost (historical cost). Monetary Unit Concept All business transactions are recorded in a common unit of measurement – the Canadian dollar. Matching Principle Revenue from business activities and expenses associated with earning that revenue are recorded in the same accounting period.
6
The PAYABLES Module Window Below is the home PAYABLES window. Click the numbered items in numerical order for information on the basic parts. Click to continue. Clicking the drop- down arrow for PURCHASE QUOTES will enable you to do the following tasks: Clicking the drop- down arrow for VENDORS will enable you to do the following tasks: Clicking the drop- down arrow for PURCHASE INVOICES will enable you to do the following tasks: Clicking the drop- down arrow for PURCHASE ORDERS will enable you to do the following tasks: Clicking the drop- down arrow for PAYMENTS will enable you to do the following tasks: Notice that you are allowed to select various types of payment. It is because Simply treats each of them differently. A vendor list appears on this pane. If you double-click on any of them, the corresponding Vendor Ledger will appear (see below). The Report Centre gives you easy access to PAYABLES reports:
7
The Vendor Payables Ledger As in the RECEIVABLES module, you can set up a subledger for every vendor, referred to as Payables Ledger. The first page of the vendor subledger is Address. Study the information that you can enter on the page. Click the OPTIONS tab. The Options page, among other things, contains the default account for purchases from the particular vendor, as well as the discount terms. As soon as you select the particular vendor the relevant information appear. Note that Calculate Discounts before Tax is checked. This instructs Simply to calculate discounts on the price before taxes if the company pays within the early payment terms. Click the TAXES tab.
8
The PAYABLES Ledger (continued) As in the RECEIVABLES module, the TAXES page contains tax information for the vendor, which automatically appears on the Purchases Journal from which Simply base the calculation for taxes wherever they apply. HST rate of 13% is used in this text. Click the Direct Deposit tab. The direct deposit feature allows you to pay bills electronically from your bank account. If you also use Sage Simply Accounting to manage your payroll, you can deposit paycheques directly to your employees' bank accounts. Sage Simply Accounting also allows you to accept customer payments directly to your bank account. Click the STATISTICS tab.
9
The PAYABLES Ledger (continued) The Statistics page contains purchases and payments history for the particular vendor. It is automatically updated as you enter purchase and payment transactions with the vendor Click the MEMO tab. You can use the Memo page to keep information about the vendor and have the information show in the Daily Business Manager. Click the IMPORT/EXPORT tab. This page is similar to the Import/Export page in the Customers Ledger in the RECEIVABLES module. It refers to importing quotes and invoices from your vendors with your firm’s item numbers. Click the Additional Info tab.
10
PAYABLES Ledger (continued) When entering transactions such as purchases, sales or paycheques, you can store pieces of information in the various field boxes in the Additional page. For example, you might want to store a voucher date or number on a sale. You can then select the field that you wish to display. The information appears in the Journal Entry reports. Click to continue.
11
Purchase Orders In the PAYABLES module, like in the RECEIVABLES module, you can: enter a Purchase Quote; convert it into a Purchase Order (PO); then convert the PO into a purchase invoice. POs, like sales orders, are simply recorded, and do not generate journal entries. Click. Observe what information is copied from the PO to a purchase invoice. It is uncommon that a company would enter purchase quotes in the accounting system. They are usually filed for future reference. It is important, however, to enter purchase orders (POs) in the system, as it is good business practice to check outstanding POs to ensure that you have enough stock of inventory for sale. Click to see the Pending Orders reports that are available. Click to continue. Quantity ordered is carried over to the invoice but could be changed if necessary.
12
Payment Method Options When entering an invoice, you need to specify your manner of payment in the Payment Method box. There is a total of five options, but only three are available when One-time vendor is selected. Notice that all Paid By options are available when you select a vendor whose vendor subledger has been previously set up (vendor on file), Pay Later – select when you purchase on credit. Cash – select when cash is paid at the time of purchase (usually to a one-time vendor). Cheque - used when a company cheque is used for payment (usually payment for purchase on credit). Direct Deposit - The direct deposit feature allows you to pay bills electronically from your bank account. Visa Credit – this is a credit card company previously set up as credit card that your company uses. (You will learn how to set up a credit card company later). Click to continue. Payment Method Options – One-time Vendor Payment Method Options – Vendor with Subledger
13
How the PAYABLES Module Works When Pay Later is selected for Payment Method, ACCOUNTS PAYABLE is automatically credited and the account under the Account column on the invoice is debited. Click. When Cash, Cheque, or Direct Deposit is selected for Payment Method, BANK CHEQUING ACCOUNT is automatically credited. Click. Notice that unlike in the RECEIVABLES Module, no credit charges are made when Visa Credit is selected for Payment Method. VISA CARD PAYABLE is automatically credited. Click to continue.
14
Purchase Journal: Purchase of Merchandise You would enter a purchase of merchandise transaction in a purchase invoice or convert an existing purchase order. Notice that the purchase is posted to the TOYS AND PARTS INVENTORY account. Click. ACCOUNTS PAYABLE is automatically credited because the Payment Method is Pay Later (on credit). If it were a cash purchase, BANK ACCOUNT will be credited. Click. To give you an idea of where the accounts fall under in the Balance Sheet, TOYS AND PARTS INVENTORY is an asset; ACCOUNTS PAYABLE is a liability. Click to continue.
15
Purchase Journal: Purchase of Non- Merchandise Items Non-merchandise items are purchases that are not for resale, such as supplies, subscriptions, office equipment, and the like. This type of purchase is usually an asset, but it is entered in the expense account box on the Options page of the Vendor Payables Ledger so the specified account automatically appears when the particular vendor is selected on the Purchase Journal. Click. Study the resulting purchase journal entries. Click. To give you an idea of where the accounts fall under in the Balance Sheet, PREPAID OFFICE SUPPLIES and STORE EQUIPMENT are assets; ACCOUNTS PAYABLE is a liability. Click to continue.
16
Purchase Journal Purchase of Services Purchase of services such as transport services, utilities, janitorial, security, etc. are entered as expense. Click. You may enter the expense account on the Options page of the vendor Payables Ledger so it will automatically appear on the Purchase Invoice for the particular vendor. Click. Study the Purchases Journal Entry for the invoice. Click to continue.
17
Transaction Date for the Purchase When goods you ordered are delivered, the vendor sends you an invoice. Click. On the back of the invoice, you would stamp the date when the invoice was received. Click. After inspecting the goods, somebody would approve the invoice, indicating the date and account number to which the shipment should be recorded. Click. Now there are three dates. Question: Which date should you use as the transaction date? Click to find the answer. Click to continue. Received 04/07/2016 back
18
Vendor Payment If there are no applicable cash discounts, payments for merchandise (goods for resale) and non-merchandise (consumable goods or goods NOT for resale) are entered in the same manner. Click. When you entered the purchase of merchandise and the purchase of goods NOT for resale, you entered a credit to ACCOUNTS PAYABLE. Click. When you make payment for either transaction, you would simply debit ACCOUNTS PAYABLE and credit BANK ACCOUNT. However, you will find later in this slideshow that there are differences in the journal entries for various payment methods. Study the journal entries at the right. Click to continue. Purchase Journal Entry for Goods for Resale (Merchandise) Debits Credits Toy Parts and Inventory 300.00 HST Paid on Purchases 39.00 Accounts Payable 339.00 Purchase Journal Entry for Goods NOT for Resale (Example: Office Equipment) Debits Credits Office Equipment 600.00 HST Paid on Purchases 78.00 Accounts Payable 678.00 Payments Journal Entry for Goods NOT for Resale (Office Equipment) Payments Journal Entry for Goods for Resale (Merchandise) Debits Credits Accounts Payable 339.00 Bank Account 339.00 Debits Credits Accounts Payable 678.00 Bank Account 678.00
19
Vendor Payment (continued) All payments (for merchandise or goods/services NOT for resale) are entered in the Payments Journal. Like the Receipts Journal in the RECEIVABLES module, the Payments Journal looks like a cheque with a listing at the bottom of outstanding invoices. Click. To enter a payment, you would either select an option on the home PAYABLES window or open the Payments Journal and select the desired transaction type. Note that “Pay Expenses” on the home window correspond to “Make Other Payment” on the Payments Journal. You will learn more about these options in the next slides. Click to continue.
20
Vendor Payment (continued) PAID BY Options There are four PAID BY options: Cash, Cheque, Direct Deposit or Credit Card. For this company, VISA CREDIT is used as the credit card name. Click. CASH – The company BANK account is automatically filled in the From field, indicating that the funds to be paid would be coming from that account. Click. CHEQUE – Notice that BANK ACCOUNT appears in the From field, and the next available Cheque No. is also automatically entered. Click. DIRECT DEPOSIT - The direct deposit feature allows you to pay bills electronically from your bank account. To use this option, you need to get your company set up with Sage. Click. VISA CREDIT – Before you can use a credit card option, you need to set up the credit card first. You will learn how to do this later on this slideshow. Click to continue. CASH CHEQUE DIRECT DEPOSIT VISA CREDIT
21
Vendor Payment (continued) Journalizing Invoice Payment When you select the vendor from the To the Order of drop-down list, Simply will display all the outstanding invoices for the particular vendor. Click You can then select the invoice that you wish to pay by using the TAB key from Discount Available (see arrows) until the Payment Amount appears. You can pay more than one invoice at a time. In this example, only one invoice is paid. Click. Notice that the total amount of payment is automatically entered on the Amount field on the top portion. Click. The resulting Payments Journal Entry is the same whether you pay by Cash or by Cheque. Click to continue.
22
Vendor Payment (continued) Pre-printed Cheque At the right is a cheque printed in Simply on plain paper. It is necessary for a company to use pre-printed cheques not only because they look more professional, but also because to be valid, your cheque should include your MICR bank codes. Click to see a sample of a cheque printed by Simply on a pre-printed cheque form. Click to continue. Apr 07,2016 MICR bank codes Apr 07,2016
23
Vendor Payment (continued) Journalizing Invoice Payment with a Credit Card The procedure is the same when paying with a credit card. However, the resulting Payments Journal Entry is different from cash or cheque payment. Click and study the Payments Journal Entry for credit card payments. In effect, your ACCOUNTS PAYABLE is simply transferred from the vendor to the credit card company (VISA CREDIT CARD PAYABLE). If you do not have the funds to pay for an invoice, you can pay with a credit card to take advantage of a significant discount. However, it will be an advantage only if you are able to pay the Visa Credit Card Payable before you are required to pay interest on the balance. Click to continue.
24
Balance Sheet Setting Up Credit Card and Paying the Credit Card Bill Credit cards Payable and Expense accounts are set up in the Settings option. Click. To pay for Visa Credit Card Payable, first, find out the Credit Card Payable balance on your Balance Sheet and credit card statement to see if there is any difference. To pay the credit card bill, select Pay Credit Card Bills on the Home window. (see bottom right) Click. The current account balance automatically comes up in the Payments Journal as you select the credit card in the Vendor box. You can enter additional fees and interest according to the credit card statement (see notations on the Payments Journal), and enter the payment amount. Click. Study the relationship between the Settings, Payments Journal and the resulting Payments Journal Entry. Click to continue.
25
Vendor Payment: Using Make Other Payment Option Earlier you learned that entering vendor details in the Payments Journal of a one-time vendor is optional. You may record a payment to a one-time vendor without creating a payables ledger by selecting Make Other Payment. Selecting either of the three other Transaction Type options will not allow you to select one-time vendor. You would also use the Make Other Payment option for a vendor on file if you wish to make a payment for something that does not have an invoice previously recorded in your company books; e.g., C.O.D. purchases, or unusual purchases or expenses. A good example is paying a lease or rent. Leasing companies usually do not send an invoice. They just expected to be paid when payment is due. Study the Payments Journal and the Payments Journal Entry at the right. Click to continue.
26
Vendor Payment: Adjusting a Cheque In this example, after creating a cheque for the month’s rent, you realized that the rent has increased from $2,000 to $2,100.00 plus 13% HST as of April 1. To adjust the cheque, use LOOKUP to display it and click Adjust Other Payment (see arrow). Notice that the window heading indicates that you are adjusting the specific payment (2511). Click. Make the adjustments, then check the Payments Journal Entry before posting. Click To verify the adjustment, display the Cheque Log in the BANKING Module Report Centre (see top right). Also study what will appear on the All Journal Entries report when you select the CORRECTIONS option. Click to continue.
27
Original Invoice Journalizing Purchase Returns (Merchandise) You would return goods (for resale) to a vendor for the same reasons as your customers would return purchases to you (goods were damaged, not as ordered, etc.). When you return goods, you would normally send back the goods with a debit memo, since you are debiting (decreasing) your ACCOUNTS PAYABLE account. When the returned goods are received and verified by the vendor, the vendor usually sends the customer a credit memo indicating that the vendor has credited (decreased) the amount owed by you (the customer). Study the original invoice for the purchase of goods and the resulting Purchases Journal entry. On the next slide, you will learn how to record the purchase return. Click to continue.
28
Journalizing Purchase Returns - Merchandise (continued) To journalize the purchase return, enter the transaction as a negative vendor invoice. Study the purchase invoice at the right and the resulting Purchases Journal entry below. Notice that taxes apply only to the returned goods (not to the full amount of the original purchase invoice). Click. Review the purchase journal entry that refers to the original purchase invoice at top right (also shown in the previous slide) and study how it relates to the purchase return (negative) invoice and return purchase journal entry (below). Click to continue. Original Purchase Journal Entry Return Purchase (Negative) Invoice Return Purchase Journal Entry
29
Journalizing Purchase Returns of Non- Merchandise Items (continued) To journalize the purchase return of non-merchandise items, you would use the same account used in the original invoice and enter the transaction as a negative invoice. Study the return (negative) purchase invoice at the right and the resulting purchases journal entry below. Click. Review the purchase journal entry that refers to the original purchase invoice at top right and study how it relates to the purchase return (negative) invoice and return purchase journal entry (below). Click to continue. Original Purchase Journal Entry Return Purchase Journal Entry Return Purchase (Negative) Invoice
30
More… Go back to your text and proceed from where you have left off. Review this slideshow when you finish the chapter to better prepare yourself for the next chapter. You might also wish to view the tutorial on Setup Guide-Vendors in the Simply Accounting Learning Centre. Press ESC now, then click the EXIT button. EXIT
Similar presentations
© 2019 SlidePlayer.com Inc. | https://slideplayer.com/slide/6392397/ | CC-MAIN-2019-43 | refinedweb | 3,269 | 55.24 |
#include <wx/statusbr.h>
A status bar is a narrow window that can be placed along the bottom of a frame to give small amounts of status information.
It can contain one or more fields, one or more of which can be variable length according to the size of the window.
wxStatusBar also maintains an independent stack of status texts for each field (see PushStatusText() and PopStatusText()).
Note that in wxStatusBar context, the terms pane and field are synonyms.
This class supports the following styles:
wxSTB_SIZEGRIP|wxSTB_SHOW_TIPS|wxSTB_ELLIPSIZE_END|wxFULL_REPAINT_ON_RESIZE.
Default ctor.
Destructor.
Creates the window, for two-step construction.
See wxStatusBar() for details.
Returns the horizontal and vertical borders used when rendering the field text inside the field area.
Note that the rect returned by GetFieldRect() already accounts for the presence of horizontal and vertical border returned by this function.
Returns the wxStatusBarPane representing the n-th field.
Returns the number of fields in the status bar.
Returns the style of the n-th field.
See wxStatusBarPane::GetStyle() for more info.
Returns the string associated with a status bar field.
Returns the width of the n-th field.
See wxStatusBarPane::GetWidth() for more info.
Restores the text to the value it had before the last call to PushStatusText().
Notice that if SetStatusText() had been called in the meanwhile, PopStatusText() will not change the text, i.e. it does not override explicit changes to status text but only restores the saved text if it hadn't been changed since.
Saves the current field text in a per-field stack, and sets the field text to the string passed as argument.
Sets the number of fields, and optionally the field widths.
wxPerl Note: In wxPerl this function accepts only the number parameter. Use SetStatusWidths to set the field widths.
Sets the minimal possible height for the status bar.
The real height may be bigger than the height specified here depending on the size of the font used by the status bar.
Sets the styles of the fields in the status line which can make fields appear flat or raised instead of the standard sunken 3D border.
Sets the status text for the i-th field.
The given text will replace the current text. The display of the status bar is updated immediately, so there is no need to call wxWindow::Update() after calling this function.
Note that if PushStatusText() had been called before the new text will also replace the last saved value to make sure that the next call to PopStatusText() doesn't restore the old value, which was overwritten by the call to this function.
Sets the widths of the fields in the status line.
There are two types of fields: fixed widths and variable width fields. For the fixed width fields you should specify their (constant) width in pixels. For the variable width fields, specify a negative number which indicates how the field should expand: the space left for all variable width fields is divided between them according to the absolute value of this number. A variable width field with width of -2 gets twice as much of it as a field with width -1 and so on.
For example, to create one fixed width field of width 100 in the right part of the status bar and two more fields which get 66% and 33% of the remaining space correspondingly, you should use an array containing -2, -1 and 100.
wxPerl Note: In wxPerl this method takes as parameters the field widths. | https://docs.wxwidgets.org/3.1.2/classwx_status_bar.html | CC-MAIN-2019-09 | refinedweb | 584 | 72.87 |
I am new. Hello!
I am trying to load in a text file that has IP addresses on each line. This should return to the screen the reverse lookup on each address.
What am I doing wrong? It compiles fine, but when I run it, it tells me the first address could not resolve, and then the second address shows "Host: " then hangs and gives a Windows error.
The IP's in question are ->
69.31.48.25
139.146.133.180
Code:#include <iostream> #include <winsock.h> #include <fstream> int main() { using namespace std; WSAData wData; if (WSAStartup(MAKEWORD(2,2), &wData) == SOCKET_ERROR) { cout << "Winsock init error\n"; return 1; } hostent *h = NULL; const char *ip; string line; ifstream myfile("text.txt"); if (myfile.is_open()) { while (! myfile.eof() ) { getline (myfile,line); ip = line.c_str(); unsigned int addr; addr = inet_addr(ip); h = gethostbyaddr(reinterpret_cast<char *>(&addr), 4, AF_INET); if (h == NULL) { cout << "Could not resolve address" << endl; //return 1; } cout << "Host: " << h->h_name << endl; } } return 0; } | http://cboard.cprogramming.com/cplusplus-programming/85687-inet_addr-gethostbyaddr.html | CC-MAIN-2014-15 | refinedweb | 166 | 75.2 |
XML to JSON Conversion Using XSLT - for eBay or other web services
Expand Messages
- I just uploaded my XSLT 1.0 stylesheet that converts any XML data to
JSON. Check out the XML 2 JSON project homepage
<> on the eBay Codebase (there is
a download link to the most recent version on that page). This is open
sourced under the CDDL, and is based off of some code that was written
by Holten Norris and placed under the CDDL at the Ajaxian conference a
few months back.
Why is this important? I have one goal -- make it easy to use eBay Web
Services directly on the client, through Javascript. As you probably
know, you can use JSON-formatted data, wrapped in a callback, to get
around the same-domain restriction that keeps you from calling
third-party web services from Javascript. Yahoo provides JSON as an
output option for their web services, and this gives you the same thing
for eBay's REST-enabled web services (or for any others out there they
may have an XSLT server option -- you know who you are, Jeff)
I presented this back at the eBay Developers Conference a few weeks
back, which, amazingly, appears to be the same day that this other XML
to JSON conversion project <>
launched. The code is totally different -- I didn't know about it until
about an hour ago when I was reading the newsgroup messages. Bram's code
uses XSLT 2.0, whereas mine uses XSLT 1.0. I'm not surprised that I
wasn't the only one working on this, because it opens up lots of
interesting possibilities for client-side code that uses third-party web
services.
Jason asked in this post
<> how this is
different from other approaches? Bram's and mine are the first XSLT
solutions I'm aware of that will convert any XML data into JSON,
regardless of schema. Other solutions I've seen, including one from
code their XSLT to a specific schema, requiring XSLT changes to support
additional calls. With this XSLT, when eBay brings out additional
REST-enabled calls (such as the GetContextualKeywords call that powers
the AdContext project -- sign up for the beta
<> today!) there will be no
additional work needed (cross your fingers) to support those calls. This
means that it should work with other types of web services too. The only
dependency on eBay that I know about is the xsl:stylesheet line that
strips out the eBay namespace from the XML.
The format of the data returned mimics that returned by Yahoo's JSON
output for their web services. Elements with attributes and textual data
are converted to objects, with the attributes becoming child nodes, and
the text content going in a child node named content. When there are
multiple child elements with the same name, all the child elements are
wrapped in an array.
The code is not 100% baked, but it works on most eBay REST API searches.
The one issue I know about is that quotes in text content are not
converted properly. There may be other text that I need to escape, and
I'll be updating it soon with that support.
If you want to contribute to the project, please sign up as a "project
observer" on the Codebase <> .
You'll need to be an eBay Developers Program member first, but signing
up <> for that is free. Once you sign up
for the project I'll reach out to you over email. I'm open to merging
this with Bram's project, and I'll be reaching out to him soon. I've
also started writing an article that will explain in painstaking detail
how to use this XSLT with eBay's web services.
Alan Lewis
<> Technical Evangelist
eBay Developers Program <>
[Non-text portions of this message have been removed]
Your message has been successfully submitted and would be delivered to recipients shortly. | https://groups.yahoo.com/neo/groups/json/conversations/topics/431?l=1 | CC-MAIN-2017-34 | refinedweb | 655 | 67.89 |
systemd, cgroups and subuid ranges
In my previous post I experimented with
runc as a way of understanding the behaviour of OCI runtimes. I ended up focusing on cgroup creation and the interaction between
runc and systemd. The experiment revealed a critical deficiency: when using user namespaces the container’s cgroup is not owned by the user executing the container process. As a result, systemd-based workloads cannot run.
runc creates cgroups via systemd’s transient unit API. Could a container runtime use this API to control the cgroup ownership? Let’s find out.
How
runc talks to systemd §
The Open Container Initiative (OCI) runtime spec defines a low-level container runtime interface. OCI runtimes must create the Linux namespaces specified by an OCI config, including the cgroup namespace.
runc uses the systemd D-Bus API to ask systemd to create a cgroup scope for the container. Then it creates a cgroup namespace with the new cgroup scope as the root. We can see that
runc invokes the
StartTransientUnit API method with a name for the new unit, and a list of properties (source code):
// .../go-systemd/v22/dbus/methods.go func (c *Conn) StartTransientUnitContext( .Context, name string, mode string, ctx context[]Property, ch chan<- string) (int, error) { properties return c.startJob( , ch, ctx"org.freedesktop.systemd1.Manager.StartTransientUnit", , mode, properties, make([]PropertyCollection, 0)) name}
Most of the unit configuration is passed as properties.
The
User= property §
systemd.exec(5) describes the properties that configure a systemd unit (including transient units). Among the properties are
User= and
Group=:
Set the UNIX user or group that the processes are executed as, respectively. Takes a single user or group name, or a numeric ID as argument.
This sounds promising. Further searching turned up a systemd documentation page entitled Control Group APIs and Delegation. That document states:
By turning on the
Delegate=property for a scope or service you get a few guarantees: … If your service makes use of the
User=functionality, then the sub-tree will be
chown()ed to the indicated user so that it can correctly create cgroups below it.
runc already supplies
Delegate=true. The
User= property seems to be exactly what we need.
Determining the UID §
The OCI configuration specifies the
user that will execute the container process (in the container’s user namespace). It also specifies
uidMappings between the host and container user namespaces. For example:
% jq -c '.process.user, .linux.uidMappings' < config.json {"uid":0,"gid":0} [{"containerID":0,"hostID":100000,"size":65536}]
runc has all the data it needs to compute the appropriate value for the
User= property. The algorithm, expressed as Python is:
= config["process"]["user"]["uid"] uid for map in config["linux"]["uidMappings"]: = map["containerID"] uid_min = map_min + map["size"] - 1 uid_max if uid_min <= uid <= uid_max: = uid - uid_min offset return map["hostID"] + offset else: raise RuntimeError("user.uid is not mapped")
Testing with
systemd-run §
systemd-run(1) uses the transient unit API to run programs via transient scope or service units. You can use the
--property/
-p option to pass additional properties. I used
systemd-run to observe how systemd handles the
Delegate=true and
User= properties.
Create and inspect transient unit §
First I will do a basic test, talking to my user account’s service manager:
% id -u 1000 % systemd-run --user sleep 300 Running as unit: run-r8e3c22d2bb64491a85882d8303202dca.service % systemctl --user status run-r8e3c22d2bb64491a85882d8303202dca.service ● run-r8e3c22d2bb64491a85882d8303202dca.service - /bin/sleep 300 Loaded: loaded (/run/user/1000/systemd/transient/run-r8e3c22d2bb64491a85882d8303202dca.service; transient) Transient: yes Active: active (running) since Wed 2021-06-09 11:31:14 AEST; 9s ago Main PID: 11412 (sleep) Tasks: 1 (limit: 2325) Memory: 184.0K CPU: 3ms CGroup: /user.slice/user-1000.slice/user@1000.service/app.slice/run-r8e3c22d2bb64491a85882d8303202dca.service └─11412 /bin/sleep 300 Jun 09 11:31:14 f33-1.ipa.local systemd[863]: Started /bin/sleep 300. % ls -nld /sys/fs/cgroup/user.slice/user-1000.slice/user@1000.service/app.slice/run-r8e3c22d2bb64491a85882d8303202dca.service drwxr-xr-x. 2 1000 1000 0 Jun 9 11:31 /sys/fs/cgroup/user.slice/user-1000.slice/user@1000.service/app.slice/run-r8e3c22d2bb64491a85882d8303202dca.service
We can see that:
- systemd-run creates the transient unit
- the unit was started successfully, and is running
- the unit has is own
CGroup
- the cgroup is owned by user
1000
As I try different ways of invoking
systemd-run, I will repeat this pattern of unit creation, inspection and cgroup ownership checks.
Specify
User= (user service manager) §
Next I explicity specify
User=1000:
% systemd-run --user -p User=1000 sleep 300 Running as unit: run-r651ff7d0d1214037b70def6d5694dcd6.service % systemctl --no-pager --full --user status run-r651ff7d0d1214037b70def6d5694dcd6.service × run-r651ff7d0d1214037b70def6d5694dcd6.service - /bin/sleep 300 Loaded: loaded (/run/user/1000/systemd/transient/run-r651ff7d0d1214037b70def6d5694dcd6.service; transient) Transient: yes Active: failed (Result: exit-code) since Wed 2021-06-09 11:38:50 AEST; 1min 17s ago Process: 11432 ExecStart=/bin/sleep 300 (code=exited, status=216/GROUP) Main PID: 11432 (code=exited, status=216/GROUP) CPU: 4ms Jun 09 11:38:50 f33-1.ipa.local systemd[863]: Started /bin/sleep 300. Jun 09 11:38:50 f33-1.ipa.local systemd[11432]: run-r651ff7d0d1214037b70def6d5694dcd6.service: Failed to determine supplementary groups: Operation not permitted Jun 09 11:38:50 f33-1.ipa.local systemd[11432]: run-r651ff7d0d1214037b70def6d5694dcd6.service: Failed at step GROUP spawning /bin/sleep: Operation not permitted Jun 09 11:38:50 f33-1.ipa.local systemd[863]: run-r651ff7d0d1214037b70def6d5694dcd6.service: Main process exited, code=exited, status=216/GROUP Jun 09 11:38:50 f33-1.ipa.local systemd[863]: run-r651ff7d0d1214037b70def6d5694dcd6.service: Failed with result 'exit-code'.
This unit failed to execute, because the user service manager does not have permission to determine supplementary groups. Without going into too much detail, this is because the user systemd instance lacks the
CAP_SETGID capability required by the
setgroups(2) system call used by
initgroups(3).
There doesn’t seem to be a way around this. For the rest of my testing I’ll talk to the system service manager. That’s okay, because
runc on OpenShift also talks to the system service manager.
Specify
User= (system service manager) §
% sudo systemd-run -p User=1000 sleep 300 Running as unit: run-r94725453119e4003af336d7294984085.service % systemctl status run-r94725453119e4003af336d7294984085.service ● run-r94725453119e4003af336d7294984085.service - /usr/bin/sleep 300 Loaded: loaded (/run/systemd/transient/run-r94725453119e4003af336d7294984085.service; transient) Transient: yes Active: active (running) since Wed 2021-06-09 11:50:10 AEST; 11s ago Main PID: 11517 (sleep) Tasks: 1 (limit: 2325) Memory: 184.0K CPU: 4ms CGroup: /system.slice/run-r94725453119e4003af336d7294984085.service └─11517 /usr/bin/sleep 300 Jun 09 11:50:10 f33-1.ipa.local systemd[1]: Started /usr/bin/sleep 300. % ls -nld /sys/fs/cgroup/system.slice/run-r94725453119e4003af336d7294984085.service drwxr-xr-x. 2 0 0 0 Jun 9 11:50 /sys/fs/cgroup/system.slice/run-r94725453119e4003af336d7294984085.service % ps -o uid,pid,cmd --pid 11517 UID PID CMD 1000 11517 /usr/bin/sleep 300
The process is running as user
1000, but the cgroup is owned by
root.
Specify
Delegate=true §
We need to specify
Delegate=true to tell systemd to delegate the cgroup to the specified
User:
% sudo systemd-run -p Delegate=true -p User=1000 sleep 300 Running as unit: run-r518dbc963502423c9c67b1c72d3d4c12.service % systemctl status run-r518dbc963502423c9c67b1c72d3d4c12.service ● run-r518dbc963502423c9c67b1c72d3d4c12.service - /usr/bin/sleep 300 Loaded: loaded (/run/systemd/transient/run-r518dbc963502423c9c67b1c72d3d4c12.service; transient) Transient: yes Active: active (running) since Wed 2021-06-09 11:59:34 AEST; 1min 21s ago Main PID: 11579 (sleep) Tasks: 1 (limit: 2325) Memory: 184.0K CPU: 3ms CGroup: /system.slice/run-r518dbc963502423c9c67b1c72d3d4c12.service └─11579 /usr/bin/sleep 300 Jun 09 11:59:34 f33-1.ipa.local systemd[1]: Started /usr/bin/sleep 300. % ls -nld /sys/fs/cgroup/system.slice/run-r518dbc963502423c9c67b1c72d3d4c12.service drwxr-xr-x. 2 1000 1000 0 Jun 9 11:59 /sys/fs/cgroup/system.slice/run-r518dbc963502423c9c67b1c72d3d4c12.service
systemd
chown()ed the cgroup to the specified
User. Note that very few of the cgroup controls in the cgroup directory are writable by user
1000:
% ls -nl /sys/fs/cgroup/system.slice/run-r518dbc963502423c9c67b1c72d3d4c12.service \ |grep 1000 -rw-r--r--. 1 1000 1000 0 Jun 9 11:59 cgroup.procs -rw-r--r--. 1 1000 1000 0 Jun 9 11:59 cgroup.subtree_control -rw-r--r--. 1 1000 1000 0 Jun 9 11:59 cgroup.threads
So the process cannot adjust its root cgroup’s
memory.max,
pids.max,
cpu.weight and so on. It can create cgroup subtrees, manage resources within them, and move processes and threads among those subtrees and its root cgroup.
Arbitrary UIDs §
So far I have specified
User=1000. User
1000 is a “known user”. That is, the Name Service Switch (see
nss(5)) returns information about the user (name, home directory, shell, etc):
% getent passwd $(id -u) ftweedal:x:1000:1000:ftweedal:/home/ftweedal:/bin/zsh
However, when executing containers with user namespaces, we usually map the namespace UIDs to unprivileged host UIDs from a subordinate ID range. Subordinate UIDs and GID ranges are currently defined in
/etc/subuid and
/etc/subgid respectively. The subuid range for user
1000 is:
% grep $(id -un) /etc/subuid ftweedal:100000:65536
User
1000 has been allocated the range
100000–
165535. So let’s try
systemd-run with
User=100000:
% sudo systemd-run -p Delegate=true -p User=100000 sleep 300 Running as unit: run-r1498304af7df406c9698da5c683ea79e.service % systemctl --no-pager --full status run-r1498304af7df406c9698da5c683ea79e.service × run-r1498304af7df406c9698da5c683ea79e.service - /usr/bin/sleep 300 Loaded: loaded (/run/systemd/transient/run-r1498304af7df406c9698da5c683ea79e.service; transient) Transient: yes Active: failed (Result: exit-code) since Wed 2021-06-09 12:32:43 AEST; 14s ago Process: 11766 ExecStart=/usr/bin/sleep 300 (code=exited, status=217/USER) Main PID: 11766 (code=exited, status=217/USER) CPU: 2ms Jun 09 12:32:43 f33-1.ipa.local systemd[1]: Started /usr/bin/sleep 300. Jun 09 12:32:43 f33-1.ipa.local systemd[11766]: run-r1498304af7df406c9698da5c683ea79e.service: Failed to determine user credentials: No such process Jun 09 12:32:43 f33-1.ipa.local systemd[11766]: run-r1498304af7df406c9698da5c683ea79e.service: Failed at step USER spawning /usr/bin/sleep: No such process Jun 09 12:32:43 f33-1.ipa.local systemd[1]: run-r1498304af7df406c9698da5c683ea79e.service: Main process exited, code=exited, status=217/USER Jun 09 12:32:43 f33-1.ipa.local systemd[1]: run-r1498304af7df406c9698da5c683ea79e.service: Failed with result 'exit-code'.
It failed. Cutting the noise, the cause is:
Failed to determine user credentials: No such process
The string
No such process is a bit misleading. It is the string associated with the
ESRCH error value (see
errno(3)). Here it indicates that
getpwuid(3) did not find a user record for uid
100000. systemd unconditionally fails in this scenario. And this is a problem for us because without intervention, subordinate UIDs do not have associated user records.
Arbitrary UIDs (with
passwd entry) §
So let’s make NSS return something for user
100000. There are several ways we could do this, including adding it to
/etc/passwd, or creating an NSS module that generates passwd records for ranges declared in
/etc/subuid.
Another way is to use systemd’s NSS module, which returns passwd records for containers created by
systemd-machined. And that’s what I did. Given the root filesystem for a container in
./rootfs,
systemd-nspawn creates the container. The
--private-users=100000 option tells it to create a user namespace mapping to the host UID
100000 with default size 65536:
% sudo systemd-nspawn --directory rootfs --private-users=100000 /bin/sh Spawning container rootfs on /home/ftweedal/go/src/github.com/opencontainers/runc/rootfs. Press ^] three times within 1s to kill container. Selected user namespace base 100000 and range 65536. sh-5.0#
On the host we can see the “machine” via
machinectl(1). We also observe that NSS now returns results for UIDs in the mapped host range.
% getent passwd 100000 165535 vu-rootfs-0:x:100000:65534:UID 0 of Container rootfs:/:/usr/sbin/nologin % getent passwd 100000 165534 vu-rootfs-0:x:100000:65534:UID 0 of Container rootfs:/:/usr/sbin/nologin vu-rootfs-65534:x:165534:65534:UID 65534 of Container rootfs:/:/usr/sbin/nologin
The
passwd records are constructed on demand by
nss-systemd(8) using data registered by
systemd-machined.
Now let’s try
systemd-run again:
% sudo systemd-run -p Delegate=true -p User=100000 sleep 300 Running as unit: run-r076a82c36fcd4934b13bba47fcc8462e.service % systemctl status run-r076a82c36fcd4934b13bba47fcc8462e.service ● run-r076a82c36fcd4934b13bba47fcc8462e.service - /usr/bin/sleep 300 Loaded: loaded (/run/systemd/transient/run-r076a82c36fcd4934b13bba47fcc8462e.service; transient) Transient: yes Active: active (running) since Wed 2021-06-09 14:14:34 AEST; 11s ago Main PID: 12045 (sleep) Tasks: 1 (limit: 2325) Memory: 180.0K CPU: 4ms CGroup: /system.slice/run-r076a82c36fcd4934b13bba47fcc8462e.service └─12045 /usr/bin/sleep 300 Jun 09 14:14:34 f33-1.ipa.local systemd[1]: Started /usr/bin/sleep 300. % ls -nld /sys/fs/cgroup/system.slice/run-r076a82c36fcd4934b13bba47fcc8462e.service drwxr-xr-x. 2 100000 65534 0 Jun 9 14:14 /sys/fs/cgroup/system.slice/run-r076a82c36fcd4934b13bba47fcc8462e.service % ps -o uid,gid,pid,cmd --pid 12045 UID GID PID CMD 100000 65534 12045 /usr/bin/sleep 300 % id -un 65534 nobody
Now the cgroup is owned by
100000. But the group ID (
gid) under which the process runs, and the group owner of the cgroup, is
65534. This is the host’s
nobody account.
Specify
Group= §
In a user-namespaced container, ordinarily you would want both the user and the group of the container process to be mapped into the user namespace. Likewise, you would expect the cgroup to be owned by a known (in the namespace) user. Setting the
Group= property should achieve this.
% sudo systemd-run -p Delegate=true -p User=100000 -p Group=100000 sleep 300 Running as unit: run-re610d14cc0584a37a3d4099268df75d8.service % systemctl status run-re610d14cc0584a37a3d4099268df75d8.service ● run-re610d14cc0584a37a3d4099268df75d8.service - /usr/bin/sleep 300 Loaded: loaded (/run/systemd/transient/run-re610d14cc0584a37a3d4099268df75d8.service; transient) Transient: yes Active: active (running) since Wed 2021-06-09 14:24:58 AEST; 7s ago Main PID: 12131 (sleep) Tasks: 1 (limit: 2325) Memory: 184.0K CPU: 5ms CGroup: /system.slice/run-re610d14cc0584a37a3d4099268df75d8.service └─12131 /usr/bin/sleep 300 Jun 09 14:24:58 f33-1.ipa.local systemd[1]: Started /usr/bin/sleep 300. % ls -nld /sys/fs/cgroup/system.slice/run-re610d14cc0584a37a3d4099268df75d8.service drwxr-xr-x. 2 100000 100000 0 Jun 9 14:24 /sys/fs/cgroup/system.slice/run-re610d14cc0584a37a3d4099268df75d8.service % ps -o uid,gid,pid,cmd --pid 12131 UID GID PID CMD 100000 100000 12131 /usr/bin/sleep 300
Finally, systemd is exhibiting the behaviour we desire.
Discussion and next steps §
In summary, the findings from this investigation are:
systemd changes the cgroup ownership of transient units according to the
User=and
Group=properties, if and only if
Delegate=true.
systemd currently requires
User=and
Group=to refer to known (via NSS) users and groups.
Unprivileged user systemd service manager instances lack the privileges to set supplementary groups for the container process. This is not a problem for the OpenShift use case, because it uses the system service manager.
As to the second point, I am curious why systemd behaves this way. It does makes sense to query NSS to find out the shell, home directory, and login name for setting up the execution environment. But if there is no
passwd record, why not synthesise one with conservative defaults? Running processes as anonymous UIDs has a valid use case—increasingly so, as adoption of user namespaces increases. I filed an RFE (systemd#19781) against systemd to suggest relaxing this restriction, and inquire whether this is a Bad Idea for some reason I don’t yet understand.
There are some alternative approaches that don’t require changing systemd:
Use
systemd-machinedto register a machine. It provides the
org.freedesktop.machine1.Manager.RegisterMachineD-Bus method for this purpose. But
systemd-machinedis not used (or even present) on OpenShift cluster nodes.
Implement, ship and configure an NSS module that synthesises
passwdrecords for user subordinate ID ranges. The shadow project has defined an NSS interface for subid ranges. libsubid, part of shadow, will provide abstract subid range lookups (forward and reverse). So a libsubid-based solution to this should be possible. Unfortunately, libsubid is not yet widely available as a shared library.
As an example, synthetic user records could have a username like
subuid-{username}-{uid}. The home directory and shell would be
/and
/sbin/nologin, like the records synthesised by
nss-systemd.
Update the container runtime (
runc) to
chownthe cgroup after systemd creates it. In fact, this is what
systemd-nspawndoes. This approach is nice because the only component to change is
runc—which had to change anyway, to add the logic to determine the cgroup owner UID. To the best of my knowledge, on OpenShift
runcgets executed as
root(on the node), so it should have the permissions required to do this. Unless SELinux prevents it.
Of these three options, modifying
runc to
chown the cgroup directory seems the most promising. While I wait for feedback on systemd#19781, I will start hacking on
runc and testing my modifications. | https://frasertweedale.github.io/blog-redhat/posts/2021-06-09-systemd-cgroups-subuid.html | CC-MAIN-2022-27 | refinedweb | 2,862 | 50.33 |
Important: Please read the Qt Code of Conduct -
Using Socketcan Plugin in Qt
Hi, I'm doing a work on can bus in qt creator. In this work, I need to use the socketcan plugin in qt. However, when I make a test as follows, I get an error "No such plugin: socketcan". I can see can0 when I write "ifconfig" on the Raspberry Pi terminal screen. But I can't use it in qt. How do you think I can fix this error and I can use socketcan in qt?
Qt code:
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QtSerialBus>
#include <QCanBusDevice>
#include <QCanBus>
#include <QString>
#include <QDebug>
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
}
MainWindow::~MainWindow()
{
delete ui;
}
void MainWindow::on_pushButton_clicked()
{
QString errorString;
QCanBusDevice *device = QCanBus::instance()->createDevice(
QStringLiteral("socketcan"), QStringLiteral("can0"), &errorString);
if (!device)
qDebug() << errorString;
else
device->connectDevice();
}
The Error:
- aha_1980 Lifetime Qt Champion last edited by
you need the plugin
libqtsocketcanbus.soon your target.
How did you install or deploy Qt there?
Regards
I have not installed plugin libqtsocketcanbus.so. I installed Qt on Raspberry Pi with "sudo apt-get install qtcreator". I did not do anything different for Socketcan. How can I install the plugin libqtsocketcanbus.so ?
@safiye said in Using Socketcan Plugin in Qt:
sudo apt-get install qtcreator
This installs QtCreator and only some basic Qt stuff. If you want to install Qt search for Qt packages.
To install Qt, I just did the following in order:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install qt5-default
sudo apt-get install qtcreator
I installed sudo apt-get install libqt5serialbus5-dev and sudo apt-get install libqt5serialbus5 on Raspberry Pi. However, it gives the same error.
@jsulm said in Using Socketcan Plugin in Qt:
@safiye Do you build on RaspberryPi or do you do cross compiling?
I'm building on a Raspberry Pi.
@safiye That will not work as long as you do not have libqtsocketcanbus.so plug-in. I don't know which package you have to install to get it. I'm not even sure the Linux distribution you're running on your device provides that at all (my Ubuntu 18.04 seems not to provide it). You could try to build it from source though. | https://forum.qt.io/topic/121824/using-socketcan-plugin-in-qt | CC-MAIN-2021-04 | refinedweb | 385 | 58.38 |
odalis garcia21,310 Points
I am stuck like a duck. Please help
Not too sure of what I am doing here.
using System.Data.Entity; namespace Treehouse.CodeChallenges { public class ContextDBEntities : DbContext { public CourseDBEntities() : base("name=CourseDBEntities") } }
namespace Treehouse.CodeChallenges { public class Course { public int Id { get; set; } public string Title { get; set; } public string Description { get; set; } public int Length { get; set; } } }
1 Answer
Balazs Pukli46,070 Points
In order to be able to use your Context class to access your database, you have to define a property in it which represents for each table you are accessing. These properties need to have the DbSet<> type, which is really just a list of objects, representing the list of records in the database.
In this case, you have a Course data model, representing the Courses table in the database. This means, you need to define a property with the type DbSet<Courses>. From then on, Entity Framework will look for the model in you code and the table in the database with the corresponding names - this is very convenient for the developer, compared to database access methods from 10-20 years ago. But you must use the names properly in order to have Entity Framework do the job properly. (For example, the "Course" model is represented by the "Courses" or "Course" table in the database, and it is accessed by the "Courses" property in the context, which must be of DbSet type. These naming conventions make EntityFramework do its job well.)
public DbSet<Course> Courses {get; set;} | https://teamtreehouse.com/community/i-am-stuck-like-a-duck-please-help | CC-MAIN-2020-40 | refinedweb | 257 | 60.75 |
73169/how-to-delete-column-from-pandas-dataframe
Hi Guys,
I have one DataFrame in Pandas. I want to delete one column from this DataFrame. How can I do that?
Hi@akhtar,
You can use the del command in Pandas to delete one column from your DataFrame. I have attached one example below for your reference.
import pandas as pd
df = pd.read_csv('my.csv')
del df['Place']
I hope this will help you.
You can get the values as a ...READ MORE
You can do it like this:
df=pd.DataFrame(columns=["Name","Old","Ne ...READ MORE
You can do it like this:
import ...READ MORE
Use the dataframe with respective column names ...READ MORE
You can also use the random library's ...READ MORE
Syntax :
list. count(value)
Code:
colors = ['red', 'green', ...READ MORE
Enumerate() method adds a counter to an ...READ MORE
Hi@akhtar,
You need to provide the axis parameter ...READ MORE
You can use the at() method to ...READ MORE
Hi@akhtar,
You can use Pandas.merge() function to merge ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in. | https://www.edureka.co/community/73169/how-to-delete-column-from-pandas-dataframe | CC-MAIN-2022-27 | refinedweb | 201 | 79.46 |
#include <stdio.h> // These are the necessary libraries to perform what we need to do.
#include <stdlib.h>
#include <iostream>
#include <fstream>
using namespace std; // Allows for functions of multiple libraries to be used
int main () // The main function that has all the operations we desired
{
system("cd /users/christopher/desktop/WaveArchive/ && perl data.pl"); // Launches Perl script to extract the txt file from a website and put it in a desired directory
FILE *in_file; // This declares the input file
in_file = fopen("/users/christopher/desktop/WaveArchive/spll1.txt","r"); // This opens the input file and says it will be read. Change path to file as needed
char s[100]; // If the file cannot be found, report the error to the console
if (in_file == NULL)
{
printf("Error: File Not Found");
exit(-1);
}
while (fgets(s,100,in_file)!=NULL) // This reads the document line by line and cancels when at the end
{
int y; // All of these variables are vital for time data isolation and subsequent calculation
int M;
int d;
int h;
int m;
float b;
float c;
float f;
float w;
int l;
int a;
unsigned long t; // This is the final product variable, t for time. It is a large (long) number that can only be positive (unsigned)
fscanf(in_file, "%d %d %d %d %d %f %f %f %f", &y, &M, &d, &h, &m, &b, &c, &f, &w); // Sifts through the input file and assigns a variable to every number and string
//**time calculations** dealing with leap years
l=(y-1984)/4*86400;
if (y%4==0 && y%100!=0)
{
a=86400;
}
else {a=0;}
// Add seconds because of the year
if (y>=1981)
{
t= (y-1981)*31536000+31190400; // The amount of seconds from the GPS epoch to the start of this year
}
else {t=0;}
// Add seconds because of the month
switch (M)
{
case (1): // If it is January add X seconds:
t =t+l-a; // The "-a" is to deal with leap days that haven't yet happened in the year
break;
case (2): // If it is February add X seconds:
t = t+2678400+l-a; // Notice how the added time is cumulative from month to month
break;
case (3): // If it is March add X seconds:
t = t+5097600+l; // We consider current leap years from here on out, no more "-a"
break;
case (4): // If it is April add X seconds:
t = t+7776000+l;
break;
case (5): // If it is May add X seconds:
t = t+10368000+l;
break;
case (6): // If it is June add X seconds:
t = t+13046400+l;
break;
case (7): // If it is July add X seconds:
t = t+15638400+l;
break;
case (8): // If it is August add X seconds:
t = t+18316800+l;
break;
case (9): // If it is September add X seconds:
t = t+20995200+l;
break;
case (10): // If it is October add X seconds:
t = t+23587200+l;
break;
case (11): // If it is November add X seconds:
t = t+26265600+l;
break;
case (12): // If it is December add X seconds:
t = t+28857600+l;
break;
}
t = t+d*86400; // Seconds added according to days
t = t+h*3600; // Seconds added according to hours
t = t+m*60; // Seconds added according to minutes
/*Leap seconds
====== There is no way to predict leap seconds, change t=t+X as more leap seconds since 1980 occur. There were 16 leap seconds as of 7/23/2013. ======*/
t=t+16;
// The GPS time is now accurate and stored in the variable t
if (t>16) // This deals with a bug encountered when the console reads the first line
{
ofstream MyExcelFile2; // Outputting the manipulated data to a csv file
MyExcelFile2.open("/users/christopher/desktop/WaveArchive/WaveArchive.csv", std::ios_base::app); //Opening a csv file to be appended to
MyExcelFile2 << t << "," << M << "/" << d << "/" << y << "," << h << ":" << m << "," << w << "," << endl; // Isolating time and wave height to be printed to the file.. and then printing those numbers to it
MyExcelFile2.close(); // Closing the csv file, the csv file now has the desired data
}
}
fclose(in_file); // Closing the input file, the final output WaveArchive.csv has been placed into the directory and the program is done.
return 0;
} | http://www.cplusplus.com/forum/general/107638/ | CC-MAIN-2013-48 | refinedweb | 696 | 52.8 |
Up to [cvs.NetBSD.org] / pkgsrc / devel / cmake / patches
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.10 / (download) - annotate - [select for diffs], Thu Nov 15 19:31:55 2012 UTC (15 months, 2 weeks ago) by adam.9: +8 -8 lines
Diff to previous 1.9 .9 / (download) - annotate - [select for diffs], Fri Sep 14 13:26:20 2012 UTC (17 months, 3 weeks ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2012Q3-base, pkgsrc-2012Q3
Changes since 1.8: +3 -1 lines
Diff to previous 1.8 (colored)
Add comments to patches.
Revision 1.8 / (download) - annotate - [select for diffs], Wed Sep 14 17:54:48 2011 UTC (2 years, 5 months ago) by brook
Changes since 1.7: +20 -5 lines
Diff to previous 1.7 (colored)
Replace paths with ${LOCALBASE} instead of hard-coding /usr/pkg into installed files.
Revision 1.7 / (download) - annotate - [select for diffs], Thu Nov 11 08:34:02 2010 UTC (3 years, 3 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2011Q2-base, pkgsrc-2011Q2, pkgsrc-2011Q1-base, pkgsrc-2011Q1, pkgsrc-2010Q4-base, pkgsrc-2010Q4
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored).
Revision 1.6 / (download) - annotate - [select for diffs], Wed Nov 25 19:08:18 2009 UTC (4 years,.5: +4 -4 lines
Diff to previous 1.5 (colored)
Changed 2.8.0: This version of CMake fixes many open issues and provides some exciting new features.
Revision 1.5 / (download) - annotate - [select for diffs], Sun Apr 19 10:35:55 2009 UTC (4 years, 10 months ago) by hasso
Branch: MAIN
CVS Tags: pkgsrc-2009Q3-base, pkgsrc-2009Q3, pkgsrc-2009Q2-base, pkgsrc-2009Q2
Changes since 1.4: +20 -20 lines
Diff to previous 1.4 (colored)
* Unbreak searching software from /usr/local. There is no need to for all this sed magic, _CMAKE_INSTALL_DIR in UnixPaths.cmake does that for us already. Only X11BASE needs special attention. * Remove patch-ae which never worked in fact. * Bump PKGREVISION. Discussed-with: Mark Davies
Revision 1.4, Mon Aug 25 02:44:05 2008 UTC (5 years, 6 months ago) by bjs
Branch: MAIN
CVS Tags: pkgsrc-2008Q4-base, pkgsrc-2008Q4, pkgsrc-2008Q3-base, pkgsrc-2008Q3, cube-native-xorg-base, cube-native-xorg
Changes since 1.3: +1 -1 lines
FILE REMOVED
Update to cmake-2.6.1. I could not find any release notes concise enough to include here; the changelog for this release is here: <> For changes prior to this release, please see ${WRKSRC}/ChangeLog. While here, add a list of *.cmake files in which to replace /usr/${X11R6,local} with X11BASE and LOCALBASE, respectively. Also, the [pkgsrc-relative] API, e.g. 2.6 is now defined by a variable so that it can be used in pathnames for the build and the PLIST.
Revision 1.3 / (download) - annotate - [select for diffs], Sun Sep 24 16:22:16 2006 UTC (7 years, 5 months.2: +21 -27 lines
Diff to previous 1.2 (colored)
Replace hard-coded /usr/X11R6 with X11BASE, so that X11_TYPE != native for example has a change to find X11. Bump revision.
Revision 1.2, Mon Aug 2 13:08:09 2004 UTC (9 years, 7 months ago) by drochner
Branch: MAIN
CVS Tags:.1: +1 -1 lines
FILE REMOVED
update to 2.0.2 2.0 was a major feature release - too many to list here, see the included ChangeLog.* files for details. 2.0.x fixed bugs.
Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed May 7 11:55:03 2003 UTC (10 years, 10 months ago) by dmcmahill
Branch: TNF
CVS Tags: pkgsrc-base, pkgsrc-2004Q2-base, pkgsrc-2004Q2, pkgsrc-2004Q1-base, pkgsrc-2004Q1, pkgsrc-2003Q4-base, pkgsrc-2003Q4
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)
import cmake-1.6.6 CMake is an extensible, open-source system that manages the build process in an operating system executable, and may encounter optional build directives. This information is gathered into the cache, which may be changed by the user prior to the generation of the native build files.
Revision 1.1 / (download) - annotate - [select for diffs], Wed May 7 11:55:03 2003 UTC (10 years, 10 months. | http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/devel/cmake/patches/patch-aa | CC-MAIN-2014-10 | refinedweb | 712 | 75.4 |
In this article you will learn about the SSL (Secure Sockets Layer) in ASP.NET Web API.
Introduction
In this article you will learn about the Secure Sockets Layer (SSL) in the ASP.NET Web API. In the Web API there are many authentication schemes that are not secure over the HTTP. There are two authentications, Basic Authentication and Form Authentication. Both are sent the unencrypted references. If you want to secure the authentication then you must use SSL.
Enable the SSL
We can enable the SSL from the Visual Studio. To enable SSL, in the property window, there is s SSL Enabled property. Set this property to True. There is also generate the SSL URL in the property window.
Enforce the SSL in Web API
If both HTTPS and HTTP are available for accessing the site then the client can use HTTP. There are some resources that are allowed by you to be available through the HTTP. And the other resources require SSL. Now we use the action filter to require SSL, that is used for the protected resources.
Sample code
public class Attribute : AuthorizationFilterAttribute
{
public override void OnAuthorization(HttpActionContext actntext)
{
if (actntext.Request.RequestUri.Scheme != Uri.UriSchemeHttps)
{
actntext.Response = new HttpResponseMessage(System.Net.HttpStatusCode.Forbidden)
{
ReasonPhrase = "Need of HTTPS"
};
}
else
base.OnAuthorization(actntext);
}
}
Adding filter to Web API action
We use the namespace:
using System.Web.Mvc;
public class ValuesController : ApiController
// GET api/values
[RequireHttps]
public HttpResponseMessage Get() { ... }
}
Client certificates of SSL client
If the server wants to authenticate the server to the client then it provides the certificate. And SSL provides the certificate by using the public key infrastructure certificates. This is not a common thing for the client to provide the certificate to the client, but it is the only one option for the authenticating clients. To use the client certificate with SSL, the signed certificate needs to be distributed to the users.
Advantages
These certificate references are more powerful than username and password.
The SSL gives the purely secure channel with the authentication and message encryption.
Disadvantages
you need to obtain and manage the PKI certificates.
The necessary requirement is that the client platform must support the SSL client certificate.
For configuring IIS to accept the client certificates, open the IIS manager. Perform the following steps.
Click the site node in the tree view.
Double-click on the SSL setting feature.
There is a Client Certificates, now select one of these options:Accept.Require.
You can add this option to the ApplicationHost.config file. This file is located in the "Documents" -> "IISExpress" -> "congif" -> "applicationhost.config".
<system.webServer>
<security>
<access sslFlags="Ssl, SslNegotiateCert" />
</security>
</system.webServer>
There is a SslNegotiationCert, this is the flag that determines whether the IIS server will accept the Client certificate. If a certificate is necessary then we set the SslNegotiationCert flag.
Using client certificate in Web API
For using the client certificate we need to get the client certificate by invoking the method GetClientCertificate on the server side, that was generated on the request message. If no client certificate is available then it returns the null value. If it finds the client certificate then it returns an instance of X509Certificate2. We can use this instance to get the information from the certificate. And now use this information for the authentication.
X509Certificate2 certificate = Request.GetClientCertificate();
string user = certificate.Issuer;
string sub = certificate.Subject;
View All | https://www.c-sharpcorner.com/UploadFile/2b481f/ssl-in-Asp-Net-web-api/ | CC-MAIN-2020-24 | refinedweb | 563 | 51.75 |
Using Abstract Syntax Tree To Manipulate Code.
Meet abstract syntax tree (aka AST)
Abstract syntax trees are here to save the day. According to Wikipedia, Abstract syntax tree is a tree representation of the abstract syntactic structure of source code written in a programming language.
Well, if I word it according to my understanding, Abstract syntax tree (AST) helps to represent a piece of code in a form of a tree. This allows us to traverse the tree and examine the code or manipulate the tree nodes as we want.
Our job in hand is to change the name of the variable
x in the below code to ‘y’. So we have to convert this piece of code into an AST first.
var x = 5;
Converting code to AST
Transforming a piece of code into an AST is not a simple task. A source code parser will have to do this job for us. There are quite a few JavaScript parsers available. But Esprima is one of the very stable and actively maintained parser.
But instead of using Esprima, I’m going to use another tool called
recast. Recast uses Esprima internally to construct AST. You might ask why not use Esprima directly rather than using another library which uses Esprima internally. Well,
recast have some additional functionality we will require later.
import recast from 'recast'; // this is the code we have to modify var code = 'var x = 5;'; // parse the code and get the AST. Yes! It's that simple with recast or esprima. var ast = recast.parse(code);
Modifying the AST and re-generating code
So we have an AST, so we could change the nodes in the tree as we want. Let’s change the variable name from
x to
y with the following line of code.
// modify the AST as you want. ast.program.body[0].declarations[0].id.name = "y";
In the above example, I accessed a node directly and changed the name property. But how do I know the node that is holding the variable name?
Meet AST Explorer, a tool which will generate the AST of a code snippet in the browser. Examine how the AST of our code snippet looks like here.
But eventually, we have to turn the AST back to code for it be useful. Again we need someone to help with this as well. Thankfully
recast got this covered. Recast has a print method which takes in an AST and generates the code.
var updatedCode = recast.print(ast).code;
Take a look at the complete example here.
Yep! It’s that simple and so much fun to play around with AST and code manipulation. I got into code manipulation because of a side project I’m working on. Go ahead and build your-self a cool tool with the new trick you just learned.
Traversing an Abstract Syntax Tree,
estraverse makes traversing JavaScript ASTs a breeze.
Conclusion. | http://raathigesh.com/using-abstract-syntax-tree-to-manipulate-code/ | CC-MAIN-2017-26 | refinedweb | 488 | 74.79 |
Hi Alan, Alan Mackenzie <address@hidden> writes: > OK. Here's a first approximation to a solution, which I would be > grateful if you could try out on real code. Please let me know how well > it works, and if it introduces any nasty looking bugs. > > What I've done is to count nesting depth of braces inside a class or > namespace, etc. When that depth is 1, we're at the top level, and > anything looking like a function is fontified as one. When the depth is > more than 1, we're not at top level, and anything looking like a > function is fontified as a uniform initialisation. > > The following patch should apply OK to the savannah master branch: Thanks for the patch. I'm testing it now. It works fine with the example that I initally gave. However, this one does not work: template <class T> void barf (T t, const char *file_name) { std::ofstream fout (file_name); fout << t; fout.close (); } Here, "template <class T>" is what confuses the font-lock. In C++, these angle braces can be nested to an arbitrary depth. Oleh | https://lists.gnu.org/archive/html/emacs-devel/2016-09/msg00150.html | CC-MAIN-2020-16 | refinedweb | 185 | 73.47 |
Generate random hex color code in Java
In this tutorial, we will see how to generate random hexadecimal color code in Java. Colors are specified using hexadecimal values. It is in the form of a hex triplet, which represents three separate values specifying the levels of the component colors(RGB).
- It starts with a pound sign(#)
- There are only six digits.
- The digits comprise 0-9 and a-f.
For exampe, #ADC674 is a valid hexadecimal code.
It is generally used in HTML and websites and this code refers to the RGB color space.
Java program to generate Random Hex color code
In this program, we will use Random class to generate code.
- java.util package contains Random class.
- An instance of Random class is used to generate random numbers.
- If two instances have the same seed value, then they will generate the same sequence of random numbers.
Therefore, we call nextInt() method on that instance to generate random number. The parameter passed to this function is the maximum permissible value of the generated number(Excluding the limit). The maximum value in our case is ffffff.
Java Code:
import java.util.Random; public class Main { public static void main(String[] args) { // create object of Random class Random obj = new Random(); int rand_num = obj.nextInt(0xffffff + 1); // format it as hexadecimal string and print String colorCode = String.format("#%06x", rand_num); System.out.println(colorCode); } }
An important point to remember:
- If a number starts with 0x, it means the rest of the digits are interpreted as hex.
Further, I have used String.format() method to format the generated number into hexadecimal color code. Firstly, the String begins with “%” and the number specifies the minimum length of the string. For padding, we use the character “0“. By default, left padding is used.
Moreover, x indicates hexadecimal value.
Hence, we have satisfied all our requirements for hexadecimal color code.
Output:
#a3f688
Also read,
How to draw various shapes in Java Swing
Generate random hex CSS color code in JavaScript | https://www.codespeedy.com/generate-random-hex-color-code-in-java/ | CC-MAIN-2020-45 | refinedweb | 335 | 59.5 |
routine = array([['MO']], dtype='|S2')
dates = array([[datetime.datetime(2013, 2, 27, 13, 1, 42]])
counts = matrix([[ 25528.]])
sza = array([[ 126.77926586]])
error = matrix([[ 76.]])
point_sza = array([[ 0.]])
From here I put the data into a DataFrame:
- Code: Select all
import pandas as pd
from numpy import *
tmp = pd.DataFrame(hstack( (routine,counts,error,point_sza,sza) ),
columns = ['routine','counts','count_error','point_sza','sza'],
index = dates)
The problem is caused by the string (routine) that has dtype='S2' when I "hstack" the data:
- Code: Select all
>>> tmp
routine counts count_error point_sza sza
2013-02-27 13:01:42 MO 25 76 0. 12
Counts should be 25528, but it got cut to 25...and converted to string because of "routine".
Is there a way to create the DataFrame while maintaining the original type/length of my numerical values? | http://python-forum.org/viewtopic.php?f=6&t=4387&p=5564 | CC-MAIN-2016-22 | refinedweb | 136 | 68.47 |
Haskell/Simple input and output
Back to the real world[edit], whatever else is printed next will appear on a new line.
So now you should be thinking, "what is the type of the putStrLn function?" It takes a
String and gives… um… what? What do we call that? The program doesn't get something back that it can use in another function. Instead, the result involves having the computer change the screen. In other words, it does something in the world outside of the program. What type could that have? Let's see what GHCi[edit]
do notation provides a convenient means of putting actions together (which is essential in doing useful things with Haskell). Consider the following program:
Example: What is your name?
main = do putStrLn "Please enter your name:" name <- getLine putStrLn ("Hello, " ++ name ++ ", how are you?")
Note
Even though
do notation looks very different from the Haskell code we have seen so far, it is just syntactic sugar for a handful of functions, the most important of them being the
(>>=) operator.. What is its type?
Prelude> :t getLine getLine :: IO String
That means
getLine is an IO action that, when run, will return a
String. But what about the input? While functions have types like
a -> b which reflect that they take arguments and give back results,
getLine doesn't actually take an argument. It takes as input whatever is in the line in the terminal. However, that line in the outside world[edit][edit]
There are very few restrictions on which actions can have values obtained from them. Consider the following example where we put the results of each action into a variable (except the last... more on that later):
Example: putting all results into a variable
main = do x <- putStrLn "Please enter your name:" name <- getLine putStrLn ("Hello, " ++ name ++ ", how are you?")
The variable
x gets the value out of its action, but that isn't useful in this case because the action returns the unit value
(). So while we could technically get the value out of any action, it isn't always worth it.
So, what about the final action? Why can't we get a value out of that? Let's see what happens when we try:
Example: getting the value out of the last action
main = do x <- putStrLn "Please enter your name:" name <- getLine y <- putStrLn ("Hello, " ++ name ++ ", how are you?")
Whoops! Error!
HaskellWikibook.hs:5:2: The last statement in a 'do' construct must be an expression[edit]
Normal Haskell constructions like if/then/else can be used within the do notation, but you need to take some care here. For instance, in a simple "guess the number" program, we have:
doGuessing num = do putStrLn "Enter your guess:" guess <- getLine if (read guess) < num then do putStrLn "Too low!" doGuessing num else if (read guess) > num then do putStrLn "Too high!" doGuessing num else putStrLn "You Win!"
Remember that the if/then/else construction. That has the correct type. Let's now what we want.
Note: be careful if you find yourself thinking, "Well, I already started a do block; I don't need another one." We can't have code, and thus reject the program.
Actions under the microscope[edit][edit]
One temptation might be to simplify our program for getting a name and printing it back out. Here is one unsuccessful attempt:
Example: Why doesn't this work?
main = do putStrLn "What is your name? " putStrLn ("Hello " ++ getLine)
Ouch! Error!
HaskellWikiBook.hs:3:26: Couldn't match expected type `[Char]' against inferred type `IO String'
Let us boil the example above down to its simplest form. Would you expect this program to compile?
Example: This still does not work
main = do putStrLn getLine
For the most part, this is the same (attempted) program, except that we've stripped off the superfluous "What is your name" prompt as well as the polite "Hello". One trick to understanding this is to reason about it in terms of types. Let us compare:
putStrLn :: String -> IO () getLine :: IO String
We can use the same mental machinery we learned in Type basics to figure how this went wrong.
putStrLn is expecting a
String as input. We do not have a
String; we have something tantalisingly close: an
IO String. This represents an action that will give us a
String when it's run. To obtain the
String that
putStrLn wants, we need to run the action, and we do that with the ever-handy left arrow,
<-.
Example: This time it works
main = do name <- getLine putStrLn name
Working our way back up to the fancy example:
main = do putStrLn "What is your name? " name <- getLine putStrLn ("Hello " ++ name)
Now the name is the String we are looking for and everything is rolling again.
Mind your expression types too[edit]
So, we've made a big deal out of the idea that you can't use actions in situations that don't call for them. The converse of this is that you can't use non-actions in situations that expect actions. Say we want to greet the user, but this time we're so excited to meet them, we just have to SHOUT their name out:
Example: Exciting but incorrect. Why?
import Data.Char (toUpper) main = do name <- getLine loudName <- makeLoud name putStrLn ("Hello " ++ loudName ++ "!") putStrLn ("Oh boy! Am I excited to meet you, " ++ loudName) -- Don't worry too much about this function; it just converts a String to uppercase makeLoud :: String -> String makeLoud s = map toUpper s
This goes wrong...
Couldn't match expected type `IO' against inferred type `[]' Expected type: IO t Inferred type: String In a 'do' expression: loudName <- makeLoud name
This is similar to the problem we ran into above: we've got a mismatch between something expecting an IO type and something which does not produce IO. This time, the trouble is the left arrow
<-; we're trying to left-arrow a value of
makeLoud name, which really isn't left arrow material. It's basically the same mismatch we saw in the previous section, except now we're trying to use regular old String (the loud name) as an IO String. The latter is an action, something to be run, whereas the former is just an expression minding its own business. We cannot simply use
loudName = makeLoud name because a
do sequences actions, and
loudName = makeLoud name is not an action.
So how do we extricate ourselves from this mess? We have a number of options:
- We could find a way to turn
makeLoudinto an action, to make it return
IO String. However, we don't want to make actions go out into the world for no reason. Within our program, we can reliably verify how everything is working. When actions engage the outside world, our results are much less predictable. An IO
makeLoudwould be misguided. Consider another issue too: what if we wanted to use makeLoud from some other, non-IO, function? We really don't want to engage IO actions except when absolutely necessary.
- We could use a special code called
returnto promote the loud name into an action, writing something like
loudName <- return (makeLoud name). This is slightly better. We at least leave the
makeLoudfunction itself nice and IO-free whilst using it in an IO-compatible fashion. That's still moderately clunky because, by virtue of left arrow, we're implying that there's action to be had -- how exciting! -- only to let our reader down with a somewhat anticlimactic
return(note: we will learn more about appropriate uses for
returnin later chapters).
- Or we could use a let binding...
It turns out that Haskell has a special extra-convenient syntax for let bindings in actions. It looks a little like this:
Example:
let bindings in
do blocks.
main = do name <- getLine let loudName = makeLoud name putStrLn ("Hello " ++ loudName ++ "!") putStrLn ("Oh boy! Am I excited to meet you, " ++ loudName)
If you're paying attention, you might notice that the let binding above is missing an
in. This is because
let bindings inside
do blocks do not require the
in keyword. You could very well use it, but then you'd have messy extra do blocks. For what it's worth, the following two blocks of code are equivalent.
Learn more[edit] | https://en.wikibooks.org/wiki/Haskell/Simple_input_and_output | CC-MAIN-2016-44 | refinedweb | 1,389 | 71.95 |
print { open my $out, ">", "pidfile"; $out or die } $$, "\n";
File.open('pidfile', 'w+'){ |fh| fh.puts Process.pid }
I could have used ‘$$’ instead of Process.pid, but I prefer readability
PHP;
file_put_contents( 'pidfile', getmypid() );
Yeah I know, I know but anyway…
If you liked this blog, share the love:
May 27th, 2006 at 8:40 am
file_put_contents (and also file_get_contents) are absolute live savers. As long as the files to write or read aren’t too large, they’re great functions. And I find the PHP version of the above scripts to be the most… easily readable. Then again, I’ve not done much work in Perl or Ruby, so I’m probably a little biased!
May 27th, 2006 at 9:50 am
Just to defend the other languages, you can easily create a method/function that does the same thing as PHP’s file_put_contents(). But you are right, it is not built in.
Not to start a flame war, but I find Ruby’s way of doing things much nicer (most aspects, at least). However, for hardcore C-esque type programmers, Ruby’s syntax is a bit irregular. I have never used Perl, though, but I have heard it is similiar to PHP.
May 27th, 2006 at 10:01 am
I agree. I do find myself wishing for PHP’s file_put_contents method while in other languages.
But, just to have a little fun with Ruby:
May 27th, 2006 at 10:15 am
PHP’s huge library of built-in functions is definitely a strong point for the language.
May 27th, 2006 at 11:35 am
And the fact that they’re all in one flat global namespace is definitely a weak point for the language. ;)
May 27th, 2006 at 12:05 pm
Not really. Most of them (there are a few exceptions, unfortunately) are properly prefixed and don’t conflict with anything in user space anyway. The only majorly annoying naming clashes come from the SPL (which is too damned useful to ignore and yet uses up a lot of the really good names).
I’m not saying PHP doesn’t need namespaces (it does), but for most things there isn’t a huge tangible difference.
Namespaces only have three real advantages anyway:
1. You get shorter, cleaner function names WITHIN the namespace.
2. You get shorter, cleaner function names when using the namespace and there aren’t any conflicts (using mysql::query instead of mysql.query or mysql_query makes no real difference).
3. (if the language supports it, few do), you can import the namespace as an alias — something like “use namespace foo as bar; bar::stuff().
Anyway, that’s off topic.
PHP is great because it just makes sense. No stupid, hard to remember, obtuse operators (perl is the poster boy for this, but ruby has a lot of annoying ones as well), clean syntax that closely resembles the other languages that you work with on a regular basis (C, Java, Javascript, CSS to a certain extent). file_put_contents is just a good example, but in truth you see this all throughout php.
May 27th, 2006 at 6:05 pm
File.open('pidfile.txt', 'w+').write(Process.pid)
or:
def file_put_contents(file, contents) File.open(file, 'w+').write(contents) end
Or more rubyish:
def File.write(file, contents) File.open(file, 'w+').write(contents) end
But the first is good enough for me.
May 27th, 2006 at 6:06 pm
Also, I love how easy PHP is to install! I got really frustrated with perl and mod_perl.
May 27th, 2006 at 6:11 pm
Namespaces are just objects in Ruby, you can easily alias them.
May 27th, 2006 at 9:00 pm
For just straight function calls, you can do that in any language. It’s only really interesting when objects are involved.
May 27th, 2006 at 11:17 pm
This is a worst pro-PHP reason I’ve ever seen. One could write a followup “Reason to like Ruby” and compare foreach loops from other languages vs. iterators. And this could go on and on for every language…
Want
file_put_contentsin your language? Write it. You won’t notice the speed difference as opposed to built-ins because it’s a one liner in almost any interpreted language.
May 28th, 2006 at 2:40 am
My reason to hate PHP:
can not pass functions as arguments …
May 28th, 2006 at 2:42 am
Another reason to hate PHP: (just recalled from memory)
array syntax
vs
personally, I think array is the most powerful thing in PHP. but it has a really stupid syntax. array(array(array(…))) :(
May 28th, 2006 at 2:51 am
You say foreach and iterators like they are two different things. PHP does support both and quite well with SPL (another reason to love PHP/SPL). However, there isn’t any optimization that can be done with PHP iterators other than caching the output.
I have only tested iterators in Java, Perl, C++, and PHP. It would be unfair to compare Java, C++ iterators to PHP. I did compare Perl iteration against Java and Java won (however, it was only to prove my teacher wrong about the slowness of Java, but the tests were accurate).
It would be interesting to see iteration timed tests with PHP, Ruby, and Python and see how they stack up against one another.
May 28th, 2006 at 5:52 am
this is personal preference and has nothing to do with readabilty or ease of coding. harry demonestrated that what other languages do in kinda long unfriendly was was achieved with 1 easy line with PHP and I am sure that Harry isn’t implying that PHP is flawless, right Harry? ;)
May 28th, 2006 at 6:20 am
Another reason: it forces you to write ;;;; all the time. Another: explicit return is required. Another: classes are not first-class (;-)). Another: there are many anti-sql-injection/escape-functions, but which works/is safe? Another: strange naming: str_replace or strreplace? strlen or str_len? Etc. etc…
May 28th, 2006 at 6:25 am
Speed doesn’t matter much? The syntax/semantics does/do:
or:
I prefer the first.
May 28th, 2006 at 10:03 am
Some random provokers;
Etnu already been over this but another angle on why this is less significant (compared to other issues PHP has) - by way of dubious analogy - consider Wikipedia: they’re using a single namespace for all documents and have considerably more documents than PHP has functions. The point being, managing all those functions or conflicts with user defined functions are not really problems PHP has. It just isn’t pretty (and suffers from what Etnu described).
I say this because this problem gets quoted often is a major PHP problem. For me far more significant is situations where script X.php will run under one server but not on a different server running the same PHP version. If you’re writing code to distribute, the list of potential “gotchas” is many. For example, off the top of my head, consider addslashes() - note this one sentence;
Say no more.
Well … you can but I guess you mean closures, which PHP doesn’t really do. There’s create_function but this is really eval() by another name. You can pass a function name in a variable then call it like a function e.g.;
In practice you need to use objects, which you can pass around.
Agreed.
Where I think this is interesting is as illustrative of how PHP evolves and how these functions came to be part of the core distribution.
More in depth than you want but check this out: - of the dynamic languages, Python comes out looking good all round.
Yeah but that arguing leads to Python, where you can also skip curly brackets.
You mean PHP doesn’t have implicit returns? PHP functions don’t have to have a return statement, but if they don’t, they implicitly return NULL, not the value of the last executed statement. Personally not entirely convinced of the merit of implicit returns, having run into them in Perl. If you want to reinvent LISP OK, but otherwise think it’s bordering on obsession with syntactic glory.
That’s a good point. And neither are functions. Shame in both cases although I can imagine potential performance problems if they get tacked on to PHP later - have class as “concrete” helps keep a bunch of evaluation to “compile-time”, when the script is parsed (making the OPCODE cache actually useful). Doing this well is probably a massive effort.
See the start of this comment ;)
Yeah but I don’t regard that as a real issue. Once you know, you know and failing that, an editor with auto-complete will help.
That simplifies via array_map() e.g. (create_function but with less code);
Safer is this;
May 28th, 2006 at 11:25 am
I guess it depends on what your personal situation is. You complain of the difficulty in writing PHP that has to be distributed to servers running different PHP versions, or running different configurations. If you are the type that writes code that has to be distributed that way, I can see why the lack of namespaces would be just a minor irritant comparatively. However, for quite a lot of us in “the enterprise” (sorry to bring that term into the discussion) we are in complete control of the version of PHP and the configuration on all the servers we are concerned with deploying on, so other issues (like the no-namespaces issue) becomes more of a thorn in the side.
What makes a good system for naming Wiki documents and what makes a good system for referring to global symbols within program code are not the same. Namespacing is all about avoiding name collisions when you have a set of names that may (usually will) have to be combined with an as-yet-unknown other set of names. Is this an issue that Wikipedia has to deal with on a regular basis? Do they often merge their huge database of wiki pages with other wikis? I think not. A new article has to be created, so someone creates it, and if they’ve chosen a name that is already in use then they simply choose another. No big deal.
Program code is different. Naming collisions are a very real problem once you have to combine a non-trivial amount of code with another non-trivial amount of code. If you have a collision you get to choose one of the colliding symbols and give it a new name, which forces you to update all references to it. If you only have a few files and a few hundred lines of code, this is no big deal. If you have code numbering in the tens of thousands of lines, it becomes more irritating. Especially when working in a language that lacks automatic refactoring tools. (Yes, I know about grep, awk, sed, etc. …) And if the code you are integrating doesn’t exist in a vacuum (i.e. other projects depend on it) then this irritation can increase exponentially.
Back to your Wiki analogy… Let’s suppose that large wiki’s did frequently merge with each other. Imagine the case where a wiki page in one system has hundreds of references to it sprinkled throughout, and the same-named page in the other system similarly has hundreds of references to it, and they now have to be integrated? If this was a common need then I suspect wiki’s would develop a namespacing system very quickly.
Of course, namespace collisions can be avoided in PHP by giving all of your class names Long_And_Cumbersome_Prefixes, but that just trades one irritation for another. Now you have excessively long identifiers all over the place, which is an impediment to both reading and writing the code.
I’ll admit that the lack of namespaces for functions isn’t really much of a practical problem, although it may make it more difficult for some newcomers to intuit the name or location of a desired function (for example, in Java if you need to know how to lowercase a string, you can guess that it’s probably a method of the String object), and it most certainly offends aesthetically. However, the lack of namespaces for classes is a very real problem that many people have with PHP and this is why it is so often quoted. If I never see another class named something like “PHPUnit2_Extensions_MockObject_Builder_InvocationMocker” it will be too soon.
May 29th, 2006 at 10:49 am
File.WriteAllText( “pidfile”, getmypid() );
May 29th, 2006 at 2:31 pm
file_get_contents is still overlooked, just consider what file_get_contents can do..
* Read over File System
* Read over web
* Read over SSL
* Unzip gziped streams directly..
and probably more..
May 29th, 2006 at 4:46 pm
Agreed, that is cool.
May 29th, 2006 at 11:40 pm
Or, you use ASP.NET and write your own functions and create you own objects in an ordered managed environment.
May 30th, 2006 at 12:34 am
I would really, really like to see namespaces, but I would rather it function more like D or Java and not where you explicitly assign the namespace, but I think both explicit and implicit namespace support would be good.
However, I don’t want PHP to become Java (or do I? Hmm, perhaps not). I do prefer objects over functions, which is why I was interested in Python, but I’m not about to join a cult just to program a language.
May 30th, 2006 at 2:24 pm
You don’t have closures, but you most certainly can pass functions as arguments.
Not having closures is annoying, but, well, most programmers don’t really understand closures anyway. As much as I love functional languages, getting other people to really understand them is difficult unless you’re lucky enough to only work with really intelligent people.
May 30th, 2006 at 8:17 pm
You should check out C#’s equivalent… you have to open a streamreader, close it… around 3-4 lines
But hey! Just condense it into a function and keep it in the toolbox ;)
May 30th, 2006 at 11:30 pm
I think a lot of people are missing the point of this. I believe what Harry is trying to point out is that most of the functionality programmers need is well named and works as you expect.
file_put_contents( 'pidfile', getmypid() );
It’s simple, it works how you expect and it’s built in. You can easily recreate this in any language by writing your own function, but the point is it’s already there and ready in PHP. This is the main reason I still use PHP for the majority of my personal projects even though I’m primarily a .NET developer at work.
Remember what PHP was made for, it wasn’t intended to be a supercharged, enterprise development tool. It was designed to be an easily approachable server-side language, and one-liners like this are a perfect example of how PHP has maintained that ease-of-use even though it has grown well beyond initial expectations.
May 31st, 2006 at 1:18 am
I don’t think that could have been said much better, LunchBox.
May 31st, 2006 at 1:26 am
you can actually go back from .NET to PHP and feel good? :)
May 31st, 2006 at 3:15 pm
Yes I do mean closures. I like Scheme :) Variable functions and call_user_func() are cumbersome.
Anyway, one possible workaround:
And the array() syntax
Yes I admit it’s just personal preference, but when you realize PHP’s array is so powerful and you use it intensively in your code, you might also be sad to write array(array(array(…))), like I do :P
May 31st, 2006 at 3:19 pm
I don’t know why the code doesn’t show up in the last post. Paste it again here:
Hope it works :(
May 31st, 2006 at 3:26 pm
Agree, and especially when you simulate namespaces using objects, like:
Yet it’s a shame there’s not way to simulate namespaces for objects. :(
May 31st, 2006 at 6:30 pm
I think SitePoint should improve the code block … it sucks :(
June 1st, 2006 at 5:47 am
I could argue that once you know that
xyz_abc_dfsbfgjdsfbgvfhgsdfmeans
square root, you know and never need to think about it. And the language is independent of an editor, so that argument doesn’t hold (unless the language is, say Smalltalk with Squeak, but it’s still essentially independent of the implementation). Consistency means I can focus on the real things, and need not stop to think twice about a choice the language inventor may or may not have made.
PHP doesn’t make sense. Is it fileputcontents or file_put_contents or file_putcontents? The syntax isn’t particularly “clean” either. It does resemble C etc., but it’s not very “clean”. That’s a hard concept to define, but let’s just say it means easy to read and easy to write. You need some concistency to achieve that. PHP misses that.
Dumb languages make for dumb users. The best languages are those that aren’t dumb. If you don’t understand closures, you can still use them if they scale down (they certainly do in Ruby). Your example is just a shortcut for eval. It’s not passing a function, it’s syntax sugar for evaluating a string. Even C has function pointers.
June 1st, 2006 at 10:40 am
Point taken, zjcboy. I fixed your code (I think).
It’s actually works ok, but we haven’t made it very easy to use — I’ll look at that. There’s a syntax guide at the bottom of the right column.
You can use
<code>to markup inline code in your comments.
Use
<pre>tags to wrap
<code>for code blocks. Optionally add a class to the
<code>to get syntax coloring.
June 2nd, 2006 at 3:55 pm
AlexW,
Thank you for fixing my code. :)
Sorry I didn’t notice the syntax guide - the page is too long and the guide is far from the text field.
Isn’t it a good idea to place the syntax guide directly below the text field? Just for convenience :P
June 4th, 2006 at 4:33 am
Ruturaj K. Vartak Says:
It can read anything you imagine. Just write a stream wrapper, register it with a name (say, mywrapper) and you can happily
file_get_contents('mywrapper://...')for the rest of your life.
TheLunchBox Says:
Yeah, you are returning to the most used pro-PHP quote: “It just works”. PHP is robust, fast, it works; all of the functions you need are already there. It’s stable and easy to deploy; it is well-known and established among (web) programmers.
But to me there is more to a good language than “it just works”. There are naming standards, syntactic sugar, language constructs, code beauty. PHP5 is making code beautiful again by putting things into classes, by providing common database access (PDO), by use of magic methods in objects and exceptions, and so on. But where is your PHP5 adoption? Large majority doesn’t use it - PHP4 “just works” for everybody. “Just works” being spaghetti code, no separation or reusability, hard maintainance,
mysql_queryand bunches of globals or constants sprinkled everywhere… and so on.
PHP spoiled people - it’s time to get them in shape. It will be a hard process… I just hope Zend Framework or ezComponents save PHP.
June 4th, 2006 at 6:40 am
I agree that you don’t understand them the first time you see them, but they were easy to understand for me. Understanding for loops was much harder… (note that I’m not saying that for loops are harder than closures, but it is normal to learn for loops before closures (unless you’re starting with Scheme/Haskell/etc), and in that stage for loops are hard to understand).
Closures are like OOP objects, but different. An object = Data + code = instance variables with methods, A closure = Code + data = a function + variables in scope.
June 6th, 2006 at 12:06 am
I don’t know people are arguing over closures. In PHP 5 you can have use the Factory class model, which I think is the same thing and much better.
Doing some JavaScript over the past week has left me feeling happy about JavaScript function closures. However, while it is easy to understand, I don’t see it as any different from the Factory model, just different name.
What is annoying however in JavaScript is the this scope forcing you to use function closures. I think PHP is great that you don’t NEED closures, I can create closures in PHP and call it a hack all you want, but a closure is a closure no matter the syntax.
Writing a function inside a function I think leads to bad code. Write a class and just make the function private and return it. Be done with it.
What PHP 5 did that is also great is Reflection and I don’t know Ruby or Python to know if they also have this feature. What is nice about it is that it is easy (if however limited it is at this point) and straightforward. Look at it to see how PHP is moving forward and behold the power of PHP 5.
I do recall an article or blog post saying that it is pointless to compare languages as being better than the other. This is true. Your choice of Programming language is your own and saying it is better because of this and this feature to convice someone else isn’t going to work because they would have another feature that they love about their language.
Another way to look at it, it is like saying English is better than some other language because of its character base.
June 6th, 2006 at 4:09 pm
santosj, I don’t know which you refer to, but factory method / abstract factory has nothing to do with closures.
A key point of closures is that they can “capture” variables from the scope where they are defined, but access them when executed later. In a number of situations this enable the programmer to significantly cut down on the code, while more efficiently conveying the intention. Less code = less bugs.
PHP, Ruby, Perl, C#, Basic and assembly language are all turing complete, which means that any program can eventually be written with any language.
But that is not a test of the feasibility of a language in a given problem domain. It does not mean that they are equally well suited for any task. Nor does it mean that they are at the end of the evolution and should not try to learn from eachother.
PHP has some significant problems when compared to more clean, strong conceptual languages like Ruby, C#, Java and even EcmaScript (JavaScript).
Robust programming language design is very hard to do. Sometimes when you put in a feature it does not pan out as expected when released for the general use (abuse) by the sometimes less than stellar developer. Java has got issues with checked exceptions. PHP has problems taming variable interpolation, single namespace, inconsequent(multiple) naming conventions, bad namings, wishy-washy OO support, among other things.
June 7th, 2006 at 5:25 am
You don’t understand, closures can introduce bugs unless you know what you are doing. Using JavaScript as an example.
A simple way to fix scope issue is this hack.
var _this = this; var func = function() {_this.function()}
I see no difference from
function func1() { var func2 = function() { return 'test'; } return func2; }
class func1 { public function __construct() { return 'test'; } }
That fact that you start classes with the function doesn’t help matters.
An closure in PHP
class Test { public function __construct() { return $this->testString(); } private function testString() { return 'test'; } }
Being able to return functions means nothing at all.
These are the result of Poor Programming Practices and not bad programming languages:
Naming Conventions
Bad Namings
“Wishy-Washy OO Support” is just what you tell your friends, but I don’t think anyone else buys it. PHP 5 should fix all of your troubles with PHP OO. However, I do wish it was optimized better, but PHP is not Java.
June 8th, 2006 at 5:40 pm
I discovered Php 3 years ago.
My professionnal experience is on huge computer (IBM Mainframe, MVS)
My experience in programming was with Basic, Pascal and Cobol.
For personnal purposes i started HTML about 10 years ago,
Javascript 3 years ago.
I found PHP very easy to install on my PC Win XP (Apache too…).
And had in a week time the ability to develop a new website for a local association.
So has i have no other experience in other web server programming language, PHP IS MY FAVORITE.
Easy to implement
Easy to use.
June 8th, 2006 at 10:04 pm
June 8th, 2006 at 10:50 pm
Programming always requires a learning curve. I’ve seen a fairly well established shopping cart system that was written in Perl that’s used on quite a few sites. However recently having to configure it myself, I found myself wondering where the ease in administering the product is. Especially when the product has it’s own additional language (plus associated syntax) on top of Perl, which is all imbedded within a file with an extension of ‘.html’.
Now mind you the product is being taken away from it’s original intent (shopping cart system), and used for another (auction system).
Personally I often find it easier to create a system from scratch, because having to modify some of the hideous code that’s out there in virtually any language, isn’t a very good use of my time.
There are a lot of programmers that don’t follow the KISS rule. Having configuration files in 6+ different areas is detrimental to ease of configuration of ANY product, no matter what the maturity level of the product is.
Any my worst pet peeve is lack of cleanup of unnecessary code/files for any given product. If you remove a need for a function/class, just get rid of the darn function/class, don’t leave it around for posterity’s sake (that’s what CVS/SourceSafe, etc. are for).
June 8th, 2006 at 11:19 pm
domain specific languages anyone? Ruby is very good for creating domain specific languages as opposed to PHP.
June 9th, 2006 at 3:42 am
What the h*ll does that mean?
June 9th, 2006 at 10:24 am
I programmed in PHP more than five years and I can say that the PHP built-in functions are far less practical and useful than the Ruby built-in features (blocks, mixins, modules and a long etc.)
And, of course, things like file_get_contents don’t make PHP to be better than any other language… Harry, Can you do better to demonstrate me that PHP is better than Ruby?
June 9th, 2006 at 5:50 pm
Nothing really. It’s just a pure display of fluff and non-sense.
June 9th, 2006 at 8:02 pm
Fenrir2 gave this as a code example for why he dislikes PHP.
$array = array(1, 2, 3); $ret = array(); foreach($array as $n) { $ret[] = $n * 2; } return $ret;
If you want a single line you could do this…
array_walk($n = array(1, 2, 3), create_function('&$elem',$elem *= 2;'));
It’s definately easier to understand than his prefered example of
[1, 2, 3].map{|n| n * 2}
:)
June 9th, 2006 at 10:50 pm
Mark, you are kidding, right?
June 10th, 2006 at 3:27 am
I guess so. The Ruby code is shorter and cleaner, and that’s the point of what I consider “good code”. :)
June 10th, 2006 at 4:13 am
To me the Ruby code is about as obscure as you can get and I have been programming in a number of languages since the late 1970’s.
Just because it is shorter doesn’t make it cleaner. In most cases the shorter it is the more confusing and obscure it will be. It also doesn’t mean it is any faster. :) I have seen some very short code that is slow and ponderous compared to code that is longer and easier to understand while being faster.
Just saying it is shorter makes it better is a misnomer when it comes to programming languages. I can make some very small code that is a pain for anyone to decipher.
When I look at anything written with Ruby I get the impression the language was created by someone with a bad case of dyslexia.
At the least, someone trying to pull a prank on programmers by making a language that isn’t that logical while using syntax that fosters more than a little obfuscation.
June 10th, 2006 at 4:32 am
I for did not claim that shorter is better. That’s not an absolute. But the claim has some merit to it, because simpler is better, and shorter is often simpler.
In your samples, the ruby version is hands down simpler. It’s not that the PHP version is longer, it is the fact that it includes script code in string literal, passed to a function which parses and executes a function?
The ruby version simple makes use of the built-in map algorithm. No extra parsing. To the point. And yes, shorter.
I’ve never programmed in ruby, but I do have experience with a lot of other languages. I don’t need to know every detail of ruby to recognize it a a very clean language (although I generally dislikes weakly typed/dynamically typed languages).
June 10th, 2006 at 3:41 pm
No no no~, I didn’t say “shorter = cleaner”, I said the Ruby code is “shorter AND cleaner”. The point is “cleaner”. Given two pieces of “clean code”, the “shorter” one is preferred.
June 10th, 2006 at 3:48 pm
Or state it another way:
“clean” reduces the headache to understand the code
“short” reduces the boredom to understand the code
and when the two conflict, choose “clean” first, because boredom is better than headache :)
June 10th, 2006 at 4:40 pm
Well, Ruby is definately not cleaner code. It seems to be designed to confuse people on purpose. :(
June 10th, 2006 at 9:18 pm
But I think in your example the Ruby code is cleaner AND shorter :)
June 11th, 2006 at 4:06 am
Change cleaner to confusing and I will agree. :D
June 12th, 2006 at 4:24 pm
Is it possible to read a file over web in Ruby?
July 19th, 2006 at 8:31 pm
How do I check for a file’s existense via ruby without using exceptions? :)
August 4th, 2006 at 7:10 pm
I’ve studied Ruby for 2 weeks. After my hair became green, I moved back to PHP. IMHO Ruby sucks. | http://www.sitepoint.com/blogs/2006/05/27/reason-to-like-php/ | crawl-001 | refinedweb | 5,198 | 71.14 |
Myro Hardware
Myro currently supports two robots, with the plans to add many more. To see the current parts list, see Myro Development.
Contents
Parallax's Scribbler
The Scribbler from Parallax has the following properties:
- line (2 IR, binary)
- obstacle (2 front IR, binary)
- stall
- light (3 front, continuous)
- two-frequency tone generator (cannot handle commands while playing tones)
- 6 AA batteries (not included; no recharger included)
- can hold a pen in center of robot
- no odometry
- no side range sensors
Combined with our hardware enhancements, it becomes a wireless Bluetooth robot (see USB/Bluetooth Adapters and Myro Development for more information).
All of our documentation and software written so far applies specifically to the Scribbler. See Introduction to Computer Science via Robots and the Myro Reference Manual.
Surveyor's SRV-1
The SRV-1 from Surveyor has a camera, and therefore has additional functions not (yet) found on the Scribbler. In addition, it doesn't have line sensors, but does have 4 IR sensors facing front, left, back, and right.
- Camera (up to 320x240 resolution; 640x480 is possible, but wireless communication doesn't support it yet)
- Zigbee 802.15.4 wireless communications
- dual tread
- 4 IR (front, left, back, right, continuous)
Before you can connect to the SRV-1, you'll need to find your com-port number. To find your com-port number, do the following (on a P.C.):
- On the Start Menu, go to the Control Panel.
- Now you want to get to the System icon, and how you do this depends on your Control panel's current View type:
- A. If you're in Category View (it says "Pick a Category" at the top of the file and often, the file background will be periwinkle color):
- Click on Performance and Maintenance.
- Click the System icon.
- B. If you're in Classic View (there are many icons in the file and the file background is white):
- Double-click the System icon.
- In the System Properties menu that comes up, click on the Hardware Tab (at the top).
- Now click on the "Device Manager" button.
- Click on the 'plus' sign beside "Ports (COM & LPT)".
- Find the COM port number that's next to the "Bridge Controller".
That's your COM port number - with it, you'll be able to open a connection between the computer and your robot.
You can use the SRV-1 in Myro like:
>>> from myro import * >>> robot = Surveyor("com4") >>> robot.watch()
or with the standard functional Myro interface:
>>> from myro import * >>> Surveyor("com4") >>> joyStick(1) >>> turnLeft(.5) >>> forward(.7, 5)
From the watch window you can click and drag a rectangle with the left, right, or middle mouse buttons. Each button is connected to an associated color set (left = 0, right = 2, middle = 1). By clicking and dragging a rectangle over a color, you will store that color into the associated set number. This will allow you to track an object by that color.
Here is the watch window showing a view of an orange golf ball.
Clicking on the golf ball with the left mouse button and dragging just a bit will select the colors of the golf ball and store them in the 0 color set location. That will then trigger the blob tracking, show here:
Standard Myro Commands
Standard commands that also work with the SRV-1:
>>> robot.get("all") >>> robot.get("ir") # returns [front, left, back, right] >>> robot.get("config") >>> robot.get("name") >>> robot.get("version") >>> robot.beep(1, freq) # plays through computer >>> robot.speak("Hello") # plays through computer
Additional SRV-1 Commands
The SRV-1 adds the following commands to Myro in addition to those described in Introduction to Computer Science via Robots and the Myro Reference Manual:
robot.watch() or watch() - open a window for view live camera images
robot.getBlob(colorset) - return the x1, y1, x2, y2, matchcount of the blob that goes with colorset. Click and drag in the watch window to sample colors and store in colorset location (0, 1, or 2 for left, right, and center mouse buttons)
robot.sampleGroundColor() - resample the background colors for the "scan" command
robot.get("image") or robot.getImage() - returns a JPG (should return a XxYx3 matrix)
robot.get("resolution") - default value is (160,128), the width, height of camera view
robot.get("scan") or robot.getScan() - returns a list of "distances" to objects that have changed in image
robot.set("resolution",(ROWS, COLS)) or robot.setResolution((ROWS, COLS)) - changes the dimensions of the images.
robot.setSwarmMode("on"|"off") - puts the Scribbler in "swarm" mode
Differences
One difference in the SRV-1 is that the infrared readings are continuous values between 0 and 1, rather than just binary 0 or 1 as with the Scribbler.
Finding the Surveyor’s IR values using the joystick command
The joystick(1) command returns a set of IR values. Identifying which of these IR values corresponds to which IR sensor location on the actual Surveyor can be confusing.
Below is a picture of the SRV-1 with its various IR sensor locations. Then follows a picture of the joystick window with the IR sensor location written in where normally the IR reading would be provided.
When using joystick(1), here are the sensor locations corresponding to the IR readings you'll get (see green regions):
Watch Window Commands
The watch window is mostly used as a GUI for displaying and selecting blob-tracking colors. However, there is also an experimental mode that displays the window in non-continuous mode and allows you to enter Python commands.
>>> robot.watch(0) # non-continuous mode allows # Python commands with window in view # Leave window opened >>> s= robot.getScan() >>> robot.window.updateScan(s) # draws scan in window >>> robot.update() # or >>> robot.window.update()
Sample SRV-1 Brain
Here is a sample control program that will turn left or right to track something:
from myro import * robot = Surveyor("com4") robot.watch() # click and drag on something to track with left mouse button # close window while True: x1, y1, x2, y2, count = robot.getBlob(0) centerx = (x1 + x2) / 2 centery = (y1 + y2) / 2 if centerx < 80: # on left robot.turnLeft(.6) elif centerx > 80: # on right robot.turnRight(.6) wait(.1)
Change the program to stop when close and move forward when far from an object.
Additional Information
Support for the SRV-1 is under development. Please see for more information on what the SRV-1 is capable of doing.
Here is a sample of how you can send raw protocol commands to the SRV-1:
robot.ser.write("dr\n") robot.ser.readline()
There are also some functions defined in the myro.robot.surveyor package to help in raw robot communication:
>>> from myro.robot.surveyor import * >>> encode(15) '\x0f' >>> dec2hex(32) '20' >>> hex2dec("0FA2") 4002 | http://wiki.roboteducation.org/index.php?title=Myro_Hardware&oldid=2633 | CC-MAIN-2019-51 | refinedweb | 1,128 | 55.34 |
The C++ preprocessor comes from the C legacy that many supporters of the language want to go away. The preprocessor step does exactly that; it compensates for some of the deficiencies of C by working on the source text, replacing symbolic constants by numbers, etc. Because these deficiencies have mostly been addressed, the separate preprocessing step seems very old-fashioned and inelegant. But the inclusion of files, conditional compilation, and so on depend on the preprocessor so strongly that no proposal to retire it has been successful.
I think most people are in agreement that inline functions and constants are much better than macros. The basic problem is that the preprocessor actually does text substitution on what the compiler is going to see. So macro-defined constants appear to the compiler as plain numbers. If I define PI in the old-fashioned way, as follows, then subsequently the debugger will have no knowledge of this symbolic constant, because it literally did not see it:
#define PI 3.1412
Simple-minded text substitution can easily cause havoc and is not saved by putting in parentheses:
#define SQR1(x) x*x #define SQR2(x) (x)*(x) ... SQR1(1+y) => 1+y*1+y bad! SQR2(1+y) => (1+y)*(1+y) ok SQR2(sin(x)) => (sin(x))*(sin(x)) ok - eval. twice SQR2(i++) => (i++)*(i++) bad - eval. twice!
This vulnerability to side effects is the most serious problem affecting all macros. (Yes, I know the traditional hack in this case, but it has a serious weakness.) Inline functions do a much better job, and are just as fast. Again, once macros get any larger than SQR, then you are lost if you are trying to browse for a macro symbol or trace through a macro call. Debuggability and browsability are often unappreciated qualities when evaluating coding idioms; in this case, they agree that macros stink.
Another serious problem with macros is related to their lack of browsability; they are completely outside the C++ scoping system. You never know when a macro is going to clobber your program text in some strange way. (Potential namespace pollution problems are nothing compared to this one!) So, a naming convention is essential; any macros must be in uppercase and have at least one argument, so they don't conflict with any symbolic constants. The only type-checking you have with macros will be for the number of arguments, so it's wise to use this. Of course, macros also have an important role to play in conditional compilation, so such symbols must also be distinctly named (initial underscores are useful).
I have rehashed all these old issues so you can appreciate the strict limits we must place on any useful macro. The first one I'll introduce is a modified version of the FOR macro:
#define FOR(i,n) for(int i = 0, _ct = (n); i < _ct; i++)
This is free of the side-effect problem because a temporary variable is used to contain the loop count. (I am assuming that the compiler has the proper scoping for variables declared like this! Both i and _ct must be private to the loop. The Microsoft compiler will finally be compliant on this irritating item this year.) If n is a constant, then a good compiler will eliminate the local variable, so no penalty for correctness is necessary here.
My argument is that using FOR consistently leads to fewer errors and improved code readability. One problem with typing the for-statement is that the loop variable is repeated three times, so mistakes happen. My favorite is typing an i instead of a j in a nested loop:
for(int i = 0; i < n; i++) for(int j = 0; i < m; j++) ...
Note here that slight differences are invisible in the lexical noise. If I see FOR(k,m), then I know this is a normal k = 0..m-1 loop, whereas if I see a for-statement I know it deviates from this pattern (like for(k = 0; k <= m; k++)). So, exceptional cases are made more visible. I find it entertaining that these statement macros are actually safer in standard C++ because you can define local loop variables.
In my article called "Overdoing Templates," I point out that C++ is not good at internal iterators. Here is a typical situation:
void has_expired(Shape *ps) { return ps->modified_time() < expiry_time; } ... int cnt = std::count_if(lsl.begin(),lsl.end(),has_expired);
Compare this with
list<Shape *>::iterator sli; int cnt = 0; for(sli = lsl.begin(); sli != lsl.end(); ++sli) if ((*sli)->modified_time() < expiry_time) ++cnt;
This is much better behaved; the condition within the loop is explicit, and the scope of expiry_time (which is effectively global in the first version) can be local. The explicit declaration of an iterator does make this more verbose, however, and it's good practice to use typedefs (such as 'ShapeList') here.
I want to introduce a few candidate statement macros to make this common pattern even easier on the eye. First, let me introduce GCC's typeof operator, which makes a lot of template trickery quite straightforward. It takes an expression (which, as with sizeof, is not evaluated), and deduces its type, and can be used in declarations wherever a type is required:
double x1 = 2.3; typeof(x) x2 = x1; typeof(&x) px = &x1;
I'm presenting typeof as a part of C++ because Bjarne Stroustrup would like to see it included in the next revision of the standard, and it's a cool feature that needs every vote it can get. With it, I can write the FORALL statement macro, and express our example more simply:
#define FORALL(it,c) \ for(typeof((c).begin()) it = (c).begin(); \ it != (c).end(); ++it) ... int cnt = 0; FORALL(sli,ls) if ((*sli)->modified_time() < expiry_time) ++cnt;
This statement macro works with any container-like object; that is, any type that defines an iterator and begin()/end(). But it suffers from the side-effect problem. It should not be called when the container argument is some non-trivial expression, such as a function call, because that expression must be evaluated for each iteration of the loop. And there is no way to enforce that restriction, because macros are too dumb. So FORALL does not meet our criterion as a "safe" statement macro. Besides, it simply cannot be expressed in the standard language.
A better candidate is FOR_EACH, which is a construct that is found in many languages. For instance, AWK has 'for(i in array)' for iterating over all keys in an associative array, and Visual Basic (and now C#) has FOR EACH. I will show that FOR_EACH is a much better-behaved statement macro, and it can in fact be implemented using the standard language, although not so efficiently. This is what I want to be able to say:
int cnt = 0; Shape *ps; FOR_EACH(ps,ls) if (ps->modified_time() < expiry_time) ++cnt;
Note that this form makes it hard to accidentally modify the list, and as a bonus, is rather more debuggable. I bring this up because debugging code using the standard containers can be frustrating. If sli is an iterator, then *sli is the valuebut the built-in expression evaluators in gdb and Visual Studio can't understand these smart pointers.
The FOR_EACH construct needs a special kind of iterator that binds a variable reference to each object in turn. When we ask this iterator for the next element, it assigns the next value to the variable reference. Eventually, it signals to the caller that there are no more elements in the collection, and the loop can terminate. The implementation using typeof follows:
// foreach.h template <class C, class T> struct _ForEach { typename C::iterator m_it,m_end; T& m_var; _ForEach(C& c, T& t) : m_var(t) { m_it = c.begin(); m_end = c.end(); } bool get() { bool res = m_it != m_end; if (res) m_var = *m_it; return res; } void next() { ++m_it; } }; #define FOR_EACH(v,c) \ for(_ForEach<typeof(c),typeof(v)> _fe(c,v); \ _fe.get(); _fe.next())
The ForEach constructor requires two things: a reference and a container-like object. These are only evaluated once as arguments, so there are no side effects. So FOR_EACH is valid in a number of contexts. Please note that it is better for containers of pointers or small objects because copying of each element takes place in turn.
The typeof operator is essential here because template classes will not deduce their types from their constructor arguments. But you can actually implement FOR_EACH without typeof, using the fact that function templates can deduce their argument types. However, you cannot declare the concrete type, so it must be derived from an abstract base and then created dynamically. The listing can be found here.
int i; string s = "hello"; // gives 104 101 108 108 111 FOR_EACH(i,s) cout << i << ' '; list<string> lss; ... FOR_EACH(s,lss) ... // may involve excessive copying!
How efficient is FOR_EACH? Tests with iterating through a list show that the typeof version is only about 20% slower than the explicit loop because the reference iterator code can be easily inlined. The standard version is nearly three times slower because of the virtual method calls. Even so, in a real application, its use would most likely have no discernible effect on the total run time.
A serious criticism of statement macros is that they allow people to invent their own private language that ends up being less readable and maintainable. However, in a large project, programmers will fashion an appropriate idiom for the job in hand; hopefully, they leave documentation about their choices. You certainly don't need the preprocessor to generate a private language. One or two new control constructs can be introduced on a per-case basis without affecting readability adversely. I'm not suggesting that programmers should be given carte blanche to make their C++ look like Basic or Algol 68, but a case can be made for using statement macros to improve code readability. This is particularly true for the more informal code that gets generated in interactive exploration and test frameworking.
Macros still remain outside of the language, and for this reason, I don't expect much support on this modest position. It is interesting to speculate about what extra features C++ would need to support these custom control structures. Here is what a statement template might look like:
template <class T, class S> __statement FOR(T t, S e) for(int t = 0; t < e; t++)
It would still probably involve a lexical substitution, but done by the compiler, not the preprocessor. FOR is now a proper C++ symbol and can be properly scoped. Most importantly, potential side effects would automatically be eliminated because e will only be evaluated once. The macro FORALL can now safely be defined. Here is an example that cannot be done reliably using the preprocessor; an alternative implementation of Bjarne Stroustrup's idea of input sequences.
template <class C> __statement iseq(C c) c.begin(), c.end() .... copy(iseq(ls),array);
If lexical substitution were more closely integrated into the language, then the preprocessor could finally be retired after a long and curious career. | http://www.informit.com/articles/article.aspx?p=25943 | CC-MAIN-2017-04 | refinedweb | 1,861 | 61.87 |
Opened 8 years ago
Closed 8 years ago
Last modified 7 years ago
#7625 closed (wontfix)
admin.list_filter should accept methods with boolean property
Description
Example:
I have a model with a start_time, end_time.
And a method that does something like this:
def overnight(self):
if self.end:
if self.start.day < self.end.day:
return True
else:
return False
overnight.boolean = True
It would be nice to be able to add overnight to list_filters, at least if boolean property set.
Change History (10)
comment:1 Changed 8 years ago by Ashley Camba <ashwoods@…>
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Resolution set to invalid
- Status changed from new to closed
comment:2 Changed 8 years ago by Ashley Camba <ashwoods@…>
comment:3 Changed 8 years ago by anonymous
- Cc metzen@… added
comment:4 Changed 8 years ago by ashley camba <stuff4ash@…>
- Resolution invalid deleted
- Status changed from closed to reopened
comment:5 Changed 8 years ago by anonymous
- Cc mbonetti@… added
comment:6 Changed 8 years ago by ericholscher
- Triage Stage changed from Unreviewed to Design decision needed
comment:7 Changed 8 years ago by simon
- Resolution set to wontfix
- Status changed from reopened to closed
I'm marking this as wontfix, because Django's filters work by generating SQL queries using the ORM - filtering on the return value of a function can't be translated in to a SQL query, so implementing this would require loading EVERY row in to the ORM and calling the function on every single one of them. This is too inefficient.
comment:8 Changed 8 years ago by ashley camba <stuff4ash@…>
- Resolution wontfix deleted
- Status changed from closed to reopened
One posibility would be then a shortcut to be able to define filters with functions that return a queryset, and be able to add them to "list_filters".
comment:9 Changed 8 years ago by brosner
- Resolution set to wontfix
- Status changed from reopened to closed
comment:10 Changed 7 years ago by anonymous
- milestone post-1.0 deleted
Milestone post-1.0 deleted
sorry, found functionality already. | https://code.djangoproject.com/ticket/7625 | CC-MAIN-2016-30 | refinedweb | 347 | 52.73 |
1) collect all windows dependencies (imagemagick, jpegtran, ...)
2) build with py2exe
Blueprint information
Related branches
Related bugs
Sprints
Whiteboard
stani, 22/9/2009
Our plan is to follow the strategy that taskcoach
uses: to have a setup.py file and seperate make.py files for each
platform (py2exe, py2app).
http://
Please have a look how taskcoach handles this.
svn co https:/
(see http://
Read first the HACKING.txt
http://
Have a look at their setup files:
http://
http://
Note the explicit inclusion of the i18n modules. For Phatch we have to
do the same for i18n, but also for phatch/actions as they are
dynamically imported with __import__ as well.
See if you can recreate their app with:
python make.py py2exe
(see HACKING.txt)
If that works it should be trivial for Phatch as well. I know the
author of Taskcoach personally. If really necessary, I could bother
him with some questions you have. Taskcoach is very similar in
requirements as Phatch (wxpython application). So adapting their work
might be a time saver.
matysek, 29/8/2009
I think many users will appreciate standalone executables of Phatch. (without the need to install python, wx, PIL).
I would recommend trying for implementing this, the pyinstaller. The main advantage of pyinstaller, in contrast to py2exe or py2app, is that pyinstaller ( http://
Yesterday I've tried to use pyinstaller on Phatch (tutorial: http://
Only following this tutorial I was able create standalone executable of phatch on my linux box and execute it. The issue was that phatch reported some mising files and runtime errors. Perhaps not all necessary depend. were included. The folder with phatch executable and its dependecies was around ~40 MB.
When trying to create executable, the main issues I'm experiencing:
- whe looking at phatch source, it's not clear to me, how paths are handling
- some imports are not recognized by pyinstaller when using method 'fix_python_path' many times. e.g:
in phatch.core.config:
from fonts import set_font_cache
Dependency tree
* Blueprints in grey have been implemented. | https://blueprints.launchpad.net/phatch/+spec/py2exe | CC-MAIN-2020-24 | refinedweb | 338 | 66.84 |
Back to: Python Tutorials For Beginners and Professionals
Functions in Python with Examples
In this article, I am going to discuss Functions in Python with Examples. Please read our previous article where we discussed Strings in Python with examples. At the end of this article, you will understand the following pointers in detail which are related to python functions.
- When should we go for function in python?
- What is a Function?
- Types of functions in python.
- How to Create and call a function in Python?
- Function with and without Parameters
- Return Keyword in Python.
- How to Return multiple values from a function in Python?
- Functions are First Class Objects.
- Multiple examples to understand the above concepts.
General example why the function is required?
Let us understand this with an example. When you go for walk in the early morning, the things you do are
- Get up from the bed
- fresh up
- Tie the shoe
- Pick the smooth towel
- Start the walk.
Think of this sequence of steps to do a morning walk. Now when my dad calls for a morning walk, he doesn’t need to explain all these steps each time to me. Whenever dad says, “Get ready for morning walk”, it’s like making a function call. “Morning walk‟ is an abstraction for all the many steps involved.
When should we go for function in python?
While writing coding logic, instead of writing like plain text, it’s good to keep those coding statements in one separate block, because whenever required then we can call these. If a group of statements is repeatedly required, then it is not recommended to write these statements each and every time separately.
So, it’s good to define these statements in a separate block. After defining a function we can call it directly if required. This block of statements is called a function. Let us understand more by doing practically.
What is a Function?
A function is one that contains a group of statements or a block of code to perform a certain task. The advantages of using functions are:
- Maintaining the code is an easy way.
- Code re-usability.
Example: print() is a predefined function in python that prints output on the console
Types of functions in python:
There are many categories based on which we can categorize the functions. This categorization is based on who created it.
- Pre-defined or built-in functions
- User-defined functions
Predefined or built-in functions: The functions which come installed along with python software are called predefined or built-in functions. We have covered some inbuilt functions in examples of earlier chapters. Some of them are id(), type(), input(), print() etc.
User-defined functions: The functions which are defined by the developer as per the requirement are called user-defined functions. In this chapter, we shall concentrate on these kinds of functions that are user-defined.
FUNCTION RELATED TERMINOLOGY
- def’ keyword – Every function in python should start with the keyword ‘def’. In other words, python can understand the code as part of a function if it contains the ‘def’ keyword only.
- Name of the function – Every function should be given a name, which can later be used to call it.
- Parenthesis – After the name ‘()’ parentheses are required
- Parameters – The parameters, if any, should be included within the parenthesis.
- Colon symbol ‘:’ should be mandatorily placed immediately after closing the parentheses.
- Body – All the code that does some operation should go into the body of the function. The body of the function should have an indentation of one level with respect to the line containing the ‘def’ keyword.
- Return statement – Return statement should be in the body of the function. It’s not mandatory to have a return statement.
Note: After defining a function we can call the function using its name. While calling a function, we need to pass the parameters if it has any as stated in point 4 above.
How to Create and call a function in Python?
From creating a function to using it, these are the two things that are done.
- Defining function
- Calling function
Defining a function in Python
In the function-related terminologies above, it was clearly explained what is what and how are they used. All the points together define the function. To summarize the definition contains – def keyword, name for the function, parentheses, parameters(optional), colon (:), body, return(optional).
Syntax to define a function in Python:
Example: Define a function that has no parameters (Demo1.py)
def display(): print("welcome to function")
Output: No Output
Calling a function in Python:
In the above demo1.py example we defined a function with the name ‘display’ with a print statement in it. But when we execute the demo1.py it will not display any output because the function is not called. Hence, function calling is also important along with function definition.
After defining a function, we need to call to execute the function. While calling the function, we have to call with the same name of the function which we used while defining it, otherwise we will get an error.
Example: Define a function and call it (Demo2.py)
def display(): print("welcome to function") display() display() display()
Output:
Note: When a function is called once then it will execute once, if called twice then it will be executed twice, and so on.
Example: Define a function and call it with a different name (Demo3.py)
def one(): print("welcome to function") two()
Output: NameError: name ‘two’ is not defined
Function with Parameters in Python:
Based on the parameters, functions can be categorized into two types. They are:
- Function without parameters
- Function with parameters
Function without Parameters in Python:
A function that has no parameters in the function definition is called a function without parameters. The syntax is given below.
Example: Function performing addition operation (Demo5.py)
# defining a function def sum(a, b): print("Sum of two values=", (a+b)) # calling function sum(20,30)
Output: Sum of two values= 50
Example: Check a number is even or odd by using a function (Demo6.py)
def checking(num): if num % 2 == 0: print(num," is even") else: print(num," is odd") checking(12) checking(31)
Output:
Return Keyword in Python:
As mentioned above, the return statement is included in the function body, and it returns some results after doing the operations. Some point about the return statement
- return is a keyword in the python programming language.
- By using return, we can return the result.
- It is not mandatory for a function to have a return statement.
- If there is no return statement in the function body then the function, by default, returns None
Syntax to use Return Keyword in Python:
Example: function returning the value (Demo7.py)
def sum(a, b): c = a + b return c x=sum(1, 2) print("Sum of two numbers is: ",x)
Output: Sum of two numbers is: 3
Example: function returning the value (Demo8.py)
def m1(): print("This function is returning nothing") # function calling m1() x=m1() print(x)
Output:
How to Return multiple values from a function in Python?
In python, a function can return multiple values. If a function is returning multiple values then the same should be handled at the function calling statement as shown in the demo9.py. x and y, two variables are used to capture the values returned by the function m1.
Example: Define a function that can return multiple values (Demo9.py)
def m1(a, b): c = a+b d = a-b return c, d #calling function x, y = m1(10, 5) print("sum of a and b: ", x) print("subtraction of a and b: ", y)
Output:
The function can call another function in Python:
It is also possible in python that a function can call another function. The syntax to call a function from another function is given below.
Example: One function can call another function in python (Demo10.py)
def m1(): print("first function information") def m2(): print("second function information") m1() m2()
Output:
In demo10.py, we defined two functions m1 and m2. In function m2, we are calling the m1 function. So finally, we are calling only the m2 function which internally calls the m1 function.
FUNCTIONS ARE FIRST CLASS OBJECTS
All functions in Python are first-class functions. To say that functions are first-class in a certain programming language means that they can be passed around and manipulated in the same way as to how you would pass around and manipulate other kinds of objects (like integers or strings). You can assign a function to a variable, pass it as an argument to another function, etc. The distinction is not that individual functions can be first-class or not, but that entire language may treat functions as first-class objects, or may not.
Functions are considered as first-class objects. In python, below things are possible to
- Assign a function to variables (demo11.py)
- Pass function as a parameter to another function (demo12.py)
- Define one function inside another function (demo13.py)
- The function can return another function (demo14.py)
Assigning a function to a variable in Python:
Example: Assign a function to a variable (Demo11.py)
def add(): print("We assigned function to variable") #Assign function to variable sum=add #calling function sum()
Output: We assigned function to a variable
Pass function as a parameter to another function in Python
Example: Pass function as a parameter to another function (Demo12.py)
def display(x): print("This is display function") def message(): print("This is message function") # calling function display(message())
Output:
Define one function inside another function in Python:
Example: function inside another function (Demo13.py)
def first(): print("This is outer function") def second(): print("this is inner function") second() #calling outer function first()
Output:
Note: If we defined the inner function, then we need to call that inner function in the outer function.
The function can return another function in Python:
Example: function can return another function (Demo14.py)
ef first(): def second(): print("This function is return type to outer function") return second x=first() x()
Output: This function is return type to outer function
In the next article, I am going to discuss Types of Function Arguments in Python. Here, in this article, I try to explain Functions in Python with Examples. I hope you enjoy this Functions in Python with Examples article. I would like to have your feedback. Please post your feedback, question, or comments about this article.
2 thoughts on “Functions in Python”
Please… Do tutorials on HTML, CSS
D is missing in def.
Example: function can return another function (Demo14.py)
ef first():
def second():
print(“This function is return type to outer function”)
return second
x=first()
x()
thanks for your lovely website | https://dotnettutorials.net/lesson/functions-in-python/ | CC-MAIN-2022-27 | refinedweb | 1,805 | 63.59 |
Now that the piece can move, we should try rotation. Given the hard-coded initial state of having T piece at
(5, 17) and a block at
(0, 0), here’s the spec:
s2""" Rotating the current piece should change the blocks in the view. $rotate1 """ ... def rotate1 = rotateCW(s1).blocks map {_.pos} must contain(exactly( (0, 0), (5, 18), (5, 17), (5, 16), (6, 17) )).inOrder
This shouldn’t even compile because
Stage class doesn’t have
rotateCW() method yet.
[error] /Users/eed3si9n/work/tetrix.scala/library/src/test/scala/StageSpec.scala:33: value rorateCCW is not a member of com.eed3si9n.tetrix.Stage [error] stage.rotateCW().view.blocks map {_.pos} must contain( [error] ^ [error] one error found [error] (library/test:compile) Compilation failed
Stub it out:
def rotateCW() = this
and we’re back to a failing test case.
First, we implement the rotation at the piece level:
def rotateBy(theta: Double): Piece = { val c = math.cos(theta) val s = math.sin(theta) def roundToHalf(v: (Double, Double)): (Double, Double) = (math.round(v._1 * 2.0) * 0.5, math.round(v._2 * 2.0) * 0.5) copy(locals = locals map { case(x, y) => (x * c - y * s, x * s + y * c) } map roundToHalf) }
And then we copy-paste (!) the
moveBy method and make it into
rotateBy:
def rotateCW() = rotateBy(-math.Pi / 2.0) private[this] def rotateBy(theta: Double): this.type = { validate( currentPiece.rotateBy(theta), unload(currentPiece, blocks)) map { case (moved, unloaded) => blocks = load(moved, unloaded) currentPiece = moved } this }
This now passes the test:
[info] Rotating the current piece should [info] + change the blocks in the view. | http://eed3si9n.com/tetrix-in-scala/rotation.html | CC-MAIN-2017-22 | refinedweb | 270 | 59.5 |
Working Hypothesis: STEM Jobs Need Better Branding
In a recent article for The Washington Post, David Steel, executive VP of strategy for Samsung Electronics North America, addressed our nation's STEM challenge. STEM stands for science, technology, engineering and math, and the U.S. is facing a growing shortage of STEM workers.
This is a multi-faceted, deeply rooted problem that will require a combination of strategies and solutions, locally and nationally. Across the country, there are hundreds of programs and initiatives working to attract more kids and adults to STEM careers, as well as endeavoring to build up our capacity to teach STEM subjects. But across the board, it seems that one critical piece of the puzzle is a basic failure to communicate clear, compelling messages about what it means to work in STEM fields.
As Steel put it, "One of the obstacles to solving this problem is that students are simply not interested in or excited by STEM subjects. With the notable exception of Iron Man's alter ego Tony Stark, our popular culture doesn't often celebrate engineers, scientists or mathematicians." This calls to mind TV's "Big Bang Theory." Those uber-geeks can be hilarious, but they are not inspirational STEM role models for your average teen.
Steel goes on to cite a survey conducted by Intel and nonprofit Change the Equation, which found that three out of five teenagers have never considered a career in engineering. Linda Rosen, CEO at Change the Equation (a fantastic resource about all things STEM) also referenced this survey at The Atlantic's Technologies in Education Forum in May. She explained that many teenagers simply don't have any idea what engineers do. So in addition to pop-culture stereotypes, we have an information vacuum.
There's hope, however. Rosen went on to say that when teens were given real-world examples, such as the role of engineers in rescuing the trapped Chilean miners, they got interested. The survey also found that teens become more willing to consider a career in engineering when they learn about the earning potential.
Engineering is just one pillar of STEM, but it seems likely that many teens are equally clueless about a wide variety of STEM careers. In fact, because of a widespread lack of science and math literacy that's at the root of the STEM problem, I would propose that a significant percentage of adults in the U.S. have no idea what most STEM professions involve.
The STEM acronym is only a decade old. It was originated by Dr. Judith Ramaley during her tenure as assistant director of the education and human resources directorate at the National Science Foundation. Before Ramaley gave it a simple but much-needed makeover, the acronym in use at NSF was SMET. Ramaley switched it around, not only because it sounded better, but also because she felt that science and math supported technology and engineering and the new order better showed the connections between the four areas.
Back then, STEM had a little re-branding that helped it get off the ground. Now that the acronym has been around for a while and has gained traction (in education and policy circles, anyway) maybe it's time for some big-picture branding, aimed at capturing the imagination of the general public. Here are two core messages that might form the foundation of such an effort.
One: STEM jobs are sexy.
All right, we might not actually use the word sexy. But sexy is shorthand for lots of things, depending on the target audience and the type of STEM work being promoted. STEM jobs are exciting. STEM jobs are rewarding. STEM jobs are cutting-edge. STEM jobs are lucrative. STEM jobs are cool.
One admirable effort in this direction is the "Secret Lives of Scientists and Engineers" segment on the PBS show "NOVA scienceNOW." These engaging videos feature relatable STEM role models like Mollie Woodworth, neuroscientist and cheerleader, and Stephon Alexander, theoretical physicist and saxophone player.
I'm not sure how many young people are actually tuning in to "NOVA scienceNOW" or perusing the show's website, so the profiles may primarily resonate with kids who are already STEM-inclined. But these profiles strike the right note, showing that smart people can be cool people, that regular kids can grow up to do amazing things, and that the STEM work they do is just one aspect of their lives.
Two: You don't have to be a rocket scientist to pursue a STEM career.
This might seem counter intuitive. I mean, we do need some rocket scientists, right? But to attract more STEM workers, we might want to bring STEM down to earth a little. STEM includes the nation's top scientists and engineers, but it also includes the people with the skills and training to do a wide range of essential, everyday work. Plus, you don't have to be a traditional student to pursue a STEM profession. There are training programs, certificates and accelerated degrees aimed at veterans, displaced workers and mid-career workers, just to name a few.
As described in a recent report about STEM from the Georgetown Center on Education and the Workforce,"The STEM supply problem goes beyond the need for more professional scientists, engineers, and mathematicians. We also need more qualified technicians and skilled STEM workers in Advanced Manufacturing, Utilities and Transportation, Mining, and other technology-driven industries." In addition, the report emphasizes that STEM competencies are increasingly in demand across a wide spectrum of jobs, not just traditional STEM professions.
The NOVA scienceNOW profiles are great, but they feature super-smart superstars who are doing high-level research and design. Yes, we need to insure that our young people aim high and fulfill their potential. But we also want the students and workers who aren't destined for MIT to be aware of the full spectrum of STEM opportunities.
So what's message number three for this branding campaign? How could we change perceptions and get more people to picture themselves in STEM careers?
More from Educating the Workforce of Tomorrow Brought to you by the Apollo Group
Join the DiscussionAfter you comment, click Post. If you’re not already logged in you will be asked to log in or register. endif ?> blog comments powered by Disqus | http://www.theatlantic.com/sponsored/workforce-of-tomorrow/archive/2012/06/working-hypothesis-stem-jobs-need-better-branding/258544/http%3A%2F%2Fwww.theatlantic.com%2Fsponsored%2Fworkforce-of-tomorrow%2Farchive%2F2012%2F06%2Fworking-hypothesis-stem-jobs-need-better-branding%2F258544%2F | CC-MAIN-2013-20 | refinedweb | 1,057 | 61.97 |
The Maximum Sum contiguous subsequence problem
Contents
Welcome to the Pearly Gates
The Pearly Gates club never closes. Its public entrance, a revolving door, just keeps on spinning. With each rotation some punters enter and others leave. The club’s owners would like to track this traffic. Specifically, they’d like to know the maximum increase in people entering the club over a given period.
The starting point is to track the people who enter/leave with each spin of the door. Here’s a 5 minute sample of that information. Negative numbers mean more people left than entered during a particular cycle.
0 1 2 -3 3 -1 0 -4 0 -1 -4 2 4 1 1 3 1 0 -2 -3 -3 -2 3 1 1 4 5 -3 -2 -1 ...
Here’s the same information plotted on a graph.
The archetypal problem we’d like to solve can be stated:
Given a sequence of numbers, find the maximum sum of a contiguous subsequence of those numbers.
As an example, the maximum sum contiguous subsequence of 0, -1, 2, -1, 3, -1, 0 would be 4 (= 2 + -1 + 3).
This problem is generally known as the maximum sum contiguous subsequence problem and if you haven’t encountered it before, I’d recommend trying to solve it before reading on. Even if you have encountered it before, I’ll invite you to read on anyway — it’s well worth another look.
Programming Pearl
The maximum sum contiguous subsequence problem appears in Jon Bentley’s “Programming Pearls”. He first presents a brute force solution which examines all possible contiguous subsequences of the initial sequence and returns the maximum sum of these subsequences.
A Python implementation might read:
def generate_pairs(n): "Generate all pairs (i, j) such that 0 <= i <= j < n" for i in range(n): for j in range(i, n): yield i, j def max_sum_subsequence(seq): "Return the max-sum contiguous subsequence of the input sequence." return max(sum(seq[i:j]) for i, j in generate_pairs(len(seq) + 1))
It’s a straightforward piece of code, though note the
+ 1 which ensures that we slice to the end of
seq, and also that we include empty slices, which sum to
0, handling the case when every item in the sequence is negative. The trouble is, the algorithm is of cubic complexity: to process just 6 hours of logged activity takes over 2 minutes on a 2GHz Intel Core Duo MacBook, and the cubic nature of the algorithm means we’d quickly fail to process more substantial log files in real time.
A simple optimisation eliminates the repeated calls to
sum by accumulating the input sequence — the red line in the graph above. Subtracting element
i-1 from element
j of this cumulative sequence gives us the sum of elements in the range i, j of the original sequence. We won’t study the code for this quadratic solution — it doesn’t add much to our analysis. Again, some care is needed to avoid fencepost problems.
We won’t look at the divide-and-conquer NlogN solution either. It’s hard to understand, and we can do far better.
Linear Solution
There is a linear solution. The idea is to scan the sequence from start to finish keeping track of
maxsofar, the maximum sum of a contiguous subsequence seen so far, and
maxendinghere, the maximum sum of a contiguous subsequence which ends at the current position. Bentley’s pseudo-code reads:
maxsofar = 0 maxendinghere = 0 for i = [0, n) /* invariant: maxendinghere and maxsofar are accurate are accurate for x[0..i-1] */ maxendinghere = max(maxendinghere + x[i], 0) maxsofar = max(maxsofar, maxendinghere)
This translates directly into Python.
def max_sum_subsequence(seq): maxsofar = 0 maxendinghere = 0 for s in seq: # invariant: maxendinghere and maxsofar are accurate # are accurate up to s maxendinghere = max(maxendinghere + s, 0) maxsofar = max(maxsofar, maxendinghere) return maxsofar
Now, this is a fabulous solution. Bentley describes it as subtle. Such a succinct code snippet hardly looks subtle, but I agree, the loop body does take a bit of understanding:
maxendinghere = max(maxendinghere + s, 0) maxsofar = max(maxsofar, maxendinghere)
Why does this work?
Well, essentially maxendinghere is what’s accumulating the subsequences — it keeps rolling the next element into itself. Should this accumulated sum ever become negative we know that the subsequence-which-ends-here we’re currently tracking is worse than the empty subsequence-which-restarts-here; so we can reset our subsequence accumulator, and the first clause of the loop invariant still holds. Combine this with the observation that maxsofar tracks peaks in maxendinghere and we’re done.
The loop-invariant comment provides a good example of how comments can help us understand an algorithm, even though the code is minimal and the variable names are well-chosen.
Streaming Solution
I prefer to think of this problem in terms of streams — lazily evaluated sequences. Think of our log file as generating a stream of numbers:
... 0 1 2 -3 3 -1 0 -4 0 -1 -4 2 4 1 1 3 1 0 -2 -3 -3 -2 3 1 1 4 5 -3 -2 -1 ...
The first thing we do is transform this stream to generate another stream, the cumulative sum of numbers seen so far. It’s an integration of sorts. You’ll remember we already used this stream, or an in-memory version of it, in our quadratic solution to the problem: the difference between points on it yields subsequence-sums.
Stream Accumulate
We generate the accumulated stream from our original stream like this:
def stream_accumulate(stream): total = 0 for s in stream: total += s yield total
The graph below samples the first five minutes of this stream. The red line accumulates values from the pale grey line.
These accumulated numbers represent the number of members who have entered the club since we started tracking them. On our graph, the maximum sum contiguous subsequence is simply the greatest Y-increase between any two points on this graph. X’s mark these points on the graph above. (Note: it’s not the Y-range of the graph we want since our X-values are time-ordered, and we require X1 <= X2).
Stream Floor
A second transformation yields the floor of the accumulated stream.
import sys def stream_floor(stream): m = 0 for s in stream: m = min(m, s) yield m
(Note that, for our purposes, the floor of the stream isn’t exactly the stream of minimum values taken by the stream — we enforce a baseline at zero. It would be better to allow clients of this function to supply an optional baseline value, but I wanted the simplest possible code that shows the idea.)
Here’s a graph plotting the accumulated entries alongside the floor of these entries.
We’re very close to what we want now. We can track Y-increases on the graph just by generating the difference between the accumulated stream and its floor — the shading on the graph.
Stream Diff
Here’s an implementation of
stream_diff. We can’t just plug a minus sign “-” into the mapping function, so we have to use the less wieldy
operator.sub.
import itertools import operator def stream_diff(s, t): return itertools.imap(operator.sub, s, t)
Alternatively, we could generate the new stream with an explicit loop:
import itertools def stream_diff(s, t): for ss, tt in itertools.izip(s, t): yield ss - tt
The final graph shows us the difference between the accumulated entry count and its floor. I’ve also added the ceiling of this stream as a thick red line (I’m sure you can figure out how to implement
stream_ceiling), and this ceiling represents the stream of maximum sum contiguous subsequences.
We’ve re-labelled the lines
Max-so-far and
Max-ending-here because they’re the stream of values taken by the variables
maxsofar and
maxendinghere during Bentley’s clever solution to the maximum sum contiguous subsequence problem. I think we’re in a better position to understand how this solution works now.
Streams and Collections
Please don’t imagine these streams are bloated. They may be infinite (remember the Pearly Gates club never closes!) but that doesn’t mean they take up much space. The graphs shown represent snapshots of their activity, and at no point do our presented algorithms actually store a five minute buffer of entries.
A final solution to the maximum sum contiguous subsequence problem reads like this. We’ve pushed the general purpose stream transformation functions into a separate module,
stream.py.
import itertools import stream def max_sum_subsequence_stream(ss): "Return the stream of max sum contiguous subsequences of the input iterable." accu1, accu2 = itertools.tee(stream.accumulate(ss)) return stream.ceil(stream.diff(accu1, stream.floor(accu2, baseline=0))) def max_sum_subsequence(ss): "Return the max sum of a contiguous subsequence of the input iterable." return stream.last(max_sum_subsequence_stream(ss))
The iterable supplied to
max_sum_subsequence has its last value read, and should therefore be bounded if we want the function to return. We haven’t supplied arguments to extract a portion of this iterable (to generate maximum subsequences for the club on a particular day, for example) because that’s what
itertools.islice is for.
Note that
max_sum_subsequence_stream() may be more useful to clients than
max_sum_subsequence(). Suppose, for example, we’re only interested when the maximum sum subsequence exceeds 100. We can do this directly by connecting
itertools.dropwhile() to our function.
def max_subseq_exceeds(seq, limit=100): max_sub_s = max_sum_subsequence_stream(seq) return itertools.dropwhile(lambda s: s <= limit, max_sub_s)
Perhaps we’d like to know if the maximum sum subsequence reaches a plateau; that is, it stays on a level for a while.
Here’s the stream module.
"General purpose stream generation functions." import itertools def floor(stream, baseline=None): """Generate the stream of minimum values from the input stream. The baseline, if supplied, is an upper limit for the floor. >>> ff = floor((1, 2, -2, 3)) >>> assert list(ff) == [1, 1, -2, -2] >>> ff = floor((1, 2, -2, 3), 0) >>> assert list(ff) == [0, 0, -2, -2] """ stream = iter(stream) m = baseline if m is None: try: m = stream.next() yield m except StopIteration: pass for s in stream: m = min(m, s) yield m def ceil(stream): """Generate the stream of maximum values from the input stream. >>> top = ceil([0, -1, 2, -2, 3]) >>> assert list(top) == [0, 0, 2, 2, 3] """ stream = iter(stream) try: M = stream.next() yield M except StopIteration: pass for s in stream: M = max(M, s) yield M def accumulate(stream): """Generate partial sums from the stream. >>> accu = accumulate([1, 2, 3, 4]) >>> assert list(accu) == [1, 3, 6, 10] """ total = 0 for s in stream: total += s yield total def diff(s, t): """Generate the differences between two streams If the streams are of unequal length, the shorter is truncated. >>> dd = diff([2, 4, 6, 8], [1, 2, 3]) >>> assert list(dd) == [1, 2, 3] """ import operator return itertools.imap(operator.sub, s, t) def last(stream, default=None): """Return the last item in the stream or the default if the stream is empty. >>> last('abc') 'c' >>> last([], default=-1) -1 """ s = default for s in stream: pass return s if __name__ == "__main__": import doctest doctest.testmod()
Stream on…
The maximum sum contiguous subsequence problem is described in “Programming Pearls” by Jon Bentley.
My favourite introduction to computer programming, “Structure and Interpretation of Computer Programs”, has lots to say about streams, and suggests they have a role in concurrent programming and modelling time.
Streams are a natural fit with functional programming, and well supported by languages like Scheme and Haskell. Python also handles them nicely: look into generators, generator expressions, the itertools module, and study
test_generators.pycarefully.
If you liked this article, try more Word Aligned articles tagged “streams”. And if you like puzzles, there are more articles tagged “puzzles” too.
The graphs in this article are generated using the Google chart API, which is both useful and a fine example of how to design and document a programming interface. | http://wordaligned.org/articles/the-maximum-subsequence-problem | CC-MAIN-2014-10 | refinedweb | 2,016 | 52.6 |
See also: IRC log
no changes to agenda
Minutes approved as distributed
Bob: will review CR33 handling in previous minutes
all action items completed
Bob: Metadata issue
... Who will provide policy input?
Paco: is this something we will provide in general framework, or will it be an open-ended job?
Bob: Hope it is not open-ended.
plh: This could fit in the WSDL binding document.
Anish: Hope not in WSDL binding,
it is really separate.
... It is about defining attachment points for policy data.
Bob: plh: in policy WG, are they producing a policy assertion related to this?
plh: no
Paco: Not sure where is the right place to do it. Probably a separate document. It is an expansion of our charter.
Bob: Does the WG want to expand the charter?
plh: A "note" would have no normative status.
Tom Rutt: Do we say in the WSDL binding doc, do we say what qname to use?
<anish> tom, in wsdl binding doc we have this --
<David_Illsley> Tom, from the spec: To do so, the creator of an EPR MAY include a WSDL 2.0 description element (or a WSDL 1.1 definitions element) in the metadata property of the EPR.
MrGoodner: Are we clear on what the policy WG is asking?
Bob: Would the WG like to work in conjunction with the Policy WG on this?
PaulD: Don't fully understand the use case, the requirements, the work needed.
Anish: Independent of how it is done, or what WG, it is a useful thing to have.
<pauld> guess I'm unconvinced on the utility of attaching WSDL to an EPR either
Anish: There was no policy WG when we started. It is useful to have the connection to policy. It will be needed for many future use cases.
Bob: Last time we discussed this,
we decided it was the job of the Policy WG.
... If we are not willing to work with them, that is a decision we can make. Then it will be left to some future activity to resolve it.
Tom: We did it for WSDL, are there other aspects to be addessed other than EPR?
Paco: This may be more complex than we think. It opens a lot of related problems. It is not something to take on casually. Do we need to amend the charter?
plh: agree with Paco. It is different from thw WSDL case, where we were the ones to control it. This is initiated by the Policy WG, and I don't think it is the role of this WG to do it.
Marc Hadley: Would be surprised if we had to do more than say, "You can put a policy element here."
<Zakim> anish, you wanted to say 'why doesn't ws-policy do this and change their charter if need be? they specify wsdl attachment points too.'
<bob> +1, anish
<w3circ> +1 anish
Anish: Think the Policy WG should do this. WS-Addressing Core is done; Policy is not done. We would have to keep tracking their work.
MrG: The task is not well
defined.
... Need to define the expected outcome.
<plh>
plh: The Policy WG said "We will not do it now." Are we not stepping on their toes?
Bob: They asked for some
participation from this WG.
... The chair described the scope as requiring a couple of people to participate in a couple of joint calls.
plh: no problem to having a joint call
Bob: any objection? None heard.
<TomRutt> yes to call
Bob: Who will participate? Paco,
Gil, Tom Rutt
... Others? Three is probably enough. I will try to set up a time, via email.
... Can we run through the CR 31 work by Tony?
Tony: changed cells related to wsa: prohibited
Bob: So we need to also finish CR33?
Tony: yes.
<anish>
Anish: Will go through email.
Link is pasted in chat.
... Describing option 1 and option 2.
Marc: Define older client in this framework.
<marc> Old == CR
Anish: The namespace becomes
interesting in option 2
... In option 2, we keep UsingAddressing, add two more extensions.
... Describing scenarios with older and newer clients.
Anish: The other issue with namespaces - we will need a new schema in option 2.
<bob> ack [IPc
<Zakim> [IPcaller], you wanted to ask whether compatibility concern is related to question of progression directly to PR or via second LC
Marc Hadley: Why are we focusing on this?
Anish: MrG raised the question.
Bob: Between these two options, it appears that people may have a preference?
Anish: Subtracting from the schema requires a namespace rev, but not necessarily adding to an extension point. We would be removing wsaw:Anonymous.
plh: We still own the namespace; we can still change the schema. However, we need to be careful.
MrG: If we are making substantive changes, a new namespace would be appropriate. If we take away a marker, we should have a new namespace.
<bob> ack [IPc
<Zakim> [IPcaller], you wanted to ask about expressivity vs existing Anonymous element
Some implementatoins are using these elements.
<MrGoodner> +1 Marc
marc: Not sure what we are trying to achieve.
Paco: Untying the semantics from the anonymous URI.
<David_Illsley> PaulKnight, my comment was that wsaw:Action and wsaw:UsingAddressing are widely implemented - only 1 known implementation of wsaw:Anonymous
<marc> my comment was that the proposed markup is no more expressive than the current markup - wondering what was wrong with the current marker
<marc> paco noted that policy recommends differentiation by qname so our use of attributes in the Anon element goes against that
Bob: Now we have an explanation and two options. Are we prepared to decide?
Dhull: Have we ruled out the
purely syntactic approach?
... My email described this point.
Bob: I had not captured it as a proposal for this issue.
Paco: We discussed it briefly on the last call.
<pauld>
Bob: A sysntactic approach which may or may not have a regexp defining what the backchannel may be.
Anish: Would this go inside a policy or WSDL extension, or is it independent of the notion of backchannel? Looking at the qname, would you understand it?
Dhull: You would have to look at what patterns were allowed or not. It tells the client what form of address could be used in the ReplyTo EPR.
anish: what if I don't want to change the WSDL, but for instance enable Reliability, because I want to tweak the policy and not the WSDL?
Dhull: It boils down to whether you want to find what is supported - directly or not.
MrG: The real problem is the way
the RM anon URI might be used without RM. There would be no
policy assertions in the WSDL. Not sure this is an
improvement.
... the OASIS WS-RX TC is also looking at related issues.
Gpilz: Some expressivity would be lost.
Bob: We were focusing on Anish
and Paco's proposal, then discussed David Hull's proposal. We
need to focus on selecting the best approach.
... Does the group favor David's approach, or anish and Paco's?
Paco: I would be worried about implementing mechanisms without having a clear use case for it. So far, having a simple marker for backchannel or not is sufficient.
Anish: Third possibility: wsaw:Address constraint as suggested by David Hull could be a child element of the response. It can solve some problems.
Anish: It is interesting to consider a hybrid approach.
Dhull: Agree.
... I don't think it is a complex new feature. The term backchannel is an undefined term itself, and it may also be complex for composability.
<Dug> marc - that's not a WSA issue - that's an RM issue
MrG: Using a backchannel marker without a mention of the URIs may not be helpful. It may not be appropriate to cover it here rather than RM.
Paco: Can we separate the issues of CR33 based on our proposal from the possibility of using David's mechanism?
<pauld> or close with no action
<MrGoodner> +1 pauld
<dhull> But Paul --- we've talked about it this long ... surely we must take *some* action ...
<dhull> :-)
<MrGoodner> update wsaw:Anon as not being useful as a policy assertion?
Bob: Options : option 1 - composability with policy - define text element
Paco: That is not really a separable issue.
Bob: No matter which we use, we need to deal with composability with policy.
<dhull> Ironically, my biggest problem with the marker proposal is composability
Bob: can we choose between option
1 and option 2 in the proposal by Paco and Anish?
... any objection to limiting the choice of solutions for CR 33 to those two options?
MrG: It does not solve
composability issue.
... Once you have the backchannel marker, you have no idea what will be on the wire.
Dhull: Not clear which will compose best.
Paco: What is non-composability argument against using the marker?
<anish> isn't this similar to what we have done with 'anon' uri?
<anish> 'anon' uri does not mean anything outside the context of a particular binding
Extended discussion of meaning and use of backchannel.
<dhull> nutshell: Where is it defined and how?
Bob: We are replowing some old ground here.
Dhull: A fresh answer to
anonymous may be sprouting from the old ground.
... Backchannel is not defined well.
Tom Rutt: Semantics still not well defined. It is up to the endpoint to know how to handle the URI.
Paco: Dhull's proposal provides more information than is needed.
Dhull: It is needed, because backchannel is not clearly defined.
Paco: In case of http, backchannel is known.
Bob: Backchannel as a term appears to be undefined and unused.
MrG: There is no marker for this. You don't know that RM is in use in every case. There is an interoperability issue.
Bob: Want to keep discussion
focused on CR33 options in front of us.
... Choose one of the options, or close with no action. We can't directly work on RM.
Dug: CR33 is just about whether other URIs can be defined. WSA does not have to define how they are used, just whether to allow the extensibility point.
MrG: If the extensibility point is defined without clear rules, it will not be composable.
Dug: It is not WSA's problem to address.
<Dug> only one URI can be in wsa:ReplyTo at a time - the spec that defines that URI defines what goes on the wire - its not a WSA issue.
Anish: How about the hybrid approach? David Hull proposed address constraints, which could be used with the proposals by Paco and myself. It would have a child element describing address constraints.
MrG: How the constraints are expressed is the issue.
Anish: The constraints are constraints, not another policy assertion.
Bob: One approach is to define anonymous as the base URI and the constraint as a facet to define how it is extended.
David Hull: fell off line
Bob: We need to make a
decision.
... Can we reach a decision tonight?
... Can we take the approach Paco and Anish have suggested?
... To solve CR33, the approach defined in Anish and Pacos' proposal ,either option 1 or 2, is acceptable? Any objections?
Dhull: Object
... Don't see how it will work.
Bob: extend meeting for 5 minutes? No objection.
Tom: will support one or other of those.
<Dug> using anon URI doesn't solve cr33
Marc Hadley: could support either , if anonymous URI is used in place of backchannel.
<bob> s/cold/could
Bob: Will need to continue
discussion next week.
... We have not used backchannel as a term anywhere in our specification.
<marc> e.g. wsaw:WASResponseUsingAnonymousOnly
Bob: discuss on mailing list
<Dug> MarcH - could you send a proposal to the list? so people can noodle it? | http://www.w3.org/2002/ws/addr/6/10/30-ws-addr-minutes.html | CC-MAIN-2015-48 | refinedweb | 1,958 | 76.01 |
07 February 2012 16:08 [Source: ICIS news]
LONDON (ICIS)--?xml:namespace>
Bosch announced the project at
However, Siegfried Dais, Bosch’s deputy CEO, told German daily Frankfurter Allgemeine Zeitung in an interview and that the company has delayed until the end of 2012 a decision on when it will start construction at the project and which technology it will employ.
Dais said the project could only go ahead if it meets its “cost targets.”
Bosch, a large automotive supplier, entered the solar industry in 2008 and has since then invested some €2bn in the sector.
However, like others in the industry, Bosch‘s solar operations have come under pressure amid falling prices and excess capacities, especially because of competition from China-based suppliers.
Dais said the solar industry was in a consolidation phase. In five years, there would only be about 20 large suppliers on the market, he predicted.
“I can’t tell you where Bosch will rank in the industry then, but I can tell you that we will want to belong to those firms that are profitable,” he added.
($1 = € | http://www.icis.com/Articles/2012/02/07/9530210/germanys-bosch-delays-malaysia-photovoltaic-investment.html | CC-MAIN-2015-06 | refinedweb | 183 | 57.61 |
!
If you spend any amount of time on the computer, you've probably found a use for keyboard shortcuts in your workflow. Most familiar perhaps are typing commands. These shortcuts are not in fact provided by IPython itself, but through its dependency on the GNU Readline library: as such, Backspace to delete the previous character! Ctrl-p/Ctrl-n or the up/down arrow keys can also be used to search through history, but only by matching characters at the beginning of the line.
That is, if you type
def and then press Ctrl-p, it would find the most recent command (if any) in your history that begins with the characters
def.
While some of the shortcuts discussed here may seem a bit tedious at first, they quickly become automatic with practice. Once you develop that muscle memory, I suspect you will even find yourself wishing they were available in other contexts. | https://nbviewer.org/github/jakevdp/PythonDataScienceHandbook/blob/master/notebooks/01.02-Shell-Keyboard-Shortcuts.ipynb | CC-MAIN-2022-40 | refinedweb | 153 | 67.08 |
Hi guys,
Unable to find anything in RP with regard to creating a helix using scripting so
have to use rs.Command. The inputs for the start and end of the helix axis, along
with a point positioning the helix radius, seem ok but cannot input the pitch and number of
turns.
import rhinoscriptsyntax as rs
import math
import Rhino
import System
Helix_Length = 20.0
Helix_Radius = 3.0
Helix_Pitch = 2.0
Helix_Turns = Helix_Length/Helix_Pitch
Axis_StartPt = rs.AddPoint(0,0,0)
Axis_EndPt = rs.AddPoint(Helix_Length,0,0)
Pt_1 = rs.AddPoint(0,Helix_Radius,0)
Helix_Path = rs.Command("-_Helix selid " + str(Axis_StartPt) + " selid " +str(Axis_EndPt) + " selid " + str(Pt_1) + " _Enter _Enter ")
RP does not ask for the pitch or the number of turns NOR are the default values use.
Thus no helix! | https://discourse.mcneel.com/t/rhinopython-rs-command---helix/12006 | CC-MAIN-2020-45 | refinedweb | 128 | 61.73 |
.
Try building this application and let us know how it went.
Post your comments
Also in Java Programming on the Mac:
A Rendezvous with Java
Integrating Ant with Xcode
Transforming iCal Calendars with Java
Apple Releases Java 1.4.1 for Mac OS X
Getting Fit for the Holidays
Mac OS X/Users/dhs/
Mac OS X/Applications/Utilities/
[localhost:~] <user name>%
Type in the command ls and you will get a listing of the contents of the current directory. You should see NineSquares in the list.
ls.
Mac OS X/Applications
NineSquares
NineSquares.java
.txt.
main()
JFrame
myFrame.
EXIT_ON_CLOSE.
javax.swing
import javax.swing.*.
javac NineSquares/NineSquares.java
java NineSquares/NineSqu. | http://www.macdevcenter.com/pub/a/mac/2001/08/03/osx_java.html | CC-MAIN-2015-27 | refinedweb | 112 | 58.89 |
I’m Manuel Strehl, a true and thorough Bavarian web developer. And why, yes, I also own a Lederhose. Apart from dancing around some poles and Schuhplattling (ok, admitted, I never did that), I enjoy coding and developing good-looking, valid and usable web sites.
Here in Regensburg I work for a small company named Kinetiqa. We sell our own CMS, but lately we focus more on custom web applications for our customers.
Apart from the day job I do my PhD at the University of Regensburg in media informatics. There, too, I received a Diploma, which is more or less equivalent to a Master, in Physics in 2007.
Our RPG game Bewahrer des Lichts was once my creative inspiration, as you can see at my deviantART gallery, where I show some of the old maps, that I drew back then for the book of rules.
I was once an active Wikipedia writer, but nowadays it is far less rewarding. However, I’m still quite proud of my articles Western Calligraphy and namespaces in XML in the German Wikipedia.
In most social networks and other places you will see my avatar to the left on my profile page. It depicts the donkey, Equus asinus, an animal, that comes surprisingly close to the ideal programmer, as Larry Wall describes him in his “Three Virtues of a Programer”. Boldewyn, the username I usually pick, is the name of the donkey in German fables.
You want to contact me? There’s a Twitter account, a contact form, and, especially if you’re Germany based, my Xing profile. | http://www.manuel-strehl.de/about/me.en.html | CC-MAIN-2018-13 | refinedweb | 264 | 70.84 |
/* This module implements the C standard math function nanl. $Revision: 1.4 $, $Date: 2006/02/01 18:36:35 $ */ /* *: long double nanll. A previous implementation did not set the "quiet" bit if the hexadecimal numeral did not indicate it and did set the significand to one if it were zero. The former does not conform to the C standard; a quiet NaN must be returned. The latter is unneeded. It was needed only to avoid returning infinity (all significand bits are zero) instead of a NaN (significand is not zero). Additional information is in nan.h. */ #include "nan.h" /* Here is nanl, as defined in the C standard and above. Note that the declaration of nanl in math.h includes some GCC mechanisms to control the name of nanl in the object file, with the result that what we call nanl here appears as _nanl$LDBL128 on PowerPC compiled with -mlong-double-128 (the default on PowerPC), or _nanl otherwise. */ long double nanl(const char *tagp) { /* Parse tagp, initialize result, and move our significand into it. Setting .ld to zero initializes the entire long double. This accomplishes the result of setting the second double to zero, if present, without requiring conditional code. (It is not necessary to set the second double to zero; it may have any value in a NaN.) We could eliminate the conditional code for .s.integer by merging it with the quiet and/or exponent bits in the definition of LongDouble above, but that might be more confusing than the conditional code. */ LongDouble result = { .ld = 0, .s.sign = 0, .s.exponent = ~0, #if defined( __i386__ ) || defined( __x86_64__ ) .s.integer = 1, // Set integer bit on IA-32. #endif .s.quiet = 1, .s.significand = ConstructSignificand(tagp) }; return result.ld; } | http://opensource.apple.com/source/Libm/Libm-315/Source/Intel/nanl.c | CC-MAIN-2015-27 | refinedweb | 291 | 57.06 |
14052/difference-between-fabric-composer-hyperledger-composer
I am learning Hyperledger and I am visiting lots of websites to learn more about it. While doing this I came across a link that had something related to Fabric Composer. The link is here:
So, I just wanted to know what’s the difference between Fabric composer and Hyperledger Composer.
They are basically the same thing. Fabric composer was the name given at the beginning and that name was temporary and it was later replaced with the name Hyperledger Composer.
Hyperledger Composer is an application development framework ...READ MORE
Source: ...READ MORE
'o' indicates has-a relationship
'-->' indicates pass by ...READ MORE
Hey @Renu353! Well, it's good that you ...READ MORE
Summary: Both should provide similar reliability of ...READ MORE
This will solve your problem
import org.apache.commons.codec.binary.Hex;
Transaction txn ...READ MORE
To read and add data you can ...READ MORE
Most people recommend to run docker containers ...READ MORE
For this, you have to write a ...READ MORE
OR
Already have an account? Sign in. | https://www.edureka.co/community/14052/difference-between-fabric-composer-hyperledger-composer | CC-MAIN-2020-50 | refinedweb | 179 | 61.63 |
Hi,
i have a request with a response.
i transfered a value from the response using Property Transfer into Projetc Properties.
Now i want to use the value from the project property in my sql request:
I tried this:
StringBuilder builder = new StringBuilder()sql.eachRow("select * from Person where PER_ID = '${#Project#Reqid-received}' ") { row -> builder.append( "${row.per_id}," ) }
it doesn't work for me.
Is the request correct?
Thank you
Solved!
Go to Solution.
I found it, it should be:
def per_id = context.expand('${#Project#Reqid-received}'')
Then us it in sql like:
sql.eachRow("select * from Person where PER_ID = "+re_id+" ")
It works.
View solution in original post | https://community.smartbear.com/t5/SoapUI-Open-Source/How-to-use-property-value-in-sq-with-groovy/td-p/188852 | CC-MAIN-2021-10 | refinedweb | 108 | 72.02 |
In this article I will show you how to search files in a local computer's locations such as folder, library or any other location in the computer. To access the files and folders I use the Windows.Storage.Search API.Using the Windows.Storage.Search.API we can access the files and folders and even get files based on some query options. We can create our own query to search the files and folders in the system libraries.Here I show an example of searching files in the Music Libraries based on some query criteria and also display a status message indicating whether the file is found or not.How to search files programmatically in Windows Store Apps.Step 1Create a Blank application of Windows Store Apps.Step 2Include some namespaces to use the APIs; they are:
using Windows.Storage;
using Windows.Storage.Search;Step 3Get the MusicLibrary in the storage folder as in the following:
StorageFolder musicFolder = KnownFolders.MusicLibrary;Step 4Here I use the QueryOptions class to make a query to search the folder. Use the user's input to make a query.);Step 5Get the result into an IReadOnlyList, as in:
IReadOnlyList<StorageFile> files = await queryResult.GetFilesAsync();
Step 6Now, we only need to traverse the List and check the count of list objects to determine whether file is found or not. See:
if (files.Count == 0)
{
outputText.Append("No files found for '" + queryOptions.UserSearchFilter + "'");
}
else if (files.Count == 1)
outputText.Append(files.Count + " file found:\n\n");
else
outputText.Append(files.Count + " files found:\n\n");
//output the name of each file that matches the query
foreach (StorageFile file in files)
outputText.Append(file.Name + "\n");
OutputTextBlock.Text = outputText.ToString();
Here is full code
private async void SearchButton_Click(object sender, RoutedEventArgs e)
{
StorageFolder musicFolder = KnownFolders.MusicLibrary;
List<string> fileTypeFilter = new List<string>();
fileTypeFilter); StringBuilder outputText = new StringBuilder();
//find all files that match the query
IReadOnlyList<StorageFile> files = await queryResult.GetFilesAsync();
//output how many files that match the query were found
if (files.Count == 0)
}
View All | http://www.c-sharpcorner.com/UploadFile/99bb20/search-files-to-local-library-in-windows-store-apps/ | CC-MAIN-2017-34 | refinedweb | 339 | 52.05 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.