text:
Tanker 130 down !!!
WALKER, Calif. (AP) - An air tanker fighting a blaze near Yosemite National Park caught fire Monday and crashed in this Northern California resort town, killing all three crew members and just missing a mechanic's shop, authorities and witnesses said (17Jun2002).
A Reno, Nev., television station captured the scene on videotape as the wings broke off the C-130 transport plane. The fiery fuselage then rolled left and spiraled nose first into the ground and exploded in a ball of flame.
All three crew members were killed in the crash "under unknown circumstances after making a drop" of retardant, said Jerry Johnston, operations officer with the Federal Aviation Administration in Hawthorne, Calif.
Authorities identified the crash victims as pilot Steven Wass, 42, of Gardnerville, Nev.; co-pilot Craig Labare, 36, of Loomis, Calif.; and crew member Michael Davis, 59, of Bakersfield, Calif.
Hawkins & Powers' only previous accident listed in an NTSB database is a 1999 hard landing of a helicopter during coyote research in Utah. The company owns six C-130s and 22 other aircraft.
"It was destroyed by impact and by fire," he said. Investigators for the National Transportation Safety Board were on the way to the scene.
It was unclear whether anyone on the ground was injured, though medical crews were on the way, said Laura Williams, spokeswoman for the Sierra Front Interagency Dispatch Center in Minden, Nev.
The tanker was battling an 8,000-acre blaze that had forced 400 people out of their homes in Walker, which is 90 miles south of Reno, and about 25 miles north of Yosemite. At least one home has burned.
Reno station KOLO-TV's news crew was interviewing a man watching the skies with his own camcorder near Walker Sporting Goods Mobile Home Park when the plane came into view.
The plane came in low to the ground trailing a red flow of fire retardant above tall green pines. Both wings suddenly snapped off, with flashes of flame as they separated.
"We saw it circle around once and then drop through the middle there....
That's where we saw it break up," reporter Terri Russell said.
The fire from the crash threatened about 10 structures in the immediate area, including homes, trailers and the mechanic's shop.
The wildfire began Saturday in a remote section of the Humbolt-Toiyabe National Forest that the Marines use for survival training. Unexploded ordnance in the steep, rugged area was slowing containment efforts, according to the National Interagency Fire Center in Boise, Idaho.
The nation's C-130A tankers, workhorse of the firefighting fleet, were grounded Tuesday in the midst of what could become one of the worst fire seasons in history
air tankers (& N130HP) at Greybull,WY
Report on Harro Ranter's excellent Aviation Safety website: http://aviation-safety.net
This is a message from the FEMA's US Fire Administration.
The U.S. Fire Administration has received notice of the following firefighter fatalities:
Names: Pilot Steven Ray Wass (Age 42), Co-Pilot Craig Labare (36), and Engineer Michael Harlow Davis (59)
Status: Career
Date of Incident: 06/17/2002
Time of Incident: 1445 hrs
Fire Department: U.S. Forest Service, Sierra Front Interagency Cooperators
Fire Department Address: 2311 Firebrand Circle, Minden, NV 89432
Fire Department Phone: (775) 883-5995
Fire Department Website: http://www.sierrafront.net/
Cause of Death: Just after the crew had dropped it's load of fire retardant on a wildland blaze near Walker, CA, all three members died when the C-130 air tanker under contract to the U.S. Forest Service broke apart in flight and crashed.
Tribute is being paid to Pilot Wass, Co-Pilot Labare and Engineer Davis at:
http://www.usfa.fema.gov/dhtml/inside-usfa/ffmem.cfm
Additional information on firefighter fatalities may be found on the USFA web site at:
http://www.usfa.fema.gov/dhtml/inside-usfa/nfdc-data5.cfm
To date, 46 firefighter fatalities have been reported to USFA in 2002.
END Message
This is how Tanker 130 looked when I photographed it at its homebase Greybull,WY
Lockheed C-130A Hercules N130HP (c/n 3146), formerly operated by the US Air Force as 56-0538. Even though it's over 40 years old, it's the most modern equipment with Hawkins & Powers (and with most airtanker companies). For other photos taken at Hawkins & Powers homebase, go to Greybull
In Jan.2003 news was published that this aircraft may have been used as a spy-plane !
NTSB: Airtanker Once Flew Spy Missions
RENO, Nev. (AP) - The investigation of an airtanker crash during a wildfire may have been hampered by missing records on the former Air Force plane - missing, in part, because the plane used to fly spy missions for the CIA, a federal investigator said.
The revelation has renewed criticism of the Forest Service for putting the surplus military plane to work fighting fires.
"Apparently this ... airplane at one point in time was set up along with a few others for electronic surveillance - as in CIA activity - somewhere in the world," said George Petterson, an air safety investigator for the National Transportation Safety Board.
"Those kind of airplanes basically don't exist records-wise. That could be the reason why we don't have a good history on this airplane," he told The Associated Press. Investigators are unsure how long the C-130A cargo plane had flown - as little as 3,000 hours, or possibly more than 20,000 hours - with the wing assembly that broke off its fuselage in June, killing all three crew members in a crash near Walker, Calif. The airtanker was built by Lockheed in 1956.
Last month, the Forest Service came under fire for having been repeatedly told the aging aircraft never should have been released from the Air Force "boneyard" at Davis-Monthan Air Force Base in 1988.
A blue-ribbon panel investigating the matter at the request of the Forest Service recommended enhanced safety standards in planes used for fighting fires.
Petterson said the Air Force modified many of its C-130As with new wing parts in the early- to mid-1980s, though he can't tell whether the crashed plane was one of them.
"The modifications were being done because they were having problems with the airplanes' wings cracking," Petterson said. The NTSB investigator has identified fatigue cracks - one more than a foot long - in the wings of the plane that crashed in June and he suspects the same structural failure caused a 1994 airtanker crash that killed three crew members north of Los Angeles.
The Air Force indicated the records of the wing modifications have been destroyed, Petterson said. Complicating matters is that the company that performed the modifications, Aero Corp. in Lake City, Fla., "kept the records for many, many years, but they since have been disposed of," he said. He added that "it would help make the fatigue cracking a little more understandable" if the plane had flown more than 20,000 hours, as opposed to as few as 3,000.
Aero Corp. no longer exists. Michael Moore, general manager of the company that acquired it, Timco Aviation Services of Greensboro, N.C., declined to comment.
An Air Force Reserve spokesman at the Pentagon said paperwork typically accompanies surplus military aircraft to the new owner, but he had no information on the plane.
Critics of the Forest Service firefighting fleet have alleged that planes on contract to the agency were being used in covert operations after they left the military and were in the possession of private contractors.
This plane involved in the crash was one of nearly two dozen the Air Force released to private contractors in the late 1980s and early 1990 under an aircraft exchange program. Two men involved in the program landed in federal prison after their 1996 convictions on charges of conspiracy to steal the planes.
Hawkins & Powers Aviation Inc. of Greybull, Wyo., received seven of the C-130As, including the one that crashed in June.
The head of aviation at Forest Service headquarters in Washington said the lack of documentation is a major concern. "We know some aircraft that were part of the aircraft exchange act ended up flying overseas. I don't know for what agency. If he says CIA, he might be right," Tony Kern, national aviation officer, said of Petterson's remarks.
"We also are aware there are gaps in the records of these aircraft, not just for that period of time, but records that never were transferred across from the military," he said. "If you don't know the flight hours, that's a big problem."
The aircraft exchanges were halted under the Clinton administration, but most of the planes remain in the hands of the private contractors. The transfers were portrayed at the time as necessary to bolster the Forest Service's depleted firefighting fleet. But Gary Eitel, a former Vietnam War combat pilot who filed a lawsuit to try to force the return of the planes to the government in the mid-1990s, testified before Congress that the CIA used the Forest Service to cover up its use of the aircraft for secret missions.
Kern said the Forest Service needs complete documentation on its firefighting fleet. "This is a major issue we are going to address with whatever aircraft we go with next," Kern said. "We need to have that so 20 years from now there's not another guy in this seat asking, How the heck did we get into a scenario where the NTSB can't find records on these aircraft?"
The following was published after initial investigations and grounding of the Lockheed C-130A Hercules and Consolidated PBY-4 Privateer airtankers:
Firefighting Crashes Examined by the NTSB
The National Transportation Safety Board has just released the following updated information on its investigations of two United States Department of Agriculture Forestry Service firefighting airplane crashes: Lockheed C-130A at Walker, California on June 17, 2002; Consolidated-Vultee P4Y-2 at Estes Park, Colorado on July 18, 2002. Both aircraft were registered to Hawkins and Powers, Aviation, Inc., in Greybull, Wyoming.
On June 17, 2002 a Lockheed C-130A, N130HP, broke apart in flight while executing a fire retardant delivery near Walker, California. The three flight crewmembers were fatally injured and the airplane was destroyed. The airplane was operated by the U.S. Department of Agriculture -- Forestry Service for the public-use firefighting flight under 14 CFR Part 91. A company flight plan had been filed and visual meteorological conditions prevailed. The airplane had departed Minden, Nevada, about 2:29 p.m., to participate in firefighting efforts near Walker. During the retardant drop the airplane's wings folded upwards at the center wing-to-fuselage attachment point and separated. The right wing folded just before the left wing. The crash occurred at about 2:45 p.m. Pacific Daylight Time. The aircraft was delivered to the Air Force in 1957 and acquired by the U.S. Forest Service in 1988. At the time of the accident the aircraft had accumulated about 21,863 flight hours.
The second accident occurred on July 18, 2002, at 6:40 p.m. Mountain Daylight Time, when a Consolidated-Vultee P4Y-2, N7620C, operated by the U.S. Department of Agriculture -- Forestry Service was destroyed upon impact into mountainous terrain near Estes Park, Colorado. A post-crash fire ensued. Prior to the impact, the airplane's left wing failed just inboard of engine number two. The left wing fractured at its wing-to-fuselage attachment point along the lower left spar cap. At the time of the failure the aircraft was making a 15-20 degree left bank, preparing to drop retardant on a forest fire burning northwest of Lyons, Colorado. The 2 crewmembers on board the airplane were fatally injured. Visual meteorological conditions prevailed at the time of the accident.
The public use flight originated in Bloomfield, Colorado and was being conducted under the provisions of Title 14 CFR Part 137, aerial application. No flight plan was filed. The P4Y was manufactured in 1944 and was used first by the Navy and then transferred to the Coast Guard prior to Hawkins and Powers acquiring it in 1969. Total flight hours are unknown, but from 1969 to the time of the accident the aircraft had accumulated 8,200 flight hours.
Fatigue cracks were found in pieces of wing structure in both the C-130A and the P4Y airplanes. Both investigations are closely looking at the fatigue cracks as well as other safety issues, such as inspection and maintenance procedures and operational factors. In both investigations, the Safety Board is collecting data to determine why the cracks initiated and propagated to the critical length that caused the wings to fail catastrophically.
Although metallurgical examinations of both aircraft are ongoing the preliminary results for both have indicated that widespread fatigue was not evident over the entire wing but that in some locations current crack detection techniques may have been unreliable. The Safety Board is working with the United States Air Force, Lockheed, Hawkins and Powers, and the Forest Service to review pertinent inspection and maintenance performed on the wings' structures throughout their service history.
The Safety Board is monitoring the efforts of the FAA and industry representatives to develop appropriate and effective inspection andmaintenance requirements to address critical fatigue areas. Although initial performance calculations for the C-130A's flight have been completed, additional information on fuel weights and gust load factors is still being refined in order to get a more accurate depiction of the loads the airplane experienced during the accident sequence. During a C-130A contract pre-award evaluation in 1991, the Department of the Interior's (DOI) Office of Aviation Services inspectors concluded that essential inspection and maintenance services' critical to sustaining the airplane in an airworthy condition under normal operating conditions were not being accomplished with the C-130A. This prompted the DOI, in 1993, to prohibit the use of the C-130A on DOI land. The FAA and the DOI subsequently developed an action plan to address many of the same inspection and maintenance issues seen in the most recent C-130A and P4Y accident investigations. Since that time the DOI has dropped its restrictions on the C130A and the Safety Board is investigating how the FAA and the DOI followed through with the proposed action plan and what corrective measures were put in place. Based on this information, the Safety Board will explore whether the C-130A and P4Y events were unique or a sign of systemic problems with military surplus aircraft now in public use operations. The investigations are reviewing continuing airworthiness issues including the original design intent, engineering support, mission profile, operating limits, inspection intervals and techniques and life limits of both these surplus military airplanes and relating that to the current mission for which the Forest Service is using them to determine if the airplanes' design and operational limits are appropriate for its current intended use.
FMI: www.ntsb.gov/aviation
In January 2003 the following was announced:
Following a disastrous 2002 fire season during which six air tanker crewmen were killed, the U.S. Forest Service has permanently grounded 11 air tankers. USFS Chief Dale Bosworth made the announcement last month on the advice of a five-member, blue-ribbon panel that investigated last year's two fatal air tanker crashes. Four WW II-vintage Consolidated PB4Y Privateers and seven Lockheed C-130A Hercules dating from the 1950s were grounded, never again to fly in federal service.
The PB4Ys are operated by Hawkins & Powers Aviation of Greybull, Wyo. Four of the C-130As are owned by H&P, three by TBM Inc. of Tulare, Calif.
The grounded aircraft comprise a quarter of the 44 tankers operated by private companies on USFS contracts. The remaining 33 planes must pass a rigorous inspection and follow a new maintenance program before returning to service, said USFS Fire Director Jerry Williams.
In addition to the tankers, the Forest Service also suspended the use of 19 Beech Be-58P Baron lead planes and four former-USAF Shorts C-23 Sherpa smokejumper transports. These are government-owned aircraft flown by contract personnel.
To email me, click on the image and write the correct adress as given below
(replace -AT- by the @ symbol).
Sorry for the inconvenience, but this is because spam has increasingly become a problem.
Created: 19-6-02 Updated: 11-7-03


Want to collect an 89-year-old issue full of Hall of Famers costing less than your average box of 2012 "high end" product? The W515 baseball card set awaits.
Checking out eBay and catalog auctions reveals that the interest among vintage collectors seems to be pretty limited. Many go unsold. It could be because the majority of the cards from this giveaway wind up being graded 'Authentic' rather than being awarded a numeric designation. In fact, more than half of those graded by PSA are labeled 'Authentic'. There are just 20 9's and only one ten.
It's not a stretch to say that like many strip cards, W515s are undervalued in the current marketplace.
S old in strips of ten cards at variety stores and other outlets in 1923, W515 is blank backed and no advertising on the back. The cards are about 1 3/8″ by 2 1/4″ and are actually drawings made from photos. They feature brightly colored backgrounds but the likenesses aren't always top notch. On most of the cards, there's a copyright symbol followed by "U&U" indicating the drawings were made from photographs owned by Underwood & Underwood, which was a major provider of photos for news outlets at the time.
Each of the 60 cards has a card number, player's name, position, team and league appear along the bottom.
The set is heavy on New York players, thanks in part to the success of the teams. The Giants and Yankees played in the World Series in 1921, 1922 and 1923 and the Dodgers were also popular. Interestingly, there are no Red Sox. Still smarting from the surrender of Babe Ruth, Boston's American League team was struggling and combined with the crosstown Braves of the National League, Boston fans saw 193 defeats that year.
If you're collecting Hall of Famers or just want a few to add to your collection, prices are more than reasonable. A complete set in mixed grade but with many higher end examples sold in the spring of 2011 for $1,315 via Huggins and Scott.
A raw W515 Babe Ruth described as EX was offered unsuccessfully for $995 recently while an Authentic graded copy sold for $445 in August. There has been just one PSA 9 Ruth graded. A seller offered it for $9,995 last month but it didn't sell. Other Hall of Famers in respectable grade are readily available. A PSA 8 Casey Stengel brought $255 last week. An SGC 40 Grover Cleveland Alexander sold for $105 in September and a PSA 3 Rogers Hornsby sold for just $89 in October.
There's a second set, labeled W515-2 that is identical to the first set except they're slightly larger and on some, you can read portions of the words that spelled out "The Little Wonder Picture Series" along the top of the strip.
You can see W515 baseball cards on eBay here.


text:
Dinapsolin je lek koji je razvijen za treatman Parkinsonove bolesti. On deluje kao selektivni puni agonist dopaminskog D1 receptora.

Reference

Spoljašnje veze

Допамински агонисти
Катехоли
Тетрахидроизохинолини

redpajama_set_name: RedPajamaWikipedia


text:
2023 AIPS Fellowships and Short-Term Research Grants Applications Are Now Open!
Submitted Tuesday, November 15th, 2022
AIPS is excited to announce applications are now open for our Pre- and Post-doc Research Fellowships as well as Short-Term Research Grants!
Fellowships are available to both post-doctoral scholars (Senior fellowships) and pre-doctoral scholars who have completed all requirements of a Ph.D. except a dissertation (Junior fellowships). Priority may be given to applicants who have not received an AIPS fellowship in the past two years. Short-Term Research Grants are open to those affiliated with an academic institution within the US, regardless of citizenship, and last from one to three months in Pakistan. All applications for fellowships are due by February 1, 2023, and all applications for Short-Term Research grants are due by February 15, 2023. For more information, please see our programs page here.

redpajama_set_name: RedPajamaCommonCrawl


On Friday, November 2, 2018 the American Planning Association South Carolina Chapter named Cooks Crossroads an Outstanding Planning Project of the Year for Large Urban Jurisdiction.
The project titled "Standing at the Crossroads – Designing a Gateway for the Future" was a collaborative effort between the Dorchester County Planning & Zoning Department, the Dorchester County Planning Commission, the Dorchester Trust Foundation, the South Carolina National Heritage Corridor, nationally recognized Planning firm, Urban Design Associates, various stakeholders and private organizations.
Cooks Crossroads, a conglomerate of parcels located at the intersection of Highway 61 and Highway 165, is the last true rural crossroad in the greater Summerville area. This intersection is located within Dorchester County's Ashley River Historic Overlay District, created in 2007 as a reaction to intense development pressure in the vicinity. The overlay district was created with the intent to promote responsible development and to mitigate the effects of new construction to safeguard Dorchester County's heritage, natural beauty, and economic recreational resources; to conserve wildlife habitat; to stabilize riverbank, and to protect water quality and marine nursery resources.
This project creates a comprehensive set of design guidelines for the last remaining undeveloped rural crossroad in the greater Summerville area. From start to finish, this project serves as an example of what can be accomplished when multiple parties with different interests come together.
The project broke through the traditional perception that development is bad and shows that development done correctly can preserve and promote natural features, enhance economic development efforts, increase tourism, provide the amenities needed by adjacent communities, and create a unique destination for the community to enjoy. Stepping beyond standard design guidelines, the document provides a detailed introduction on the importance of this intersection to the region and transitions into a thorough study of the issues and opportunities on the parcels that create this intersection. Sound planning principles are detailed throughout the document but are focused on the local landscape that it serves. The result is a community supported roadmap to assist in the creation of a gateway destination that is truly sympathetic to and respectful of Lowcountry heritage.
Submissions were judged on innovation, transferability, quality, implementation, comprehensiveness, significance and cost benefit.
George McDaniel, President of the Ashley Scenic River Advisory Committee and Dorchester Trust Foundation Member echoed Chairman Byars' remarks and added "Cooks Crossroads has stood at the crossroads of history for centuries, it speaks well of our community that we've produced this award-winning plan. Thanks to the collaborative Urban Design Associates and Dorchester County's planning department and to funding from the Dorchester Trust Foundation, the SC Heritage Corridor, and Dorchester County, this initiative engaged numerous citizens and community leaders and shows what a public-private partnership can achieve. The task now is to find a developer with the vision and resources to shape the district's future as a whole, rather than piecemeal, and to implement its designs that create a unique sense of place.
Kiera Reinertsen, Director of Planning & Zoning accepted the award on behalf of the Dorchester County Planning & Zoning Department.
The Planning Commission will review the final guidelines at the November 8th Planning Commission Meeting and vote at that time to make a recommendation to County Council to approve and adopt the design guidelines.
The top honor was also awarded to the Town of Summerville Planning Department for the Green Infrastructure Plan.


text:
Фонтан «Межеумный» или «Неопределенный» — находится у главного входа в Верхний сад. Представляет собой круглый бассейн с четырьмя фигурами дельфинов и фантастическим морским чудищем в центре композиции.

Название фонтана «Межеумный», или «Неопределенный», отражает историю многократных смен декора сооружения.

В 1738 году архитектор Иван Яковлевич Бланк поставил свинцовою фигуру Андромеды. Вскоре её сняли, и в бассейне осталась одна «вид имеющая змея». Прошло чуть более полувека, и место крылатого дракона заняла фигурка «Стерлядки». В последний раз об этом упоминается в описи 1877 года.

В 1925 году «Стерлядку» сменила чугунная ваза, стоявшая до этого в Дубовом бассейне. Из обложенной туфом вазы выбивалась неравномерная струя воды — то выше, то ниже.
Публика была в восторге от такой придумки, но началась война и фонтан был разрушен. При его восстановлении в 1958 году остановилась на варианте декорации бассейна по изображению в альбоме XVIII века.

Фонтаны Петергофа


text:
Q: Which are the use case of punpcklbw (interleave in MMX/SSE/AVX)?
*

*Which classes of algorithms could be using punpcklbw ?

*In particular, what is punpcklbw xmm0, xmm0doing ?

*And yet, what is maskedPow2_Value useful for ?
maskedValue = 0x101010101010101i64 * *(_QWORD *)&Val; // Val is int
maskedPow2_Value = 0x101010101010101i64 * maskedValue;
(or mov r9, 101010101010101h; imul rdx, r9; twice)
A complete example (the function is named CompressPacket but it may be misleading), asresult of decompilation by IDA:
void *__cdecl CompressPacket(void *Dst, int Val, size_t Size)
{
  __int64 maskedPow2_Value; // rdx
  unsigned int v5; // ecx
  __int64 *bufferOut; // rcx
  size_t size_; // r9
  size_t i; // r9
  size_t size__; // r9
  size_t counter; // r8
  size_t j; // r9
  void *result; // rax
  __m128i v13; // xmm0
  __int64 lsb4; // rax
  size_t counter1; // r9
  size_t k; // r9
  size_t lsb4_; // r8
  __int64 maskedValue; // rdx

  *(_QWORD *)&Val = (unsigned __int8)Val;
  maskedValue = 0x101010101010101i64 * *(_QWORD *)&Val;
  bufferOut = (__int64 *)((char *)Dst + Size);
  result = Dst;
  switch ( Size )
  {
    case 0ui64:
      return result;
    case 1ui64:
      goto LBL_1_F;
    case 2ui64:
      goto LBL_2_E;
    case 3ui64:
      goto LBL_3_F;
    case 4ui64:
      goto LBL_4_C;
    case 5ui64:
      goto LBL_5_D;
    case 6ui64:
      goto LBL_6_E;
    case 7ui64:
      goto LBL_7_F;
    case 8ui64:
      *(bufferOut - 1) = maskedValue;
      return result;
    case 9ui64:
      *(__int64 *)((char *)bufferOut - 9) = maskedValue;
      *((_BYTE *)bufferOut - 1) = maskedValue;
      return result;
    case 0xAui64:
      *(__int64 *)((char *)bufferOut - 10) = maskedValue;
      *((_WORD *)bufferOut - 1) = maskedValue;
      return result;
    case 0xBui64:
      *(__int64 *)((char *)bufferOut - 11) = maskedValue;
      goto LBL_3_F;
    case 0xCui64:
      *(__int64 *)((char *)bufferOut - 12) = maskedValue;
LBL_4_C:
      *((_DWORD *)bufferOut - 1) = maskedValue;
      return result;
    case 0xDui64:
      *(__int64 *)((char *)bufferOut - 13) = maskedValue;
LBL_5_D:
      *(_DWORD *)((char *)bufferOut - 5) = maskedValue;
      *((_BYTE *)bufferOut - 1) = maskedValue;
      return result;
    case 0xEui64:
      *(__int64 *)((char *)bufferOut - 14) = maskedValue;
LBL_6_E:
      *(_DWORD *)((char *)bufferOut - 6) = maskedValue;
LBL_2_E:
      *((_WORD *)bufferOut - 1) = maskedValue;
      return result;
    case 0xFui64:
      *(__int64 *)((char *)bufferOut - 15) = maskedValue;
LBL_7_F:
      *(_DWORD *)((char *)bufferOut - 7) = maskedValue;
LBL_3_F:
      *(_WORD *)((char *)bufferOut - 3) = maskedValue;
LBL_1_F:
      *((_BYTE *)bufferOut - 1) = maskedValue;
      return result;
    default:
      if ( _bittest(dword_7FFFF4B237D8, 1u) )
      {
        memset(bufferOut, maskedValue, Size);
        return Dst;
      }
      maskedPow2_Value = 0x101010101010101i64 * maskedValue;
      if ( !_bittest(dword_7FFFF4B237D8, 2u) )
      {
        if ( Size >= 0x40 )
        {
          v5 = -(int)bufferOut & 7;
          if ( v5 )
          {
            Size -= v5;
            *(_QWORD *)Dst = maskedPow2_Value;
          }
          bufferOut = (__int64 *)((char *)Dst + v5);
          size_ = Size;
          Size &= 0x3Fu;
          for ( i = size_ >> 6; i; *(bufferOut - 1) = maskedPow2_Value )
          {
            *bufferOut = maskedPow2_Value;
            bufferOut[1] = maskedPow2_Value;
            bufferOut[2] = maskedPow2_Value;
            bufferOut += 8;
            *(bufferOut - 5) = maskedPow2_Value;
            *(bufferOut - 4) = maskedPow2_Value;
            --i;
            *(bufferOut - 3) = maskedPow2_Value;
            *(bufferOut - 2) = maskedPow2_Value;
          }
        }
        size__ = Size;
        counter = Size & 7;
        for ( j = size__ >> 3; j; --j )
          *bufferOut++ = maskedPow2_Value;
        for ( ; counter; --counter )
        {
          *(_BYTE *)bufferOut = maskedPow2_Value;
          bufferOut = (__int64 *)((char *)bufferOut + 1);
        }
        return Dst;
      }
      v13 = _mm_unpacklo_epi8((__m128i)(unsigned __int64)maskedPow2_Value, (__m128i)(unsigned __int64)maskedPow2_Value);
      if ( ((unsigned __int8)bufferOut & 0xF) != 0 )
      {
        *(__m128i *)bufferOut = v13;
        lsb4 = (unsigned __int8)bufferOut & 0xF;
        bufferOut = (__int64 *)((char *)bufferOut - lsb4 + 16);
        Size = lsb4 + Size - 16;
      }
      counter1 = Size >> 7;
      if ( Size >> 7 )
      {
        do
        {
          *(__m128i *)bufferOut = v13;
          *((__m128i *)bufferOut + 1) = v13;
          bufferOut += 16;
          *((__m128i *)bufferOut - 6) = v13;
          *((__m128i *)bufferOut - 5) = v13;
          --counter1;
          *((__m128i *)bufferOut - 4) = v13;
          *((__m128i *)bufferOut - 3) = v13;
          *((__m128i *)bufferOut - 2) = v13;
          *((__m128i *)bufferOut - 1) = v13;
        }
        while ( counter1 );
        Size &= 0x7Fu;
      }
      for ( k = Size >> 4; k; --k )
      {
        *(__m128i *)bufferOut = v13;
        bufferOut += 2;
      }
      lsb4_ = Size & 0xF;
      if ( lsb4_ )
        *(__m128i *)((char *)bufferOut + lsb4_ - 16) = v13;
      return Dst;
  }
}

and the disassembly, by IDA too:
.text:00007FFFF4AF6440 ; void *__cdecl CompressPacket(void *Dst, int Val, size_t Size)
.text:00007FFFF4AF6440 CompressPacket  proc near               ; CODE XREF: j_memset↑j
.text:00007FFFF4AF6440                                         ; Concurrency::details::ResourceManager::CreateAllocatedNodeData(void)+49↑p ...
.text:00007FFFF4AF6440                 mov     r11, rcx
.text:00007FFFF4AF6443                 movzx   edx, dl         ; Move with Zero-Extend
.text:00007FFFF4AF6446                 cmp     r8, 10h         ; switch 16 cases
.text:00007FFFF4AF644A                 jb      SetBytes15      ; Jump if Below (CF=1)
.text:00007FFFF4AF6450
.text:00007FFFF4AF6450 def_7FFFF4AF65D2:                       ; jumptable 00007FFFF4AF65D2 default case
.text:00007FFFF4AF6450                 bt      cs:dword_7FFFF4B237D8, 1
.text:00007FFFF4AF6458                 jnb     short mset05    ; Jump if Not Below (CF=0)
.text:00007FFFF4AF645A                 push    rdi
.text:00007FFFF4AF645B                 mov     rdi, rcx
.text:00007FFFF4AF645E                 mov     eax, edx
.text:00007FFFF4AF6460                 mov     rcx, r8
.text:00007FFFF4AF6463                 rep stosb               ; Store String
.text:00007FFFF4AF6465                 pop     rdi
.text:00007FFFF4AF6466                 jmp     short mset60    ; Jump
.text:00007FFFF4AF6468 ; ---------------------------------------------------------------------------
.text:00007FFFF4AF6468
.text:00007FFFF4AF6468 mset05:                                 ; CODE XREF: CompressPacket+18↑j
.text:00007FFFF4AF6468                 mov     r9, 101010101010101h
.text:00007FFFF4AF6472                 imul    rdx, r9         ; Signed Multiply
.text:00007FFFF4AF6476                 bt      cs:dword_7FFFF4B237D8, 2 ; Bit Test
.text:00007FFFF4AF647E                 jb      msetxmm10       ; Jump if Below (CF=1)
.text:00007FFFF4AF6484                 cmp     r8, 40h ; '@'   ; Compare Two Operands
.text:00007FFFF4AF6488                 jb      short mset20    ; Jump if Below (CF=1)
.text:00007FFFF4AF648A                 neg     rcx             ; Two's Complement Negation
.text:00007FFFF4AF648D                 and     ecx, 7          ; Logical AND
.text:00007FFFF4AF6490                 jz      short mset10    ; Jump if Zero (ZF=1)
.text:00007FFFF4AF6492                 sub     r8, rcx         ; Integer Subtraction
.text:00007FFFF4AF6495                 mov     [r11], rdx
.text:00007FFFF4AF6498
.text:00007FFFF4AF6498 mset10:                                 ; CODE XREF: CompressPacket+50↑j
.text:00007FFFF4AF6498                 add     rcx, r11        ; Add
.text:00007FFFF4AF649B                 mov     r9, r8
.text:00007FFFF4AF649E                 and     r8, 3Fh         ; Logical AND
.text:00007FFFF4AF64A2                 shr     r9, 6           ; Shift Logical Right
.text:00007FFFF4AF64A6                 jnz     short mset80    ; Jump if Not Zero (ZF=0)
.text:00007FFFF4AF64A8
.text:00007FFFF4AF64A8 mset20:                                 ; CODE XREF: CompressPacket+48↑j
.text:00007FFFF4AF64A8                                         ; CompressPacket+CF↓j
.text:00007FFFF4AF64A8                 mov     r9, r8
.text:00007FFFF4AF64AB                 and     r8, 7           ; Logical AND
.text:00007FFFF4AF64AF                 shr     r9, 3           ; Shift Logical Right
.text:00007FFFF4AF64B3                 jz      short mset40    ; Jump if Zero (ZF=1)
.text:00007FFFF4AF64B5                 db      66h, 66h
.text:00007FFFF4AF64B5                 xchg    ax, ax          ; Exchange Register/Memory with Register
.text:00007FFFF4AF64B9                 nop                     ; No Operation
.text:00007FFFF4AF64BA
.text:00007FFFF4AF64BA mset30:                                 ; CODE XREF: CompressPacket+84↓j
.text:00007FFFF4AF64BA                 mov     [rcx], rdx
.text:00007FFFF4AF64BD                 add     rcx, 8          ; Add
.text:00007FFFF4AF64C1                 dec     r9              ; Decrement by 1
.text:00007FFFF4AF64C4                 jnz     short mset30    ; Jump if Not Zero (ZF=0)
.text:00007FFFF4AF64C6
.text:00007FFFF4AF64C6 mset40:                                 ; CODE XREF: CompressPacket+73↑j
.text:00007FFFF4AF64C6                 test    r8, r8          ; Logical Compare
.text:00007FFFF4AF64C9                 jz      short mset60    ; Jump if Zero (ZF=1)
.text:00007FFFF4AF64CB
.text:00007FFFF4AF64CB mset50:                                 ; CODE XREF: CompressPacket+93↓j
.text:00007FFFF4AF64CB                 mov     [rcx], dl
.text:00007FFFF4AF64CD                 inc     rcx             ; Increment by 1
.text:00007FFFF4AF64D0                 dec     r8              ; Decrement by 1
.text:00007FFFF4AF64D3                 jnz     short mset50    ; Jump if Not Zero (ZF=0)
.text:00007FFFF4AF64D5
.text:00007FFFF4AF64D5 mset60:                                 ; CODE XREF: CompressPacket+26↑j
.text:00007FFFF4AF64D5                                         ; CompressPacket+89↑j
.text:00007FFFF4AF64D5                 mov     rax, r11
.text:00007FFFF4AF64D8                 retn                    ; Return Near from Procedure
.text:00007FFFF4AF64D8 ; ---------------------------------------------------------------------------
.text:00007FFFF4AF64D9                 db 0Fh, 1Fh, 80h, 4 dup(0)
.text:00007FFFF4AF64E0                 db 3 dup(66h), 90h
.text:00007FFFF4AF64E4                 db 2 dup(66h), 90h
.text:00007FFFF4AF64E7 ; ---------------------------------------------------------------------------
.text:00007FFFF4AF64E7
.text:00007FFFF4AF64E7 mset80:                                 ; CODE XREF: CompressPacket+66↑j
.text:00007FFFF4AF64E7                                         ; CompressPacket+CD↓j
.text:00007FFFF4AF64E7                 mov     [rcx], rdx
.text:00007FFFF4AF64EA                 mov     [rcx+8], rdx
.text:00007FFFF4AF64EE                 mov     [rcx+10h], rdx
.text:00007FFFF4AF64F2                 add     rcx, 40h ; '@'  ; Add
.text:00007FFFF4AF64F6                 mov     [rcx-28h], rdx
.text:00007FFFF4AF64FA                 mov     [rcx-20h], rdx
.text:00007FFFF4AF64FE                 dec     r9              ; Decrement by 1
.text:00007FFFF4AF6501                 mov     [rcx-18h], rdx
.text:00007FFFF4AF6505                 mov     [rcx-10h], rdx
.text:00007FFFF4AF6509                 mov     [rcx-8], rdx
.text:00007FFFF4AF650D                 jnz     short mset80    ; Jump if Not Zero (ZF=0)
.text:00007FFFF4AF650F                 jmp     short mset20    ; Jump
.text:00007FFFF4AF650F ; ---------------------------------------------------------------------------
.text:00007FFFF4AF6511                 align 20h
.text:00007FFFF4AF6520
.text:00007FFFF4AF6520 msetxmm10:                              ; CODE XREF: CompressPacket+3E↑j
.text:00007FFFF4AF6520                 movq    xmm0, rdx       ; Move 64 bits
.text:00007FFFF4AF6525                 punpcklbw xmm0, xmm0    ; Unpack Low Packed Data (Byte->Word)
.text:00007FFFF4AF6529                 test    cl, 0Fh         ; Logical Compare
.text:00007FFFF4AF652C                 jz      short msetxmm20 ; Jump if Zero (ZF=1)
.text:00007FFFF4AF652E                 movups  xmmword ptr [rcx], xmm0 ; Move Unaligned Four Packed Single-FP
.text:00007FFFF4AF6531                 mov     rax, rcx
.text:00007FFFF4AF6534                 and     rax, 0Fh        ; Logical AND
.text:00007FFFF4AF6538                 add     rcx, 10h        ; Add
.text:00007FFFF4AF653C                 sub     rcx, rax        ; Integer Subtraction
.text:00007FFFF4AF653F                 lea     r8, [rax+r8-10h] ; Load Effective Address
.text:00007FFFF4AF6544
.text:00007FFFF4AF6544 msetxmm20:                              ; CODE XREF: CompressPacket+EC↑j
.text:00007FFFF4AF6544                 mov     r9, r8
.text:00007FFFF4AF6547                 shr     r9, 7           ; Shift Logical Right
.text:00007FFFF4AF654B                 jz      short msetxmm40 ; Jump if Zero (ZF=1)
.text:00007FFFF4AF654D                 jmp     short msetxmm30 ; Jump
.text:00007FFFF4AF654D ; ---------------------------------------------------------------------------
.text:00007FFFF4AF654F                 align 10h
.text:00007FFFF4AF6550
.text:00007FFFF4AF6550 msetxmm30:                              ; CODE XREF: CompressPacket+10D↑j
.text:00007FFFF4AF6550                                         ; CompressPacket+139↓j
.text:00007FFFF4AF6550                 movaps  xmmword ptr [rcx], xmm0 ; Move Aligned Four Packed Single-FP
.text:00007FFFF4AF6553                 movaps  xmmword ptr [rcx+10h], xmm0 ; Move Aligned Four Packed Single-FP
.text:00007FFFF4AF6557                 add     rcx, 80h ; '€'  ; Add
.text:00007FFFF4AF655E                 movaps  xmmword ptr [rcx-60h], xmm0 ; Move Aligned Four Packed Single-FP
.text:00007FFFF4AF6562                 movaps  xmmword ptr [rcx-50h], xmm0 ; Move Aligned Four Packed Single-FP
.text:00007FFFF4AF6566                 dec     r9              ; Decrement by 1
.text:00007FFFF4AF6569                 movaps  xmmword ptr [rcx-40h], xmm0 ; Move Aligned Four Packed Single-FP
.text:00007FFFF4AF656D                 movaps  xmmword ptr [rcx-30h], xmm0 ; Move Aligned Four Packed Single-FP
.text:00007FFFF4AF6571                 movaps  xmmword ptr [rcx-20h], xmm0 ; Move Aligned Four Packed Single-FP
.text:00007FFFF4AF6575                 movaps  xmmword ptr [rcx-10h], xmm0 ; Move Aligned Four Packed Single-FP
.text:00007FFFF4AF6579                 jnz     short msetxmm30 ; Jump if Not Zero (ZF=0)
.text:00007FFFF4AF657B                 and     r8, 7Fh         ; Logical AND
.text:00007FFFF4AF657F
.text:00007FFFF4AF657F msetxmm40:                              ; CODE XREF: CompressPacket+10B↑j
.text:00007FFFF4AF657F                 mov     r9, r8
.text:00007FFFF4AF6582                 shr     r9, 4           ; Shift Logical Right
.text:00007FFFF4AF6586                 jz      short msetxmm60 ; Jump if Zero (ZF=1)
.text:00007FFFF4AF6588                 nop     dword ptr [rax+rax+00000000h] ; No Operation
.text:00007FFFF4AF6590
.text:00007FFFF4AF6590 msetxmm50:                              ; CODE XREF: CompressPacket+15A↓j
.text:00007FFFF4AF6590                 movaps  xmmword ptr [rcx], xmm0 ; Move Aligned Four Packed Single-FP
.text:00007FFFF4AF6593                 add     rcx, 10h        ; Add
.text:00007FFFF4AF6597                 dec     r9              ; Decrement by 1
.text:00007FFFF4AF659A                 jnz     short msetxmm50 ; Jump if Not Zero (ZF=0)
.text:00007FFFF4AF659C
.text:00007FFFF4AF659C msetxmm60:                              ; CODE XREF: CompressPacket+146↑j
.text:00007FFFF4AF659C                 and     r8, 0Fh         ; Logical AND
.text:00007FFFF4AF65A0                 jz      short msetxmm70 ; Jump if Zero (ZF=1)
.text:00007FFFF4AF65A2                 movups  xmmword ptr [r8+rcx-10h], xmm0 ; Move Unaligned Four Packed Single-FP
.text:00007FFFF4AF65A8
.text:00007FFFF4AF65A8 msetxmm70:                              ; CODE XREF: CompressPacket+160↑j
.text:00007FFFF4AF65A8                 mov     rax, r11
.text:00007FFFF4AF65AB                 retn                    ; Return Near from Procedure
.text:00007FFFF4AF65AC ; ---------------------------------------------------------------------------
.text:00007FFFF4AF65AC
.text:00007FFFF4AF65AC SetBytes15:                             ; CODE XREF: CompressPacket+A↑j
.text:00007FFFF4AF65AC                 mov     r9, 101010101010101h
.text:00007FFFF4AF65B6                 imul    rdx, r9         ; Signed Multiply
.text:00007FFFF4AF65BA                 lea     r9, cs:7FFFF4AB0000h ; Load Effective Address
.text:00007FFFF4AF65C1                 mov     eax, ds:(jpt_7FFFF4AF65D2 - 7FFFF4AB0000h)[r9+r8*4]
.text:00007FFFF4AF65C9                 add     r9, rax         ; Add
.text:00007FFFF4AF65CC                 add     rcx, r8         ; Add
.text:00007FFFF4AF65CF                 mov     rax, r11
.text:00007FFFF4AF65D2                 jmp     r9              ; switch jump
.text:00007FFFF4AF65D2 ; ---------------------------------------------------------------------------
.text:00007FFFF4AF65D5 jpt_7FFFF4AF65D2 dd offset msetTab00 - 7FFFF4AB0000h
.text:00007FFFF4AF65D5                                         ; DATA XREF: CompressPacket+181↑r
.text:00007FFFF4AF65D5                 dd offset msetTab01 - 7FFFF4AB0000h ; jump table for switch statement
.text:00007FFFF4AF65D5                 dd offset msetTab02 - 7FFFF4AB0000h
.text:00007FFFF4AF65D5                 dd offset msetTab03 - 7FFFF4AB0000h
.text:00007FFFF4AF65D5                 dd offset msetTab04 - 7FFFF4AB0000h
.text:00007FFFF4AF65D5                 dd offset msetTab05 - 7FFFF4AB0000h
.text:00007FFFF4AF65D5                 dd offset msetTab06 - 7FFFF4AB0000h
.text:00007FFFF4AF65D5                 dd offset msetTab07 - 7FFFF4AB0000h
.text:00007FFFF4AF65D5                 dd offset msetTab08 - 7FFFF4AB0000h
.text:00007FFFF4AF65D5                 dd offset msetTab09 - 7FFFF4AB0000h
.text:00007FFFF4AF65D5                 dd offset msetTab10 - 7FFFF4AB0000h
.text:00007FFFF4AF65D5                 dd offset msetTab11 - 7FFFF4AB0000h
.text:00007FFFF4AF65D5                 dd offset msetTab12 - 7FFFF4AB0000h
.text:00007FFFF4AF65D5                 dd offset msetTab13 - 7FFFF4AB0000h
.text:00007FFFF4AF65D5                 dd offset msetTab14 - 7FFFF4AB0000h
.text:00007FFFF4AF65D5                 dd offset msetTab15 - 7FFFF4AB0000h
.text:00007FFFF4AF6615                 align 20h
.text:00007FFFF4AF6620
.text:00007FFFF4AF6620 msetTab15:                              ; CODE XREF: CompressPacket+192↑j
.text:00007FFFF4AF6620                                         ; DATA XREF: CompressPacket:jpt_7FFFF4AF65D2↑o
.text:00007FFFF4AF6620                 mov     [rcx-0Fh], rdx  ; jumptable 00007FFFF4AF65D2 case 15
.text:00007FFFF4AF6624
.text:00007FFFF4AF6624 msetTab07:                              ; CODE XREF: CompressPacket+192↑j
.text:00007FFFF4AF6624                                         ; DATA XREF: CompressPacket:jpt_7FFFF4AF65D2↑o
.text:00007FFFF4AF6624                 mov     [rcx-7], edx    ; jumptable 00007FFFF4AF65D2 case 7
.text:00007FFFF4AF6627
.text:00007FFFF4AF6627 msetTab03:                              ; CODE XREF: CompressPacket+192↑j
.text:00007FFFF4AF6627                                         ; CompressPacket+1F3↓j
.text:00007FFFF4AF6627                                         ; DATA XREF: ...
.text:00007FFFF4AF6627                 mov     [rcx-3], dx     ; jumptable 00007FFFF4AF65D2 case 3
.text:00007FFFF4AF662B
.text:00007FFFF4AF662B msetTab01:                              ; CODE XREF: CompressPacket+192↑j
.text:00007FFFF4AF662B                                         ; DATA XREF: CompressPacket:jpt_7FFFF4AF65D2↑o
.text:00007FFFF4AF662B                 mov     [rcx-1], dl     ; jumptable 00007FFFF4AF65D2 case 1
.text:00007FFFF4AF662E
.text:00007FFFF4AF662E msetTab00:                              ; CODE XREF: CompressPacket+192↑j
.text:00007FFFF4AF662E                                         ; DATA XREF: CompressPacket:jpt_7FFFF4AF65D2↑o
.text:00007FFFF4AF662E                 retn                    ; jumptable 00007FFFF4AF65D2 case 0
.text:00007FFFF4AF662F ; ---------------------------------------------------------------------------
.text:00007FFFF4AF662F
.text:00007FFFF4AF662F msetTab11:                              ; CODE XREF: CompressPacket+192↑j
.text:00007FFFF4AF662F                                         ; DATA XREF: CompressPacket:jpt_7FFFF4AF65D2↑o
.text:00007FFFF4AF662F                 mov     [rcx-0Bh], rdx  ; jumptable 00007FFFF4AF65D2 case 11
.text:00007FFFF4AF6633                 jmp     short msetTab03 ; jumptable 00007FFFF4AF65D2 case 3
.text:00007FFFF4AF6635 ; ---------------------------------------------------------------------------
.text:00007FFFF4AF6635
.text:00007FFFF4AF6635 msetTab14:                              ; CODE XREF: CompressPacket+192↑j
.text:00007FFFF4AF6635                                         ; DATA XREF: CompressPacket:jpt_7FFFF4AF65D2↑o
.text:00007FFFF4AF6635                 mov     [rcx-0Eh], rdx  ; jumptable 00007FFFF4AF65D2 case 14
.text:00007FFFF4AF6639
.text:00007FFFF4AF6639 msetTab06:                              ; CODE XREF: CompressPacket+192↑j
.text:00007FFFF4AF6639                                         ; DATA XREF: CompressPacket:jpt_7FFFF4AF65D2↑o
.text:00007FFFF4AF6639                 mov     [rcx-6], edx    ; jumptable 00007FFFF4AF65D2 case 6
.text:00007FFFF4AF663C
.text:00007FFFF4AF663C msetTab02:                              ; CODE XREF: CompressPacket+192↑j
.text:00007FFFF4AF663C                                         ; DATA XREF: CompressPacket:jpt_7FFFF4AF65D2↑o
.text:00007FFFF4AF663C                 mov     [rcx-2], dx     ; jumptable 00007FFFF4AF65D2 case 2
.text:00007FFFF4AF6640                 retn                    ; Return Near from Procedure
.text:00007FFFF4AF6641 ; ---------------------------------------------------------------------------
.text:00007FFFF4AF6641
.text:00007FFFF4AF6641 msetTab13:                              ; CODE XREF: CompressPacket+192↑j
.text:00007FFFF4AF6641                                         ; DATA XREF: CompressPacket:jpt_7FFFF4AF65D2↑o
.text:00007FFFF4AF6641                 mov     [rcx-0Dh], rdx  ; jumptable 00007FFFF4AF65D2 case 13
.text:00007FFFF4AF6645
.text:00007FFFF4AF6645 msetTab05:                              ; CODE XREF: CompressPacket+192↑j
.text:00007FFFF4AF6645                                         ; DATA XREF: CompressPacket:jpt_7FFFF4AF65D2↑o
.text:00007FFFF4AF6645                 mov     [rcx-5], edx    ; jumptable 00007FFFF4AF65D2 case 5
.text:00007FFFF4AF6648                 mov     [rcx-1], dl
.text:00007FFFF4AF664B                 retn                    ; Return Near from Procedure
.text:00007FFFF4AF664C ; ---------------------------------------------------------------------------
.text:00007FFFF4AF664C
.text:00007FFFF4AF664C msetTab12:                              ; CODE XREF: CompressPacket+192↑j
.text:00007FFFF4AF664C                                         ; DATA XREF: CompressPacket:jpt_7FFFF4AF65D2↑o
.text:00007FFFF4AF664C                 mov     [rcx-0Ch], rdx  ; jumptable 00007FFFF4AF65D2 case 12
.text:00007FFFF4AF6650
.text:00007FFFF4AF6650 msetTab04:                              ; CODE XREF: CompressPacket+192↑j
.text:00007FFFF4AF6650                                         ; DATA XREF: CompressPacket:jpt_7FFFF4AF65D2↑o
.text:00007FFFF4AF6650                 mov     [rcx-4], edx    ; jumptable 00007FFFF4AF65D2 case 4
.text:00007FFFF4AF6653                 retn                    ; Return Near from Procedure
.text:00007FFFF4AF6654 ; ---------------------------------------------------------------------------
.text:00007FFFF4AF6654
.text:00007FFFF4AF6654 msetTab10:                              ; CODE XREF: CompressPacket+192↑j
.text:00007FFFF4AF6654                                         ; DATA XREF: CompressPacket:jpt_7FFFF4AF65D2↑o
.text:00007FFFF4AF6654                 mov     [rcx-0Ah], rdx  ; jumptable 00007FFFF4AF65D2 case 10
.text:00007FFFF4AF6658                 mov     [rcx-2], dx
.text:00007FFFF4AF665C                 retn                    ; Return Near from Procedure
.text:00007FFFF4AF665D ; ---------------------------------------------------------------------------
.text:00007FFFF4AF665D
.text:00007FFFF4AF665D msetTab09:                              ; CODE XREF: CompressPacket+192↑j
.text:00007FFFF4AF665D                                         ; DATA XREF: CompressPacket:jpt_7FFFF4AF65D2↑o
.text:00007FFFF4AF665D                 mov     [rcx-9], rdx    ; jumptable 00007FFFF4AF65D2 case 9
.text:00007FFFF4AF6661                 mov     [rcx-1], dl
.text:00007FFFF4AF6664                 retn                    ; Return Near from Procedure
.text:00007FFFF4AF6665 ; ---------------------------------------------------------------------------
.text:00007FFFF4AF6665
.text:00007FFFF4AF6665 msetTab08:                              ; CODE XREF: CompressPacket+192↑j
.text:00007FFFF4AF6665                                         ; DATA XREF: CompressPacket:jpt_7FFFF4AF65D2↑o
.text:00007FFFF4AF6665                 mov     [rcx-8], rdx    ; jumptable 00007FFFF4AF65D2 case 8
.text:00007FFFF4AF6669                 retn                    ; Return Near from Procedure
.text:00007FFFF4AF6669 CompressPacket  endp

A: A common use case is unpacking with zeros to widen 8-bit numbers to 16-bit (with zero-extension), like SSE4.1 pmovzxbw.  Or especially to unpack both low and high halves of a 16-byte register to get two vectors of 8x 16-bit elements each.  That's kind of the only use case where the "unpack" name makes sense, and packuswb is its inverse, combining 2 registers down to 1. (Or packsswb for signed saturation.)
The "unpack" name is otherwise very strange; it's just a shuffle that interleaves elements from two registers.  ARM NEON has a similar shuffle whose mnemonic is "zip".

In your case, it's part of broadcasting a byte into an XMM register, as part of memset.  i.e. it's part of what _mm_set_epi8(x) does.
Multiply with 0x0101010101010101 repeats a byte 8 times in a 64-bit integer.  This lets you use scalar-integer stores for an odd 8 bytes (not a multiple of 16), like the mov  [r11], rdx store.
Given this 8-byte broadcast as an input (via movaq), only one SIMD shuffle is needed.  Duplicating the low 8 with punpcklqdq would have been my choice because 8-byte granularity shuffles are more efficient on really old CPUs like Core 2.  But interleaving the byte with each other is equivalent because they're all the same anyway, resulting in an XMM register that holds 16 copies of the same byte.
In fact, SSE2 can broadcast a dword with one instruction: pshufd xmm0, xmm0, 0, so if not for wanting an 8-byte scalar, it could have just used imul edx, r9d, 0x01010101.
Implementing memset with 8-byte mov and 16-byte movups stores of course needs this as an input, if it's using that strategy instead of the rep stosb strategy.
With SSSE3 you can broadcast a single byte directly with one pshufb with  an all-zero vector (without needing a multiply first) selecting the 0th element of the source for every element of the destination.  Or with AVX2 vpbroadcastb.  Skipping the integer multiply step would be fine; you can use movq [mem], xmm0 8-byte stores from xmm0 instead of from RDX.
With a byte at the bottom of an xmm register and garbage in the other elements (i.e. if you didn't use imul), 2x punpcklbw + pshufd can broadcast with just SSE2.  Or of course punpcklbw xmm0,xmm0 / punpcklwd xmm0,xmm0 as the first 2 shuffles.  Or punpcklbw xmm0,xmm0 / pshuflw xmm0,xmm0, 0 / punpcklqdq xmm0,xmm0.

redpajama_set_name: RedPajamaStackExchange


Home Business Tips – Do Your Weaknesses Need Strengthening? Or is it a Waste of Time?
Every single one of us is responsible to schedule in order to strengthen our weakness. You need to strengthen your weakness or you will not succeed. Fortunately building on your strength is easier and even more beneficial. Now you're saying what are you talking about Carla, you just contradicted yourself?No matter how much time you spend developing your weakness, it will never become your strength. An example; I am only 5' 1", as much as I wanted to be a basketball player when I was a teenager it was not going to be. I practiced lots and did get to play on the team, only because I am from a very small town and not too many kids wanted to play basketball. When I moved up to high school, where lots of kids from other towns attended too, I didn't even make the team.Success is the maximum utilization of the ability that you have. Zig ZiglarYou can develop your weakness to a point where they don't embarrass you, however your real home based business success will come from building on your … [Read more...] about Home Business Tips – Do Your Weaknesses Need Strengthening? Or is it a Waste of Time?
Do you really want to be rich? Or are you just tinkering with the idea. Did you know that everyone who makes it big, has a mentor -- someone to tell them how to get rich? Even the "greats" have coaches. Learn the three things you need to do to make working with a mentor successful.I have had people tell me they do not want to get rich. They say they just want to make a good income. Or they want only to generate enough to retire comfortably. Sometimes they tell me they want to double their income - but they do not need to know how to get rich.Others want to be "financially free" so they do not have to worry about paying bills and having enough money to carry out their dreams.Where do you fit in this picture?You Must Have A MentorNo matter how high you want to go on the wealth scale, one thing for sure is that you will need a mentor. You will want to be in some type of coaching program. You can not do it on your own. No one has, and no one does! Every successful individual has … [Read more...] about Want to Be Rich? You Need a Mentor!
Money Making Ideas for a Home Based BusinessGaining income is easy! Just imagine all of the ways that people you know of make money. These don't need to be people you know personally. The important thing is to begin thinking about what it would be like to run these businesses. If you think about enough businesses you will begin to zero in on a home based business that you can envision clearly. The clearer you can envision running the business the better. Go ahead, feel the thrill of being your own boss!By choosing a business that someone else is already successful at you are at least certain that it is a profitable idea. Then it is just a matter of whether you are qualified to start and run a similar business. To find out if you are qualified, research this business in detail by reading about it and physically going to this business to inspect it for yourself. Don't be shy or lazy. Talk to anyone there that will talk to you. Find out all you can. Maybe you will discover ways to make a … [Read more...] about Gaining Income is Easy!


Wesley's Blog Post (which is the inspiration for this post) is here.
My original post on McLuhan, the medium, and the message, is here.
An article about Epistemological Coherentism is here.
To learn more about the Theology After Google class which inspired most of this, click here.


text:
Q: Of STI, MTI, or CTI, which is the currently suggested Rails 4 solution? I have the a basic events table, and want to have sub-tables for each event type (hiking, party, riverrun, etc).
I see a lot of old (2011/2012) posts regarding CTI, MTI and STI. Some solutions worked for Heroku, while others did not.
What is the "current" Rails way of doing this type of thing? Has this been added to Rails 4.x? Is there a magical Gem that handles this (with Postgres on Heroku)?
Some information if it helps:
In the future, there will be between 20-50 events, and each sub-table might be as many as 80 columns. The site is hosted on Heroku. Running Rails 4.0.2

A: STI - Single Table Inheritance is what you are looking for.
http://api.rubyonrails.org/classes/ActiveRecord/Base.html#class-ActiveRecord::Base-label-Single+table+inheritance
http://api.rubyonrails.org/classes/ActiveRecord/Inheritance.html
You create your model as always but you add an attribute even_type as a string to your database. (default ist "type")
You let the EventModel know, that this will be the inheritance column.
class Event < ActiveRecord::Base
    self.inheritance_column = :event_type
    # dont forget your scopes to easy access them by type
    # Event.party or Event.ultrafestival
    scope :party, -> { where(event_type: 'Party') }
    scope :ultrafestival, -> { where(event_type: 'UltraFestival') }
    scope :tomorrowland, -> { where(event_type: 'TomorrowLand') }

    def host
      raise "needs to be implemented in your sub-class!"
    end

end

Than you create some subclasses. Make sure those are inheriting from Event
class Party < Event
end

class UltraFestival < Event
end

class Tomorrowland < Event
end

Basically, all Objects are Events! So if you go Event.all you'll get them all! Technically an Object can be something else. All those "Events" will be stored in the same table, they will be differed by the event_type which will be in this example "party", "ultra_festival" or "tomorrowland".
Now you can add some special stuff to each of those classes for example
 class Party < Event
     def host
       "private homeparty PTY"
     end

     def publish_photostream
     end

     def call_a_cleaning_woman
     end
 end

class UltraFestival < Event
   attr_accessor :location

   def host
     "UMF Festival Corp."
   end

   def is_in_europe?
   end

   def is_in_asia?
   end
end

class Tomorrowland < Event

    def host
      "ID&T"
    end

    def download_after_movie!
    end

end

This is the standard Rails way - since years. Of course its working on every hoster and with postgres.
// edit:
if your sub-events need some special tables in the database, then you need to go MTI, multi-table-inheritance.


All members of our team have additional roles during the school day which means that they already have good relationships with the children. This means that for children, moving from the school day into the Junior Hub is a happy experience and something they can look forward to each day!
The registration and booking forms are available to download below.


Holidays at the Schätzlehof Farm means a holiday with friends!
Enjoy a holiday surrounded by splendid nature at the Schätzlehof Farm, savor the original Black Forest country life and just relax and have fun with the whole family. Boredom is a foreign word and a foreign feeling at the Schätzlehof Farm, because, where there are animals there is always something going on. Children are welcome at any time in the barn with the cows and horses, or to play everywhere in the yard, or to help working in the barn. Of course adults are also invited to join in the fun.
Our Schätzlehof Farm is located within an idyllic side valley of the community of Winden in the valley of the river Elz, called Elztal. Three of our cozy vacation homes are in an adjoining building, and one within the main farm house. One of the vacation homes is rated with three*** stars, all the others with four**** stars.
Get excited for your holiday at the Schätzlehof Farm, because this will be a holiday with friends.
You have the choice between Heuboden (Hayloft), Frühlingsduft (Spring Air), Tannengrün (Fir-tree green) and Morgensonne (Morning sun). Each of these apartments has its own special flair.
Whether walking, hiking, bike-riding or taking a trip by car…there are so many things to discover. We have some awesome tips and suggestions ready for you to try.


The Toxicology of Aflatoxins Edition by David L. Eaton and Publisher Academic Press. Save up to 80% by choosing the eTextbook option for ISBN: 9781483288451, 1483288455. The print version of this textbook is ISBN: 9780122282553, 0122282558.


text:
Greta Thunberg is coming to Montreal
By The Canadian Press | News, Politics | September 9th 2019
Swedish environmental activist Greta Thunberg arrives outside the United Nations to participate in a demonstration, on Friday, Sept. 6, 2019 in New York. Photo by The Associated Press/Richard Drew
Teen environmental activist Greta Thunberg will be in Montreal at the end of the month to take part in a climate march.
The 16-year-old Swedish climate activist announced her presence at the Sept. 27 event via social media on Sunday.
Currently in New York to spread her message on the importance of fighting against the climate crisis, Thunberg had previously expressed her interest in coming to Quebec for the global day of mobilization for the environment.
Thunberg sailed across the Atlantic from England to Manhattan — a two-week trip — to attend the United Nations Climate Action Summit later this month.
She'd refused to fly to New York because of the carbon emissions involved in jet travel. She will also take part in a march in that city on Sept. 20.
A local Montreal collective that invited Thunberg to come to Montreal will hold a news conference on Tuesday to highlight her appearance.
According to the group, at least 867 cities around the world have protests planned for Sept. 27.
Greta Thunberg is winning hearts and minds — and some old men hate it
By Matthew Klippenstein | Opinion, Politics | September 3rd 2019
Greta Thunberg's words speak to larger truths about humanity
By Warren Bell | Opinion | May 26th 2019
Greta Thunberg can't let it go
By Jonathan Watts | News, Energy, Politics | March 11th 2019


Close your eyes and imagine with me for a minute. Are you ready? Eyes closed? Okay, good.
You have all the ambition in the world and you look at your peacefully sleeping kids and make a resolve to do everything you can for their health and happiness. (Yes, in your imagination, your kids are still asleep and they are the perfect, angelic little children that you always knew you would have. Wink wink)!
With this new ambition, what would you do to encourage your child down the road of healthy living?
When I think about what I would do to encourage a healthy lifestyle for my three kids, the age-old "cook them healthy meals" definitely comes to mind…and when it does, I feel an almost-audible groan creep up from the pit of my stomach.
Healthy meals takes TIME (of which I have little of). MONEY (which clearly does not grow on trees). And GOOD IDEAS.
So naturally, when I came across this menu idea, I thought it my parental duty to share it with other parents who may suffer from the same motivational ailments as I do.
I like this Veggie Burger recipe for a number of reasons.
First off, these burgers are kid-friendly. My kids LOVE hamburgers… and almost anything grilled. I'm not sure if it's because of the actual food, or that they get to help their dad grill it!
Secondly, they are healthy. It is right in line with the Mediterranean style of eating and has a lot of ingredients that you may already have on hand.
And lastly, they are easy. These burgers are very simple to prepare. I even invite my kids into the kitchen to help. It always seems that if I can get my kids to help cook dinner, they are so much more invested in eating it!
These veggie burgers aren't just easy and healthy, they're delicious! My carnivorous husband was pretty skeptical at first, but after seeing the beautiful grill marks on the burgers, he thought he was safe to give it a try. With the ground nuts in the burger, it's a very hearty and filling meal, even for your meat-eating counterparts!
First, you'll want to cook your rice. There isn't any special way to do this– just follow the instructions on the package. While your rice is cooking, heat a skillet over medium heat and add your raw walnuts (or your substitute) and "toast" for 5-7 minutes. You'll want to stir the nuts quite a bit during this time or they'll burn quickly! When the nuts start to turn golden brown and smell delicious, you'll know you're done toasting. Take the nuts out of the skillet and let them cool.
Now with the same skillet, add 1/2 tablespoon of oil and your onion. Season with a bit of salt and pepper and saute' for 3-4 minutes. You'll know it's done when your start to smell the onion and notice its soft and translucent appearance. Take it off the heat and set it aside.
Once the walnuts (or your substitute) are cooled, I simply put them in my food processor (or blender) along with the chili powder, cumin, paprika, salt, pepper and sugar. Grind away until it's pretty fine. I suspect you could also use a blender and it should work just fine. After you're done, set the nut mixture aside.
Take your black beans and wash and rinse them and pat dry with some paper towels. You'll want to remove all the moisture that you can. In a large mixing bowl add the dried black beans and mash well with a fork. As you can see, I let my kids go crazy with the mashing! They loved it and it saved me some work. I usually only leave a few whole beans in the burger patties.
Next, I added the cooked rice, nut mixture, cooked onion, panko bread crumbs, and BBQ sauce and mix thoroughly for 1-2 minutes. I usually let my kids help with this process too! Mix until a moldable dough forms. If it's dry, add more BBQ sauce. If it's too wet, add more bread crumbs.
Form your patties (if my burger buns are pretty large, I make around 5 patties– 1/2 cm in size; if they're smaller, I can usually make around 10–1/4 cm in size). Heat the grill and brush the grill surface with oil to prevent the burgers from sticking (you can also cook them in a skillet on medium heat). Cook for 3-4 minutes or until well browned on the underside, then flip gently. These burgers aren't as firm as meat burgers, but they'll definitely hold their shape. Cook 3-4 minutes on the other side.
Okay! You're done! When you see those beautiful grill marks on the burgers, you're ready to take them off the grill and enjoy! I usually top the burgers with all the usual fixings that I put on meat burgers.
Now relax and enjoy– and pat yourself on the back, you just made a healthy, kid-friendly meal!


text:
Midterms 2022
McConnell says he's ready to begin Trump impeachment trial with no deal on witnesses
By Seung Min Kim
Mike DeBonis
Rachael Bade
January 7, 2020 at 7:53 p.m. EST
Senate Majority Leader Mitch McConnell (R-Ky.), joined by Majority Whip John Thune (R-S.D.), left, and Sen. Joni Ernst (R-Iowa), announces at a news conference Tuesday in Washington that he has secured enough Republican votes to start President Trump's impeachment trial and postpone a decision on witnesses and documents Democrats want. (J. Scott Applewhite/AP)
Senate Majority Leader Mitch McConnell said Tuesday that he is prepared to begin President Trump's impeachment trial with no agreement with Democrats on witnesses, even as House Speaker Nancy Pelosi signaled she is not ready to transmit the impeachment articles until she knows more about how Republicans would conduct the Senate proceedings.
That the top two congressional leaders were hardening their respective positions indicated the standoff at the Capitol over launching Trump's trial — only the third in history of a U.S. president — would drag on, even as members of Pelosi's own party in the Senate said Tuesday that it was time to proceed with the initial phase of the trial.
Pelosi (D-Calif.) told House Democrats in a closed-door meeting Tuesday evening that she would not send the two charges — abuse of power and obstruction of Congress — to the Senate because she wanted to see the specific rules of procedure for a trial, according to three people present for the remarks who spoke on the condition of anonymity to talk frankly.
In a letter to her Democratic colleagues later Tuesday, Pelosi hinted that she would not submit the articles nor tap House impeachment managers — who will effectively serve as the prosecution in the Senate — until McConnell publicly releases the legislation that would detail the parameters and procedures for the trial.
"This process is not only unfair but designed to deprive Senators and the American people of crucial documents and testimony," Pelosi wrote in the letter to colleagues.
Earlier at his own closed-door meeting and at a news conference, McConnell (R-Ky.) announced that he has the votes to begin the trial in the format that he and most of his members have long envisioned: opening arguments for both the House impeachment managers and Trump's defense team, as well as ample time for senators to submit questions in writing.
Under the majority leader's plan, a decision on whether to call witnesses would be made once that first phase of the trial is over — a move announced Tuesday to put the pressure back on Pelosi amid simmering frustration from GOP senators over the speaker's delay in sending the articles.
That echoes the format of former president Clinton's trial 21 years ago, and McConnell has been able to persuade his members that Trump should be treated in the same fashion as Clinton.
Asked if he could guarantee witnesses will be called, McConnell said that matter would be discussed after the Senate votes to proceed — not before.
"The way it works, at the risk of being redundant, is that 51 senators determine what we do, and there will be, I'm sure, an intense discussion . . . about the whole witness issue," McConnell said. "The people calling the witnesses won't necessarily be us; it will be the prosecution or the defense."
Though the House voted on Dec. 18 to impeach the president, Pelosi has declined to send the two articles of impeachment to the Senate, effectively hamstringing the chamber from launching the trial.
Pelosi's refusal to transmit the articles as she sought information about the scope of the trial, including witnesses, has also spurred a number of Republican senators to craft legislation and strategize about how they could begin the trial without the House's blessing. But McConnell, speaking privately to his members, made clear that he would not make any moves on a trial until the articles had been formally transmitted.
McConnell's remarks inside the lunch was confirmed by two officials who requested anonymity to discuss a private meeting. Senate Republican leaders did a final vote check of their 53 members Tuesday morning to make sure they had the votes for McConnell's plan, according to a GOP senator familiar with the discussions.
Impeachment live updates: McConnell says he is ready to proceed with Trump impeachment trial with no agreement on witnesses, according to two officials
For weeks, Democrats have been pressuring a cadre of persuadable Republican senators to demand a slate of four witnesses before the trial begins. Their efforts only ramped up Monday after former national security adviser John Bolton, who would have firsthand knowledge of Trump's demands of Ukraine and the delay in military aid, said that he would testify if subpoenaed by the Senate.
But Bolton's announcement did not move any of the Republicans who may have sided with Democrats, such as Sens. Susan Collins (R-Maine) and Lisa Murkowski (R-Alaska) who both indicated Monday that a decision on witnesses could be made further into the trial. Sen. Mitt Romney (R-Utah) has said he would like to hear from Bolton but did not endorse subpoenaing him to provide testimony.
"The Clinton trial process provided a pathway for there to be witnesses," Romney said Tuesday. "And presuming we have a process like that, again I would be able to support the Clinton impeachment process."
In January 1999, the Senate voted unanimously after the trial began on a framework that gave the opposing sides 24 hours each to make their opening arguments, as well as 16 hours allotted to the senators for questioning. A vote on calling witnesses did not happen until weeks into the trial.
But this time, the partisan sniping over witnesses spilled into the open even before McConnell and Senate Minority Leader Charles E. Schumer (D-N.Y.) sat down to negotiate in earnest over the structure of Trump's trial — making a bipartisan deal unlikely from the start.
"We've gotten so snarled up with debate over witnesses that the two leaders haven't been able to come to terms on this first phase," Murkowski, who met privately with McConnell on Monday evening, said Tuesday. Stressing her support for the majority leader's plan, she added: "I'm going to make sure that we've laid out very clearly what this framework is in terms of timeline and the ability to move to witnesses."
After McConnell's announcement Tuesday that he would effectively steamroll Democrats, but before Pelosi's comments to her members later that day, Schumer argued that Pelosi secured what she wanted by delaying sending the articles to the Senate: A clearer view of how McConnell planned to run the trial.
"Let me say this: By not sending the articles immediately, she has already accomplished two things which we fully support," Schumer said. "One, Mitch McConnell couldn't do what some thought he might want to do — right before Christmas or after Christmas, just dismiss."
Schumer, who on Tuesday again threatened to force votes on demanding witnesses and documents, added: "And second, in the last two weeks there has been a cascade of evidence that bolsters the case, strongly bolsters the case for witnesses and documents, so now we have a greater feel for where we're headed."
Bolton's willingness to testify in Trump's impeachment trial ramps up pressure on Senate Republicans
But a wide array of Schumer's rank-and-file — from the most moderate Democrats to the caucus's liberal flank — were more blunt than their leader, saying it was time to begin the trial.
"I think that's up to her," Sen. Angus King (I-Maine) said on whether Pelosi should transmit the articles to the Senate promptly. "But I do think we need to get this thing going."
Sen. Chris Murphy (D-Conn.) said now that it is clear McConnell has Republicans in line against a witness deal, "I think the time has passed. She should send the articles over."
"I think it needs to start; I really do," added Sen. Joe Manchin III (D-W.Va.). He argued that the delay helped prompt Bolton's statement Monday that he would be willing to testify in the Senate, and added: "Let us do what we have to do over here."
The White House's chief liaison to Capitol Hill on Tuesday endorsed McConnell's strategy.
"We're very heartened that there's a majority in order to be able to move on ahead under a process that is clear, defined, represents the president, and that we're able to operate inside of whenever the speaker sends the articles over," Eric Ueland, the legislative affairs director, told reporters on Capitol Hill. "We welcome the progress and we're hopeful that the articles come over as quickly as possible so we can get underway as quickly as possible."
What remains unclear is whether Bolton would be summoned by the House, if not the Senate for now. Though he said he would be ready to testify before the Senate, Bolton's statement Monday was silent on whether he would do the same for the House, and his lawyer did not elaborate when asked.
From the Oval Office on Tuesday, Trump did not weigh in on whether Bolton should appear before the Senate, which the president said was a decision for senators and for the lawyers.
Still, Trump said Bolton "would know nothing about what we're talking about, because as you know the Ukrainian government came out with a very strong statement, no pressure, no anything."
A senior White House official, speaking on the condition of anonymity to talk frankly, said Bolton provided no notice of his decision Monday, and the White House would exert executive privilege if he sought to include any deliberations with the president in his testimony.
Josh Dawsey, Colby Itkowitz, Elise Viebeck and John Wagner contributed to this report.
President Trump's Senate impeachment trial
Latest: Trump acquitted on impeachment charge of inciting deadly attack on the Capitol
See the videos: Previously unpublished video shows Pence, Romney, Schumer and others rushing to evacuate the Capitol
Analysis: For Raskin and the House managers arguing to convict Trump, less was more
The evidence: All of the exhibits presented in the Senate trial
What happens next: A guide to Trump's impeachment
Graphic: Where Senators stand on impeachment
Stay informed: Read the latest reporting and analysis on impeachment here.
live updatespoliticsChevronRight
Noted: Biden to meet with Brazil's Lula on Feb. 10
9:18 PMThe latest: Biden says McCarthy is catering to GOP's extremist wing
8:44 PMThe latest: Harris, who consoled Nichols's family, to attend funeral
8:27 PMNoted: Former British leader Boris Johnson spotted at the Capitol
8:21 PMThe latest: McCarthy's choice to lead Ethics Committee voted to overturn 2020 election
Don't miss reporting and analysis from the Hill and the White House.
Analysis|What's more common: A 'good guy' without a gun — or with one?
Analysis|2023 looks increasingly important to fraught U.S.-China relations
Analysis|The GOP effort to equate Biden and Trump on classified documents is working


text:
'use strict';

var $ = require('jquery');
var _ = require('underscore');
var Backbone = require('backbone');
var Marionette = require('backbone.marionette');
var localforage = require('localforage');

var template = require('../templates/friends.hbs');
var addFriendTimetableModalTemplate = require('../templates/friend_add_modal.hbs');
var timify = require('../../common/utils/timify');
var TimetableFlexView = require('../../timetable_flex/views/TimetableFlexView');
var FriendsListView = require('./FriendsListView');
var FriendsSelectedListView = require('./FriendsSelectedListView');
var FriendModel = require('../models/FriendModel');
var FriendsNotGoingSchoolView = require('./FriendsNotGoingSchoolView');
var config = require('../../common/config');

require('bootstrap/tooltip');
require('bootstrap/popover');

var USER_NAME = 'Me';

module.exports = Marionette.LayoutView.extend({
  initialize: function () {
  },
  template: template,
  regions: {
    friendsListRegion: '.nm-friends-list',
    friendsSelectedListRegion: '.nm-friends-selected-list',
    friendsNotGoingSchoolRegion: '.nm-friends-not-going-school',
    timetableRegion: '.nm-friends-timetable'
  },
  ui: {
    'addButton': '.js-nm-friends-add-button'
  },
  onShow: function () {
    var that = this;
    var userTimetableUrl;
    localforage.getItem(config.semTimetableFragment(config.semester) + ':queryString').then(function (data) {
      userTimetableUrl = data;
    }).then(function () {
      localforage.getItem('timetable:friends', function (data) {
        // Get current user's information
        var userInfo = {
          name: USER_NAME,
          queryString: userTimetableUrl,
          selected: true,
          semester: config.semester
        };
        if (!data) {
          data = [userInfo];
        } else {
          data.unshift(userInfo);
        }
        var friendsList = _.map(data, function (friend) {
          return new FriendModel(friend);
        });
        that.friendsListCollection = new Backbone.Collection(friendsList);
        that.friendsListView = new FriendsListView({collection: that.friendsListCollection});
        that.friendsListRegion.show(that.friendsListView);

        var friendsSelectedList = that.friendsListCollection.where({selected: true});
        that.friendsSelectedListView = new FriendsSelectedListView();
        that.friendsSelectedListView.collection = new Backbone.Collection(friendsSelectedList);
        that.friendsSelectedListRegion.show(that.friendsSelectedListView);
        that.showSelectedFriendsList();
        that.updateDisplayedTimetable();

        that.friendsListCollection.on('change', function () {
          var friendsSelectedList = that.friendsListCollection.where({selected: true});
          that.friendsSelectedListView.collection = new Backbone.Collection(friendsSelectedList);
          that.updateDisplayedTimetable();
          that.showSelectedFriendsList();
          that.friendsListView.render();
        });
      });
    });

    this.ui.addButton.popover({
      html: true,
      placement: 'bottom',
      content: addFriendTimetableModalTemplate()
    });
  },
  events: {
    'click .js-nm-friends-add': 'addFriendTimetable'
  },
  showSelectedFriendsList: function () {
    this.friendsSelectedListView.render();
  },
  addFriendTimetable: function () {
    var that = this;
    var friendName = $('#name').val();
    var timetableUrl = $('#url').val();
    this.getFinalTimetableUrl(timetableUrl, function (data) {
      that.ui.addButton.popover('hide');
      that.insertFriendTimetableFromUrl(friendName, data.redirectedUrl);
    });
  },
  getFinalTimetableUrl: function (timetableUrl, callback) {
    $.ajax({
      url: 'https://nusmods.com/redirect.php',
      type: 'GET',
      crossDomain: true,
      dataType: 'json',
      data: {
        timetable: timetableUrl
      },
      success: function (result) {
        if (callback) {
          callback(result);
        }
      },
      error: function (xhr, status) {
        window.alert(status);
      }
    });
  },
  insertFriendTimetableFromUrl: function (name, timetableUrl) {
    var urlFragments = timetableUrl.split('/');
    var queryFragments = urlFragments.slice(-1)[0].split('?');
    var semester = parseInt(queryFragments[0].slice(3));
    var timetableQueryString = queryFragments[1];
    this.friendsListCollection.add(new FriendModel({
      name: name,
      semester: semester,
      queryString: timetableQueryString,
      selected: false
    }));
    var friendsData = _.pluck(this.friendsListCollection.models, 'attributes');
    friendsData = _.map(friendsData, function (person) {
      return _.omit(person, 'moduleInformation');
    });
    // Don't persist current user's information into friend's data.
    friendsData = _.filter(friendsData, function (person) {
      return person.name !== USER_NAME;
    });
    localforage.setItem('timetable:friends', friendsData);
  },
  updateDisplayedTimetable: function () {

    var people = _.map(this.friendsSelectedListView.collection.models, function (person) {
      return person.get('name');
    });

    var daysNotGoingToSchool = {};
    _.each(timify.getSchoolDays(), function (day) {
      daysNotGoingToSchool[day] = people;
    });

    var combinedLessons = _.map(this.friendsSelectedListView.collection.models, function (person) {
      return _.map(person.get('moduleInformation').timetable.models, function (lesson) {
        var personName = person.get('name');
        lesson.attributes.name = personName;
        var dayText = lesson.attributes.DayText;
        daysNotGoingToSchool[dayText] = _.without(daysNotGoingToSchool[dayText], personName);
        return lesson.attributes;
      });
    });

    var daysNotGoingToSchoolList = _.map(timify.getSchoolDays(), function (day) {
      return {
        day: day,
        peopleNotGoingList: daysNotGoingToSchool[day],
        peopleNotGoing: daysNotGoingToSchool[day].join(', ')
      };
    });

    var haveSchoolEveryday = true;
    _.each(timify.getWeekDays(), function (day) {
      if (daysNotGoingToSchool[day].length > 0) {
        haveSchoolEveryday = false;
      }
    });

    if (daysNotGoingToSchool.Saturday !== people.length) {
      // By default, hide Saturday if everyone not going on Saturday
      daysNotGoingToSchoolList.splice(5, 1);
    }

    var notGoingSchoolModel = new Backbone.Model({
      daysNotGoingToSchool: daysNotGoingToSchoolList,
      haveSchoolEveryday: haveSchoolEveryday
    });

    this.friendsNotGoingSchoolRegion.show(new FriendsNotGoingSchoolView({
      model: notGoingSchoolModel,
    }));

    combinedLessons = _.reduce(combinedLessons, function (a, b) {
      return a.concat(b);
    }, []);

    var isMergeMode = this.friendsSelectedListView.collection.models.length > 1;

    var timetableFlexModel = new Backbone.Model({
      lessonsList: combinedLessons,
      mergeMode: isMergeMode
    });

    this.timetableRegion.show(new TimetableFlexView({
      model: timetableFlexModel
    }));
  }
});

redpajama_set_name: RedPajamaGithub


I am a designer with education in product, experience in graphics and interest in digital. I feel that good design is more than aesthetics and can explain the world to people, help make sense of the mess. In my free time I am also an illustrator and letterer.
Oh, I also want to travel everywhere that I haven't been yet.
I wanted my logo to show positive energy and diversity of The Artificial's spirit. To truly express myself in this project, I turned to the mediums I know best - pencils, brushes, and markers. I wanted to use what's best in both worlds - freedom that my hands give me working on paper and precision I can achieve digitally. After crafting the design with markers, I translated it into curves on the screen.


So you're heading back home to spend Thanksgiving with relatives. But, this being a family holiday, you don't want to leave your fur babies behind! Maybe you're taking a short drive, or perhaps you're flying. How ever you're getting to your destination of choice, Activ4Pets wants to provide the very best pet travel advice.


text:
Missoulian: North Fork Flathead Protection Celebrated by Tester, Daines, others
BLANKENSHIP BRIDGE – "Thank you's" may have flowed even more easily than the relatively low North Fork of the Flathead River on Monday morning, as the National Parks Conservation Association celebrated the North Fork Watershed Protection Act on rocks that form the river's bed at higher water.
U.S. Sen. Jon Tester, D-Mont., hailed the legislation as "an incredible bipartisan agreement" that "makes sure Flathead Lake will be Flathead Lake for generations to come."
Sen. Steve Daines, R-Mont., said it was "ultimately, a means to an end, to protect a way of life."
That Tester and Daines aren't often found on the same dais, let alone the same side of many issues, highlighted the cooperation it took to finally get the bill through Congress last year.
Both senators were among those Monday who noted decades of groundwork laid for the act by former U.S. Sen. Max Baucus, now the American ambassador to China.
Tester said he was a senior in high school when Baucus was first elected to the U.S. House of Representatives in 1974 and began work to protect the North Fork, and Daines said Baucus was still at it when he first met the then-new senator as a high school junior and Boys' State delegate in 1979.
"Without (Baucus), we would not be here," said Michael Jamison, Crown of the Continent program manager for the National Parks Conservation Association. "He spent decades working on this."
Daines became the first Republican member of Congress to introduce the North Fork Watershed Protection Act when he did so in 2013 as a member of the U.S. House and guided it through that body.
Tester, and Baucus' replacement, former Sen. John Walsh, D-Mont., were tasked with moving it through the Senate.
These days, politicians from the two political parties "are not known for cooperation," Jamison said, "but Mr. Tester, Mr. Daines and Sen. John Walsh agreed to agree on one thing – the North Fork."
It took more than American politicians to make it work.
British Columbia lawmakers got the legislative ball rolling in 2011 when they banned mining in the headwaters of Waterton-Glacier International Peace Park.
"Montana and British Columbia worked together – it took years of hard work and good faith – to stand together as partners, allies and friends," said Marcy Grossman, consul general for the Rocky Mountain Region of the Canadian government who also attended Monday's event. "It reminds us all of what we can do when we work together."
Canada and the U.S. share the world's longest border, Grossman noted, and Montana is the only U.S. state that abuts three Canadian provinces.
"It's essential that we work together," Grossman said. "The Flathead River is a mutual resource. It's imperative we safeguard it."
Also on hand was Bij Agarwal, vice president for the Rockies Business Unit of energy giant ConocoPhillips.
ConocoPhillips relinquished, without compensation, more than 100 oil and gas leases it owned on 169,000 acres in the North Fork at the request of Baucus and Tester in 2010.
They weren't the only oil, gas and mining leases that existed in the North Fork, Jamison said, but others followed the example set by ConocoPhillips.
"They were the first domino," Jamison said.
The North Fork Watershed Protection Act precludes future gas, oil and mining leases on more than 383,000 acres of federal land in the North Fork.
To the displeasure of some environmental groups, it also released wilderness study areas for possible oil and gas extraction, but Tester has previously said giving up "a little" to "get a lot" was a necessary compromise.
Daines' decision to become the first Republican in the GOP-controlled House to introduce the legislation – Jamison called it "courageous" – was obviously one key.
"The greatness of our public lands is part of this experiment we call the United States of America, and it's something most countries don't have," Daines said. "We were working hard on the House side to get it to the desk of the president."
It passed the House without opposition on March 4, 2014 – the first time it passed either chamber of Congress.
subtitles off
captions off
The Senate posed a much different problem.
There, three conservative Republican senators – Ted Cruz of Texas, Tom Coburn of Oklahoma and Pat Toomey of Pennsylvania – continually blocked the North Fork legislation from advancing.
Tester called them "three people who have never been to the North Fork and who frankly couldn't find it on a map."
He and Walsh instead attached the bill to the National Defense Authorization Act, as did congressmen sponsoring 69 other public land bills. Daines also attached it to the National Defense Authorization Act in the House.
The NDAA passed both the House and Senate in December, and was signed by President Barack Obama on Dec. 19.
For those who gathered at Blankenship Bridge, located a few miles southwest of West Glacier, to celebrate it, the only drawback was the heavy smoke from dozens of wildfires across the Northwest that blanketed the area.
Daines said it appeared that "secondhand smoke from Washington is blowing our way," while Jamison noted that Baucus now lives and works at the U.S. Consulate in heavily polluted Beijing.
"This is called a good-air day in Beijing," Jamison said.
But this day was about water, and the land surrounding it.
"I'm struck by the word 'the' in 'the North Fork,' " Jamison said. "it's not 'a north fork,' it's 'the North Fork.' "
"The" is reserved for iconic places, he said – the moon, the North Pole, the North Fork.
The North Fork has meaning to everyone from the Confederated Salish and Kootenai Tribes to the timber industry, and with help from them, business people, conservation groups, energy companies and politicians in two nations, Jamison said, "We've created a whole that is so much greater than the sum of its parts."
By: Vince Devlin
Source: The Missoulian


text:
Win McNamee/Getty Images News/Getty Images
Tiffany Trump Will Attend Georgetown Law
by Laura Hankin
Tiffany Trump, President Donald Trump's youngest daughter, made headlines on Monday thanks to a reveal about her future plans. The rumors are true — Tiffany Trump will attend Georgetown Law School in the fall. That makes her the latest member of the Trump family to move to Washington, D.C., where she'll be living mere miles away from her father and older sister, Ivanka. The Daily Mail was the first to announce Trump's law school plans, while a representative for the family confirmed the news.
Although many members of her family are regular staples in the news, 23-year-old Trump has largely stayed out of the spotlight, aside from a speech she gave about her father at the Republican National Convention. Some had been wondering what path the more elusive Trump would take after graduating last spring from the University of Pennsylvania with a degree in sociology and a concentration in law. Would Trump make like some of her famous half-siblings, and go to business school? Maybe, given her attendance at Fashion Week, and a previous internship at Vogue, she'd choose to go into the fashion world. Or perhaps she'd return to the lure of pop music, and release a companion piece to her previous single, "Like a Bird" (in which she expressed a desire for "serenity while living it up").
None of the above, it turns out. Trump will pursue her serenity at law school in the nation's capital. She had previously teased her ambitions last fall on Instagram, posting a photo of a bunch of LSAT prep books and an "I got this" bitmoji. Apparently, she did indeed have it, and studied hard enough to land a spot at Georgetown, which is ranked at number 15 on the U.S. News and World Report's annual rankings of the best law schools in the country. She won't be the first Trump to attend the university. Her older brother Eric got his bachelor's there, while Ivanka attended for two years before transferring to University of Pennsylvania.
So, come autumn, Trump will be joining her father and sister in Washington D.C. The proximity will mark a change for Trump, who was raised by her mother, Marla Maples, in California, across the country from her famous father and her half-siblings.
Perhaps, when she needs a study break, she'll walk the mile and a half to the White House and see what her father is up to that day, or offer up some legal advice.