text:
Ford School News
Donor-funded fellowship lets students serve Michigan's senior representatives
Sam Geller (MPP '17)
For Sam Geller (MPP '17), the Riecker Michigan Delegation Fellowship offered an opportunity to see the full scope of Congressional responsibility.
Geller spent the first six months of this year in the Washington, DC office of U.S. Senator Gary Peters, Ranking Member of the Senate Subcommittee on Federal Spending Oversight and Emergency Management. Geller's role: Assisting with inquiries into federal spending, ethical compliance, FEMA appropriations, federal flood insurance programs, and more.
"Congress has a much larger role than just passing appropriations and legislation," Geller says, looking back on the experience. "It's also in charge of ensuring that government operations and processes are moral, ethical, and efficient."
For Myra Lee (MPP '16), who was the first to hold the title of Riecker Michigan Delegation Fellow, the fellowship demonstrated how legislators balance federal, state, and local interests.
In the office of U.S. Senator Debbie Stabenow, Ranking Member of the Senate Committee on Agriculture, Nutrition, and Forestry, Lee helped with a range of projects, including supporting state of emergency efforts in the City of Flint.
Myra Lee (MPP '16)
As a native Detroiter with extensive experience in urban agriculture, nutrition, and community development issues, Lee focused on healthy food access and nutrition interventions to mitigate the harmful health impacts of lead.
The Riecker Michigan Delegation Fellowship, established with a generous planned gift from Margaret Ann (Ranny) Riecker (HLLD '05) and her husband, John Riecker (AB '52, JD '54), makes it possible for Ford School students to provide useful support to Michigan's DC delegates while acquiring professional skills that will advance their own careers and interests.
In the fall of 2015, the Harry A. And Margaret D. Towsley Foundation of Midland, MI made a generous multi-year pledge that will allow the Ford School to expand the impact of this fellowship in the years ahead.
Myra Lee, who graduated from the Ford School this spring and is now working as district business outreach coordinator in the Southfield and Detroit offices of U.S. Congresswoman Brenda L. Lawrence, says the Riecker fellowship experience informs her work daily.
"I can talk policy all day, but how do I frame my briefing so, when [the congresswoman is] speaking to her constituency, they know what she's advocating for and how she's fighting for them?" Lee says the fellowship, which let her observe how staffers briefed the senator on the challenges and controversies in their issue areas, taught her to do that.
One of Sam Geller's main tasks was assisting with research related to the National Flood Insurance Program, which was up for reauthorization in September.
"Michigan has one of the largest per-capita flood insurance policy rates and the largest freshwater coastline in the country, so there are a lot of people who need to take advantage of this program at home," he says.
For both fellows, the experience was a value add—both personally and professionally. Not only was it "a unique time to be working in government," says Geller. "It was a great opportunity to join the work of governing at a time when people with an understanding of policy are needed most."
Below is a formatted version of this article from State & Hill, the magazine of the Ford School. View the entire Fall 2017 State & Hill.
Myra Lee
Riecker Michigan Delegation Fellowship
Margaret Ann Riecker
Sam Geller
John Riecker
Harry A. and Margaret D. Towsley Foundation
Interdisciplinary expertise, right to your inbox.
Sign up for information about news and events from the Ford School.
Related Policy Topics
Public and nonprofit management
All Related News
Meet our new faculty: Judge Laurel Beatty Blunt
Read more about "Meet our new faculty: Judge Laurel Beatty Blunt "
El-Sayed comments on climate, elections and democracy
Read more about "El-Sayed comments on climate, elections and democracy "
Judge Beatty Blunt joins the Ford School as Towsley Foundation Policymaker in Residence
Read more about "Judge Beatty Blunt joins the Ford School as Towsley Foundation Policymaker in Residence "


text:
Q: GPS distance: From point A to B ... and back to A I'm trying to add GPS to measure distance with my webapp.
I'm wondering if GPS works for this example...
Let's say I'm on a bike path.  I ride 30 minutes in one direction, then turn around and ride back to my starting point for a total timed ride of 60 minutes.
How can GPS measure the total distance?  My start and stop points are basically the same.
Or would I somehow have to measure two trips? (Point A - B , Point B - A)
Thanks!

A: Ok, I've figured out the answer.
In the HTML5 Geolocation API there is a function call "watchPosition".
This function is called whenever the user moves to the next GPS point.
A distance calculation (found here) will calculate the distance between the LAST point and the CURRENT point.
The distance method is called each time "watchPosition" is called to add the distance to a total.
I hope this helps someone.

redpajama_set_name: RedPajamaStackExchange


text:
package gocbcore

import (
	"testing"
)

func TestRouteDataPtr(t *testing.T) {
	var rd routeDataPtr
	if rd.get() != nil {
		t.Errorf("Route Data should start with nil")
	}
}

redpajama_set_name: RedPajamaGithub


text:
Q: Java - Grocery list as a JFrame I want to create a grocery list as a JFrame in Java. I have a JTextField "input" where you can put in what you want to add and the input will be saved in a String "eingabe", then a JButton "button" where you can add what you want to add.
If you press the JButton "button" it creates a JLabel "label"(with the value of the String "eingabe"), a JCheckBox "box" and a JButton "button2" what should be the delete button of the item.
So if you press the JButton "button2" it should delete the added item(JLabel "label"), the JCheckBox "box" and the  JButton "button2".
It works all fine but if i press the button2 it only deletes the last item added. What can i do to link every delete button to the associated label,box and button itself?
Maybe using a list or an array or something like that. If yes, can you explain the logic on how to  implement that?
I hope you can understand what i am trying to ask.
Here is my code:
import java.awt.event.*;
import java.awt.*;
import javax.swing.*;

public class Layer  extends JFrame implements ActionListener, KeyListener{

    /**
     *
     */
    private static final long serialVersionUID = 1L;

    // Alle Konstruktoren,Variablen, Attribute oder so
    private JButton button,button2;
    private JTextField input;
    private JLabel label;
    private String eingabe;
    private JPanel panel;
    private JCheckBox box;

    public void Fenster() {

        // Wenn das X rechts oben gedrückt wird, wird das Fenster geschlossen
        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        // Titel und Größe des JFrame werden gesetzt
        this.setTitle("Einkaufsliste");
        this.setSize(300,700);
        this.setResizable(false);

        // Neues Objekt von JTextField wird erstellt und alles wird direkt markiert und die Größe wird gesetzt
        input = new JTextField("Hier eingeben");
        input.selectAll();
        input.setMaximumSize(new Dimension(200,20));

        // Neues Objekt von JTextField wird erstellt, zentral ausgerichtet und ein ActionListener hinzugefügt
        button = new JButton("Hinzufügen");
        button.setAlignmentX(CENTER_ALIGNMENT);
        button.addActionListener(this);

        // Neues Objekt von JPanel wird erstellt und das BoxLayout hinzugefügt
        panel = new JPanel();

        panel.setLayout(new javax.swing.BoxLayout(panel, javax.swing.BoxLayout.Y_AXIS));

        // Das JTextField "input" und dem JButton "button" werden dem JPanel "panel" hinzugefügt
        panel.add(Box.createRigidArea(new Dimension(0,10)));
        panel.add(input);
        panel.add(Box.createRigidArea(new Dimension(0,10)));
        panel.add(button);
        panel.add(Box.createRigidArea(new Dimension(0,10)));
        // Der soll einfach eine Trennlinie erstellen
        panel.add(new JSeparator(SwingConstants.HORIZONTAL));
        panel.add(Box.createRigidArea(new Dimension(0,10)));

        //Dem JFrame "this" wird das JPanel "panel" hinzugefügt
        this.add(panel);

        // Dem JButton "button" wird ein KeyListener hinzugefügt
        button.addKeyListener((KeyListener) this);

    }

    public void keyPressed(KeyEvent ke) {
        if(ke.getKeyCode() == KeyEvent.VK_ENTER) {
            button.doClick();
        }
    }

    @SuppressWarnings("deprecation")
    public void actionPerformed(ActionEvent e) {
        //Wenn button gedrückt wird passiert das
        if(e.getSource() == this.button) {

            // neues Objekt von JLabel wird erstellt und panel hinzugefügt
            label = new JLabel();
            panel.add(label);

            // neues Objekt von JButton wird erstellt und ActionListener hinzugefügt
            button2 = new JButton("Löschen");
            button2.addActionListener(this);

            // String eingabe bekommt den Wert der im TextField input drinne ist
            eingabe = input.getText();

            // In Label wird der Wert des Strings eingabe gegeben und zentral ausgerichtet
            label.setText(eingabe);
            label.setAlignmentX(CENTER_ALIGNMENT);

            // neues Objekt von JCheckBox wird erstellt und panel hinzugefügt
            box = new JCheckBox();
            panel.add(box);

            // label,box und button2 werden zentral ausgerichtet
            label.setAlignmentX(Component.CENTER_ALIGNMENT);
            box.setAlignmentX(Component.CENTER_ALIGNMENT);
            button2.setAlignmentX(Component.CENTER_ALIGNMENT);

            // button2 wird dem Panel hinzugefügt
            panel.add(button2);

        }
        //Wenn button2 gedrückt wird passiert das
        if (e.getSource() == button2){
                label.hide();
                box.hide();
                button2.hide();
            }
        }

    @Override
    public void keyReleased(KeyEvent e) {
        // TODO Auto-generated method stub

    }

    @Override
    public void keyTyped(KeyEvent e) {
        // TODO Auto-generated method stub

    }

}

A: The issue of only latest components getting deleted, is because there is a single reference of JLabel/JButton/JCheckBox, which gets updated when Add button is clicked.
So on deletion only these latest updated references gets cleared from UI.
Instead of adding individual elements, you can add JLabel/JButton to a new JPanel and on Delete button click, just check for the Component.getParent, on which click happened, as shown in this demo program.
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

public class AddDeleteFrame {

    private JFrame frame;
    private int counter;

    private void displayGUI () {
        counter = 0;
        frame = new JFrame ( "Add Delete JFrame" );
        frame.setDefaultCloseOperation ( JFrame.DISPOSE_ON_CLOSE );

        final JPanel contentPane = new JPanel ( new GridLayout ( 0, 1, 5, 5 ) ) {
            @Override
            public Dimension getPreferredSize () {
                return new Dimension ( 600, 400 );
            }
        };
        JButton button = new JButton ( "Add" );
        button.addActionListener ( new ActionListener () {
            @Override
            public void actionPerformed ( ActionEvent ae ) {
                JPanel panel = new JPanel ();
                ++counter;
                JLabel label = new JLabel ( "Counter: " + counter );
                final JButton b = new JButton ( "Delete" );
                b.addActionListener ( new ActionListener () {
                    @Override
                    public void actionPerformed ( ActionEvent ae ) {
                        contentPane.remove ( b.getParent () );
                        frame.revalidate ();
                        frame.repaint ();
                    }
                } );

                panel.add ( label );
                panel.add ( b );
                contentPane.add ( panel );
                frame.revalidate ();
                frame.repaint ();
            }
        } );

        contentPane.add ( button );

        frame.setContentPane ( contentPane );
        frame.pack ();
        frame.setLocationByPlatform ( true );
        frame.setVisible ( true );
    }

    public static void main ( String [] args ) {
        EventQueue.invokeLater ( new Runnable () {
            @Override
            public void run () {
                new AddDeleteFrame ().displayGUI ();
            }
        } );
    }
}


text:
Q: В чем разница типов BOOL и bool? В чём разница типов BOOL и bool?
BOOL встречал здесь.
Даже если BOOL есть макросом определённым через typedef, какой в нём смысл? Так как функции в доках являются командами. По сути проверка идёт через true или false, прошло или не прошло.

A: BOOL - это WinAPI тип, точнее, синоним, заданный через typedef для целого:
typedef int BOOL;

Такой синоним был заведён по причине того, что WinAPI базируется на языке C, где булевского типа нет, но отражать смысл параметра или возвращаемого значения функции хотелось бы именно как булев тип. Тем не менее из-за простого использования синонима в переменную типа BOOL можно записать любое значение, подходящее для типа int.
bool - это стандартный базовый тип в языке C++ для задания булева значения. В отличие от винапишного BOOL, может содержать только два возможных варианта: true или false.
В современном C (C11) тем не менее имеется встроенный булев тип _Bool, но если хочется использовать написание как в C++, нужно включить заголовочный файл <stdbool.h>.


Get a fantastic deal on a used Volkswagen van in Honiton when you come to Otter Vales Motor Services. We specialise in supplying high-quality used vans and cars at affordable prices, and with a huge selection of vehicles on offer, we are certain that we will have what you are looking for. We take pride in our customer service and we will be happy to offer any advice you may require. With our knowledge of Volkswagen and their vans, there's no one better to speak to for recommendations. Make your way to Honiton to browse the used Volkswagen vans for sale at Otter Vales Motor Services!


Can God heal? Yes. Does God heal? Absolutely. Jesus healed many as a part of His earthly ministry. He still works miracles at times, some of which include miraculous physical healing. But Jesus didn't heal all sick people. Why? Because it wasn't His primary mission and purpose. He came to save the souls of sinners, not to merely make their present life more comfortable (Mark 2:17). Surely, He cared for their needs, hurts, ailments, and discomforts. But He did not heal every physical ailment present on the earth. In fact, though there is nothing recorded in Scripture to this effect, it is possible that Jesus Himself was sick or injured at one time or another (besides the time leading up and including the cross, of course). Sickness is not necessarily a result of sin, but it is part of being in a cursed world and in a mortal body, as Jesus was (Philippians 2:6-8, Hebrews 2:14).
Sometimes we might be prone to think that Jesus would never have us be sick or hurting. The reality is that one day He will wipe away our tears and remove all pain and grief (Revelation 21:4), but that day has not yet come. There is a present purpose for suffering as it shapes us, challenges us, and draws our hope toward eternity (James 1:2-4, 2 Corinthians 4:16-18). But there is nothing in Scripture that guarantees that in the cross all sickness has been conquered. How do we know this? Well, the Bible is explicitly clear about this. Sometimes we get the idea that the apostles were healing everybody whom they came into contact with. We might tend to think that they had a sort of indiscriminate healing power and ability. We might even be tempted to think that they could tell God when and where they wanted Him to work and heal through them. The truth is that the apostles could only do what God would enable them to do by faith. When they moved to heal someone, they were moved by the Spirit, confident that they were to believe God for healing. But there were other times when God didn't heal, and they weren't in shock or awe about this. It didn't weaken their faith in any way. In 2 Timothy 4:20, Paul says, "Erastus remained at Corinth, but Trophimus I left sick at Miletus." Paul, the apostle who himself was healed from a deadly bite by a poisonous viper (Acts 28:3-6) could not or did not heal Trophimus. He left him sick. Why would he do this if he had the power in Jesus to heal him? Certainly, both of them would have believed for healing and then gone on to serve the Lord. But God chose not to heal, and Paul left Trophimus sick. What about Epaphroditus, a helper to Paul and servant to the Philippians? He was sick to the point of death, but the Lord spared his life (Philippians 2:25-30). Why did things have to get so bad to the extent that this righteous servant of God almost died? Couldn't Paul or a person "gifted in healing" have spared him this near death experience? No, because man cannot manipulate God, and God heals when God wants to heal. What about Timothy? Paul told him in 1 Timothy 5:23, "No longer drink water exclusively, but use a little wine for the sake of your stomach and your frequent ailments." For whatever reason, Timothy had some stomach issue and other frequent ailments, perhaps related, perhaps not. Regardless, he was regularly suffering from some variety of sickness. Paul's advice was not to exorcise some demon of stomach sickness, nor did he come to Timothy and bestow some healing power upon him. Timothy was a man of great faith and was one of Paul's closest friends and fellow servants of the Lord. It wasn't for lack of faith that he wasn't healed. It just wasn't God's plan for some reason, and both Paul and Timothy accepted that and lived in light of that reality. They took practical steps to deal with the problem. There is room in the Bible for doctors and medicine. Luke, after all, the author of the gospel of Luke and the book of Acts, was the "beloved physician" (Colossians 4:14).
I selfishly wish that we could always be healed because of Christ's victory over sin and death on the cross, but the reality is that even in Jesus' time and in Paul's time and personal life, healing wasn't always a reality. When God wanted to do something special and significant, He healed. At other times, sickness was a trial or a way of life. In these cases, as in all instances, God's grace was sufficient (2 Corinthians 12:9-10).
We must not presume upon God's healing, though we ought to believe in it. God does heal (James 5:13-16) even today, but it is because He wants to. He honors the prayers of faith from the righteous hearts of His children, but He doesn't always work how we want Him to work. I have been amongst believers that have firmly believed God for healing, and for whatever reason, God has chosen not to heal. Sometimes, people even go on to be with the Lord. Yet I have also heard of many testimonies where God has confounded doctors and miraculously healed. Regardless of what God decides to do, we can trust that His way and will is best. We cannot command God to heal, but we can ask Him to. We can believe Him to, but we cannot require Him to. In this world, we will have tribulation, but we ought not to fear because He has overcome this world. God causes all things to work for our good, even sickness, and, yes, even death. As Paul said, "To live is Christ, and to die is gain" (Philippians 1:21). One day sickness won't be an issue anymore, but until we are with Jesus, let us pray for healing and grace to endure all things.


By Microsoft Devices Team Share Tweet Share Share Skype Here�s an easy two-step guide on how to connect your Surface Pen with your Surface 3, Surface Pro 3, Surface Pro 4, or Surface Book.... I have the surface pro pen and the lenovo thinkpad series x pen. The Surface pen works great with it, quick and bounce. The eraser works well with also and on every program. The lenovo pen is a little stiffer and I prefer for inking and detail work. So I would recommend getting it.
By Microsoft Devices Team Share Tweet Share Share Skype Here�s an easy two-step guide on how to connect your Surface Pen with your Surface 3, Surface Pro 3, Surface Pro 4, or Surface Book.
I bought my SP4 two days ago and the pen is no longer working; well the button isn't. I can still write and erase with the pen. Tried removing the battery and reinserting, checked the voltage of the battery and when I try to re-pair the pen (holding the button down for 7seconds) nothing happens/lights up on the pen. I can ony assume it must be faulty.
16/01/2013�� I know Microsoft Office has the "inking" feature as I use it on my Laptop in my office; this computer has BOTH touch and pen. On my new All-in_one, I went to the Control Panel feature entitled touch and pen, but found that it only had touch.


With the maintenance errors I had yesterday from trying to access Hobby Search, this post will include both releases from December 25 and 26.
New items up for pre-order.
I want that Misty figure from Alter, but that's just way too much for me.


text:
package truerss.api

import truerss.services.MarkService
import com.github.fntz.omhs.RoutingDSL

class MarkApi(private val markService: MarkService) {

  import RoutingDSL._
  import ZIOSupport._

  private val markAll = put("api" / "v1" / "mark") ~> {() =>
    markService.markAll
  }

  private val markSource = put("api" / "v1" / "mark" / long) ~> { (sourceId: Long) =>
    markService.markOne(sourceId)
  }

  val route = markAll :: markSource

}


• Newtown Borough will receive $30,000 to create and implement design standards that encourage new developments to incorporate features to make walking and bicycling more viable modes of transportation.
• Chalfont Borough will receive $463,405 to install pedestrian safety improvements with connections to an elementary and middle school, the community and transit.
• Chalfont Borough will receive $719,734 to install crosswalks, curbing, and sidewalks along Route 202, spanning two municipalities and benefiting one elementary school and one middle school.
• New Garden Township will receive $200,000 to study the Baltimore Pike and Newark Road corridors to develop a sound traffic improvement and access management plan in preparation for future development pressures along the corridor.
• Borough of South Coatesville will receive $50,000 to study the feasibility of a multi-use trail along Brandywine Creek, First Avenue and Modena Road.
• West Bradford Township will receive $2,000,000 to install pedestrian and roadside improvements to create a walkable, mixed-use community corridor.
• Montgomery County will receive $1,775,000 to reduce the width of Hanover Street vehicle lanes in Pottstown and North Coventry Township in order to have room to install bike lanes, parking, and a multi-use trail from River Road (South Pottstown) to High Street.
• Borough of Millbourne will receive $35,000 to plan for multi-modal transportation improvements near the Millbourne train station.
• The Borough of Swarthmore will receive $662,270 for safety and accessibility upgrades to the Princeton Avenue underpass, the main pedestrian link between the southern portion of the borough and the local elementary school.
• Nether Providence Township will receive $304,500 to install sidewalk and curbing along the north side of Wallingford Avenue, which will create a safer route to Wallingford Elementary School.
• Upper Darby Township will receive $242,893 to construct sidewalks, curb cuts, and other improvements to provide a safer route leading to the Aronimink Elementary School on Bond Avenue.
• Abington Township will receive $275,000 to plan for transit-oriented development at the Noble Train station.
• Lower Merion Township will receive $350,000 to construct bicycle and pedestrian improvements from Cynwyd station to the Cynwyd trail.
• Borough of Lansdale will receive $3,500,000 to improve traffic circulation within the Borough by rehabilitating segments of Wood and Vine Streets.
• Cheltenham Township will receive $1,400,000 to construct traffic calming and pedestrian improvements to provide intermodal connectivity in a high density area.
• The Borough of Pottstown will receive $224,649 for sidewalk rehabilitation, updated and new signage, and pavement markings.
• Upper Gwynedd Township will receive $1,069,977 to install curbing, sidewalk and traffic calming measures within a half mile radius of the St. Rose of Lima and North Wales Elementary Schools on West Prospect, Washington, Second, Swarley, Summit, Pennsylvania, Fairfield, Highland and Main Streets.
• City of Philadelphia will receive $2,480,000 to reconstruct sidewalks and provide pedestrian enhancements and lighting along 10th and Berks Streets past the Temple Regional Rail station to the corner of Germantown Avenue.
• City of Philadelphia will receive $1,735,422 to improve pedestrian safety and provide traffic calming in the Chinatown neighborhood along and around Vine Street between 9th and 11th Streets.
• The School District of Philadelphia will receive $1,000,439 to improve walking routes in the 37 District K-8 schools to increase safety for students who walk or bike to school.