text:
An #overrides annotation for your (Ruby) methods.

Inspired by Java's [@Override][1].

## Install

    $ gem install overrides

or add this line to your application's *Gemfile* (and `bundle`) :

    gem 'overrides'

optionally add  `:require => 'overrides/for_all'` to have `overrides` available
in all classes/modules as a built-in (singleton) method.

## Usage

Let's have a base class with `Overrides` pulled in :

    class Message
      extend Overrides

      def self.deliver(msg); end

      def do_send; end
      def sent_at; end
      def reply?; end
    end

a notice would be a message sub-type, note how `overrides` gets used :

    class Notice < Message
      overrides
      def do_send; super; end

      def reply?; nil; end
      def sent_at; nil; end

      overrides :reply?, :sent_at
    end

 without args (before method) works with singleton methods as well :

    class Notice < Message
      overrides
      def self.deliver(msg); end
    end

**NOTE:** there's no global name-space pollution by default, thus you'll need
to hook up the `Overrides` module (or extend `Object` to pull it in for all).

### "Java"

Here's how you use it with JRuby to "annotate" method overrides :

    require 'overrides/for_all'

    class NonEmptyList < java.util.ArrayList

      def initialize
        super(); add nil
      end

      overrides
      def clear; super; add nil; end

      def isEmpty; false; end
      overrides :isEmpty

    end

## Copyright

Copyright (c) 2013 [Karol Bucek](http://kares.org).
See LICENSE.txt (http://en.wikipedia.org/wiki/MIT_License) for details.

[0]: https://github.com/kares/overrides
[1]: http://docs.oracle.com/javase/7/docs/api/java/lang/Override.html


40 Beak Street is a prestigious new build project in the heart of Soho, London.
NES were given the opportunity of providing the Section 106 Public Art works for the facade.
This was on a design, manufacture and installation basis.
This encompassed an angled coping to the top line of the building and a large 'goal post' window reveal in the pitch of the corner.
The cladding material is 40mm thick cast aluminium. To the top a powder coated flashing has been included to seamlessly frame the angled casting.
There was an extensive design team on the project. This included the initial visual design from leading London architecture practice Stiff & Trevillion Architects.
NES have previously enjoyed working with S&T on 20 Eastbourne Terrace and 201 Borough High Street.
In conjunction with the client the public art specialist Lee Simmons was awarded the commission. Lee has previously worked in a number of Standout Commissions in central London. Lee bought a wealth of expertise with cast metals and three dimensional sculptural objects. The 3D CAD file for the "pattern" tooling was provided by Lee. This allowed for an exact reproduction in aluminium of the digital file as it was directly transposed. Throughout the process Lee was central to the process. This ensured that the assorted joint gaps, finishes and lacquers were in line with the visual intent. One of the key elements of the castings was for the nosing's of the grooves to be grount back with a linear brushing. The grooves were left in their glass bead blasted rough state. This creates a surface contrast between the nosing's and the grooves on the casting.
Veretec were responsible for the detailed design on the project. For such a small building the level of design detailing was incredible. Veretec's attention to detail and insistence not only the right way but the best way was a rewarding challenge.
During the design process the question of how to protect the aluminium came up. Cast aluminium if left in free air will create a white oxide deposit on the surface. While this is not terminal to the performance of the aluminium it does look patchy and unappealing. The original intent had been for a clear 2 part wet spray epoxy lacquer to be used to create a seal on the surface of the aluminium. Unfortunately the lifetime of this product only holds a warranty for pre-etched and undercoated aluminium. This is partly due to the face cast aluminium has air pockets and is porous. The lifetime and aesthetic limitations were found with 3 other alternatives in the wet spay PVDF and powder coating clear lacquer space. The best finish from a warranty perspective was to accept you were going to lose the actual aluminium colour and powder coat an anthracite or metallic silver onto the casting. This would enable a 25 year external warranty. In the end a cutting edge new technology using clear matt nano lacquer was used. This is a ceramic based lacquer that forms a covalent bond with the surface of the aluminium. The lacquer has an organic element allowing it to expand with the thermal movement of the castings. Also following a maintenance regime it can be maintained in situ.
On the mechanics side NES manufactured a grade 316 stainless steel bracket system. This allows for any of the panels on the building to be individually removed for maintenance or replacement.


text:
Letran stude's perfect score in AMC highlights MTG's 20th anniversary
(From left to right) Math wizards Farrell Eldrian Wu of MGC New Life Christian Academy, Kyle Patrick Dulay of Philippine Science High School – Main Campus, Vince Jan Torres of Sta. Rosa Science and Technology High School, and Andres Rico Gonzales of Colegio de San Juan de Letran dominated the 2015 Australian Mathematics Competition. Gonzales got a perfect score to win the Peter O'Halloran Certificate of Excellence.
A Grade 8 student from Colegio de San Juan de Letran emerged as one of only 42 students in the world among a total of 300,000 participants to get a perfect score in the recently concluded 2015 Australian Mathematics Competition (AMC), a superb feat that coincides with the Mathematics Trainers' Guild (MTG) of the Philippines' celebration of its 20th anniversary.
Andres Rico Gonzales, 13, received the Peter O'Halloran Certificate for nailing a perfect score to lead 97 other Filipino students who garnered awards in the competition, which was simultaneously held in 42 countries last August.
Gonzales and the other winners were awarded during MTG's 20th foundation anniversary celebration held at the Manila Grand Opera Hotel in Manila.
MTG, a leading math organization founded in 1995 to develop excellence in mathematics among Filipinos, is the primary organizer of the AMC in the Philippines along with the Department of Science and Technology (DOST) and Department of Education (DepEd). It was formed by a group of mathematics trainers from various schools through a movement called "The Mathematical Challenge for Filipino Kids Training Program".
Joining Gonzales as AMC Medalists were Kyle Patrick Dulay of Philippine Science High School – Main Campus, Vince Jan Torres of Sta. Rosa Science and Technology High School, and Farrell Eldrian Wu of MGC New Life Christian Academy. Eleven others were given Prize Awards while 83 received Certificates of High Distinction.
Andres Rico Gonzales, 13, received the Peter O'Halloran Certificate for nailing a perfect score to lead 97 other Filipino students who garnered awards in the AMC competition, which was simultaneously held in 42 countries last August.Andres Rico Gonzales, 13, received the Peter O'Halloran Certificate for nailing a perfect score to lead 97 other Filipino students who garnered awards in the AMC competition, which was simultaneously held in 42 countries last August.
Dr. Simon Chua, President and co-founder of MTG, led the presenters of the awards. He was accompanied by Andrew Hodges, First Secretary of the Australian Department of Foreign Affairs and Trade, and Ruby Cristobal, Chief of the S&T Manpower, Education, Research and Promotions Division of the DOST's Science Education Institute (SEI).
Chua congratulated the winners as he backtracked some of the milestones that MTG had in its two-decade history. He thanked partners and congratulated the MTG trainees across all generations that helped them achieve "stunning records and achievements."
Meanwhile, in a message, SEI Director Dr. Josette Biyo lauded the winners for their promising performance in a prestigious math competition such as the AMC. She also commended MTG for sharing in its goal of promoting a culture of science among Filipinos.
"The MTG has been instrumental in training some of the best students and educators in mathematics. For this, the government and all Filipinos have a lot to thank them for," said Biyo, who also cited MTG's role in producing more scientists and mathematicians in the country.
Biyo added that she hopes the AMC winners will pursue careers in science and technology.
"Your gifts are certainly welcome additions to the growing population of professionals in the scientific community and SEI is very much willing to help you in this pursuit," said Biyo. (30)

redpajama_set_name: RedPajamaCommonCrawl


The Klamath National Forest covers an area of 1,700,000 acres located in Siskiyou County, California and Jackson County, Oregon. The forest includes five wilderness areas, Marble Mountain, Russian Wilderness Area, Trinity Alps, Red Buttes Wilderness Area and Siskiyou Wilderness Area.
In the lower elevations, you'll find park-like stands of Ponderosa Pines, while in the higher elevations, the Douglas fir, sub-alpine fir and mixed conifer stands beg to be explored.
There are 200 miles of river system for rafting and 152 miles of wild and scenic rivers in the forest. In addition, Klamath National Forest offers grazing and timber opportunities as well as 34 campgrounds, hiking, fishing and wildlife viewing.
With the Klamath, Salmon and Scott Rivers meandering from one end of the Forest to the other, recreationists have found a playground that can meet the desires of all. This beautiful forest is a haven for campers, hikers, wildlife watchers, hunters, fishermen, mountain bikers, white water enthusiasts and naturalists.
If you are looking for a wilderness experience, we have five wilderness areas to put you in a quieter, more spiritual place. The Marble Mountain, Russian, and Siskiyou Wilderness Areas are all within the boundaries of the Klamath National Forest. Portions of the Red Buttes Wilderness and the Trinity Alps Wilderness are also within the Klamath. Trailheads are numerous, and hikes range from easy to arduous. If it's a wilderness experience you seek, the Klamath is the place to come.
The Forest also helps to meet local and national needs for timber, gold, and other natural resources. Proactive vegetation management is an important element of caring for our public lands, and the professional staff of the Klamath leads the way by setting the standard for others to follow. The preservation of biological diversity, and the sustainment of Forest Health are important to us.
The Klamath Forest lies along the border of California and Oregon with the majority of the Forest in California and a small portion in Oregon. Our forest boundaries are within a half-hour's drive from Medford and Klamath Falls, Oregon, and less then two hours from Redding, California. This is truly a special place, and best of all it belongs to you. Come visit your lands. The Klamath National Forest -Caring for the Land and Serving People!
The USDA Forest Service administers 154 National Forests and 20 National Grasslands. Butte Valley National Grassland is both the newest National Grassland and the only one in California.


text:
Q: Why does mysql c++ connector work in main() but not in a class method? This code works if it's in main:
int main(void)
{
cout << endl;
cout << "Running statement." << endl;

try {
  sql::Driver *driver;
  sql::Connection *con;
  sql::Statement *stmt;

  /* Create a connection */
  driver = get_driver_instance();
  con = driver->connect("address:port", "user", "pass");
  /* Connect to the MySQL test database */
  con->setSchema("database");

  stmt = con->createStatement();
  stmt->execute("TRUNCATE TABLE words");

  delete stmt;
  delete con;

} catch (sql::SQLException &e) {
  cout << "# ERR: SQLException in " << __FILE__;
  cout << "(" << __FUNCTION__ << ") on line  » "    << __LINE__ << endl;
  cout << "# ERR: " << e.what();
  cout << " (MySQL error code: " << e.getErrorCode();
  cout << ", SQLState: " << e.getSQLState() << " )" << endl;
}

cout << endl;

return EXIT_SUCCESS;
}

That does exactly what it's supposed to.
If I use the same code in a class method it will compile just fine, but the program crashes with:
"Unhandled exception at 0x0100DF5B in comClient.exe: Stack cookie instrumentation code detected a stack-based buffer overrun."
This happens at a line from "gs_report.c"
__fastfail(FAST_FAIL_STACK_COOKIE_CHECK_FAILURE);

The last line in my program(when this occurs) is the end of the method(at "}")
Why is this happening and what can I do to fix it?
[Edit]
I don't think this has much importance, but here's the class as well:
dataCom.h
#pragma once

/* Standard C++ includes */
#include <stdlib.h>
#include <iostream>

/* MySQL C++ Connector includes */
#include "mysql_connection.h"

#include <cppconn/driver.h>
#include <cppconn/exception.h>
#include <cppconn/resultset.h>
#include <cppconn/statement.h>

using namespace std;

class dataCom
{
public:
    void clearDatabase();
};

As you can see I reduced it to one method containing the same code:
dataCom.cpp
#include "dataCom.h"

void dataCom::clearDatabase()
{
    try
    {
        sql::Driver *driver;
        sql::Connection *con;
        sql::Statement *stmt;
        /* Create a connection */
        driver = get_driver_instance();
        con = driver->connect("address:port", "user", "pass");
        /* Connect to the MySQL test database */
        con->setSchema("database");
        /* Create a statement */
        stmt = con->createStatement();
        stmt->execute("TRUNCATE TABLE words");
        delete stmt;
        delete con;
    }
    catch (sql::SQLException &e)
    {
        cout << "# ERR: SQLException in " << __FILE__;
        cout << "(" << __FUNCTION__ << ") on line  -> "    << __LINE__ << endl;
        cout << "# ERR: " << e.what();
        cout << " (MySQL error code: " << e.getErrorCode();
        cout << ", SQLState: " << e.getSQLState() << " )" << endl;
    }
}//<- crashes here

[Edit]
What other code? This is it. In main I just create an object and call the method. That's it.
However... I have been ignoring some warnings I don't fully understand:
c:\program files\mysql\mysql connector c++ 1.1.2\include\cppconn\sqlstring.h(38): warning C4251: 'sql::SQLString::realStr' : class 'std::basic_string<_Elem,_Traits,_Alloc>' needs to have dll-interface to be used by clients of class 'sql::SQLString'
1>          with
1>          [
1>              _Elem=char,
1>              _Traits=std::char_traits<char>,
1>              _Alloc=std::allocator<char>
1>          ]
1>C:\Program Files\MySQL\MySQL Connector C++ 1.1.2\include\mysql_connection.h(165): warning C4251: 'sql::mysql::MySQL_Connection::proxy' : class 'boost::shared_ptr<T>' needs to have dll-interface to be used by clients of class 'sql::mysql::MySQL_Connection'
1>          with
1>          [
1>              T=sql::mysql::NativeAPI::NativeConnectionWrapper
1>          ]
1>C:\Program Files\MySQL\MySQL Connector C++ 1.1.2\include\mysql_connection.h(169): warning C4251: 'sql::mysql::MySQL_Connection::service' : class 'boost::scoped_ptr<T>' needs to have dll-interface to be used by clients of class 'sql::mysql::MySQL_Connection'
1>          with
1>          [
1>              T=sql::mysql::MySQL_Statement
1>          ]
1>C:\Program Files\MySQL\MySQL Connector C++ 1.1.2\include\cppconn/exception.h(61): warning C4251: 'sql::SQLException::sql_state' : class 'std::basic_string<_Elem,_Traits,_Alloc>' needs to have dll-interface to be used by clients of class 'sql::SQLException'
1>          with
1>          [
1>              _Elem=char,
1>              _Traits=std::char_traits<char>,
1>              _Alloc=std::allocator<char>
1>          ]

Perhaps this is where the problem lies? How would I fix these warnings?
I tried making a function in main.cpp with the same code. Same problem. So I guess if I want to use the mysql connector in a function I have to make some modifications. But what and why?

A: The solution to the "Stack cookie" problem was to build the connector driver(mysql c++ connector) and libmysql(mysql c connector) from source specifically for my version of visual studio.
If anyone else faces these problems, remember to build for the solution configuration you use in your application(debug for debug, release for release).

redpajama_set_name: RedPajamaStackExchange


text:
Q: Sum of modulus of complex numbers : $|\sin(z)|+|\cos(z)| \geq 1$
I'm trying to establish if $|\sin(z)|+|\cos(z)|$ is greater than or equal to $1$.

I have tried to write out the expression in exponential form, but I don't really arrive at anything useful.
I would really appreciate any help!
Thank you!

A: assume that $|\sin(z)|+|\cos(z)|<1$ squarinq we obtain $2|\sin(z)||\cos(z)|<0$ which is a contradiction.

A: Writing $w=e^{iz}$ and using the definition of $\sin z$ and $\cos z$, the inequality becomes equivalent to
$$
|w^2-1|+|w^2+1|\ge2|w|
$$
(for $w\ne0$, but it is trivial for $w=0$).
It is not restrictive to prove the squared inequality; we get
$$
(w^2-1)(\bar{w}^2-1)+(w^2+1)(\bar{w}^2+1)+2|w^4-1|\ge4w\bar{w}
$$
that reduces to
$$
w^2\bar{w}^2+1+|w^4-1|\ge2w\bar{w}
$$
(where all terms are real) so to
$$
(w\bar{w}-1)^2+|w^4-1|\ge0
$$
which is true.


Prepare an authentic Indian Chicken Tandoori quickly and easily with this complete meal pack from Knorr. Just add fresh chicken for a deliciously aromatic and filling tandoori meal. Each box contains one packet of rice, a sauce and a marinade mix. Serves 2-3 people.


I am Lui Pui Shan from class 3C. Today I am going to share with you a book called Billy Elliot. This book took place in a British coal mining town. The main character in this book was an 11-year-old boy, Billy Elliot. Billy's family was poor because his father and brother Tony were striking miners, and his mother had passed away. At that time, Billy was learning to box as his father wanted Billy to be a strong man him. However, Billy did not like boxing at all. One day, he saw a woman who was teaching ballet in a dance room. He was totally attracted by the dance. Soon he shyly joined her class. He was the only boy in a crowd of tutus and the teacher knew that Billy had talent for ballet.
Form that day onwards, Billy used the money for boxing classes to pay for the ballet classes and kept this as a secret. Unthoughtfully, Billy's father found out his secret and stopped Billy. But Billy did not give up, he practiced very hard with his teacher every day secretly and finally was invited to an audition of a very famous ballet school in London. Billy wanted to grasp this chance. Thus, he plucked up his courage to dance in front of his father and wanted to prove himself to him. Billy's father was touched by Billy's effort and was willing to let Billy to attend the audition of the ballet school. Finally, Billy was admitted to the school and became a great dancer because of his hard work.
There is one sentence in the book which has been imprinted in my mind. This sentence comes from the letter by Billy's mother. His mother wrote, "Always be yourself. ". All of us have our own dream, but before we can make the dream come true, there are always many difficulties which deter us from taking action and make us want to give up. I think we should learn from Billy. When he encountered different difficulties, his determination never wavered and he never gave up. He was firm and he knew what he wanted. He tried his best to jump over the hurdles. Finally he became a wonderful dancer. His dream came true! Always be yourself. You only live once. Try your best and strain towards what is ahead to to achieve your dream. Thank you.


text:
Q: Is there a tool for analysing the Access Level of Java classes and methods? In the Java code for our application I'm pretty sure there are lots of classes and methods which have public access but probably only need package level access.
What I'd like to do is to tidy up our code on a package by package level, making only things that really need to visible outside each package public as this should simplify other refactoring that I want to do.
I was wondering if there was a tool available that could help me with this.  Ideally it would analyse all the code and produce a report saying which classes and method had public access but are only called from within the same package.
The Find Usages option in Netbeans can help me with this, but running it by hand for every class and method and analysing the output line by line will take forever.

A: I've used ProGuard, which is byte code manipulation tool, to find dead code in the past. There's an example in the ProGuard manual on how to use it. Note the tool does a lot of other stuff as well and it's not really a typical use of it, but it's the only thing I know of that can scan an entire application for dead code.
Edit: So I misread the question. Perhaps UCDetector is what you want. It claims to be able to detect "code where the visibility could be changed to protected, default or private. It is tied to Eclipse though. I just tried UCDetector on my code base and it seems to do the job. Certainly detected some methods and classes that could have their visibility reduced.

A: The cheap (and quite probably faster than installing a tool for a single pass) is to search and replace public class to class and similarly for abstract, final and interface. Recompile. Fix what breaks until it does compile.

A: The netbeans SQE plugin  may help.
It integrates FindBugs, PMD, CheckStyle and Lint4j into netbeans. This should provide warnings that public methods can be made package private and the like.


We've Got All The Best Experience Days And Perfect Birthday Experiences - At The Web's Lowest Prices, Shop Now In Derby.
Don't Just Buy Another Gift - Make It A Special Birthday Gift They'll Treasure In And Around Derby!
Shop Online And The Best Birthday Gift Ever - Without The Queues And Hassles. Shop The Experience Days Now In Derby!
New jobs have been created by a Derbyshire maker of concrete pipes and manholes. The workers will man a andpound;3 million production plant installed by Ilkeston-based Stanton Bonna. It said the investment was part of an ongoing development plan for the company.
A puppy which had his leg amputated after being neglected by his previous owners has now found his forever home in Derby. Ralph, an 11-month-old Staffordshire bull terrier cross, was rescued from a house in Sutton-in-Ashfield by an RSPCA inspector in February.
A wildlife photographer claims he spotted a black panther crossing the road in north Derbyshire. Mike Newton told the BBC he was driving near Grindleford railway station when the beast appeared from the side of the road. The photographer said he couldnand#039;t make rational sense out of what he was seeing but didnand#039;t doubt his own vivid memory.