Skip to main content

Home/ Sensorica Knowledge/ Group items tagged method

Rss Feed Group items tagged

Tiberius Brastaviceanu

Google Apps Script - introduction - 0 views

  • installing and running existing scripts from the Script Gallery
  • Spreadsheet
  • Insert
  • ...27 more annotations...
  • Install
  • Close
  • Choose a script and click Run
  • The onOpen function adds the Finance menu and the menu item Get Stock to the Spreadsheet
  • the onOpen() function
  • code function onOpen() declares the function and its name
  • code between the curly braces is the code that performs actions when you run the onOpen() function
  • the SpreadsheetApp.getActiveSpreadsheet method to obtain a spreadsheet object representing the currently-active spreadsheet.
  • invoking methods on ss, the script can manipulate the currently-active spreadsheet.
  • method is code that is associate exclusively with a class and performs a particular task on objects of that class
  • insert the column headers into the corresponding cells
  • the getRange() method
  • setValue() method
  • identify
  • arguments
  • You use arguments to pass data to a method.
  • String data
  • is in quotation marks
  • line var row = 2; creates a variable row with an initial value of 2
  • a counter
  • while (true) loop
  • if loop
  • if (!symbol) break; causes the script to exit from the while loop when there is no stock symbol in the variable symbol
  • The exclamation point states a negative (not) condition
  • continues to run, incrementing the row each time until it reaches an empty row
  • the break causes the script to exit from the loop and finish.
  • To comment out the code, put two forward slashes at the beginning of each line:
Tiberius Brastaviceanu

Google Apps Script - introduction - 0 views

  • Use the Script Editor to write and run scripts, to set triggers, and to perform other actions such as sharing scripts.
  • start the Script Editor from a Google Site
  • declares a function called myFunction()
  • ...69 more annotations...
  • You can perform the following tasks from the Script Editor.
  • pening, deleting, renaming, and saving scripts
  • Cutting, copying, and pasting text
  • Find and replace
  • Setting a time zone
  • scripts with time-based triggers
  • Running functions
  • Viewing log messages
  • revision history
  • write pseudocode first
  • When you're planning a script
  • narrative version of what the script needs to do.
  • A particular script is associated with one and only one Google Spreadsheet.
  • If you make a copy of the Spreadsheet, the script is also copied.
  • A particular Spreadsheet can have multiple scripts associated with it.
  • use the onOpen event handler in more than one script associated with a particular Spreadsheet, all scripts begin to execute when you open the Spreadsheet and the order in which the scripts are executed is indeterminate.
  • event handler is a function executed when a particular event takes place.
  • see Running Scripts in Response to an Event.
  • A script cannot currently call or create another script and cannot call functions in another script.
  • If you want to store the results of a function, you must copy them into a spreadsheet cell.
  • You can trigger Apps Script events from links that are embedded in a Google Site. For information about how to do this, see Using Apps Scrip in Your Ssite.
  • You can insert a script into a Site as a gadget.
  • you must grant permission for the script to run as a service.
  • You also designate whether only you can invoke the service or whether all members of your domain can invoke the service.
  • you can assign functions within the script any arbitrary name.
  • The instructions in a function must be enclosed within curly braces.
  • event handler
  • when a spreadsheet is opened,
  • when a script is installed
  • when a spreadsheet is edited
  • at times you choose
  • menu item
  • Using a drawing or button embedded in a Spreadsheet
  • Using a custom function that is referenced as a Spreadsheet function
  • Clicking the Run button
  • object-oriented programming languages
  • Google Apps Script uses the JavaScript language.
  • Operations
  • are performed using the objects and methods described in the API documentation.
  • An API provides pre-packaged code for standard tasks you need to accomplish in scripts or programs.
  • API includes objects that you use to accomplish tasks such as sending email, creating calendar entries
  • A method describes the behavior of an object and is a function attached to an object.
  • MailApp
  • use to create and send email
  • To send email, you invoke the sendEmail method and provide values for the method arguments.
  • Google Apps Script can access or retrieve data in different formats in different ways.
  • A custom function
  • is called directly from a cell in a Spreadsheet using the syntax =myFunctionName()
  • they cannot set values outside the cells
  • have some restrictions not shared by other functions
  • cannot send email
  • cannot operate on a Google Site
  • cannot perform any operations that require user authorization
  • cannot perform any operations that require knowledge of who the user
  • onInstall function
  • onOpen function
  • Other functions run when you run them manually or when they are triggered by clicking
  • Custom functions and formulas in the spreadsheet execute any time the entire Spreadsheet is evaluated or when the data changes in the function or formula's cell.
  • share the Spreadsheet
  • publish the script to the Script Gallery
  • spreadsheet template
  • the color coding for that line will not be correct
  • A script with incorrect syntax or other errors does not run.
  • The Script Editor includes a debugger.
  • view the current state of variables and objects created by a script while that script runs.
  • step through the code line by line as it executes or set breakpoints
  • The debugger does not work with custom functions, onEdit functions, event triggers, or scripts running as a service.
  • use the debugger to find errors in scripts that are syntactically correct but still do not function correctly.
  • Functions ending in an underscore (_), for example, internalStuff_(), are treated differently from other functions. You do not see these function in the Run field in the Script Editor and they do not appear in the Script Manager in the Spreadsheet. You can use the underscore to indicate that users should not attempt to run the function and the function is available only to other functions.
Kurt Laitner

Value Creating Service Systems: From Service Systems to Digital Lives - 0 views

  •  
    "Service dominant logic suggest that value is always co-created in context of use and experience. Co-creation is not an option (Vargo and Lusch, 2004, 2008). "Moving things along meant a focus on 2 key aspects. philosophy and methods. "An SD logic approach is not one that you can run a survey of attitude, behaviours or intentions. The person is embedded in his actions and practices of value creation. The focus on context means the unit of analysis is in the sociology of real life behaviours. A sociological approach makes methods a problem because we've inherited a world where we have created tools from analysing water in a bucket, not by looking at its behaviour in a river. "GD logic is compelling not only because it is entrenched for over 500 years, but also because you could measure its constructs. GDP, sales, revenues, CPI - they are all constructs of a GD logic society. What SD logic needed was better methods and new constructs. "To that end, and rather ironically, I found an ally in digital technology. Here was a world of sensors and actuators with an enthusiastic community looking for novel ways of deploying them into homes and buildings i.e. the internet-of-things. "I also found, as an ally, the thinking around new economic and business models. Here was another strand of literature largely marginalised by mainstream business literature because it was (the way I interpreted it) taking a systemic view of value proposition, value creation and value capture (ie, change one, change all) and the way the organisation had to be agile and transformed for it - which sat very nicely with SD logic. "Customised products are firm centric. Personalised products are customer initiated and empowering. Personalised products also tend to move the product into becoming platforms to afford co-creation, which advanced the notion of symmetry in value co-creation further. Finally, with the advent of platforms, the economics of 2 or multi-sided markets completed my set of theoretica
  •  
    an interesting starting point for research
a-alonso

Traditional Methods of Cell Lysis | Thermo Fisher Scientific - US - 0 views

  •  
    The protein extraction
Kurt Laitner

You'll Never Guess How The Unusual Vaavud Wind Meter Wirelessly Connects To Your Phone ... - 1 views

  •  
    interesting method of interacting with the smart phone
Tiberius Brastaviceanu

Google Apps Script - introduction - 0 views

  • Google Apps Script provides you with the ability to build a user interface for displaying or capturing information.
  • Viewing the Available User Interface Elements
  • Your scripts can display the user interface in two ways:
  • ...48 more annotations...
  • from a Spreadsheet
  • from a Site
  • As a stand-alone servlet
  • Deciding Whether to Run a Script from a Spreadsheet or as a Service
  • The built-in code autocomplete functionality in the editor requires you to type the trailing period that follows app.
  • Plan the script. What tasks should the script accomplish?
  • Write down the specific information you want to display to or collect from your users.
  • Draw the user interface
  • Determine what the script and interface should do in response to any user input.
  • Determine the conditions for exiting the script.
  • you need a UiApp application object to contain the user interface elements. After you create the UiApp application object, you can add buttons, dialog boxes, panels, and other elements to the UiApp application object.
  • The general syntax for these operations is as follows:
  • To create a UiApp application object, use the syntax var your_application_object_name = UiApp.createApplication();
  • To create a user interface element and associate it with your UiApp application object, use the syntax var your_ui_element_name= your_application_object_name.createElement_Name();.
  • To add one user interface element to another
  • use the syntax your_ui_element_name1.add(your_ui_element_name2);
  • a button with the text Press Me on it:
  • creates a vertical panel.
  • other kinds of panels
  • pop-up panels, stack panels, focus panels, form panels, and so on.
  • code for displaying your button on the panel:
  • add the panel to the application:
  • nstruct Google Apps Script to display the interface elements:
  • You can create the user interface elements in any order.
  • the display order
  • Creating the elements and adding them to your application are separate steps requiring separate instructions.
  • a short script that does nothing but display a panel with a button on it.
  • You can chain together setter methods
  • sets its title
  • set the size of the object:
  • how to use Grid objects and the setWidget method to create a more complex layout and also how to create text boxes and label them.
  • To make a user interface useful, you need the ability to update a Spreadsheet with information a user enters from the interface.
  • a short script that responds to an action in the interface by updating the Spreadsheet.
  • looping structure in the script to keep the panel displayed and active
  • Server-side means that the actions are performed by a server
  • same script, with functions added that enable the form to be used multiple times before a user chooses to exit.
  • script collects some information from text fields on a panel and writes that information into the Spreadsheet.
  • You can make a script's user interface available to users from inside a Spreadsheet or Site or by running it separately as a service.
  • how to make the user interface as a service.
  • A script that provides a stand-alone user interface must invoke the doGet(e) function or the doPost(e) function for an HTML form submit.
  • A script that provides the user interface from the Spreadsheet invokes doc.show(app).
  • The doGet(e) function takes the argument e, passing in the arguments for the user interface, including the user name of the person invoking the script.
  • After you write the script, you publish it as a service. During the publishing process, you define who has access to the script.
  • In a Google Apps domain, you can publish the script so that only you have access or so that everyone in the domain has access.
  • In a Google consumer account, you can publish the script so that only you have access or so that everyone in the world has access.
  • Updating a Spreadsheet from the User Interface, the user interface is displayed from the Spreadsheet where the script is stored. The following code defines how the user interface is displayed:
  • Here's the skeleton code for displaying a user interface as a stand-alone service:
  • some aspects of the two ways to display a user interface.
Tiberius Brastaviceanu

Google Apps Script - introduction - 0 views

  • control over Google products
  • can access and control Google Spreadsheets and other products
  • scripts
  • ...44 more annotations...
  • run directly on Google servers in order to provide direct access to the products they control.
  • can also use Google Apps Script from Google Sites
  • Google Apps Script Template Gallery
  • Google Apps Script Blog
  • guide contains the information you need to use Google Apps Script, a server-side scripting language, based on JavaScript, that runs on Google's servers alongside Google Apps
  • enable varying degrees of interactivity among the applications
  • easy enough to use that you don't have to be a programmer to create scripts.
  • use it to automate complex tasks within Google Apps
  • You don't have to be a programmer to use Google Apps Script
  • A script is a series of instructions you write in a computer language to accomplish a particular task. You type in the instructions and save them as a script. The script runs only under circumstances you define.
  • The Google Apps Script API provides a set of objects. You can use these objects and their associates methods to access Google Docs and Spreadsheets, Gmail, Google Finance, and other Google applications.
  • To run a script, you must first add the script to a Google Spreadsheet or Google Site using the Script Editor.
  • You can retrieve information from a wide selection of Google Apps and Services and from external sources, including web pages and XML sources. You can use Google Apps Script to create email, spreadsheets, pages on Google Sites, and files in the Google Docs Document List.
  • The instructions in a script are grouped into functions.
  • objects
  • methods
  • for such tasks
  • Create pages on a Google Site
  • Customize a Spreadsheet
  • Send email based on information in a Spreadsheet
  • You can manipulate
  • numeric
  • financial
  • string
  • an XML document
  • controlling data in the following applications
  • Spreadsheets
  • Google Document List
  • Contacts
  • Calendar
  • Sites
  • Google Maps
  • create and display interactive user interface elements
  • interact with relational database management systems
  • create folders, subfolders, and files in the Google Docs document list
  • access to user, session, and browser information
  • access to web services
  • extract data from XML documents and then manipulate that data
  • obtain translations of text from one language to another
  • send email
  • UrlFetch services
  • encode and decode strings and format dates
  • store properties on a per-script and per-user basis
  • create, delete and update contact information for individuals and for groups in Google Contacts
Francois Bergeron

Stretchable electronics to simplify heart surgery? - 0 views

  • Currently this catheter method requires the use of three different devices, which are inserted into the heart in succession: one to map the heart's signals and detect the problem area, a second to control positions of therapeutic actuators and their contact with the epicardium, and a third to burn the tissue away.
  • The device is designed to deliver critical, high quality information - such as temperature, mechanical force, and blood flow - to the surgeon in real time.
Philippe Comtois

A Comparison of Commercially-Available Human Skeletal Muscle Cells and Media for Resear... - 2 views

  •  
    IVAN: interesting for CSA project
Francois Bergeron

Robot's Gentle Touch Aids Delicate Cancer Surgery - 0 views

  • Surgeons have developed new minimally invasive surgery (MIS) techniques and instruments so that procedures that would previously have required a large incision can now be performed through a tiny 10mm cut.
  • University of Western Ontario and Canadian Surgical Technologies and Advanced Robotics (CSTAR) in London, Ontario
  • The researchers used a torque sensor to measure the force of the palpations.
  • ...2 more annotations...
  • Using tactile MIS sensing instruments under robotic control reduces the maximum force applied to the tissue by over 35% compared to a human controlling the same instrument. Accuracy in detecting the tumours was also far greater with the robot - between 59 and 90% depending on the robot control method used for palpation.
  • If developed further, the authors suggest that this type of instrument would particularly benefit surgeons performing lung tumour resection, where tissue often shifts significantly.
Francois Bergeron

United States Patent: 5316950 - 0 views

  • One method for measuring contaminants which has been extensively discussed is the use of fiber-optic guided systems for in situ spectroscopy and chemical sensing,
  • Recently, a cooperative effort with many participants
  •  
    optical measurement and strain gauge
Tiberius Brastaviceanu

Proposal - Food SFS-08-2014 - 1 views

  • development of more resource-efficient and sustainable food production and processing
  • competitive and innovative
    • Tiberius Brastaviceanu
       
      We are proposing collaborative ways, here the accent is put on competitive ways 
    • Tiberius Brastaviceanu
       
      We are proposing collaborative methods. Here, the accent is put on COMPETITIVE ways for a "sustainable circular economy"
  • ...29 more annotations...
  • reduction in water and energy use
  • gas emissions and waste generation
  • improving the efficiency
  • ensuring or improving shelf life, food safety and quality
  • competitive eco-innovative processes should be developed
  • sustainable circular economy
  • Intellectual Property (IP)
  • In phase 1, a feasibility study
  • technological/practical as well as economic viability of an innovation idea/concept with considerable novelty to the industry sector
  • to establish a solid high-potential innovation project
  • increase profitability of the enterprise through innovation
  • increase the return in investment in innovation activities
  • The proposal should contain an initial business plan based on the proposed idea/concept.
  • apply to phase 1 with a view to applying to phase 2 at a later date, or directly to phase 2.
  • EUR 50,000. Projects should last around 6 months
    • Tiberius Brastaviceanu
       
      Phase 1 has a classical language. We would need to mask our true identity and beliefs writing this grant proposal. I don't think it's for us... But this is only my opinion. 
  • In phase 2, innovation projects will be supported that address the specific challenge of Sustainable Food Security
  • demonstrate high potential in terms of company competitiveness and growth underpinned by a strategic business plan
    • Tiberius Brastaviceanu
       
      This is more about individual companies and their competitive advantage. Not about networks and not about collaboration and sharing. 
    • Tiberius Brastaviceanu
       
      Moreover, they put emphasis on IP protection and ownership, when we must talk about commons, knowledge commons applied to agriculture, sharing platforms, etc. 
  • Proposals shall be based on an elaborated business plan either developed through phase 1 or another means.
  • Particular attention must be paid to IP protection and ownership
  • Successful beneficiaries will be offered coaching and mentoring support during phase 1 and phase 2.
  • Enhancing profitability
  • competitive solutions
  • global business opportunities
  • sustainable
  • turnover
  • IP management
  • return on investment and profit
sebastianklemm

astralship.org - 0 views

  •  
    Recommended by Billy Smith (via Mastodon): The Astralship runs a rural hackspace in Wales, and are partners/co-members with the farming co-operative. They're explicitly working on OSHW to improve their farming methods. Contact Liam Kurmos and Aglae.
Kurt Laitner

Ethereum whitepaper - 0 views

  • The general concept of a "decentralized autonomous organization" is that of a virtual entity that has a certain set of members or shareholders which, perhaps with a 67% majority, have the right to spend the entity's funds and modify its code. The members would collectively decide on how the organization should allocate its funds. Methods for allocating a DAO's funds could range from bounties, salaries to even more exotic mechanisms such as an internal currency to reward work. This essentially replicates the legal trappings of a traditional company or nonprofit but using only cryptographic blockchain technology for enforcement. So far much of the talk around DAOs has been around the "capitalist" model of a "decentralized autonomous corporation" (DAC) with dividend-receiving shareholders and tradable shared; an alternative, perhaps described as a "decentralized autonomous community", would have all members have an equal share in the decision making and require 67% of existing members to agree to add or remove a member. The requirement that one person can only have one membership would then need to be enforced collectively by the group.
    • Kurt Laitner
       
      key application for OVNs
  • Note that the design relies on the randomness of addresses and hashes for data integrity; the contract will likely get corrupted in some fashion after about 2^128 uses
  • This implements the "egalitarian" DAO model where members have equal shares. One can easily extend it to a shareholder model by also storing how many shares each owner holds and providing a simple way to transfer shares.
    • Kurt Laitner
       
      interesting...
  • ...5 more annotations...
  • DAOs and DACs have already been the topic of a large amount of interest among cryptocurrency users as a future form of economic organization, and we are very excited about the potential that DAOs can offer. In the long term, the Ethereum fund itself intends to transition into being a fully self-sustaining DAO.
  • In Bitcoin, there are no mandatory transaction fees.
  • In Ethereum, because of its Turing-completeness, a purely voluntary fee system would be catastrophic. Instead, Ethereum will have a system of mandatory fees, including a transaction fee and six fees for contract computations.
  • The coefficients will be revised as more hard data on the relative computational cost of each operation becomes available. The hardest part will be setting the value of
  • There are currently two main solutions that we are considering: Make x inversely proportional to the square root of the difficulty, so x = floor(10^21 / floor(difficulty ^ 0.5)). This automatically adjusts fees down as the value of ether goes up, and adjusts fees down as computers get more powerful due to Moore's Law. Use proof of stake voting to determine the fees. In theory, stakeholders do not benefit directly from fees going up or down, so their incentives would be to make the decision that would maximize the value of the network.
1 - 20 of 23 Next ›
Showing 20 items per page