text:
Q: Going crazy with database query Pardon me for the vague title.  I am having a heck of a time understanding what is going on with a certain database query.  Unfortunately for me, we use this query to make a list of things to do, and tasks are getting dropped for reasons I don't understand.  I have been trying to debug a "mininal" version of my query.
Let me explain what I am trying to find.  Our practice has "exams", which are basically just interactions with a medical practitioner.  We bill for some of these exams, and we keep track of what is billed in our ledger table. (In other words, we do an insert into the Ledger when we process a bill)
Now, if I do the query:
 SELECT Patient.PatUnique,
        Exam.ExamUnique,
        Exam.[Date],
        Patient.Last,
        Patient.First

 FROM Patient
 INNER JOIN Exam ON Patient.PatUnique = Exam.PatUnique

This results in exactly what you might expect:  a list of patients and dates and ExamUnique numbers (our key in the Exam table).
But if I modify the query like so:
SELECT Patient.PatUnique,
       Exam.ExamUnique,
       Exam.[Date],
       Patient.Last,
       Patient.First

  FROM Patient
  INNER JOIN Exam ON Patient.PatUnique = Exam.PatUnique
  WHERE Exam.ExamUnique NOT IN (SELECT Ledger.ExamUnique FROM Ledger)

I get 0 records.  On the other hand, I know there are Exam.ExamUniques that aren't in the Ledger table.  Let's anonymize one as X.  I have run:
SELECT Ledger.ExamUnique FROM Ledger WHERE Ledger.ExamUnique = X

and got no results.  So X just isn't in there.
What am I missing?
Here is some sample data, since somebody thinks it will help:
Patient.PatUnique      Patient.Last      Patient.First
1                      Smith             Adam
2                      Jones             Sarah

Exam.ExamUnique      Exam.PatUnique      Exam.Date
1                    1                   01012016
2                    1                   01022016
3                    2                   01032016

Ledger.ExamUnique
1
2

Expected result of query:
Patient.PatUnique  Exam.ExamUnique  Exam.Date  Patient.Last  Patient.First
2                  3                01032016   Jones         Sarah

Actual result:
0 records

A: A commenter very helpfully suggested that I transform my query to:
SELECT Patient.PatUnique,
       Exam.ExamUnique,
       Exam.[Date],
       Patient.Last,
       Patient.First

FROM Patient
INNER JOIN Exam ON Patient.PatUnique = Exam.PatUnique
LEFT OUTER JOIN Ledger ON Exam.ExamUnique = Ledger.ExamUnique
WHERE Ledger.ExamUnique IS NULL

This is logically equivalent to the original query I was trying to debug, and it works.  Apparently, the first query was triggering a bug in Advantage Database, since logically equivalent queries should produce the same results (but these don't).
A commenter helpfully pointed out that the queries are not quite logically equivalent, since I was implicitly doing a comparison against NULL with the original query.  The new query does an explicit comparison with IS NULL so it avoids the undefined behavior that caused a bug with the original query.


Latest dwelling price figures from the Australian Bureau of Statistics indicate that the gap between the growth rates in the eight capital cities has widened, said the Housing Industry Association (HIA).
Over the year to June 2015, the ABS Residential Property Price Index rose by 9.8 per cent, with a 4.7 per cent increase occurring during the June 2015 quarter itself. Annual house price growth was 10.5 per cent, with prices in the attached dwelling segment increasing by 7.5 per cent over the same period.
"The wide divergence of dwelling price growth across the capitals is indicative of the mixed economic conditions across Australia. It highlights the challenges in prescribing 'one size fits all' policy responses to the housing market.


In this role, technology innovator, Ravi Singh will lead Auction.com's technology organization and continue to expand its suite of digital products.
These are the most expensive neighborhoods in each state according to a new study. But which area is the priciest in the country?
The company has promoted Chad Mosley to the position of Chief Relationship Officer where he will oversee MCS's customer-facing functions.
The House Financial Services Committee will hold a hearing on Tuesday that will focus on the operations of the credit bureaus and the Equifax breach. Learn what else is in store in The Week Ahead.
The designation recognizes land title professionals who demonstrate the knowledge, experience, and dedication essential to the safe and efficient transfer of real property.


text:
import React, {
  useContext,
  useCallback,
  useMemo,
  useRef,
  useState,
} from "react";
import { ThemeContext } from "styled-components";
import { MarginProps } from "styled-system";

import useClickAwayListener from "../../hooks/__internal__/useClickAwayListener";
import Icon, { IconType } from "../icon";
import Button from "../button";
import StyledSplitButton from "./split-button.style";
import StyledSplitButtonToggle from "./split-button-toggle.style";
import StyledSplitButtonChildrenContainer from "./split-button-children.style";
import Events from "../../__internal__/utils/helpers/events";
import guid from "../../__internal__/utils/helpers/guid";
import Popover from "../../__internal__/popover";
import {
  filterStyledSystemMarginProps,
  filterOutStyledSystemSpacingProps,
} from "../../style/utils";
import { baseTheme } from "../../style/themes";
import useMenuKeyboardNavigation from "../../hooks/__internal__/useMenuKeyboardNavigation";

const CONTENT_WIDTH_RATIO = 0.75;

export interface SplitButtonProps
  extends React.ButtonHTMLAttributes<HTMLButtonElement>,
    MarginProps {
  /** Set align of the rendered content */
  align?: "left" | "right";
  /** Button type: "primary" | "secondary" */
  buttonType?: "primary" | "secondary";
  /** The additional button to display. */
  children: React.ReactNode;
  /** A custom value for the data-element attribute */
  "data-element"?: string;
  /** A custom value for the data-role attribute */
  "data-role"?: string;
  /** Gives the button a disabled state. */
  disabled?: boolean;
  /** Defines an Icon position within the button: "before" | "after" */
  iconPosition?: "before" | "after";
  /** Defines an Icon type within the button */
  iconType?: IconType;
  /** The size of the buttons in the SplitButton. */
  size?: "small" | "medium" | "large";
  /** Second text child, renders under main text, only when size is "large" */
  subtext?: string;
  /** The text to be displayed in the SplitButton. */
  text: string;
}

export const SplitButton = ({
  align = "left",
  buttonType = "secondary",
  children,
  disabled = false,
  iconPosition = "before",
  iconType,
  onClick,
  size = "medium",
  subtext,
  text,
  "data-element": dataElement,
  "data-role": dataRole,
  ...rest
}: SplitButtonProps) => {
  const theme = useContext(ThemeContext) || baseTheme;
  const buttonLabelId = useRef(guid());
  const buttonChildren = useMemo(() => React.Children.toArray(children), [
    children,
  ]);
  const buttonChildrenRefs = useMemo<React.RefObject<HTMLButtonElement>[]>(
    () => buttonChildren.map(() => React.createRef()),
    [buttonChildren]
  );
  const splitButtonNode = useRef<HTMLDivElement>(null);
  const toggleButton = useRef<HTMLButtonElement>(null);
  const [showAdditionalButtons, setShowAdditionalButtons] = useState(false);
  const [minWidth, setMinWidth] = useState(0);

  const hideButtons = useCallback(() => {
    if (toggleButton.current === document.activeElement) return;

    setShowAdditionalButtons(false);
  }, []);

  const handleKeyDown = useMenuKeyboardNavigation(
    toggleButton,
    buttonChildrenRefs,
    hideButtons
  );

  function showButtons() {
    setShowAdditionalButtons(true);

    /* istanbul ignore else */
    if (splitButtonNode.current) {
      setMinWidth(
        CONTENT_WIDTH_RATIO *
          splitButtonNode.current.getBoundingClientRect().width
      );
    }
  }

  function handleToggleButtonKeyDown(
    ev: React.KeyboardEvent<HTMLButtonElement>
  ) {
    if (
      Events.isEnterKey(ev) ||
      Events.isSpaceKey(ev) ||
      Events.isDownKey(ev) ||
      Events.isUpKey(ev)
    ) {
      ev.preventDefault();

      if (!showAdditionalButtons) {
        showButtons();
      }

      setTimeout(() => {
        buttonChildrenRefs[0]?.current?.focus();
      }, 0);
    } else if (Events.isEscKey(ev)) {
      setShowAdditionalButtons(false);
      ev.preventDefault();
    }
  }

  const mainButtonProps = {
    onMouseEnter: hideButtons,
    onFocus: hideButtons,
    onTouchStart: hideButtons,
    iconPosition,
    buttonType,
    disabled,
    iconType,
    onClick: onClick as React.MouseEventHandler<
      HTMLButtonElement | HTMLAnchorElement
    >,
    size,
    subtext,
    ...filterOutStyledSystemSpacingProps(rest),
  };

  const toggleButtonProps = {
    disabled,
    displayed: showAdditionalButtons,
    onTouchStart: showButtons,
    onKeyDown: handleToggleButtonKeyDown,
    buttonType,
    size,
    ...(!disabled && { onMouseEnter: showButtons }),
  };

  function componentTags() {
    return {
      "data-component": "split-button",
      "data-element": dataElement,
      "data-role": dataRole,
    };
  }

  function getIconColor() {
    const colorsMap = {
      primary: theme.colors.white,
      secondary: theme.colors.primary,
    };
    return colorsMap[buttonType];
  }

  function renderMainButton() {
    return [
      <Button
        data-element="main-button"
        key="main-button"
        id={buttonLabelId.current}
        {...mainButtonProps}
      >
        {text}
      </Button>,
      <StyledSplitButtonToggle
        aria-haspopup="true"
        aria-expanded={showAdditionalButtons}
        aria-label="Show more"
        data-element="toggle-button"
        key="toggle-button"
        type="button"
        ref={toggleButton}
        {...toggleButtonProps}
      >
        <Icon
          type="dropdown"
          bgSize="extra-small"
          color={getIconColor()}
          bg="transparent"
          disabled={disabled}
        />
      </StyledSplitButtonToggle>,
    ];
  }

  function childrenWithProps() {
    const childArray = Array.isArray(children) ? children : [children];

    return childArray.filter(Boolean).map((child, index) => {
      const childProps = {
        key: index.toString(),
        role: "menuitem",
        ref: buttonChildrenRefs[index],
        tabIndex: -1,
        onClick: (ev: React.MouseEvent<HTMLButtonElement>) => {
          if (child.props.onClick) child.props.onClick(ev);
          hideButtons();
          toggleButton.current?.focus();
        },
      };

      return React.cloneElement(child, childProps);
    });
  }

  function renderAdditionalButtons() {
    if (!showAdditionalButtons) return null;

    return (
      <Popover placement="bottom-end" reference={splitButtonNode}>
        <StyledSplitButtonChildrenContainer
          role="menu"
          aria-label={text}
          data-element="additional-buttons"
          align={align}
          minWidth={minWidth}
          onKeyDown={handleKeyDown}
        >
          {childrenWithProps()}
        </StyledSplitButtonChildrenContainer>
      </Popover>
    );
  }

  const handleClick = useClickAwayListener(hideButtons);

  return (
    <StyledSplitButton
      aria-haspopup="true"
      onMouseLeave={hideButtons}
      onClick={handleClick}
      ref={splitButtonNode}
      {...componentTags()}
      {...filterStyledSystemMarginProps(rest)}
    >
      {renderMainButton()}
      {renderAdditionalButtons()}
    </StyledSplitButton>
  );
};

export default SplitButton;

redpajama_set_name: RedPajamaGithub


A Look at 2015 and Happy 2016 for All!
It's that time of the year when people and companies alike look back on the past year, and get ready for a new one. We thought it would be nice to look at some of Armstrong Archives' highlights from 2015 as we prepare for 2016, which we expect to be even better! We'd also like to take this chance to wish all of our loyal customers happy New Year's celebrations and a wonderful beginning to 2016. We hope we get to share it with you!
Every year, the North Dallas Chamber of Commerce (sponsored by Comerica Bank) gives out the Business of the Year award to a company with high quality services, outstanding leadership, strong ethical standards, exceptional client relationships, and a strong presence in the community. This year, Armstrong Archives was honored to be nominated for the award. We think this nomination reflects our genuine commitment to outstanding customer service and high-quality services that we have set as our standards, and we would like to take this opportunity thank everyone in the company for their hard work. It takes everyone working together for us to have gotten here and to keep improving.
We like to have our share of fun, too, so the other memory we're most fond of from 2015 is the companywide Olympics event we held at the quarterly meeting. In addition to team spirit, the Olympics included a box building contest, a scavenger hunt and a Dolly race. Naturally, all winners received special prizes. Everyone had a lot of fun, which we think is important in the middle of all the hard work. We plan to arrange something similar in 2016, so we'll be sure to share the best moments from that with you!
We're moving to 2016 in good spirits, and, as always, if you have questions about our services that include everything from document storage document storage to shredding services in Dallas, TX, please don't hesitate to contact us!


It's really amusing to read server logs. But it's more amusing when you see a zombie bot hack that comes from supposedly secure networks. At least you would think it would be secure.
In any case, if you take a look at the screenshot, one of the servers I take care of was hit by the ip 147.83.50.219 and it looked like multiple attempts via ssh. If you've never looked at server logs before, all this says is that it was going through dictionary attacks for some of the main accounts to look for holes. But what's interesting about 147.83.50.219 is that it was owned by the Department of Defense.
Now we all know that they probably just hand out CAC cards and some poor soul was clicking on things they shouldn't have and got infected. But what's interesting is that to have ssh access, that means that it's not a locked down network. This means that if you have a card, they automatically give you enough access to clear a good number of ports that most people probably never need. Even my current corporate network only allows certain types of access when roaming outside of the local network (port 80) and ssh isn't one of them. Doesn't give you warm fuzzies about DoD's networks does it?
I'll also disclaimer that this isn't a regular occurrence nor is it unique by any means since these types of attacks happen all the time due to botnets, but what puts the fear in any IT professional is when you realize that one of the networks that might have some pretty serious information has been compromised by a botnet. It's another reason why you don't allow personal machines on networks and have remote scans based on IP traffic. If you own the routers, you can sniff the network at that point to trace back any sort of traffic that might be a compromised machine and take care of the problem.
An amusing start of the day.


text:
CSA: Tryon revels in vice-captaincy role for Momentum Proteas
By Cricket South Africa
Cricket South Africa
Photo Credit: ICC
Fearless Momentum Proteas all-rounder, Chloé Tryon ackhnowledges the important responsibility that comes with her position as the team's vice-captain, a role she has undertaken brilliantly as South Africa faced the world in an an action-packed year so far.
Ahead of her third appearance at an ICC Women's Cricket World Cup earlier this year, the Durban-born Tryon was officially appointed the vice-captain along with captain Suné Luus for the global showpiece hosted in New Zealand.
Using her experience gained from a combined total of over 170 T20 International (T20I) and One- Day International (ODI) caps, Tryon has relished the duty bestowed upon her, with her focus being on helping with the cultivation of team spirit, while guiding the youngsters along the way.
"I have enjoyed the vice-captaincy role," the 28-year-old said.
"I am still working on it, and it is about making sure that I am also leading from the front, and I am giving as much input as I can, especially to the youngsters. I am really tight with the senior group in the team because we have a lot of senior players that have key roles in our squad.
"You have got to be making sure, which I feel I have done well, that the team is feeling good about their game and as a team we are gelling well.
"If you are on tour; two, three months at a time, that can become really challenging at times, especially when the cricket is not going your way. It is just about making sure that we all stick together, we still play well together as a team and bounce ideas off each other about how we can move forward as a team. That is really important." she continued.
Following the highs of the World Cup, where Tryon and the Proteas Women entertained cricket fans around the world enroute to securing a consecutive 50-over World Cup semi-final berth, South Africa achieved more success in a tour to Ireland soon after. This was before challenging campaigns against England and in the 2022 Commonwealth Games in Birmingham proved more arduous.
With the year having been topsy-turvy and lesson-filled, Tryon believes the team are on the right track ahead of next year's ICC Women's T20 World Cup that will be held in South Africa between 09 – 26 February 2023.
"It's been a little bit up and down," she noted. "It's been quite a rollercoaster if you can call It that.
We played a fantastic World Cup and fell short again, which is unfortunate.
"We played good cricket in different patches. We came off a good Ireland series leading into an England series that we knew was going to be quite difficult and with a lot of new players coming in, it was always going to be challenging. It didn't go the way we wanted it to, but you take a lot of learnings out of that," Tryon said.
"As a team, we are on the right stepping blocks, especially leading into a World Cup next year. We took a lot of positives from the England series into the Commonwealth, and we fell a little bit short, but we played fantastic cricket, and it was just key moments we missed out on.
"We are not where we want to be at the moment, but we are on the right path. We've got a lot of girls that are coming in so it can only be leading to good things as a team that's hosting a World Cup next year," she added.
Despite the results against England and in the Cricket T20 competition at the Games, Tryon showed glimpses of her very best form with two explosive half-centuries in the ODI series, including an impressive 88 off 73 balls (10 fours, 3 sixes) in the opening game.
The hard-hitting batter was in great nick again, this time for the Barbados Royals at the first ever 6ixty T10 competition in the Caribbean. Tryon smashed a tournament high score of 63 off 29 deliveries (5 fours, 4 sixes) as her side were crowned champions in the three-team event.
Fast bowler and CSA Cricketer of the Year, Ayabonga Khaka and all-rounder Luus also featured in the festival of cricket in the West Indies, representing the Guyana Amazon Warriors and the Trinbago Knight Riders, respectively. All three teams and players also formed the inaugural Women's Caribbean Premier League that took place a week later.
"A fantastic tournament to be a part of. Yes, the 6ixty was a little bit different, with the rules and everything like that but cricket is evolving quite a bit now so it's nice seeing different things are being put into place.
"It was exciting and to obviously win that was fantastic.
"The atmosphere was amazing, it was nice to see so many people drawn to the game, especially that side in the West Indies.
"It (CPL) was exciting to be a part of, unfortunately we couldn't get over the line in the final against Sune's team but it was a fantastic tournament to be a part of and hopefully I can be a part of it again next year but it is stepping blocks for them and it is exciting," Tryon concluded.
Ayabonga Khaka
Chloé Tryon
Momentum Proteas
Sune Luus
Previous articlePCB: Pakistan squads to be named on Thursday
Next articleHasaranga, Rajapaksa gain big in MRF Tyres ICC Men's T20I Player Rankings
CSA: Refreshed Jafta believes 'every game is important' for the Momentum Proteas
Interviews Cricket South Africa - January 25, 2023 0
Photo Credit: Michael SheehanGall/ Cricket South Africa A reinvigorated Sinalo Jafta is pleased to be back behind the stumps for the Momentum Proteas as the...
Sydney Thunder: Sangha returns to squad as Thunder embraces BBL 'underdog' status
Interviews Sydney Thunder - January 25, 2023 0
Photo Credit: Sydney Thunder Sydney Thunder has named Jason Sangha in its 16-player squad for tomorrow's KFC Big Bash League match against the Melbourne Stars...
CSA: Wolvaardt to make most of Tri-Series as part of World Cup preparations
Photo Credit: Michael Sheehan / Gallo Images / Cricket South Africa Uber-talented batter Laura Wolvaardt enjoyed an impressive year in 2022, but the studious opening...
Interviews Perth Scorchers - January 24, 2023 0
Photo Credit: Perth Scorchers On Friday 6 January, 2023, the day before Perth Scorchers' clash with Brisbane Heat, a nineteen-year-old allrounder from Scarborough received a...
Cricket West Indies: Estwick joins chorus of support for West Indies...
ICC: Pooran – It's time for West Indies to bounce back
PCA: The Trust saved my life – Morris

redpajama_set_name: RedPajamaCommonCrawl


Jay Patrick Hasch (JP) stands on his changing table with his adoptive mother Lisa Hasch after waking up from a nap at home in Monmouth. JP suffered from opiate withdrawal symptoms that included tremors, rashes, vomiting and constant screaming for months after his birth because his birth mother used heroin during her pregnancy.
Lisa Hasch understood the challenges of caring for children with emotional and physical scars.
A veteran foster mom, she had taken nine kids into her Monmouth home. All had suffered trauma because of drugs, alcohol, neglect or abuse. Some faced hardship even before they were born as they were exposed to drugs or alcohol in the womb.
Unable to have her own biological children, Lisa believed God had other plans for her.
"He made it so that I would find my way to being a foster mom," she says.
In June 2016, she was caring for Devon, a 4-year-old she hoped to adopt. Born with fetal alcohol syndrome, the boy had several emotional and behavioral challenges.
But when a state social worker called Lisa and asked, "Do you have room for another one?" she couldn't say no.
Six-year-old Devon Hasch clearly enjoys holding his baby brother JP. Lisa Hasch adopted both boys after fostering them.
The baby she agreed to take had many complications.
His mother used heroin during her pregnancy, along with the opiate replacement drug buprenorphine, which helps to ease withdrawal symptoms and cravings.
Though most babies exposed to buprenorphine may require brief hospital stays so doctors can monitor and treat their withdrawal symptoms, infants whose mothers used illicit street drugs, like heroin, can require extensive care.
Because of his many medical problems, the infant Lisa would later rename Jay Patrick, or JP, needed surgery and 200 medical appointments during the first year of his life. He had a long list of specialists: a neurologist, pulmonologist, gastroenterologist and nutritionist, along with physical and occupational therapists.
Along with the suffering an opiate-exposed baby endures comes extraordinary costs. Lisa estimates that medical care and therapy for JP surpassed $1 million before he turned 2. Like other children in the foster care system, JP was covered by MaineCare, a state and federally funded program for families and people with limited income.
With 4,877 babies born dependent on opiates or other drugs in Maine between 2013 and 2017, more and more babies like JP are being placed in the state's custody.
Lisa Hasch hugs her son Devon while JP works with occupational therapist assistant Jessica L. Mosher in August at All Kids in Action in Augusta.
Born at a low birthweight, JP had trouble swallowing. He aspirated or sucked milk into his lungs and then spit it up. He also suffered severe withdrawal symptoms from the opiates he was exposed to in the womb. Inconsolable, he rarely slept. His screams were high-pitched; his body trembled and then went rigid. He vomited, and had diarrhea and skin infections.
Lisa, 33 at the time, was no stranger to challenges as a special education teacher at Monmouth Academy, but she had no experience caring for a baby with this many medical problems. JP continued to have withdrawal symptoms for the next four months.
Because JP had acid reflux, the infant spit up more food than he swallowed. At four weeks, he was only seven pounds. Despite his reflux medication, he struggled to drink formula.
Over the next several months, along with frequent visits to his pediatrician for weight checks, JP would see many other specialists. He needed physical therapy to help him move his still-rigid left side. He saw a pulmonologist for his persistent cough and his asthma; a nutritionist to help formulate a liquid that would maintain his weight; a neurologist for his developmental delays.
A few days after his first birthday, JP was hospitalized.
Left with no other options, a doctor inserted a gastrostomy tube through JP's abdomen to deliver nutrition directly to his stomach.
Jay Patrick gets nourishment from a feeding tube in the living room of his Monmouth home before bedtime. Getting the tube inserted in July 2017 has greatly improved his quality of life and allowed him to gain weight.
A few weeks later, JP pulled his feeding tube out at 3 a.m. Lisa and her foster son rode in an ambulance to Maine Medical Center in Portland to have the tube reinserted.
On a warm June afternoon, Lisa sits on her couch, with her rust-colored dog Cider sleeping beside her. A 9-month-old with round cheeks and bright blue eyes sits in the middle of a pile of plastic toys. A padded helmet covers his blonde hair to help reshape his skull.
Blonde-haired with wary blue eyes, JP is still thin for his age. Though he is now able to eat solid food, he still must receive a daily dose of high-calorie and nutrient-rich formula food through his stomach tube so that he won't lose weight. He continues to aspirate clear liquids, and cannot drink water or juice unless it has a powder that thickens it to a honey-like consistency.
JP sits on his mother's lap at Cochnewagon Lake, where Lisa Hasch works as a lifeguard, in August.
JP has shed many tears, too. He cries when he sees his older brother drink chocolate milk, something he cannot have. He whimpers when he has to see a doctor, fearing what will happen next.
Doctors don't have any answers on how long JP will continue to need his tube feedings that take a half hour. Nor do they know if he will ever be able to drink liquid without sucking it into his lungs.
But the 35-year-old mother has little time to dwell on what she cannot change.
This summer, Lisa adopted JP.
Lisa knows JP's birth parents would not be able to care for him, taking the 2-year-old to his multiple therapies and doctors' appointments. She admits that sometimes she gets overwhelmed with the physical and emotional needs of her three boys.
JP joyfully jumps into the water to play during a summer outing at Cochnewagon Lake.
She also credits her family, friends, daycare and church for their support.
"They're a godsend," she says.
Sometime in the near future, Lisa hopes to adopt the toddler she calls 'my little munchkin,' who will become her third son. In many ways, she is like any other mom taking her boys apple picking, to county fairs and to the beach, but she knows her life will never be "normal" or routine. There will be many challenges to overcome, but she also is certain that she was meant to love and care for a baby that had nowhere else to go.


text:
Q: How to add slider to image and content? I am trying to add slider to image and content. I have tried using different tutorials but they are mostly for images only (not along with content) like carousels. I need your suggestions here to add slider for both images and content placed beside eachother.
Here is the codepen
Code for index.html

John D

Software Developer

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

John D

Software Developer

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

John D

Software Developer

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

A: Try this simple jQuery slider code.

$(function(){

    var totalSlides = 3;
    var slideNumber = 1;
    setInterval(function(){
        if(slideNumber < totalSlides){
            if($("#slider-4").length > 0){
                $("#slider-4").hide("slide", {
                  "direction" : "left",
                  "duration" : 400
                });
            }
            $("#slider-"+ slideNumber +"").hide("slide", {
                  "direction" : "left",
                  "duration" : 400
                });
            slideNumber++;
            $("#slider-"+ slideNumber +"").show("slide", {
                  "direction" : "right",
                  "duration" : 400
                });

        } else {
            $("#slider-3").hide("slide", {
                  "direction" : "left",
                  "duration" : 400
                });
            slideNumber = 0;
            $("#slider-4").show("slide", {
                  "direction" : "right",
                  "duration" : 400
                });
        }
    }, 8000);

});
.slider-wrapper{
overflow-x: hidden;
position: relative;
width: 100%;
height: 500px;
}
.slides{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
}

#slider-1{
display: block;
}
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet"/>

John A

Software Developer

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

John D

Software Developer

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

John B

Software Developer

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

John C

Software Developer

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Hope this helps

A: You can look for owl carousel or slick carousel. They're easy to use and will do exactly what you want.

redpajama_set_name: RedPajamaStackExchange


Condition: Very Good - in Very Good DJ. Very slightly ruffled edges of DJ with several small closed tears. Top edges of text block dusty.
This book shows you we could start to eliminate 75-85% of all cancers by preventing them before they begin.


text:
San Ysidro, CA
The 15 Most Romantic Places in California!
Julian, Julian, CA
Not far from sunny San Diego is the mountain town of Julian. A former historic gold mining town, Julian is now famous for its annual apple festival. If you think there's no fall in California,…
Not far from sunny San Diego is the mountain town of Julian. A former historic gold mining town,…
Anza-Borrego Desert State Park, Borrego Springs, CA
Head to the second largest state park in the continental U.S. in the spring, after the weather has warmed up but hasn't turned dangerously hot. Famous for the slot, a narrow passage way, you…
Head to the second largest state park in the continental U.S. in the spring, after the weather has…
Anza Borrego State Park Slot Hike, Borrego Springs, CA
There's no trail marker and it's a fairly short distance from the parking lot to the area of the park known as The Slot, but the memories of being in the area are priceless. The super…
There's no trail marker and it's a fairly short distance from the parking lot to the…
15 Perfect California Getaways!
Anza Borrego Desert State Park, Colorado Desert, CA
If you find the desert to be a slice of paradise, then head to Anza Borrego Desert State Park in the Colorado Desert. Stop at the visitor center to learn about the park's natural wonders,…
If you find the desert to be a slice of paradise, then head to Anza Borrego Desert State Park in…
Julian Pie Company, Julian, CA
Apples aren't native to the state, but that didn't stop the baker behind this bakery from making them a star in her pies. Apples, from her orchard, wrapped up in a flaky pastry crust,…
Apples aren't native to the state, but that didn't stop the baker behind this bakery…
The 8 Best Breweries in California!
Stone Brewing Company, Escondido, CA
Best known for its Arrogant Bastard brew, Stone Brewing Company is amongst the best craft breweries in San Diego. Inexpensive tours come with samples of the beer at the end and it's also a…
Best known for its Arrogant Bastard brew, Stone Brewing Company is amongst the best craft breweries…
The 11 Best Hotels and Resorts for Families in California!
Harrah's Resort Southern California, Valley Center, CA
There's no need to head to Vegas for some family time Sin City-style. Harrah's in the desert has a huge lazy river pool with tons of toys for tots and a swim-up bar for grown-up members…
There's no need to head to Vegas for some family time Sin City-style. Harrah's in the…
The 8 Best Buffets in California!
Choices, The Buffet at Pala Casino Spa Resort, Pala, CA
Choices? We love the sound of that. This buffet-style restaurant can accommodate 625 guests and features over 200 different options for hot and cold food from Asian cuisine, to Italian, Mexican,…
Choices? We love the sound of that. This buffet-style restaurant can accommodate 625 guests and…
The 10 Best Furniture Stores in California!
Revivals Stores, Palm Desert, CA
Revivals Stores desert location is a favorite with locals looking for hard to find items, like cushions for vintage furniture. It also functions as a thrift store but with knowledgeable staff to help…
Revivals Stores desert location is a favorite with locals looking for hard to find items, like…
Cuistot, Palm Desert, CA
Are you looking for the perfect place to take your special someone to celebrate your relationship? Consider Cuistot, one of the best special occasion destinations in the state. This French eatery is…
Are you looking for the perfect place to take your special someone to celebrate your relationship?…
Best Things In & Around San Ysidro, CA
Featured in The 10 Best State Parks in California!
Head to the second largest state park in the continental U.S. in the spring, after the weather has warmed up but hasn't turned dangerously hot. Famous for the slot, a narrow passage way, you… Read More
There's no trail marker and it's a fairly short distance from the parking lot to the area of the park known as The Slot, but the memories of being in the area are priceless. The super… Read More
Featured in 15 Perfect California Getaways!
If you find the desert to be a slice of paradise, then head to Anza Borrego Desert State Park in the Colorado Desert. Stop at the visitor center to learn about the park's natural wonders,… Read More
Dr. Green Rx, Vista, CA
Featured in 8 Best Marijuana Dispensaries in California
Vista's Dr. Green Rx has a variety of marijuana products and a warm and welcoming atmosphere to help everybody enjoy the experience a little more. The friendly staff is available to help you… Read More
Lobster West, Encinitas, CA
Featured in The 7 Best Seafood Restaurants in California!
Lobster West features East Coast-style lobster and crab rolls. The buttery rolls are filled with Maine lobster for a taste of Maine on the other side of the country. It's been recognized as one… Read More
Revivals Stores desert location is a favorite with locals looking for hard to find items, like cushions for vintage furniture. It also functions as a thrift store but with knowledgeable staff to help… Read More
Featured in The 8 Best Breweries in California!
Best known for its Arrogant Bastard brew, Stone Brewing Company is amongst the best craft breweries in San Diego. Inexpensive tours come with samples of the beer at the end and it's also a… Read More
Events around San Ysidro, CA
Moonshine Bandits
Ramona Mainstage, Ramona, CA
Find it Fast Near San Ysidro
Julian Mining Company
4444 State Hwy 78, Julian, CA
Borrego Desert Foundation
587 Palm Canyon Drive, Borrego Springs, CA
Anza-Borrego Foundation (ABF) is the official nonprofit partner of Anza-Borrego Desert State Park. We acquire land for conservation in and around t... Read More
Viejas Casino & Resort
5000 Willows Road, Alpine, CA
One of the finest California Indian Casinos, Resorts and Outlet Centers, Viejas is owned by the Viejas Band of Kumeyaay Indians. Viejas Casino hou... Read More
15500 San Pasqual Valley Road, Escondido, CA
About Us:San Diego Zoo Global is a not-for-profit organization that operates the San Diego Zoo, the San Diego Zoo Safari Park, and San Diego Zoo In... Read More
The Living Desert
47900 Portola Avenue, Palm Desert, CA
Our Mission:The Living Desert's mission is desert conservation through preservation, education and appreciation.The objectives of The Living ... Read More
Orfila Vineyards and Winery
13455 San Pasqual Road, Escondido, CA
Open: Year Round About Us: Orfila Vineyards & Winery is an ultra-premium boutique winery nestled in the picturesque San Pasqual Valley, approxi... Read More
McCallum Theatre
73000 Fred Waring Drive, Palm Desert, CA
Missison Statement: The McCallum Theatre's mission is to entertain and educate the public by offering a variety of performing arts experiences that... Read More
Keyways Vineyard and Winery
37338 De Portola Rd, Temecula, CA
Open Year RoundAbout Us:Founded in 1989 by Mr. Carl Key, Keyways Vineyard & Winery was one of the original wineries established in Temecula Win... Read More
Robert Renzoni Vineyards
37350 De Portola Road, Temecula, CA
Open: Year-roundRobert Renzoni Estate Vineyards is comprised of 12 acres in the Temecula Valley that is naturally suited to grape growing. Nine of ... Read More
Warner Springs, CA
Ranchita, CA
Santa Ysabel, CA
Borrego Springs, CA
Palomar Mountain, CA
Aguanga, CA
Anza, CA
Ramona, CA
Pauma Valley, CA
Valley Center, CA
Guatay, CA
Mount Laguna, CA


Machete-wielding workmen once hacked their way through dense jungle, toting supplies and construction equipment up a steep mountainside. Their backbreaking efforts began in 1383 and produced Wat Phra That, a gleaming Buddhist temple that's hard for visitors to Chiang Mai to miss. Perched high on Doi (Mount) Suthep, it's visible from the city and appears on every list of must-see highlights in the area.
Considered the holiest shrine in northern Thailand, Wat Phra That is undoubtedly an impressive sight. A walkway of more than 300 tiled steps, guarded by colorful, multi-headed serpents, ascends toward the temple. (A tram also goes to the top.) After kicking off our sandals, per Thai custom, and lining them up with the hundreds of other pairs of shoes outside the entrance, we crossed into the complex.
The eye-catching focal point is the gilded "prang," a towering spire rising in the center and bordered by a series of halls and rooms that form a square around it. In one small shrine room, a monk in a saffron-colored robe browsed his smart phone before picking up a traditional tool of his trade. He quickly dipped a cluster of bamboo stripes into a bowl and rained holy water down on us and other visitors standing and kneeling before a statue of Buddha.
Compared to the opulent, polished perfection of Wat Phra That, the other temple we visited that day is simple, serene, and easily our favorite of the two. Atmospheric Wat Pha Lat could be something out of legend, nestled in the jungle alongside a waterfall. We felt like intrepid explorers as we approached on foot down a deserted, switchback-filled path leading from the main highway.
It's likely we would have missed this centuries-old temple altogether if we hadn't heard about it from fellow participants in a cooking class the day before. Even the taxi driver who whisked us along the winding road to the top of Doi Suthep didn't know about Wat Pha Lat. He told us we were the first people to ask to stop there, and he popped into a café for directions. Tour buses roll right on by the two small white temples at the entrance road to Wat Pha Lat, which meant we had the place almost all to ourselves.
Moss- and vine-covered Buddha figures, statues of elephants and dragons, and other stone carvings adorn the grounds. A series of foot paths and bridges span the flowing water and connect the temple to various platforms and prayer sites. We saw less than a dozen other visitors at this enchanting "lost world" locale, enjoying the solitude before heading back to bustling Chiang Mai, which can be seen sprawling below.
A study in contrasts, both of these temples deserve a visit. But if you want to feel like you've discovered something special—and pretend you're Indiana Jones' sidekick—don't miss Wat Pha Lat.
Thanks for great bucket list ideas. I hadn't even heard of Wat Pha Lat.
And I meant to add: I also think that the "B-List" attractions that you virtually, or actually, stumble across often end up being the truly memorable places. Thanks for sharing this one.
I can't wait to visit these temples this January! I love your vivid descriptions and photos!
Peculiar article, јust ԝhat I needed.


text:
Philip Kiprono Langat (born 1990) is a Kenyan long-distance runner who specialises in road running events. He won the 2011 Montferland Run. He has a half marathon best of 1:01:05 and a 10K best of 27:28 minutes.

After competing on the Kenyan junior cross country circuit to little success, Langat made his breakthrough in 2010 by winning the Administration Police National Cross Country Championships, having entered as a member of the public. He performed poorly at the Kenyan World Championship trial race (placing 60th) and instead competed on the Italian road running circuit that year. He was runner-up at the Turin and Cremona Half Marathons, setting a best of 62:52 minutes at the latter race. He also came third at the Giro Podistico di Rovereto and fourth at the Giro al Sas races.

Langat ran in a series of Dutch races in the 2011 season, starting with a second-place finish at the Venloop half marathon. He was fourth at the Parelloop then won the Oelder Sparkassen Citylauf and Zwitserloot Dak Run 10K races. A half marathon best followed at the Zwolle Half Marathon, where he was fifth with a time of 61:56 minutes. He won the Singelloop Utrecht 10K in September then won the Singelloop Breda half marathon the following month. He won his fifth Dutch race of the year at the Montferland Run 15K, where he beat high level competition including Hailu Mekonnen and Abel Kirui. He was runner-up to Geoffrey Mutai at the B.A.A. 10K in June 2012. He spent the rest of the year on the Dutch where he won the Stadsloop Appingedam and Breda Half Marathon, as well as runner-up at the Utrecht Singelloop and Monterferland Run.

References

External links

Living people
1990 births
Kenyan male long-distance runners
Kenyan female cross country runners

redpajama_set_name: RedPajamaWikipedia


The Australia Council for the Arts has announced the latest participants in its International Leadership Program, delivered in partnership with the Department of Foreign Affairs and Trade (DFAT).
Emerging leaders from countries including China, Indonesia, India, Papua New Guinea, Philippines, Vietnam and Malaysia will participate in the Australia Council's two flagship leadership programs, promoting a global exchange of knowledge, ideas and cultural practice.
The Australia Council is pleased to be continuing the partnership with DFAT following a successful pilot in 2017. The program is an example of a successful cross-portfolio partnership that delivers positive outcomes both for the arts and Australia's broader ambitions.
More information on the recipients can be found on the Australia Council website.


When broaching this story, I must acknowledge the sensitivity of it. In this forward, I would be negligent to imply that the contents apply to all gay or transgender people. I have wonderful gay, lesbian, bisexual, transgender and non-conforming people in my life who ardently stand against much of what this article details. It is intended to speak on a much broader, social scale.
Good article and good mention that this isn't all inclusive. It's such a complicated issue on so many levels, one of which is the labeling. Those who prefer it and want/need it and those who don't. There is a lot of pain associated with all the issues and multi-viewpoints from different sectors, straight included. Thank, Kira.
Thank you for sharing Kira.


I have been using this translation in regular Bible studies, and it has given some understanding of how the Jewish mind thought in ages past, and thinks today from the standpoint of a Messianic Jew, that is, a Christian. At any rate, it is very interesting and enlightening to see how the Jew sees the New Testament. The only problems I have with it is that it is biased toward futurism, which one can overlook. The other is that the author, David Stern, uses Hebrew words quite a lot, and I have to look in the back for the definitions until I memorize them. Has anyone else used this translation, and if so, what do you think of it?
Marilyn wrote: ... Has anyone else used this translation, and if so, what do you think of it?
until now I have not used this translation .... was not really aware of it. Do you know if it is available in electronic format to be used in a Bible software?
Sorry I did not answer your question! Yes, the Bible is available for download. I have it in my Bible program, Online Bible.


text:
One Card Tarot Reading For January 27, 2022
By Aria Gmitter — Written on Jan 26, 2022
Your one card tarot reading for all zodiac signs is here for Thursday, January 27, 2021, with a prediction using numerology and astrology.
What does Thursday's one card tarot reading bring for your zodiac sign? Read on.
RELATED: Daily Horoscope For January 27, 2022
Learn what your zodiac sign's daily tarot card reading has in store for you on Thursday, January 27, 2022.
Tarot card: Four of Cups
Sometimes feeling bored is a good thing because it encourages you to give birth to new ideas.
Why fill the time with senseless activities just to avoid feeling lonely or that your life is lacking something?
This is a good thing, Aries, because it gives you a chance to create and use your imagination for the next chapter of your life. The path is wide open
RELATED: Why Are Aries So Impulsive?
Tarot card: Four of Wands
Everyone wants to have a sense that they have 'come home' and at this moment, Taurus it's so easy to focus on what you need or want. Don't shoot these negative thoughts down with toxic positivity.
Let yourself feel the need to make things better and to fill your space with beautiful items that foster joy and are pleasing to your eyes.
RELATED: How Smart Are Taurus?
Tarot card: The Tower, reversed
Bad things happen to good and bad people, Gemini, and you aren't always going to suffer the consequences of someone else's behavior.
For now, picking these pieces up to improve your life after a catastrophe is hard to do. But, you've moved beyond the worst of it.
Now, you're edging to the other side soon crossing to a place where all the damage is behind you.
RELATED: Common Pet Peeves That Make A Gemini Lose Interest In You
Tarot card: The Sun, reversed
Maybe you don't want to focus on the positive outcomes right now. You have every right to decide that you want to evaluate the tough times and focus on how this made you feel. There's anger and rage that creeps up after a tough time, no matter how good it feels to know it's over.
In the end, Cancer, healing is imperfect, and you're entitled to the full range of emotions that need to be expressed until you're ready to let go and say, "Yes, this was worth the pain of the journey" and only you can decide when that time is right.
RELATED: What You Should Know About Cancer Men, For Better Or For Worse
Tarot card: Knight of Cups
A sweet time in your life is about to unfold. Are you ready to experience natural beauty, true connection, mingled with heartfelt warmth?
Romance is all around you, Leo, and when you focus on falling in love with love, you're able to see the beauty in everything.
RELATED: Why Are Leos So Selfish?
Tarot card: The Chariot
You're on an adventure, and this ride is one that will take you to great heights but also challenge your resolve to hang in there when times are tough.
You were destined for this moment in time, Virgo, and no matter what happens next, as long as you continue to embrace the journey, you'll find that every moment was worth your time.
RELATED: Why Are Virgos So Difficult?
Tarot card: Knight of Pentacles
Some success can manifest without a plan, but to a project or goal to make it for the long haul you'll want and need to be diligent and intentional.
Of course, you may have stumbled across your inspiration and made some gains now, but you can't assume that this will take you to the heights you hope to reach.
As inconvenient as it sounds initially, Libra, slowing down to plan is one of the best things you can do to hurry up and enjoy your future.
RELATED: Why Are Libras So Forgiving?
Tarot card: Six of Wands, reversed
You're unique, and as singular as you are, your goals, dreams, hopes and fears are all hinged on your own perspective.
Don't borrow the ambition of someone else. They may advise you on what 'you should do' but the only person who truly knows what feels right for you is yourself.
RELATED: How Do Scorpios Flirt
Tarot card: Seven of Swords, reversed
You like to think of yourself as an open book, but honesty is not ALWAYS the best policy.
Sometimes you have to keep certain things to yourself. You don't want to bare your soul to someone you've just met. It's not essential for that person to know every single detail of your life until the timing is both right and appropriate.
RELATED: 10 Reasons Why A Sagittarius Zodiac Sign Is The Best Friend You'll Ever Have
The Tarot Horoscope For Each Zodiac Sign On September 23, 2022
Tarot card: Ten of Cups, reversed
You want a specific outcome but that means you have to do certain things to get there. The truth is that you're not willing to commit those sacrifices, so what will it be, Capricorn?
You have to really ask yourself if you can do what needs to be done without compromising yourself and undermining it all.
RELATED: 5 Reasons Why A Capricorn Zodiac Sign Is The Best Friend You'll Ever Have
Tarot card: Seven of Pentacles, reversed
It's been like herding cats lately, hasn't it, Aquarius? You put all your energy and effort into something (or someone) and poof, they are gone without a warning. It's a little off-putting and takes time to get used to.
People aren't always on the same page, but that doesn't mean it's you. It could mean that the right one has not come along and you're working on discovering your likes and dislikes as you wait.
RELATED: 5 Reasons Why Aquarius Is So Fake
Tarot card: Justice, reversed
Not everything comes with a consequence even though it feels like something bad will happen to you or someone you love.
The universe doesn't want you to fail. It's doing it all to show you support, so you can succeed.
RELATED: 11 Ways A Pisces Is The Coolest Friend You'll Ever Have
Aria Gmitter, M.S, M.F.A., is YourTango's Senior Editor of Horoscopes and Spirituality. She studies with the Midwestern School of Astrology and is a member of the South Florida Astrological Association.


text:
At Chicago's City Council, Committees Are Used to Reward Political Favors and Fund Patronage
Without new oversight and accountability, City Hall cannot "escape corruption, mismanagement and waste," the city watchdog says.
Mick Dumke, ProPublica
10:20 PM CDT on May 15, 2019
nathanmac87/Flickr
This story was originally published by ProPublica Illinois.
CITY HALL — The Chicago City Council's Transportation Committee has an annual budget of more than $467,000 to cover expenses related to its work on legislation and government oversight.
But little of that work was on display during the committee's March 6 meeting.
"Fairly quick agenda this morning," the committee chair, Anthony Beale, said at the start. He and the six other aldermen then ran through its 70-page agenda in about 23 minutes, approving dozens of ordinances that dealt with hyperlocal administrative matters such as signs, awnings, light fixtures or sidewalk cafes for particular addresses.
That was typical for Beale's committee. While it rarely does in-depth legislative work, the committee and its budget have been far more valuable for Beale as perks.
Alderman Anthony Beale (9th Ward), chair of the Transportation Committee
Beale, alderman of the far South Side 9th Ward, has used committee funds to hire employees — eight were on the payroll as of December — though he acknowledged they don't spend all their time on committee work. He's spent Transportation Committee money on his own transportation, including payments on a Chevy Tahoe SUV and thousands of dollars in parking expenses. And committee funds have gone toward furniture for his City Hall office, including a bourbon cherry wardrobe cabinet, according to records obtained under the Freedom of Information Act.
The Transportation Committee isn't an outlier.
At great cost to taxpayers, the City Council's 16 legislative committees are the heart of a favor-trading system that's enabled mayors to rule like monarchs distributing favors to loyalists. At the same time, the committees have failed to provide even basic oversight of city government.
Many meet infrequently, and when they do, they frequently rubber-stamp agendas in a matter of minutes — often without a quorum of half the members. The budgets for the committees added up to $5.8 million in 2018, but the amount each committee receives is not tied to the volume of legislation it reviews or the regularity of its meetings.
Instead, funding appears more closely aligned with tradition and the clout of the chairs.
Chicago aldermen have also made it almost impossible for the public to see what they're up to. Committee meeting schedules are posted online and meetings are open to the public, but they're not broadcast, recorded or transcribed — unless a chair makes arrangements.
The topper: The council has passed laws to make sure committee operations are kept from any oversight. In 2016, aldermen voted 25-23 to kill a proposal to allow the city's inspector general to investigate and audit the council. Aldermen then passed a substitute ordinance that explicitly blocked the inspector general from looking into many council functions, including committee spending.
Mayor-elect Lori Lightfoot, who will be sworn in with aldermen on Monday, has called for changing the law so the inspector general can audit the council and its committees. She and key aldermen continue to negotiate over who will lead the committees. As current chairs maneuver to hold onto power, reformers say it's time for significant changes.
City Inspector General Joe Ferguson said Lightfoot and the new council face an urgent need to open the books and bring accountability "with respect to budgets, expenditures, staffing and operations at both the whole Council and Committee levels."
"Government cannot fully escape corruption, mismanagement and waste without accountability," Ferguson wrote in a statement responding to ProPublica Illinois' findings. "That applies as equally to a legislative body as it does an executive, and even more so in Chicago, with its history of a weak, compliant City Council most noted for a decades-long trail of corruption. At this moment in the City's history, both the public and the incoming Mayor desperately need a productively engaged City Council that fully inhabits its legislative oversight responsibility."
In most legislative bodies, members pick their own leaders and committee chairs. The Chicago City Council's rules say that's what aldermen should do as well. For decades, though, the mayor has picked council committee chairs. It's no secret at City Hall that only aldermen who support the mayor's initiatives are rewarded with the posts, though they often claim otherwise.
Alderman Walter Burnett Jr. (27th Ward), chair of the Pedestrian and Traffic Safety Committee
As Ald. Walter Burnett Jr. tells it, he was shocked when, in 2007, former Mayor Richard M. Daley offered to make him chair of the Special Events Committee. Burnett had never led a committee before. And he had been pushing an affordable housing plan that was more aggressive than the mayor wanted.
"I thought there might be a hit out on me," Burnett joked. Instead, Daley came up with a watered-down affordable housing plan. After Burnett signed on, "the next thing I knew, I got a committee."
Despite their back-and-forth over affordable housing, Burnett had supported almost all of Daley's agenda, including the mayor's plan to demolish dozens of public-housing buildings and replace them with mixed-income developments.
In 2011, Rahm Emanuel campaigned for mayor on a promise to rid City Hall of corruption. He even suggested he might replace Ed Burke, the dean of the City Council, as chair of the Finance Committee, the council's most powerful. Once in office, Emanuel eliminated three other council committees and shaved funding for others.
But soon after, the city's annual budgets — proposed by the mayor and approved by aldermen — began boosting the money available to committees again. By 2017, the council committees were spending more than when Emanuel became mayor.
Emanuel also let council insiders stay on as committee chairs — including, most notably, Burke — so he could count on their help advancing his agenda. Some loyalists got promotions. In 2013, for example, Emanuel shifted Burnett to the Traffic Committee, which had an annual budget of about $215,000, a bump from the $155,000 he had to spend as Special Events Committee chair. The Traffic Committee budget has since grown to about $249,000.
Emanuel's chosen committee chairs have proven to be reliable supporters. Two of the current chairs sided with the mayor on 93 percent of divided council roll call votes from 2017 to 2018 — and those are the most independent voting records of any of the committee leaders. Burnett and five others voted with Emanuel 100 percent of the time, according to a study by political scientists at the University of Illinois at Chicago.
The committees are valuable because of a simple fact: Like most public officials, every alderman would like more staff and money to work with.
For years, the city's annual budget — approximately $10.7 billion for 2019 — has allocated funds for each alderman to hire three aides. Most aldermen say that's not enough to manage their daily barrage of constituent service requests, let alone to prepare for their jobs as legislators.
Aldermen have a limited number of options for adding staff. They can try to cut office expenses and spend more money on employees. They can also use campaign funds to hire more people, the approach taken by Brendan Reilly of the Downtown 42nd Ward.
That's not easy for most aldermen, especially those who struggle to raise money.
Chairing a committee offers another possibility. Committee staff members are exempt from city rules meant to prevent political hiring and firing, which means the chairs can fill the jobs any way they want, for any reason.
Tom Tunney, the current chair of the Special Events Committee, said he needs extra help to keep up with constituent needs in his busy ward, the 44th, based on the North Side's Lakeview neighborhood.
He acknowledged that most of the legislation his committee oversees — concerning festivals, cultural events and other matters connected to the arts — comes from the mayor's office and the Department of Cultural Affairs and Special Events. The committee had three employees as of December, but since they only spend about a week each month preparing for committee meetings, Tunney also assigns them to help with issues in his ward.
"Do they just work on committee stuff? No," Tunney said.
Tunney conceded it's not fair that committee chairs essentially get more help to take care of their wards. But he's also skeptical of proposals that would require committee employees to limit their work to committee matters, because he doesn't think they would have enough to do.
"I wouldn't agree with that because practically; I want my people working all the time, given my workaholic nature," he said.
Alderman Tom Tunney (44th Ward), chair of the Special Events Committee
Last month, Tunney said he would like to be considered for Finance Committee chair after the new council is sworn in on Monday, and other committee chairs are lining up behind him.
Burnett said he, too, counts on committee staff to help with ward matters. At the end of 2018, he had eight employees on the Traffic Committee payroll.
"It helps you with your ward, especially if you've got a ward like mine," said Burnett, whose 27th Ward includes parts of the near North and West sides that have boomed with development over the last two decades. "I get everything from yuppies worried about permit parking to people [dealing with] sewage. It's never ending. … So the extra staff people help, and they do dual roles. Everybody works on the ward and everybody works on the committee, too."
Burnett said his committee employees put in a lot of work to prepare for the committee's meetings. But that wasn't evident when it convened on March 6.
Several minutes after the meeting was scheduled to start, the chairman's seat was still empty. So were most of the seats around them. Only four of the committee's 16 members had shown up.
Finally, an aide to Burnett got a call on his cellphone and waved Marty Quinn over. Quinn, alderman of the 13th Ward on the Southwest Side, appeared taken aback for a moment. Then he understood: Burnett wasn't going to show. Quinn was going to have to lead the meeting.
Under City Council rules, at least half of the members of a committee need to be present for a quorum. But neither Quinn nor the other three aldermen noted that they were four short. Quinn gaveled the meeting to order and moved to pass the first 19 proposed ordinances on the committee's 12-page agenda.
"All those in favor?"
"Aye!" the other three aldermen said in unison.
"In the opinion of the chair, the ayes have it," Quinn said.
As is usually the case with the Traffic Committee, each of those ordinances concerned parking restrictions, loading zones or traffic signs for single addresses or streets. And if the local alderman has approved, the committee signs off.
In a series of rapid-fire motions and choruses of "aye," Quinn and his three colleagues ran through the next 10 pages of ordinances with no discussion or break in their rhythm.
All told, the meeting took less than three and a half minutes.
The public has no ready way to see how many people are hired by the committees or what they do. Annual city budgets allocate money for committee staff. But only the budget for the Finance Committee specifies the number or titles of committee employees, giving the other committee chairs the power to use those funds as they see fit.
At the end of 2018, council committees had a total of 133 employees, according to city payroll records. That's 108 more than were listed in the city budget approved by aldermen and released to the public. Most of the employees are listed in payroll records as "legislative aide."
The Finance Committee has long had the largest committee budget, as well as the broadest jurisdiction, including city bonds, taxes, legal settlements and privatization deals. It also housed the city's workers' compensation program. In January, Burke, its longtime chairman, was charged in federal court with attempted extortion; Burke has denied any wrongdoing. Emanuel then had Burke deposed as finance chair and moved the workers' comp program to the city comptroller's office.
Alderman Ed Burke (14th Ward), former chair of the Finance Committee
For years, the Finance Committee's accounting was even more opaque than other committees'. According to the city budget, the Finance Committee had a 2018 budget of $2.3 million, which included the salaries of 25 employees. But expense records show that Burke had access to far more money and workers. Burke kept between 61 and 78 people on the payroll at different points in the year, costing a total of about $3.4 million in worker pay. Employees listed as full time were paid salaries ranging from about $21,000 a year for a legislative aide to $171,000 for the chief administrative officer of the workers' comp program.
Following the Finance Committee money gets tricky fast. In addition to money allocated for the committee, Burke also paid workers out of funds he controlled in other city departments. One employee was paid out of the budget for the Fire Department's workers' compensation costs; others were covered out of allocations for "investigation costs" buried deep within the budget.
At least four employees were paid from multiple funds during the course of the year.
Last December, the Finance Committee transferred $862,000 from its reported expenditures to the balance sheets of other city departments. The end-of-the-year accounting maneuver came after Burke's staff said some employees assigned to the committee should have been paid out of funds available for the workers' compensation program. The spending records don't show what the employees' duties were.
The complicated money flow — and lack of oversight — put Burke in the enviable position of being able to dispense favors and largesse to other aldermen. For years, he essentially loaned employees to other aldermen who needed help, as WTTW reported in March. On occasion, the Finance Committee paid expenses for other aldermen, such as when it reimbursed 40th Ward Alderman Pat O'Connor about $2,900 total for travel to conferences of the National League of Cities in Nashville in 2015 and Kansas City the next year. O'Connor did not respond to a request for comment.
From 2015 to 2018, the Finance Committee also paid more than $46,000 to cellphone provider Verizon Wireless. Invoices don't provide details about the account or why the bills were so high.
Burke didn't respond to requests for comment.
As chair of the Committee on Committees, Rules and Ethics, 8th Ward Alderman Michelle Harris oversees council procedures and has the power to decide which legislation is assigned to which committees, or to hold up legislation altogether.
Ald. Michelle Harris (8th Ward), chair of the Committee on Committees, Rules and Ethics
"I do everything I can to be aboveboard and be transparent because I am the rules chair, but every now and then it doesn't work out that way," Harris said in an interview.
In April 2018, $8,820 in committee funds went to pay a South Side company to print and mail an 8th Ward newsletter, according to a copy of the invoice obtained from the city under the Freedom of Information Act.
Harris said the mailing was focused on city services and wasn't political, but she conceded it should have come out of her ward account. She blamed the error on a new employee and promised to "have her re-trained." Harris also wondered why city finance officials didn't catch the mistake.
"What I'm further concerned about is that it wasn't flagged anywhere along the process," she said.
Between 2015 and 2018, Harris paid $82,000 in Rules Committee funds to The Salient Group, a Downtown firm, for what was described in a February 2018 invoice as "PR Consulting."
Harris said Salient's president has attended committee meetings and helped Harris respond to news coverage about her role as chair, such as criticism that she has buried legislation when it was opposed by Emanuel and his allies.
"I've gotten torn up on by some people, so I've had to come up with a strategy about how to deal with those issues," Harris said. Asked if all of the PR work was connected to the committee, she said, "You are 10,000% correct."
Beale, chair of the Transportation Committee, also dipped into committee funds for public relations.
Beale became the committee's leader after a slow, steady climb up the City Hall ladder. In 2007, Daley picked Beale to lead the council's Landmarks Committee. Its previous chair, Arenda Troutman, had been charged in federal court with taking a bribe and then lost her reelection bid.
Three years later, Daley moved Beale to the helm of the Police and Fire Committee, which had a larger budget. When Emanuel was elected mayor in 2011, he shifted Beale to chair the Transportation Committee.
The new post was another boost for Beale. The Transportation Committee has an annual budget more than twice as large as his old committee's. And most of its work consists of rubber-stamping hyperlocal administrative ordinances. Between 2015 and 2018, 99 percent of the ordinances introduced to the committee were passed, records show, typically without discussion or debate.
In addition to putting eight employees on the payroll, Beale used committee funds to pay $15,000 in 2015 and 2016 to the public relations firm MK Communications for "professional services," including "project strategy, planning and management, media, writing and editing," according to invoices.
Another $13,000 went to Rightsize Facility, an office furniture company, for items that included a bourbon cherry wardrobe cabinet delivered to City Hall, records show.
Beale also used committee funds to pay for a car and parking costs. More than $9,000 went to GM Financial Leasing for a 2015 Chevy Tahoe SUV, records show. Another $11,000 covered parking expenses.
Pointing to the committee's 70-page agenda after its March meeting, Beale said all his committee staff positions are needed.
"That's a lot of work, man," he said.
But Beale said those employees don't limit their work to committee matters.
"I mean, people call Downtown for a city service, of course they're going to serve the people," Beale said. "I'm not going to tell a [committee] staff person, 'This is an aldermanic call, someone calling to have a street light put on,' and transfer that call. You take care of that city service. You're still doing a service to the public."
Marilyn Katz, the president of MK Communications, said her firm works on a range of issues with Beale. They include matters before the committee, such as taxi regulations, as well as ward issues such as housing and the opening of a Whole Foods store. She said she couldn't comment on the committee expenditures but would ask Beale.
The alderman didn't respond to that or other requests for comment about committee spending.
In recent weeks, Beale has been among the council chairs lining up support from colleagues to hold onto their committee posts. They've also been working to block 32nd Ward Alderman Scott Waguespack, a Lightfoot ally and head of the council's Progressive Caucus, from becoming the next chair of the Finance Committee.
Perhaps the highest cost of the current committee system is the hardest to measure: the failure of the City Council to provide oversight of city government and, when necessary, serve as a check on mayoral power.
More than a dozen people were reportedly shot over the first weekend of April — a number that's not unusual in Chicago as the weather warms up. But the city's ongoing struggles with gun violence were not mentioned during the April 8 meeting of the Committee on Public Safety. Just one item was on the agenda: an ordinance that would temporarily allow helicopters to land near McCormick Place so they could be exhibited during the upcoming convention of the International Association of Chiefs of Police.
The committee rarely holds discussions of crime trends or policing strategies. That's been true even within the last year, as aldermen have drafted and introduced proposals to create community oversight of the police department. After one proposal sat in the committee for two years, aldermen shot it down last fall. The committee chair, Ald. Ariel Reboyras, of the 30th Ward, hasn't held votes on other proposals.
Last October, 20 aldermen signed a letter asking Reboyras for a hearing on a report from the office of the city inspector general that found police officers assigned to city schools lacked proper training, standards and accountability. Reboyras hasn't called that hearing either.
From 2015 through 2018, 12 of the 25 ordinances approved by the committee concerned donations of used fire trucks and other vehicles to nonprofit groups or towns in Mexico, Puerto Rico or Argentina. The committee also considered 25 mayoral appointments to city boards. It approved all but one.
Only six of the committee's 19 aldermen were present for its April 8 meeting, well below the 10 needed for a quorum. Once again, no aldermen asked for a quorum vote, so the meeting continued.
The committee members had just two questions about the helicopter-landing proposal. Had it been done before? Yes, a police sergeant told them — in 2011 and 2015, when the police chiefs last held their conference in Chicago.
Reboyras, the chair, asked the other question: "Where was the previous conference held?"
Orlando, the sergeant told him.
With that, the committee voted unanimously to approve the ordinance. The meeting lasted about five and a half minutes.
As of the end of last year, the committee had two employees, records show. But Reboyras didn't want to talk after the April meeting about their responsibilities.
Asked if they spend all their time on committee work, he said, "What are you trying to get at?" Asked again if the committee staff do work in his ward, Reboyras said, "Yes, they do," and walked off.
Chicago City Council Committees
The Chicago City Council has 16 legislative committees with jurisdictions ranging from aviation to zoning. But the amount each committee spends varies widely. Some committees reported spending well more than they were budgeted in 2018.
Current Chair
2018 Reported Spending *
Spending vs. Budget
Aviation Matthew O'Shea 19 9 $109,496 $93,158 $16,338
Budget Carrie Austin 35 19 $543,968 $895,455 $351,487
Economic Development Proco Joe Moreno 19 8 $105,075 $102,288 $2,787
Education Howard Brookins Jr. 20 5 $168,483 $153,745 $14,738
Finance Pat O'Connor 35 30 $2,264,180 $3,370,333 $1,106,153
Health George Cardenas 19 3 $93,606 $91,527 $2,080
Housing Joe Moore 15 15 $206,164 $205,392 $772
Human Relations Pat Dowell 18 7 $93,556 $85,166 $8,390
License Emma Mitts 18 13 $125,246 $130,598 $5,352
Traffic Walter Burnett Jr. 16 12 $249,379 $246,690 $2,689
Public Safety Ariel Reboyras 20 15 $161,855 $133,849 $28,006
Rules Michelle Harris 50 11 $145,568 $156,526 $10,958
Special Events Tom Tunney 20 8 $162,108 $155,970 $6,138
Transportation Anthony Beale 15 10 $454,137 $434,729 $19,408
Workforce Development Pat O'Connor 18 9 $538,565 $485,383 $53,182
Zoning James Cappleman 18 16 $400,574 $447,182 $46,608
* Includes reported expenditures by the committee. Finance Committee total also includes pay for committee employees that came from other city departments.
Sources: Chicago City Clerk, Legislative Information Center; Chicago Department of Finance. Analyzed by Mick Dumke and David Eads/ProPublica Illinois.
Mick Dumke
Rahm Emanuel


sukekiyo "2018 live 'Mania no shikan' -Shikkoku no gi-" at Tokyo International Forum Hall C | JaME U.K.
Join us and let your soul wander into the dark fantasy of sukekiyo.
There's only one word to describe the state of mind in which the band leaves us … "Wow!" The first thing to talk about is the stunning scenography. In addition to the traditional screens at the back of the stage, a huge transparent veil covers the entire scene just in front of the group. Thanks to this veil, the magic of technology makes it possible to create huge holographic effects. We are cradled by the waves, dazzled by the flames and bewitched by various forms — sometimes a nightclub, sometimes a church, sometimes ... something else. Far from being a simple gadget, this technology brings more immersion, depth and poetry into the show. This is the kind of scenography that gives full meaning to the concept of visual kei.
About the set, we have the pleasure to hear songs from all of sukekiyo's discography, from debut song such as mama to the brand new single kisses along with hit songs like anima. We are even surprised with an unreleased song called Tada、Mada、Watashi — there's no doubt that this one has the potential to become another hit song of the band.
We cannot end this live report without talking a little bit about the band's performance. It is undeniable that while our ears are focused on the maestria of each musician, we only have eyes for Kyo. With his impressive vocal technique and stage presence, Kyo (and of course the other members) offers a truly amazing performance.
There's only one regret: the lack of interaction with the audience. There's neither MC nor encore, nor any words expressed except for the now famous "goodnight" from Kyo, meaning that the show is really over. But, well … to be fair, this is part of sukekiyo's myth. In the end, everyone is delighted by this show, an hour and forty-five minutes of pure pleasure for both the eyes and ears. Thanks to this kind of show, there's no doubt sukekiyo will propel visual kei to a whole new level.


Dainty Heather Ruffle Lace Short Full Circle Octopus Convertible Wrap Dress-Custom Choose Fabrics~Floral, Leopard, etc.
Length 20" 22" 24" 28"
This listing is for the short Infinity Wrap Dresses with Dainty Ruffle overskirt. This unique fabric comes in two shades! As shown in photo- a lighter Heather Dainty Ruffle and Dark Wisteria Dainty Ruffle. Hem is finished with a rolled 'lettuce edge'. Custom combine with any color straps and underskirt!
Octopus Infinity Wrap dresses are great because they are many dresses in one! With a short, full circle skirt and long sweeping sashes you can wrap, cinch, tie in your favorite most flattering style!
SEE BELOW TO CUSTOM CHOOSE SIZE, LENGTH, AND FABRICS!
Shown in the Swan Lake Heather with light Heather Dainty Ruffle Lace. Please leave note at checkout if you'd like the darker Wisteria dainty Ruffle!


Generated by E:\OLTP-EMUL\src\oltp_isql_run_worker.bat, ISQL session #1 of total launched 100. 2018-02-17 6:49:32.26.
Done for 112320 ms, from 6:52:17.58 to 6:54:09.90.
Done for 291300 ms, from 6:59:05.30 to 7:03:56.60.
Done for 10070 ms, from 7:03:58.24 to 7:04:08.31.
Done for 8970 ms, from 7:04:09.37 to 7:04:18.34.
Done for 423380 ms, from 7:11:16.69 to 7:18:20.07.
Done for 13010 ms, from 7:18:31.81 to 7:18:44.82.
Done for 75070 ms, from 7:18:45.27 to 7:20:00.34.
Done for 2180 ms, from 7:20:11.49 to 7:20:13.67.
Done for 90150 ms, from 7:20:13.71 to 7:21:43.86.


Each separate storey of the holiday house (gîtes) is suitable for smaller and larger groups, with a maximum of up to 23 people per storey. Each gîte has 8 bedrooms that will sleep 2 to 4 people each. They each have three toilet and shower areas, and in every bedroom is a wash basin. Furthermore, every gîte has a large dining/sitting area with complete kitchen, which holds a large cooker, fridge, dishwasher, microwave, toaster, coffeemaker, washing machine, pots and pans, crockery and cutlery, enough for everybody. Also every gîte has its own television and DVD player. Free WiFi is at your disposal. The overall capacity of the building is 65 people.
The ground floor is suitable for disabled people, including the shower and toilet facilities. This group accommodation also has a comfortable lounge area with open fire place.
A fitness area and a games room with table tennis and table football are all available to our guests.
We have ample parking spaces, covered parking area for bicycles and motorbikes, and an area to clean bicycles. We have a small workshop, and there is a room for the storage of skis and ski equipment.
Pets are very welcome, but by prior arrangement only.
On request we can prepare breakfast and/or diner for you.


Find Skype user profiles tagged with #Foissac hashtag. Find the best Skype #Foissac usernames for 2019. Explore Skype user photo gallery and discover their stories. Discover interesting people on Skype and gain new friends and followers.
Skype #Foissac is a hashtag directory listing for Skype. This is a dynamic curation of Skype usernames to help you find like-minded people to follow.
How to Add My Username to Skype #Foissac?
Login to Dizkover and add your Skype username to your messaging accounts. Then like #Foissac hashtag in People Discovery Engine.
A previous user might have added and removed #Foissac in his/her likes hashtags. Please try a different hashtag.


At Anne Grice Interiors, we believe luxury is in the details. Our sophisticated yet functional style is inspired by the Colorado lifestyle and mountain landscape. The spaces we design are highly customized to each client through a skilled use of color, texture, and pattern. We strive to not only realize the vision of each client, but to exceed expectations. Leave the details to us.
Founded in 1996, Anne Grice Interiors is an award-winning, full-service interior design studio specializing in residential, commercial, and hospitality design and remodeling. Based in Aspen, our firm has worked in the Roaring Fork Valley for over 20 years. Anne Grice Interiors has grown steadily and deliberately; consistently choosing long-term client satisfaction over all else as a guiding principal.
Working with homeowners, business owners, and the hospitality industry to design luxurious and functional interiors; Anne Grice Interiors offers more value than any other interior design firm in the Roaring Fork Valley.


Many Fairhope Condos to Choose From | There are plenty of Fairhope condos to choose from today. By using their website, a person can search for Fairhope real estate properties depending on their chosen criterion. Many Fairhope homes for sale results will show up as well as details on each asset.
There are plenty of Fairhope condos to choose from today. By using their website, a person can search for Fairhope real estate properties depending on their chosen criterion. Many Fairhope homes for sale results will show up as well as details on each asset.


That's right, there is Patrick Mahomes, in all his glory, waiting for your purchase, and You can make every Red Raider in your life very happy come Christmas time.
The Kansas City Cannon Patrick Mahomes will be available in bobblehead form in December but sportsfanisland.com is taking preorders now. It's only week two in the NFL but Patrick Mahomes has never been hotter after winning his first AFC Offensive player of the week!
I'm definitely putting a couple of these on my wishlist.
Here is what Kliff Kingsbury wants when Patrick Mahomes wins the MVP!


text:
#include "nvapi.h"
#include "NvApiDriverSettings.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
/*
    This function is used to print to the command line a text message
    describing the nvapi error and quits
*/
void PrintError(NvAPI_Status status, int line)
{
	NvAPI_ShortString szDesc = {0};
	NvAPI_GetErrorMessage(status, szDesc);
	printf(" NVAPI error line %d : %s\n", line, szDesc);
	exit(-1);
}

int main(int argc, char **argv)
{

	if (argc != 2){
		printf("Usage : \n\tselectoptimus NVIDIA\n\tselectoptimus INTEL");
		return -1;
	}

	bool ForceIntegrated;
	if (strcmp(argv[1],"NVIDIA") == 0) ForceIntegrated = false;
	else if (strcmp(argv[1],"INTEL") == 0) ForceIntegrated = true;
	else {
		printf("Usage : \n\tselectoptimus NVIDIA\n\tselectoptimus INTEL");
		return -1;
	}

    NvAPI_Status status;
    // (0) Initialize NVAPI. This must be done first of all
    status = NvAPI_Initialize();
    if (status != NVAPI_OK)
        PrintError(status, __LINE__);
    // (1) Create the session handle to access driver settings
    NvDRSSessionHandle hSession = 0;
    status = NvAPI_DRS_CreateSession(&hSession);
    if (status != NVAPI_OK)
        PrintError(status, __LINE__);
    // (2) load all the system settings into the session
    status = NvAPI_DRS_LoadSettings(hSession);
    if (status != NVAPI_OK)
        PrintError(status, __LINE__);
    // (3) Obtain the Base profile. Any setting needs to be inside
    // a profile, putting a setting on the Base Profile enforces it
    // for all the processes on the system
    NvDRSProfileHandle hProfile = 0;
    status = NvAPI_DRS_GetBaseProfile(hSession, &hProfile);
    if (status != NVAPI_OK)
        PrintError(status, __LINE__);

	NVDRS_SETTING drsSetting1 = {0};
	drsSetting1.version = NVDRS_SETTING_VER;
	drsSetting1.settingId = SHIM_MCCOMPAT_ID;
	drsSetting1.settingType = NVDRS_DWORD_TYPE;

	NVDRS_SETTING drsSetting2 = {0};
	drsSetting2.version = NVDRS_SETTING_VER;
	drsSetting2.settingId = SHIM_RENDERING_MODE_ID;
	drsSetting2.settingType = NVDRS_DWORD_TYPE;

	NVDRS_SETTING drsSetting3 = {0};
	drsSetting3.version = NVDRS_SETTING_VER;
	drsSetting3.settingId = SHIM_RENDERING_OPTIONS_ID;
	drsSetting3.settingType = NVDRS_DWORD_TYPE;

	if( ForceIntegrated ){
 		drsSetting1.u32CurrentValue = SHIM_MCCOMPAT_INTEGRATED;
		drsSetting2.u32CurrentValue = SHIM_RENDERING_MODE_INTEGRATED;
		drsSetting3.u32CurrentValue = SHIM_RENDERING_OPTIONS_DEFAULT_RENDERING_MODE | SHIM_RENDERING_OPTIONS_IGPU_TRANSCODING;
	}else{
 		drsSetting1.u32CurrentValue = SHIM_MCCOMPAT_ENABLE;
		drsSetting2.u32CurrentValue = SHIM_RENDERING_MODE_ENABLE;
		drsSetting3.u32CurrentValue = SHIM_RENDERING_OPTIONS_DEFAULT_RENDERING_MODE;
	}

	status = NvAPI_DRS_SetSetting(hSession, hProfile, &drsSetting1);
	if (status != NVAPI_OK)
		PrintError(status, __LINE__);

	status = NvAPI_DRS_SetSetting(hSession, hProfile, &drsSetting2);
	if (status != NVAPI_OK)
		PrintError(status, __LINE__);

	status = NvAPI_DRS_SetSetting(hSession, hProfile, &drsSetting3);
	if (status != NVAPI_OK)
		PrintError(status, __LINE__);

    // (5) Now we apply (or save) our changes to the system
    status = NvAPI_DRS_SaveSettings(hSession);
    if (status != NVAPI_OK)
        PrintError(status, __LINE__);
    // (6) We clean up. This is analogous to doing a free()
    NvAPI_DRS_DestroySession(hSession);
    hSession = 0;
    return 0;
}