text:
package main

import (
	"bytes"
	"fmt"
	"go/ast"
	"go/parser"
	"go/token"
	"os"
	"path/filepath"
	"strings"
	"sync"
	"text/template"

	"github.com/corestoreio/csfw/codegen"
	"github.com/corestoreio/csfw/codegen/tableToStruct/tpl"
	"github.com/corestoreio/csfw/storage/csdb"
	"github.com/corestoreio/csfw/storage/dbr"
	"github.com/corestoreio/csfw/utils"
	"github.com/corestoreio/csfw/utils/log"
)

type generator struct {
	tts             codegen.TableToStruct
	dbrConn         *dbr.Connection
	outfile         *os.File
	tables          []string          // all available tables for which we should at least generate a type definition
	whiteListTables utils.StringSlice // table name in this slice is allowed for generic functions
	eavValueTables  codegen.TypeCodeValueTable
	wg              *sync.WaitGroup
	// existingMethodSets contains all existing method sets from a package for the Table* types
	existingMethodSets *duplicateChecker
	isMagento1         bool
	isMagento2         bool
}

func newGenerator(tts codegen.TableToStruct, dbrConn *dbr.Connection, wg *sync.WaitGroup) *generator {
	wg.Add(1)
	return &generator{
		tts:                tts,
		dbrConn:            dbrConn,
		wg:                 wg,
		existingMethodSets: newDuplicateChecker(),
	}
}

func (g *generator) run() {
	defer log.WhenDone().Info("Stats", "Package", g.tts.Package)
	defer g.wg.Done()
	g.analyzePackage()

	var err error
	g.outfile, err = os.OpenFile(g.tts.OutputFile.String(), os.O_APPEND|os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0600)
	codegen.LogFatal(err)
	g.appendToFile(tpl.Copy, struct{ Package string }{Package: g.tts.Package}, nil)

	g.initTables()
	g.runHeader()
	g.runTable()
	g.runEAValueTables()
	codegen.LogFatal(g.outfile.Close())
}

func (g *generator) setMagentoVersion(magento1, magento2 bool) *generator {
	g.isMagento1 = magento1
	g.isMagento2 = magento2
	return g
}

// analyzePackage extracts from all types the method receivers and type names. If we found existing
// functions we will add a MethodRecvPrefix to the generated functions to avoid conflicts.
func (g *generator) analyzePackage() {
	defer log.WhenDone().Info("Stats", "Package", g.tts.Package, "Step", "AnalyzePackage")
	fset := token.NewFileSet()

	path := filepath.Dir(g.tts.OutputFile.String())
	pkgs, err := parser.ParseDir(fset, path, nil, parser.AllErrors)
	codegen.LogFatal(err)

	var astPkg *ast.Package
	var ok bool
	if astPkg, ok = pkgs[g.tts.Package]; !ok {
		fmt.Printf("Package %s not found in path %s. Skipping.", g.tts.Package, path)
		return
	}

	for fName, astFile := range astPkg.Files {
		if fName == g.tts.OutputFile.String() {
			// skip the generated file or we have recursion 8-)
			continue
		}
		ast.Inspect(astFile, func(n ast.Node) bool {
			switch stmt := n.(type) {
			case *ast.FuncDecl:
				if stmt.Recv != nil { // we have a method receiver and not a normal function
					switch t := stmt.Recv.List[0].Type.(type) {
					case *ast.Ident: // non-pointer-type
						if strings.Index(t.Name, TypePrefix) == 0 {
							g.existingMethodSets.add(t.Name + stmt.Name.Name) // e.g.: TableWebsiteSliceLoad where Load is the function name
						}
					case *ast.StarExpr: // pointer-type
						switch t2 := t.X.(type) {
						case *ast.Ident:
							if strings.Index(t2.Name, TypePrefix) == 0 {
								g.existingMethodSets.add(t2.Name + stmt.Name.Name) // e.g.: *TableWebsiteSliceLoad where Load is the function name
							}
						}
					}
				}
			}
			return true
		})
	}
}

func (g *generator) appendToFile(tpl string, data interface{}, addFM template.FuncMap) {
	formatted, err := codegen.GenerateCode(g.tts.Package, tpl, data, addFM)
	if err != nil {
		fmt.Printf("\n%s\n", formatted)
		codegen.LogFatal(err)
	}

	if _, err := g.outfile.Write(formatted); err != nil {
		codegen.LogFatal(err)
	}
	codegen.LogFatal(g.outfile.Sync()) // flush immediately to disk to prevent a race condition
}

func (g *generator) initTables() {
	defer log.WhenDone().Info("Stats", "Package", g.tts.Package, "Step", "InitTables")
	var err error
	g.tables, err = codegen.GetTables(g.dbrConn.NewSession(), codegen.ReplaceTablePrefix(g.tts.SQLQuery))
	codegen.LogFatal(err)

	if len(g.tts.EntityTypeCodes) > 0 && g.tts.EntityTypeCodes[0] != "" {
		g.eavValueTables, err = codegen.GetEavValueTables(g.dbrConn, g.tts.EntityTypeCodes)
		codegen.LogFatal(err)

		for _, vTables := range g.eavValueTables {
			for t := range vTables {
				if false == isDuplicate(g.tables, t) {
					g.tables = append(g.tables, t)
				}
			}
		}
	}

	if g.tts.GenericsWhiteList == "" {
		return // do nothing because nothing defined, neither custom SQL nor to copy from SQLQuery field
	}
	if false == dbr.Stmt.IsSelect(g.tts.GenericsWhiteList) {
		// copy result from tables because select key word not found
		g.whiteListTables = g.tables
		return
	}

	g.whiteListTables, err = codegen.GetTables(g.dbrConn.NewSession(), codegen.ReplaceTablePrefix(g.tts.GenericsWhiteList))
	codegen.LogFatal(err)
}

func (g *generator) runHeader() {
	defer log.WhenDone().Info("Stats", "Package", g.tts.Package, "Step", "RunHeader")
	type Table struct {
		Name      string
		TableName string
	}

	data := struct {
		Package, Tick          string
		HasTypeCodeValueTables bool
		Tables                 []Table
	}{
		Package: g.tts.Package,
		Tick:    "`",
		HasTypeCodeValueTables: len(g.eavValueTables) > 0,
	}

	for _, table := range g.tables {
		data.Tables = append(data.Tables, Table{
			Name:      g.getConsistentName(table),
			TableName: g.getMagento2TableName(table),
		})
	}
	g.appendToFile(tpl.Header, data, nil)
}

func (g *generator) runTable() {
	defer log.WhenDone().Info("Stats", "Package", g.tts.Package, "Step", "RunTable")
	type OneTable struct {
		Package          string
		Tick             string
		Name             string
		TableName        string
		Struct           string
		Slice            string
		Table            string
		GoColumns        codegen.Columns
		Columns          csdb.Columns
		MethodRecvPrefix string
		FindByPk         string
	}

	for _, table := range g.tables {

		columns, err := codegen.GetColumns(g.dbrConn.DB, table)
		codegen.LogFatal(err)
		codegen.LogFatal(columns.MapSQLToGoDBRType())

		name := g.getConsistentName(table)
		data := OneTable{
			Package:   g.tts.Package,
			Tick:      "`",
			Name:      name,
			TableName: g.getMagento2TableName(table), // original table name!
			Struct:    TypePrefix + name,             // getTableConstantName
			Slice:     TypePrefix + name + "Slice",   // getTableConstantName
			Table:     table,
			GoColumns: columns,
			Columns:   columns.CopyToCSDB(),
		}

		if data.Columns.PrimaryKeys().Len() > 0 {
			data.FindByPk = "FindBy" + utils.UnderscoreCamelize(data.Columns.PrimaryKeys().JoinFields("_"))
		}

		tplFuncs := template.FuncMap{
			"typePrefix": func(name string) string {
				// if the method already exists in package then add the prefix parent
				// to avoid duplicate function names.
				search := data.Slice + name
				if g.existingMethodSets.has(search) {
					return MethodRecvPrefix + name
				}
				return name
			},
			"findBy":  findBy,
			"dbrType": dbrType,
		}

		g.appendToFile(g.getGenericTemplate(table), data, tplFuncs)
	}
}

func (g *generator) getGenericTemplate(tableName string) string {
	var finalTpl bytes.Buffer

	finalTpl.WriteString(tpl.Type) // at least we need a type definition

	if false == g.whiteListTables.Include(tableName) {
		return finalTpl.String()
	}
	isAll := (g.tts.GenericsFunctions & tpl.OptAll) == tpl.OptAll

	if isAll || (g.tts.GenericsFunctions&tpl.OptSQL) == tpl.OptSQL {
		finalTpl.WriteString(tpl.SQL)
	}
	if isAll || (g.tts.GenericsFunctions&tpl.OptFindBy) == tpl.OptFindBy {
		finalTpl.WriteString(tpl.FindBy)
	}
	if isAll || (g.tts.GenericsFunctions&tpl.OptSort) == tpl.OptSort {
		finalTpl.WriteString(tpl.Sort)
	}
	if isAll || (g.tts.GenericsFunctions&tpl.OptSliceFunctions) == tpl.OptSliceFunctions {
		finalTpl.WriteString(tpl.SliceFunctions)
	}
	if isAll || (g.tts.GenericsFunctions&tpl.OptExtractFromSlice) == tpl.OptExtractFromSlice {
		finalTpl.WriteString(tpl.ExtractFromSlice)
	}
	return finalTpl.String()
}

func (g *generator) runEAValueTables() {
	if len(g.eavValueTables) == 0 {
		return
	}
	defer log.WhenDone().Info("Stats", "Package", g.tts.Package, "Step", "RunEAValueTables")

	data := struct {
		TypeCodeValueTables codegen.TypeCodeValueTable
	}{
		TypeCodeValueTables: g.eavValueTables,
	}

	g.appendToFile(tpl.EAValueStructure, data, nil)
}

// protects map TableMapMagento1To2. Code smell global variable to protect a global var.
var mapm1m2Mu sync.Mutex

// getMagento2TableName takes care of the correct table name as some tables
// have different names in Magento2 than in Magento1.
func (g *generator) getMagento2TableName(table string) string {
	mapm1m2Mu.Lock()
	defer mapm1m2Mu.Unlock()

	if g.isMagento1 && !g.isMagento2 {
		return table
	}
	if mappedName, ok := codegen.TableMapMagento1To2[strings.Replace(table, codegen.TablePrefix, "", 1)]; ok {
		return mappedName
	}

	return table
}

// getConsistentName generates a consistent name for all TableIndex*, Table*Slice
// and Table* types. This names is guaranteed to be the same whether we run
// Magento 1 or 2.
func (g *generator) getConsistentName(table string) string {
	mapm1m2Mu.Lock()
	defer mapm1m2Mu.Unlock()
	// 1. retrieve the mapped name used in Magento2
	if mappedName, ok := codegen.TableMapMagento1To2[strings.Replace(table, codegen.TablePrefix, "", 1)]; ok {
		table = mappedName
	}
	// 2. Remove the package name from the table name
	return codegen.PrepareVar(g.tts.Package, table)
}


text:
latest health care news
End-of-life care must be individualised and interlinked, NICE says
NICE has published new guidelines setting out how healthcare staff can help give people the best and most individualised care at the end of their lives in response to the abolition of the controversial Liverpool Care Pathway.
The Pathway was a protocol introduced in the 1990s for looking after people at the end of their lives, but was phased out last year after a government-commissioned review identified grave failings in how it was being implemented.
Sam Ahmedzai, a professor of palliative medicine and chair of the independent committee of experts who developed the guideline, said: "The Liverpool Care Pathway was originally developed to help the NHS provide 'a good death' for people at the end of their lives. However, its implementation became increasingly controversial over the years with stories of fluids and medicines being withheld, over-sedating the dying person.
"There were also problems with inexperienced staff recognising when someone was truly close to death, or if they had a possibility of recovery. It became seen as a 'tick-box exercise' and a 'one-size-fits-all' approach."
Ahmedzai said the new NICE guideline addresses these issues and gives professionals a "comprehensive, humane and evidence-based" framework for providing the best possible care based on people's individual needs and wishes.
The guideline, for clinicians in all areas of the NHS, sets out recommendations for recognising when death is imminent or if the person may be deteriorating, stabilising or improving.
It proposes avoiding tests unlikely to affect care in the last few days of life unless there is a clear clinical need for them, and recommends seeking advice from more experienced colleagues when there is a high level of uncertainty.
As well as reiterating the importance of maintaining people's hydration, NICE also emphasised the need for shared decision-making and clear communication between all professionals concerned.
These decisions must be steered, it said, by individualised care plans in discussion with the person who is dying and their families, which take into account their own needs and wishes.
While NICE said this must apply across all staff, Susan Dewar, a community district nurse and independent committee member, said listening to the needs of patients and those close to them is an "integral part of nursing".
"Translating the information gathered leads on to the development of an individualised care plan for that person. Everyone is an individual so the care should be individualised, but supported by the best available evidence, and this is what this guideline supports," Dewar added.
Although it welcomed the guidance's "holistic approach" to help doctors, nurses and other professionals, charity Hospice UK said the real challenge will be putting it into practice.
The charity's chair, Lord Howard of Lympne, said: "There can never be a 'tick-list approach' towards caring for the dying, and this guidance must be underpinned by greater investment in training and education for all staff involved in end-of-life care.
"This is crucial if we are to avoid the failings of how the Liverpool Care Pathway as implemented. All staff need to be trained in caring for dying people and their families, and Health Education England urgently needs to take up the gauntlet on this front.
"There also needs to be a deep-seated cultural shift within the NHS, if doctors and nurses are to provide more compassionate, responsive care that is genuinely centred on dying people's needs."
Paula 18/12/2015 at 21:48
Just coming to the 3 year anniversary of our Mum's death, with our Dad at 95 years of age. Therefore, anything that can be done to maintain the dignity and give support to all would be appreciated. My Dad was concerned that the Liverpool pathway was used to end life!
End of life care planning: why it should be everyone's concern
CQC promise reviews of social care, end of life care and Mental Health Act
Care for the dying has improved but is still inadequate – RCP report
UK has best palliative care in the world – but services still 'inadequate' for some
New palliative care data sets to provide nationwide picture of end-of-life care
'Appropriate and equal' palliative care provision failing in Scotland and Wales
Care of dying patients still 'inconsistent'
NICE drafts 'improved' end-of-life care guidance
People 'dying without dignity' and in 'unnecessary pain' says Ombudsman
New training pack encourages people to talk about end of life care
08/10/2013The World Trusts Minitab For Quality
Minitab is the leading provider of quality improvement software. For ...
02/09/2013A First Look at the Expectations of Business Continuity, as part of EPRR
A First Look at the Expectations of Business Continuity, as part of Emergen...
NHS England has published its People Plan for 2020-2021, along with its Our...
From May/June 2020 edition Trish Stephenson, Head of Facilities Manage...
Evolution is crucial in any business and National Health Executive is no di...
DOWNLOAD THE FREE WHITEPAPER

redpajama_set_name: RedPajamaCommonCrawl


text:
Lagerstrom or Lagerström is a surname. Notable people with the surname include:

Alexander Lagerström (born 1991), Swedish ice hockey player
Oscar Lagerstrom (1890–1974), American sound engineer
Paco Lagerstrom (1914–1989), American mathematician and engineer
Tony Lagerström (born 1988), Swedish ice hockey player
Victoria Lagerström (born 1972), Swedish singer and beauty pageant winner

redpajama_set_name: RedPajamaWikipedia


Weekend pass (includes on-site tent camping) $175; cabin bunks available for an additional charge; single-day tickets also available.
Shadow Woods Metal Fest, the Mid-Atlantic's only open-air camping heavy metal gathering, is back for its third year featuring 39 bands from all genres and subgenres of heavy metal spread out over three days and four stages, tucked away in a summer camp in eastern Maryland.
Performers will include a few that we've written about before (like Castle, Green Elder, and Hexis), some we haven't quite gotten around to YET (including Panopticon, Dead in the Manger, Foehammer, Nechochwen, Sloth Herder), and literally dozens more!


Buy a junior ski pack will save you time and money. Click, select the pair of skis which suits your child, while enjoying advantageous discounts. Precision Ski Team also fit the fasteners for free, allowing you to receive a ready-made child ski pack offers!
How to choose the most appropriate for your child skis?
Whether beginner or already comfortable on the snow, it is important to take the time to choose the best skis for your child. Depending on its level, his favorite playground (track, off piste, snowpark...) and the frequency of its practice, you should check what equipment best suited for him enable to enjoy and evolve in the best conditions.


Displaying Photos of High Gloss White Dining Tables And Chairs (View 14 of 25 Photos)Ga Vico Gloss Grey Glass Top Designer 160Cm Dining Set – 4 6 Grey in Most Popular High Gloss White Dining Tables And Chairs | Find the Best Interior Design Ideas to Match Your Style.
It can be highly recommended to find high gloss white dining tables and chairs after doing a really good glance at the item that are available, consider their prices, investigate and then pay for the most useful products at the perfect option. This can assist you in having to get the appropriate dining room for your home to make it more impressive, and even redecorate it with the right items and components to make it a house to be valued for long periods.
And what's better, you are able to discover deals on dining room each time you check around and also importantly if you ever look to shop high gloss white dining tables and chairs. Prior to buying any kind of pieces of furniture personally, we highly recommend you have the effective actions to ensure you are really purchasing the items you should get as well as, ensure you are getting your attention from the internet for the thing you buy, that you may very well be sure to discover ways to discover the perfect price reasonable.
The details can help you to pick out high gloss white dining tables and chairs at any time, by learning there is certainly many things influence an area. The best part about it might that be easy to help make your house beautiful with interior design that will fit your personal design, there is plenty of tips to get interested with regards to having the home stunning, regardless of your own theme and preferences. Therefore, our guidance is to take the opportunity in consideration of your personal choice in addition to learn about that which you want and also getting the house something that is amazing to you.
You can get much important things to examine in picking the right high gloss white dining tables and chairs. Get the most of the dining room following a variety furnishings guidelines, the preferred place to start is know very well what you plan on putting on the dining room for. Depending upon what you may have intend to use on the dining room could affect the decisions you happen to make.
Regardless of whether you are decorating your room and planning the first room, preparing for the high gloss white dining tables and chairs is an important concern. Remember these guide to make the area you need regardless wherever the living space you have available. The right solution to you can begin thinking about dining room will be to go with a highlight for the space, so arrange the others of the furniture suit all-around the dining room.
Styling your dining room usually requires several options to evaluate as well as it is measurements and also model. To stay clear of decorating your current area unclearly, take a look at some tips that provided by the professionals for selecting your high gloss white dining tables and chairs. It is actually preferable that you create extraordinary appeal. The color combined with individualism can make each and every space feel that it could be truly all yours. Mix your incredible styling using the similar color preferences to ensure it give the impression of being aesthetically more appealing. The perfect style, structure and also quality have the ability to make gorgeous the presence of your incredible interior of the home.
It is important for your living space to be presented with the appropriate high gloss white dining tables and chairs combined with effectively arranged to ensure that you get maximum ease and comfort to any person. The perfect plan and also arrangement of the dining room are going to enhance the decorations of your living area or make it a rise in attractive and also comfy, expressing a fresh lifestyle to your house. Before spend money on shopping for a product along with reality, before actually attempt to looking around for potential purchasing there are some features you should try to be sure you do before anything else.
The right solution to get the ideal dining room is by collecting a proper measurements of that space also its current pieces of furniture theme. Deciding on the proper high gloss white dining tables and chairs allows for a correctly layout, nice also relaxing room in your home. Look from the internet to make ideas for the dining room. In that case, think about the place you have available, including your family needs and you are getting ready to establish a place which you will take the pleasure of for a long time.


IECHO attended Sign China 2017 during 20-22 September.
The BK2 high speed digital cutter was shown at this exhibition.
Equipped CCD camera, oscillating tool, V-cut tool, Kiss-cut tool, rotary tool and CNC router.
And the conveyor system realizes the continuous cutting.


This year marks the 100th anniversary of the start of the First World War. This war is a pivotal turning point in the history of warfare, as it saw the shift towards modern weapons and tactics.
Many local archives contain treasures related to this First World War and the Archives Association of Ontario is working to collect links to these resources and make the readily available.
Please visit to learn more about the impact of the First World War throughout Ontario.
This entry was posted in Archives in the News, DRAAG Information and tagged AAO, Resources, World War I. Bookmark the permalink.


text:
Stalking a Claim on the Moon
http://www.thespacereview.com/article/2058/1
From Jeff Foust's article in The Space Review:
The current round in the debate over property rights in space started with the publication last week of a white paper titled "Homesteading the Final Frontier" by the Competitive Enterprise Institute (CEI), a non-profit think tank that promotes issues associated with free enterprise. In the white paper, CEI adjunct scholar Rand Simberg explained his approach to securing property rights beyond Earth.
Simberg agrees that the OST prohibits countries from claiming sovereignty over territory on the Moon or other bodies. However, "there's maybe a loophole here," he said a forum about his white paper held Thursday on Capitol Hill. "The idea is that recognition is not necessarily appropriation."
Specifically, he suggests legislation whereby the US would recognize claims made by private entities, American and others, which meet certain conditions regarding habitation and transportation. While it would recognize those claims, he said, the US government would not attempt to defend those claims by force. "If that's the case—it's not an American entity, and it's not going to be defended by the US government—how could that possibly be a claim of sovereignty?" Simberg asked.
In the white paper, Simberg offers a hypothetical example where, under such a system, the US would recognize a claim made by a company incorporated on the Isle of Man with investors from Dubai. "To say that such a recognition amounts to a 'national appropriation' by the U.S. of the legal real estate established with such a claim is plainly absurd," he writes.
More about Risk and Consumer Freedom
Time Runs Out For Proposed Louisiana Fantasy Sports Tax
One Month Left to Opt Out of Chase Binding Arbitration
Consumer Financial Protection Bureau Considers Repealing Payday Loan Rule


text:
Q: Calculating daily, weekly and monthly mean in python (Pandas) I have a file which has different readings in columns. I am able to find daily mean by using the following code. This is when the month, date, time are separated by space. I am just wondering, how can I do the same if I have date,month, year in first column and then time in second column. How can I calculate weekly, daily and monthly averages? Please note, the data is not equally sampled.
import pandas as pd
import numpy as np
df = pd.read_csv("Data_set.csv", sep='\s*', names=["month", "day", "time", "Temperature"])
group=df.groupby(["month","day"])
daily=group.aggregate({"Temperature":np.mean})
daily.to_csv('daily.csv')

Date        Time        T1      T2      T3
17/12/2013  00:28:38    19      23.1    7.3
17/12/2013  00:58:38    19      22.9    7.3
17/12/2013  01:28:38    18.9    22.8    6.3
17/12/2013  01:58:38    18.9    23.1    6.3
17/12/2013  02:28:38    18.8    23      6.3
.....
.....
24/12/2013  19:58:21    14.7    15.5    7
24/12/2013  20:28:21    14.7    15.5    7
24/12/2013  20:58:21    14.7    15.5    7
24/12/2013  21:28:21    14.7    15.6    6
24/12/2013  21:58:21    14.7    15.5    6
24/12/2013  22:28:21    14.7    15.5    5
24/12/2013  22:58:21    14.7    15.5    4

redpajama_set_name: RedPajamaStackExchange


Los Chinchillos del Caribe is the first cumbia urbana and alternative rock group from Puerto Rico. Their sound is influenced by Manu Chao, Celso Piña, Fabulosos Cadillacs, Damas Gratis, Calle 13, Pibes Chorros among others. The group was formed during the student strike of the University of Puerto Rico in 2009.
Los Chinchillos got signed to Sparkof Entertainment / Machete Music in 2016. They release their first album "El Pugilato" early in 2017 in a project that mixes cumbia, reggaetón, rock, moombathon and salsa. Among the producers of the album are: Toy Selectah, Asid The Producer, Andres "Toxic" Mereció, Shadow "La Sombra", Felian "Alinstrumental", The Julca Brothers and Echo. The mastering was worked by Frank "El Medico".
In 2017 the band performed at some of the most important US and PR festivals including: SXSW in Austin, L'Festival in L.A., Ruido Fest in Chicago, Mojanolah in PR, The After in Miami, among others. After hurricane Maria hit the island of PR, the band had to stop for a while but are coming stronger in 2018.


Elegant rug with geometric and three-dimensional look. Varjo Rug is hand-woven from 100% New Zealand wool.
The idea was to create a rug with multiple layers: the main layer with solid colour, the underlying layer with a dynamic herringbone pattern. Varjo is Finnish for shadow, which translates to the shadow effects that are created between the layers, as the darkest color block almost rises above the others.
Upon request is also available the rug pad which guarantee a stable grip. Please ask the Customer Service for more information.


text:
Here's What Gabelli Funds Has Been Buying
It can pay off to keep an eye on the big investors out there.
Selena Maranjian
(TMFSelena)
Feb 25, 2013 at 10:09PM
Follow @@SelenaMaranjian
Every quarter, many money managers have to disclose what they've bought and sold, via "13F" filings. Their latest moves can shine a bright light on smart stock picks.
Today, let's look at investing giant Gabelli Funds, the mutual fund and closed-end fund arm of GAMCO Investors and familiar to many because of Mario Gabelli, the well-known value investor. Indeed, the folks at Institutional Investor named him Money Manager of the Year in 2011, citing an average annual return of 16.3% for his GAMCO Investors since its inception in 1977. That's darn impressive.
The company's reportable stock portfolio totaled $14.9 billion in value as of Dec. 31, 2012.
Interesting developments
So what does Gabelli Funds' latest quarterly 13F filing tell us? Here are a few interesting details:
The biggest new holdings are ADT and Ryman Hospitality Properties. Other new holdings of interest include Energy Transfer Partners (NYSE:ETP). Recently yielding 7.6%, Energy Transfer boasts roughly 24,000 miles of natural gas pipelines as well as oil pipelines and other assets it got via its acquisition of Sunoco last year. The company is vulnerable to drops in natural gas prices and carries a lot of debt. It recently topped analyst expectations for earnings and revenue.
Among holdings in which Gabelli Funds increased its stake were Freeport McMoRan Copper & Gold (NYSE:FCX) and Corning (NYSE:GLW). Freeport recently posted strong gains in sales of copper and gold, and is cutting its costs as well. It's also expanding its scope, moving into oil and gas exploration. The stock looks attractive at recent levels and sports a 3.9% dividend, partly because it has fallen some recently, along with the price of gold. Some have sold fearing interest rate hikes from the Fed, which will make some alternatives to gold more attractive.
Corning, which recently yielded 2.9%, is producing glass for LCD displays and smartphones and fiber for telecom networks, among other things. Demand for its Gorilla Glass is strong, generating more than $1 billion in 2012 revenue, and its flexible new Willow Glass is also promising -- and might end up in Apple's new iWatch. Also boding well is an expected uptick in TV sales and possible inclusion in Apple TVs one day. There's a solid case to be made that the stock is attractively priced at recent levels and a good long-term investment.
Gabelli Funds reduced its stake in lots of companies, including SUPERVALU (NYSE:SVU), which is in the tough supermarket business, where profit margins are thin and competition tight. The company has drawn a $3.3 billion bid from a private equity firm, in a deal where SUPERVALU gives up its big-name supermarkets and ends up focusing more on its wholesale business and remaining chains, such as Save-A-Lot.
Finally, Gabelli Funds' biggest closed positions included Cooper Industries (which is being bought by Eaton) and Kenexa (bought by IBM). Other closed positions of interest include Intuitive Surgical (NASDAQ:ISRG). Intuitive is the leader in robotic surgical equipment, and has been growing rapidly in recent years. There's much to like about it, such as its repeating revenue from service contracts and supplies. A red flag, though, is that some studies are suggesting that robot-assisted surgeries may not be much more effective than traditional ones. (Some of these studies ignore the faster recovery times for less-invasive procedures.) The company has been trying to appeal more directly to doctors and hospitals lately. The new tax on medical devices may sting Intuitive a bit, but it has the earnings to handle it -- the tax is likely to hurt its less profitable or unprofitable peers more.
Here's Why Arrowhead Pharmaceuticals Skyrocketed 12.7% Today
How Does Your Income Stack Up Against the Average American?
Here's Why Epizyme's Shares Are Surging 19.6% Higher Today
We should never blindly copy any investor's moves, no matter how talented the investor. But it can be useful to keep an eye on what smart folks are doing. 13-F forms can be great places to find intriguing candidates for our portfolios.
{%sfr%
Intuitive Surgical
NASDAQ:ISRG
Energy Transfer Operating, L.P.
NYSE:ETP
SVU
SuperValu
NYSE:SVU
NYSE:GLW
Freeport-McMoRan Inc
NYSE:FCX
Here's What Gabelli Funds Has Been Buying @themotleyfool #stocks $ISRG $ETP $SVU $GLW $FCX Next Article


Which service are you referring from?
Who is making this referral?
What would your client like to engage with?
When Would You Like The Referral To Start From and Finish?
It is important that we receive the correct information to ensure the correct levels of knowledge and support are in place i.e. 1 to 1 supervision and general safeguarding procedures.
Please Note: Once referred if the individual's behaviour does not match the risk factors detailed on this referral form, you will be contacted, this may result in fees being altered to match the Risk factors, Risk Assessments or Educational Health Care Plan needs.


text:
The Strange Case of the Land Owner who Refuses to pay the Church for a Murder back in 1357
I know, I know, 1357 is about 350 years too early for 18th century, but this story will hopefully make those among you who still nurse a headache from headdesking over the decision by the CoE not to appoint female bishops feel a little better about their church. Because it's always nice to know that God's Ground Staff is just as ridiculous elsewhere.
Let me take you to the beautiful Church of Näfels, Canton of Glarus, Switzerland. Glarus is one of those places where Switzerland is at its "swissest", in lack of a better word. Cows, green lands and lots of stubborn people. It was in Glarus where the last "witch" in Europe was executed, the unfortunate Anna Göldi. (To be fair, they did rehabilitate her soon after – in 2008. After refusing a rehabilitation in 2007.)
The French tried without much success to implement new regulations during the occupation of Glarus in the late 18th century; people simply refused to accept the newfangled nonsense. So, considering that we're dealing with people who are very proud of their traditions, you won't be surprised that the Church of Näfels is taking a land owner to the cleaners for refusing to pay a fine dating back to 1357. 1357.
In 1357 (have I mentioned it was 1357 already?), one Konrad Müller, murderer and owner of various walnut trees, committed to donate an Eternal Light to the church of Näfels and provide the oil to keep it running. In return, he would not be executed for his crime. After his death, the owners of his land were supposed to deliver the yearly Eternal Go Go Juice, courtesy of the above-mentioned walnut trees.
Fast forward to 2012 (655 years later. 655.), and Konrad Müller's house has long gone. So have his walnut trees. His land has been split into two lots, and the owners are neither relatives of Mr. Müller nor involved with murder or oil trade. And yet – yet each of them has to pay the church CHF 70.00 a year (that's about £ 47 or EUR 58) due to lack of walnut trees.
One of the land owners had enough of this deal, and refused to pay for the sins of some bloke who had made a deal with the church centuries ago. "That's it, I'm not going to pay for this anymore!" he declared, and that was not it, of course, because this is Switzerland, and Glarus, and the Church, and Oh My God TRADITION, so the resident will now have to appear in front of a judge and make his case.
As you can imagine, there are two camps here:
Team "if he didn't want to pay he shouldn't have signed the contract, and it's tradition, what's been good for 655 years will be good for another 655"
Team "21st century, wtf selling of indulgences, contract is not legal, waste of money and resources".
Personally, I'm Team "thanks for providing me with something to write about", but considering that, through the years, the church has earned thousands of Francs with the sin and soul of Konrad Müller, I can't help but wonder if it wouldn't make more sense to get the Eternal Light electrified. I'd be willing to donate 24 energy saving light bulbs to the church in Näfels, if that could help restore peace.
May St. Osram provide some enlightenment.
27 November, 2012 at 3:34 pm 3 comments


After their groundbreaking success in Khobar in 2012, Loud Art and Nuqat celebrated again with an exhibition this time in Riyadh, Saudi Arabia. The exhibition, which took place at Naila Art Gallery on October 20th showcased artwork under the theme "culture shock". The event was attended by art enthusiasts and collectors alike, as well as the media. Here is some of the artwork that we enjoyed and wanted to share with you.
Learn more about Naila Art Gallery on their website, or follow them on Instagram.


text:
AccueilPublicationsUSA : FBI-IC3 Releases Annual Report Highlighting Trends in Internet Crime
USA : FBI-IC3 Releases Annual Report Highlighting Trends in Internet Crime
Écrit par © Filactu le 27 juin 2017 . Rubrique: Publications
Giving someone access to your computer is like giving out a key to your front door. A computer can have your bank account information, family photos, and other private documents and data—information that fraudsters would like to steal. That's why tech support fraud has become a significant trend in online crime, according to the 2016 Internet Crime Report from the FBI's Internet Crime Complaint Center (IC3).
In tech support fraud cases, criminals convince unsuspecting victims to provide remote access to their computer by calling and posing as tech support personnel from a legitimate company. The criminal can then simply charge your credit card for a fake anti-virus product, or, in more sinister situations, they can steal your personal information or install malware. More than 10,000 incidents of tech support fraud were reported to the IC3 in 2016, with victims losing nearly $8 million. Though anyone can be a victim, older computer users are the most vulnerable targets.
"They'll trick you into letting them into your computer," said IC3 Unit Chief Donna Gregory. "You open the door and allow them in. You may think you're just watching them install a program to get rid of a virus, but they are really doing a lot of damage behind the scenes."
In addition to tech support fraud, the other major fraud categories last year were business e-mail compromise, ransomware, and extortion.
The IC3 receives complaints on a variety of Internet scams and crimes, and it has received more than 3.7 million complaints since it was created in 2000. In 2016, the IC3 received a total of 298,728 complaints with reported losses in excess of $1.3 billion. The IC3 uses the information from public complaints to refer cases to the appropriate law enforcement agencies and identify trends. The IC3's extensive database is also available to law enforcement. Internet users should report any Internet fraud to IC3, no matter the dollar amount. Additional data helps the FBI and law enforcement gain a more accurate picture of Internet crime. <
View state reports


text:
Cameltoe o camel toe (zoccolo di cammello) è un termine slang angloamericano che identifica l'impronta della vulva umana attraverso gli indumenti. La parola deriva dalla contrazione delle parole camel's toe, cioè  l'alluce del cammello, la cui forma di due mezze lune affiancate richiama la vulva.

Il cameltoe tende a verificarsi con l'uso di indumenti aderenti anche se l'anatomia gioca un ruolo fondamentale. Infatti se i peli sono troppo lunghi, l'"effetto Cameltoe" non si verifica; così pure una vulva composta da grandi labbra di dimensioni ridotte può impedirlo anche con indumenti molto aderenti e peli corti.

Altri progetti

Feticismo


We will all be starting like this for the Build a Line Challenge!
But you should all expect great things from our 57 participants.
Wouldn't you love to know who they are? WELL......Let me introduce you!
The list with active links is posted below.
By all means, feel free to check out their blogs and get to know them. Many have been writing about the challenge as well as lots of other things.
BE SURE to check out TAMMY ADAMS' blog PAISLEY LIZARD blog link.
Tammy has written a THREE PART SERIES on how to develop a great blog!
Blogging is so important, and blog hops are great promo. People naturally get a little nervous when they participate, as they want to follow all the rules correctly.
If you see any issues with our list, leave no comments here please. I would love to hear from you at bsue1441@aol.com or you may message me at Brenda Sue Lansdowne at Facebook.
The first hop is one week from today, January 23, 2015! BE SURE TO JOIN US!


Every day that we delay addressing the problems of public education in America more kids give up on themselves because they have fallen so far behind their classmates that they have no hope that they will ever catch up.
I see these young men and women as seniors in high school or shortly after they finish high school when they show up to take the Armed Services Vocational Aptitude Battery (ASVAB). They are hoping to find a way to make a life for themselves by enlisting in the Armed Services. At the end of the test session, they walk out of the room with an envelope in their hands and their heads hanging low. In the envelope are the results of their ASVAB that show they have scored below the minimum score of 31 out of a possible 99, which is the threshold for enlistment eligibility.
So far this year, 25 percent of the candidates to whom I have administered ASVAB have scored below 31, and half of those score below 20. A score of less than 20 indicates a high probability that individuals are functionally illiterate and innumerate. Two-thirds of the young people who scored below 31 were African-American. Not only do these young American men and women not qualify for enlistment, they will also fail to qualify for all but the most menial and lowest-paying jobs in their community. In all likelihood, the young African-American men will return to their poor urban or rural communities where many will to turn to gangs, crime, and or drugs. Some will be killed during commission of a crime or as a result of black on black violence. Far too many will end up in a state penitentiary. The young woman will most likely get pregnant and begin raising their own children in the same cycle of failure and poverty in which they were reared.
All of the young men and women who scored below 31 are victims of flawed educational process in which they started out behind and found it impossible to catch up with their classmates. The sad truth is that they never had a chance and they are left with very few choices in life. There are millions of other young children in public schools all over the U.S. who are destined to the same fate.
Our systems of public education are like any other system that has lost focus on its purpose and has been allowed to deteriorate over time. Somewhere along the line, as the society-at-large became exponentially more complex, our systems of public education began to view accelerating levels of failure as normal and acceptable.
We must stop blaming poverty and recognize that poverty is a consequence of our flawed educational process not the cause of it. We must stop blaming our teachers and schools that are doing the best they can under a flawed educational process that is neither structured nor tasked to help children who show up for school with a range of "academic preparedness deficiencies." It is a system that allows an unacceptable percentage of students to fail while contributing to the burnout of a growing population of teachers; men and women who have lost faith in the profession they chose with youthful enthusiasm and lofty purpose.
We must stop educational reformers who have no clue about the damage they do when they siphon off tax dollars of which our most challenged schools, teachers, and students are in desperate need. We must not allow them to further weaken the ties between our public schools and the communities they exist to serve, while destroying the hope of students and teachers, alike.
In their defensive postures, professional educators like to scoff at the results of the Nation's Report Card, presented by the National Assessment of Educational Performance (NAEP), which provides documented evidence that public education in America is in a state of unacceptable crisis.
The irony is that professional educators would be well-advised to embrace the findings of the Nation's Report Card as verifiable proof that the educational process, with which teachers are asked to do their important work, is fatally thawed.
Here is a quick summary of the NAEP's findings for 20131, showing the percentage of American students whose performance is measured to be below or above "Proficient." The Achievement Levels identified by the NAEP are "Basic," "Proficient," and "Advanced.
For purposes of this article, the author identifies "Proficient" as the minimum acceptable level of achievement for our students for the simple reason that if a student has achieved only partial mastery of the subject matter and is unable to apply what they have learned to real-world situations they our job is not finished.
Clearly, the goal of education must be that students be able to "demonstrate competency" over the subject matter and they must also be able to apply what they have learned in "real-world situations," which would include subsequent lessons within a subject area.
How long do we allow roughly 70 percent of American students, a disproportionate percentage of which are black and other minorities, to be less than "proficient" before we say this in unacceptable? How long can we allow public school educators to claim that American public education is better than ever? How long can we allow the educational reform movement's focus on privatization and standardized testing to abandon our nation's most vulnerable students and school districts and hurt these kids, their teachers, and their communities?
It does not have to be this way! Through a straightforward application of "systems thinking" and organizational principles we can alter this reality for all time.
At the end of this post, I have provided an implementation outline that will show just how simple it would be reinvent the educational process at work in American public schools. It is a model that requires no legislative action and can be implemented by local school districts, acting on their own authority.
Finally, the reader is also encouraged to check out my book, Reinventing Education, Hope, and the American Dream: The Challenge for Twenty-First Century America and my blog, Education, Hope, and the American Dream.
It understood that most public school teachers and schools believe they work hard to make sure that every child learns and that no child gets left behind. The reality, however, is that each year children are moved from grade to grade who are behind their classmates. Each and every year thereafter they fall a little further behind until they lose all hope that they can ever catch up.
That this occurs is not the fault of teachers rather it is a flaw in a structure that does not provide each teacher with the time and resources they need to teach and does not provide each and every child with the time and support they need to learn. We cannot alter those unfortunate outcomes until we alter the internal logic of the educational process and also the structure that exists to support that process.
What we offer is a new reality that can benefit every child in America and that can transform public education.
The purpose of an education is to prepare children to be responsible and productive citizens who have a wide menu of choices for what they want to do with their lives in order to find joy and meaning. As citizens of a democracy, we want them to participate in their own governance, and be able to make informed choices with respect to the important issues of the day.
Note: An education must teach children more than facts and knowledge, it must teach them that success is a process. Success and winning are not accomplishments rather they are a life-long process of getting the most out of one's life.
•	That there are no arbitrary schedules or time limits and that all students are on their own unique schedule.
Note: Education is not a race to see who can learn the most, the fastest and there is no such thing as an acceptable level of failure. Our task is to create a model of an educational process that rejects failure and where the only thing that matters is that children learn.
Step 3 – What do children need In order to truly learn?
•	To learn how to be successful and they need to know that success and winning are nothing more than a process of striving toward one's goal and making adjustments along the way on the basis of what they learn from their mistakes.
•	An academic plan tailored to their unique requirements.
•	The involvement and support of their parents or guardians.
We begin by selecting the lowest performing elementary schools in any of our targeted districts and use them as a test case.
Note: Our primary agenda is to focus on children who are starting kindergarten and all of the action items are presented with that assumption. If a school district's commitment to this model is sufficiently high, however, there is no reason why we could not, similarly, organize students in the higher elementary grades in the same manner. Doing so creates additional challenges because the farther along children have been pushed, the further behind they will be. If we commence with these older children, it still requires that we know where they are in terms of their academic development in each subject area, and then that we tailor a plan to begin the process of starting over with that unique student. Teachers will have less time to help these kids play catch up but, clearly, these students will need all the help they can get before they move on to the middle school phase.
Note: We chose Kindergarten rather than first grade for our starting point because the sooner we intervene in the lives of our students, the better. Part of the problem in disadvantaged communities is that children live in an environment in which intellectual and emotional enrichment opportunities are few in number. The longer a child is left in such an environment the further behind they will be.
Note: Teams have proven beneficial in business and industry for a long time and they have a clear record of high levels of productivity and excellence. Even in strong union environments in manufacturing venues, teams often prove more effective in dealing with subpar performance or commitment than management. In large work groups, marginal performers and those with low levels of commitment are able to hide in the crowd. Within a team setting, there is no place to hide and each person his held accountable by the team.
Teaching teams have the added advantage that if one teacher is having difficulty with any individual student, another member of the team can step in. Teams will also make it easier to develop a rapport with parents.
Teams also provide much more stability. If one team member is off due to illness or other reasons, the team is still able to maintain its equilibrium, even given the insertion of a substitute.
If a school has teacher aide slots for this age group, we will recommend that the funds allocated for such positions be redirected to paying for additional teachers. Striving to optimize teacher resources is a top priority and if we are utilizing the proper tools, aides will not serve our purpose.
Students will remain together as a group and will be assigned to the same teaching team throughout their full elementary/primary academic phase.
Note: Close personal relations with teachers and other students, in a safe environment, can best be accomplished by keeping them together over a period of years. Why would we want to break up relationships between teachers and students because the calendar changes. Sometimes it takes teachers most of the year to bond with some of their most challenging students only to have it brought to a halt at the end of a school year.
This type of long-term relationships also enhances the likelihood that parents can be pulled into the educational process as partners with their children's teachers.
Reaching out to parents must be a high priority.
Note: We know that students do better when they are supported by their parents and when parents and teachers are working together as a partners behind a united front. We also know that when we form close relationships with parents we also get to know their families. This creates a real opportunity to intervene if there are younger children in the home to help insure that they enjoy improved enrichment opportunities.
Select an appropriate assessment tool and utilize it to determine the level of academic preparedness of each child when they arrive at our door for their first day of school. We will then utilize what we learn from that assessment to create a tailored academic plan for each and every student based on where they are and pursuant to the academic standards established in that state.
Note: Teachers can spend as much time as necessary on any of the steps in the process and can even go back to re-present a lesson using other methods and resources. Each review gives teachers the opportunity to help children learn from the mistakes they made on practice assignments and on unsuccessful quizzes. When the student's success on practice assignments suggests they are ready, they can move on to the MQ. If the student scores 85 percent or better, their success can be celebrated and they are ready to move on to the next lesson. If not, the teacher can recycle back through all or part of the learning process until the student is able to demonstrate mastery.
Provide each student and teacher with a personal tablet with which to work.
Document Mastery achievements as verified by VMQ as part of the student's permanent record.
Note: The purpose of the software is to empower teachers so their time can be devoted to meaningful interaction with each and every student as they proceed on their tailored academic journey. Meaningful interaction will include coaching, mentoring, consoling, encouraging, nurturing, playing, and celebration. That interaction may also include time spent with students' parents.
Whenever it is deemed advantageous, we believe there is also great value in group learning sessions, projects and interaction.
No student is to be pushed to the next lesson until they have mastered the current lesson as success on one lesson dramatically improves the readiness for success on subsequent lessons. Similarly, no student who has demonstrated that they are ready to move on will be asked to wait for classmates to catch up. Every student moves forward at the best speed of which they are capable.
The beauty of this approach is that students can progress at their own speed, even if that means charging ahead with teachers rushing to keep up. It also means that no student will feel pressured to move faster than they are able nor will they experience the humiliation of failure.
The Verification Master Quiz (VMQ) will occur a few lessons later as the purpose is to assure that the child has retained what they have learned and are able to utilize it on future lessons. Ultimately, if the child cannot utilize what they have learned in real-life situations they have not learned it and, therefore, our job on that lesson is not completed. Once verified, mastery is documented as part of the student's permanent record.
High stakes testing using state competency exams will not disappear until they have been proven to be obsolete. Teachers and students should spend no time worrying about them or preparing for them. If students are truly learning, their ability to utilize what they have learned will be reflected in competency exam results. Such exams are, after all, nothing more than a real-life opportunity to apply what one has learned.
Note: Ask yourself "Who would we predict to perform better on a competency exam given in the second semester of what we currently refer to as the 5th grade?
The child who has fallen further and further behind with each passing semester and simply has not learned a significant portion of the subject matter on which they will be tested?
The child who may or may not be on schedule as determined by state academic standards but has actually mastered the material they have covered and who are demonstrating an accelerating pace of learning?
•	Learn to appreciate and to express themselves through art.
We will not concern ourselves with arrival of new students or the departure of students during the process or with teachers who may need to be replaced for whatever reason. These things will happen and we will deal with them when necessary. These inevitable events must not be allowed to divert us from our purpose. We must keep in mind that there are no perfect systems but the best and most successful systems are the ones that allow us to adapt to the peculiar and the unexpected.
Finally, we must stress that winning organizations are driven by operating systems in which every single event or activity serves the mission. When we tinker with bits and pieces of an operation out of context with the system and its purpose, we end up with a system that looks very much like the educational process we have today. It will be a system that simply cannot deliver the outcomes that we want because there are components that work at cross purposes with the mission.
Note: We are creating an environment in which the fact that some children need additional time to master the material is considered to be inconsequential in the long run and in the big picture, much like it is inconsequential if it takes a child longer to learn how to ride a bicycle than his or her playmates. Once they learn to ride they all derive equal benefit and joy from bicycling.
Anywhere along the way, from initial assessment and beyond, if a child is determined to have special needs they will be offered additional resources, much as happens in our schools, today.
All children can learn if given the opportunity and if they feel safe and secure. The fact that we have clung for so long to an ineffectual educational process that sets kids up for failure and humiliation is unfathomable. If we refuse to seize an opportunity to alter this tragic reality it is inexcusable.
Once a school district becomes satisfied that this new model produces the outcomes we want, the model can be implemented in each and every school in the district.