"First they came for the verbs, and I said nothing because verbing weirds language. Then they arrival for the nouns, and I speech nothing because I no verbs." Peter Ellis
"DOM it and upload it"
"First they came for the verbs, and I said nothing because verbing weirds language. Then they arrival for the nouns, and I speech nothing because I no verbs." Peter Ellis
"DOM it and upload it"
Monica Lewinsky Update
After a relaxing bath, Monica Lewinsky was looking at herself naked
in a mirror...remembering her time with Bill Clinton.
Her frustration over her inability to lose weight was depressing her.
In an act of desperation, she decided to call on God for help...
"God, if you take away my love handles, I'll devote my life to you," she prayed.
And just like that, her ears fell off!
A mechanic was removing a cylinder head from the motor of a BMW M3 when he
spotted a well-known cardiologist in his workshop.
The cardiologist was there waiting for the service manager to come and
take a look at his car when the mechanic shouted across the garage,
"Hey Doc, want to take a look at this?"
The cardiologist, a bit surprised walked over to where the mechanic was working on the car.
The mechanic straightened up, wiped his hands on a rag and asked,
"So Doc, look at this engine. I opened its heart, took the valves out, repaired or
replaced anything damaged, and then put everything back in, and when I
finished, it worked just like new. So how is that I make £25K a year and
you make £1.2M when you and I are doing basically the same work?"
The cardiologist paused, leaned over, and then whispered to the mechanic.....
"Try doing it with the engine running"
@jackson said:
The sad thing about this attitude is that it is not based on either knowledge or experience, purely habit.
While I think this is true on the surface the underlying cause is protectionism - much in the same way as church services and prescriptions used to be in Latin and computer programming in Fortran. Sometime soon html and javascript will do everything we need to achieve using machine rather than paper-like processes. Elites will be defined by levels of creativity.
Well it's Sunday ...
Edit: ... and another Toffler quote for good measure:
"Idea-assassins rush forward to kill any new suggestion on the grounds of its impracticality, while defending whatever now exists as practical, no matter how absurd."
@dan rathbun said:
...
html = File.readlines('somefile.txt')
I use a class made with jAPI by Vladica Savic to read the textfile and pre tags if I want same format html. Probably old hat but works.
Isn't all this similar to an island's area being finite whereas its shoreline is --- practically --- infinite?
Nothing to do with the last posts, but I found by using the user preferences
{
"auto_complete"; false,
"color_scheme"; "Packages/Color Scheme - Default/iPlastic.tmTheme",
"dictionary"; "Packages/Language - English/en_GB.dic",
"font_face"; "Courier new",
"font_size"; 11.0
}
the display is much easier to read ... in fact similar to NP++
If you've ever worked for a boss who reacts before getting the facts and thinking things through, you will love this!
Arcelor-Mittal Steel, feeling it was time for a shakeup, hired a new MD. The new boss was determined to rid the company of all slackers.
On a tour of the facilities, the MD noticed a guy leaning against a wall. The room was full of workers and he wanted to let them know that he meant business. He asked the guy, "How much money do you make a week?"
A little surprised, the young man looked at him and said, "I make £400 a week. Why?"
The MD said, "Wait right here." He walked back to his office, came back in two minutes, and handed the guy £1,600 in cash and said, "Here's four weeks' pay. Now GET OUT and don't come back."
Feeling pretty good about himself, the MD looked around the room and asked, "Does anyone want to tell me what that little beggar did here?"
From across the room a voice said,
"He was the Pizza delivery guy from Domino's."
If you sit a url in a webdialog you can use something like http://www.tizag.com/htmlT/htmlupload.php
@caseychamberlain said:
@richmorin said:
As an example of quirky behavior, execute_script() imposes a fairly small (and undocumented) limit on the size of the executed code string. So, although the call can be used to transfer data (eg, as JSON), any significant amount of data will require multiple calls.
What is the limit? I was relying on this to push (sizeable) model data into a silverlight plugin in the WebDialog. I had assumed I needed to chunk, but it would really help to know what that limit is, so I can chunk to that size.
Thanks!
This is the overriding problem:
https://developers.google.com/sketchup/docs/ourdoc/webdialog#add_action_callback
A customer dropped off a flash drive containing the image that was required to make the cake ...
@bryan k said:
What a coincidence ...
... and I have been making some tracks to run them on. When a bit more developed I will link up with Sketchup to provide 3D close ups to show off locos, stations, cuttings and so on, something like Street view and Google maps. For a look at what I have done to date open this in Chrome browser.
There is too much here that I feel uncomfortable with so I won't intrude any more .. but will still watch with interest.
@thomthom said:
It's not that JavaScript and Ruby is different in what it allow the developer to do. It's that Websites doesn't share their environment - each window or tab get a separate environment. Each WebDialog is the same.
If JS was picked in SketchUp as the API language you'd have the same problem of namespace issues. A function not wrapped in a namespace would conflict with another.
One could ask why each plugin doesn't get their won environment - but then consider how much overhead that would require to run a separate instance of Ruby for each and everyone of hundreds of plugins. Also - each plugin is accessing the same model entities - how could you place each plugin in a separate environment and still give access to the same model data? You'd get much of the same issues you get with multi-threading.
I think there are things here that could be usefully discussed but for the moment I've been totally floored by TIG's exposure.
How many Ruby plug-in users know about these unbelievable things you have noted especially:
@tig said:
We have to trust 3rd-party scripts will do no harm
it is relatively simple to write a short Ruby that'd cause complete and utter havoc
for example it could auto-load then auto-run and then find all files in the Plugins and Tools folders etc[!*] and then erase them [including itself, to remove the evidence!] - but please don't try this at home !
But... you see how unscrupulous authors could mess with your Sketchup installation to their own ends - especially with .rbs files !!
The only protection is Prohibition no 4?
*emphasised by me
Now that you are awake I want to say that I find what appear to me to be contradictions in what Dan said but I don't have the wherewithal to take them up in a proactive way. For example he wrote:
@unknownuser said:
Ruby is a dynamic extensible language, whose modules and classes are MEANT to be modified.
But then warns of Trimble's prohibition
@unknownuser said:
- You will not interfere with or disrupt the APIs or the servers or networks providing the APIs.
and
@unknownuser said:
So we cannot freeze base classes permanently, otherwise plugins using some of the extended Ruby libraries will not work.
If these are not contradictions what I am misunderstanding?
I would really like to see the discussion come to a conclusion/recommendation that can be understood by all ... or at least move in that direction.