This learning method focuses on hearing. (i.e choir) Auditory learners possessed a good hearing or someone who likes listening to music.
This kind of learning is more on images, charts/diagrams, and etc. since it’s a learning method wherein you have to look at the specific thing to create them or copy the other works. It’s also mentioned that to visual learners possessed an observant personality, or someone who enjoys visual instruction.
This leaning both focuses on talking and writing. Most of the verbal learners are bookworms, have a strong vocabulary, or a good at story telling.
This learning involves numbers,letters, and patterns combined. People who are logical/mathematical are good in programming, computing
This learning is more on movements/hands-on. (i.e drummers, sports teachers, dance instructor)
This learning know how to communicate effectively and enjoy collaborating with others, brainstorming and discussing ideas and concepts
This type of learning prefer to use self-study and work alone, being away from the crowds and learn best in a quiet place where they can focus on the task at hand.
Motivation
is the process that initiates, guides, and maintains goal-oriented behaviors. It is what causes you to act, whether it is getting a glass of water to reduce thirst or reading a book to gain knowledge. Motivation involves the biological, emotional, social, and cognitive forces that activate behavior.
Reinforcement learning (RL) is an area of machine learning concerned with how intelligent agents ought to take actions in an environment in order to maximize the notion of cumulative reward
Active Learning
Passive Learning
Active Learning
DISAVANTAGE
Passive Learning
DISAVANTAGE


Pseudocode is an artificial and informal language that helps programmers develop algorithms. Pseudocode is a "text-based"
detail (algorithmic) design tool.
The rules of Pseudocode are reasonably straightforward. All statements showing "dependency" are to be indented. These include while,
do, for, if, switch. Examples below will illustrate this notion.
Examples:
1. If student's grade is greater than or equal to 60
Print "passed"
else
Print "failed"
2. Set total to zero
Set grade counter to one
While grade counter is less than or equal to ten
Input the next grade
Add the grade into the total
Set the class average to the total divided by ten
Print the class average.
3.Initialize total to zero
Initialize counter to zero
Input the first grade
while the user has not as yet entered the sentinel
add this grade into the running total
add one to the grade counter
input the next grade (possibly the sentinel)
if the counter is not equal to zero
set the average to the total divided by the counter
print the average
else
print 'no grades were entered'
4.
initialize passes to zero
initialize failures to zero
initialize student to one
while student counter is less than or equal to ten
input the next exam result
if the student passed
add one to passes
else
add one to failures
add one to student counter
print the number of passes
print the number of failures
if eight or more students passed
print "raise tuition"
Some Keywords That Should be Used
For looping and selection, The keywords that are to be used include
Do While...EndDo; Do Until...Enddo; Case...EndCase; If...Endif; Call ... with (parameters); Call; Return ....; Return; When;
Always use scope terminators for loops and iteration.
As verbs, use the words Generate, Compute, Process, etc. Words such as set, reset, increment, compute, calculate, add, sum,
multiply, ... print, display, input, output, edit, test , etc. with careful indentation tend to foster desirable pseudocode.
Do not include data declarations in your pseudocode.


| CONTENTS | PREV | NEXT | Java Remote Method Invocation |
The goals for supporting distributed objects in the Java programming language are:
- Support seamless remote invocation on objects in different virtual machines
- Support callbacks from servers to applets
- Integrate the distributed object model into the Java programming language in a natural way while retaining most of the Java programming language's object semantics
- Make differences between the distributed object model and local Java platform's object model apparent
- Make writing reliable distributed applications as simple as possible
- Preserve the type-safety provided by the Java platform's runtime environment
- Support various reference semantics for remote objects; for example live (nonpersistent) references, persistent references, and lazy activation
- Maintain the safe environment of the Java platform provided by security managers and class loaders
Underlying all these goals is a general requirement that the RMI model be both simple (easy to use) and natural (fits well in the language).The first two chapters in this specification describe the distributed object model for the Java programming language and the system overview. The remaining chapters describe the RMI client and server visible APIs which are part of the Java 2 platform.


There is lots of literature on instruction pipelines in CPUs, but GPUs remain poorly understood. GPUs execute instructions in a wildly different manner, and many common compiler transformations that are effective for CPUs – such as strength reduction, or partial dead code elimination – can actually hurt GPU performance. Through the lens of NVidia’s latest series of GPUs, let’s take a look at how instructions are actually executed and how that affects us as programmers and compiler developers.
The NVidia GP100
The latest GPU from NVidia is downright impressive. Each GPU contains 56 SMs, each capable of issuing 4 warp-instructions per cycle, for a monstrous theoretical 7168 instructions per cycle. This theoretical limit is sadly, not reachable due to a relatively meager set of functional units behind the massive pipeline front-end. Each SM is divided into 2 symmetric halves, each containing 2 warp dispatchers, 8 memory load/store units, 16 double-precision floating-point units, 8 special function units (SFUs), and 32 general-purpose cores. Due to unit saturation, the actual maximum IPC is only 5376.
So why set up a GPU this way? The answer lies in the architecture, which can only rarely push instructions maximally through the front of the pipeline. Previous CUDA architectures often left many functional units idle, so the Pascal architecture reduced their number, instead adding additional SMs.
Mapping the Grid
Before we can discuss instruction execution, we need to understand what happens when a CUDA kernel is invoked. When you invoke a kernel such as kernel<<<gridDim, threadDim, sMem, stream>>>(d_ptr)
, the following things happen:
- If the stream provided is a blocking stream, we will wait for the stream to become idle before continuing
- The CUDA binary is selected as follows:
- If there is a cached binary for this kernel and compute architecture on the GPU, it is used.
- If there is a binary included in the executable for this kernel and compute architecture, it is sent to the GPU cache, and used.
- If there is PTX for this kernel in the executable, it is assembled by the CUDA runtime into a binary, sent to the GPU cache, and used.
- A compute work-unit is appended to the work queue for each unique grid index in gridDim
- Streaming Multiprocessors (SMs) each accept up work units until a resource limit is hit. Possible limits include number of threads(2048), blocks(32), registers(65536), or available shared memory(64K).
- The Streaming Multiprocessor assigns all required resources for all accepted threads, including registers and shared memory assignments. This allows for zero-overhead context switching, used later.
The Pascal Pipeline
At this point, each SM is ready to execute instructions. SMs manage threads in warps of 32, and decode/issue/execute those groups simultaneously.
Instructions flow down through the instruction cache, to the instruction buffer, are scheduled to a dispatch unit, which then executes in the appropriate CUDA core for the instruction. Similarly to many modern CPUs, Pascal GPUs contain a dedicated instruction cache, with extremely high hit rate. Unlike CPUs, when there is an instruction cache miss, the latency can often be hidden by other instructions already present in the instruction buffer.
The instruction buffer is where the SM first partitions. At initialization time, threads are assigned to one half of the SM or the other. NVidia has never published exactly how this split is done, but we can assume something simple like even/odd warp IDs is used. The instruction buffer does not just hold instructions, but rather (instruction, warpID, threadMask) tuples. The warpID is used to calculate the offset into the register file for each thread within the warp, and the threadMask is used to specify threads that should not execute the current instruction. Within the instruction buffer, entries are divided into ready and not-ready sets, where instructions in the ready set have all data available and are ready for execution.
For the moment, let’s step over the warp scheduler. It’s important, and we’ll get back to it, but we need to understand some other parts first. Let’s talk about dispatch. The dispatcher is responsible for ensuring threads get executed. It takes the given instruction, the warp ID, and the thread mask, and calculates the thread IDs that will actually execute the instruction. Using these thread IDs, it calculates absolute register addresses for each thread. Then, the dispatcher sends each thread-instruction to a free, applicable functional unit. If there are insufficient functional units, then the dispatch will queue the remaining thread-instructions for the following cycle.
So what do we have for functional units? The pascal architecture defines 4 different types of addressable functional unit: Load/Store memory units, Double precision floating-point units, Special functional units (used for approximate transcendental functions, such as sqrt, sin, etc), and “cores”, responsible for all remaining operations.
It’s at this point we reach the Warp Scheduler. The job of the warp scheduler is simple: Each cycle, try to fill both dispatch units. If you can’t, then stall one or both dispatch units.  Sometimes, one or both of the dispatch units will still be busy. 1. Don’t dispatch an instruction that we have no free functional units for. 1. If we dispatch 2 instructions, they must come from the same warp.
Each cycle, the warp scheduler recieves the number of available functional units, and the number of free dispatchers, as well as the instructions in the ready set. If both dispatchers are free, the warp scheduler preferentially selects a pair of sequential independent warp instructions. (Assuming both instructions have some free functional units) Failing that, it will stall one of the dispatchers, and selects an instruction with functional units available. Notably, the warp scheduler does not attempt to maximize functional unit usage.
So far, we’ve discussed how thread masks are used, but not how they are generated. Thread masks are generated by CUDA cores when a conditional branch is executed, and threads within the warp evaluate the conditions differently. You can imagine a stack of thread masks, where each subsequent divergent condition produces an additional thread-mask in the set. When some threads in a warp take a conditional branch, a mask is generated and put on top of the stack, executing the not-taken branch first. Masked execution continues until a compiler-injected merge point is reached. Then, the complement of the mask is generated and execution begins again from the taken branch target. When the merge point is reached again, the mask is popped off the stack.
Key Differences from CPUs
Some of the above sounds a little bit odd, but it’s worth pointing out how this system differs from traditional CPUs. The key idea behind the GPU architecture is clear: We don’t care about instruction latency. GPUs can execute an instruction from any thread, and each functional unit is fully pipelined (within reason, the memory subsystem has a finite request buffer). This means GPUs don’t have to wait for an instruction to complete before moving on, they just do something else while they wait. As long as there’s other work to be done, the GPU is working.
Pascal GPUs do not attempt to do register renaming, or pass results backwards. There’s no branch prediction, and most of the addressable functional units are multipurpose, to reduce the required complexity on the warp scheduler and dispatcher. Memory access is SLOW, with cache hit times upwards of 50 cycles, and cache misses climbing above 500 cycles. The goal of the GPU is to always be doing something else to hide latency, rather than trying to reduce it.
Takeaways
Aside from learning about a downright odd computing architecture, I hope you take some things away from this post. Here’s what I learned while writing this:
- In order to write performant code on the Pascal GPUs, the level of both thread-level and block-level parallelism must be extremely high.
- Branch divergence within a warp can halve performance because of the need to travel both paths, but phrasing the problem as arithmetic may not help if it uses more functional units.
- Using instructions that target previously unused functional units can actually unlock hidden additional performance
- Even as GPUs emphasize massive thread-level parallelism, instruction-level parallelism is still required for full performance.
If you made it this far, you’re probably way too interested in GPU architecture. I hope you learned something! Feel free to comment below, or subscribe to my RSS feed. Thanks!


Life is a long-term path where you are the teacher and the student: sometimes you will have to teach, but every day you will have to learn.
And I resume below the experience I acquired :


Excerpts from:
© 2017 | Licensed under ThomasMiltonM.net | All Rights Reserved. | |
<EMAIL_ADDRESS>| Meow well by the Four Claws of Winslow's Signature |||| . For Cat Eyes Only: On
Winslow and Casper


UTF-8
Libbson expects that you are always working with UTF-8 encoded text. Anything else is INVALID API USE.
If you should need to walk through UTF-8 sequences, you can use the various UTF-8 helper functions distributed with Libbson.
Validating a UTF-8 Sequence
To validate the string contained in my_string, use the following. You may pass -1 for the string length if you know the string is NULL-terminated.
if (!bson_utf8_validate (my_string, -1, false)) { printf ("Validation failed.\n"); }
If my_string has NULL bytes within the string, you must provide the string length. Use the follwing format. Notice the true at the end indicationg \0 is allowed.
if (!bson_utf8_validate (my_string, my_string_len, true)) { printf ("Validation failed.\n"); }
For more information see the API reference for bson_utf8_validate().


if weights is not None:
factors[0] *= weights
if copy:
weights = T.ones(rank, **T.context(factors[0]))
else:
weights[:] = 1
else:
weights = T.ones(rank, **T.context(factors[0]))
if copy:
factors = [T.copy(f) for f in factors]
if weights is not None:
factors[0] *= weights
weights = T.ones(rank, **T.context(factors[0]))
for factor in factors:
scales = T.norm(factor, axis=0)


Sometimes you get a series of events in Excel that you need video for. That data could come from a Point of Sale (POS) System or vehicles passing through a Toll Booth or employee time clocks.
This sample code is to show how to easily pull the video from Eagle Eye Networks without having to manually download the data.
In order to get this process started, I've made an easy way to create a spreadsheet to use in the above example.


public class MonotoneChain
extends java.lang.Object
Property 2 allows an efficient binary search to be used to find the intersection points of two monotone chains. For many types of real-world data, these properties eliminate a large number of segment comparisons, producing substantial speed gains.
One of the goals of this implementation of MonotoneChains is to be as space and time efficient as possible. One design choice that aids this is that a MonotoneChain is based on a subarray of a list of points. This means that new arrays of points (potentially very large) do not have to be allocated.
MonotoneChains support the following kinds of queries:
MonotoneChainSelectAction
and MonotoneChainOverlapAction
)
to return the results for queries.
This has time and space advantages, since it
is not necessary to build lists of instantiated objects to represent the segments
returned by the query.
Queries made in this manner are thread-safe.| Constructor and Description |
|---|
MonotoneChain(Coordinate[] pts,
int start,
int end,
java.lang.Object context) |
| Modifier and Type | Method and Description |
|---|---|
void |
computeOverlaps(MonotoneChain mc,
MonotoneChainOverlapAction mco)
Determine all the line segments in two chains which may overlap, and process them.
|
java.lang.Object |
getContext() |
Coordinate[] |
getCoordinates()
Return the subsequence of coordinates forming this chain.
|
int |
getEndIndex() |
Envelope |
getEnvelope() |
int |
getId() |
void |
getLineSegment(int index,
LineSegment ls)
Gets the line segment starting at
index |
int |
getStartIndex() |
void |
select(Envelope searchEnv,
MonotoneChainSelectAction mcs)
Determine all the line segments in the chain whose envelopes overlap
the searchEnvelope, and process them.
|
void |
setId(int id) |
public MonotoneChain(Coordinate[] pts, int start, int end, java.lang.Object context)
public void setId(int id)
public int getId()
public java.lang.Object getContext()
public Envelope getEnvelope()
public int getStartIndex()
public int getEndIndex()
public void getLineSegment(int index, LineSegment ls)
index
index
- index of segmentls
- line segment to extract intopublic Coordinate[] getCoordinates()
public void select(Envelope searchEnv, MonotoneChainSelectAction mcs)
The monotone chain search algorithm attempts to optimize performance by not calling the select action on chain segments which it can determine are not in the search envelope. However, it *may* call the select action on segments which do not intersect the search envelope. This saves on the overhead of checking envelope intersection each time, since clients may be able to do this more efficiently.
searchEnv
- the search envelopemcs
- the select action to execute on selected segmentspublic void computeOverlaps(MonotoneChain mc, MonotoneChainOverlapAction mco)
The monotone chain search algorithm attempts to optimize performance by not calling the overlap action on chain segments which it can determine do not overlap. However, it *may* call the overlap action on segments which do not actually interact. This saves on the overhead of checking intersection each time, since clients may be able to do this more efficiently.
searchEnv
- the search envelopemco
- the overlap action to execute on selected segments


Jeon So Min gets embarrassed when GOT7's Jinyoung, who is 'totally her type', appears as a guest on 'Running Man'
by beansssActress Jeon So Min will be coming face to face with GOT7's Jinyoung on this week's episode of SBS's 'Running Man'!
Previously during 'Running Man', while trying to fulfill a mission with a photo of GOT7, Jeon So Min confessed that of the GOT7 members, Jinyoung was "totally her type" and that she "wanted to meet him again".
On this week's episode, with GOT7's Jinyoung returning as a guest, Jeon So Min couldn't hide her joy! When Jinyoung stood next to her, Jeon So Min hid behind Song Ji Hyo, until Song Ji Hyo commented, "Why are you acting so weird right next to my side?"
You can tune in to the full episode of this week's 'Running Man' on November 17 at 5 PM KST, to catch Jeon So Min x GOT7's Jinyoung!


https://0x00sec.org/t/porting-the-leaked-equation-group-eqgrp-fuzzbunch-tool-to-linux/1956
http://pentestit.com/install-fuzzbunch-danderspritz/
https://www.dearbytes.com/blog/playing-around-with-nsa-hacking-tools/
https://medium.com/@joe_norton/running-eternalblue-on-kali-through-a-meterpreter-port-forward-edd877dfd724
https://www.peerlyst.com/posts/exploiting-ms17-010-using-fuzzbunch-and-metasploit-hardw00t
https://github.com/peterpt/fuzzbunch
https://github.com/mdiazcl/fuzzbunch-debian


Do somthing
At Mozilla, we’re a global community of
technologists
thinkers
builders
working together ...
Mozilla Manifesto


Lets backtest the portfolio! All my (messy) code and data is available at my Github page. As data for some of the funds are limited, I’ve had to make some changes to the portfolio for the backtest. The changes I’ve made, compared to the portfolio I’m planning to implement are the following:
The first three changes shouldn’t change much as the returns for the new funds should be similar. The largest risk is with the two last changes as the performance becomes very dependent on those funds.
But when looking at the returns I believe they should be pretty representative for those type of funds. Lynx has posted steady returns since its inception in 2000. Nothing spectacular (+ ~40% over the last 10 years), but as expected it has been largely unaffected by periods like 2000, 2008, 2018 and 2020.
Amundi Fds Volatil Wld has performed as I expect a long vol fund to perform. Big returns in periods like 2008 and 2020 and small losses along the way. So, hopefully these changes wont do that much.
With these modification I have data going back to November 2007. Ideally I would like more, but this at least captures the financial crisis etc. I’m not using any leverage (except if the funds are using it by themselves). Returns include all fees except for Amundis entry fee and are measured in Swedish Krona (SEK).
Lets start by following the same methodology as presented in the paper. Decide the weighting for the individual components and rebalance every month.
That gives us:
As we can see, the returns are fairly steady:
And max drawdowns are fairly limited:
We can compare this to a classic 60/40 portfolio of global equities and US bonds.
It’s had the following returns:
So, very similar returns to the dragon portfolio:
And drawdowns wasn’t terribly different either (but it was harder hit by the financial crisis):
This is over a period where equities and bonds has rallied a lot. Sure the start date right before the financial crisis affects the result. But still impressive by the dragon portfolio IMO.
If we look at a portfolio with 100% global equities this is the result (remember the results are in SEK):
Pretty surprising if you ask me (again the start date is of course a big factor here).
I doubt bonds can post the same gains as before and equities leaves you very vulnerable (6 years in the hole if you’ve used the fund above).
So, with this I feel comfortable that “my” dragon portfolio would have performed decent in most environments and that it’s not super different then the portfolio in the paper.
So, I’d like to implement it. But how should I do that? Rebalancing every component every month is not a realistic option. Fees would eat you up (and you wouldn’t be the most popular customer in some of the funds).
So, lets try to rebalance less often. What happens if we rebalance every 3 months?
This is the returns:
As one could imagine, not that much of a difference from 1 month.
Lets try every 6 months:
Some difference, but still not that much.
For the really lazy person, can you get away with rebalancing once a year?
Every 12 months:
Your returns would have taken a small hit. But still not that different from rebalancing every month.
So, we can get away with rebalancing the portfolio less often. Can we do it smarter? If a position only has moved a few % in a given time period, it seems unnecessary to pay transaction fees to change that.
What happens if we only rebalance if a position gets more then a set % from it’s starting weight?
Lets start with 10% as a limit. So, if we (in our backtest portfolio) have 75% allocated to global equities in the equity bucket. It means global equities is 18% of the total portfolio. This component can then move +-1.8% of the total portfolio before we change it.
If it moves more, we change it to 18% again (and use the positions that’s moved in the other direction to rebalance it). This way we can calculate the number of transactions that we need to do as well.
Lets start with 10% as a limit. That gives the following returns:
This portfolio actually performed slightly better then the first one.
To follow this plan you would have needed to make 214 transactions over 13 years. That’s 4 trades every quarter. Can we increase the limit and get away with fewer transactions?
This is with 15%:
This actually gives us better returns. The number of transactions to follow this plan is reduced to 111. Less then one transaction a month and about 2 transactions every quarter. Can we get away with 20%?
Returns with 20% limit:
It’s starting to affect returns slightly. But you only had to do 63 transactions in 13 years (~1 transaction every quarter). Maybe you could go even higher. But it’s a risk I don’t want to take. With the limited data I have to work with there might be errors with that strategy that doesn’t show up here.
The sweet spot seems to be in the range of 10-20%. I guess it depends on how active you like to be. The number of transactions might of course be slightly higher if you have more components in the different buckets (depending on your strategy).
I’m personally leaning against setting a limit of a +-15% change for any individual component. You can of course set it for each “bucket” as well if you like that. If we look at the largest component, equities, as a “worst case”. This bucket is then allowed to move between 20.4% and 27.6% before any adjustments are made (this is if both global equities and Swedish equities perform about the same).
I could live with that for the advantage of doing fewer trades.
If you are interested in how a dragon portfolio performs if money is taken out of the portfolio (for example when you retire), check out: Retiring


String Synthesis
Strings are the basic building blocks of many musical instruments, including guitars, violins, and dulcimers.
Various physical modeling schemes exist for modeling strings, such as the Karplus-Strong technique,
modal synthesis, and finite-difference time-domain (FDTD) methods. The displacement \(u = u(x, t)\) of a lossy
forced string of finite length \(L\) and fixed boundary conditions is described by the 1D wave equation
with loss and forcing
$$u_{tt} = c^2 u_{xx} - 2\sigma_0 u_t + \delta F$$
where \(c\) is the speed of sound in the string, \(\sigma_0\) is a non-negative damping constant,
\(\delta = \delta(x-x_i)\) is the 1D delta function centered at the excitation location \(x_i\), and \(F\) is the
time-dependent forcing signal.
I modeled string vibrations by solving for the displacement \(u\) using FDTD and modal synthesis. For
comparison, I also simulated string vibrations using the Karplus-Strong approach, which
implements delays to approximate the vibrations.


| 1264 | (A) | and Bedełłs callede thaym forthee als þay that criste sloughe |
| 1258 | (C) | Cryours kallede hem fortħ . þo þat cryste slowen |
| 1252 | (D) | Cryours callid hym forþ as þei þat Crist slowyn |
| 1228 | (E) | & callyd hem afore hym . tho þat cryst slowyn . |
| (Ex) | ---- no text ---- | |
| 1293 | (L) | Crioure callen hem forþ as hy þat crist slowen |
| (P) | ---- no text ---- | |
| 1235 | (U) | Criours cald hem forth / os thei that crist slowen |
| 329 | (V) | Criours called hem furthe . as þey þat crist slowen |


Susy asymmetric!


- First Block
- First Block
- First Block
- First Block
- First Block
- First Block
- First Block
- First Block
- First Block
- First Block
- Second Block
- Second Block
- Second Block
- Second Block
- Second Block
- Second Block
- Second Block
- Second Block
- Second Block
- Second Block
- Third Block
- Third Block
- Third Block
- Third Block
- Third Block
- Third Block
- Third Block
- Third Block
- Third Block
- Third Block


--- layout: documentation title: ResourceType ---
| Field Name | Type | Description |
|---|---|---|
| Tools0..1 | ToolsType |
The Tools field specifies one or more Tools leveraged by this TTP item. |
| Infrastructure0..1 | InfrastructureType |
The Infrastructure field characterizes specific classes or instances of infrastructure observed to have been utilized for cyber attack. |
| Personas0..1 | PersonasType |
The Personas field characterizes specific classes or instances of personas (identities) leveraged by a threat to masquerade as other parties. |


Pygments FAQ¶
What is Pygments?¶
Pygments is a syntax highlighting engine written in Python. That means, it will take source code (or other markup) in a supported language and output a processed version (in different formats) containing syntax highlighting markup.
Its features include:
- a wide range of common languages and markup formats is supported (look here for a list)
- new languages and formats are added easily
- a number of output formats is available, including:
- HTML
- ANSI sequences (console output)
- LaTeX
- RTF
- it is usable as a command-line tool and as a library
- parsing and formatting is fast
Pygments is licensed under the BSD license.
Where does the name Pygments come from?¶
Py of course stands for Python, while pigments are used for coloring paint, and in this case, source code!
What are the system requirements?¶
Pygments only needs a standard Python install, version 2.6 or higher or version 3.3 or higher for Python 3. No additional libraries are needed.
How can I use Pygments?¶
Pygments is usable as a command-line tool as well as a library.
From the command-line, usage looks like this (assuming the pygmentize script is properly installed):
pygmentize -f html /path/to/file.py
This will print a HTML-highlighted version of /path/to/file.py to standard output.
For a complete help, please run pygmentize -h
.
Usage as a library is thoroughly demonstrated in the Documentation section.
How do I make a new style?¶
Please see the documentation on styles.
How can I report a bug or suggest a feature?¶
Please report bugs and feature wishes in the tracker at Bitbucket.
You can also e-mail the author or use IRC, see the contact details.
I want this support for this language!¶
Instead of waiting for others to include language support, why not write it yourself? All you have to know is outlined in the docs.
 However, parsing them is not possible, though some lexers go some steps in this direction in order to e.g. highlight function names differently.
Also, error reporting is not the scope of Pygments. It focuses on correctly highlighting syntactically valid documents, not finding and compensating errors.
Who uses Pygments?¶
This is an (incomplete) list of projects and sites known to use the Pygments highlighter.
- Pygments API, a HTTP POST interface to Pygments
- The Sphinx documentation builder, for embedded source examples
- rst2pdf, a reStructuredText to PDF converter
- Zine, a Python blogging system
- Trac, the universal project management tool
- Bruce, a reStructuredText presentation tool
- AsciiDoc, a text-based documentation generator
- ActiveState Code, the Python Cookbook successor
- ViewVC, a web-based version control repository browser
- BzrFruit, a Bazaar branch viewer
- QBzr, a cross-platform Qt-based GUI front end for Bazaar
- BitBucket, a Mercurial and Git hosting site
- GitHub, a site offering secure Git hosting and collaborative development
- Review Board, a collaborative code reviewing tool
- skeletonz, a Python powered content management system
- Diamanda, a Django powered wiki system with support for Pygments
- Progopedia (English), an encyclopedia of programming languages
- Postmarkup, a BBCode to XHTML generator
- Language Comparison, a site that compares different programming languages
- BPython, a curses-based intelligent Python shell
- Challenge-You!, a site offering programming challenges
- PIDA, a universal IDE written in Python
- PuDB, a console Python debugger
- XWiki, a wiki-based development framework in Java, using Jython
- roux, a script for running R scripts and creating beautiful output including graphs
- hurl, a web service for making HTTP requests
- wxHTMLPygmentizer is a GUI utility, used to make code-colorization easier
- WpPygments, a highlighter plugin for WordPress
- LodgeIt, a pastebin with XMLRPC support and diffs
- SpammCan, a pastebin (demo see here)
- WowAce.com pastes, a pastebin
- Siafoo, a tool for sharing and storing useful code and programming experience
- D source, a community for the D programming language
- dumpz.org, a pastebin
- dpaste.com, another Django pastebin
- PylonsHQ Pasties, a pastebin
- Django snippets, a pastebin for Django code
- Fayaa, a Chinese pastebin
- Incollo.com, a free collaborative debugging tool
- PasteBox, a pastebin focused on privacy
- xinotes.org, a site to share notes, code snippets etc.
- hilite.me, a site to highlight code snippets
- patx.me, a pastebin
If you have a project or web site using Pygments, drop me a line, and I’ll add a link here.


|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.numericalmethod.suanshu.vector.doubles.dense.operation.CreateVector
public class CreateVector
CreateVector a new vector from an existing vector. These are the utility functions to create a vector from existing ones.
| Method Summary | |
|---|---|
static Vector |
concat(Vector... vectors)
Take an array of vectors and concatenate them into one vector. |
static Vector |
diagonal(Matrix A)
Take the diagonal of a matrix. |
static Vector |
foreach(Vector vector,
UnivariateRealFunction f)
Produce a new vector in which each entry is the result of applying the function to the corresponding entry of this vector. |
static Vector |
subDiagonal(Matrix A)
Take the sub-diagonal of a matrix. |
static Vector |
subVector(Vector v,
int from,
int to)
Get a sub-vector from a vector v . |
static Vector |
superDiagonal(Matrix A)
Take the super-diagonal of a matrix. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Vector concat(Vector... vectors)
vectors
- an array of vector, e.g., [v1, v2, v3, ...]
c(v1, v2, v3, ...)
public static Vector foreach(Vector vector, UnivariateRealFunction f)
function
to the corresponding entry of this vector.
This vector is not changed after this method call.
f
- the function f
to be applied to each entry of this vectorvector
- a vector
public static Vector subVector(Vector v, int from, int to)
v
.
v
- the vectorfrom
- the beginning indexto
- the ending index
v[from : to]
public static Vector diagonal(Matrix A)
A
- a matrix
Ai
public static Vector superDiagonal(Matrix A)
A
- a matrix
Ai,i+1
public static Vector subDiagonal(Matrix A)
A
- a matrix
Ai+1,i
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |


Cherna Ninja
Age:100
Birth date:10/10/2100
Birth place:Tokyo
Gender:ninja
Interests:
fighting
Skills:


SweetFreeStuff.com
///////////////////////////////////////////
Free Ben & Jerrys Mini Cup
Posted: 13 Jul 2015 06:13 AM PDT
http://feedproxy.google.com/&edburner&utm_medium=email
Save 100% when you buy ONE (1) 3-4 oz. Ben Jerrys® Mini Cup. Expires
7/15/2015/ Free Ben Jerrys Mini Cup
The post Free Ben Jerrys Mini Cup appeared first on SweetFreeStuff.com.
///////////////////////////////////////////
Free Meal at Chick-fil-A on July 14
Posted: 13 Jul 2015 04:08 AM PDT
http://feedproxy.google.com/&edburner&utm_medium=email
For one day only, black and white spots, cow bells and furry ears will be
appropriate attire at Chick-fil-A restaurants all across the nation. In
celebration of Cow Appreciation Day, Chick-fil-A will award a FREE Meal
(breakfast, lunch or dinner) to any customer who comes to one of our 1,700+
restaurants fully dressed as a cow. Continue reading Free Meal at
Chick-fil-A on July 14
The post Free Meal at Chick-fil-A on July 14 appeared first on
SweetFreeStuff.com.
///////////////////////////////////////////
Free Breathe Right Nasal Strips
Posted: 13 Jul 2015 03:45 AM PDT
http://feedproxy.google.com/&edburner&utm_medium=email
Free Breathe Right Nasal Strips
The post Free Breathe Right Nasal Strips appeared first on
SweetFreeStuff.com.
///////////////////////////////////////////
Free Sachet of Nikwax Waterproofing Wax for Leather
Posted: 13 Jul 2015 03:18 AM PDT
http://feedproxy.google.com/&edburner&utm_medium=email
You need to take their quiz and answer all questions correctly to get a
free sachet. Free Sachet of Nikwax Waterproofing Wax for Leather
The post Free Sachet of Nikwax Waterproofing Wax for Leather appeared first
on SweetFreeStuff.com.
///////////////////////////////////////////
Free Nikwax Concentrated Tent & Gear Solar Proof Sample
Posted: 13 Jul 2015 02:49 AM PDT
http://feedproxy.google.com/&edburner&utm_medium=email
Take the quiz on the page and answer the questions correctly.
The post Free Nikwax Concentrated Tent Gear Solar Proof Sample appeared
first on SweetFreeStuff.com.
///////////////////////////////////////////
4 Free Lindsay Olives Products (WI & IL)
Posted: 13 Jul 2015 02:45 AM PDT
http://feedproxy.google.com/&edburner&utm_medium=email
For residents of Wisconsin or Illinois. Get 4 Free Full Size Lindsay Olives
Product coupons.
The post 4 Free Lindsay Olives Products (WI IL) appeared first on
SweetFreeStuff.com.
///////////////////////////////////////////
Free Alere Toxicology Common Drugs of Abuse Poster
Posted: 13 Jul 2015 02:27 AM PDT
http://feedproxy.google.com/&edburner&utm_medium=email
Free Alere Toxicology Common Drugs of Abuse Poster
The post Free Alere Toxicology Common Drugs of Abuse Poster appeared first
on SweetFreeStuff.com.
///////////////////////////////////////////
Free 32oz Fountain Drink at Stripes Stores
Posted: 13 Jul 2015 01:45 AM PDT
http://feedproxy.google.com/&edburner&utm_medium=email
Coupon good for a free 32oz fountain drink at Stripes Stores. Good through
7/14. Check locations.
The post Free 32oz Fountain Drink at Stripes Stores appeared first on
SweetFreeStuff.com.
///////////////////////////////////////////
Free LOreal Hair Care Samples
Posted: 13 Jul 2015 01:42 AM PDT
http://feedproxy.google.com/&edburner&utm_medium=email
Free L’Oreal Hair Care Samples
The post Free L’Oreal Hair Care Samples appeared first on
SweetFreeStuff.com.


Traditional APIs are too complicated
⇨ RESTful Web APIs
Deployment is too complicated
⇨ Cloud
GUI Programming is too complicated
⇨ HTML5 + JavaScript
HTML5 + JavaScript is too complicated
⇨ AngularJS + Bootstrap
|
|
|
Request
GET /dctm-rest/cabinets HTTP/1.1
Host: documentum.example.com
Accept: application/vnd.emc.documentum+json
Response
HTTP/1.1 200 OK
Date: Friday, 03 April 2015 12:42:38 GMT
Server: Apache/2.4.2
Content-Type: application/vnd.emc.documentum+json
{
"id": "http://localhost:8080/dctm-rest/repositories/REPO/cabinets",
"title": "Cabinets",
"author": [
{
"name": "EMC Documentum"
}
],
"updated": "2015-02-11T08:02:46.060+00:00",
"page": 1,
"items-per-page": 100,
"links": [
{
"rel": "self",
"href": "http://localhost:8080/dctm-rest/repositories/REPO/cabinets"
},
{
"rel": "next",
"href": "http://localhost:8080/dctm-rest/repositories/REPO/cabinets?items-per-page=100&page=2"
},
{
"rel": "first",
"href": "http://localhost:8080/dctm-rest/repositories/REPO/cabinets?items-per-page=100&page=1"
}
]
A message is self-descriptive.
... it contains everything you need to interpret it.
Interaction is stateless between requests.
No persistent connection.
Client can send tokens or cookies to indicate client state.
Standard methods and media types are used to indicate semantics and exchange information.
Responses state whether they can be cached.
Representations are JSON, HTML, or XML documents that indicate client state using links.
Servers provide choices to clients using links in responses.
REST = REpresentational State Transfer
Servers
The Web page analogy: REST for humans
|
HTTP/1.1 200 OK
Date: Friday, 03 April 2015 12:42:38 GMT
Server: Apache/2.4.2
Content-Type: application/vnd.emc.documentum+json
{
"id": "http://localhost:8080/dctm-rest/repositories/REPO/cabinets",
"title": "Cabinets",
"author": [
{
"name": "EMC Documentum"
}
],
"updated": "2015-02-11T08:02:46.060+00:00",
"page": 1,
"items-per-page": 100,
"links": [
{
"rel": "self",
"href": "http://localhost:8080/dctm-rest/repositories/REPO/cabinets"
},
{
"rel": "next",
"href": "http://localhost:8080/dctm-rest/repositories/REPO/cabinets?items-per-page=100&page=2"
},
{
"rel": "first",
"href": "http://localhost:8080/dctm-rest/repositories/REPO/cabinets?items-per-page=100&page=1"
}
]
I am getting frustrated by the number of people calling any HTTP-based interface a REST API.
... if the engine of application state (and hence the API) is not being driven by hypertext, then it cannot be RESTful and cannot be a REST API. Period.
(Roy Fielding)
... today if you see an API that claims to be RESTful, it’s basically saying
“To work with our data, send the proper HTTP verb to the URIs in our online docs and specify whether ya want JSON or XML”.
Servers provide choices via links in hypertext documents.
Clients need to know how to find and use links for each media type.
That's what a REST API description language should focus on. Most focus on other things instead.
To prevent tight coupling between the client and the service, truly RESTful APIs provide a discovery based API. Each call provides a reference to related calls.
This allows the API to be highly evolvable because it avoids creating a coupling between the client and the server.
Servers and clients can evolve independently.
URI formats and the services offered can change without breaking clients.
Servers can redirect clients to other servers.
Servers can add metadata to client links.
Referring website
Tracking information
Metadata used for optimization
The Server's view is the Resource Model
The Client view is HTTP + Hypermedia


NAMI Website Redesign: Part 1
A crash course in soft skills.
Preface
This is part one in a case study series. Visit Part Two of this case study series for an in-depth exploration of the research phase.
Overview
This project, an assignment for a UX Applied Lab class at Austin Community College, was different from other projects in one major way. This time there was a client, the National Alliance on Mental Illness (NAMI) Central Texas. Part 1 of this case study covers three soft skills I honed through this project: logistics, vital decisions, and team communication.
The Problem
The NAMI team had a deep understanding of their users and presented us with two main user problems:
- The website looked dated
- Users had trouble using the site
Investigating the first problem, a visit to the site showed that the site’s aesthetic was dated.
As for the second problem, NAMI had qualitative data: users would call and ask questions about how to use the site.
The Team
- Emilio Harrison – User Interface Design
- Janet Martin – Visual Design
- Kristi Polozoff – Research
- Osman Seyrek - Project Manager
Research
Although NAMI had some data to support their reported problems, we needed to validate them and determine the extent to which the problems existed.
Kristi designed a tree test to evaluate the navigation of the original site. This revealed an overall success rate of 60%, but why? We conducted interviews and ran card sorting sessions to identify two reasons:
- Users didn’t understand the names of the classes, workshops, and support groups
- Users couldn’t find specific things they were looking for on the site
Design
We designed a new navigation structure. Through moderated card sorting sessions we learned that users organize content by intended audience. This finding informed our final design for the information architecture and led us to take a “task then user role” approach.
Outcome
Evaluation of the project exceeded the original time line, but I was fortunate to continue this project with another team. We ran another tree test with the new navigation. That study is still ongoing, but as of now we have seen an overall success rate of 86%.
Lessons
With this case study, I want to highlight the soft skills I learned. Although I’d worked on teams at H-E-B, this was the first time I collaborated on a design project. Unlike business, design is a creative field and in some ways much more subjective. Because of that, ‘soft’ and professional skills--like those below--came into play a lot more than I expected.
- Logistics:
Staying organized on a project
- Vital Decisions:
Realizing which decisions are life or death
- Team Communication:
Asking myself, “Is this the best way to ask this question?”
Logistics
Unlike previous projects, I was working with a client, a four-person team, research, designs, studies, work files… and more and more. I pretty quickly realized the need for organization.
This calendar event in Figure 4 illustrates that initiative. A closer look at the information demonstrates that it’s much more than just a calendar event.
- The title tells me it’s a client meeting, so I should be prepared
- The remote meeting option tells me it's not necessary to meet in person
- The guest list tells me who will be in attendance
Why is all this important? Well, in other projects, it was just me. I never created events. Why would I? No one else was joining. I learned to work in an unorganized way. It’s so easy to waste time by being confused or unprepared. With this collaborative project, I un-learned these time-wasting habits and taught myself some invaluable planning skills.
Takeaway: Stay organized and always be sure to communicate relevant details with the team.
Vital Decisions
On a team it’s important to determine which decisions are vital and which aren’t. In other words, not every decision is life or death for the project. I have a tendency to make a decision and stick to it, but I realized that having that approach to every single decision isn’t the best for two reasons. First, like anyone’s, my first instincts are of course not always right. Furthermore, not every decision has high stakes for the project.
For example, I designed the top sample and was originally determined that that was the only way it was going to look. Another team member designed an alternative, the bottom image, but I wouldn’t budge.
Finally, at some point it clicked. This isn’t a vital decision. The other design isn’t wrong. It just wasn’t my idea. Let’s go with it. I remembered that the team shares my goal to deliver a great design, and that they are just as passionate about this project as I am. I learned to trust that they are doing what they think is best.
My takeaway: If something doesn’t directly affect our user’s goal, then it isn’t vital. If it isn’t vital and the other person’s idea isn’t clearly wrong, then compromising is more productive than stressing.
Team Communication
Ok, I’ll admit this lesson was a hard one learned. I stressed over this alot. I think the best way to talk about this is going straight into an example.
Consider the Slack message below[1]. Slack is an app which teams can quickly communicate with each other and share files.
At the start of the project I defaulted to Slack for all communication, thinking “Hey, I’m gonna use this Slack thing so I can be cool and it’s just super easy.” What you see in the screenshot is an example of a message I sent early on. I asked for feedback, I sent an image of a design, and I asked for a ton of specific points and questions. The problem is that this is not the best way to have this conversation.
After realizing that how I communicated wasn’t working, here is what my messages turned into.
It’s a simple request to jump on a call for a feedback session, with a link included.I thought Slack failed me in a major way, but I realized I hadn’t really asked myself if I was using it the right way. Moving forward, I was more thoughtful in matching the medium of the conversation with its goals, and the team was able to communicate more effectively and get things done.
My takeaway: Be aware of what it is that you want to communicate to the team and the best medium to do so, not just the most convenient.
Conclusion
I initially went into this project like other projects I’ve worked on at my job, HEB, but I quickly realized that business approach wasn’t the most effective. Because of the subjective nature of design I got a crash course in ‘soft’ skills. The team was successful in delivering the project to the client and even exceeded their expectations. As a plus I learned 3 key takeaways:
- Stay organized and always be sure to communicate relevant details with the team
- If something doesn’t directly affect our user’s goal, then it isn’t vital. If it isn’t vital and the other person’s idea isn’t clearly wrong, then compromising is more productive than stressing.
- Be aware of what it is that you want to communicate to the team and the best medium to do so, not just the most convenient
Feedback
Share your thoughts, questions, or ideas.


We recommend you:
Before you start exploring, take the time to look at some things that are not totally complete. We want to make your life easier so the more you tell us the more we can help you.
Complete Your Profile
90%
Add Your High School
0%
Review Your Settings
60%
-
Aid Timeline
Milestones
Show Me:
I've Started CollegeComplete Master Promissary Note
June 1
Graduate High School
View Your Student Aid Report
New Message from Federal Student Aid
Hey Jake!
Welcome to your new student portal account. Your information has been sent to the SSA for verification. Take a moment to get familiar with your portal. Before you get started applying for aid we recommend that you finish your profile andMay 15
FAFSA Started!
University of Maryland FAFSA Deadline Nov 25th Remind Me Again
You're ready to fill out the FAFSA go for it! If you’d like more information first, we can help.
"FAFSA Overview" View accessible
Complete A FAFSA Show Details
Apply For College Show Details
Learn About Aid Show Details
-
My Aid
My Aid Overview
Outstanding Loan Balance
$15,600
Grants
$5,000
Lifetime Pell Grant Eligibility
60%
Subsidized Loan enrollment limits
Your program: 4 year degree
You have received subsidized loans for 4.5 of the 6 year maximum enrollment period
Loans Date Type Interest Servicer Outstand Balance Sub Loan 1 Sep 2010 Sep 2010 Subsidized 3.4% Fannie Mae $5,500 3.4% School: University of Ohia
Remaining Amount
$1,000
Amount Disbursed
$2,500
Total Amount
$3,500
No Payment Plan Selected
Servicer: FannieMae
First Disbursement: Sept 1, 2012
Next Disbursement: June 17, 2013
Sub Loan 3 Nov 2001 Nov 2001 Subsidized 6.4% Fannie Mae $4,000 6.4% School: University of Ohia
Remaining Amount
$1,000
Amount Disbursed
$2,500
Total Amount
$3,500
No Payment Plan Selected
Servicer: FannieMae
First Disbursement: Sept 1, 2012
Next Disbursement: June 17, 2013
Sub Loan 3 March 2013 March 2013 Subsidized 5.4% Fannie Mae $3,500 5.4% School: University of Ohia
Remaining Amount
$1,000
Amount Disbursed
$2,500
Total Amount
$3,500
No Payment Plan Selected
Servicer: FannieMae
First Disbursement: Sept 1, 2012
Next Disbursement: June 17, 2013
Grants
Total Grants
$5,000
% of Lifetime Limit
63%
-
Documents
slide : Documents
-
Tools & Resources
slide : Tools & Resources
-
Profile
slide : Profile


 Sometimes, an extensive area of cirrocumulus can look like fish scales, leading sailors of old to call it ‘mackerel sky’. Altocumulus aren't associated with precipitation themselves, but they signify unstable air in the middle of the atmosphere that can be the sign of an approaching storm system.
Altostratus is a horizontal cloud like stratus, but higher up in the atmosphere. The sun looks milky and diffuse through it. Altostratus can produce precipitation, but it frequently evaporates before it hits the ground. Sometimes, if there's enough moisture in the lower levels of the atmosphere, altostratus can build down and become nimbostratus.


Lorem ipsum dolor sit amet consectetur adipisicing elit. Iste sunt porro delectus cum officia magnam.
Lorem ipsum dolor sit amet consectetur adipisicing elit. Iste sunt porro delectus cum officia magnam.
Lorem ipsum dolor sit amet consectetur adipisicing elit. Iste sunt porro delectus cum officia magnam.
Lorem ipsum dolor sit amet consectetur adipisicing elit. Iste sunt porro delectus cum officia magnam.
Lorem ipsum dolor sit amet consectetur adipisicing elit. Iste sunt porro delectus cum officia magnam.
Lorem ipsum dolor sit amet consectetur adipisicing elit. Iste sunt porro delectus cum officia magnam.
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et.
“Design must be functional and functionality must be translated into visual aesthetics, without any reliance on gimmicks that have to be explained. ” — Ferdinand A. Porsche
“Creativity is just connecting things. When you ask creative people how they did something, they feel a little guilty because they didn’t really do it, they just saw something. It seemed obvious to them after a while. ”— Steve Jobs
“I think design would be better if designers were much more skeptical about its applications. If you believe in the potency of your craft, where you choose to dole it out is not something to take lightly. ”— Frank Chimero


Shetland Pony Jokes
Shetland Pony Jokes
Home
About Us
Photos
Videos
Poems
Jokes
Games
Shetland Pony Jokes!
What did the pony say when it had a sore throat?
I'm a little hoarse!


IT Archeology
or how I became a programmer
Maciej Małecki
@mmalecki77
delivery architect at
1989» BASIC → 6502 Asm → Turbo Pascal → x86 Asm → C++
→ Delphi → Java → JavaScript → TypeScript → ? »2019
http://www.histoireinform.com/Histoire/+infos2/chr4infp.htm
Chuck joined Motorola in 1973
1972-1974: Intel 8080
1971-1975: Motorola 6800
IDEA
cheap version of MC6800
300$ → 20$
Altair 8800 - 1974
MOS 6502 - 1975
Motorola lawsuit
November 1975
Two guys struggling with their design
Apple I: finally revealed in 1976
November 1976
Commodore acquires MOS Technology
What was Commodore doing at this moment?
Calculators based on MOS chips
1977
The 1977 Trinity
By Springsgrace - Own work, CC BY-SA 4.0,
https://commons.wikimedia.org/w/index.php?curid=79216985
1978: Peddle goes to Apple to join Lisa project
bye bye $$$ :-(
Peddle leaves Apple in 1979, joins Commodore again
bye bye even more $$$ :-(
1980: Peddle leaves Commodore for good
Got sued by Commodore; bye bye rest of $$$
meanwhile Commodore sells over 1 million of VIC-20...
a record to be soon beaten by Commodore 64
1982-1994, 12.5-17 million
Where can we find 6502 and its variants?
Apple II
Commodore PET 2001
Atari VCS
Atari 800
Commodore VIC-20
Commodore 64
Atari 7800
BBC Micro
Nintendo Famicom
Nintendo Entertainment System
Apple IIe
CBM II
Commodore Plus/4
Commodore 128
Tomagotchi
Racing the beam
A Carol Shaw story
An author of River Raid game (1982)
https://info.umkc.edu/unews/celebrating-women-in-stem-carol-shaw/
WIKI Commons, PD
Live coding in Assembly?
It's gonna be fun
All stuff on Github
https://github.com/maciejmalecki/chamberconf2019


This page will hold a prototype for other websites, so I won't have anything but a list to other pages here.


Servo Motors
The BrainPad has built in support for two servo motors. These can be either continuous or positional servo motors. Continuous servo motors can have their speed and direction controlled but there is no control over their position. They are capabable of rotating continously in either direction.
Positional servo motors only accept position commands. Positional servo motors only rotate part way through a revolution, usually turning up to half of a revolution (180 degrees). While you can tell a servo motor to go to a specific position, you have no control over how fast it will get there. The positional servo motor will move to a given position as quickly as possible, but it's speed depends on how much load is put on the motor.
Servo Motor Methods
BrainPad.ServoMotors.ServoOne.ConfigureAsContinuous(bool inverted)
(Atrue
argument will make the motor move in the opposite direction.)BrainPad.ServoMotors.ServoTwo.ConfigureAsContinuous(bool inverted)
(Atrue
argument will make the motor move in the opposite direction.)BrainPad.ServoMotors.ServoOne.ConfigureAsPositional(bool inverted)
(Atrue
argument will invert the position so the 0 degree position becomes the 180 degree position and vice versa.)BrainPad.ServoMotors.ServoTwo.ConfigureAsPositional(bool inverted)
(Atrue
argument will invert the position so the 0 degree position becomes the 180 degree position and vice versa.)BrainPad.ServoMotors.ServoOne.ConfigurePulseParameters(double minimumPulseWidth, double maximumPulseWidth)
(Pulse width in milliseconds)BrainPad.ServoMotors.ServoTwo.ConfigurePulseParameters(double minimumPulseWidth, double maximumPulseWidth)
(Pulse width in milliseconds)BrainPad.ServoMotors.ServoOne.Set(double value)
(allowable position from 0 to 180 degrees for positional motors, allowable speed from -100% to 100% for continuous motors.)BrainPad.ServoMotors.ServoTwo.Set(double value)
(allowable position from 0 to 180 degrees for positional motors, allowable speed from -100% to 100% for continuous motors.)BrainPad.ServoMotors.ServoOne.Stop()
BrainPad.ServoMotors.ServoTwo.Stop()
Servo Motor Sample Code
Positional Servo Example
The following program configures servo one for a servo motor that expects positional pulses in the one to two millisecond range. It then moves the motor to the zero degree position, waits five seconds, and then moves the motor to the 180 degree position.
To try it, start a new C# project, manage the NuGet packages, and add the BrainPad helper code. Then copy this code and paste it into the Program.cs
window replacing the just the main
method in the original program.
static void Main()
{
BrainPad.ServoMotors.ServoOne.ConfigureAsPositional(false);
BrainPad.ServoMotors.ServoOne.ConfigurePulseParameters(1.0, 2.0);
BrainPad.ServoMotors.ServoOne.Set(0.0);
BrainPad.Wait.Seconds(5.0);
BrainPad.ServoMotors.ServoOne.Set(180.0);
}
Continuous Servo Example
The following program configures servo two for connection to a continous servo motor. The program moves the motor for five seconds at 100 percent speed in one direction, and then reverses direction for 5 seconds at 60 percent speed. It then stops the motor.
To try it, start a new C# project, manage the NuGet packages, and add the BrainPad helper code. Then copy this code and paste it into the Program.cs
window replacing just the main
method in the original program.
static void Main()
{
BrainPad.ServoMotors.ServoTwo.ConfigureAsContinuous(false);
BrainPad.ServoMotors.ServoTwo.Set(100);
BrainPad.Wait.Seconds(5);
BrainPad.ServoMotors.ServoTwo.Set(-60);
BrainPad.Wait.Seconds(5);
BrainPad.ServoMotors.ServoTwo.Set(0);
}


191. Exhibition
time limit per test: 0.25 sec.
memory limit per test: 1024
KB
input: standard input
output: standard
output
Two companies "A" and "B" decided to hold a joint exhibition of
their production. Antitrust committee decided to take an experiment. To have a
possibility to show its own production each company must advertise the
production of its competitor. The exhibition is built as a straight row of
stands. Some stands can be empty, other contain the production of represented
companies (each stand can contain the production of only one company). The empty
stands are also signed with the names of the companies.
Originally the
exhibition consists of just one empty stand, which is signed by the name of one
of the companies (by a lot).
The company can choose any of its empty stands
and either to fill it with the production of the competitor or to place the
empty stand to the left, signed by the name of the competitor, and to the left
of that place the stand with its own production. If there are any stands to the
left, they are moved to the left. By the beginning of the exhibition all stands
must be filled.
Your task is to write a program in accordance with the
filled stands before the exhibition to determine if the requirements of the
antitrust committee were satisfied or not.
Input
The first line contains the name of the company ("A" or "B"),
which was chosen to be the first to fill the empty stand. The second line
contains a row of the stands presented to the antitrust committee. The stands
are listed from left to right. Letter "A" indicates a stand of company "A",
letter "B" - a stand of company "B". Maximum number of stands at the exhibition
is 30000.
Output
Output "YES" - if the requirements of the antitrust committee
were fulfilled, and "NO" - if not.
Sample test(s)
Input
A
AAB
Output
YES
| Author: |
Sergey V. Mironov |
| Resource: |
ACM International Collegiate Programming Contest 2003-2004
North-Eastern European Region, Southern Subregion |
| Date: |
2003 October, 9
|
| Server time: 2004-01-14 11:41:28 |
Online Contester Team © 2002 - 2003. All
rights
reserved. | | |


testSuite
is a test module for example runSuite (require('./test/simpleTest'),opts)
each property in the object should be a test. A test is just a method which takes one argument (test)
and then make assertions by calling test.ok(true)
etc. and eventually test.finish()
making an assertion after test.finish()
or calling test.finish()
twice results in a
testAlreadyFinished error. not calling test.finish()
at all is a an error as well. (see onSuiteDone({'0','exit',...)
Available configuration options: * + parallel: boolean, for whether or not the tests should be run in parallel or serially. Obviously, parallel is faster, but it doesn't give as accurate error reporting +testName: string or array of strings, the name of a test to be ran +name: string, the name of the suite being ran + onTestStart + onTestDone + onSuiteDone
example:
{ name: 'string' , testName: [array of test names to run] , onTestStart: function (test) {} , onTestDone: function (status,test) {} , onSuiteDone: function (status,report) {} }
status may be:
test.finish()
currently the report differs for each status
{tests: //list of tests [ { name: [name of test] , numAssertions: [number of Assertions in test] , failure: [error which caused failure] // only if this test failed, or errored. , failureType: ['assertion' or 'error'] } ] }
{ err: errorObject , tests: [list of names of tests which where running when err error occured] } //usually an error is caught by the test and it's registered as a failure. //sometimes a test throws an error asyncronously, and async_testing doesn't //know which test it came from.
{ name: [name of test] , numAssertions: [number of Assertions in test] , failure: [error which caused failure] // only if this test failed, or errored. , failureType: ['assertion' or 'error'] }


--- layout: page title: About header-img: "img/about-bg.png" ---
I'm 37 years old, originally from Queens, NY. I have been married for 15 years and have two daughters. I'm also a Pastor currently living in Charlotte, NC.


WITNESS LIST Finance Committee (Subcommittee on Rising Medical Costs) September 5, 2002 - 8:30A Rising Medical Costs ON: Anderson, Gary (Texas Public Employees Association), Austin, TX Blase, Thomas Risk & Benefit Manager (Town & Country Food Storage, Inc.), San Angelo, TX Cunningham, Joe Physician (Texas Medical Association), Crawford, TX Dunlap, Charles Executive Director (Teacher Retirement System), Austin, TX Fitzsimmons, Thomas President of SEI Metal Forms (Texas Association of Business), Dallas, TX Gilbert, Don Commissioner (Health & Human Services Commission), Austin, TX Golostein, Gary Healthcare Benefits Executieve (Humana, Inc.), Austin, TX Hamond, Bill President (Texas Association of Business), Austin, TX Hardaway, Thomas Regional Director (PhRMA), Atlanta, GA Hightower, Allen Executive Director (Correctional Managed Health Care Committee) Homer, Andrew (Texas Public Employees Association), Austin, TX Jeffcoat, Sally Hospital CEO (Texas Hospital Association), Houston, TX Jung, Ronnie (Teacher Retirement System), Austin, TX Kaufman, Todd Director of State Gov't Affars (Genentech, Inc.), Sacrminto, CA Kolassa, Eugene Professor of Pharmacy Administration (Self), Oxford, MS Laneri-Keel, Lara Government Affairs Manager (Texas Association of Business), Austin, TX Matthews, Merrill Public Policy Analyst (Institute for Policy Innovation), Dallas, TX Montemayor, Jose Commissioner of Insurance (Texas Department of Insurance), Austin, TX Raimer, Ben Physician (Correction Managed Health Care Committee), Galvaston, TX Sanders, Will Healthcare (Heritage Information Systems, Inc.), Richmond, VA Sapp, Allen Assistant Director (Correctional Managed Health Care Committee), Huntsville, TX Shepherd, Karol Healthcare Administration (Texas Medical Group), Austin, TX Siedlecki, Louis (Pervasive Disability), Buda, TX Simms, John Hospital CEO (Trinity Medical Center), Brenham, TX Tripodi, Mark Healthcare (Heritage Information Systems, Inc.), Richmond, VA Waters, Teresa Associate Professor of Economics (Texas Medical Association), Memphis, TN Whitehurst, Darren (Texas Hospital Association), Austin, TX


'Classy' Jose Mourinho blasted by Lille coach for poaching staff
by ESPNLille coach Christophe Galtier has hit out at new Tottenham boss Jose Mourinho for poaching two members of his coaching team and warned that sporting director Luis Campos is going nowhere.
Sources told ESPN FC on Wednesday that, after moving for goalkeeping coach Nuno Santos and Joao Sacramento on Wednesday, Mourinho has targeted Campos to join Spurs in a similar role to the one he has been a proven success in at both Lille and Monaco.
But Galtier, speaking ahead of Lille's Ligue 1 match against Paris Saint-Germain, was eager to set the record straight.
"Everyone has their own way of doing things," he said, before adding sarcastically: "But it's really classy. Really classy to act like that."
Of Campos, Galtier added: "Luis is 200% invested in the project and I don't see a 1000th of a wish to look elsewhere. We're close and looking forward."
Sources have told ESPN FC that Campos, a close friend of Mourinho, will definitely not be making the move to north London, despite the club's interest in him.
Carlos Lalin has been recruited as fitness coach, having previously worked with Mourinho at Chelsea, Manchester United and Real Madrid.
Ricardo Formosinho and Giovanni Cerra have also joined the backroom staff in London as tactical analyst and technical analyst, respectively.
Both have worked under Mourinho in the past.


--- layout: post authors: ["Kaitlin Thaney"] title: "Code as a Research Object" date: 2013-12-11 time: "13:00:00" tags: ["Announcements", "Mozilla Science Lab"] ---
The Mozilla Science Lab's newest project extends our existing work around code as a research object, exploring how we can better integrate code and scientific software into the scholarly workflow. The project will build and test a bridge to allow users to push code from their GitHub repository to figshare, providing a Digital Object Identifier for the code. We will also be working on a best practice standard (like MIAME for code) so that each research object has sufficient documentation to make it possible to meaningfully use.
For more information, please see the full post on the MSL website. And please join us for our December 12 community call, where we'll be talking with Ed Lazowska about the newly-announced data science centers, and with Arfon Smith and Mark Hahnel about this project.


Simple exercises, limited free blog posts TABs and scores Limited number of exercises and songs Start now


Family Owned | Quality Custom Work | Community Trusted
Family-owned and operated in Santa Rosa since 1970. We pride ourselves on our exceptional customer service, quality workmanship and honest prices. Our first priority is to meet your needs no matter how big or small, and give you a timely and convenient experience from beginning to end. We invite you to "cruise" on over for a free estimate or consultation by Ken or Kevin.
Thanks for checking out our site, we look forward to serving you!
Business Hours:
| Monday - Friday | 8:00am - 5:00pm |
| Saturday | 8:00am - Noon |
We Specialize In:
We Accept:
Call us today:<PHONE_NUMBER>


Created by Lyndon Maydwell<EMAIL_ADDRESS>Presentation: http://sordina.github.io/mfug_army (presented with reveal.js)
Just writing some real-world code in Haskell
Nothing drastic
I wanted to create something similar to Watch [1],
with advanced features like Ruby's Guard [2] ...
but without any language dependencies. Just plain binaries...
decoupled into cooperating programs.
~/Documents/Code echo {Conscript,Commando}/*.hs \
| xargs -n 1 echo \
| grep -v Setup \
| xargs cat
| wc -l
http://en.wikipedia.org/wiki/Unix_philosophy
- Small is beautiful.
- Make each program do one thing well.
- Build a prototype as soon as possible.
- Choose portability over efficiency.
- Store data in flat text files.
- Use software leverage to your advantage.
- Use shell scripts to leverage and port.
- Avoid captive user interfaces.
- Make every program a filter.
build-depends:
base,
text,
system-filepath,
optparse-applicative,
system-fileio,
fsnotify >= 0.0.13,
process
github.com/pcapriotti/optparse-applicative
build-depends:
base ==4.6.*,
process ==1.1.*
import Options.Applicative
import Data.Monoid ((<>))
quietFlag = short 'q'
quietHelp = help "silence the output"
quietOption = switch ( quietFlag <> quietHelp )
data Options = Opts {quiet :: Bool}
optParser :: Parser Options
optParser = Opts <$> quietOption
import Options.Applicative
import Data.Monoid (mempty)
import Options.Applicative.Types (ParserPrefs)
data Options = Opts {quiet :: Bool} deriving Show
pureParser :: (Parser a) -> [String] -> Maybe a
pureParser parser = eitherToMaybe . execParserPure preferences information
where information = (info parser mempty)
preferences = prefs mempty
eitherToMaybe = either (const Nothing) Just
main :: IO ()
main = do print $ pureParser optParser (words "-q")
print $ pureParser optParser (words "I do what I want!")
main :: IO ()
main = execParser
(info (helper <*> options) mempty)
>>= start
start :: Options -> IO ()
start = ...
lyndon@endpin ~ commando --help
Usage: commando [COMMAND] [-q|--quiet] [-c|--consumer] [-i|--stdin] [-p|--persist] [DIRECTORY]
Available options:
-h,--help Show this help text
COMMAND Command run on events
-q,--quiet Hide non-essential output
-c,--consumer Pass events as argument to command
-i,--stdin Pipe events to command
-p,--persist Pipe events to persistent command
DIRECTORY Directory to monitor
starter :: [String] -> MVar () -> MVar ProcessHandle -> IO ()
starter args blocker running = do
putMVar blocker () -- ENSURE WE ARE READY TO ROLL
p <- startProcess args
putMVar running p
code <- waitForProcess p
case code of ExitFailure 15 -> return () -- Killed!
ExitFailure i -> putStrLn "DOH! [" ++ show i ++ "]"
ExitSuccess -> return ()
commando -c echo | grep --line-buffered Add | conscript ls


Phillip Schofield blasts live I'm A Celebrity bushtucker trial and hints it was 'fixed'
Last night's I'm A Celeb trial sparked fury with viewers online last night, who insisted that the last task couldn't be done - and Phil agreed
by Irishmirror.iePhillip Schofield has blasted last night's live I'm A Celebrity bushtucker trial, hinting that it was "fixed".
Last night, almost all of the celebrities had to take part in the live trial, which saw them down gross 'shakes', hunt for stars and have wriggling creepie crawlies dumped on them.
For every star they won, they would win a roast dinner for a campmate. Earlier they had arranged everyone in order of who would win a meal.
Despite breezing through most of the tasks, James and Roman struggled with the last one and failed to get the final three stars.
This meant that Ian, Cliff and Andy would not be getting a roast dinner that evening, prompting fury from viewers who claimed that it was "impossible".
Some have even started a petition to get football pundit Ian a meal as he struggles with hunger pains.
And Phil added his voice to the discord, insisting that it wasn't possible for someone to do the trial in 90 seconds.
Speaking to I'm A Celeb winner Toff and Stanley Johnson, he exclaimed: "The last one! It's not possible in 90 seconds!"
However Toff insisted that And and Dec had said that it had been tried and tested and that it had been done.
Meanwhile Holly Wiloughby pointed out that Ian would be struggling because he was already showing signs of grumpiness.
Family and friends looking after the football pundit's Twitter shared a petition last night calling for Ian to get a roast dinner, writing: "We hearby endorse this petition. GIVE WRIGHTY A ROASTY! #ImACeleb #TeamIan."
Fans flocked to Twitter to comment, with one commenting: "That last trial was pathetic and unfair, how were they supposed to unscrew and screw the stars when the crabs were in the way. The crabs were too big for the boxes. #farce."
*This Morning airs weekdays at 10.30am on ITV


|
Name
|
{{ fixture?.name }}
|
|||||
|
Description
|
{{ fixture?.description }}
|
|||||
|
|
Start Date
|
{{ fixture?.startDate?.isValid() ? fixture.startDate.format('ll') : '' }}
|
||||
|
|
End Date
|
{{ fixture?.endDate?.isValid() ? fixture.endDate.format('ll') : '' }}
|
||||
|
|
Consecutive Home Games
|
|
{{ fixture?.fixtureConfigPreLoaded?.consecutiveHomeGamesMax }}
|
Using league's configuration
|
(max)
|
|
|
|
Consecutive Away Games
|
|
{{ fixture?.fixtureConfigPreLoaded?.consecutiveAwayGamesMax }}
|
Using league's configuration
|
(max)
|


free: {{balance.free}}
frozen: {{balance.frozen}}
reserved: {{balance.reserved}}
EVM address:
Example of interaction with Flipper contract ({{flipperContractAddressTestnet}})
Current value:
phrase:
address: {{phrase_addr.address}}


{% for post in site.posts %}
The Northern California Computational Biology (NCCB) Student Symposium is a great event to access the computational biology student community and to promote your organization directly to conference attendees. Please consider partnering with us in sponsoring this important scientific and educational event.
We are requesting sponsorship at the following levels. All sponsor representatives are welcome to attend all symposium talks, poster session and reception.
If you are interested in supporting the NCCB Student Symposium but would like to inquire about sponsoring the event in other ways, such as providing a smaller amount of donation for coffee, lunch, t-shirts, or providing other giveaways to conference attendees, please feel free to contact us at<EMAIL_ADDRESS>{{ map.description }}
{{ post.description }}
{% endif %}


Extract the workspace zip file to a directory (you have probably already done this).
If you are using a language other than English, you should open the VDF 17.1 Database Builder from the Windows "Start" menu (by default under "Visual DataFlex 2012 - 17.1" -> "Development Tools"). In Database Builder from the menu choose "File" -> "Select Workspace", navigate to the WebQuery workspace and open "WebQuery171.sws". Then from the menu select "Maintenance" -> "Reindex", then in the dialog click "Select All", then "Reindex". In the Reindex dialog click the lower of the two "All" buttons followed by the "Reindex" button - the process should only take a few seconds, after which you can close the dialogs ("OK" then "Cancel") and exit Database Builder.
Open the Visual DataFlex Studio (Note: if using Windows Vista or higher you should run the Studio via "Run as administrator") and from the menu select: "File" -> "Open Workspace", then navigate to the directory where you extracted the zip file to and open the WebQuery171.sws file.
From the Studio menu select: "Project" -> "Project Properties <WebApp.src>", then in the dialog, click on the "Web Application" tab and click the "Register WebApp" button followed by "OK". When it has finished, click "OK" to close the dialog.
Compile and run (F5) the WebApp.src project - further instructions are available in the application (or directly in WebQueryUsage.html), as well as a variety of examples of how WebQuery can be employed.


public class BorrowRecord
extends java.lang.Object
| Constructor and Description |
|---|
BorrowRecord()
This is the default constructor that is used to instantiate the BorrowRecord without any parameters.
|
BorrowRecord(java.lang.String ownerName,
java.lang.String borrowerName,
java.lang.String bookid)
This is the constructor that is used to instantiate the BorrowRecord object with all the necessary
and specified parameters.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getBookid()
The getter for the Book's ID
|
java.lang.String |
getBorrowerName()
The getter for the borrower's username
|
java.util.Date |
getDateBorrowed()
The getter for the Date for the book being initially borrowed
|
java.lang.String |
getOwnerEmail()
The getter for the owner's email.
|
java.lang.String |
getOwnerName()
The getter for the Owner's username.
|
java.lang.String |
getOwnerNotes()
The getter for the Owner's notes
|
java.lang.String |
getOwnerPhoneNumber()
The getter for the Owner's phone number
|
Location |
getPickUpLocation()
The getter for the pickup location.
|
java.lang.String |
getRecordid()
The getter for the ID of the record.
|
boolean |
isApproved()
The getter for the approved flag.
|
void |
setApproved(boolean approved)
The setter for the approved flag.
|
void |
setBookid(java.lang.String bookid)
The setter for the Book's ID
|
void |
setBorrowerName(java.lang.String borrowerName)
The setter for the borrower's username
|
void |
setDateBorrowed(java.util.Date dateBorrowed)
The setter for the date for the book being initially borrowed
|
void |
setOwnerEmail(java.lang.String email)
The setter for the Owner's email
|
void |
setOwnerName(java.lang.String userName)
The setter for the owner's username
|
void |
setOwnerNotes(java.lang.String notes)
The setter for the Owner's notes
|
void |
setOwnerPhoneNumber(java.lang.String number)
The setter for the Owner's phone number
|
void |
setPickUpLocation(Location pickUpLocation)
The setter for the pickup location.
|
void |
setRecordid(java.lang.String recordid)
The setter for the ID of the record.
|
public BorrowRecord(java.lang.String ownerName, java.lang.String borrowerName, java.lang.String bookid)
ownerName
- the name of the owner of the book.borrowerName
- the name of the borrower of the book.bookid
- the id of the book that is being borrowed.public BorrowRecord()
public java.lang.String getOwnerPhoneNumber()
public java.lang.String getOwnerNotes()
public java.lang.String getOwnerEmail()
public void setOwnerPhoneNumber(java.lang.String number)
number
- the owner's phone numberpublic void setOwnerNotes(java.lang.String notes)
notes
- the Owner's notespublic void setOwnerEmail(java.lang.String email)
email
- the owner's email.public java.lang.String getRecordid()
public void setRecordid(java.lang.String recordid)
recordid
- the ID of the record.public boolean isApproved()
public void setApproved(boolean approved)
approved
- the value of the approved flag.public java.lang.String getOwnerName()
public void setOwnerName(java.lang.String userName)
userName
- the owner's usernamepublic java.lang.String getBorrowerName()
public void setBorrowerName(java.lang.String borrowerName)
borrowerName
- the borrower's usernamepublic java.lang.String getBookid()
public void setBookid(java.lang.String bookid)
bookid
- the Book's IDpublic java.util.Date getDateBorrowed()
public void setDateBorrowed(java.util.Date dateBorrowed)
dateBorrowed
- the date for the book being initially borrowedpublic Location getPickUpLocation()
public void setPickUpLocation(Location pickUpLocation)
pickUpLocation
- the pickup location.


Nexmo SMS shortener
Choose the account to use:
Use default account
Use custom account
Your Api Key
Your Api Secret
Click Webhook URL
Save settings
Using the button below the demo will send an SMS with the shorten URL using Nexmo Messages API
Send SMS
Send SMS
Phone number
Write your SMS
MessageID
Creation Date
From
To
Original Url
Short Url
Delivered date
Clicked date
Status
Previous
1
2
...
10
Next
Charts


--- layout: post title: Infocus Gets Social, Secure, Futuristic? and More – Weekly Round Up March 2, 2012 date: '2012-03-02T13:12:38-08:00' tags: tumblr_url: http://alexhwilliams.tumblr.com/post/18620390495/infocus-gets-social-secure-futuristic-and-more ---


QExtensionFactory Class
The QExtensionFactory class allows you to create a factory that is able to make instances of custom extensions in Qt Designer. More...
| Header: | #include <QExtensionFactory> |
| qmake: | QT += designer |
| Inherits: | QObject and QAbstractExtensionFactory |
Public Functions
| QExtensionFactory(QExtensionManager *parent = Q_NULLPTR) | |
| QExtensionManager * | extensionManager() const |
Reimplemented Public Functions
| virtual QObject * | extension(QObject *object, const QString &iid) const |
- 32 public functions inherited from QObject
- 1 public function inherited from QAbstractExtensionFactory
Protected Functions
| virtual QObject * | createExtension(QObject *object, const QString &iid, QObject *parent) const |
- 9 protected functions inherited from QObject
Additional Inherited Members
- 1 property inherited from QObject
- 1 public slot inherited from QObject
- 2 signals inherited from QObject
- 1 public variable inherited from QObject
- 10 static public members inherited from QObject
- 2 protected variables inherited from QObject
Detailed Description
The QExtensionFactory class allows you to create a factory that is able to make instances of custom extensions in Qt Designer.
In Qt Designer the extensions are not created until they are required. For that reason, when implementing a custom extension, you must also create a QExtensionFactory, i.e. a class that is able to make an instance of your extension, and register it using Qt Designer's extension manager.
The QExtensionManager class provides extension management facilities for Qt Designer. When an extension is required, Qt Designer's extension manager will run through all its registered factories calling QExtensionFactory::createExtension() for each until the first one that is able to create a requested extension for the selected object, is found. This factory will then make an instance of the extension.
There are four available types of extensions in Qt Designer: QDesignerContainerExtension , QDesignerMemberSheetExtension, QDesignerPropertySheetExtension and QDesignerTaskMenuExtension. Qt Designer's behavior is the same whether the requested extension is associated with a multi page container, a member sheet, a property sheet or a task menu.
You can either create a new QExtensionFactory and reimplement the QExtensionFactory::createExtension() function. For example:
QObject *ANewExtensionFactory::createExtension(QObject *object, const QString &iid, QObject *parent) const { if (iid != Q_TYPEID(QDesignerContainerExtension)) return 0; if (MyCustomWidget *widget = qobject_cast<MyCustomWidget*> (object)) return new MyContainerExtension(widget, parent); return 0; }
Or you can use an existing factory, expanding the QExtensionFactory::createExtension() function to make the factory able to create your extension as well. For example:
QObject *AGeneralExtensionFactory::createExtension(QObject *object, const QString &iid, QObject *parent) const { MyCustomWidget *widget = qobject_cast<MyCustomWidget*>(object); if (widget && (iid == Q_TYPEID(QDesignerTaskMenuExtension))) { return new MyTaskMenuExtension(widget, parent); } else if (widget && (iid == Q_TYPEID(QDesignerContainerExtension))) { return new MyContainerExtension(widget, parent); } else { return 0; } }
For a complete example using the QExtensionFactory class, see the Task Menu Extension example. The example shows how to create a custom widget plugin for Qt Designer, and how to to use the QDesignerTaskMenuExtension class to add custom items to Qt Designer's task menu.
See also QExtensionManager and QAbstractExtensionFactory.
Member Function Documentation
QExtensionFactory::QExtensionFactory(QExtensionManager *parent = Q_NULLPTR)
Constructs an extension factory with the given parent.
[virtual protected]
QObject *QExtensionFactory::createExtension(QObject *object, const QString &iid, QObject *parent) const
Creates an extension specified by iid for the given object. The extension object is created as a child of the specified parent.
See also extension().
[virtual]
QObject *QExtensionFactory::extension(QObject *object, const QString &iid) const
Reimplemented from QAbstractExtensionFactory::extension().
Returns the extension specified by iid for the given object.
See also createExtension().
QExtensionManager *QExtensionFactory::extensionManager() const
Returns the extension manager for the extension factory.


https://github.com/brson/the-end-of-unsafety
~ slides, notes, links ~
~ www.rust-lang.org ~
1972 → whenever
2009 → present
right now!
present → the glorious future
1972 → whenever
The state of being protected from various software bugs and security vulnerabilities when dealing with memory access, such as buffer overflows and dangling pointers.— Wikipedia
Let's be honesthonest, if you need segfault protection, you're a bad programmer.— Anonymous good
2009 → present
All 34 sec-critical bugs filed against Web Audio so far are either buffer overflows or use-after-free.— Robert O'Callahan, Mozilla
How can I maintain memory safety in a concurrent program without a global GC?
Rust is Cyclone + Singularity
In Rust, every value has a single, statically-known, owning path in the code, at any time.
Pointers to values have limited duration, known as a "lifetime", that is also statically tracked.

By our metrics, Rust went from the 46th most popular language on GitHub to the 18th... no other language grew faster.
present → the glorious future
https://github.com/brson/the-end-of-unsafety


Password must be at least 8 characters long and contain a lower case letter, an upper case letter, a number and a special character.


boto v2.4.0
The 2.4.0 release of boto is now available on PyPI.
You can get a comprehensive list of all commits made between the 2.3.0 release
and the 2.4.0 release at https://github.com/boto/boto/compare/2.3.0...2.4.0.
This release includes:
- Initial support for Amazon Cloudsearch Service.
- Support for Amazon’s Marketplace Web Service.
- Latency-based routing for Route53
- Support for new domain verification features of SES.
- A full rewrite of the FPS module.
- Support for BatchWriteItem in DynamoDB.
- Additional EMR steps for installing and running Pig scripts.
- Support for additional batch operations in SQS.
- Better support for VPC group-ids.
- Many, many bugfixes from the community. Thanks for the reports and pull
requests!
There were 175 commits in this release from 32 different authors. The authors
are listed below, in no particular order:
- estebistec
- tpodowd
- Max Noel
- garnaat
- mfschwartz
- jtriley
- akoumjian
- jreese
- mulka
- Nuutti Kotivuori
- mboersma
- ryansb
- dampier
- crschmidt
- nithint
- sievlev
- eckamm
- imlucas
- disruptek
- trevorsummerssmith
- tmorgan
- evanworley
- iandanforth
- oozie
- aedeph
- alexanderdean
- abrinsmead
- dlecocq
- bsimpson63
- jamesls
- cosmin
- gtaylor


Some quick example text to build on the card title and make up the bulk of the card's content.
Go somewhereSome quick example text to build on the card title and make up the bulk of the card's content.
Go somewhereSome quick example text to build on the card title and make up the bulk of the card's content.
Go somewhereSome quick example text to build on the card title and make up the bulk of the card's content.
Go somewhereSome quick example text to build on the card title and make up the bulk of the card's content.
Go somewhereSome quick example text to build on the card title and make up the bulk of the card's content.
Go somewhereSome quick example text to build on the card title and make up the bulk of the card's content.
Go somewhereSome quick example text to build on the card title and make up the bulk of the card's content.
Go somewhere