000webhost

Web hosting

Wednesday, January 17, 2018

Download Website Document Crawler, Random Stuff, and More

- my WikiReader recently developed a strange error whereby the screen just goes dark upon loading (doesn't feel like a hardware fault because the boot screen showing normal characters shows up first). Have been trying to figure out a solution or else an alternative in the meantime. Difficult though as documentation out there is minimal and the company has basically shut down? Have created a headless crawler to gather what I need online and provide similar functionality offline? You can download it here:
- details are as follows:
# My WikiReader recently developed a strange error whereby the screen 
# just goes dark upon loading (doesn't feel like a hardware fault 
# because the boot screen showing normal characters shows up first). 
# Have been trying to figure out a solution or else an alternative in 
# the meantime. Difficult though as documentation out there is minimal 
# and the company has basically shut down? Have created a headless 
# crawler to gather what I need online and provide similar functionality 
# offline? 
#
# It uses wkhtmltopdf which is a lot lighter then a lot of JavaScript
# (and other) based options PDF distiller options out there. A sample file
# is obviously included. It was created as follows:
#
# As this is the very first version of the program it may be VERY buggy. 
# Please test prior to deployment in a production environment.
- here are some alternative options I've been looking at but if you look closer all are pretty 'heavy'. We're talking multi-gigabyte downloads based on what I've seen... 
alternative to minipedia
wikipedia offline android
- I obviously work on Mobile Applications from time to time as well so perhaps one day I'll create something more integrated?

Random Stuff:
- as usual thanks to all of the individuals and groups who purchase and use my goods and services
- latest in science and technology
- latest in finance and politics
- latest in defense and intelligence
- latest in animal news
- latest in music and entertainment

Random Quotes:
- Tape superconductors are a complex composite which include a layer of high-temperature material and a number of thin (about several nanometers) interlayers covering a flexible metal base. All layers are covered with silver and copper coating. The transport properties of such composites – the ability to transport electric currents with no energy dissipation (due to zero resistance) – vary significantly along the conductor because the techniques used to produce them are very complicated. This is why noncontact control over transport properties of long (over 100 meters) superconducting tapes is needed.
- NEW YORK (GenomeWeb) – A team led by researchers at the Salk Institute has developed a CRISPR-Cas9 genome editing system that epigenetically activates target genes without causing DNA double-strand breaks (DSBs). As they reported today in Cell, the investigators used the new system to treat diabetes, acute kidney disease, and muscular dystrophy in mouse models.

Current genome editing systems generally rely on the creation of DSBs, but this can limit their utility in treating disease because of the creation of off-target effects. Some researchers have tried repurposing the CRISPR-Cas9 system to create a dead Cas9 (dCas9)-VP64 system that enables target gene activation, which tends to allow the regulation of gene expression without the creation of DSBs, the authors noted. But implementing this system in vivo usually requires multiple single-guide RNAs (sgRNAs), making it less efficient, and exceeding the capacity of most common viral vectors, which are used to deliver these systems to living cells.
- They face the same struggles in life. They worry about their children. They want a decent career and enough money or privileges to have a decent life. They fall in love, they fight, they divorce. They don't think much about politics. They just want a peaceful life.

Of course, the environment in which they evolve is very different and requires a certain behaviour dictated by self-preservation.
...
I spent years with some of my managers and I have never been introduced to their families, except on one occasion.

One thing I hate is the constant monitoring we face. In our compound, there are guards every 20 or 30 metres. One of them even has a view to my living room.

The latest sanctions are putting all businesses in danger. Sanctions are not the answer. A strong middle class is a far more powerful tool for change and positive growth than anything else. Change from within is the only change that leaves no scars.
...
North Korean people are aware of their unique propaganda. When they're watching something on television and government propaganda comes on, they turn the TV off, much like our own behaviour at the beginning of a commercial break. That's pretty ironic, don't you think?

South Korean responses to North Koreans range from automatic hatred to a healthy curiosity, but hardly more than that. Young North Koreans find it difficult to integrate into South Korean society because they are so self-conscious about it. South Korea currently has a huge bullying problem.

I think North Korea wants to be isolated. It is in their best political interests to remain as a dangerous and non-negotiable state. It is totally fair that North Korea should have just as much independence and leverage as the US does, but that's not what other people in this world believe, unfortunately.

The US should keep out of Korean affairs and let grassroots regime change happen naturally as it did in South Korea. 
...
In my opinion, the sanctions approved by the UN, supported by China, aggravate the problem, instead of solving it. It reveals a certain hypocrisy of countries that are part of the UN Security Council since they all have atomic bombs. From my understanding, so-called "nuclear disarmament" is a consolidation of the monopoly of nuclear weapons in the hands of a small group of countries.

I do not feel threatened by the missile tests because I know the North Koreans do not intend to attack anyone. 
- Sustainment Efforts Already Falling Short and Grounding Aircraft

DOD and its international partners have more than 250 F-35 aircraft in their possession and plan to triple the fleet in the next 4 years. But DOD is already facing sustainment challenges that are degrading the fleet’s readiness for action, including:

    A 6-year delay in establishing F-35 part repair capabilities at military depots, resulting in long repair times;
    Parts shortages that kept aircraft from flying about 22% of the time from January through  August 7, 2017;
    The inability to conduct all required maintenance during initial planned F-35 shipboard deployments.

As this graphic shows, average repair times have not matched program objectives.
- You hear it in the way people talk — “The Arabs,” “The Jews” — about people with whom they have been sentenced to share a tiny patch of soil atop a ridge with no strategic value, over which the world has been battling for thousands of years, and negotiating on and off for decades, with no end in sight.

The world knows Jerusalem by the Old City and its Golden Dome, its ancient wall from the time of Herod, its Holy Sepulcher, its rough-hewed stones flattered by brilliant sunlight.

But Jerusalem is not just its postcard vistas. A pilgrimage is not the same as living here. The day-in, day-out friction can be draining. And when the conflict bubbles up, even natives can question why they persist.
- “This is a rigged system," said the Republican president, who won in 2016 despite gaining more than three million fewer votes than his contender Hillary Clinton.

Republican vs. Democrat: No difference

According to Becker, the West Coast correspondent of the A.N.S.W.E.R coalition, this is not a  Trump statement and it actually reflects “the reality” of the country.

“The big banks, the military industrial corporations, oil companies and other resource-based companies constitute the core of power inside of the United States,” he said.

There is practically no difference between a Democrat or a Republican to run the White House, he further suggested, adding that in either case, “we have huge military budgets in the United States, bigger than the rest of the world’s military budgets combined” that serve the true powers in the country’s political system.
- US President Donald Trump spends up to eight hours per day watching television, including mainstream news networks such as CNN, Fox and MSNBC, a new report has revealed.

Citing people close to Trump, major US-based daily The New York Times reported Saturday that the American president sits in front of a TV at least four hours and up to eight hours each day.

According to the report, the only person allowed to touch the remote control for the White House television is Trump himself and the technical support staff at his official residence in Washington.

However, during his trip to Asia last month Trump told reporters aboard Air Force One that he does not watch much television because he is too busy “reading documents.”

“Believe it or not, even when I’m in Washington or New York, I do not watch much television,” Trump said. "People that don’t know me, they like to say I watch television — people with fake sources. You know, fake reporters, fake sources.”

“But I don’t get to watch much television, primarily because of documents. I’m reading documents a lot,” Trump further insisted. “I actually read much more — I read you people much more than I watch television.”

This is while the American president had previously emphasized that he has “very little time for watching TV,” despite often tweeting about Fox News and CNN segments immediately after they air live.
- Indeed, a lot of people have forgotten that Russia also asked to join NATO (under both Gorbachev and Putin) and was rebuffed. Russia wanted IN the club. In fact, it was pathetic how much they wanted in the club and I thought so at the time. The West, steeped in Russophobia, was never going to let them in, and the Russians wasted somewhere between fifteen and twenty years before they got the message that the West, and the US in particular, was implacably hostile and intended to remain so.

Russia has about half the GDP of California. It is a superpower only in terms of nuclear weapons, though its army, technology, and geographic reach mean that it is still a great power.

It has been pushed into the arms of the Chinese, which from a geopolitical POV is ludicrous: Siberia is the most likely point of conflict between the Chinese and the Russians, driven by the realities of climate change, demographics, and aquifer depletion. Siberia has hardly any population, lots of land, and tons of water, and in twenty to thirty years, the Chinese are going to need that water, and in forty years or so they’re going to need the land.

It would have been easy to spin Russia in and make it the Eastern end of West. Instead, it has been made into a foe, and if the hysterics looking for someone to blame for their own electoral failures have their way, made into an actual enemy. (An enemy with enough nukes to destroy the entire world more than once. Sanity suggests picking better enemies.)

Whether or not the majority of Americans “want” this, emergent American behaviour shows this to be the path the US and the West are on.

Those of us who would prefer the world to survive might wish otherwise, but in-group thinking and the death wish are stronger than sanity or reason.

Putin is a result of shock doctrine, imposed by the West. Russian animosity is largely a result of Western actions that the Russians could not but interpret as hostile (including the color revolutions and the Western-backed Ukrainian coup.)

If, at this point, the Russians are trying to return the interference (and they probably are, just not nearly to the extent or effect the propaganda suggests) that is only what is to be expected, and Americans crying about a little bit of interference look ludicrous, given the US’s record of backing actual coups and constant, regular interference in virtually everyone else’s elections.

If you don’t want enemies, don’t treat them like your enemies. If you do, don’t be surprised when they act like your enemies.

And for God’s sake, Democrats, stop blaming Russia for an electoral failure that was primarily your own damn fault. Look to what you can control–your own behaviour–rather than seeking a scapegoat.
- FinFisher is surveillance software marketed by Lench IT Solutions, which sells it through law enforcement channels. It is "weaponised German surveillance malware used by intelligence agencies around the world to spy on journalists, political dissidents and others", according to WikiLeaks which revealed details of the spyware in 2014.

The new surveillance software, StrongPity2, had been visible in two unnamed countries since 8 October.

It was "using the same (and very uncommon) structure of HTTP redirects to achieve 'on-the-fly' browser redirection, only this time distributing StrongPity2 instead of FinFisher," Kafka said.

"We analysed the new spyware and immediately noticed several similarities to malware allegedly operated by the StrongPity group in the past."

Other common software packages which are being trojanised by StrongPity2 are CCleaner, Driver Booster, Opera, and WinRAR 5.50.
- Tax Justice Network Australia report author Jason Ward said: “What this research shows is that ExxonMobil has exploited Australia’s natural resources, made a ton of money and siphoned it all off overseas. By using notorious tax havens, high-interest internal loans and related party transactions they’ve sucked the taxpayer dry.

“ExxonMobil has $54 billion sitting in offshore bank accounts. Our research shows that much of that money has been funnelled from Australia through Exxon’s Dutch outfit, and ultimately through their Bahamas subsidiary. But the very idea of Exxon Australia being owned in the Bahamas raises more questions than answers.”

Ward said Exxon had misled the Senate Inquiry into Corporate Tax Avoidance in 2015 by failing to declare the company's Dutch-Bahamas structure.
- Washington: President Donald Trump directed the National Aeronautics and Space Administration to send American astronauts back to the moon and eventually to Mars, shifting the agency's mission from the study of Earth.

"This is a giant step toward that inspiring future and toward reclaiming America's proud destiny in space," Trump said on Monday at a White House ceremony, where he signed the new NASA directive. "And space has to do with so many other applications, including a military application. So we are the leader and we're going to stay the leader and we're going to increase it many fold."

Sunday, January 14, 2018

ASX Stock Market Analysis Script, Random Stuff, and More

- wanted to test a theory of mine regarding the ASX stock market. Download results and script here:
- details are as follows:
# I wanted to know basic long term data about price movement from the ASX
# based on information that I found online at the following site:
# https://www.asxhistoricaldata.com/
# https://www.asxhistoricaldata.com/archive/
#
# The basic results of were calculated by extracted files from the following
# archives. Then running this script across them.
# 1997-2006.zip
# 2007-2012.zip
# 2013-2016.zip
#
# Basic data says that about a small proportion of ASX stocks go up over 
# given period, many go down over given period, while the most/rest go 
# off market. Data is obviously included in this archive. Clearly 
# indicates that picking shares isn't as easy as it sounds on the ASX
# (even for professionals who deal with IPOs in the first place).
#
# $ tail -n 4 results-*
# ==> results-19970102-20061229.dat <==
# [Total Stocks] - 731
# [Total Up] - 135
# [Total Down] - 84
# [Total Off] - 512
#
# ==> results-20070102-20121231.dat <==
# [Total Stocks] - 1452
# [Total Up] - 168
# [Total Down] - 401
# [Total Off] - 883
#
# ==> results-20130102-20161230.dat <==
# [Total Stocks] - 1284
# [Total Up] - 373
# [Total Down] - 320
# [Total Off] - 591
#
# There is stodgy data in 2013 to 2016 period but I haven't really
# bothered to look further as this was mainly about checking a theory
# that I was interested in and overall results/data output seem fine.
#
# As this is the very first version of the program it may be VERY buggy. 
# Please test prior to deployment in a production environment.
#
- this is obviously a continuation of my posts on financial trading:

Random Stuff:
- as usual thanks to all of the individuals and groups who purchase and use my goods and services
- I've been thinking about building a Chess AI for a little while now. Depending on how you build it things can get pretty complex fairly quickly. Complexity/goodness of system is dependent on the way you think. Play enough games you'll realise that certain moves become a given (they're the only logical moves that are left available) when certain situations arise. You actually need multi-level/step thinking in a Chess AI for this particular reason
open source python chess game
Sunfish: A simple but strong chess engine in 111 lines of Python
bash chess game
open source bash chess
open source python chess
- latest in science and technology
Tutorial - Android & Lazarus for novices like me
laztoapk and laz4android
laz4android
- latest in finance and politics
- latest in defense and intelligence
- latest in animal news
- latest in music and entertainment

Random Quotes:
- Burke, he shorthanded, defined the duty of an MP accordingly: "I'm not your facsimile, I'm not going to do whatever you tell me to do, what I owe you is my judgment, my intellect".

There's never been any doubt about Turnbull's intellect – nor any danger of the member for Wentworth being mistaken as a "facsimile" of the ordinary man. His judgment, however, is more contestable.
- Konopka said patients prefer her practice compared to big hospitals because of the individual attention they receive.
Doctors at hospitals look at computers all the time, Konopka said, and rely on them, instead of their intellect, for diagnoses and guidelines to prescribing medications. She called that system expensive and harmful to patients. The doctors have no contact with the patients, she said.
"They practice electronic medicine, I practice medical art," she said. "I treat the patient. And I'm not going to compromise the patient's health or life for the system."
- During the Vietnam War, the American aircraft famously did this repeatedly over the Ho Chi Minh Trail that snaked from North Vietnam south through Laos. The United States also saturated the area with small landmines, irritating chemicals, and even a powder that was supposed to create permanent, made-made “mud” to slow down enemy personnel and vehicles. More infamously, the U.S. military sprayed copious amounts of toxic herbicides, including a mixture called Agent Orange, to deny cover to insurgent forces.
- Excess body weight is another major factor, accounting for 7% of cancer cases and 6% of all deaths, according to the study. Alcohol use, exposure to ultraviolet radiation, physical inactivity, consumption of red and processed meats, and low consumption of fruits and vegetables, fiber and calcium are also listed as "major, potentially modifiable exposures." Taken together, alcohol consumption, excess body weight, poor diet and physical inactivity account for roughly 18% of all cancer cases and 16% of deaths.
- It is double pleasure to deceive the deceiver.
- "A CIA Study Group believed that the Soviets could use UFO reports to touch off mass hysteria and panic in the United States. The group also believed that the Soviets might use UFO sightings to overload the US air warning system so that it could not distinguish real targets from phantom UFOs," admitted the CIA in a 2007 article.
- The Kosovo campaign was an embarrassment for NATO tactical air power. NATO completely failed to inflict serious casualties on Serbian forces. It was NATO attacks on Serbian economic targets that brought them to it's knees. We reverted to the origins of air force thinking, strategic bombing. We hit Serbian chemical plants, urban transportation targets, The studios of Serbian national television were hit. Our objective was to make the Serbian civilian population suffer, and force their government to end the war, and it worked.

A decade later Israel found itself in a similar situation. They were under heavy rocket attack from Hezbollah in Lebanon. Israeli air and artillery forces were tasked with suppressing the threat. They failed utterly to destroy the rocket launchers. They decided to take the advice of gen Billy Mitchell and reverted to a strategic bombing campaign. Lebanon was made to suffer with massive attacks on it's transportation network. Hezbollah lost it's popularity for bringing economic ruin on the country. Internal political pressure forced Hezbollah to end the war, and assure both Israel, and the government in Beirut that they wouldn't do it again, at least anytime soon.

Back in Desert Storm the 100 hour ground war destroyed more Iraqi tanks, and other weapons then 6 weeks of bombing did. The army drove the Iraqi's out of Kuwait, something the air force failed to do. All this recent experience should teach us that air power acting on it's own cannot defeat a determined dug in enemy army. Tactical air power is most effective when employed in conjunction with ground, and naval forces. Recent history tells us those thinking that air power alone will be able to neutralize NK missile, rocket, and artillery forces are almost certainly mistaken.
- "Everything I had ever learned about air fighting taught me that the man who is aggressive, who pushes a fight, is the pilot who is successful in combat and who has the best opportunity for surviving battle and coming home."
-- Major Robert S. Johnson, USAAF
- Roughly, you need around four squadrons in total to sustain one squadron at sea: one squadron aboard the Big Grey War Canoe™; one squadron that has just come off the Big Grey War Canoe™; one squadron at home on leave; and one squadron working up ready to take its turn aboard the aircraft carrier. The maths is not precise; in the modern armed forces, aircraft are pooled instead of being issued to particular squadrons for their exclusive use, while experienced personnel whose skills are in short supply may be unlucky and end up with back-to-back deployments.
-    Currently 54% of the world’s population lives in countries with currencies in circulation worth less than the value of bitcoin.
    If the price of bitcoin rises to $15,000 it will overtake the value of all Indian rupee banknotes and coins in circulation to become the fifth most valuable currency. Given its recent growth rate this could happen within the next month.
    However, bitcoin’s price needs to increase to a staggering US$72,300 to overtake the Euro and become the second most valued currency.
    To beat the US dollar, in terms of circulation value, it would need to increase in price to at least US$85,160.
    At a price of US$458.82 the total market cap of ethereum stands at US$44 billion, making it the 17th most valuable currency, worth more than the value of all banknotes and coins in circulation of countries such as Turkey (US$36 billion) and Singapore (US$27 billion).
    Bitcoin cash’s current price of $1,425.21 gives it a market cap of US$24 billion, making it the 20th most valuable currency, worth more than all Swedish Krona (US$9 billion) or South African rand (US$6 billion) banknotes and coins.
    Ripple just missed the top 20 with a value of US$10 billion, but was ahead of krona or rand.

Download Website Document Crawler, Random Stuff, and More

- my WikiReader recently developed a strange error whereby the screen just goes dark upon loading (doesn't feel like a hardware fault b...