Program Listing for File SubmodularOptimizer.h¶
↰ Return to documentation for file (include/SubmodularOptimizer.h
)
#ifndef SUBMODULAROPTIMIZER_H
#define SUBMODULAROPTIMIZER_H
#include <memory>
#include <stdexcept>
#include <utility>
#include <vector>
#include <functional>
#include <cassert>
#include <memory>
#include <optional>
#include "SubmodularFunction.h"
class SubmodularOptimizer {
private:
protected:
// The cardinality constraint you of the optimization problem, that is the number of items selected.
unsigned int K;
//std::unique_ptr<SubmodularFunction> f;
std::shared_ptr<SubmodularFunction> f;
// true if fit() or next() has been called.
bool is_fitted;
public:
// The current solution of this optimizer
std::vector<std::vector<data_t>> solution;
std::vector<idx_t> ids;
// The current function value of this optimizer
data_t fval;
SubmodularOptimizer(unsigned int K, SubmodularFunction & f)
: K(K), f(f.clone()) {
is_fitted = false;
fval = 0;
// assert(("K should at-least be 1 or greater.", K >= 1));
}
SubmodularOptimizer(unsigned int K, std::function<data_t (std::vector<std::vector<data_t>> const &)> f)
: K(K), f(std::unique_ptr<SubmodularFunction>(new SubmodularFunctionWrapper(f))) {
is_fitted = false;
fval = 0;
// assert(("K should at-least be 1 or greater.", K >= 1));
}
virtual void fit(std::vector<std::vector<data_t>> const & X, std::vector<idx_t> const & ids, unsigned int iterations = 1) {
assert(X.size() == ids.size());
for (unsigned int i = 0; i < iterations; ++i) {
for (unsigned int j = 0; j < X.size(); ++j) {
next(X[j], ids[j]);
// It is very likely that the lower threshold sieves will fill up early and thus we will probably find a full sieve early on
// This likely results in a very bad function value. However, only iterating once over the entire data-set may lead to a very
// weird situation where no sieve is full yet (e.g. for very small datasets). Thus, we re-iterate as often as needed and early
// exit if we have seen every item at-least once
if (solution.size() == K && i > 0) {
return;
}
}
}
}
virtual void fit(std::vector<std::vector<data_t>> const & X, unsigned int iterations = 1) {
for (unsigned int i = 0; i < iterations; ++i) {
for (auto &x : X) {
next(x);
// It is very likely that the lower threshold sieves will fill up early and thus we will probably find a full sieve early on
// This likely results in a very bad function value. However, only iterating once over the entire data-set may lead to a very
// weird situation where no sieve is full yet (e.g. for very small datasets). Thus, we re-iterate as often as needed and early
// exit if we have seen every item at-least once
if (solution.size() == K && i > 0) {
return;
}
}
}
}
virtual void next(std::vector<data_t> const &x, std::optional<idx_t> const id = std::nullopt) = 0;
std::vector<std::vector<data_t>>const & get_solution() const {
if (!this->is_fitted) {
throw std::runtime_error("Optimizer was not fitted yet! Please call fit() or next() before calling get_solution()");
} else {
return solution;
}
}
std::vector<idx_t> const &get_ids() const {
if (!this->is_fitted) {
throw std::runtime_error("Optimizer was not fitted yet! Please call fit() or next() before calling get_ids()");
} else {
return ids;
}
}
virtual unsigned int get_num_candidate_solutions() const {
return 1;
}
virtual unsigned long get_num_elements_stored() const {
return this->get_solution().size();
}
data_t get_fval() const {
return fval;
}
virtual ~SubmodularOptimizer() {}
};
#endif // THREESIEVES_SUBMODULAROPTIMIZER_H


When an error occurs, the interpreter prints an error message and a stack
trace. In interactive mode, it then returns to the primary prompt; when
input came from a file, it exits with a nonzero exit status after printing
the stack trace. (Exceptions handled by an
except
clause in a
try
statement are not errors in this context.) Some errors are unconditionally
fatal and cause an exit with a nonzero exit; this applies to internal
inconsistencies and some cases of running out of memory. All error
messages are written to the standard error stream; normal output from
executed commands is written to standard output.
Typing the interrupt character (usually Control-C or Delete) to the
primary or secondary prompt cancels the input and returns to the primary
prompt.
1 Typing
an interrupt while a command is executing raises the
KeyboardInterrupt
exception, which may be handled by a
try
statement.
On BSD’ish Unix systems, Python scripts can be made directly executable, like shell scripts, by putting the line
#!/usr/bin/env python3.5
(assuming that the interpreter is on the user’s
PATH
) at the
beginning of the script and giving the file an executable mode. The
#!
must be the first two characters of the file. On some
platforms, this first line must end with a Unix-style line ending
('\n'
), not a Windows ('\r\n'
) line ending. Note
that the hash, or pound, character, '#'
, is used to start a
comment in Python.
The script can be given an executable mode, or permission, using the chmod command.
$ chmod +x myscript.py
On Windows systems, there is no notion of an “executable mode”. The Python
installer automatically associates .py
files with
python.exe
so that a double-click on a Python file will run
it as a script. The extension can also be .pyw
, in that case,
the console window that normally appears is suppressed.
When you use Python interactively, it is frequently handy to have some
standard commands executed every time the interpreter is started. You can
do this by setting an environment variable named
PYTHONSTARTUP
to the name of a file containing your start-up commands. This is similar
to the .profile
feature of the Unix shells.
This file is only read in interactive sessions, not when Python reads
commands from a script, and not when /dev/tty
is given as the
explicit source of commands (which otherwise behaves like an interactive
session). It is executed in the same namespace where interactive commands
are executed, so that objects that it defines or imports can be used
without qualification in the interactive session. You can also change the
prompts sys.ps1
and sys.ps2
in this file.
If you want to read an additional start-up file from the current
directory, you can program this in the global start-up file using code
like
if os.path.isfile('.pythonrc.py'):
exec(open('.pythonrc.py').read())
. If you want to use the startup file in a script, you must do this
explicitly in the script:
import os
filename = os.environ.get('PYTHONSTARTUP')
if filename and os.path.isfile(filename):
with open(filename) as fobj:
startup_file = fobj.read()
exec(startup_file)
Python provides two hooks to let you customize it:
sitecustomize
and usercustomize
. To see how it
works, you need first to find the location of your user site-packages
directory. Start Python and run this code:
>>> import site
>>> site.getusersitepackages()
'/home/user/.local/lib/python3.5/site-packages'
Now you can create a file named usercustomize.py
in that
directory and put anything you want in it. It will affect every invocation
of Python, unless it is started with the
-s
option to disable the automatic import.
sitecustomize
works in the same way, but is typically created
by an administrator of the computer in the global site-packages directory,
and is imported before usercustomize
. See the documentation
of the
site
module for more details.
Footnotes
1
A problem with the GNU Readline package may prevent this.
15. Floating Point Arithmetic: Issues and Limitations


Download your FREE guide to increasing productivity, learning, communication, and engagement in your workforce through enterprise technology.
Download Free GuideCheck out our amazing articles on empowering employees, enterprise digital transformation, building apps for HR & Talent management, working with IT, and enterprise app building.
Check out our amazing articles on empowering employees, enterprise digital transformation, building apps for HR & Talent management, working with IT, and enterprise app building.
Check out our amazing articles on empowering employees, enterprise digital transformation, building apps for HR & Talent management, working with IT, and enterprise app building.
Check out our amazing articles on empowering employees, enterprise digital transformation, building apps for HR & Talent management, working with IT, and enterprise app building.


Class I2C – a two-wire serial protocol¶
I2C is a two-wire protocol for communication between devices. At the physical level it consists of 2 wires: SCL (clock) and SDA (data). This class enables the use of both hardware and emulated I2C-buses in master-mode.
Note that I2C0 is also used by several classes in the tbsense module.
If you want to use the tbsense module after having used this class, you need to
call the tbsense.reinit_peripherals()
function.
By default I2C0 is initialized at startup with sda on pin PC10 and scl on PC11,
with a maximum transmission frequency of 92000 and a timeout of 5000.
If no arguments are given to the contructor, the object is not reinitialized
and the I2C-bus can be used without conflicting with the tbsense-module.
Example:
#Temperature readings using both Environment and i2c from the machine library
#http://www.silabs.com/documents/public/data-sheets/Si7021-A20.pdf for details
import machine
import tbsense
tbsense.Environment.start()
i2c = machine.I2C(0, sda="PC10", scl="PC11") #Initialize i2c object
print (i2c.scan()) #Addresses printed in decimal value
envTemp = tbsense.Environment.temperature()
#Addresses found from datasheet
#Sensor Si7021 at i2c address 0x40, temp measurement at memory address 0xE3
t = i2c.readfrom_mem(0x40, 0xE3, 2)
i2cTemp =(t[0] << 8) + (t[1]&0xFC )
#Temperature measurement converted to temprature by formula provided in datasheet
t = ((175.72*i2cTemp)/65536)-46.85
print('Temp from Environment: ', envTemp)
print("Temp from I2C: ", t)
tbsense.Environment.stop()
Constructors¶
-
class
machine.
I2C
(id, *, scl, sda, freq=400000, timeout=5000)¶ Construct and return a new I2C object using the following parameters.
id
identifies the particular I2C peripheral. A value of -1 selects a software emulated I2C-bus. A value of 0 or higher selects a hardware I2C-bus. The number of hardware I2C-buses available varies from microcontroller to microcontroller.scl
should be a pin object or a string identifying the pin to use for SCLsda
should be a pin object or a string identifying the pin to use for SDAfreq
should be an integer that sets the maximum transmission frequency (baudrate).timeout
should be an integer specifying how many milliseconds to wait before timing out if a device is not responding.
If no arguments besides the id is given, the I2C-bus will be returned with its previous configuration.
General Methods¶
-
I2C.
init
(*, scl, sda, freq=400000, timeout=5000)¶ Initialize the I2C peripheral.
scl
should be a pin object or a string identifying the pin to use for SCLsda
should be a pin object or a string identifying the pin to use for SDAfreq
should be an integer that sets the maximum transmission frequency (baudrate).timeout
should be an integer specifying how many milliseconds to wait before timing out if a device is not responding.
-
I2C.
scan
()¶ Scan all I2C addresses from 0x08 to 0x7f and return a list of those that respond.
Standard bus operations¶
The following methods implement standard I2C master read and write operations that target a slave device.
-
I2C.
readfrom
(addr, nbytes, stop=True)¶ Read data from an I2C-device.
addr
is the address to read from.nbytes
is the number of bytes to readstop
whether to generate a STOP condition at the end of transfer.
Returns a
bytes
object with the data read.
-
I2C.
readfrom_into
(addr, buf, stop=True)¶ Read data from an I2C-device into a preallocated buffer. Allow the use of the I2C-bus from an interrupt routine.
addr
is the address to read from.buf
is a buffer to read into. The length of the buffer determines how many bytes to read.stop
whether to generate a STOP condition at the end of transfer.
Returns
None
.
-
I2C.
writeto
(addr, buf, stop=True)¶ Write data to an I2C-device. This function does not use any heap space, and can be used from an interrupt routine.
addr
is the address to write to.buf
can be an integer or buffer to write.stop
whether to generate a STOP condition at the end of transfer.
Returns the number of ACKs received.
Memory operations¶
Some I2C devices act as a memory device (or a set of registers) that can be read from and written to. In this case there are two addresses associated with the transaction; the slave address and the memory address. The following methods are convenience function to communicate with such devices.
-
I2C.
readfrom_mem
(addr, memaddr, nbytes, *, addrsize=8)¶ Read data from an address on an I2C-device.
addr
is the address of the I2C-device.memaddr
is the memory address to read from on the I2C-device.nbytes
is the number of bytes to read.addrsize
is the size ofmemaddr
, either 8 or 16 bits.
Returns a
bytes
object with the data read.
-
I2C.
readfrom_mem_into
(addr, memaddr, buf, *, addrsize=8)¶ Read data from an address on an I2C-device into a preallocated buffer. This function uses no heap and can be used from an interrupt routine.
addr
is the address of the I2C-device.memaddr
is the memory address to read from on the I2C-device.buf
is a buffer to read into. The length of the buffer determines how many bytes to read.addrsize
is the size ofmemaddr
, either 8 or 16 bits.
Returns the number of bytes read.
-
I2C.
writeto_mem
(addr, memaddr, buf, *, addrsize=8)¶ Write data to an address on an I2C-device. This function uses no heap and can be used from an interrupt routine.
addr
is the address of the I2C-device.memaddr
is the memory address to read from on the I2C-device.buf
can be an integer or buffer to write.addrsize
is the size ofmemaddr
, either 8 or 16 bits.
Returns the number of bytes written.


In summers we have to deal with power outage and shortage of water. Dealing with former is not that hard. The backups do their work fine and we usually get by. But water shortage is a serious problem.
The first and one of the most effective techniques was discovered by my mother. While washing clothes she used to throw away residual soap water down the drain. Now she collects the water in a bucket and uses it for cleaning. Soap water is excellent for wiping floors and cleaning your bathrooms. It is also good for cleaning away dust in general. Just take a piece of unused cloth. Dip it int the collected soap water and you can use it to wipe stains of surfaces. On an average she saves about six buckets of water in a week. We never clean our floors using fresh tap water any more.
The tap water is not usually fit for drinking as it is. Like most people in our neighborhood we filter it using RO filtration technique. On an average, for a family of four, the filter will spit out 2 buckets of water a day. This water though unsafe for drinking can be used for other purposes like bathing, cleaning utensils and watering plants. Initially I noticed that most our neighbors threw away this water down the drain. But now we collect it and it helps a lot.
A similar technique can be used to collect water draining from air conditioners. Although it might not seem much but collecting water from different sources quickly adds up and you will have plenty to use in various household chores.
The third technique that I use is rain water harvesting. In my country, India, we have monsoons. When it rains it pours. My ancestors were pretty good at rain water harvesting. In fact it was a necessity. There was a very effective drainage system running though the town that used to collect the rainwater into very large depressions that were made for this purpose. The principle was simple. The roads were made at a higher ground with a slightly sloped angle emanating from a common depression in an area. There were numerous depressions within the city. So every part of the city had it's own reservoir of water and sloped roads which acted like feeders to it. It was quite clever and worked well for it's time. However as our town grew this system was done away with, without employing any alternative method of rain water harvesting.
So the trick that I use is somewhat similar to what my ancestors used in their days. We have a roof with a slightly sloped flooring and a single point of drainage through a plastic pipe. When it rains the water flows from the slope into the pipe and we collect it at it's opening below. During moderate rainfall I have collected 1000 liters of water in 15 minutes. That is a lot! In fact the only reason that I stopped was because I ran out of containers to keep water in.
I am brainstorming on different ideas to help me collect more water with minimum cost. Of course collection of water solves just a part of the problem. If there were a simple solution to filter it and make it fit for drinking then the amount of water that rains during one season of monsoon could satiate thirst of my neighborhood for the rest of year.


FOOD TRACKER
Food Name:
Description:
Purchase Date:
Expiration Date:
Submit
Food Name
(What is it called?)
Description
(Qualities)
Purchase Date
(YYMMDD)
Expiration Date (YYMMDD)


Event Location:
Hotel Himalaya
Sahid Shukra Marg
Kathmandu, Central Region, Nepal
Abstract:
Receiving imperfectly column-aligned data from applications is becoming a norm. However preparing this data for pre-defined relational structures using traditional methods is becoming significantly complex. Many implementations though, still handle this using traditional programming techniques - but isn't this still a database related task? And shouldn't the components of the Database Management Systems bear the responsibility of getting this done? With new features incorporated into modern database platforms, processing unstructured data is no longer a challenge, and can be performed easily. Let us take a sample data set and see how we do this the Microsoft way, of course using Microsoft SQL Server product suite including cloud offerings such as HDInsight.
Speaker(s): Dinesh Priyankara,
Abstract:
Hosting and administration of large databases presents many challenges. These databases require powerful hardware to operate, and thoroughly designed maintenance, HA and DR strategies to meet SLAs. Even though data retention policies are controlled by business requirements, this session will review the following techniques and best practices that can be applied to reduce the size of the data in a database and improve performance of the system. 1. Reducing internal index fragmentation in the system 2. Implementing ROW and PAGE Data Compression 3. Compressing LOB Data on the client and/or with CLR routines 4. Detecting and removing unused and redundant indexes 5. Following best practices in Database Design and Deployment, such as enabling Instant File Initialization, disabling Auto-Shrink and choosing correct data types based on business requirements. 6. Releasing free space from the data files
Speaker(s): Dmitri Korotkevitch,
Abstract:
Even though in-memory OLTP can significantly improve performance of OLTP systems, it comes with an extensive set of limitations that often make refactoring of existing systems cost-ineffective and prevents widespread adoption of the technology. However, in-memory OLTP can be beneficial in other common use cases besides replacing on-disk with memory-optimized tables. This session discusses several of these use-cases: * Improving performance of ETL processes and stored procedures with memory-optimized tables * Using the in-memory OLTP engine as a replacement for the distributed cache and session state server * Enhancing performance of batch import operations with memory-optimized TVPs Finally, this session shows several techniques that help address in-memory OLTP limitations, such as 8,060 byte maximum row size and missing unique and FK constraints
Speaker(s): Dmitri Korotkevitch,
Abstract:
The session is mainly for the one who is trying to extract the story behind their Facebook data by using Power Query. By using Power Query you can extract your Facebook data easily and do analysis your own story by using your own Facebook data. Talking about Power Query: Microsoft Power Query for Excel is an Excel add-in that enhances the self- service Business Intelligence experience in Excel by simplifying data discovery, access and collaboration. Power Query can connect data across a wide variety of sources, where Facebook is one of the data source. This session helps you to learn about the Power Query, Power View, and Power BI and mainly helps you to do self-service BI by using your own Facebook data with the help of Power Query, Power View and MS-Excel 2013.
Speaker(s): Anil Maharjan,
Abstract:
Data partitioning is a valuable technique that simplifies database administration tasks and helps meet availability and performance SLAs. In this session, Dmitri will cover several techniques and architectural approaches you can use to partition data in the different versions and editions of SQL Server. You will learn about partitioned tables, partitioned views and stretch databases introduced in SQL Server 2016. Finally, Dmitri will discuss the practical questions, such as how to move data between filegroups and disk arrays keeping tables online and how to address some of performance issues caused by data partitioning.
Speaker(s): Dmitri Korotkevitch,
Abstract:
advanced HA and DR architectures for SQL Server that also enable you to scale-out certain workloads. This will include design patterns and configuration best practices for Availability Groups (AG) and Failover Cluster Instances (FCI) across different sites as well AG replicas between FCIs.
Speaker(s): Shree Khanal,
Abstract:
The recent past has shown us how the business intelligence landscape is shifting away from an IT-led paradigm to a business-led paradigm. This paradigm attempts to put the power of data in the hands of users for self-service. Power BI is Microsoft's self-service business intelligence offering, and is now standing out as a leader in self-service business intelligence. Join this session to learn what Power BI is all about and its capabilities. We'll then move over to various usage scenarios and how Power BI helps save the day.
Speaker(s): Gogula Aryalingam,
Abstract:
Cardinality estimator providing row estimates, plays a pivotal role in obtaining efficient query plans. Cardinality Estimator algorithm which remained unchanged since SQL 7.0, was revamped in SQL Server 2014. The presentation will take a ride through the new cardinality estimator, showcase the need for the significant redesign and demonstrate the new cardinality estimator's efficiency at different scenarios. Presentation will also cover how one can perform regressive testing, checking for any performance degradation on new cardinality estimator and how they can be handled gracefully.
Speaker(s): Nagaraj Venkatesan,
Abstract:
Generally SQL DBAs found very good in managing SQL server standalone instances but for managing SQL server on cluster requires altogether new skills. The difference stats right from installation planning and then implementing and finally troubleshooting. This session will be focused on following topics: What is Windows cluster and how it work. How SQL server works on Windows clusters. How to install, configure, perform maintenance and troubleshoot SQL server on Windows Cluster.
Speaker(s): Satya Prakash,
Abstract:
Cloud and Cloud Computing
Speaker(s): Gurvesh Singh,
Abstract:
With Power BI one can perform business intelligence without having to invest in the big bucks that is usually involved with it. With Power BI one does not have to be a "techie" to BI. This session would first focus on theory on the various use cases of Power BI. It would then move over to demos and hands-on of how to build a Power BI solution: query and build a data model from a variety of data sources; report and collaborate on the data; and more...
Speaker(s): Gogula Aryalingam,
This is a list of speakers from the XML Guidebook records. The details and URLs were valid at the time of the event.
LinkedIn: https://www.linkedin.com/pub/dmitri-korotkevitch/5/980/b7
Contact: http://aboutsqlserver.com
Dmitri Korotkevitch is a Microsoft Data Platform MVP and Microsoft Certified Master, author of Pro SQL Server Internals and other books with years of experience working with SQL Server as an Application and Database Developer, Database Administrator, and Database Architect. Dmitri specializes in the design, development, and performance tuning of complex OLTP systems that handle thousands of transactions per second around the clock. He blogs at: http://aboutsqlserver.com.
LinkedIn: http://www.linkedin.com/in/gogula
Contact: http://datamaul.wordpress.com
Gogula is a data analytics professional from Sri Lanka, with 14+ years on the Microsoft data platform. He has worked with many aspects of data analytics and BI solutions from architecting, designing, developing and consulting across various industries and verticals. He is Regional Mentor for PASS South Asia, Data Platform MVP, MCSE, former MCT, and MSc in IT. Gogula's passion revolves data analytics and BI; hence enjoys writing, teaching and speaking about the things he works with. He was also involved as an SME for Microsoft certification development. He currently juggles his full time job as Lead Architect while speaking at local and foreign events, along with regular stints at the Sri Lankan Data Community which he co-founded.
LinkedIn: http://www.linkedin.com/in/gogula
Contact: http://datamaul.wordpress.com
Gogula is a data analytics professional from Sri Lanka, with 14+ years on the Microsoft data platform. He has worked with many aspects of data analytics and BI solutions from architecting, designing, developing and consulting across various industries and verticals. He is Regional Mentor for PASS South Asia, Data Platform MVP, MCSE, former MCT, and MSc in IT. Gogula's passion revolves data analytics and BI; hence enjoys writing, teaching and speaking about the things he works with. He was also involved as an SME for Microsoft certification development. He currently juggles his full time job as Lead Architect while speaking at local and foreign events, along with regular stints at the Sri Lankan Data Community which he co-founded.
LinkedIn: https://www.linkedin.com/pub/dmitri-korotkevitch/5/980/b7
Contact: http://aboutsqlserver.com
Dmitri Korotkevitch is a Microsoft Data Platform MVP and Microsoft Certified Master, author of Pro SQL Server Internals and other books with years of experience working with SQL Server as an Application and Database Developer, Database Administrator, and Database Architect. Dmitri specializes in the design, development, and performance tuning of complex OLTP systems that handle thousands of transactions per second around the clock. He blogs at: http://aboutsqlserver.com.
Founder and CEO of Ucloud. Nepal#39;s first Cloud Service Provider
LinkedIn: http://lk.linkedin.com/in/dineshpriyankara/
Contact: http://dinesql.blogspot.com/
Dinesh is an experienced professional and database enthusiast with skills in database management systems and business intelligence. Possessing over 18 years of experience on data related technologies, he does training, consulting, and is a top contributor to the local SQL Server community. In recognition of his contributions and expertise he has demonstrated, he was awarded the Microsoft Most Valuable Professional (MVP) award for SQL Server for 13 consecutive years since 2006. He is a Subject Matter Expert on SQL Server exams and has contributed for SQL Server 2012, 2016, 2017 and Azure Data Engineering exam development and Job Task Analysis (JTA). Dinesh is the Founder/Principal Architect of dinesQL (Pvt) Ltd (http://dinesql.com). In his
LinkedIn: http://np.linkedin.com/in/shreekhanal
Contact: http://www.sqlhelps.com
Shree Khanal is a Database Architect, Speaker and Trainer having 15+ years of professional experience on database solution development and optimization. Mr. Khanal is a Data Platform MVP Microsoft Certified Database Professional since 2000 to till date. Starting with SQL Server 7, he has been working with all the version of SQL Server up to 2016 in production environment. In context of OLAP cube development, he started working on it from SQL Server 2000 to latest SSAS 2016. He has worked number of years providing SQL BI solutions to various enterprise clients most of them from BI sector. He founded and has been leading the Himalayan SQL Server User Group (www.sqlpassnepal.org) based in Kathmandu, Nepal since 2010.
LinkedIn: http://np.linkedin.com/in/maharjananil
Contact: https://anilmaharjanonbi.wordpress.com
Anil Maharjan is Microsoft Data Platform MVP, Has more than 9 years of development implementation experience in HealthCare Data Analytics, Telecommunication Industry. • Published article, frequent Blogger and speaker at Microsoft Ignite Singapore - 2019, Data and BI Summit 2018 -Dublin, Power Platform Australia Summit 2019, SQL Saturday , SQLServer2016 Discovery Day, SQLServerGeeks Annual Summit , SQL Server User group , Nepal Power BI User Group Meetup and other SQL Events. • Organizing member at Himalayan SQL Server User Group • User Group Leader Nepal Power BI User Group • Program Committee member for PASS Summit 2014 • Program Committee member for DATA and BI Summit 2018 and Power Platform Australia Summit 2019 .
LinkedIn: https://in.linkedin.com/in/nagaraj-venkatesan-b6958b6
Contact: http://strictlysql.blogspot.com
Nagaraj Venkatesan is a Data Platform MVP from Singapore and the leader of Singapore SQL PASS Chapter. As a SQL Server enthusiast, Nagaraj is a regular speaker in Asia Pacific region at Data Platform events like SQL Saturdays, SQL Server Geeks Summit, User group meetups etc. Nagaraj shares his technical expertise at strictlysql.blogspot.com. Nagaraj also runs a YouTube channel called "DataChannel", which contains technical interviews with top Microsoft Data Platform experts in the world.
LinkedIn: https://www.linkedin.com/pub/dmitri-korotkevitch/5/980/b7
Contact: http://aboutsqlserver.com
Dmitri Korotkevitch is a Microsoft Data Platform MVP and Microsoft Certified Master, author of Pro SQL Server Internals and other books with years of experience working with SQL Server as an Application and Database Developer, Database Administrator, and Database Architect. Dmitri specializes in the design, development, and performance tuning of complex OLTP systems that handle thousands of transactions per second around the clock. He blogs at: http://aboutsqlserver.com.
LinkedIn: https://www.linkedin.com/in/satyasql
Contact: http://sqlserveranswers.com/
Satya Prakash: Currently working with TriCore Solutions (Managed Database Services) and handling more than 30 clients. Have developed monitoring with PowerShell and TSQL only (without using any third party tool). This monitoring system have almost all features provided by highly expensive and enterprise level monitoring system. Currently monitoring more than 700 instances. Working with SQL server for more than 12 years. Had delivered dozens of classroom training. Regular speaker at community events at Microsoft Gurgaon-India.
The following is a list of sponsors that helped fund the event.


For example:
set parea 0.75 10.5 3.875 4.25 set grads off set gxout tserwx set digsiz 0.11 d wx (stid=79001)
where the grid wx contains codes for weather symbols
wx


INPUT
Home computers are microprocessors. Input is supplied to the microprocessor with the use of a keyboard, a mouse, or another input device. These input devices may be called peripheral devices.
HOME
INPUT
PROCESSING
OUTPUT
STORAGE


Open archive.today in
new tab adjacent new tab at end active for archive, adjacent for search
Activate new archive.today tab from
Toolbar Button Page Search Archive link Search link


--- layout: pagefullwidth title: "CV" logo: "img/home-bg.jpg" description: "" header-img: "img/home-bg.jpg" ordernumber: 1 ---


Presented by:
VP & General Manager – Scaled Composites
Astronaut
Abstract:
On 21
June 2004, Michael Melvill became the first American to fly a privately-funded
aircraft mission into space. A veteran
test pilot, Melvill flew SpaceShipOne at Mach 3 beyond the earth’s atmosphere
(flight 15P), and did so again in September when he made the first of two
Ansari X Prize qualifying flights above the 100 km Karman Line. In his luncheon keynote Mike will share with
us the exciting story of this history making event. But to understand its implications, it may
first be helpful to understand its context.
On 7
October 1958, with funding from the
“We set sail on this new sea because there is
new knowledge to be gained, and new rights to be won, and they must be won and
used for the progress of all people.” -- John F. Kennedy,
So in
1995 Peter H. Diamandis established the X Prize Foundation to fund a cash prize
incentive. It was hoped that this
competition, like that which was won by Lindbergh in the Spirit of St. Louis,
would spur some of the brightest and
best among us to show what the engineering spirit is capable of, and once again
lead the way to innovations for the benefit of all society.
What
kind of vision, dedication, and resources would it take to conceive, design,
build, and fly a non-governmental mission into space? What kind of entrepreneurs would accept such
a challenge? Could a few engineers with
limited resources even take on such a grand venture, and succeed? On May 18th 1996 at a gala black-tie event
held at the
Eight
years and roughly $20 million later, financial supporter Paul G. Allen, along
with Burt Rutan and the Tier One team, captured the $10 million Ansari X Prize.1 The flights were considered so successful,
and so “relatively” cost effective, that plans have been made by a commercial
aircraft company (Virgin Galactic) to fly civilian tourists into space as early
as 2008 aboard a follow-on aircraft designated as SpaceShipTwo. Like the developments which resulted from
flights by the Wright Brothers and the Project Mercury astronauts2, it is impossible to
predict the full impact that the flight of SpaceShipOne will have. However, it demonstrates once again that
engineering can and will always aid the human spirit in “Innovating for Society.”
_______________________________________________________________________
1 In May
2004, the X PRIZE was officially re-named the ANSARI X PRIZE to reflect a
generous donation from the Ansari family.)
2 From Wikipedia, the Free Encyclopedia:
A military Astronaut must complete all
required training to receive the Astronaut badge, as
well as participate in a space flight more than 50 miles above the Earth. The Fédération Aéronautique
Internationale defines spaceflight as over 100 km. This definition is
followed by all countries except the
Only ten pilots have
qualified for the Astronaut Badge by flying an airplane into space: eight from
the U.S. Air Force/NASA X-15 program, plus Brian
Binnie and Mike Melvill from the Scaled Composites Tier One
project. All other persons have been awarded the Astronaut Badge by traveling
into space on rocket boosters, rather than in aerodynamic flight.


|
| | Builder (TTreeView component) |
| |
| virtual TBuilder | Animate (bool animate) |
| | True to enable animated expand/collapse (defaults to the value of Ext.enableFx) More...
|
| |
| virtual TBuilder | RootVisible (bool rootVisible) |
| | False to hide the root node (defaults to true) More...
|
| |
| virtual TBuilder | ToggleOnDblClick (bool toggleOnDblClick) |
| | True to toggle (collapse/expand) the node on double click (defaults to true) More...
|
| |
| virtual TBuilder | ToggleOnClick (bool toggleOnClick) |
| | True to toggle (collapse/expand) the node on click (defaults to false) More...
|
| |
| virtual TBuilder | Listeners (Action< TableViewListeners > action) |
| | Client-side JavaScript Event Handlers More...
|
| |
| virtual TBuilder | DirectEvents (Action< TableViewDirectEvents > action) |
| | Server-side Ajax Event Handlers More...
|
| |
| | Builder () |
| |
| | Builder (TreeView component) |
| |
| | Builder (TreeView.Config config) |
| |
| | Builder (TTableView component) |
| |
| virtual TBuilder | GetRowClass (Action< JFunction > action) |
| | Override this function to apply custom CSS classes to rows during rendering. You can also supply custom parameters to the row template for the current row to customize how it is rendered using the rowParams parameter. This function should return the CSS class name (or empty string '' for none) that will be added to the row's wrapping div. To apply multiple class names, simply return them space-delimited within the string (e.g., 'my-class another-class'). More...
|
| |
| virtual TBuilder | EnableTextSelection (bool enableTextSelection) |
| | True to enable text selections. More...
|
| |
| virtual TBuilder | FirstCls (string firstCls) |
| | A CSS class to add to the first cell in every row to enable special styling for the first column. If no styling is needed on the first column, this may be configured as null. Defaults to: "x-grid-cell-first" More...
|
| |
| virtual TBuilder | LastCls (string lastCls) |
| | A CSS class to add to the last cell in every row to enable special styling for the last column. If no styling is needed on the last column, this may be configured as null. Defaults to: "x-grid-cell-last" More...
|
| |
| virtual TBuilder | MarkDirty (bool markDirty) |
| | True to show the dirty cell indicator when a cell has been modified. More...
|
| |
| virtual TBuilder | StripeRows (bool? stripeRows) |
| |
| virtual TBuilder | TrackOver (bool trackOver) |
| | True to enable mouseenter and mouseleave events More...
|
| |


Uses of Class
org.drip.portfolioconstruction.cost.TransactionCharge
| Package | Description |
|---|---|
| org.drip.portfolioconstruction.composite |
Portfolio Construction Component Groups Suite
|
| org.drip.portfolioconstruction.constraint |
Portfolio Construction Constraint Term Suite
|
| org.drip.portfolioconstruction.cost |
Transaction Charge Objective Term Suite
|
| org.drip.portfolioconstruction.objective |
Portfolio Construction Objective Term Suite
|
-
Uses of TransactionCharge in org.drip.portfolioconstruction.composite
Methods in org.drip.portfolioconstruction.composite that return TransactionCharge Modifier and Type Method Description TransactionCharge[]
TransactionChargeGroup. constrict(Holdings holdings)
Constrict the Transaction Charge Array to those of the HoldingsTransactionCharge
TransactionChargeGroup. transactionCharge(java.lang.String assetID)
Retrieve the Asset's Transaction ChargeMethods in org.drip.portfolioconstruction.composite that return types with arguments of type TransactionCharge Modifier and Type Method Description java.util.Map<java.lang.String,TransactionCharge>
TransactionChargeGroup. transactionChargeMap()
Retrieve the Map of Transaction ChargeMethods in org.drip.portfolioconstruction.composite with parameters of type TransactionCharge Modifier and Type Method Description boolean
TransactionChargeGroup. add(java.lang.String assetID, TransactionCharge transactionCharge)
Add an Asset's Transaction Charge -
Uses of TransactionCharge in org.drip.portfolioconstruction.constraint
Methods in org.drip.portfolioconstruction.constraint that return TransactionCharge Modifier and Type Method Description TransactionCharge[]
LimitBudgetTermTransactionCharge. transactionChargeArray()
Retrieve the Array of Transaction ChargesTransactionCharge[]
LimitChargeTermIssuer. transactionChargeArray()
Retrieve the Array of Transaction ChargesMethods in org.drip.portfolioconstruction.constraint with parameters of type TransactionCharge Modifier and Type Method Description static LimitChargeTermIssuer
LimitChargeTermIssuer. Standard(java.lang.String name, Scope scope, Unit unit, double minimum, double maximum, double[] initialHoldingsArray, TransactionCharge[] transactionChargeArray)
Construct a Static Instance of LimitChargeTermIssuerConstructors in org.drip.portfolioconstruction.constraint with parameters of type TransactionCharge Constructor Description LimitBudgetTermTransactionCharge(java.lang.String name, Scope scope, Unit unit, double budget, double[] priceArray, double[] initialHoldingsArray, TransactionCharge[] transactionChargeArray)
LimitBudgetTermTransactionCharge ConstructorLimitChargeTermIssuer(java.lang.String name, java.lang.String strID, java.lang.String strDescription, Scope scope, Unit unit, double minimum, double maximum, double[] initialHoldingsArray, TransactionCharge[] transactionChargeArray)
LimitChargeTermIssuer Constructor -
Uses of TransactionCharge in org.drip.portfolioconstruction.cost
Subclasses of TransactionCharge in org.drip.portfolioconstruction.cost Modifier and Type Class Description class
TransactionChargeFixed
TransactionChargeFixed contains the Parameters for the Fixed Transaction Charge Scheme.class
TransactionChargeGoldmanSachsShortfall
TransactionChargeGoldmanSachsShortfall contains the Parameters for the Goldman Sachs Shortfall Model.class
TransactionChargeLinear
TransactionChargeLinear contains the Parameters for the Linear Transaction Charge Scheme.class
TransactionChargeMarketImpact
TransactionChargeMarketImpact contains the Parameters for the Power Law Transaction Charge Scheme. -
Uses of TransactionCharge in org.drip.portfolioconstruction.objective
Methods in org.drip.portfolioconstruction.objective that return TransactionCharge Modifier and Type Method Description TransactionCharge[]
TransactionChargeTerm. transactionChargeArray()
Retrieve the Array of Transaction ChargesConstructors in org.drip.portfolioconstruction.objective with parameters of type TransactionCharge Constructor Description CustomTransactionChargeTerm(java.lang.String name, double[] initialHoldingsArray, TransactionCharge[] transactionChargeArray)
CustomTransactionChargeTerm ConstructorFixedChargeTerm(java.lang.String name, double[] initialHoldingsArray, TransactionCharge[] fixedTransactionChargeArray)
FixedChargeTerm ConstructorShortSellChargeTerm(java.lang.String name, double[] initialHoldingsArray, TransactionCharge[] transactionChargeArray)
ShortSellChargeTerm Conastructor


--- layout: post status: publish published: true title: PowerShell and the Windows SDK author: display_name: Tomas Restrepo login: tomasr email<EMAIL_ADDRESS>url: http://winterdom.com/ author_login: tomasr author_email<EMAIL_ADDRESS>author_url: http://winterdom.com/ wordpress_id: 368 wordpress_url: http://winterdom.com/2008/03/powershellandthewindowssdk date: '2008-03-12 18:15:59 +0000' date_gmt: '2008-03-12 18:15:59 +0000' categories: - ".NET" - PowerShell tags: [] comments: [] ---
Nanda Lella's from the Windows SDK team is asking for feedback for the next version of the Platform SDK. Specifically, she asks whether a PowerShell-based build environment (as opposed to the current CMD-based one) would be a welcome addition to the SDK.
Personally, I think this is a great idea and hope it becomes a reality [1]. I'm sure that having it out of the box would make PowerShell a lot more popular amongst developers. Repeat after me: PowerShell is not just for sysadmins!.
Not having a build environment readily available in PowerShell kept me a long time from making it my default shell.
Because of this, I eventually sat down and wrote a custom profile script, like many others, to setup the build environment manually, loosely based on the original batch files in the Windows SDK and Visual Studio distributions. It's probably not perfect, but it does the trick and now I use PowerShell all the time.
Actually, I did make one significant modification to my script compared to the originals in the SDK: I keep machines with both .NET 3.5/VS2008 as well as .NET 3.0/VS2005, and wanted to keep a single profile script to avoid having to constantly modify my own environment.
My current profile script first looks and configures the environment for VS2008; failing that, it falls back to the .NET 2.0/3.0 and Visual Studio 2005 configuration. If anyone happens to be interested in it; ping me and I'll be happy to share it.
[1] Actually, there's no reason why this needs to be tied to a specific SDK version, but I imagine that's how it may/will happen. Frankly, it would be good enough for many people to have a pre-written version downloadable from somewhere easily searchable and accessible.