The terrorist attacks in Brussels have received a great deal of media attention.
The truly scary attacks, however, are taking place in Turkey which has seen about a dozen attacks in this last year (wikidpedia).
Turkey has taken in the bulk of refugees displaced by ISIS.
Turkey has been seeking membership into the European Union, which the US supports.
That the terrorist attacks are coinciding with the refugee crisis indicates that something I've feared may be true.
My fear is that immigration has become radicalized.
I am a fan of immigration, But when political groups seek to change an area through immigration, immigration becomes radicalized and turns from a positive force into a negative force.
If it were feasible, I would support open borders. But in an age of radicalized immigration, I believe that the best alternative is to create clear immigration laws that our nation enforces.
Although it sounds harsh, deportation is the correct response to an immigration violation.
Unfortunately, the reality is that our Federal Government needs to show the people a willingness to support immigration laws before we can have any sort of liberalization of immigration policy.
The terrorist attacks which have dotted the EU this last year show the dangers of radicalized immigration. The first line of defense against terrorism is well defined immigration law which are enforced.
Thursday, March 24, 2016
Tuesday, March 22, 2016
Utah Caucuses
The Utah Caucuses are tomorrow. I am not sure if I am going to attend.
The Republican Caucus appears to be the most interesting vote tomorrow. I hesitate to attend the caucus because I am not a member of the party.
The GOP in Utah has made it abundantly clear that me and my kind are not welcome in their ranks. I really don't think it is fair to barge into someone's political event and voice opinions when the opinions are not welcome in the party.
It is common sense and common courtesy to say that people who are not welcome in a party have no business attending the primary election.
Accepting this position, however, means that the people who fundamentally reject the partisan approach to politics, are excluded from the most important vote of the year. (Caucuses and primaries determine the names on the ballot).
The Party system is not part of the Constitution. The US Founders routinely voiced disapproval of the warring factions that dominate European politics.
This game where parties control the government by controlling who gets on the ballot is fundamentally opposed to the spirit of the US Constitution.
I believe that the US Founders wanted an inclusive mechanism for selecting leaders.
This factional system, left/right was created by the enemies of freedom.
Notably, Conservatism was created in the 1830s by King William IV of England as an effort to rebrand the Tory Party for the modern age (Wikipedia Conservative Party).
The Conservative Party has existed continuously since 1834. The conservative game is for candidates to use free market rhetoric (along with put downs of liberals) to gain power.
Once in power, Conservatives pass laws that favor economic centralization.
Partisan conservatives present the public with free market rhetoric. The Republican Party has no plans in the works to promote economic decentralization.
The Party is intrinsically corrupt.
At least the Democrats have some integrity. They might say Vote Hillary and you will get a free phone.
Sure enough, there are government programs to give out free phones, free health care, free t-shirts, free education, free pamphlets, free food, free grants, and other free what nots.
Who knows, one might find a cute young thing at a Democratic caucus so smitten with all the free stuff, that she'll give out free sex (followed by a free abortion if the free condom fails.)
The Democratic promise of freebies will be followed by propaganda about how business is evil and that we need to counter evil business with greater government centralization.
Both parties are built on the same structure. They use different connotations of the word "free" to gain power. They both promote economic and political concentration in power.
Regardless of whether or not I attend the caucus, the general election will simply be the choice of the lesser of two evils.
So, I am still left with the question: Should I march into the GOP caucus when I know perfectly well that I am not a conservative. I dislike King William IV and much as I dislike King George III or should I follow my conscious and take a political stand outside the party?
Either way. It doesn't matter.
The left and right and simply mirrors of each other. Both conservativism and progressivism came from a rejection of the ideals of freedom that lie at the foundation of this nation. The only real way to save this nation is for more people to reject the left/right split as a false dichotomies and to reject the two parties as the primary source of corruption in our age.
The Republican Caucus appears to be the most interesting vote tomorrow. I hesitate to attend the caucus because I am not a member of the party.
The GOP in Utah has made it abundantly clear that me and my kind are not welcome in their ranks. I really don't think it is fair to barge into someone's political event and voice opinions when the opinions are not welcome in the party.
It is common sense and common courtesy to say that people who are not welcome in a party have no business attending the primary election.
Accepting this position, however, means that the people who fundamentally reject the partisan approach to politics, are excluded from the most important vote of the year. (Caucuses and primaries determine the names on the ballot).
The Party system is not part of the Constitution. The US Founders routinely voiced disapproval of the warring factions that dominate European politics.
This game where parties control the government by controlling who gets on the ballot is fundamentally opposed to the spirit of the US Constitution.
I believe that the US Founders wanted an inclusive mechanism for selecting leaders.
This factional system, left/right was created by the enemies of freedom.
Notably, Conservatism was created in the 1830s by King William IV of England as an effort to rebrand the Tory Party for the modern age (Wikipedia Conservative Party).
The Conservative Party has existed continuously since 1834. The conservative game is for candidates to use free market rhetoric (along with put downs of liberals) to gain power.
Once in power, Conservatives pass laws that favor economic centralization.
Partisan conservatives present the public with free market rhetoric. The Republican Party has no plans in the works to promote economic decentralization.
The Party is intrinsically corrupt.
At least the Democrats have some integrity. They might say Vote Hillary and you will get a free phone.
Sure enough, there are government programs to give out free phones, free health care, free t-shirts, free education, free pamphlets, free food, free grants, and other free what nots.
Who knows, one might find a cute young thing at a Democratic caucus so smitten with all the free stuff, that she'll give out free sex (followed by a free abortion if the free condom fails.)
The Democratic promise of freebies will be followed by propaganda about how business is evil and that we need to counter evil business with greater government centralization.
Both parties are built on the same structure. They use different connotations of the word "free" to gain power. They both promote economic and political concentration in power.
Regardless of whether or not I attend the caucus, the general election will simply be the choice of the lesser of two evils.
So, I am still left with the question: Should I march into the GOP caucus when I know perfectly well that I am not a conservative. I dislike King William IV and much as I dislike King George III or should I follow my conscious and take a political stand outside the party?
Either way. It doesn't matter.
The left and right and simply mirrors of each other. Both conservativism and progressivism came from a rejection of the ideals of freedom that lie at the foundation of this nation. The only real way to save this nation is for more people to reject the left/right split as a false dichotomies and to reject the two parties as the primary source of corruption in our age.
Thursday, February 11, 2016
Silent Sunsets
I learned the other day that one cannot say "It's a pretty sunset" within earshot of a Democrat.
In the modern mindset every word must be measured for political effect. Saying, "hey it's a pretty sunset" must be matched by a political diatribe aimed at spreading hatred of a progressive's enemies.
The haze that appears in the Salt Lake Valley is due primarily to a large amount of moisture on the ground trapped between two mountains. I know this because mountain valleys with few people develop the same haze.
The haze traps in pollutants.
So, saying it's a pretty sunset on the same day in which there is haze means progressives must spill forth with all of the hatred in their dark hearts.
Anyway, if you are near a Democrat, you need to learn to internalize statements such as "it's a pretty sunset."
Vocalizing a thought does not enhance a view. Spewed hated diminishes it.
In modern America one must learn to enjoy beauty without vocalization.
Progressives control the schools. Progressives teach that every word must be measured for political effect. This is our world. But is is kind of sad to live in a world where we cannot say "it's a pretty sunset."
In the modern mindset every word must be measured for political effect. Saying, "hey it's a pretty sunset" must be matched by a political diatribe aimed at spreading hatred of a progressive's enemies.
The haze that appears in the Salt Lake Valley is due primarily to a large amount of moisture on the ground trapped between two mountains. I know this because mountain valleys with few people develop the same haze.
The haze traps in pollutants.
So, saying it's a pretty sunset on the same day in which there is haze means progressives must spill forth with all of the hatred in their dark hearts.
Anyway, if you are near a Democrat, you need to learn to internalize statements such as "it's a pretty sunset."
Vocalizing a thought does not enhance a view. Spewed hated diminishes it.
In modern America one must learn to enjoy beauty without vocalization.
Progressives control the schools. Progressives teach that every word must be measured for political effect. This is our world. But is is kind of sad to live in a world where we cannot say "it's a pretty sunset."
Wednesday, February 10, 2016
Filed Under Irrelevant
This just in: While in Illinois Obama gave a speech in which he "calls for improved tone in U.S. politics.:"
Sorry, Mr Political Activist in Chief, the tone of politics in America today is the result of your actions.
The reason I am opposed to the Alinsky style of Community Activism is that this Marxian style not only leads to poor decisions. I creates a feeling of disenfranchisement and sharp political division.
Obama spent the first seven years simply stomping on his opponents and shutting down discourse in our nation, then feigns surprise that his administration led to division and shrill politics.
I suspect that Obama's speech was well delivered and sounded. But, at this stage in the presidential game, it is irrelevant.
It is the actions that Obama took at the height of his political power and not the apologies given in lame duck speech that defines the Obama Administration as one of the most divisive administrations in US history. Today's speech should be filed under "I" for irrelevant.
Sorry, Mr Political Activist in Chief, the tone of politics in America today is the result of your actions.
The reason I am opposed to the Alinsky style of Community Activism is that this Marxian style not only leads to poor decisions. I creates a feeling of disenfranchisement and sharp political division.
Obama spent the first seven years simply stomping on his opponents and shutting down discourse in our nation, then feigns surprise that his administration led to division and shrill politics.
I suspect that Obama's speech was well delivered and sounded. But, at this stage in the presidential game, it is irrelevant.
It is the actions that Obama took at the height of his political power and not the apologies given in lame duck speech that defines the Obama Administration as one of the most divisive administrations in US history. Today's speech should be filed under "I" for irrelevant.
Monday, February 08, 2016
Occupy Malheur
The left and right are simply mirror images of each other.
The Tea Party movement out here in Mormon Country was largely hijacked by Clive Bundy style extremists who are driven by an ideology that demands privatization of Federally owned lands in the Mountain West.
Followers of the Bundy's engaged in an Occupy Malheur event in which Conservatives, many from here in Mormon Country, took control of the Malheur Wildlife Refuge near Lake Malheur just South of Burns, Oregon.
Tensions grew as roving militias from the Mountain West converged on Burns.
The event ended with someone named LaVoy Finicum being shot after driving through a road block and reaching for something (which the FBI says was a loaded gun) from his pocket.
Apparently, some people are wanting to make LaVoy Finicum's funeral in Kanab, Utah a media circus. I simply hope that people watching the aftermath of Occupy Malheur note how the Left and Right are simply mirror images of each other with both sides of the divide using conflict to advance questionable ideologies.
The Tea Party movement out here in Mormon Country was largely hijacked by Clive Bundy style extremists who are driven by an ideology that demands privatization of Federally owned lands in the Mountain West.
Followers of the Bundy's engaged in an Occupy Malheur event in which Conservatives, many from here in Mormon Country, took control of the Malheur Wildlife Refuge near Lake Malheur just South of Burns, Oregon.
Tensions grew as roving militias from the Mountain West converged on Burns.
The event ended with someone named LaVoy Finicum being shot after driving through a road block and reaching for something (which the FBI says was a loaded gun) from his pocket.
Apparently, some people are wanting to make LaVoy Finicum's funeral in Kanab, Utah a media circus. I simply hope that people watching the aftermath of Occupy Malheur note how the Left and Right are simply mirror images of each other with both sides of the divide using conflict to advance questionable ideologies.
Sunday, February 07, 2016
Deportation and Visas
This last GOP debate was much better than I expected.
Before jumping into my post. I want to counter a meme put forward by Trump. Trump claims that he is the most likely to beat Hillary Clinton.
I say the opposite is true. The Left is adept at exploiting wealth envy in campaigns. It is what they do best. As Trump's claim to fame is his ability to amass wealth and power, he is the candidate that the left is most likely to beat.
As for this post. I liked the direction that Rubio, and others, were taking with immigration debate. The salient point is that the US government must prove that it willing to enforce existing immigration laws before we can pass more lenient laws.
The United States is in a horrible situation where we have to deport millions of people.
Deporting millions sounds draconian until one looks at the numbers. Adding up the columns on the statistics page by the Bureau or Transportation Services indicates that over 250 million people entered the US in 2014. Most people entering the US are on a passport waver program which allows stays in the US for up to 90 days. The State Department issued about 10 millions of visas last year.
Both references bring up many unanswered questions. However, they establish that International Travel involves hundreds of millions of people.
Unfortunately, deportation is a necessary component of a smooth running international travel system.
A visa is a contract between a visitor and a host country.
Deportation is the primary mechanism for enforcing the contract.
Yes, I know, deportation is harsh. I would be against deportation except for the fact that it is intrinsic to a working visa system.
When one is dealing with hundreds of millions of travelers. It is not unreasonable to engage in millions of deportations each year.
I am for streamlining the deportation system because streamlined deportations allow for a more robust international travel system. When people follow the laws. We can actually increase travel.
To repeat my argument: A visa is a contract. Deportation is the enforcement mechanism of the contract. We have hundreds of millions of international travelers each year. A one percent fail rate means that we have to deport millions of people each year.
When the context of the argument is understood, the argument for deporting a million people is not harsh. It's simply a necessary part of making an international travel system work.
As for "sanctuary cities." The people who declare sanctuary cities feel great. However, these clowns are disrupting a system that involves hundreds of millions of people simply to make a feel good statement.
Standing against the clowns is largely a matter of showing the harm that they are doing to the hundreds of millions of legal travelers.
I do not believe that the US is going to end up deporting everyone whose violated their visa agreements since the last general amnesty.
However, the United States simply has to get a robust system of deportations in place to safeguard our current robust system of international travel. The last amnesty shows that the US government will not engage in reform after an amnesty.
The statistics show that our laws favor the reunion of families over other concerns.
As for the breaking up of families. This is the result of international travel and not American laws.
When a person chooses to move over long distances (crossing national borders and all). That person is engaged in an activity that breaks familial bonds.
It is the individual's choice to emigrate that breaks up the family and not American law.
Yes, it is true that we witness the results of a decision. But the break up is not caused by our laws. The fact that we witness a drama does not mean we caused the drama.
I've noticed that all humans have human connections. People from a region are often related to a huge number of people. Developing the idea that immigration should take place in huge packs limits our nation's ability to accept immigrants from a diversity of places, because we can't just look at the individual who wants to immigrate, but all of the people attached to the individual.
The statistics show that our current system favors relatives of immigrants over all others.
It is really sad that moving abroad breaks up families, but I find it foolish to blame our immigration laws for breaking up families as some break of family must occur whenever people move abroad.
Before jumping into my post. I want to counter a meme put forward by Trump. Trump claims that he is the most likely to beat Hillary Clinton.
I say the opposite is true. The Left is adept at exploiting wealth envy in campaigns. It is what they do best. As Trump's claim to fame is his ability to amass wealth and power, he is the candidate that the left is most likely to beat.
As for this post. I liked the direction that Rubio, and others, were taking with immigration debate. The salient point is that the US government must prove that it willing to enforce existing immigration laws before we can pass more lenient laws.
The United States is in a horrible situation where we have to deport millions of people.
Deporting millions sounds draconian until one looks at the numbers. Adding up the columns on the statistics page by the Bureau or Transportation Services indicates that over 250 million people entered the US in 2014. Most people entering the US are on a passport waver program which allows stays in the US for up to 90 days. The State Department issued about 10 millions of visas last year.
Both references bring up many unanswered questions. However, they establish that International Travel involves hundreds of millions of people.
Unfortunately, deportation is a necessary component of a smooth running international travel system.
A visa is a contract between a visitor and a host country.
Deportation is the primary mechanism for enforcing the contract.
Yes, I know, deportation is harsh. I would be against deportation except for the fact that it is intrinsic to a working visa system.
When one is dealing with hundreds of millions of travelers. It is not unreasonable to engage in millions of deportations each year.
I am for streamlining the deportation system because streamlined deportations allow for a more robust international travel system. When people follow the laws. We can actually increase travel.
To repeat my argument: A visa is a contract. Deportation is the enforcement mechanism of the contract. We have hundreds of millions of international travelers each year. A one percent fail rate means that we have to deport millions of people each year.
When the context of the argument is understood, the argument for deporting a million people is not harsh. It's simply a necessary part of making an international travel system work.
As for "sanctuary cities." The people who declare sanctuary cities feel great. However, these clowns are disrupting a system that involves hundreds of millions of people simply to make a feel good statement.
Standing against the clowns is largely a matter of showing the harm that they are doing to the hundreds of millions of legal travelers.
I do not believe that the US is going to end up deporting everyone whose violated their visa agreements since the last general amnesty.
However, the United States simply has to get a robust system of deportations in place to safeguard our current robust system of international travel. The last amnesty shows that the US government will not engage in reform after an amnesty.
Families and Immigration
One of the most persistent arguments against enforcing immigration laws is a belief that immigration laws break up families. Looking at the State Department Data, the vast majority of immigration visas are given to immediate and family sponsored immigrants. Over 90% of immigration visas are given for the purpose of keeping families together.The statistics show that our laws favor the reunion of families over other concerns.
As for the breaking up of families. This is the result of international travel and not American laws.
When a person chooses to move over long distances (crossing national borders and all). That person is engaged in an activity that breaks familial bonds.
It is the individual's choice to emigrate that breaks up the family and not American law.
Yes, it is true that we witness the results of a decision. But the break up is not caused by our laws. The fact that we witness a drama does not mean we caused the drama.
I've noticed that all humans have human connections. People from a region are often related to a huge number of people. Developing the idea that immigration should take place in huge packs limits our nation's ability to accept immigrants from a diversity of places, because we can't just look at the individual who wants to immigrate, but all of the people attached to the individual.
The statistics show that our current system favors relatives of immigrants over all others.
It is really sad that moving abroad breaks up families, but I find it foolish to blame our immigration laws for breaking up families as some break of family must occur whenever people move abroad.
Wednesday, February 03, 2016
Dynamic SQL
I used to enjoy programming.
I stopped enjoying programming with the release of XHTML and PHP 5 (which included the PDO Object). XHTML made the code for web pages excessively terse. The ugly PDO statement in PHP somehow made me feel sick every time I used it.
I finally had to confront the beast and ask why the PDO object makes me feel like puking.
I went back and was looked at the code I was writing before the release of PDO and it dawned on me.
Through the years I had developed a rather dynamic approach to SQL.
The way my code worked is that I would pull the DDL for a group of Tables from the database. (DDL refers to the CREATE TABLE Statement). My program would generate HTML forms from the DDL.
When you press submit, the program would, again, pull the DDL from the database. Analyze the data according to the defined constraints on the table and dynamically produce the SQL. The program would call mysql_query and insert the data.
In other words, I could create a web form in the time that it takes to write a CREATE TABLE Statement.
I was actually preparing to submit the programs I used to GitHub.
PHP programmers: Imagine how much more productive you could be if the program you used automatically generated forms from your SQL Tables, and imagine that same program generated the SQL to validate and insert the code into your database.
The PDO program is built around a static approach to SQL.
The flow of a PDO program is as follows:
You open a connection. Define a SQL Statement. Bind the Data to the Statement then execute the query.
PDO assumes that that SQL is static. It expects the SQL statement to be fully formed before looking at the data.
My programs were all building SQL statements step by step. They would only execute the SQL if the data passed all of the constraints.
I was able to do more with the mysql_query() command than the PDOStatement Object because the former allowed for dynamic creation of SQL while the latter is built on a regressive static model for SQL.
To prove that the dynamic approach to SQL is better. Let's imagine a simple User_Preference table with 20 defined items.
The user pulls up the preferences page and update only one or two of the twenty items.
My program cannot know, in advance, what preferences the user will change until it looks at the data.
PDO fails because it expects the program to define the SQL before looking at the data.
The program must either loop through the data twice (The first time to create the SQL statement, and second time to bind the data to the statement) or it needs to make a copy of the data in a buffer to bind to the SQL statement.
I downloaded the source code for PHP. I was actually considering creating a branch of PDO that would allow for the creation of SQL statements. But, I don't feel comfortable with my skills in c at this time (and my web site is broken).
So, what I want to do is to get back to the point where I can generate forms from the DDL Statement for a single table.
Since this regressive PDO is the biggest block to this goal. I decided to start with it. Here is the public test page for the code. Here is the code for the Test Page and Object.
The base of this program is code that I wrote a decade ago. The original program worked as follows. It defined the constraints on the data. It then looked at the data in $_POST and built a SQL query.
The flow for this version is: The program makes a copy of an array. It then looks at the definitions for the columns and finally constructs the SQL. It is very inefficient.
Yes, I wrote this code on 1/30/2015. I spent from 1/30 to 2/3 writing test scripts. I wanted the test page to work against live data. But I finally decided I didn't like having a page that just generates INSERT and UPDATE commands for no reason out in public.
The Test Page now just generates some sample SQL, but does not execute the code.
The next step is to create an object that generates a web form. That will be easier. Unfortunately, I have to spend the next several hours running chores.
Perhaps, if I complete this project, I can return to the point where creating web pages was fun.
I stopped enjoying programming with the release of XHTML and PHP 5 (which included the PDO Object). XHTML made the code for web pages excessively terse. The ugly PDO statement in PHP somehow made me feel sick every time I used it.
I finally had to confront the beast and ask why the PDO object makes me feel like puking.
I went back and was looked at the code I was writing before the release of PDO and it dawned on me.
Through the years I had developed a rather dynamic approach to SQL.
The way my code worked is that I would pull the DDL for a group of Tables from the database. (DDL refers to the CREATE TABLE Statement). My program would generate HTML forms from the DDL.
When you press submit, the program would, again, pull the DDL from the database. Analyze the data according to the defined constraints on the table and dynamically produce the SQL. The program would call mysql_query and insert the data.
In other words, I could create a web form in the time that it takes to write a CREATE TABLE Statement.
I was actually preparing to submit the programs I used to GitHub.
PHP programmers: Imagine how much more productive you could be if the program you used automatically generated forms from your SQL Tables, and imagine that same program generated the SQL to validate and insert the code into your database.
The PDO program is built around a static approach to SQL.
The flow of a PDO program is as follows:
You open a connection. Define a SQL Statement. Bind the Data to the Statement then execute the query.
PDO assumes that that SQL is static. It expects the SQL statement to be fully formed before looking at the data.
My programs were all building SQL statements step by step. They would only execute the SQL if the data passed all of the constraints.
I was able to do more with the mysql_query() command than the PDOStatement Object because the former allowed for dynamic creation of SQL while the latter is built on a regressive static model for SQL.
To prove that the dynamic approach to SQL is better. Let's imagine a simple User_Preference table with 20 defined items.
The user pulls up the preferences page and update only one or two of the twenty items.
My program cannot know, in advance, what preferences the user will change until it looks at the data.
PDO fails because it expects the program to define the SQL before looking at the data.
The program must either loop through the data twice (The first time to create the SQL statement, and second time to bind the data to the statement) or it needs to make a copy of the data in a buffer to bind to the SQL statement.
I downloaded the source code for PHP. I was actually considering creating a branch of PDO that would allow for the creation of SQL statements. But, I don't feel comfortable with my skills in c at this time (and my web site is broken).
So, what I want to do is to get back to the point where I can generate forms from the DDL Statement for a single table.
Since this regressive PDO is the biggest block to this goal. I decided to start with it. Here is the public test page for the code. Here is the code for the Test Page and Object.
The base of this program is code that I wrote a decade ago. The original program worked as follows. It defined the constraints on the data. It then looked at the data in $_POST and built a SQL query.
The flow for this version is: The program makes a copy of an array. It then looks at the definitions for the columns and finally constructs the SQL. It is very inefficient.
Yes, I wrote this code on 1/30/2015. I spent from 1/30 to 2/3 writing test scripts. I wanted the test page to work against live data. But I finally decided I didn't like having a page that just generates INSERT and UPDATE commands for no reason out in public.
The Test Page now just generates some sample SQL, but does not execute the code.
The next step is to create an object that generates a web form. That will be easier. Unfortunately, I have to spend the next several hours running chores.
Perhaps, if I complete this project, I can return to the point where creating web pages was fun.
Tuesday, February 02, 2016
Train Wrecks
I heard that several runaway trains are headed full speed into Iowa and that no-one's done any sort of line maintenance in the state for years.
The press is excited by the event as we might be looking at one of the worst train wrecks in our life time.
As for me, I've stopped blogging because I really have no interest in train wrecks.
Both the two major parties seem to be getting worse and worse.
Despite the great communication technology we have, the voices that want to stop the train wreck just can't break through.
I like Ben Carson ... but I think he spent too much time trying to create a conservative image and I am not really sure what direction he would lead the country.
I would love to see Rand Paul playing a bigger role in the GOP because the Pauls have thought through questions about liberty better than most of the GOP candidates.
As for the Democrats. Isn't anyone else interested in the strange phenomena that their Party only has three candidates and their campaigns seem more orchestrated than the GOP?
If the Democrats really were the party of the people one would expect a much more raucous primary.
Despite the fact that it is better organized than the GOP. The Democrats are more like a high speed passenger train running out control while the GOP is just a bunch of freight trains running out of control.
Freight train collisions are visually more appealing than high speed passenger train collisions, but the death and carnage of a TGV running off track is much higher than an freight train pile up.
Presidential politics is a train wreck. The answer to our nation's malaise will not be found in politics but in the people.
I think the best presidential candidate is the candidate who is most likely to listen to Congress and the people.
I see Trump as the worst candidate. I am hoping that the party will simply coalesce around who is every seen as the best candidate to beat Trump.
As for this year's crop of candidates. That is really the best the GOP can hope for.
My biggest fear is that Democrats will cross party lines to vote for Trump. If Trump wins the GOP nomination, the Democrats will be able to run a campaign on wealth envy and anti-capitalist sentiment.
If Trump wins, we will not only have an arrogant jerk as president. The nation will turn decidedly left as the Democrats run a pure Marxian campaign against Trump.
Both the Press and Socialist Left want Trump to win. I hope he stumbles.
As for me. I have no interest in watching train wrecks. So, I am just diverting my eyes while trying to find a better direction.
The press is excited by the event as we might be looking at one of the worst train wrecks in our life time.
As for me, I've stopped blogging because I really have no interest in train wrecks.
Both the two major parties seem to be getting worse and worse.
Despite the great communication technology we have, the voices that want to stop the train wreck just can't break through.
I like Ben Carson ... but I think he spent too much time trying to create a conservative image and I am not really sure what direction he would lead the country.
I would love to see Rand Paul playing a bigger role in the GOP because the Pauls have thought through questions about liberty better than most of the GOP candidates.
As for the Democrats. Isn't anyone else interested in the strange phenomena that their Party only has three candidates and their campaigns seem more orchestrated than the GOP?
If the Democrats really were the party of the people one would expect a much more raucous primary.
Despite the fact that it is better organized than the GOP. The Democrats are more like a high speed passenger train running out control while the GOP is just a bunch of freight trains running out of control.
Freight train collisions are visually more appealing than high speed passenger train collisions, but the death and carnage of a TGV running off track is much higher than an freight train pile up.
Presidential politics is a train wreck. The answer to our nation's malaise will not be found in politics but in the people.
I think the best presidential candidate is the candidate who is most likely to listen to Congress and the people.
I see Trump as the worst candidate. I am hoping that the party will simply coalesce around who is every seen as the best candidate to beat Trump.
As for this year's crop of candidates. That is really the best the GOP can hope for.
My biggest fear is that Democrats will cross party lines to vote for Trump. If Trump wins the GOP nomination, the Democrats will be able to run a campaign on wealth envy and anti-capitalist sentiment.
If Trump wins, we will not only have an arrogant jerk as president. The nation will turn decidedly left as the Democrats run a pure Marxian campaign against Trump.
Both the Press and Socialist Left want Trump to win. I hope he stumbles.
As for me. I have no interest in watching train wrecks. So, I am just diverting my eyes while trying to find a better direction.
Monday, January 25, 2016
NamesSpaces and Base Instincts
PHP 5.3 included a new superstructure called "namespaces" that allows people to divide functions (and consequently the people who write functions) into a hierarchical structure.
Just as titles go before the names of Dukes, Lords and Kings. The namespace syntax goes at the top of the function. When the compiler sees the magical word "namespace" it takes a extra step to parse the file and prepend all of the functions with backslash delimited strings to put each function in its place in the the hierarchy.
If I put the line:
namespace Lord\Kevington;
at the top of my code, the program would add the string "\Lord\Kevington\" to my programs.
If I put the code:
namespace musings\of\peasants;
At the top of your programs; then the compiler would properly encode your work as the musings\of\peasants. The backslash denotes the different layers in the programmatic hierarchy.
If I had a function called said(). The compiler would automagically change the function name to: \Lord\Kevington\said() before compiling the programs.
It would do the same to the \musings\of\peasants ... but ... sorry, while I am thinking of profound things to put in \Lord\Kevington\Said(), I am just not all that interested in the musings of peasants.
The stated purpose of namespaces is to avoid name collisions. Collisions occur when two programmers use the same function name. The compiler balks when the programmers try to combine their code in a single unit and one of the programmers has to change a function name to make the code work.
Now, PHP is a language designed to produce web pages. Web pages require highly optimized code that is executed in a single call.
A good web program is streamlined and a good web developer knows each and every line of code used in the production of the production of the page.
To be frank, if the framework used to create web pages is having problems with namespace collisions, then the proper course of action is to streamline the framework.
And, to be fair, PHP was one of the last programs to implement namespaces. I suspect that a primary reason that PHP implemented namespaces was simply to be consistent with Java and what is taught at the university.
I took a long and serious look at namespaces when namespaces were released with PHP 5.3..
Since namespaces are simply about the internal organization of code and do not in anyway enhance the experience of visitors to my site, I decided not to implement namespaces.
I've noticed a large number of extremely loud voices on Stackoverflow and GitHub pushing namespaces. So I gave them a good second look over these last several days.
Namespaces seem to be preferred tool by the political animals that programmers should try to keep out of the programming department.
The problem of namespaces is that, since namespaces were designed as a meta-element that underlies all of the code in a program, once one person starts implementing namespaces the namespaces soon take over all code.
Namespace technology is very similar in form to the ideologies developed by Hegel and Marx. The technology works at a root level to divide things up so that things can be captured and controlled by a ruling class.
When people set in to dividing things up at a root level, you can become powerful and force your political enemies into subservience.
People who the little reindeer games called "namespaces" are political enemies.
If you are politically ambitious programmer, you can start simply by including namespaces in your projects. This sets you up to becoming the politically powerful keeper of the keys.
The cool part about the game is that, since it takes place at a root level, once the namespace game is started everybody has to play or get excluded.
Namespace technology is a political tool used by base political element of the IT world to decide who gets included and who gets excluded. Sadly, IT Departments are often the hotbeds of interoffice politics.
The keeper of the namespaces is one of the most powerful hacks in an IT department full of hacks because, the person who designs the namespace hierarchy gets to decide who is included and who is excluded.
Isn't that spiffy?!
Of course, the really, really, really funny thing about namespaces is that the technology doesn't actually solve a problem.
Namespaces are as susceptible to name collisions as are all of the other conventions programmers adopted to avoid name collisions. In fact I can guarantee that name collisions will take place.
Imagine a situation where a large project branches. Two groups begin to develop extremely similar code. Anyone that tries to combine elements of these divergent project will have name collisions taking place at both the namespace level and the code level.
Yes, people will try to solve the conflicts by adding layers to the namespaces hierarchy, but each of these layers simply add to the long term administrative cost of the code.
Anyway, I spent the last several days researching namespaces and deciding if I want to use the insipid technology. I hate the technology, but since its a root technology, I know that those that don't play along with the game get excluded.
My heart screams RESIST, while my brain says you must go along to get along. As for now, I will maintain two versions of my code. One that uses namespaces and one that does not and I'll decide later which project to keep and which to ditch.
I really hate these political drones who want the world separated in political hierarchies. All they do is make work while adding no value.
The really funny part about namespaces is that namespaces themselves create
Namespaces and Security
Note, I haven't examined all of the security ramifications of namespaces. Namespaces allow programmer to create two very similar code bases. (This is not hard to do with the copy command.)
I imagine that one could play some really good jokes on fellow programmers by switching namespaces. What is the difference between:
namespace all;
and
namespace a11;
?
Anything that makes it easy to switch code on a project gives me the willies.
Just as titles go before the names of Dukes, Lords and Kings. The namespace syntax goes at the top of the function. When the compiler sees the magical word "namespace" it takes a extra step to parse the file and prepend all of the functions with backslash delimited strings to put each function in its place in the the hierarchy.
If I put the line:
namespace Lord\Kevington;
at the top of my code, the program would add the string "\Lord\Kevington\" to my programs.
If I put the code:
namespace musings\of\peasants;
At the top of your programs; then the compiler would properly encode your work as the musings\of\peasants. The backslash denotes the different layers in the programmatic hierarchy.
If I had a function called said(). The compiler would automagically change the function name to: \Lord\Kevington\said() before compiling the programs.
It would do the same to the \musings\of\peasants ... but ... sorry, while I am thinking of profound things to put in \Lord\Kevington\Said(), I am just not all that interested in the musings of peasants.
The stated purpose of namespaces is to avoid name collisions. Collisions occur when two programmers use the same function name. The compiler balks when the programmers try to combine their code in a single unit and one of the programmers has to change a function name to make the code work.
Now, PHP is a language designed to produce web pages. Web pages require highly optimized code that is executed in a single call.
A good web program is streamlined and a good web developer knows each and every line of code used in the production of the production of the page.
To be frank, if the framework used to create web pages is having problems with namespace collisions, then the proper course of action is to streamline the framework.
And, to be fair, PHP was one of the last programs to implement namespaces. I suspect that a primary reason that PHP implemented namespaces was simply to be consistent with Java and what is taught at the university.
I took a long and serious look at namespaces when namespaces were released with PHP 5.3..
Since namespaces are simply about the internal organization of code and do not in anyway enhance the experience of visitors to my site, I decided not to implement namespaces.
I've noticed a large number of extremely loud voices on Stackoverflow and GitHub pushing namespaces. So I gave them a good second look over these last several days.
Namespaces seem to be preferred tool by the political animals that programmers should try to keep out of the programming department.
The problem of namespaces is that, since namespaces were designed as a meta-element that underlies all of the code in a program, once one person starts implementing namespaces the namespaces soon take over all code.
Namespace technology is very similar in form to the ideologies developed by Hegel and Marx. The technology works at a root level to divide things up so that things can be captured and controlled by a ruling class.
When people set in to dividing things up at a root level, you can become powerful and force your political enemies into subservience.
People who the little reindeer games called "namespaces" are political enemies.
If you are politically ambitious programmer, you can start simply by including namespaces in your projects. This sets you up to becoming the politically powerful keeper of the keys.
The cool part about the game is that, since it takes place at a root level, once the namespace game is started everybody has to play or get excluded.
Namespace technology is a political tool used by base political element of the IT world to decide who gets included and who gets excluded. Sadly, IT Departments are often the hotbeds of interoffice politics.
The keeper of the namespaces is one of the most powerful hacks in an IT department full of hacks because, the person who designs the namespace hierarchy gets to decide who is included and who is excluded.
Isn't that spiffy?!
Of course, the really, really, really funny thing about namespaces is that the technology doesn't actually solve a problem.
Namespaces are as susceptible to name collisions as are all of the other conventions programmers adopted to avoid name collisions. In fact I can guarantee that name collisions will take place.
Imagine a situation where a large project branches. Two groups begin to develop extremely similar code. Anyone that tries to combine elements of these divergent project will have name collisions taking place at both the namespace level and the code level.
Yes, people will try to solve the conflicts by adding layers to the namespaces hierarchy, but each of these layers simply add to the long term administrative cost of the code.
Anyway, I spent the last several days researching namespaces and deciding if I want to use the insipid technology. I hate the technology, but since its a root technology, I know that those that don't play along with the game get excluded.
My heart screams RESIST, while my brain says you must go along to get along. As for now, I will maintain two versions of my code. One that uses namespaces and one that does not and I'll decide later which project to keep and which to ditch.
I really hate these political drones who want the world separated in political hierarchies. All they do is make work while adding no value.
The really funny part about namespaces is that namespaces themselves create
Namespaces and Security
Note, I haven't examined all of the security ramifications of namespaces. Namespaces allow programmer to create two very similar code bases. (This is not hard to do with the copy command.)
I imagine that one could play some really good jokes on fellow programmers by switching namespaces. What is the difference between:
namespace all;
and
namespace a11;
?
Anything that makes it easy to switch code on a project gives me the willies.
Tuesday, January 19, 2016
Password Program
It is very important for web designers to protect the passwords with which they are entrusted.
A huge security risk happens when hackers break into a site and steal the user database with all of the passwords. If the passwords are poorly secured, hackers can figure out the preferred user name of a person and their preferred password.
(Many users use the same userName/PassWord combination on all sites. If a hacker cracks one password the hacker can go after accounts on different servers. It is wise to use different passwords for every online account. This is especially true of any account involving money.)
Web programs need to encode passwords in ways that make it difficult for the hacker to reassemble the password.
There are some nice industry standard algorithms that do a good job encoding passwords. But hackers have built massive "rainbow tables" that help them discern encoded passwords.
The standard PHP password is called password_hash() . This program tries to thwart hackers by creating a 60 character hash from the password. The PHP manual says they plan to move to a 72 character string shortly.
Storing 72 characters for a password seems absurd to me.
Since I have a small site. I think it will be better to create my own encoding program. The program does some fancy footwork with primes and bits to create a hash that is difficult to unhash. Here is the basic code used in my program. This second link is a form that tests the hash generator.
The program is still weak on handling multi-byte UTF8 characters and was optimized for passwords from 8 to 16 characters.
The reason that I wrote the program was to say that If we are forced to produce horrendously long password hashes, the password programs should output binary strings and not super long strings of characters.
I will change the value of the primes on my production server and intend to rewrite the program in c, just as soon as I learn to program in c. I need to improve the UTF8 support. Right now it uses each character in a multi-byte character, when I should only look at the last character.
The output is a 16 character binary string which is a bit more manageable than a 72 character string.
Off course, storing passwords in a Pain in the Tush. I've actually started using Oauth for authentication. Of course, that means that when a hacker breaks into a Twitter account the hacker can attack all the sites using OAuth.
A huge security risk happens when hackers break into a site and steal the user database with all of the passwords. If the passwords are poorly secured, hackers can figure out the preferred user name of a person and their preferred password.
(Many users use the same userName/PassWord combination on all sites. If a hacker cracks one password the hacker can go after accounts on different servers. It is wise to use different passwords for every online account. This is especially true of any account involving money.)
Web programs need to encode passwords in ways that make it difficult for the hacker to reassemble the password.
There are some nice industry standard algorithms that do a good job encoding passwords. But hackers have built massive "rainbow tables" that help them discern encoded passwords.
The standard PHP password is called password_hash() . This program tries to thwart hackers by creating a 60 character hash from the password. The PHP manual says they plan to move to a 72 character string shortly.
Storing 72 characters for a password seems absurd to me.
Since I have a small site. I think it will be better to create my own encoding program. The program does some fancy footwork with primes and bits to create a hash that is difficult to unhash. Here is the basic code used in my program. This second link is a form that tests the hash generator.
The program is still weak on handling multi-byte UTF8 characters and was optimized for passwords from 8 to 16 characters.
The reason that I wrote the program was to say that If we are forced to produce horrendously long password hashes, the password programs should output binary strings and not super long strings of characters.
I will change the value of the primes on my production server and intend to rewrite the program in c, just as soon as I learn to program in c. I need to improve the UTF8 support. Right now it uses each character in a multi-byte character, when I should only look at the last character.
The output is a 16 character binary string which is a bit more manageable than a 72 character string.
Off course, storing passwords in a Pain in the Tush. I've actually started using Oauth for authentication. Of course, that means that when a hacker breaks into a Twitter account the hacker can attack all the sites using OAuth.
Subscribe to:
Posts (Atom)