Member of the Product Analytics Scrum Team. We are developing a software product to provide data insights for the NetSuite Product organization. I'm involved in the full-cycle of the software development process.
Developing and maintaining the center's intranet.
Studied the following courses of the MSc in Computer Science and Engineering:
IT Business related:
Computer Science related:
Informatics Engineering - Software Engineering track
Some of the most relevant courses done there:
Software Engineering Track:
Course to learn the basic technologies for web development
There is a list of the most relevant projects that I have done during my studies with a little description on each one and a link to the github repository (in case there is one)
An Android Application which its main functionality is ordering food when user is on a restaurant physically, an alternative to the classical waiter figure.
Discover more about this project on GitHub: github.com/VictorJuez/MyWaiter
It's a 2D platform video game about an astronaut lost in the space trying to reach Earth by jumping over the different planets.
Discover more about this project on GitHub: github.com/VictorJuez/AstroDiving
Video game about Hidoku board game for desktop devices, developed with Java and Java-Swing for the graphical interface.
Discover more about this project on GitHub: github.com/VictorJuez/HidokuGame
Ruby on Rails web application developed in group. It’s a copy of the already existing HackerNews web page in order to practice with the framework.
Discover more about this project on GitHub: github.com/VictorJuez/HackerNews


A simple platform with an opportunity to offer and search for Jobs, Housing and Local Events for Nepalese Community.
Contact Us


Portfolio January '18 - Week 4
San Francisco '92
Linfield College Class of '15
Current Location: San Francisco
Profession: Systems Analyst - Oakland Unified School District
Q:Why Did I Decide to Learn Programming at Epicodus?
A: There is no one answer. I consider myself a creator and a leader, and this is another resource to continuing that path.
Portfolio
- Hello World : Intro to our coding.
- First Webpage: List of my favorite things.
- Blog About My Dog : Brief daily activity list, me and mezzi do.


Southwest pushes back return of troubled Boeing Max, again
DALLAS (AP) - Southwest Airlines has again pushed back the return of its Boeing 737 Max jets as Boeing tries to fix the aircraft following two deadly crashes.
Southwest said Friday that it will keep its Max out of its schedule until March 6, about a month longer than previously planned , citing continued uncertainty.
The airline says it’s monitoring information from Boeing and the Federal Aviation Administration about software improvements and pilot-training requirements that will be part of returning the plane to flight.
Without the planes, Southwest says it will cancel about 175 flights each weekday. Southwest had 34 MAX planes when they were grounded in March and had expected more to be delivered this year.
American and United have taken their Maxes out of the schedule until at least January.
Sign up for Daily Newsletters
Copyright © 2019 The Washington Times, LLC.
Please read our comment policy before commenting.


An unseemly number of enquiries arrive at Hooting Yard HQ asking why yesterday's postage In Ponga makes reference to the Bishop of Southwark. The answer is simple, and is given in the form of an exclusive extract from Mr Key's Shorter Potted Brief, Brief Lives, available now from all good bookshops, both actual and virtual.
Butler, Tom (English bishop, b. 1940). In December 2006, Paul and Nicola Sumpter were sitting in a bar near Southwark Cathedral when they heard their car alarm go off. Rushing outside, they found a grey-haired man in the back seat of the car, throwing the toys of their infant son out of the window. When challenged, the man said “I'm the bishop of Southwark. It's what I do”. He then got out of the car and disappeared into the night, leaving behind a bag containing, among other things, his crucifix.


Last created
Sort by
Last created
Oldest created
Last updated
Oldest updated
Largest group
New Group


International Work Experience
Experience of working abroad can be very valuable in terms of the skills and experience that you gain. However, it’s very important to research the options thoroughly and make sure you understand all the implications of the opportunity you are considering. There may be additional costs of travelling and accommodation, there will be regulations around visa and vaccination requirements to consider and you may be living and working in a very different cultural environment.
Valid passport
Whether you are a UK home student or an international student, you will need to ensure that your passport is valid and that it will remain valid for the duration of your stay abroad. Some countries require that a passport must be valid for at least six months or sometimes longer after the expected end date for your stay. If you are planning to undertake work experience overseas and you don’t have a passport, or think that your passport might expire soon, we advise you to look into replacing it sooner rather than later.
UK students
If you do not have a passport, or if you need to replace your passport, check out thegov.uk passports information.
International students
It is important to check on the passport policies of individual countries you are considering working in. If you believe that your passport may need replacing soon, please check the guidance for your country of origin as well as the country you want to get work experience in.
Travel security
If you plan to work in a particular country, are you able to travel safely? To help determine if you can access a particular country and to determine whether there may be any potential risks to your safety once in the country, check out the UK Foreign and Commonwealth Office. As situations can change rapidly in some countries, it’s worth signing up for regular Travel Alerts, and conducting your own risk assessment of the potential risks and how you can manage them.
Visas
Every country has its own unique criteria regarding visas for work experience. If you don’t have the appropriate valid visa, you are unlikely to get into the country to undertake your work experience. If you try to get into a country to undertake work experience without a valid visa and this is then discovered by the authorities, you may be prevented from visiting that country in the future.
It is important that you undertake your own research into visas for overseas opportunities; start with the government’s own website to research the visa information and advice to foreign nationals wishing to undertake work experience in their country. The UK Foreign and Commonwealth Office comprehensive guidance (primarily for UK nationals) regarding travel overseas. It also provides contact details for the UK embassy of every country
Find out more about which countries you will need a visa using the search facility on VisaHQ,
Risk assessment
Consideration of risk should be part of your research and planning for any overseas work experience. If you are going abroad as part of a University of Warwick scheme such as Study Abroad Warwick in Africa this may be already taken care of. If you are travelling with an external provider or agent, ask about their risk assessment procedures.
If you are finding your own overseas work experience you may need to make your own assessment of the risks you will face, consider how you will manage these risks, have a contingency plan in place should you need to cut short your trip, and have sufficient funds to pay for emergency travel.
Travel insurance
Although travel insurance can seem like another expense, getting yourself covered is worth it. Ensure you have sufficient cover for the duration of your trip and that insurance covers medical expenses, personal belongings, emergency assistance and cancellation or interruption.
Medical card
If you are a UK national and are planning to travel to a location in the European Economic Area, you are advised to obtain a European Health Insurance Card (EHIC). This is free and entitles you to free or reduced-cost treatment in the European Economic Area and Switzerland. You can find out how to apply for a new card, or renew an existing one here.
Language skills and cultural awareness
You can make the most of an opportunity overseas by ensuring that you integrate into the local culture. Find out how you can improve your language skillsand explore the Intercultural training on offer at Warwick.
Pay
Check out how you will be paid and what deductions will be made from your salary. Other countries’ labour laws will not be the same as the UK’s and this will be reflected in taxation and other deductions. For example, some companies will see providing accommodation and meals as payment, whereas in the UK this would not be legally considered as pay.
Cost of living
Find out what the cost of living is, including the costs of accommodation, travel, food and phone and utilities. Set a budget based on your income and expenditure, and think about having enough spare to cover any emergency that may arise. Research ways of saving money before you go, there are lots of cost of living comparison sites and travel bloggers to help you!
Self-care plan
Prepare yourself mentally and emotionally for your international experience, recognising that whilst there will be a lot of new and exciting experiences, there will also be times when you feel isolated and overwhelmed.
- What hobbies and interests can you easily get involved with when abroad?
- What helps you get through a difficult day?
- What support networks will you have when abroad?
- If you have little or no access to social media, phones or emails, how will you cope?
Agencies and third parties
Many organisations exist to help students find work experience opportunities overseas as well as assisting with accommodation, visas, etc. Be careful! Many charge you for this service and you may find it cheaper to do some of this yourself. Here are a few questions to ask before you sign up with an agency:
- How much will this cost? What are the additional or hidden costs (deposit, further instalments, admin charges, taxes, etc.).
- What is included and what is not included? (Flights, accommodation, vaccinations, visas?)
- What are the benefits of using an agent: what could you arrange yourself and what is it worth paying for an agent to do?
Volunteering overseas
This can be a life changing experience, providing an invaluable way of learning new skills and languages, experiencing new cultures, seeing new parts of the world, making friends and giving back to the country to which you are travelling. If you’re thinking about volunteering overseas check out the advice from Warwick Volunteers


HackHofstra
Crime
Recycling
By Year
By Borough
Statistics obtained from NYC OpenData. Visit https://data.cityofnewyork.us/ for more information.


public class MyRobotControllerAdministration
extends java.lang.Object
TeleOp
,
Autonomous
,
OpModeRegistrar
,
OnRobotRunning
,
SynchTeleOp
| Constructor and Description |
|---|
MyRobotControllerAdministration() |
| Modifier and Type | Method and Description |
|---|---|
static void |
playSoundOnRobotRunning(Context context)
Any public static method annotated with
OnRobotRunning is invoked when the robot
object in the robot controller application enters the running state following an initial
boot or a 'restart robot'. |
static void |
playSoundOnRobotStartupFailure(Context context)
Any public static method annotated with
OnRobotStartupFailure is invoked when the robot
object in the robot controller application fails to enter the running state during
an attempt to do so. |
static void |
registerMyOpModes(Context context,
IOpModeManager manager)
Registers any library OpModes that you wish to display.
|
@OpModeRegistrar public static void registerMyOpModes(Context context, IOpModeManager manager)
TeleOp
or Autonomous
annotations, as appropriate.context
- the application context of the robot controller application. Not often
actually used in OpMode registrar functions.manager
- the object through which registrations are effected@OnRobotRunning public static void playSoundOnRobotRunning(Context context)
OnRobotRunning
is invoked when the robot
object in the robot controller application enters the running state following an initial
boot or a 'restart robot'. One thing useful to do here is to play a sound of some sort
to provide an audible indicator that the robot is ready for use with the driver station,
but you could do whatever you like.context
- the application context of the robot controller application. Useful for
interacting with other parts of the Android system, such creating a
MediaPlayer.OnRobotRunning
,
OnRobotStartupFailure
,
playSoundOnRobotStartupFailure(Context)
@OnRobotStartupFailure public static void playSoundOnRobotStartupFailure(Context context)
OnRobotStartupFailure
is invoked when the robot
object in the robot controller application fails to enter the running state during
an attempt to do so. A common cause of such failures is a mismatch between the robot
configuration file and the devices currently attached to the robot.context
- the application context of the robot controller application. Useful for
interacting with other parts of the Android system, such creating a
MediaPlayer.playSoundOnRobotRunning(Context)


Interactive 'shiny' application for working with Structural Equation Modelling technique. Runtime examples are provided in the package function as well as at <https://kartikeyab.shinyapps.io/semwebappk/> .
| Version: | 0.1.0 |
| Depends: | R (≥ 3.0.3) |
| Imports: | shiny, shinyAce, lavaan, semPlot, dplyr, semTools, psych |
| Published: | 2018-11-14 |
| Author: | Kartikeya Bolar |
| Maintainer: | Kartikeya Bolar <kartikeya.bolar at tapmi.edu.in> |
| License: | GPL-2 |
| NeedsCompilation: | no |
| CRAN checks: | semdrw results |
| Reference manual: | semdrw.pdf |
| Package source: | semdrw_0.1.0.tar.gz |
| Windows binaries: | r-devel: semdrw_0.1.0.zip, r-release: semdrw_0.1.0.zip, r-oldrel: semdrw_0.1.0.zip |
| OS X binaries: | r-release: semdrw_0.1.0.tgz, r-oldrel: semdrw_0.1.0.tgz |
Please use the canonical form https://CRAN.R-project.org/package=semdrw to link to this page.


No exact match was found. Maybe you have a typo in your word? Check the similar words below.
Binary: {{item.binary}}


HTTP/1.1 200 OK Server: Apache Content-Type: text/html;charset=utf-8 Date: Fri, 10 Oct 2014 09:25:45 GMT Transfer-Encoding: chunked Connection: keep-alive Connection: Transfer-Encoding
Flatshare General Information
£950 Inc Util & Exc CTax Flatshare Tick Boxes
Flatshare DescriptionHello,
We are looking for a new housemate in our beautiful large and airy house very well located in Primrose Hill. There is plenty of space in the house with 4 levels - one is a large modern kitchen and dining area, one has a spacious living area with 2 terraces on each side, the other 2 levels are with bedrooms and bathrooms. We are located along Regent's Canal where we have an outdoor dinging/bbq area. We also have a garage area which accommodates laundry, bicycles etc.
The location is exceptional with Regent's Park, Primrose Hill shops& pubs, Camden market and Chalk Farm/Camden tube within a short walk. We are also 5 minutes walk from Morrison's supermarket, or Wholefoods in Camden.
We are 3 professional women from France, Ireland and Australia. We're travelling very often but it is also a friendly and warm houseshare, we often share dinner and would like someone like-minded.
Please drop us an email to arrange a viewing or for more information. Thanks!
Flatshare interests and occupationsInt: Socializing, Cooking, Shopping, SportsOcc: Finance Contact and notebookPut in My NotebookThis advertiser expressly does NOT wish to be approached by estate agents or others offering their services. Telephone numbers and e-mail links constitute personal data that is NOT placed by the advertiser to solicit approaches from agents. Doing so is a clear breach of the Data Protection Acts (misuse of personal data). Accommodation MapsVery unfortunately indeed, this advertiser has not provided a proper full postcode with their advert so regrettably the usual maps cannot be displayed. Inevitably the appeal of the property is diminished by this omission. |
Near and Near-ish StationsTubes
Surface RailNearest Bus Routes
|


I am born in a practicing muslim family.In my childhood, I loved my religion because my parents told me to love it, I practiced it for them. But in class 6, something led me to find a best friend who'll never misguide me.And guess what, I found my Allah, I found my ultimate path. so here, in this blog I will write about my journey to Islam, which areas of Islam amazes me the most and why I am in love with it..


Personal bad for social good
Yeah what's good.
This is going to be about what it was like to write a porn blocker.
Maybe you don't want to read it because of the associated themes and ideas, though I do encourage you to read this anyways. Take a look inside my experiences without having to live through them. See if you can stomach it, haha. We will have a good time.
This writing will be a sampler for me to gauge what all I could put in a dedicated book. I want to write a book that's easy and gentle to read, provides conversation into the experience, shows sample code and other documents I collected while working on the software...etc. It will be nice when I write this book :)
Anyways, yeah, I would not recommend writing a porn blocker from scratch for anyone. Use mine, not because I want to express how proud I am of my work, but because the difficulties I've been facing after having gone through this process myself are very hard to manage and not at all "oh, this struggle is fine, it will build my character hooray :)" as other tribulations.
Not saying that what I will describe is impossible to move beyond or live with or grow from...just saying that you are better off avoiding the things that make you check out of life and really warp your personality...etc.
In the spring of 2018, when I sat down and started work, my thought was that the idea of a blocker that redirected users to different, positive etc websites instead of a "Page blocked" screen was definitely something I could do and am interesting in using. Ongoing, I thought that, if I succeed and publish this app, maybe someone else would also find benefit, and if this became true, that would be really cool to me. I didn't think about the possible effects on the mind of a child that daily exposure to pornography could have, ahahaha, but that's ok.
The first big challenge was gathering enough —— "enough" —— porn sites to make known to the app. PorNo! reads a website's URL to determine if the domain is a porn site domain. For PorNo! to provide more coverage, it needs to have more domain names in its internal list. As a result, there was a decent amount of time spent searching for lists of porn domains [from forums that wanted to provide banlists to sites that ranked porn sites and in between, ahahaha].
Every day, new websites go live. New porn sites (or rather, sites that mirror existing porn video from other sites) go live [possibly] every day as well. Now, we see that for PorNo! to provide full coverage of the internet, the source code needs to updated on a near-daily basis AFTER somehow finding these brand-new porn distributing sites.
Searching for these sites would not be an easy process at all and going further to update and publish a new release of PorNo! on the daily is just not at all a feasible or desirable process. Consider that I was the only person working on the PorNo! software (a few lovely friends helped with finding websites, never forget!), so all foreseen responsibility would have to be taken up by me.
Yet at the same time, I didn't want PorNo! to fail to meet a user's need when it could be helped. There exists some solution to this problem and I was going to find it, because good god, a porn blocker that doesn't block porn is simply not doing its job.
Leaving out the episodes where I was angry and disappointed with why porn sites will perennially take birth for a moment, an idea soon showed itself to me: let PorNo! figure out what websites were pornographic and update itself on its own.
We reach the next challenge: speed. When a user types in a website and presses the enter key to navigate to that website, a few things happen. First, the network that this device is connected to attempts to navigate to the requested URL to see if, first of all, it exists. If the URL domain doesn't exist, you will find your browser telling you that it was unable to locate this address. Supposing that the URL requested does exist, the server that hosts this website will begin sending information to your device.
Websites are built with HTML, CSS, JavaScript (and php, and...and...), and accessing websites is like going to a library, looking for a particular book, and checking out that book. Your device looks for what server (library) hosts the website (this particular book), and requests the source code of that website so that your browser can show you the contents of that page (check out the book).
Software in the browser, such as a Chrome extension, can read the data of a webpage before it is done loading, and coincidentally, your device can also begin rendering the page as it is being downloaded. This is good for PorNo! because it means that we can have access to a site's contents in addition to its URL for PorNo! to assess the pornographic-ness of a website, and this is not so good for PorNo! because it means PorNo! is racing against the browser's speed of loading the page's contents. Why is this a challenge?  One of the sites you visit is written with barebones HTML and doesn't have a lot of overhead resources to load —— this site will render much faster comparably and possibly show sensitive images / thumbnails before PorNo! redirects (this is an anecdote and this issue has been fixed with the use of a hashmap as opposed to an array for storing known URLs). As someone who is trying to avoid porn and is using software to help, seeing pornographic images is not going to help your endeavors at all. This was a technical challenge and also something I got frustrated over, as we were dealing in the realm of 3 millisecond computation speeds, a time range I imagined would have been faster than the browser...
tbd
Vivek
Thank you for visiting!
Vivek Bhookya


{% extends "base.html" %} {% block title %} RCRIS {% endblock %} {% block content %}
RCRAINFO was last updated on RTK NET with a set of EPA data made on May 18, 2018. The data on RTK NET are from EPA's RCRAInfo database.
RCRAInfo includes both data on hazardous waste permits and activities and data on biennial hazardous waste generation and transfer forms (which used to be held in BRS). RTK NET still keeps the two sets of information separate, both because of presentation issues and for continuity with historical data, so RTK NET uses the name "RCRAINFO" for all RCRA data except for the biennial waste forms, which it calls "BRS".
The data in RCRAInfo consist of information about generators, transporters, treaters, storers, and disposers of hazardous waste, which are required to give certain reports about their activities to state-level regulators. These regulators pass the information on to Federal EPA. The law regulating the provision of this information is the Resource Conservation and Recovery Act (RCRA), as amended by the Hazardous and Solid Waste Amendments of 1984. Data includes permit status, compliance and violation information, and cleanup activities.


data class Proposal<out M>
The Proposal contains the details of proposed state modification. This is the message sent by the Instigator to all participants(Acceptor) during the state replacement process.
M
- the type of a class representing proposed modification by the instigator.
<init> |
The Proposal contains the details of proposed state modification. This is the message sent by the Instigator to all participants(Acceptor) during the state replacement process. Proposal(stateRef: StateRef, modification: M) |
modification |
val modification: M |
stateRef |
val stateRef: StateRef |


{% include favicon.html %}
{% include header.html %} {% include nav_cs.html %}
{{ page.title }}
{{ content }}
Resources by syllabus
IGCSE CS
AS CS
A2 CS
{% include footer.html %}


@* * Copyright 2023 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *@ @import config.AppConfig @import controllers.v2.routes.ManageUserController @import models.Queues @import models.request.AuthenticatedRequest @import views.forms.components.CheckOption @import views.html.forms.components._ @import views.html.partials.error_summary @import views.html.components.manager_tools_secondary_navigation @import models.viewmodels.NoTabSelected @import views.html.includes.main @import views.html.layouts.full_main_content_layout @import views.html.partials.back_link @this( main: main, fullMainContent: full_main_content_layout, backLink: back_link ) @( userDetails: Operator, form: Form[Set[String]] )(implicit request: AuthenticatedRequest[_], messages: Messages, appConfig: AppConfig) @getUserName = @{ userDetails.name match { case Some(name) if name.trim.isEmpty => s"PID: [${userDetails.id}]" case Some(name) => name case None => s"PID: [${userDetails.id}]" } } @main( pageTitle = messages("users.user.edit_user.title"), customPrimaryNavTab = NoTabSelected, backLink = Some(backLink()) ) { @error_summary(form.errors, keySwaps = Map("memberOfTeams" -> "memberOfTeams-0"))


addShape
startSelect
export
undo
+
-
+
Preferences
Layout
Style Attributes
Width:
Select Template:
1
2
3
4


Provides classes for the main functionalities of the Transfer-Client.
- Moving the result files to the stage folder.
- Creating sedex envelope files.
- Moving the result files and envelopes.
- Processing the receipt files.
@author Daniel Bierer (Statistisches Amt des Kantons Zürich)
@version 2.4


1 The third manner of embalming, the preparation of the poorer dead, is this: they cleanse the belly with a purge, embalm the body for the seventy days and then give it back to be taken away.


+ Video - Intro to functions
One of the most important things we do as programmers is manage complexity; functions allow us to encapsulate complex calculations into a black box, and call it when needed.
For example, imagine that we need to find whether numbers are even; we can easily do the calculation, using % ; however, it will be much nicer if we encapsulate this into its own function. We could write the function as follows:
boolean isEven(int number)
{
return (number%2) == 0;
}
When defining a function, we write its return type, then the name and the parameters, and then the code, within braces (well, actually many times we will precede the function name with public static, which will be explained later). Within the function we can include as many statements as we want (for now, we will do simple functions, with just one line).
In the function above, the return type is boolean, so the function will return either true or false; it takes one parameter, an int, which will be referred as number from within the function. The function just returns one expression, which is whether the remainder of the number divided by two is zero (which is the definition of even :).
We can call the function inside an expression as follows:
boolean is7Even=isEven(7); // what would be the value ?
boolean is*Even=isEven(8);
When we call a function, with an expression like isEven(7)
, the function gets executed; first the actual parameter (7 in this case) gets evaluated, then the code for the function gets executed, with the formal parameter (number) replaced with the actual value (you can imagine the formal parameter, number, is like a variable inside the function; finally, the return value gets substituted instead of the function call.
Unfortunately, Java does not actually supports functions; it supports methods, which are attached to a class; Java requires you to always declare a class, and declare your functions as static methods; due to this, we normally will put the keywords 'public static' before our function definitions; we will study more in depth what those things mean; for now, just put them before your functions :)
1. Local variables and scope
Within a function, we can define variables if we need them; this variables are only visible within the function (and only keep their value within that function call), so we could also define isEven as follows:
public static boolean isEven(int number)
{
int remainderBy2=number%2;
return remainderBy2==0;
}
The local variable, remainderBy2
, can only be accessed within the function, and every call to the function gets its own copy of the variable; each function call gets its own independent context (or activation frame) in which it is executed.
2. Nested Function calls
We can define functions that take as many parameters as we need (although they can only return one value), and you can include and combine the function calls in any ways you want; for example (although it would be overkill in real life), let us define the following function:
int add(int number1, int number2)
{
int sum=number1+number2;
return sum;
}
This function adds two numbers (WOW !!! :). It allows us to show how we can combine function calls as in the following code:
int n=add(3,7); // what's the answer
int n2=add(n, 3);
OK, everything seems normal here; lets look at the next one:
int n3=add( add(2,3), add(5,7));
Here, first we evaluate the arguments, in left-to-right order, so the compiler will first evaluate add(2,3)
, in its own activation frame, number1=2, number2=3, sum=5 and returns 5; then evaluates add(5,7)
in its own activation frame, returning 12, and finally evaluates the outer expression, which is equivalent to add(5,12), yielding 17.
3. Function composition
We can also call functions within other functions; for example, we can define the following function:
boolean isSumEven(int number1, int number2)
{
return isEven( add(number1, number2) );
}
Here a call to it, say isSumEven(3,4)
, would start an activation frame, with number1=3 and number2=4; then, inside an activation frame is created, for add, and another for isEven.
4. Exercises (assume we have the functions above)
-
What would be the value of
ans
at the end of the following code fragment:
int a=10; int b=add(a,a); int ans=add(5, add(a,b));
-
What would be the value of
ans
at the end of the following code fragment:
int x=add(10,5); boolean ans=isEven(add(x,1));
5. Functions and purity
Functions can affect the world outside the function by either: 1. returning a value (and then the caller may do things with it, or not, the function doesn’t care) 2. altering its parameters (when they are objects) by calling methods that affect their state 3. changing global state directly (the screen, System.in, System.out etc)
Ideally, most of your functions would be pure, that is, functions that just return a value, and don’t affect the outside world except by returning that value. This functions are easy to understand as 'black boxes', and easy to test; just pass the arguments, check the return value is right.
Sometimes, you need functions that alter their arguments by the methods they call on them; these functions are somewhat harder to use and test, since when using them sequencing is important; however, to change the world, you need this sometimes.
Ideally, only main should alter global state, and it should pass that state (even System.in, System.out) as a parameter to other functions; functions that directly affect global state are error prone and hard to reason with and I will avoid them in this class. We will see how to do this soon, when we talk about using objects.
6. More function examples
6.1. Boolean expressions and functions
One skill you need to master as a programmer is to think of bolean values (true or false) as values that can be combined by operators; just as numbers can be added, subtracted etc, booleans can be 'or-ed' and 'and-ed' and negated ('not-ed' :). Let’s practice some examples
6.2. isInBetween
Let’s define a function that takes 3 ints, and returns a boolean; it returns true if the first number is between the other two; let’s call our parameters number, high, and low; we can define the function as:
public static boolean isInBetween(int number, int low, int high) {
return number>=low && number<=high;
}
Given this function, what would isInBetween(5,0,10)
return ? How about isInBetween(10,0,10)
?
6.3. allTrue
boolean allTrue(boolean b1, boolean b2, boolean b3){
return b1 && b2 && b3;
}
Given this function, what would allTrue(true, true, false)
return ?
=== anyTrue
boolean anyTrue(boolean b1, boolean b2, boolean b3){
return b1 || b2 || b3 ;
}
Given this function, what would anyTrue(true, true, false)
return ?
6.4. exclusiveOr
We have seen that in Java (as in logic, and most programming languages), the or operator is inclusive; that is, if both sides are true, the expression is true ( true || true == true). Sometimes we want exclusive or; one or the other, but not both. We can define that function, as follows:
boolean exclusiveOr(boolean b1, boolean b2){
return (b1 || b2) && !( b1 && b2 );
}
6.5. Movies Bob likes
Assuming Bob likes movies that are not long (90 minutes or less), are either Drama or Murder, and have decent ratings.
boolean bobWouldLike(String category, int length, int rating){
return (category=="Drama" || category=="Murder") && length<=90 && rating>3;
}
6.6. Movies Alice likes
Alice likes movies in Drama, Action or Romantic, and that are not too long (120 minutes or less)
boolean aliceWouldLike(String category, int length, int rating){
return (category=="Drama" || category=="Action" || category=="Romantic") && length<=120 ;
}
7. Functions with doubles
One standard issue with doubles, is that the == operator is not very useful, since two opearions may yield results that should be equal, but due to floating point operations being inherently imprecise, would not end up with the exact same value; a common operation is to check whether two floating point numbers are equal, within a given tolerance. We could write such a function:
boolean areClose(double d1, double d2, double tolerance) {
return (d1-d2 <= tolerance) || (d2-d1 <=tolerance);
}
8. Function overloading
It seems obvious you should not define functions with the same name [1], since the compiler would not be able to distinguish which one you mean when you call the function.
However, Java allows you to overload functions, by defining functions with the same name, but different parameters; the functions need to vary in either the number or the type of the parameters. Java will be able to distinguish which function you mean when calling it, by the parameters you pass.
9. void functions
Although functions should return a value, we sometimes want to create a function or method that does not return a value, and just modify its parameters or the global state; for example, we could want to define a method that just prints something to the screen.
If we want to define a method that does not return a value, we use void
as the return type (instead of int or double); if we need to return from the function, we still use a return
statement, but with no value specified; if we do not specify a return
statement, then the method will finish on its last line.
For example, a method that prints its argument 3 times would look like this:
public static print3Times(String line) {
System.out.println(line);
System.out.println(line);
System.out.println(line);
}
When we call such a function, we do not do anything with the returned value (since there’s no value returned). So the function call is a statement on its own right (just like calling System.out.printl)
For example, we could call the print3Times function above, as follows:
print3Times("Hello");


|
F´ Flight Software - C/C++ Documentation
NASA-v1.5.0
A framework for building embedded system applications to NASA flight quality standards.
|
The type of a start packet. More...
#include <Fw/FilePacket/FilePacket.hpp>
Public Member Functions | |
| void | initialize (const U32 fileSize, const char *const sourcePath, const char *const destinationPath) |
| Initialize a StartPacket with sequence number 0. More... | |
| U32 | bufferSize (void) const |
| Compute the buffer size needed to hold this StartPacket. More... | |
| SerializeStatus | toBuffer (Buffer &buffer) const |
| Convert this StartPacket to a Buffer. More... | |
| SerializeStatus | toSerialBuffer (SerialBuffer &serialBuffer) const |
| Write this StartPacket to a SerialBuffer. More... | |
Public Attributes | |
| Header | header |
| The packet header. More... | |
| U32 | fileSize |
| The file size. More... | |
| PathName | sourcePath |
| The source path. More... | |
| PathName | destinationPath |
| The destination path. More... | |
| PRIVATE | __pad0__: SerializeStatus fromSerialBuffer(SerialBuffer& serialBuffer) |
Friends | |
| union | FilePacket |
The type of a start packet.
Definition at line 118 of file FilePacket.hpp.
| U32 Fw::FilePacket::StartPacket::bufferSize | ( | void | ) | const |
Compute the buffer size needed to hold this StartPacket.
Definition at line 32 of file StartPacket.cpp.
| void Fw::FilePacket::StartPacket::initialize | ( | const U32 | fileSize, |
| const char *const | sourcePath, | ||
| const char *const | destinationPath | ||
| ) |
Initialize a StartPacket with sequence number 0.
| fileSize | The file size |
| sourcePath | The source path |
| destinationPath | The destination path |
Definition at line 18 of file StartPacket.cpp.
| SerializeStatus Fw::FilePacket::StartPacket::toBuffer | ( | Buffer & | buffer | ) | const |
Convert this StartPacket to a Buffer.
Definition at line 41 of file StartPacket.cpp.
| SerializeStatus Fw::FilePacket::StartPacket::toSerialBuffer | ( | SerialBuffer & | serialBuffer | ) | const |
Write this StartPacket to a SerialBuffer.
Definition at line 82 of file StartPacket.cpp.
|
friend |
Definition at line 120 of file FilePacket.hpp.
| PRIVATE Fw::FilePacket::StartPacket::__pad0__ |
Definition at line 151 of file FilePacket.hpp.
| PathName Fw::FilePacket::StartPacket::destinationPath |
The destination path.
Definition at line 134 of file FilePacket.hpp.
| U32 Fw::FilePacket::StartPacket::fileSize |
The file size.
Definition at line 128 of file FilePacket.hpp.
| Header Fw::FilePacket::StartPacket::header |
The packet header.
Definition at line 125 of file FilePacket.hpp.
| PathName Fw::FilePacket::StartPacket::sourcePath |
The source path.
Definition at line 131 of file FilePacket.hpp.


httpd::dirlist(n) 1.1 "Tcl Web Server"
httpd::dirlist - directory handling
TABLE OF CONTENTS
SYNOPSIS
DESCRIPTION
Public API
SEE ALSO
KEYWORDS
COPYRIGHT
package require httpd::dirlist ?1.1?
The package httpd::dirlist is an adjunct to the
package httpd::doc, it provides the handling of
directories to it.
Note that the two packages cross-reference each other, in other words
they are interdependent. It might make sense to make them one package
in the future.
- Dirlist_IndexFile pattern
-
The command sets the glob pattern used by the package
to locate the index file for a directory.
- Dirlist_Directory prefix path suffix sock
-
This is the main command for the handling of directories.
The name of the requested directory is in path.
The command will first try to locate an index file for the directory
and failing that it will either reply with a not-found message
generate a listing of the directory contents on its own, depending on
whether directories are considered as hidden or not.
If an index file was found it is given back to httpd::doc
for handling (Doc_Handle).
- Dir_HideListings
-
After the call of command all requests for directories without an
index file will generate not-found replies.
- Dir_ShowListings
-
After the call of command all requests for directories without an
index file will generate listings of their contents.
This is also the default status for the package.
- Dir_ListingIsHidden
-
Returns the status set by Dir_HideListings
and Dir_ShowListings.
httpd, httpd::doc, httpd::doc_error, httpd::url, httpd::utils
directory, documents, filesystem, web server
Copyright © 2003 Andreas Kupries <andreas_kupries@users.sourceforge.net>


ZamzamKit
Usage
To run the example project, clone the repo, and run pod install
from the Example directory first.
Installation
CocoaPods
ZamzamKit is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "ZamzamKit", :git => 'https://github.com/ZamzamInc/ZamzamKit'
Carthage
You can use Carthage to install ZamzamKit
by adding it to your Cartfile
:
github "ZamzamInc/ZamzamKit"
Author
Zamzam Inc<EMAIL_ADDRESS>License
ZamzamKit is available under the MIT license. See the LICENSE file for more info.


You notice a short wizard, Watson, in a trench coat.
He comes after you, saying “Math is often not as it seems, though it is rather elementary.”
He continues, “Chemistry on the other hand, is periodically essential,
as you try to fill the spaces in your knowledge.”
What else did Watson say to you?
(The first person to solve this puzzle properly and present a complete solution to the puzzle team
will get a drink on us!)
- 57 + 38 + 85 - 88 =(7 , 2)
- 14 + 116 =(24 , 20)
- 1 + 8 + 29 - 6 + 7 =(4 , 10)
- 97 - 19 + 68 + 39 =(27 , 18)
- 23 + 13 + 71 - 92 =(15 , 12)
- 102 + 37 - 5 + 74 =(21)
- 16 + 67 + 16 =(21 , 24)
- 90 + 118 + 18 - 31 =(20 , 7)
- 63 - 92 + 7 + 31 + 38 - 33 =(27 , 21)
- 27 + 15 + 15 =(13 , 30)
- 112 + 107 - 41 + 33 =(16 , 21)
- 99 + 96 - 21 + 78 =(19 , 21)
- 53 + 116 - 23 + 71 =(18 , 24)
- 45 + 32 - 80 + 110 + 113 - 50 =(7 , 16)
- 34 + 20 + 42 - 95 =(20 , 22)
- 75 + 22 =(4 , 29)
- 25 + 94 - 93 + 51 + 111 - 35 =(22 , 21)


The Good, the bad, my 4 years of College Life. The things of lifetime
The lessons and lesson learned- a journey for little things or let me rephrase it A journey of that me to this me for the better.
This website is my personal space where I'm trying to express my creativity through design, code and writing.
Watch Showreel
Some of my selceted work or I say case study so that you
can understand my
process and how I work.
who makes it all worth
My blog, my thoughts and perspective.
The lessons and lesson learned- a journey for little things or let me rephrase it A journey of that me to this me for the better.
During imlemeting this website I custom experimented with a lot of aww dropping animations, effects. Here are those who i got right.
During imlemeting this website I custom experimented with a lot of aww dropping animations, effects. Here are those who i got right.
During imlemeting this website I custom experimented with a lot of aww dropping animations, effects. Here are those who i got right.


One of my greatest traits is the ability to focus on a project for ridiculously long periods of time. When I get dialed into a project I can push through and stay motivated until completion. I never give up.
When I am starting a project it is easy for me to see the big picture of what needs to be done. From there I am able to begin planning and designing every facet of the projects requirements. My colleages have told me that I "think in uml", and I would agree with them. This makes it easy for me to pass on knowledge and lead others in developing clean, functional, and maitainable code.
I have lots of team development experience and have no problem pairing and lending a hand when its needed. I also think that two minds are ALWAYS better than one and often add a safety net when you program. Code Review is essential to developing a good product.


Just share your room URL to talk
share/
two
/talk
Room ---- is empty :(
CREATE YOUR OWN ROOM
Try it without a headset


Rua pattern library
Rua pattern library
0
Introduction
1
Core
2
General
3
Icons
4
Navigation components
5
Information components
5.1
Accordion
5.1.1
Accessibility
5.1.2
Rationale
5.1.3
Usability guidance
5.1.4
Usage
5.2
Avatar
5.3
Blockquote
5.4
Bubbles
5.4.1
Generic Bubble
5.4.2
Metrics Bubbles
5.5
Card
5.6
Checklist
5.7
Comments
5.8
Message Box
5.9
Post Details
5.10
Table
6
Layout
7
Plugins
Source:
src/6-information/_index.scss
, line
1
5
Information components


| Top |
| gchar * | base-cache-directory | Read / Write / Construct Only |
| gchar * | base-data-directory | Read / Write / Construct Only |
| gchar * | disk-cache-directory | Read / Write / Construct Only |
| gchar * | indexeddb-directory | Read / Write / Construct Only |
| gboolean | is-ephemeral | Read / Write / Construct Only |
| gchar * | local-storage-directory | Read / Write / Construct Only |
| gchar * | offline-application-cache-directory | Read / Write / Construct Only |
| gchar * | websql-directory | Read / Write / Construct Only |
WebKitWebsiteDataManager allows you to manage the data that websites
can store in the client file system like databases or caches.
You can use WebKitWebsiteDataManager to configure the local directories
where the Website data will be stored, by creating a new manager with
webkit_website_data_manager_new()
passing the values you want to set.
You can set all the possible configuration values or only some of them,
a default value will be used automatically for the configuration options
not provided. “base-data-directory” and
“base-cache-directory” are two special properties
that can be used to set a common base directory for all Website data and
caches. It's possible to provide both, a base directory and a specific value,
but in that case, the specific value takes precedence over the base directory.
The newly created WebKitWebsiteDataManager must be passed as a construct property
to a WebKitWebContext, you can use webkit_web_context_new_with_website_data_manager()
to create a new WebKitWebContext with a WebKitWebsiteDataManager.
In case you don't want to set any specific configuration, you don't need to create
a WebKitWebsiteDataManager, the WebKitWebContext will create a WebKitWebsiteDataManager
with the default configuration. To get the WebKitWebsiteDataManager of a WebKitWebContext
you can use webkit_web_context_get_website_data_manager()
.
A WebKitWebsiteDataManager can also be ephemeral and then all the directories configuration
is not needed because website data will never persist. You can create an ephemeral WebKitWebsiteDataManager
with webkit_website_data_manager_new_ephemeral()
. Then you can pass an ephemeral WebKitWebsiteDataManager to
a WebKitWebContext to make it ephemeral or use webkit_web_context_new_ephemeral()
and the WebKitWebsiteDataManager
will be automatically created by the WebKitWebContext.
WebKitWebsiteDataManager can also be used to fetch websites data, remove data stored by particular websites, or clear data for all websites modified since a given period of time.
WebKitWebsiteDataManager * webkit_website_data_manager_new (const gchar *first_option_name
,...
);
Creates a new WebKitWebsiteDataManager with the given options. It must be passed as construction parameter of a WebKitWebContext.
first_option_name |
name of the first option to set |
|
... |
value of first option, followed by more options, |
Since: 2.10
WebKitWebsiteDataManager *
webkit_website_data_manager_new_ephemeral
(void
);
Creates an ephemeral WebKitWebsiteDataManager. See “is-ephemeral” for more details.
Since: 2.16
gboolean
webkit_website_data_manager_is_ephemeral
(WebKitWebsiteDataManager *manager
);
Get whether a WebKitWebsiteDataManager is ephemeral. See “is-ephemeral” for more details.
Since: 2.16
const gchar *
webkit_website_data_manager_get_base_data_directory
(WebKitWebsiteDataManager *manager
);
Get the “base-data-directory” property.
the base directory for Website data, or NULL
if
“base-data-directory” was not provided or manager
is ephemeral.
[allow-none]
Since: 2.10
const gchar *
webkit_website_data_manager_get_base_cache_directory
(WebKitWebsiteDataManager *manager
);
Get the “base-cache-directory” property.
the base directory for Website cache, or NULL
if
“base-cache-directory” was not provided or manager
is ephemeral.
[allow-none]
Since: 2.10
const gchar *
webkit_website_data_manager_get_local_storage_directory
(WebKitWebsiteDataManager *manager
);
Get the “local-storage-directory” property.
the directory where local storage data is stored or NULL
if manager
is ephemeral.
[allow-none]
Since: 2.10
const gchar *
webkit_website_data_manager_get_disk_cache_directory
(WebKitWebsiteDataManager *manager
);
Get the “disk-cache-directory” property.
Since: 2.10
const gchar *
webkit_website_data_manager_get_offline_application_cache_directory
(WebKitWebsiteDataManager *manager
);
Get the “offline-application-cache-directory” property.
the directory where offline web application cache is stored or NULL
if manager
is ephemeral.
[allow-none]
Since: 2.10
const gchar *
webkit_website_data_manager_get_indexeddb_directory
(WebKitWebsiteDataManager *manager
);
Get the “indexeddb-directory” property.
the directory where IndexedDB databases are stored or NULL
if manager
is ephemeral.
[allow-none]
Since: 2.10
const gchar *
webkit_website_data_manager_get_websql_directory
(WebKitWebsiteDataManager *manager
);
Get the “websql-directory” property.
the directory where WebSQL databases are stored or NULL
if manager
is ephemeral.
[allow-none]
Since: 2.10
WebKitCookieManager *
webkit_website_data_manager_get_cookie_manager
(WebKitWebsiteDataManager *manager
);
Get the WebKitCookieManager of manager
.
Since: 2.16
void webkit_website_data_manager_fetch (WebKitWebsiteDataManager *manager
,WebKitWebsiteDataTypes types
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously get the list of WebKitWebsiteData for the given types
.
When the operation is finished, callback
will be called. You can then call
webkit_website_data_manager_fetch_finish()
to get the result of the operation.
manager |
||
types |
||
cancellable |
a GCancellable or |
[allow-none] |
callback |
a GAsyncReadyCallback to call when the request is satisfied. |
[scope async] |
user_data |
the data to pass to callback function. |
[closure] |
Since: 2.16
GList * webkit_website_data_manager_fetch_finish (WebKitWebsiteDataManager *manager
,GAsyncResult *result
,GError **error
);
Finish an asynchronous operation started with webkit_website_data_manager_fetch()
.
a GList of WebKitWebsiteData. You must free the GList with
g_list_free()
and unref the WebKitWebsiteDatas with webkit_website_data_unref()
when you're done with them.
[element-type WebKitWebsiteData][transfer full]
Since: 2.16
void webkit_website_data_manager_remove (WebKitWebsiteDataManager *manager
,WebKitWebsiteDataTypes types
,GList *website_data
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously removes the website data of the for the given types
for websites in the given website_data
list.
Use webkit_website_data_manager_clear()
if you want to remove the website data for all sites.
When the operation is finished, callback
will be called. You can then call
webkit_website_data_manager_remove_finish()
to get the result of the operation.
manager |
||
types |
||
website_data |
a GList of WebKitWebsiteData. |
[element-type WebKitWebsiteData] |
cancellable |
a GCancellable or |
[allow-none] |
callback |
a GAsyncReadyCallback to call when the request is satisfied. |
[scope async] |
user_data |
the data to pass to callback function. |
[closure] |
Since: 2.16
gboolean webkit_website_data_manager_remove_finish (WebKitWebsiteDataManager *manager
,GAsyncResult *result
,GError **error
);
Finish an asynchronous operation started with webkit_website_data_manager_remove()
.
Since: 2.16
void webkit_website_data_manager_clear (WebKitWebsiteDataManager *manager
,WebKitWebsiteDataTypes types
,GTimeSpan timespan
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously clear the website data of the given types
modified in the past timespan
.
If timespan
is 0, all website data will be removed.
When the operation is finished, callback
will be called. You can then call
webkit_website_data_manager_clear_finish()
to get the result of the operation.
Due to implementation limitations, this function does not currently delete
any stored cookies if timespan
is nonzero. This behavior may change in the
future.
manager |
||
types |
||
timespan |
||
cancellable |
a GCancellable or |
[allow-none] |
callback |
a GAsyncReadyCallback to call when the request is satisfied. |
[scope async] |
user_data |
the data to pass to callback function. |
[closure] |
Since: 2.16
gboolean webkit_website_data_manager_clear_finish (WebKitWebsiteDataManager *manager
,GAsyncResult *result
,GError **error
);
Finish an asynchronous operation started with webkit_website_data_manager_clear()
Since: 2.16
“base-cache-directory”
property“base-cache-directory” gchar *
The base directory for Website cache. This is used as a base directory for any Website cache when no specific cache directory has been provided.
Flags: Read / Write / Construct Only
Default value: NULL
Since: 2.10
“base-data-directory”
property“base-data-directory” gchar *
The base directory for Website data. This is used as a base directory for any Website data when no specific data directory has been provided.
Flags: Read / Write / Construct Only
Default value: NULL
Since: 2.10
“disk-cache-directory”
property“disk-cache-directory” gchar *
The directory where HTTP disk cache will be stored.
Flags: Read / Write / Construct Only
Default value: NULL
Since: 2.10
“indexeddb-directory”
property“indexeddb-directory” gchar *
The directory where IndexedDB databases will be stored.
Flags: Read / Write / Construct Only
Default value: NULL
Since: 2.10
“is-ephemeral”
property“is-ephemeral” gboolean
Whether the WebKitWebsiteDataManager is ephemeral. An ephemeral WebKitWebsiteDataManager handles all websites data as non-persistent, and nothing will be written to the client storage. Note that if you create an ephemeral WebKitWebsiteDataManager all other construction parameters to configure data directories will be ignored.
Flags: Read / Write / Construct Only
Default value: FALSE
Since: 2.16
“local-storage-directory”
property“local-storage-directory” gchar *
The directory where local storage data will be stored.
Flags: Read / Write / Construct Only
Default value: NULL
Since: 2.10
“offline-application-cache-directory”
property“offline-application-cache-directory” gchar *
The directory where offline web application cache will be stored.
Flags: Read / Write / Construct Only
Default value: NULL
Since: 2.10


Review by Eric Robinette<EMAIL_ADDRESS>Having dealt with the major issue at hand, Sir Critic's attention turned to another film closely associated with "The Phantom Menace"-"Austin Powers: The Spy Who Shagged Me." Since the trailer suggested "If you see only one movie this summer, see 'Star Wars.' But if you see two movies, see 'Austin Powers.'" Sir Critic decided to take that advice.
"How on earth do you review a film that defies criticism like this one does?" the other critical types asked the knight.
"It's very simple. You simply ask, 'Is it funny?' and since this is a sequel, "Does it live up to the original?" My answers are 'yes' to both questions.
"Simply put, if you liked the first movie, you are bound to like the second. It is more of the same juvenile/pop culture humor, done on a slightly larger scale since they had a slightly larger budget. The scenes with Dr. Evil and the crowd-pleasing Mini-Me are especially funny. Mike Myers ought to be careful, or Austin himself may fade from the picture.
"The major flaw of the film is that it relies a little too much on toilet humor; the character of Fat Bastard was not amusing, but simply gross. I would have run him through with my sword given half the chance. Gross by itself is not funny, although I did like the series of jokes using different nicknames for a certain unique part of the male anatomy."
The other critics cautioned, "Wait Sir Critic. You must imitate the language of Austin Powers in a review. That is required by law."
"Oh behave, my friends, I'm far above that sort of thing."
He paused.
"Blast!"
And with that, Sir Critic had one of his few defeats.
Grades: Phantom Menace A- Austin Powers: B
The review above was posted to the
rec.arts.movies.reviews newsgroup (de.rec.film.kritiken for German reviews).
The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.
Please direct comments/criticisms of the review to relevant newsgroups.
Broken URLs inthe reviews are the responsibility of the author.
The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.
Related links: index of all rec.arts.movies.reviews reviews


§291-10 Penalty. Any person violating any of the provisions of sections 291-8 and 291-9 shall be fined not less than $5 nor more than $150. [L 1917, c 69, §3; RL 1925, §4408; RL 1935, §6298; RL 1945, §11711; RL 1955, §311-17; HRS §291-10]


My porfolio is a website that i created in order to give you a quick glance at my accomplishments as a full stack developer.
This site will provide you with all the information you require partaining my career.
I hope you find your perusal worthwhile!
This is a website created for a hotel resort. The website was written using css and html
My PortfolioThis is a website that i created to host my portfolio. It includes information about me such as my career goal and educztion background. The website was written using css and html
My first WebsiteThis is my first ever website that includes a web page about my pet and one about my favorite things. This Website was written using html and css
A Travel AgencyThis is a website created for a Travel Agency. The website was written using css and html
I have:
1.successfully created a worldwide application that has been downloaded by millions all over the globe
2.Introduced new technology into the education industry
3.Formulated global tech aiding facilities
4.Established unique artificial intelligence machines


@import template._ @import play.cache.CacheApi @(user: Option[User])
This site is to aggregate blog. Send mail when the blog is updated.
Register
Login


Canadian women beat Cuba 110-53 to open Olympic pre-qualifying tournament
by Jason Mills, The Canadian PressEDMONTON -- A balanced offence has the Canadians off to a strong start at the 2019 FIBA women's Olympic pre-qualifying tournament.
Kia Nurse had a game-high 28 points while Miranda Ayim added 14, and Canada opened the event with a 110-53 victory over Cuba on Thursday.
Natalie Achonwa, Jamie Scott and Sami Hill chipped in 10 points apiece for the fourth-ranked Canadians, who outscored the No. 26 Cubans 31-0 on the fast break.
"Our depth really showed tonight, and once we were able to pick up the defensive intensity and get out in transition were able to really score," said Canada head coach Lisa Thomaidis.
Cuba tried to hang around early. But a late bucket in the first quarter from Nayo Raincock-Ekunwe capped off a 10-0 run and gave the Canadians a 28-15 lead entering the second.
Canada extended its lead to 21 at the half and used a 13-0 run late in the third for a 47-point lead with a quarter to play.
"That's essential for us. We have to use our speed to our advantage and we have great point guards who can push the pace and we have bigs who run really well and are mobile," said Nurse.
Anisleidy Galindo led Cuba with 12 points and five rebounds.
Achonwa and Raincock-Ekunwe were forces in the paint for Canada, combining for 18 points and 14 rebounds.
"That's great for us. It just makes us harder to scout and for teams to come in and look at us and see how many threats we have on offence is going to be huge for us," said Nurse.
Thomaidis added: "The two of them are tremendous athletes and they play so well together. They have that experience and to be able to utilize them and take advantage of the chemistry they have."
Ayim recorded all of her 14 points in the first half to help kick start Canada offensively.
"We have a really balanced squad, and Lisa (Thomaidis) has done a great job of bringing people in who are going to be moving up the ranks," said Ayim. "I'm really excited for the immediate future and the longer future for Canada basketball."
Canada's next game is Saturday against the Dominican Republic.
Notes: Canada shot 11 for 26 (42.3. Canada scored 27 points off turnovers, and the bench contributed 49 points. Puerto Rico beat Dominican Republic 108-58 in the tournament's opening game.
This report by The Canadian Press was first published Nov. 14, 2019.


Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to<EMAIL_ADDRESS>so we can send you a copy immediately.
Service class for interacting with the Google Photos Data API.
Like other service classes in this module, this class provides access via an HTTP client to Google servers for working with entries and feeds.
PICASA_BASE_URI = 'https://picasaweb.google.com/data'
PICASA_BASE_FEED_URI = 'https://picasaweb.google.com/data/feed'
AUTH_SERVICE_NAME = 'lh2'
DEFAULT_PROJECTION = 'api'
Default projection when interacting with the Picasa server.
DEFAULT_VISIBILITY = 'all'
The default visibility to filter events by.
DEFAULT_USER = 'default'
The default user to retrieve feeds for.
USER_PATH = 'user'
Path to the user feed on the Picasa server.
ALBUM_PATH = 'albumid'
Path to album feeds on the Picasa server.
PHOTO_PATH = 'photoid'
Path to photo feeds on the Picasa server.
COMMUNITY_SEARCH_PATH = 'all'
The path to the community search feed on the Picasa server.
FEED_LINK_PATH = 'http://schemas.google.com/g/2005#feed'
The path to use for finding links to feeds within entries
KIND_PATH = 'http://schemas.google.com/g/2005#kind'
The path to use for the determining type of an entry
array $namespaces = 'array'
Namespaces used for Zend_Gdata_Photos
__construct(
Zend_Http_Client $client
=
null, string $applicationId
=
MyCompany-MyApp-1.0
)
:
Create Zend_Gdata_Photos object
deleteAlbumEntry(
Zend_Gdata_Photos_AlbumEntry $album, boolean $catch
)
:
void.
Delete an AlbumEntry.
deleteCommentEntry(
Zend_Gdata_Photos_CommentEntry $comment, boolean $catch
)
:
void.
Delete a CommentEntry.
deletePhotoEntry(
Zend_Gdata_Photos_PhotoEntry $photo, boolean $catch
)
:
void.
Delete a PhotoEntry.
deleteTagEntry(
Zend_Gdata_Photos_TagEntry $tag, boolean $catch
)
:
void.
Delete a TagEntry.
getAlbumEntry(
mixed $location
)
:
Zend_Gdata_Photos_AlbumEntry
Retreive a single AlbumEntry object.
getAlbumFeed(
mixed $location
=
null
)
:
Zend_Gdata_Photos_AlbumFeed
Retreive AlbumFeed object containing multiple PhotoEntry or TagEntry objects.
getCommentEntry(
mixed $location
)
:
Zend_Gdata_Photos_CommentEntry
Retreive a single CommentEntry object.
getPhotoEntry(
mixed $location
)
:
Zend_Gdata_Photos_PhotoEntry
Retreive a single PhotoEntry object.
getPhotoFeed(
mixed $location
=
null
)
:
Zend_Gdata_Photos_PhotoFeed
Retreive PhotoFeed object containing comments and tags associated with a given photo.
getTagEntry(
mixed $location
)
:
Zend_Gdata_Photos_TagEntry
Retreive a single TagEntry object.
getUserEntry(
mixed $location
)
:
Zend_Gdata_Photos_UserEntry
Retreive a single UserEntry object.
getUserFeed(
string $userName
=
null, mixed $location
=
null
)
:
Zend_Gdata_Photos_UserFeed
Retrieve a UserFeed containing AlbumEntries, PhotoEntries and TagEntries associated with a given user.
insertAlbumEntry(
Zend_Gdata_Photos_AlbumEntry $album, $uri
=
null
)
:
Zend_Gdata_Photos_AlbumEntry
Create a new album from a AlbumEntry.
insertCommentEntry(
Zend_Gdata_Photos_CommentEntry $comment, $uri
=
null
)
:
Zend_Gdata_Photos_CommentEntry
Create a new comment from a CommentEntry.
insertPhotoEntry(
Zend_Gdata_Photos_PhotoEntry $photo, $uri
=
null
)
:
Zend_Gdata_Photos_PhotoEntry
Create a new photo from a PhotoEntry.
insertTagEntry(
Zend_Gdata_Photos_TagEntry $tag, $uri
=
null
)
:
Zend_Gdata_Photos_TagEntry
Create a new tag from a TagEntry.


Landing Page
Special Projects
This story is part of a series of specially designed stories that represents some of the best journalism The Post has to offer. Check out the rest of the special projects here.
MEAGAN HALL
08.24.17
School is starting, which means summer is close to ending. You might feel like there are so many summer activities left to do on your summer bucket list, but so little time. Well, The Post is making it easier for you to remember with this list of 30 must-do things on your end-of-summer bucket list. Hopefully, you get some new ideas on how to make the most out of the last few hot and sunny days.
Sarah Olivieri | ILLUSTRATION
Be a cool college kid and get some friends to toss a frisbee on College Green after class.
Go to Ohio University’s golf course and play the nine holes with a pal. Driving the golf carts are half of the fun.
Nothing says summer like going swimming.
Getting to see the campus from a great view is awesome and so is getting to see some nature.
Make sure to utilize the season and get fresh foods.
Eating ice cream on the Civil War monument is the perfect relaxing afternoon activity.
Prime time to hike the steep hill of Bong Hill is right before sunset so you can watch the sun go down over campus and take great pictures
Make some sandwiches, grab a blanket and spend your lunch hour lounging on College Green.
OU also has a disc golfing course with nine holes. Once you master that, head over to Hocking College for another course.
The volleyball courts are one of South Green’s greatest features. Pretend you are at a beach and grab some friends and a volleyball.
If volleyball isn’t your thing, play basketball outside on South Green
Get a to-go box and eat dinner at a picnic table, making sure to soak up the warmth of summer that will soon be gone.
Preferably a non-school related book, but any book will do.
Many people don’t know about this spot so head up to the fourth floor of Baker Center and go to the balcony for some peaceful worktime.
Pack up a cooler and hang out at Strouds all day on a weekend with some friends.

If full-on golfing isn’t your thing, try putt-putt at Putt People First Miniature Golf Course.
Ali Baba’s, Hot Potato and Burrito Buggy are all great options.
Immerse yourself in some full-on Ohio culture and go to the Pawpaw Festival. There are some really cool vendors there and don’t forget to actually try the fruit.
There’s more to Stroud's than the water. Hike around the water on one of the various paths with lengths for all hikers.
Actually use those grills that are sporadically placed around the residential halls.
There are many apps that you can download to take long-exposure pictures so you and your friends can get artsy.
Tie up your hammock between some trees and hit snooze. If you don’t trust other people to not bother you, just read a book or chill out with friends.
Strouds closes at night, so hike up Bong Hill or Radar Hill after hours. Try to be strong and don’t use a flashlight — it will make the hike better to let your eyes adjust.
Radar Hill is a great place to check out the constellations. Try to find your own based off of your horoscope.
If you can’t go to a pool or Strouds, cool off by having a water balloon fight. Just make sure to pick up the remains of the fallen balloons.
There are so many great pups and cats that would love to hang out with you. Spend some quality time with one and make yourself feel better.
One of the best parts of southern Ohio is the Hocking Hills and Old Man’s Cave. Check out the caves and the surrounding forests.
We all have those projects we say we want to do but never actually do them. Set up a day to get artsy and finish all of those projects.
Make sure to add go pumpkin picking, go to a football game and attend Homecoming.
BackLanding Page
This story is part of a series of specially designed stories that represents some of the best journalism The Post has to offer. Check out the rest of the special projects here.


| vec_math {vctrs} | R Documentation |
This generic provides a common dispatch mechanism for all regular unary
mathematical functions. It is used as a common wrapper around many of the
Summary group generics, the Math group generics, and a handful of other
mathematical functions like mean()
(but not var()
or sd()
).
vec_math(.fn, .x, ...) vec_math_base(.fn, .x, ...)
.fn |
A mathematical function from the base package, as a string. |
.x |
A vector. |
... |
Additional arguments passed to |
vec_math_base()
is provided as a convenience for writing methods. It
calls the base .fn
on the underlying vec_data()
.
From the Summary group generic:
prod()
, sum()
, any()
, all()
.
From the Math group generic:
abs()
, sign()
, sqrt()
, ceiling()
, floor()
, trunc()
, cummax()
,
cummin()
, cumprod()
, cumsum()
, log()
, log10()
, log2()
,
log1p()
, acos()
, acosh()
, asin()
, asinh()
, atan()
, atanh()
,
exp()
, expm1()
, cos()
, cosh()
, cospi()
, sin()
, sinh()
,
sinpi()
, tan()
, tanh()
, tanpi()
, gamma()
, lgamma()
,
digamma()
, trigamma()
.
Additional generics: mean()
, is.nan()
, is.finite()
, is.infinite()
.
Note that median()
is currently not implemented, and sd()
and
var()
are currently not generic and so do not support custom
classes.
vec_arith()
for the equivalent for the arithmetic infix operators.
x <- new_vctr(c(1, 2.5, 10)) x abs(x) sum(x) cumsum(x)


Yoghurt Flatbread
Yields: 3 pcs
Preparation time: 20'
Cooking time: 15'
Tools
-
Rolling pinA flat pan
Ingredients
-
160g unsweetened and unflavored (greek) yoghurt150g flour (plus quite a bit more to work the dough)4g salt8g of baking powderTo flavor either olive oil and rosemary or butter and sage
Directions
-
Mix salt, flour and baking powder with the yoghurt until homogeneous and stickyDust a work surface with a generous amount of flourPut the dough on the surface and split it in 3 or 4 piecesAdd flour and mix until workable (it should not be too sticky to roll on the outside, it is ok if it is still wet inside)Re-flour the surface and roll it to a thin disk (~5mm). Beware the dough is very sticky, if it starts to stick dust with some more flourSpread a thin layer of the flavor of your choice (e.g. melt the butter with some sage) on one side (You might want to use a brush to help you).Warm the pan on medium heat for a while. The pan should be all at the same temperature before continuing.Put the flatbread in the pan with the oiled face down.Keep turning it (not flipping it) a bit every now and then if your heat is uneven.After a few minutes (until the bottom starts showing some browning and crisp) flip it.Cook for roughly the same amount of time on the other side. Be careful that the non-oiled side tends to burn quicker than the other one.
Category: Bread
Origin: Rob


--- layout: post title: Embedbot permalink: /:title.html ---
python3 xml2json.py --input XMLFOLDER --output JSONFOLDER --style JATS --source --CORE --compressed gz
The style and source definitions are necessary as XML tags may vary slighty with publishers and repositories.
Now we can already run the Word2Vec model-building job on a Spark cluster with this small workflow script.
The script sets up some basic logging functionalities so that we can track progress and log errors.
It then starts up a Spark context, connecting to the cluster.
conf = SparkConf()
sc = SparkContext(conf=conf)
spark = SparkSession(sc)
By pointing it to the folder where we stored the JSON files, Spark will read the JSONs and transform them into a DataFrame, with one article per row, and data and metadata as columns.
df = spark.read.json(args.input)
For the Word2Vec-model we only need words, so we subset the dataframe to
fulltexts = df.select('doi', 'abstract', 'fulltext')
We now define a pipeline consisting of following stages:
stringconcat = StringConcatenator(inputCols=["abstract", "fulltext"],
outputCol="texts")
tokenizer = RegexTokenizer(inputCol="texts",
outputCol="words", pattern="\\W")
word2Vec = Word2Vec(vectorSize=500, minCount=20,
maxIter=args.maxIter, numPartitions=args.numPartitions,
windowSize=args.windowSize,
stepSize=args.stepSize,
inputCol="words", outputCol="w2v")
w2vpipeline = Pipeline(stages=[stringconcat,
tokenizer,
word2Vec])
We then apply the pipeline to the fulltexts-dataframe, and wait. Once the model is finished, we select it as the last stage of the pipeline, extract the word vectors and save them.
w2vpipeline_model = w2vpipeline.fit(fulltexts)
w2vmodel = w2vpipeline_model.stages[-1]
vectors = w2vmodel.getVectors()
vectors.write.save(args.output+"df.parquet")
Run the whole script either as a custom step on AWS, or locally with
/path_to_spark/bin/spark-submit --master spark://localhostname:7077
--num-executors - 1 --executor-memory ASMUCHASYOUHAVE --executor-cores 4
/path_to/workflow.py --input JSONFOLDER --output VECTORFOLDER --maxIter 1
--windowSize 5 --logpath LOGFOLDER
We will then run a second Spark-job that converts the saved word vectors (which are still a dataframe) into two pickled files, one as a pickled list of the actual words, and one numpy matrix of the vectors.
We do this to make it as simple as possible to read and access, if we want our bot to be easily deployed, acceptably fast and not requiring much CPU or RAM.
/path_to_spark/bin/spark-submit --master spark://localhostname:7077
--num-executors - 1 --executor-memory ASMUCHASYOUHAVE --executor-cores 4
/path_to/vector_converter.py --input VECTORFOLDER --output MODELFOLDER --logpath LOGFOLDER
That's it for step 1. We now have a word2vec-model in small, compact form, built on millions of words from Open Access scientific literature.
import tweepy
import json
import logging
import time
import os
from os import path
import re
import pickle
import argparse
from http.client import IncompleteRead
from w2vEngine import w2vEngine
from daemon import Daemon
import sys
class EmbedBot(Daemon):
"""docstring for EmbedBot"""
def __init__(self, pidfile):
super(EmbedBot, self).__init__(pidfile)
logname = ("EmbedBot.log")
self.log = logging.getLogger("embedbot")
self.log.setLevel('INFO')
formatter = logging.Formatter('%(asctime)-15s %(name)s '
'[%(levelname)s] %(message)s')
fh = logging.FileHandler(logname)
fh.setFormatter(formatter)
self.log.addHandler(fh)
def handle_mentions(self):
for mention in self.state['mention_queue']:
prefix = self.get_mention_prefix(mention)
text = " ".join([w for w in mention.text.split() if '@' not in w])
query = (text.lower()
.replace("-", "+-")
.replace(" ", "")
.split("+"))
signs = [(-1) if "-" in q
else 1
for q in query]
not_in_vocab = self.check_vocabulary(query)
if len(not_in_vocab) != 0:
self.log.info("Not in vocabulary: "+", ".join(not_in_vocab))
reply = prefix+" Sorry, "+", ".join(not_in_vocab)
+" not in my vocabulary."
self.post_tweet(reply, reply_to=mention)
self.state['mention_queue'].remove(mention)
continue
reply = self.formulate_reply(prefix, text, query, signs)
self.log.info("About to post "+reply)
self.post_tweet(reply, reply_to=mention)
self.state['mention_queue'].remove(mention)
def formulate_reply(self, prefix, text, query, signs):
if len(query) == 1:
result = self.w2vengine.get_synonyms(query[0], 5)
result = ", ".join(result)
reply = "Related terms to "+query[0]+": "+result
else:
result = self.w2vengine.get_abstractions(query, signs, 5)
result = ", ".join(result)
reply = " = ".join([text, result])
return " ".join([prefix, reply])
def check_vocabulary(self, query):
query = [q.replace("-", "") for q in query]
q = set(query)
diff = q.difference(self.w2vengine.vocabulary)
return list(diff)
The word2vec-engine translating and replying to queries has two main functions.
If only one word is present in the query, it will reply with a list of synonyms close to that word. Close in the sense that they are in a similar region the high-dimensional vector space.
import pandas as pd
import numpy as np
import logging
import pickle
from os import path
from sklearn.metrics.pairwise import cosine_similarity
class w2vEngine(object):
"""docstring for w2vEngine"""
def __init__(self, modelpath):
super(w2vEngine, self).__init__()
logname = ("EmbedBot.log")
self.log = logging.getLogger("w2vEngine")
self.log.setLevel('INFO')
formatter = logging.Formatter('%(asctime)-15s %(name)s '
'[%(levelname)s] %(message)s')
fh = logging.FileHandler(logname)
fh.setFormatter(formatter)
self.log.addHandler(fh)
self.modelpath = modelpath
# store = pd.HDFStore(modelpath)
# df = store.get('df')
with open(path.join(modelpath, "words.pkl"), "rb") as infile:
self.vocabulary = pickle.load(infile)
# self.vocabulary = df['word'].tolist()
self.log.info("Size of vocabulary: %d" % len(self.vocabulary))
# self.mat = np.row_stack(df['vector'].tolist())
with open(path.join(modelpath, "mat.pkl"), "rb") as infile:
self.mat = pickle.load(infile)
def get_synonyms(self, query_term, n):
i = self.vocabulary.index(query_term)
y = self.mat[i].reshape(1, -1)
sims = cosine_similarity(self.mat, y).flatten()
best_sims = sims.argsort()
best_sims = list(best_sims[-10:-1])
best_sims.reverse()
results = []
for i in best_sims:
candidate = self.vocabulary[i]
if not candidate.startswith(query_term):
if not query_term.startswith(candidate):
results.append(self.vocabulary[i])
return results[:n]
def get_abstractions(self, query_terms, signs, n):
query_terms = [q.replace("-", "")
for q in query_terms]
indices = [self.vocabulary.index(q)
for q in query_terms]
vectors = self.mat[indices]
query_vectors = [signs[i]*vectors[i]
for i in range(len(query_terms))]
query_vector = sum(query_vectors).reshape(1, -1)
sims = cosine_similarity(self.mat, query_vector).flatten()
best_sims = sims.argsort()
best_sims = list(best_sims[-10:-1])
best_sims.reverse()
candidates = [self.vocabulary[i]
for i in best_sims]
results = []
for c in candidates:
if not any([c.startswith(q)
for q in query_terms]):
results.append(c)
return results[:n]
Here are some examples:


Worker threads in Node.js
An example
Is Node.js the right language to use if you're doing lots of CPU intensive work?


allmende.io
communication infrastructure for the Commons
at your service
Profiles
for people, groups and movements
Meta
coordinating the federation
Lists
for announcements
Calc
real-time synced spreadsheet
Pads
real-time synced editing
Dossier
thematic collections
Piwik
website metrics
Shout
web irc gateway
Datengarten
files, calendars and contacts
beta
Errors
debug log aggregation
StackEdit
on- and offline synced editing
Lab
social coding
Known
IndieWeb publishing
alpha
Cozy
simple cloud services
epubster
digital publishing workflows
Chat
ephemeral
about us
Blog
Wiki
Code
allmende.io
provides web services for mutual self-organization
it is provided "as is", without warranty of any kind.
originally inspired by
TransforMap
graciously hosted by
circus homo novus
,
id22: Institute for Creative Sustainability
and
Ecobytes
#14mmm
Blog
Wiki
Code
TransforMap
News
Wiki
Code
Discourse
GroupServer
further discourse
OuiShare
Federated Wiki


|
ACTS
Version 1.0.0
|
Buffer between sensor and SPI SD write. More...
#include <BinaryBuffer.hpp>
Public Member Functions | |
| BinaryBuffer () | |
| BinaryBuffer constructor. More... | |
| void | readOnly () |
| readOnly method More... | |
| void | writeOnly () |
| writeOnly method More... | |
| void | clear () |
| clear method More... | |
| bool | add (SampleData in) |
| add method More... | |
| const std::vector< SampleData > & | get () |
| get method More... | |
| bool | isFull () |
| isFull method More... | |
| ~BinaryBuffer () | |
| BinaryBuffer deconstructor. More... | |
Buffer between sensor and SPI SD write.
This class holds a finite amount of data and acts as a FiFo.
| BinaryBuffer::BinaryBuffer | ( | ) |
BinaryBuffer constructor.
Clear the buffer and set state to write only.
| BinaryBuffer::~BinaryBuffer | ( | ) |
BinaryBuffer deconstructor.
Empty, not implemented.
| bool BinaryBuffer::add | ( | SampleData | in | ) |
add method
| in | SampleData structure |
This method adds a SampleData strcture to the buffer.
| void BinaryBuffer::clear | ( | ) |
| const std::vector< SampleData > & BinaryBuffer::get | ( | ) |
get method
This method returns a pointer to the first sample of the buffer.
| bool BinaryBuffer::isFull | ( | ) |
isFull method
Returns true if the buffer is full
| void BinaryBuffer::readOnly | ( | ) |
readOnly method
This method sets the buffer to read only mode.
| void BinaryBuffer::writeOnly | ( | ) |
writeOnly method
This method set the buffer to write only mode.


How does software get damaged by external sources? How do you prevent it? All you can learn in a 2 days! Workshop Date : 5th and 6th February, 2016 Registration Fee : Rs.900/-


Fold U: A Protein Structure Prediction Program¶
This program is the second step (downstream) of a protein structure prediction project. This step consists of threading a query sequence on different given templates.
Our project is part of the Meet-U 2018-2019 competition. Meet-U is a collaborative pedagogical and research initiative between several Universities of Paris area. The course is intended to Master students (2nd year) in Bioinformatics. For more details, please refer to http://www.meet-u.org/.
Implemented Strategy¶
The overall strategy implemented by our team is the following :
- The
.foldrec
file resulting from a profile-profile alignment and generated during the first step (upstream) is parsed to extract relevant informations (query and template sequences, alignment score, etc.). - For each alignment, the query sequence is threaded on the template and a threading score is generated using an energy DOPE matrix.
- Then, the program MODELLER generates a new 3D model by homology (alignment between query and template) and returns a high resolution (bin 0.125Å) DOPE score, which is a statistical potential implemented in MODELLER. This new model is then used to calculate several other scores (secondary structure, solvent accessibility and co-evolution scores).
- Each generated scores are normalized using the min-max scaling method (values between 0 and 1) in order to addition them.
- The scores are stored in
scores.csv
and the top N pdb structure are generated.
Implemented scores¶
To improve the structure prediction of the query, several scores have been implemented :
- Alignment score : Resulting from the profile-profile alignment during the first step (Upstream).
- Threading score : Score based on the threading of the query on the template and the energy DOPE matrix.
- Modeller score : Calculating the DOPE statistical potential score of the new model generated by homology modelling with MODELLER based on the alignment of the query and the template.
- Co-evolution score : Co-evolution score measures co-occurence of a pair of amino acid in ortholog sequences using CCMpred program.
- Secondary structure score : Based on the predicted secondary structure and associated confidence score generated by PSIPRED, query and template are compared and a score is generated.
- Solvent accessibility score : DSSP generates a solvent accessibility value for each amino acid of the template and the new template generated by Modeller. Those two values are compared and a solvent accessibility score is generated.
- Blosum score : Comparing amino acid sequence between the query and the template and generating a score based on the blosum62 matrix. This score is not used in the sum score because of its lack of prediction.
- Sum score : The addition of all previously mentionned scores (without the blosum score)
Benchmarking¶
This program is also benchmarked using ROC style plots and Top N information to evaluate the power and the relevance of the different scores. The score results are generated for all queries (foldrec files). Each plot represents the cumulative sum of benchmarks encountered along the ranking (from rank 1 to rank 405) for each calculated scores and for a specific benchmark type (“Family”, “Superfamily” or “Fold”) which correspond to the degree of similarity with the query.
A top N results table is also generated showing the number of “Family”, “Superfamily” and “Fold” benchmark found in the top N ranks.
We used the new data and the new benchmark.list.
Installation¶
Clone the repository¶
git clone https://github.com/meetU-MasterStudents/Fold_U.git
cd Fold_U
Requirements¶
Install the few required packages / modules :
pip install -r requirements.txt
MODELLER is also required, and can be installed easily with Conda :
conda install -c salilab modeller
You need to register to get a license key here, and follow instructions during installation to insert license key in the program.
To calculate the solvent accessibility score DSSP is also required:
sudo apt-get install dssp
Or you can download the latest release and install from source.
Run the program¶
fold_u
takes in input a foldrec file and a multiple alignment file (fasta format). It returns a score.csv
file and the top N pdb structures.
Toy example¶
The scores.csv
and the top 10 pdb structures of the His_biosynth query sequence are stored in results/His_biosynth
folder.
./fold_u data/foldrec/His_biosynth.foldrec data/aln/His_biosynth.fasta -o results/His_biosynth --dssp /usr/bin/mkdssp
Get help¶
./fold_u -h
Usage:
./fold_u FOLDREC_FILE ALN_FILE [--nb_templates NUM] [--nb_pdb NUM] [--output PATH]
[--metafold FILE] [--dope FILE] [--benchmark FILE] [--aln_file FILE]
[--dssp PATH] [--cpu NUM]
Arguments:
FOLDREC_FILE N profile * profile alignment and
their corresponding score
ALN_FILE Path to the alignment file
Options:
-h, --help Show this
-n NUM, --nb_templates NUM First n templates to retrieve from
the foldrec file [default: 405]
-p NUM, --nb_pdb NUM Number of pdb to create
[default: 10]
-o PATH, --output PATH Path to the directory containing
the result files (scores and pdb)
[default: ./results]
-a PATH, --dssp PATH Path to the dssp software
binary [default: /usr/local/bin/mkdssp]
-m FILE, --metafold FILE Path to the metafold.list file
[default: data/metafold.list]
-d FILE, --dope FILE Path to the dope.par file
[default: data/dope.par]
-b FILE, --benchmark FILE Path to the benchmark.list file
[default: data/benchmark.list]
-c NUM, --cpu NUM Number of cpus to use for parallelisation
[default: 0]
Run all the queries + Benchmarking¶
script/benchmarking.py
runs the fold_u
program for each foldrec if results are not still generated. It returns a top_n
folder containing 3 .png
plots and prints the top N tables in the terminal.
./script/benchmarking.py --dssp /usr/bin/mkdssp
Get help¶
./script/benchmarking.py -h
Usage:
./script/benchmarking.py [--nb_templates NUM] [--output PATH] [--dssp PATH] [--sscore SCORE]
[--cpu NUM]
Options:
-h, --help Show this
-n NUM, --nb_templates NUM First n templates with the best
score [default: 100]
-o PATH, --output PATH Path to the directory containing
the result files (scores and plot)
[default: ./results/top_n]
-d PATH, --dssp PATH Path to the dssp software
binary [default: /usr/local/bin/mkdssp]
-s SCORE, --sscore SCORE selected score to calculate top_N
[default: sum_scores]
-c NUM, --cpu NUM Number of cpus to use for parallelisation
[default: 0]
Results¶
! We used the new data !
Top N tables¶
Family Superfamily Fold
top5 0.0/1.0 1.0/6.0 2.0/13.0
0.00 % 16.67 % 15.38 %
----------------------------------------
top10 0.0/1.0 2.0/6.0 2.0/13.0
0.00 % 33.33 % 15.38 %
----------------------------------------
top50 0.0/1.0 4.0/6.0 6.0/13.0
0.00 % 66.67 % 46.15 %
----------------------------------------
top100 0.0/1.0 4.0/6.0 8.0/13.0
0.00 % 66.67 % 61.54 %
Plots¶
Documentation¶
The documentation of our program is generated with Sphinx and and built on Read The Docs.
Authors¶
We are master students in bioinformatics at Paris Diderot University.
Acknowledgment¶
Thanks to Maïté Cretin for the nice logo.
Thanks to team 1 and team 2 for generating to us multiple alignment files (data/aln
).


COVID-19 Condition in Vietnam , Update continuously
As of May 28, 2021, Vietnam’s Ministry of Health confirmed a total of 6,316 cases of COVID-19. However, 2,853 of the affected patients have recovered and been discharged from hospitals. Vietnam has also recorded 46 deaths due to the pandemic. The latest community transmission cases have been reported from Bac Giang, Lang Son, Thai Binh, and Long An.
Ho Chi Minh City authorities have ordered the suspension of most non-essential activities. These include restaurants, beauty parlors, barbers, spas, tourism sites, museums, walking streets, night markets, and parks from May 28 due to the latest outbreak. Homestay and Airbnb services are also suspended until further notice while religious activities with 10 or more people and other institutions are also suspended.
Restaurants that do operate will only be allowed takeaway and delivery services.
Ho Chi Minh City has suspended international arriving flights from May 27 to June 4 in a bid to contain the outbreak.
Da Nang authorities will allow taxis, ride-hailing cars, and motorbikes as well as two-wheeler delivery services to resume operations from May 28 after eight days of registering no new local infections.
At least 13 people belonging to a religious sect in Go Vap District of Ho Chi Minh City have tested positive for the virus. This includes a chef working at the Sheraton Hotel in District 1. The hotel has been temporarily blocked.
In light of this, Ho Chi Minh City authorities have restricted people from not gathering in groups of more than 10 people in public places.
James Doe
Orion Pax is constantly, if not always depicted as having strong moral character, excellent leadership, and sound decision-making skills, and an advanced extraterrestrial.
Lasted Posts
Should You Avoid All Alcohol?
Relative Posts
Should You Avoid All Alcohol?
Toan Nguyen
Toan Nguyen
2 hours ago
Good


The IAB New Ad Portfolio defines the ad units based on aspect ratio. This is a big transition from current ad unit recommendations based on fixed pixel sizes. Flexible ad units provide benefits over the current fixed pixel ad units
This project provides samples and techniques for testing and adoption of the new Flex Size ad units.


View Data History
View Data History is a replay feature for displaying , data records without re-running the job itself. One can see data records of current run as well as for previous run.
To View/Watch Data History:
To view Data History the job should be run at least once in debug mode and watch points should be added on links.
To get view Data History option right click on link , where watch point was added. Here we have View Data option. We can either view data for current run or for previous run.
Current Job Run: Records displayed are for current run.
Prior Job Run: A window is displayed having list of prior job runs.
Fig: View Data option.
Fig: View Data History window.
If job is never executed in debug mode then a pop up is shown as below :
Fig: Message when job is not executed and an attempt is made to view data.
The data is visible in different formats grid formatted and unformatted.


|
Rendu
An OpenGL rendering engine for experimentations
|
Scene editor interface. More...
#include <SceneEditor.hpp>
Public Member Functions | |
| SceneEditor (RenderingConfig &config) | |
| void | draw () override |
| void | update () override |
| void | physics (double fullTime, double frameTime) override |
| void | clean () override |
| void | resize () override |
| Public Member Functions inherited from CameraApp | |
| CameraApp (RenderingConfig &config) | |
| Public Member Functions inherited from Application | |
| Application (RenderingConfig &config) | |
| virtual | ~Application ()=default |
| Application (const Application &)=delete | |
| Application & | operator= (const Application &)=delete |
| Application (Application &&)=delete | |
| Application & | operator= (Application &&)=delete |
Private Member Functions | |
| void | setScene (const std::shared_ptr< Scene > &scene) |
Private Attributes | |
| EditorRenderer | _renderer |
| const Program * | _passthrough |
| Passthrough program. | |
| std::vector< std::shared_ptr< Scene > > | _scenes |
| The existing scenes. | |
| std::vector< std::string > | _sceneNames |
| The associated scene names. | |
| unsigned int | _currentScene = 0 |
| Currently selected scene. | |
| float | _cameraFOV = 70.0f |
| The adjustable camera fov in degrees. | |
| bool | _paused = false |
| Pause the scene animations. | |
Additional Inherited Members | |
| Protected Member Functions inherited from CameraApp | |
| void | freezeCamera (bool shouldFreeze) |
| Protected Attributes inherited from CameraApp | |
| ControllableCamera | _userCamera |
| The interactive camera. | |
| Protected Attributes inherited from Application | |
| RenderingConfig & | _config |
| The current configuration. | |
Scene editor interface.
Inherits CameraApp.
|
explicit |
Constructor.
| config | the configuration to apply |
|
overridevirtual |
Clean internal resources.
Implements Application.
|
overridevirtual |
Draw the scene and effects
Implements Application.
|
overridevirtual |
Perform physics simulation update.
| fullTime | the time elapsed since the beginning of the render loop |
| frameTime | the duration of the last frame |
Reimplemented from CameraApp.
|
overridevirtual |
Handle a window resize event.
Implements Application.
|
overridevirtual |
Perform once-per-frame update (buttons, GUI,...)
Reimplemented from CameraApp.


canvas::edit::points - Editing a cloud of points on a canvas
This package provides a class whose instances handle editing a cloud of point markers on a canvas. Instances can be configured with regard to the visual appearance of markers. Note that instances do not store the edited points themselves, but delegate this to a configurable object.
The default bindings enable the creation, removal and dragging of point (markers) using the mouse buttons 1, 2, and 3. Specifically:
Clicking anywhere with button 1 adds a new point.
Clicking on a point with button 2 removes that point.
Clicking on a point with button 3 starts a drag operation ending with the release of the button.
The option -drag-point can be used to change the button used to initiate drag operations. Note that the option value may not only contain the button number, but also modifier prefix separated from the button by a dash "-". The recognized modifiers are Control, Shift, and Alt.
The option -add-remove-point can be used to change the button used to add/remove points. This works because removal is an item binding, while adding is canvas global. The option recognizes the same syntax for button as -drag-point.
In the standard configuration the canvas item representing a point is a circle configured using the appearance options -color, -hilit-color, and -radius. Their defaults are Skyblue2, red, and 3, repsectively.
The option -kind can be used to slightly customize the canvas item to any kind accepting the item options -width, -outline, -fill, and -activefill.
For more extensive customization its is necessary to configure a creation callback using option -create-cmd. The callback takes the canvas and x. y coordinates as arguments, in this order, and is expected to return a list of the canvas items representing the point.
Note the plural. With the callback it is possible to visualize a point using a group of items.
Further note that when the callback return an empty list no point is created. In other words, the callback can also be used to perform checks if a point at the given location is desirable, or not. This can be combined with the default creation behaviour as the option can be queried, and its default value is the callback for the default behaviour.
Keeping with the callback for a bit, the option -active-cmd sets a callback invoked whenever the mouse is over one of the created points, i.e. active. This can be used to drive derived displays. For example highlighting the point's entry in a table or other widget.
The last option of importance is -tag. Its value is the name of the canvas tag used to mark all the items owned, i.e. created and managed by an. The default is POINT.
When attaching multiple instances of this behaviour to the same canvas each instance has to be configured with a unique tag, to prevent them from interfering with each other.
This, the class command, creates and configures a new instance of a point cloud editor, named objectName. The instance will be connected to the specified canvas widget.
The result of the command is the fully qualified name of the instance command.
The options accepted here, and their values, are explained in the section Options.
Instances of the point cloud editors provide the following API:
This method destroys the point cloud editor and releases all its internal resources.
Note that this operation does not destroy the items of the point markers the editor managed on the attached canvas, nor the canvas itself.
The result of the method is an empty string.
This method activates editing of the point cloud on the canvas. This is the default after instance creation. A call is ignored if the editor is already active.
The result of the method is an empty string.
The complementary method is disable. The interogatory method for the current state is active.
This method disables editing of the point cloud on the canvas. A call is ignored if the editor is already disabled.
The result of the method is an empty string.
The complementary method is enable. The interogatory method for the current state is active.
This method queries the editor state.
The result of the method is a boolean value, true if the editor is active, and false otherwise, i.e. disabled.
The methods to change the state are enable and disable.
This method programmatically creates a point at the specified location.
The result of the method is an empty string.
Note that this method goes through the whole set of callbacks invoked when the user interactively creates a point, i.e. -create-cmd, and, more importantly, -data-cmd.
This is the method through which to load pre-existing points into an editor instance.
This method programmatically removes all points from the editor.
The result of the method is an empty string.
Note that this method goes through the same callback invoked when the user interactively removes a point, i.e. -data-cmd.
The class command accepts the following options
This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category canvas of the Tklib Trackers. Please also report any ideas for enhancements you may have for either package and/or documentation.