/*
 * Proland: a procedural landscape rendering library.
 * Copyright (c) 2008-2011 INRIA
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

/*
 * Proland is distributed under a dual-license scheme.
 * You can obtain a specific license from Inria: proland-licensing@inria.fr.
 */

/*
 * Authors: Eric Bruneton, Antoine Begault, Guillaume Piolat.
 */

#ifndef _PROLAND_EVENTRECORDER_H_
#define _PROLAND_EVENTRECORDER_H_

#include <vector>

#include "ork/core/Timer.h"
#include "ork/render/Program.h"
#include "ork/render/Texture2D.h"
#include "ork/ui/EventHandler.h"

using namespace std;

using namespace ork;

namespace proland
{

/**
 * An object that can be recorded by an EventRecorder.
 * See #EventRecorder.
 * @ingroup proland_ui
 * @authors Eric Bruneton, Antoine Begault, Guillaume Piolat
 */
PROLAND_API class Recordable
{
public:
    /**
     * Saves the current scene state. This method is called just before
     * starting recording.
     */
    virtual void saveState() = 0;

    /**
     * Restores the scene state that was saved during the last call to
     * #saveState.
     */
    virtual void restoreState() = 0;
};

/**
 * An EventHandler that can record and replay events, and save a video
 * during replay. Recording is started and stopped with F12. Replay is
 * triggered with F11, or SHIFT+F11 to record a video while replaying.
 * The recorded video does not contain all the original frames, but only
 * 25 frames per second.
 * Since replay cannot be done at the same rate as the original events,
 * especially when saving a video, the events are recorded together with
 * the time at which they originally occured, to be able to override the
 * real-time during replay with the original time during recording.
 * Also if modifications have been performed to the scene during the
 * recording, the initial scene state must be restored before replaying
 * the event. This is managed by a Recordable, that is used by this
 * EventRecorder.
 * @ingroup proland_ui
 */
PROLAND_API class EventRecorder : public EventHandler
{
public:
    /**
     * A recorded event.
     */
    struct Event
    {
        enum EventType
        {
            DISPLAY, ///< EventHandler#redisplay
            MOUSE, ///< EventHandler#mouseClick
            MOTION, ///< EventHandler#mouseMotion
            PASSIVEMOTION, ///< EventHandler#mousePassiveMotion
            WHEEL, ///< EventHandler#mouseWheel
            KEYBOARD, ///< EventHandler#keyType and EventHandler#keyReleased
            SPECIAL ///< EventHandler#specialKey and EventHandler#specialKeyReleased
        };

        EventType kind; ///< type of this event

        union {
            struct {
                double t;

                double dt;

                float groundHeight;
            } display;

            struct {
                int m; ///< the modifiers state when this event was recorded.

                int arg1; ///< first event argument. Value depends on event type.

                int arg2; ///< second event argument. Value depends on event type.

                int arg3; ///< third event argument. Value depends on event type.

                int arg4; ///< fourth event argument. Value depends on event type.
            } e;
        };

        /**
         * Creates an uninitialized event.
         **/
        Event();

        /**
         * Creates a new DISPLAY event.
         *
         * @param t the time at which this event was recorded.
         * @param
         */
        Event(double t, double dt, float groundHeight);

        /**
         * Creates a new event.
         *
         * @param kind the event type.
         * @param m the current modifiers state.
         * @param arg1 first event argumemt. Value depends on event type.
         * @param arg2 second event argumemt. Value depends on event type.
         * @param arg3 third event argumemt. Value depends on event type.
         * @param arg4 fourth event argumemt. Value depends on event type.
         */
        Event(EventType kind, int m, int arg1 = 0, int arg2 = 0, int arg3 = 0, int arg4 = 0);
    };

    /**
     * Creates a new EventRecorder.
     *
     * @param eventFile the name of a file containing stored events to be
     *      replayed, or NULL.
     * @param autoSave true to save events in a temporary file at each mouse
     *      click and key typed event (useful for saving events if scenario
     *      leads to a crash).
     * @param frames the file name format to be used to save the video frames.
     *      For instance "video/frame-%d.tga" or "video/frame-%.4d.tga".
     * @param cursorProg the GLSL program used to draw the cursor on the screen.
     * @param cursor a cursor texture to display the cursor position during
     *      replay.
     * @param next the EventHandler that must handle the events recorded and
     *      replayed by this EventRecorder.
     */
    EventRecorder(const char *eventFile, bool autoSave, const char *frames, ptr<Program> cursorProg, ptr<Texture2D> cursor, ptr<EventHandler> next);

    /**
     * Deletes this EventRecorder.
     */
    virtual ~EventRecorder();

    void setEventFile(const char *eventFile);

    virtual void redisplay(double t, double dt);

    virtual void reshape(int x, int y);

    virtual void idle(bool damaged);

    virtual bool mouseClick(button b, state s, modifier m, int x, int y);

    virtual bool mouseMotion(int x, int y);

    virtual bool mousePassiveMotion(int x, int y);

    virtual bool mouseWheel(wheel b, modifier m, int x, int y);

    virtual bool keyTyped(unsigned char c, modifier m, int x, int y);

    virtual bool keyReleased(unsigned char c, modifier m, int x, int y);

    virtual bool specialKey(key k, modifier m, int x, int y);

    virtual bool specialKeyReleased(key k, modifier m, int x, int y);

protected:
    /**
     * The object used to save/restore the framerate and the scene state.
     */
    Recordable *r;

    /**
     * Creates an uninitialized EventRecorder.
     */
    EventRecorder();

    /**
     * Initializes this EventRecorder.
     * See #EventRecorder.
     */
    void init(const char *eventFile, bool autoSave, const char *frames, ptr<Program> cursorProg, ptr<Texture2D> cursor, ptr<EventHandler> next);

    /**
     * Returns the used to save/restore the framerate and the scene state.
     */
    virtual Recordable *getRecorded() = 0;

    void swap(ptr<EventRecorder> eventRecorder);

private:
    /**
     * The name of a file containing stored events to be replayed, or NULL.
     */
    const char *eventFile;

    /**
     * True to save events in a temporary file at each mouse click and key
     * typed event (useful for saving events if scenario leads to a crash).
     */
    bool autoSave;

    /**
     * The file name format to be used to save the video frames.
     */
    const char *frames;

    /**
     * The width of the cursor texture #cursor.
     */
    int cursW;

    /**
     * The height of the cursor texture #cursor.
     */
    int cursH;

    /**
     * The GLSL program used to draw the cursor on replaying videos.
     */
    ptr<Program> cursorProg;

    /**
     * The cursor RGBA texture pixels.
     */
    ptr<Texture2D> cursor;

    /**
     * The cursor texture sampler.
     */
    ptr<UniformSampler> cursorSamplerU;

    /**
     * Rescaling factor used to draw the cursor on the screen.
     */
    ptr<Uniform4f> rescaleU;

    /**
     * Rescaling factor used to draw the cursor on the screen.
     */
    ptr<Uniform3f> correctU;

    /**
     * True if this EventHandler is currently recording events.
     */
    bool isRecording;

    /**
     * True if this EventHandler is currently replaying events.
     */
    bool isPlaying;

    /**
     * True if a video must be saved during replaying.
     */
    bool saveVideo;

    /**
     * The index of the recorded event corresponding to the last saved video
     * frame.
     */
    int lastSavedEvent;

    /**
     * The index of the last saved video frame.
     */
    int lastSavedFrame;

    /**
     * The x cursor position of the last replayed mouse event.
     */
    int savedX;

    /**
     * The x cursor position of the last replayed mouse event.
     */
    int savedY;

    /**
     * The index of the last replayed event.
     */
    unsigned int lastPlayed;

    /**
     * The recorded events.
     */
    vector<Event> recordedEvents;

    /**
     * The EventHandler that must handle the events recorded and replayed by
     * this EventRecorder.
     */
    ptr<EventHandler> next;

    /**
     * Saves the framebuffer content to the given TGA file.
     *
     * @param tga a TGA file name.
     */
    void saveFrame(char *tga);

    /**
     * Saves the recorded events to a temporary file if #autoSave is true.
     */
    void saveEvents();
};

}

#endif


Little Petya is preparing for the first contact with aliens. He knows that alien spaceships have shapes of non-degenerate triangles and there will be exactly 4 ships. Landing platform for a ship can be made of 3 special columns located at some points of a Cartesian plane such that these 3 points form a triangle equal to the ship with respect to rotations, translations (parallel shifts along some vector) and reflections (symmetries along the edges). The ships can overlap after the landing.

Each column can be used to land more than one ship, for example, if there are two equal ships, we don't need to build 6 columns to land both ships, 3 will be enough. Petya wants to know what minimum number of columns will be enough to land all ships.


I am trying to update a User’s Repeater Sub Field ( Multisite ) and it does update but not right!
After some tests am pretty sure that the get_sub_field does not retrieve the value from the sub field! Do you have any idea?
See screenshot below:
—- Versions —-
WP vVersion 4.5.3
My update_sub_field( ‘field_57a98696be65f’,10); // is working when I test with a constant! But the get_sub_field(‘value’) always returns 0!
Could you please debug the value like this:
$repeater_value = get_field('bravo_categories', 'user_'.$user->ID);
Also, could you please try to reproduce the issue on one of the WordPress’ stock themes (like Twenty Sixteen) with other plugins deactivated? If it disappears, then you can activate the theme and plugins one by one to see which one causes the issue.


I solve business problems with software.
Over the past 15 years I have risked significant personal wealth to work on multiple startups. My unique experience allows me to understand a human desire, design a product that satisfies that need - then build and deploy it single-handedly from concept to scale. Sometimes I write about it.
Products I built:
- 2007-2011 Rhythm Music Store: online music store / record label that that sold 80k MP3s online.
- MyNames: an API to register .CO.ZA domains and provision nameservers. Stack: Python, AngularJS.
- Krit.com: a mobile customer feedback tool that used geolocation and SMS to bridge the gap between customers and retail managers
- 2007-2016: iFix (now weFix) Repair Management System tracks 500k repairs and millions in revenues at 36+ branches. Acquired by weFix.
- ...several others.
There are more. Happy to delve into technical details.
Good with people and recruiting.


Let's build a cluster
Let's Build A Swarm.
While there is a rich ecosystem of cluster-aware orchestration solutions in the Docker universe, Docker Engine 1.12 takes the game one step further and ships with a built-in cluster-aware, decentralized orchestration engine called Swarm mode (not to be confused with the standalone Docker Swarm product). This talk will elaborate on the architecture behind Swarm mode as well as common usage scenarios and will conclude with a demo how to set up and utilize a Swarm mode cluster for running and scaling a small sample application.
About the speaker:
Thilo-Alexander Ginkel has had a passion for developing software for more than half of his life. He is working as a freelance software developer, DevOps engineer and architect where his projects frequently get him in touch with the strange new world of Docker containers.
Huge thanks to Protonet (https://protonet.com/de/) for the Location and the drinks.


Blizzard Asks Judge to Forbid Open Source
Now that I've got your attention, don't worry too much: Blizzard Entertainment, the company behind the popular World of Warcraft online game, isn't trying to shut down open source software entirely. But in a recent legal filing (reported by the Virtually Blind weblog), they are asking a judge to take an unusual move: prohibiting a developer from releasing a particular bit of code as open source. Read on for the details.
Here's the backstory: last year a company named MDY Industries filed a suit against Blizzard seeking to have MDY's product Glider declared legal. Glider is a World of Warcraft bot - that is, a program that will automatically play the game for you. Blizzard doesn't like bots, bans them, and wants them out of the game.
Unfortunately, this strategy backfired for MDY: the US District Court ruled in favor of a summary judgment motion on Blizzard's part, and found that MDYwas guilty of copyright violation and tortious interference with Blizzard's business. The case is still in litigation, but the main question now is the size of the damages (or whether MDY can win on appeal, of course).
Blizzard has followed up to their summary judgment with another filing asking for some permanent injunctions, and this is where open source comes in. Along with asking the judge to shut down MDY's servers, forbid further development of the application, and forbid them from helping other bot developers, Blizzard is asking for one more thing:
the injunction should preclude MDY from releasing the Glider source code to third parties, especially those located abroad and over whom it may be difficult or impossible to gain jurisdiction in the United States.... Some Glider users have suggested on internet forums that MDY provide the Glider source code as "open source" software - free for use.
Putting aside the confusion between "free" and "open source," this would at the very least be an unusual remedy. It also shows that there are still edge cases where the ideals of the free software movement (which is certainly a part of the open source movement) bumps up against the legal system. On the one hand, the very existence of licenses like the GPL depends on copyright law. On the other, forbidding the release of code as being too dangerous to a copyright seems like an overstepping bit of prior restraint. However the court rules, though, there's likely to be some precedent here that open source advocates will need to be aware of.


SmallR is a biologist. Her latest research finding is how to change the sex of dogs. In other words, she can change female dogs into male dogs and vice versa.

She is going to demonstrate this technique. Now SmallR has n dogs, the costs of each dog's change may be different. The dogs are numbered from 1 to n. The cost of change for dog i is vi RMB. By the way, this technique needs a kind of medicine which can be valid for only one day. So the experiment should be taken in one day and each dog can be changed at most once.

This experiment has aroused extensive attention from all sectors of society. There are m rich folks which are suspicious of this experiment. They all want to bet with SmallR forcibly. If SmallR succeeds, the i-th rich folk will pay SmallR wi RMB. But it's strange that they have a special method to determine whether SmallR succeeds. For i-th rich folk, in advance, he will appoint certain ki dogs and certain one gender. He will think SmallR succeeds if and only if on some day the ki appointed dogs are all of the appointed gender. Otherwise, he will think SmallR fails.

If SmallR can't satisfy some folk that isn't her friend, she need not pay him, but if someone she can't satisfy is her good friend, she must pay g RMB to him as apologies for her fail.

Then, SmallR hope to acquire money as much as possible by this experiment. Please figure out the maximum money SmallR can acquire. By the way, it is possible that she can't obtain any money, even will lose money. Then, please give out the minimum money she should lose.


Dreamoon has a string s and a pattern string p. He first removes exactly x characters from s obtaining string s' as a result. Then he calculates $$\mathsf{occ}(s',p)$$ that is defined as the maximal number of non-overlapping substrings equal to p that can be found in s'. He wants to make this number as big as possible.

More formally, let's define $$\operatorname{ans}(x)$$ as maximum value of $$\mathsf{occ}(s',p)$$ over all s' that can be obtained by removing exactly x characters from s. Dreamoon wants to know $$\operatorname{ans}(x)$$ for all x from 0 to |s| where |s| denotes the length of string s.


Ancient Egyptians are known to have understood difficult concepts in mathematics. The ancient Egyptian mathematician Ahmes liked to write a kind of arithmetic expressions on papyrus paper which he called as Ahmes arithmetic expression.

An Ahmes arithmetic expression can be defined as:

- "d" is an Ahmes arithmetic expression, where d is a one-digit positive integer;
- "(E1 op E2)" is an Ahmes arithmetic expression, where E1 and E2 are valid Ahmes arithmetic expressions (without spaces) and op is either plus ( + ) or minus ( - ).

On his trip to Egypt, Fafa found a piece of papyrus paper having one of these Ahmes arithmetic expressions written on it. Being very ancient, the papyrus piece was very worn out. As a result, all the operators were erased, keeping only the numbers and the brackets. Since Fafa loves mathematics, he decided to challenge himself with the following task:

Given the number of plus and minus operators in the original expression, find out the maximum possible value for the expression on the papyrus paper after putting the plus and minus operators in the place of the original erased operators.


MVC is a way of organizing an applications code base so that the data (model) and the presentation (view) layers are abstracted away from the logic (controller). Most how-to guides will typically use a web development example when explaining the MVC architecture.
Model refers to the data model and how it is updated. (Typically it is a wrapper around a database). For example, a person model would be a class with the variables first name, last name, age, etc and would include methods for getting and setting these components (as well as saving the data back to the database).
A View is how the data is displayed to the user. In Pythonista, this refers to the UI portion of the app (whether coded or build using the UI editor).
The Controllers handle event requests, contain the logic of the application, and determine how the models work together to make the application run, which in turn calls the views to display the data to the user.
I found an interesting link that tries to explain the concept of MVC using legos if that helps.


Maths and statistics are powerful tools in the world of data science. Math and Statistics are essential because these two fields form the basics of all the machine learning algorithms. And in order to succeed as a Data Scientist, you must know your basics.
Statistics is the use of maths to perform technical analysis on the data to gain meaningful insights. With statistics, we can operate on the data in an information-driven and targeted manner.
So, how is data science different from statistics? While the fields are closely related in the sense that both data scientists and statisticians aim to…
An activation function is an internal state of a neuron that converts an input signal to an output signal.
Basically, a neuron calculates the weighted sum of its inputs, adds the bias, and then inputs the values to the activation function which decides whether it should spit an output or not. Activation functions provide non-linear properties to the neural network. Without the activation function, the output values from the neurons can range between (- infinity) to (+infinity).
We are all aware of feature scaling and why it’s done. Feature scaling is performed during data pre-processing and is done to normalize/standardize…
Polynomial Regression | Data Science | Machine Learning
In this article we will learn what is Bayesian Information Criterion (BIC) and how it is used to choose the degree of a polynomial in a Polynomial Regression.
Sometimes R2 values vary slightly across two different degrees of polynomials. i.e. comparing a R2 score = 88.3% to R2 score = 88.4%. Also, how do we know which is better. R2=88% or R2=90% ?
Let’s study this by creating some dummy data:
Let’s fit the model with Ordinary Least Square (OLS). This package provides detailed stats summary like AIC, BIC etc.
If you fail to plan, you plan to fail. Every project requires planning. Building a machine learning model is no different. In this article, we will learn how to plan your data mining activities and what are the steps you should perform during Exploratory Data Analysis (EDA). This article is not a ‘how-to’ guide but a reference checklist for data analytics professionals. It will provide you with a list of considerations when building a machine learning model.
We have all heard about CRISP-DM: Cross Industry Standard Process for Data Mining. …
Simple linear regression suffers from two major flaws:
One way to tackle these issues is by increasing the model complexity. Model complexity can be increased by using Decision trees and Polynomial regression to represent non-linear relationships.
These algorithms are also prone to overfitting due to increasing complexity. Therefore, in order to represent non-linear functions without overfitting we make use of regularization techniques.
Regularization techniques are used to calibrate the linear/non-linear regression models in order to minimize the adjusted loss function and prevent overfitting.
Advances in smart assistants like Alexa and Google have brought remarkable convenience into our day to day lives. e.g. seeking a quick weather report, translating languages, listening to world news, and today you can also send virtual hugs to your Alexa contacts. With recent Artificial Intelligence (AI) breakthroughs like AlphaGo, IBM Watson, self-driving cars, and many more, the concern of AI taking over our jobs is real.
In this article we will find answers to the following questions:
History: The letter ‘Z’ in z-score stands for Zeta (6th letter of the Greek alphabet) which comes from the Zeta Model that was originally developed by Edward Altman to estimate the chances of a public company going bankrupt. Z-scores exist in zones of probability, which indicates the likelihood of a public company going bankrupt.
Normalization vs Standardization
In this article we will discover answers to the following questions:
First things first, let’s hit up an analogy and try to understand why we need feature scaling. Consider building a ML model similar to making a smoothie. And this time you are making a strawberry-banana smoothie. Now, you have to carefully mix strawberries and bananas to make the smoothie taste good. If you just mix one…
If you are reading this, I am assuming you already know what encoding means. Nevertheless, I’ll give a brief intro for those who are new to data science.
Note — Throughout this article, the terms; features, columns and variables have been used interchangeably.
Data is classified as below:
1. What is Categorical Encoding and why do you need it?
For some Machine Learning algorithms, whenever you have categorical data, you have to convert it to numerical type. The reason you convert categorical columns to numerical is so that the machine learning algorithm is able to understand and process it. …
Machine Learning is an art of teaching computers or letting them learn patterns from the data. This is often done because it helps in making informed decisions and sometimes accurate predictions. I promise that’ all the definition you’ll have in this article.
Always remember, if you can hit upon an analogy of what the unknown concept is like, you are half way there. The rest is to practice explaining to a 6 year old. So let’s take an easy example to understand ML:
Let’s say a baby panda while playing in the forest sees a burning bright…


Here is a 6x6 pastel of Central California. This was a day of mighty clouds that towered over the land. Fun to observe and wonder how to paint. I find clouds somewhat tricky with their bellowing shapes and values. I will keep at it and hopefully get to where I can paint them on a larger surface with confidence.


A famous sculptor Cicasso goes to a world tour!

Well, it is not actually a world-wide. But not everyone should have the opportunity to see works of sculptor, shouldn't he? Otherwise there will be no any exclusivity. So Cicasso will entirely hold the world tour in his native country — Berland.

Cicasso is very devoted to his work and he wants to be distracted as little as possible. Therefore he will visit only four cities. These cities will be different, so no one could think that he has "favourites". Of course, to save money, he will chose the shortest paths between these cities. But as you have probably guessed, Cicasso is a weird person. Although he doesn't like to organize exhibitions, he likes to travel around the country and enjoy its scenery. So he wants the total distance which he will travel to be as large as possible. However, the sculptor is bad in planning, so he asks you for help.

There are n cities and m one-way roads in Berland. You have to choose four different cities, which Cicasso will visit and also determine the order in which he will visit them. So that the total distance he will travel, if he visits cities in your order, starting from the first city in your list, and ending in the last, choosing each time the shortest route between a pair of cities — will be the largest.

Note that intermediate routes may pass through the cities, which are assigned to the tour, as well as pass twice through the same city. For example, the tour can look like that: $$\overline { 1 }, 2, 3, 4, \overline { 5 }, 4, 3, \overline { 2 }, 3, \overline { 4 }$$. Four cities in the order of visiting marked as overlines: [1, 5, 2, 4].

Note that Berland is a high-tech country. So using nanotechnologies all roads were altered so that they have the same length. For the same reason moving using regular cars is not very popular in the country, and it can happen that there are such pairs of cities, one of which generally can not be reached by car from the other one. However, Cicasso is very conservative and cannot travel without the car. Choose cities so that the sculptor can make the tour using only the automobile. It is guaranteed that it is always possible to do.


//
//  QMTVReusableView.h
//  SmallAutoLayout_Example
//
//  Created by 李阳 on 4/2/2018.
//  Copyright © 2018 BetrayalPromise. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface HoverReusableView : UICollectionReusableView

@end


Bessie has way too many friends because she is everyone's favorite cow! Her new friend Rabbit is trying to hop over so they can play!

More specifically, he wants to get from $$$(0,0)$$$ to $$$(x,0)$$$ by making multiple hops. He is only willing to hop from one point to another point on the 2D plane if the Euclidean distance between the endpoints of a hop is one of its $$$n$$$ favorite numbers: $$$a_1, a_2, \ldots, a_n$$$. What is the minimum number of hops Rabbit needs to get from $$$(0,0)$$$ to $$$(x,0)$$$? Rabbit may land on points with non-integer coordinates. It can be proved that Rabbit can always reach his destination.

Recall that the Euclidean distance between points $$$(x_i, y_i)$$$ and $$$(x_j, y_j)$$$ is $$$\sqrt{(x_i-x_j)^2+(y_i-y_j)^2}$$$.

For example, if Rabbit has favorite numbers $$$1$$$ and $$$3$$$ he could hop from $$$(0,0)$$$ to $$$(4,0)$$$ in two hops as shown below. Note that there also exists other valid ways to hop to $$$(4,0)$$$ in $$$2$$$ hops (e.g. $$$(0,0)$$$ $$$\rightarrow$$$ $$$(2,-\sqrt{5})$$$ $$$\rightarrow$$$ $$$(4,0)$$$).

Here is a graphic for the first example. Both hops have distance $$$3$$$, one of Rabbit's favorite numbers.

In other words, each time Rabbit chooses some number $$$a_i$$$ and hops with distance equal to $$$a_i$$$ in any direction he wants. The same number can be used multiple times.


You have a weighted tree, consisting of n vertices. Each vertex is either painted black or is painted red. A red and black tree is called beautiful, if for any its vertex we can find a black vertex at distance at most x.

The distance between two nodes is the shortest path between them.

You have a red and black tree. Your task is to make it beautiful in the minimum number of color swap operations. In one color swap operation, you can choose two vertices of different colors and paint each of them the other color. In other words, if you choose a red vertex p and a black vertex q, then in one operation you are allowed to paint p black and paint q red.

Print the minimum number of required actions.


We've verified that the organization techloset controls the domain:
surge automation demo
Mobile App course
React Native standard folder structure
Progress indicators and spinners for React Native using ReactART
This organization has no public members. You must be a member to see who’s a part of this organization.


I'm doing a gig for Corporate America, working in Cubeville Monday through Friday. After 9 years of working as an independent consultant, this has been a wake up call. If you have more than 5 employees, you might want to stay reading some Guy Kawasaki. Guy came out of Apple and is now a VC. Ten Things to Learn This School Year includes How to Survive a Boring Meeting, How to run a meeting, and How to survive without help. I have needed all of this because most meetings I stare at the window wondering if it would hold me if I tried to leap through it or I spend the whole time smiling (except that tends to peeve everyone in the room). Give it a gander - so at least you know what you are missing.


Custom Query (8144 matches)
Results (115 - 117 of 8144)
|#8097||worksforme||Could Not Connect To Server|
I sign into my Filezilla account just about every day to check on incoming work for my home business. Today, when I tried to login, I received the "Could Not Connect To Server" Error. This is how it looks:
Error: Could not connect to server Status: Waiting to retry... Status: Connecting to 18.104.22.168:21... Error: Connection timed out Trace: CFtpControlSocket::ResetOperation(2114) Trace: CControlSocket::ResetOperation(2114) Error: Could not connect to server
It is vital that I have filezilla up and running for my business. I have checked other tickets for problems connecting to the server and I cannot find the help I need. Please HELP!
|#11570||duplicate||Selection of Multiple Files in FileZilla|
When left mouse-click and dragging a marquee around multiple files the marquee "jumps" to the right cutting off the view of the file names on the left.
|#7875||duplicate||Upper and lower case problems in FileZilla and OS X|
I notices a huge bug in Filezilla 3.5.3 (and older) when using it on Mac OS X: If you edit two files with different capitalization FileZilla get's confused and in worst case it overwrites the wrong file.
Unfortunately I can't reproduce how it overwrites the file but it clearly happens as my style.css and Style.css got messed up two times! And as you can see with the 4 steps I described there seems to be a problem somewhere.
AFAIK the problem doesn't occur in Windows!


You play a computer game. In this game, you lead a party of $$$m$$$ heroes, and you have to clear a dungeon with $$$n$$$ monsters. Each monster is characterized by its power $$$a_i$$$. Each hero is characterized by his power $$$p_i$$$ and endurance $$$s_i$$$.

The heroes clear the dungeon day by day. In the beginning of each day, you choose a hero (exactly one) who is going to enter the dungeon this day.

When the hero enters the dungeon, he is challenged by the first monster which was not defeated during the previous days (so, if the heroes have already defeated $$$k$$$ monsters, the hero fights with the monster $$$k + 1$$$). When the hero fights the monster, there are two possible outcomes:

- if the monster's power is strictly greater than the hero's power, the hero retreats from the dungeon. The current day ends;
- otherwise, the monster is defeated.

After defeating a monster, the hero either continues fighting with the next monster or leaves the dungeon. He leaves the dungeon either if he has already defeated the number of monsters equal to his endurance during this day (so, the $$$i$$$-th hero cannot defeat more than $$$s_i$$$ monsters during each day), or if all monsters are defeated — otherwise, he fights with the next monster. When the hero leaves the dungeon, the current day ends.

Your goal is to defeat the last monster. What is the minimum number of days that you need to achieve your goal? Each day you have to use exactly one hero; it is possible that some heroes don't fight the monsters at all. Each hero can be used arbitrary number of times.


|By Business Wire||
|July 7, 2014 09:16 AM EDT||
Perfecto Mobile, provider of the MobileCloud™ Platform and integrated mobile application quality suite, today announced the launch of a new offering designed to provide integrated development and testing capabilities of mobile applications to Visual Studio and Microsoft Azure users. To celebrate the launch of this offering, new promotional offers are available for MSDN subscribers.
Perfecto Mobile is working with Microsoft Corp. to bring support for C# test scripts to their platform, enabling developers in Visual Studio to write testing scripts in C# and execute across multiple devices managed by Perfecto Mobile. Perfecto Mobile has also provided seamless integration with Team Foundation Server and Visual Studio Online and is working on additional features, including integrating into the build process to automatically provision devices and run tests from a work item, publishing all test results back to Team Foundation Server or Visual Studio Online. This functionality is currently available to all users.
“Moving at the speed of mobile poses numerous challenges to Dev/Test teams today, and pressure to improve an application’s velocity without impacting quality is only increasing as the mobile market matures,” said Melinda-Carol Ballou, Program Director, Application Life-Cycle Management & Executive Strategies, IDC. “Support for C# and Microsoft Team Foundation Server enables the extensive network of Microsoft developers to take advantage of the combined capabilities for mobile testing with Perfecto Mobile, leveraging synergy across products.”
Additionally, Windows Phone 8.1 is now fully supported by Perfecto Mobile, including several new Nokia Lumia phones running Windows Phone 8.1 that will be released in the coming months.
“We are proud to work with Microsoft to deliver a widely available solution that provides the highest quality of business-critical mobile apps available,” said Eran Yaniv, CEO, Perfecto Mobile. “This joint offering enables enterprise developers and testers to quickly ramp up mobile activities in their existing visual studio environments, leverage existing investment in tools, people, knowledge and processes and all while meeting the release intervals needed to compete in today’s markets.”
“Today's mobile-first development requires testing across many common devices used by consumers and businesses. To deliver high-quality mobile apps, teams need robust mobile testing solutions that address the complexities of multiplatform development in a fragmented mobile market,” said S. Somasegar, Corporate Vice President of Microsoft’s Developer Division. “We are excited to announce that these new offerings provide developers with greater access to integrated, familiar and effective mobile device testing features using Visual Studio, Team Foundation Server and Perfecto Mobile’s mobile application quality suite.”
With this offer, MSDN subscribers can access discounts for public cloud manual testing; details are available here. For Microsoft Azure users who are not MSDN subscribers, Perfecto Mobile will be available through the Microsoft Azure Store with discounts available now through the end of 2014.
More details about these offers and how to get started, please visit http://www.perfectomobile.com/Solutions/MobileCloud_TFS.
About Perfecto Mobile
Perfecto Mobile is transforming the way enterprise organizations go mobile, enabling them to develop, test, deploy and monitor their mobile applications and services and go-to-market with confidence. Perfecto Mobile’s cloud-based MobileCloud™ Platform and end-to-end mobile app quality product suite enables users to remotely access a large selection of real mobile devices connected to local cellular networks around the world and leverage them throughout the mobile application delivery lifecycle – from development, functional and performance testing to monitoring and support. The MobileCloud™ is available either in an enterprise private cloud or a sharable public cloud environment.
More than 1000 customers, including the top Fortune 100/500 across the banking, insurance, retail, telecommunications and media industries rely on Perfecto Mobile to optimize mobile time-to-market, customer engagement, risk mitigation and costs and continuously serve their mobile users with confidence.
SYS-CON Events announced today that Loom Systems will exhibit at SYS-CON's 20th International Cloud Expo®, which will take place on June 6-8, 2017, at the Javits Center in New York City, NY. Founded in 2015, Loom Systems delivers an advanced AI solution to predict and prevent problems in the digital business. Loom stands alone in the industry as an AI analysis platform requiring no prior math knowledge from operators, leveraging the existing staff to succeed in the digital era. With offices in S...
Mar. 23, 2017 08:15 PM EDT Reads: 603
With billions of sensors deployed worldwide, the amount of machine-generated data will soon exceed what our networks can handle. But consumers and businesses will expect seamless experiences and real-time responsiveness. What does this mean for IoT devices and the infrastructure that supports them? More of the data will need to be handled at - or closer to - the devices themselves.
Mar. 23, 2017 07:15 PM EDT Reads: 4,249
DevOps is often described as a combination of technology and culture. Without both, DevOps isn't complete. However, applying the culture to outdated technology is a recipe for disaster; as response times grow and connections between teams are delayed by technology, the culture will die. A Nutanix Enterprise Cloud has many benefits that provide the needed base for a true DevOps paradigm.
Mar. 23, 2017 06:00 PM EDT Reads: 1,266
My team embarked on building a data lake for our sales and marketing data to better understand customer journeys. This required building a hybrid data pipeline to connect our cloud CRM with the new Hadoop Data Lake. One challenge is that IT was not in a position to provide support until we proved value and marketing did not have the experience, so we embarked on the journey ourselves within the product marketing team for our line of business within Progress. In his session at @BigDataExpo, Sum...
Mar. 23, 2017 04:15 PM EDT Reads: 2,428
The taxi industry never saw Uber coming. Startups are a threat to incumbents like never before, and a major enabler for startups is that they are instantly “cloud ready.” If innovation moves at the pace of IT, then your company is in trouble. Why? Because your data center will not keep up with frenetic pace AWS, Microsoft and Google are rolling out new capabilities In his session at 20th Cloud Expo, Don Browning, VP of Cloud Architecture at Turner, will posit that disruption is inevitable for c...
Mar. 23, 2017 03:45 PM EDT Reads: 1,738
SYS-CON Events announced today that Telecom Reseller has been named “Media Sponsor” of SYS-CON's 20th International Cloud Expo, which will take place on June 6–8, 2017, at the Javits Center in New York City, NY. Telecom Reseller reports on Unified Communications, UCaaS, BPaaS for enterprise and SMBs. They report extensively on both customer premises based solutions such as IP-PBX as well as cloud based and hosted platforms.
Mar. 23, 2017 03:30 PM EDT Reads: 1,689
SYS-CON Events announced today that Ocean9will exhibit at SYS-CON's 20th International Cloud Expo®, which will take place on June 6-8, 2017, at the Javits Center in New York City, NY. Ocean9 provides cloud services for Backup, Disaster Recovery (DRaaS) and instant Innovation, and redefines enterprise infrastructure with its cloud native subscription offerings for mission critical SAP workloads.
Mar. 23, 2017 03:30 PM EDT Reads: 1,577
Providing the needed data for application development and testing is a huge headache for most organizations. The problems are often the same across companies - speed, quality, cost, and control. Provisioning data can take days or weeks, every time a refresh is required. Using dummy data leads to quality problems. Creating physical copies of large data sets and sending them to distributed teams of developers eats up expensive storage and bandwidth resources. And, all of these copies proliferating...
Mar. 23, 2017 03:00 PM EDT Reads: 6,179
In recent years, containers have taken the world by storm. Companies of all sizes and industries have realized the massive benefits of containers, such as unprecedented mobility, higher hardware utilization, and increased flexibility and agility; however, many containers today are non-persistent. Containers without persistence miss out on many benefits, and in many cases simply pass the responsibility of persistence onto other infrastructure, adding additional complexity.
Mar. 23, 2017 02:30 PM EDT Reads: 4,068
SYS-CON Events announced today that Cloudistics, an on-premises cloud computing company, has been named “Bronze Sponsor” of SYS-CON's 20th International Cloud Expo®, which will take place on June 6-8, 2017, at the Javits Center in New York City, NY. Cloudistics delivers a complete public cloud experience with composable on-premises infrastructures to medium and large enterprises. Its software-defined technology natively converges network, storage, compute, virtualization, and management into a ...
Mar. 23, 2017 02:30 PM EDT Reads: 1,435
DevOps is often described as a combination of technology and culture. Without both, DevOps isn't complete. However, applying the culture to outdated technology is a recipe for disaster; as response times grow and connections between teams are delayed by technology, the culture will die. A Nutanix Enterprise Cloud has many benefits that provide the needed base for a true DevOps paradigm. In his Day 3 Keynote at 20th Cloud Expo, Chris Brown, a Solutions Marketing Manager at Nutanix, will explore t...
Mar. 23, 2017 02:30 PM EDT Reads: 2,360
SYS-CON Events announced today that CA Technologies has been named “Platinum Sponsor” of SYS-CON's 20th International Cloud Expo®, which will take place on June 6-8, 2017, at the Javits Center in New York City, NY, and the 21st International Cloud Expo®, which will take place October 31-November 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. CA Technologies helps customers succeed in a future where every business – from apparel to energy – is being rewritten by software. From ...
Mar. 23, 2017 02:15 PM EDT Reads: 1,170
Pentaho has announced orchestration capabilities that streamline the entire machine learning workflow and enable teams of data scientists, engineers and analysts to train, tune, test and deploy predictive models. Pentaho’s Data Integration and analytics platform ends the ‘gridlock’ associated with machine learning by enabling smooth team collaboration, maximizing limited data science resources and putting predictive models to work on big data faster – regardless of use case, industry, or languag...
Mar. 23, 2017 01:00 PM EDT Reads: 2,110
SYS-CON Events announced today that T-Mobile will exhibit at SYS-CON's 20th International Cloud Expo®, which will take place on June 6-8, 2017, at the Javits Center in New York City, NY. As America's Un-carrier, T-Mobile US, Inc., is redefining the way consumers and businesses buy wireless services through leading product and service innovation. The Company's advanced nationwide 4G LTE network delivers outstanding wireless experiences to 67.4 million customers who are unwilling to compromise on ...
Mar. 23, 2017 12:45 PM EDT Reads: 1,673
Keeping pace with advancements in software delivery processes and tooling is taxing even for the most proficient organizations. Point tools, platforms, open source and the increasing adoption of private and public cloud services requires strong engineering rigor - all in the face of developer demands to use the tools of choice. As Agile has settled in as a mainstream practice, now DevOps has emerged as the next wave to improve software delivery speed and output. To make DevOps work, organization...
Mar. 23, 2017 12:30 PM EDT Reads: 1,150


Active Directory Federation Service (ADFS) is a Microsoft software component that provides Single Sign-On (SSO) authorization to users of Windows Server Operating Systems. ADFS enables users to access applications on Windows Server Operating Systems across organizational boundaries using a single set of login credentials.
ADFS enables users from one organization to access applications from partner organizations by using their standard Active Directory credentials (AD). ADFS also allows users to access AD-integrated applications while working remotely via a web interface, using their standard organizational AD credentials.
To connect ADFS and QuestionPro using SAML 2.0, follow the steps below:
Follow the steps below to get the SP certificate and ACS URL from your QuestionPro account:
Follow the steps below to extract the signing certificate from ADFS:
Yes, It is possible to map new users to a specific Business Unit/ Team. You can pass a claim named "teamName" in your SAML assertion containing the Business Unit Name / Team Name from your QuestionPro account which will add new users under that specific Business Unit/ Team. In the following example shown in the screenshot we have used the "Department" field of the user's profile to store the Team Name for the user which will be passed in the SAML assertion:
This feature is available with the following license :


This past week, I had the opportunity to create my own magazine spread using inDesign. As a class, we all used our new knowledge of important design principles to make an aesthetically pleasing and purposeful project to share with our peers and with those who read our blogs.
This is my design:
My audience for this project would be members of the Latter-day Saint church that have either been through the temple or are preparing to go through the temple. For this reason, I kept my design fairly simple and straightforward. I didn’t feel it was appropriate to use large contrasting elements because I was going for a peaceful, serene feeling.
I used elements of repetition in my spread because all of my text is uniform, only interrupted by uniform headings to introduce the next section. I used contrast by making the word “temple” much larger and more pronounced than the rest of the text. This was intentional because the temple is what the talk is all about.
When I was originally creating this spread, I began to randomly choose colors for the text and backgrounds without even thinking about it. I used yellows and bright blues in order to “hold attention” or so I thought. When I took another look, I realized I needed to be more organized in my approach. Using the Adobe Color Wheel tool, I was able to use colors from the first picture and match them with complimenting colors. It gives a much more peaceful affect (which is what I was going for anyway).
I took both of the images in this project myself with my phone. I took the first photo with a lot of empty space around the subject (temple) so that I could zoom in and use the surrounding elements as part of my design. The second photo brings the pop of color that I was originally going for without being too overwhelming.
This project was really eye opening because it allowed me to see what my natural design instincts are and what I need to pay more attention to in future projects.


You are given a string $$$s$$$ of length $$$n$$$. Let's define two operations you can apply on the string:

- remove the first character of the string;
- remove the second character of the string.

Your task is to find the number of distinct non-empty strings that can be generated by applying the given operations on the initial string any number of times (possibly zero), in any order.


Isart and Modsart were trying to solve an interesting problem when suddenly Kasra arrived. Breathless, he asked: "Can you solve a problem I'm stuck at all day?"

We have a tree T with n vertices and m types of ice cream numerated from 1 to m. Each vertex i has a set of si types of ice cream. Vertices which have the i-th (1 ≤ i ≤ m) type of ice cream form a connected subgraph. We build a new graph G with m vertices. We put an edge between the v-th and the u-th (1 ≤ u, v ≤ m, u ≠ v) vertices in G if and only if there exists a vertex in T that has both the v-th and the u-th types of ice cream in its set. The problem is to paint the vertices of G with minimum possible number of colors in a way that no adjacent vertices have the same color.

Please note that we consider that empty set of vertices form a connected subgraph in this problem.

As usual, Modsart don't like to abandon the previous problem, so Isart wants you to solve the new problem.


Laravel Docker Starter
Docker development environment construction package for Laravel application. [for Mac]
- Docker for Mac must be installed.
- composer (If it is not installed, it will be installed at setup time.)
Operation confirmed environment
- macOS Mojave
- Docker Desktop for Mac: 184.108.40.206
- Docker Engine: 18.09.1
- Compose: 1.23.2
Environment to be built
- centos: Latest edition
- Apache: 2.4
- PHP: 7.2
- Laravel: Latest edition
- MySQL: 8.0
laravel-docker/ ├── README.md ├── docker │ ├── app │ │ ├── Dockerfile ... Dockerfile for applications │ │ └── init │ │ ├── .env ... Laravel env file │ │ └── app_setting.sh ... Shell for starting application server │ ├── db │ │ ├── Dockerfile ... Dockerfile for Database │ │ └── conf.d │ │ └── my.cnf ... MySQL configuration file │ └── docker-compose.yml ... The app and db containers are managed by docker-compose. ├── order.sh ... ShellScript to operate Laravel and Docker └── src ... Laravel source and configuration file installation directory
// Download sources git clone https://github.com/rito328/laravel-docker.git // Go to the laravel-docker directory. cd /path/to/laravel-docker // When you start setup, Laravel will be installed and the Docker environment will be launched. sh order.sh setup
!! POINT !!
Since migration and seeding are executed during Laravel setup, initial data can be input by defining these in advance.
When setup is complete, access localhost.
Once setup is done, operation can be controlled by start / stop.
// stop sh order.sh stop // start sh order.sh start
The Laravel project will be installed under
laravel-docker/ └── src └── laravel
The Laravel project mounts from an external volume, so it will be persisted.
sh order.sh setup : Set up Laravel Docker. sh order.sh start : Alias for setup. sh order.sh stop : Stop the container. sh order.sh restart : Reboot the container. sh order.sh destroy : Delete containers and images. sh order.sh conn app : Connect to app container. sh order.sh conn db : Connect to MySQL in db container. sh order.sh help : Display help.
Because it is a starter pack for a troublesome shop, it may be more convenient and the source should be still getting better. Of course, the bad part should be improved. Please send pull request by all means. We welcome your participation.
This package made Laravel easy to try under Docker environment. Since we are also committing some configuration files, we do not recommend deploying these source file sets directly in the production environment.
Have fun Laravel & Docker life!


Vova promised himself that he would never play computer games... But recently Firestorm — a well-known game developing company — published their newest game, World of Farcraft, and it became really popular. Of course, Vova started playing it.

Now he tries to solve a quest. The task is to come to a settlement named Overcity and spread a rumor in it.

Vova knows that there are n characters in Overcity. Some characters are friends to each other, and they share information they got. Also Vova knows that he can bribe each character so he or she starts spreading the rumor; i-th character wants ci gold in exchange for spreading the rumor. When a character hears the rumor, he tells it to all his friends, and they start spreading the rumor to their friends (for free), and so on.

The quest is finished when all n characters know the rumor. What is the minimum amount of gold Vova needs to spend in order to finish the quest?

Take a look at the notes if you think you haven't understood the problem completely.


I love this neon yellow mini skirt matching a white top,
oh, simple but gorgeous and impressed!
The Yellow Cambridge Satchel Company is so adorable!
Oh my god, this neon yellow python Celine box bag is super bright and cute!
This is really a bright season for you to play with the colors, the more acid colors you are in, the more trendy you look like! Here are some street snaps about YELLOW, I've never thought of that yellow can be matched perfectly like this, love them so much. Yellow might be a little bit sharp for me, but I'd like to start with a small yellow bag and a yellow skirt! Oh, let's enjoy the bright season with the pleasant colors!


A parentheses sequence is a string consisting of characters "(" and ")", for example "(()((".

A balanced parentheses sequence is a parentheses sequence which can become a valid mathematical expression after inserting numbers and operations into it, for example "(()(()))".

The balance of a parentheses sequence is defined as the number of opening parentheses "(" minus the number of closing parentheses ")". For example, the balance of the sequence "(()((" is 3.

A balanced parentheses sequence can also be defined as a parentheses sequence with balance 0 such that each of its prefixes has a non-negative balance.

We define the balanced shuffle operation that takes a parentheses sequence and returns a parentheses sequence as follows: first, for every character of the input sequence, we compute the balance of the prefix of the sequence before that character and write those down in a table together with the positions of the characters in the input sequence, for example:

Prefix balance01212321Position12345678Character(()(()))

Then, we sort the columns of this table in increasing order of prefix balance, breaking ties in decreasing order of position. In the above example, we get:

Prefix balance01112223Position18427536Character()(()())

The last row of this table forms another parentheses sequence, in this case "()(()())". This sequence is called the result of applying the balanced shuffle operation to the input sequence, or in short just the balanced shuffle of the input sequence.

You are given a balanced parentheses sequence. Print its balanced shuffle.


This post is written by guest contributor, Grant Hardy.
It is a weighty responsibility to decide how God’s word should be presented to the world, and the Church takes this charge very, very seriously. The recent adjustments to the official standard works include many welcome corrections to the headings of the Doctrine and Covenants, but otherwise the revisions are quite minimal. As Elder Neil L. Andersen explained, “members should not feel that they need to purchase a new set of scriptures . . . Changes to the scriptural text include spelling, minor typographical, and punctuation corrections” (my emphasis). This perhaps makes sense in the case of the King James Version, which continues to be what it has been for the last 400 years, and for the Doctrine and Covenants, where the textual scholarship of the Joseph Smith Papers is ongoing. Yet it represents a lost opportunity for the Book of Mormon in light of Royal Skousen’s completed analysis of textual variants (in six books) and the publication of his reconstruction of the earliest text.


The Crazyflie Swarm is a Networked Control platform designed for students to learn more about control and for researchers that wish to apply their research in practice. Platform development was started during the Summer of 2015 and continues to this day.
Here you will find descriptions on how the platform works, how you can use it, and how you can get involved in developing the platform further!
Frequently Asked Questions
For help with common problems and troubleshooting please see the FAQ.
The Crazyflie Swarm platform is based off of the Crazyflie Nano-quadcopter produced and maintained by Bitcraze. The Crazyflie is completely open-source so we are able to look at and modify any part of the code and customize it to our needs.
Major Platform Components:
Modifying the Platform
- Keyboard Commands
- Changing Radio Channel
- Flight Modes
- Adding a Crazyflie
Future Project Ideas
The whole concept of this Platform is to constantly expand its capabilities. If you are interested in developing this platform further here are some ideas to get you started! Additional details on any of these ideas can be found on the Future Project Ideas page.
- Migrating Swarm Client PID's to Firmware
- Model Development/Verification and Tuning X, Y, and Z Location PID's
- Adding Parameter Support to Swarm Client
- Threading Each USB Radio to speed up Computation
- Developing New Controllers for the Crazyflie (pending Model Development)
- Develop Communications Network Between Crazyflies
- Trilateration Position Estimation using a Swarm
Bitcraze maintains their own wiki on the many Crazyflie systems. If you can't find what you are looking for here, chances are they will have something to help.


Consider a table of size $$$n \times m$$$, initially fully white. Rows are numbered $$$1$$$ through $$$n$$$ from top to bottom, columns $$$1$$$ through $$$m$$$ from left to right. Some square inside the table with odd side length was painted black. Find the center of this square.


Cheers, masking worked. I don't use TTL anyway so its no real loss. Ive had the issue on a previous (550D) housing and the same on this. It also sometimes "crashes" and buttons stop responding and i need to power cycle the primary strobe to get control back.
I may just bypass it completely as above to prevent the problem coming back.
The controller has never been flooded but the housing does get varying amounts of condensation in and this does seem to affect it sometimes when it runs there. No real way around that as im in the tropics, high humidity and no aircon available.


Frequently asked questions around Git and Version Control.
How can I ignore files that have already been committed to the repo?
Git can only ignore files that are untracked - files that haven't been committed to the repository, yet. That's why, when you create a new repository, you should also create a .gitignore file with all the file patterns you want to ignore.
However, of course, not everything goes perfect... and files slip through that you later would like to see ignored.
The Git Cheat Sheet
No need to remember all those commands and parameters: get our popular "Git Cheat Sheet" - for free!
In three steps, you can clean up your repository and make sure your ignored items are indeed ignored:
# Remove the files from the index (not the actual files in the working copy)
$ git rm -r --cached .
# Add these removals to the Staging Area...
$ git add .
# ...and commit them!
$ git commit -m "Clean up ignored files"
Ignoring Committed Files in Tower
In case you are using the Tower Git client, the app does the heavy lifting for you: when trying to ignore a file that is already tracked in Git, Tower will ask if you want to untrack it - so that the ignore rules can do their work.


I have a Qt window with the following flags:
Qt::CustomizeWindowHint |Qt::Tool |Qt::WindowCloseButtonHint |Qt::WindowTitleHint |Qt::MSWindowsFixedSizeDialogHint
On Mac, it has a resizable corner. How can I get rid of it? Specifying
does not help. In fact, with the fixed-size policy the window acts weird when I try to resize - it disappears from foreground and becomes disabled for some reason.
I don't mind dropping to the native API level.


Software Defined Networking (SDN)
With well-established practices around Cloud and Networking, backed by strong expertise across the entire SDN and NFV stack, MBUZZ is a preferred right technology partner for ISVs, OEMs and Service Providers who plan to migrate their infrastructure, systems, equipment and networks to Cloud and SDN/NFV architecture.
Rapid advancements in Software Defined Networking (SDN) and Network Function Virtualization (NFV) technologies have enabled Telecom OEMs and Network Operators to free themselves from the constraints of expensive proprietary hardware and realize the cost savings of open source software running over Commercial Off-the-Shelf (COTS) hardware. However, if the network operators aim to move beyond mere cost savings and progress toward realization of the full potential of SDN & NFV through advanced implementations for Zero Touch Provisioning, cutting-edge VNFs and uniform network fabric, then they must elicit services of an Engineering Service Provider with deep domain expertise.
OUR SERVICES IN THE SDN AREA INCLUDE
- SDN-Xport: Platform agnostic OpenFlow Agent Toolkit : This OpenFlow v1.3 compliant solution integrates with various merchant silicon and NPUs for white box switching solutions.
- We have delivered on OpenFlow enablement of switches and routers.
- SDN Controller enhancements and Plug-in development to manage legacy (non-OpenFlow) network devices.
- SDN Application development and scenario based testing; Controller staging and integration with legacy NMS, cloud management and service provisioning platforms.


/* AUTOMATICALLY GENERATED, DO NOT MODIFY */

/*
 * Schema-defined QAPI/QMP events
 *
 * Copyright (c) 2014 Wenchao Xia
 * Copyright (c) 2015-2018 Red Hat Inc.
 *
 * This work is licensed under the terms of the GNU LGPL, version 2.1 or later.
 * See the COPYING.LIB file in the top-level directory.
 */

#include "qemu/osdep.h"
#include "qemu-common.h"
#include "qapi-emit-events.h"
#include "qapi-events-char.h"
#include "qapi-visit-char.h"
#include "qapi/error.h"
#include "qapi/qmp/qdict.h"
#include "qapi/qobject-output-visitor.h"
#include "qapi/qmp-event.h"

void qapi_event_send_vserport_change(const char *id, bool open)
{
    QDict *qmp;
    QObject *obj;
    Visitor *v;
    q_obj_VSERPORT_CHANGE_arg param = {
        (char *)id, open
    };

    qmp = qmp_event_build_dict("VSERPORT_CHANGE");

    v = qobject_output_visitor_new(&obj);

    visit_start_struct(v, "VSERPORT_CHANGE", NULL, 0, &error_abort);
    visit_type_q_obj_VSERPORT_CHANGE_arg_members(v, &param, &error_abort);
    visit_check_struct(v, &error_abort);
    visit_end_struct(v, NULL);

    visit_complete(v, &obj);
    qdict_put_obj(qmp, "data", obj);
    qapi_event_emit(QAPI_EVENT_VSERPORT_CHANGE, qmp);

    visit_free(v);
    qobject_unref(qmp);
}

/* Dummy declaration to prevent empty .o file */
char qapi_dummy_qapi_events_char_c;


Post time 2014-3-25 02:38:51|Show all posts| Maxthon 18.104.22.1680| Windows 7
Hi dear Maxthon folks,
We are very excited to announce Maxthon for Linux official version 22.214.171.124 is available for downloading.
Please check out the changelog below.
1. Optimized UI to make it look better on low-resolutions, such as 1366*768.
2. Added Favorites button on Tool Bar. Click it to show your favorites and hide it in settings. Then you can hide the Favorites bar when more page room is required.
3. Fixed the issue that some Magic Fill data can not be shown or used.
4. Fixed the duplication of Quick Access tiles on Windows version after login on Linux version.
5. Now if you login, you can see your device on "My Device" page.
Please be one of the first to try this HOT official release. And thank you for your continued support.
* Downloads below for Users who would like to onlyget reminders of official releases 32-bit:
To better and more efficiently solve the problems you meet during the usage, for any suggestions or bug reports, we do hope you may go to 'Product Support' area and report/describe by a new seperate thread for each problem/topic. We will read each thread and update the follow-up status then. Meanwhile, some problems are probably be left out if they are stated in other thread. Thanks very much for your cooperation!


Windows Server 2016, Microsoft's newest server operating system, has the potential to be a big hit with businesses, IT professionals, and users.
Developed alongside Windows 10, the Windows Server team worked closely with the System Center and Azure teams to establish a tightly-knit ecosystem.
Upgrade: Switching from Drupal 6 to Drupal 7, or from Drupal 6 to Drupal 8, or from Drupal 7 to Drupal 8 is an 'upgrade'.
If you want to 'upgrade' your site, go here: Upgrade to Drupal 7 or 8 - Major version change to your current D6 or D7 site Unlike the words 'update' and 'upgrade', which refer to very specific tasks, the word 'migrate' has a broader meaning in that it is used in reference to several different tasks.
Many people offer maintenance plans to help you stay up to date.
The problem with some of these plans is that they offer weekly, monthly, or quarterly updates.
No matter which version your site is currently using, you can update to the latest minor version that is available.
The end result delivers a seamless Microsoft experience from beginning to end; it bridges familiar technologies such as Active Directory and virtualization with modern infrastructure concepts, like containerization, federated services, and cloud-based services.
For the latest information on Windows Server 2016, check this article periodically, as this "living" guide will be updated when Microsoft releases new information about the OS.
CAU automates the software updating process on clustered servers while maintaining availability.
This topic describes scenarios and applications for using CAU, and provides links to content that describes how to integrate CAU into other IT automation and management processes.


Cannabis-infused Pumpkin Pie
- Large Mixing Bowl Or Kitchen Mixer
- Pie Dish
- 8 oz cream cheese softened
- 2 cups canned pumpkin puree
- 1 cup sugar
- 1/4 tsp salt Himalayan is best
- 2 eggs slightly beaten
- 1 cup half and half cream
- 1/3 cup Canna Butter
- 1 tsp vanilla extract
- 1/2 tsp ground cinnamon
- 1/4 tsp ground ginger
- 1/4 tsp nutmeg
- 1 x NINE inch unbaked pastry shell
- 1 cup Cannabis Whipped Cream just because you can! Infused Whip Cream
- Preheat oven to 350 degrees
- Beat cream in a large mixing bowl or kitchen mixer. Add the pumpkin and beat until combined.
- Add the sugar and salt. Beat.
- Add the eggs, half-and-half, and Cannabutter. Beat until combined.
- Beat in the remaining vanilla, cinnamon, and ginger until combined.
- Pour the filling into the pie crust. Bake for 45-50 minutes, or until the center is set.
- Let pie cool and room temperature before topping with whipped cream.


Trust, as a foundation for efficient and sustainable teams, is a recurring topic on that blog. In Beyond Measure, I covered the simple exercise proposed by
You can benchmark your organization on the eight key factors presented in Learning from the neuroscience of trust by answering the 16 questions of the Ofactor Pulse test (I encourage you to read the book and respond to the test when triggered).
Questions are based on observable behaviors, which make them relatively easy to answer. For example, one is: “My leader treats setbacks and mistakes I make as a valuable opportunity to learn and try something new”. From “Strongly Agree” to “Strongly Disagree”, you can find where you stand.
Your overall trust score could push you to dig more, and the full ratings a good idea of where to start investigating the potential changes in your behavior to create the conditions you want.


When Symantec Protection for SharePoint Servers 6.0 is installed in a SharePoint environment with mirrored SQL database servers, the Protection for SharePoint Servers 6.0 console will be inaccessible through the Central Administration page and SPSS 6.0 will not work as expected.
"2011-11-30 11:40:44","(null)","-1","Error","Cannot open
database ""xxxxxxxxx"" requested by the login. The login failed. Login
failed for user 'DOMAIN\username."," at
owningObject) at System.Data.ProviderBase.DbConnectionFactory.GetConnection
(DbConnection owningConnection) at
outerConnection, DbConnectionFactory connectionFactory) at
objectType, String serverName)","DAL: GetSPSSObjectsData","SPSSDal"
This issue is caused by a Defect in Symantec Protection for SharePoint Servers. When a SQL database is configured as the mirrored (secondary) database, access to this database is not allowed. The problem SPSS 6.0 in counters is that it is attempting to access this mirrored SQL database as if it is the primary database.
This issue has been addressed in 6.0.1 build of Symantec Protection for SharePoint Servers, which is currently available. Note, if upgrading to SPSS 6.0.1 is not an option there is a patch that can be applied to the 6.0 build of SPSS. Please contact Support regarding this patch.
Mirrored SQL database servers


τῷ: that one, i.e. Paris. The mention of his name is unnecessary, since the gods have been watching the single-combat.αὖτε: on the other hand. φιλομμειδής: by assimilation for “φιλο-σμει-δης”. See § 12 e.
This text is part of:
Table of Contents:
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 United States License.


Most e-commerce websites provide a way for users to submit website feedback form with additional functionality from front end side. For this functionality, we have added “Website Feedback” extension.
Magento2 Website Feedback extension is developed for providing flexibility to users can submit website feedback from front end side.
It comes with an admin configuration options that can be easily managed through website back end.
Our extension provides flexibility for admin to set website feedback page. This can be managed completely via Magento2 admin. Separate CSS file is created to allow developers to change the look and feel of this section. CSS edits can be done from “GsWebsiteFeedback viewfrontendwebcssgs_websitefeedback.css”
1. Users can submit website feedback from front end side and save in admin side grid.
2. Admin can see website feedback from admin panel
3. Admin manage website feedback page from system configuration.
4. Admin screen to manage (View, Add, Edit, Delete, Change Status, Export) the website feedback submitted.
5. Send Auto Responder email to user once website feedback has been submitted.
6. Submitted Inquiry email send to multiple TO, multiple CC and multiple BCC addresses defined by admin within the comma separated manner. 7. Enable / Disable module from system configuration.
1. Admin can enabled/disabled extension from admin configuration
2. Admin can manage Website feedback module from system configuration.
1. Users can submit website feedback from front end side.
Installation & Configuration Steps : You can find in downloaded file.
URL : http://magento2.greesys.com/modules-demo/
ADMIN URL : http://magento2.greesys.com/modules-demo/greesys_admin/
uname : greesys_admin
pass : [email protected]
Mercifully Note: We refresh new substance like WordPress Themes,
Plugins, PHP Scripts ordinary. In any case, recall that you
ought to never utilize this things in a business site.
Every one of the substance posted here for advancement
and testing reason as it were. We’re not in charge of
any harm, use at your own particular RISK! We highly recommend to buy Website Feedback from the The Developer ( greesys ) website. Thank you.


You will receive 3 points for solving this problem.

Manao is designing the genetic code for a new type of algae to efficiently produce fuel. Specifically, Manao is focusing on a stretch of DNA that encodes one protein. The stretch of DNA is represented by a string containing only the characters 'A', 'T', 'G' and 'C'.

Manao has determined that if the stretch of DNA contains a maximal sequence of consecutive identical nucleotides that is of even length, then the protein will be nonfunctional. For example, consider a protein described by DNA string "GTTAAAG". It contains four maximal sequences of consecutive identical nucleotides: "G", "TT", "AAA", and "G". The protein is nonfunctional because sequence "TT" has even length.

Manao is trying to obtain a functional protein from the protein he currently has. Manao can insert additional nucleotides into the DNA stretch. Each additional nucleotide is a character from the set {'A', 'T', 'G', 'C'}. Manao wants to determine the minimum number of insertions necessary to make the DNA encode a functional protein.


Posted 22 September 2010 - 02:51 AM
Posted 22 September 2010 - 06:44 PM
Posted 25 September 2010 - 02:49 AM
Getting Worked Up, No Need to
Tamagotchi Warnings: aiding the search for genuine products - some good guidelines on what is and what is not worth getting worked up about
Posted 25 September 2010 - 10:47 AM
Posted 05 October 2010 - 07:52 AM
Edited by TamaMum, 05 October 2010 - 02:23 PM.
Posted 11 October 2010 - 03:08 PM
Edited by The Great Pumpkin Charlie Brown, 11 October 2010 - 03:10 PM.
Posted 02 July 2011 - 12:42 PM
It is and the names Jidan and Bandi They sound the same and the V5 That is BANDI'S!!! Come on make youre own Vpets. i hope they do take this to court
That's just horrible, how dare they steal bandai's products and idea! I really hope that Bandai steps up and takes this to court and sues Jidan. Because clearly Bandai has copyrighted all of their tamagotchi's, and to think someone out there is trying to take away and fool consumers out of their money is just frustrating!
Posted 02 July 2011 - 01:22 PM
Please avoid posting replies in topics where the last post was made more than three months ago?


When I started my career as a software developer and published the first production application what I did was staring at logs and look for some fatal errors. It was a monolith application. Every log saying that something’s wrong had to be fixed. ASAP. This approach worked for some time. However, when the scale increased, and I started building microservices, I couldn’t get rid of all of them. Network issues, database failures, and more - it happens all the time.
In Go, we can refer to variables using value or pointers. Sometimes, it’s hard to answer which approach is more suitable. At the first place, you should learn about general rules. Value semantic should be used every time when copying the value make sense in the logic of your code. For example, every value object should be passed by value. If you have a struct Money then it’s possible (and also make sense) to have, at the same time, multiple 10$ in your code.
Slice is the most important data structure in Go. When it comes to performance, slices are going to beat any other data structure. They are simple but powerful. However, there are some gotchas you have to keep in mind. Today, I’ll explain how slices work to help you prevent some hard to find bugs and write better code. In Go, arrays have a fixed size. The length is part of the array’s type.
In the garbage-collected world, we want to keep the GC overhead as little as possible. One of the things we can do is limiting the number of allocations in our application. How to achieve that? There’s sync.Pool which caches allocated but unused items for later reuse. The Pool can become very useful when you have multiple parallel operations that can share the same piece of memory between them. The real power of it is visible when you have frequent allocations and deallocations of the same data structure.
OAuth 2.0 is the industry-standard protocol for authorization. Go has built-in support for this protocol and today we’ll build a simple application. The application will use the Facebook API to authorize a user. If you need to clarify what oauth2 is and how it works you can take a look at the introduction from DigitalOcean. There are some videos as well. The very first step of building our program is creating a new Facebook application.
The varnish is a well-known HTTP accelerator. As the continuation of the GoInPractice series, today I’ll show how you can build a simple (and naive) varnish implementation in Go. Some of the code is reused from Writing a reverse proxy so if you don’t understand something, I recommend taking a look at the blog post. We’ll split our project into a few parts. The first one will be the caching mechanism.
This is the very first time I write a summary of a year. I feel that today is the day I should start doing it and that some digits may be interesting for some people. The biggest change I made this year was changing the blogging platform to Hugo and focused more on Go content. I continued organizing GoCracow meetup. This helped me become a Google Developer Expert in Go category.
You can find a lot of materials about Go (including this blog) but it’s hard to find the best place to start. This article’s goal is to sum up the most valuable materials I found to help others. I focus only on free materials. Fundamentals The Go tour - IMO the absolutely must do. You can try Go without installing it. You’ll learn some basic syntax and concepts step by step, Go by example - if you’re confused how to use a certain part of the language it’s possible you’ll find an example of it on this page.
Some time ago, I found a video called Building a DIY proxy with the net package. I recommend watching it. Filippo Valsorda builds a simple proxy using low-level packages. It’s fun to watch it but I think it’s a bit complicated. In Go, it has to be an easier way so I decided to continue writing series Go In Practice by writing a simple but yet powerful reverse proxy as fast as it’s possible.
Go is perfect for network applications. Its awesome standard library helps a lot in writing such software. In this article, we’ll write a simple TCP scanner in Go. The whole programm will take less than 50 lines of code. Before we’ll go to practice - a little theory. Of course, the TCP is more complicated than I describe but we need just basics. The TCP handshake is three-way. Firstly, the client sends the syn package which signals the beginning of a communication.


Alice is visiting New York City. To make the trip fun, Alice will take photos of the city skyline and give the set of photos as a present to Bob. However, she wants to find the set of photos with maximum beauty and she needs your help.

There are $$$n$$$ buildings in the city, the $$$i$$$-th of them has positive height $$$h_i$$$. All $$$n$$$ building heights in the city are different. In addition, each building has a beauty value $$$b_i$$$. Note that beauty can be positive or negative, as there are ugly buildings in the city too.

A set of photos consists of one or more photos of the buildings in the skyline. Each photo includes one or more buildings in the skyline that form a contiguous segment of indices. Each building needs to be in exactly one photo. This means that if a building does not appear in any photo, or if a building appears in more than one photo, the set of pictures is not valid.

The beauty of a photo is equivalent to the beauty $$$b_i$$$ of the shortest building in it. The total beauty of a set of photos is the sum of the beauty of all photos in it. Help Alice to find the maximum beauty a valid set of photos can have.


// -*- C++ -*- 	$Id: DominantColor.h,v 1.6 2010/08/17 11:25:45 vvi Exp $
/**
   \file DominantColor.h

   \brief Declarations and definitions of class DominantColor

   DominantColor.h contains declarations and definitions of class the DominantColor, which
   is a class that performs sobel edge histogram extraction.

   \author Jorma Laaksonen <jorma.laaksonen@hut.fi>
   $Revision: 1.6 $
   $Date: 2010/08/17 11:25:45 $
   \bug May be some out there hiding.
   \warning Be warned against all odds!
   \todo So many things, so little time...
*/
#ifndef _DominantColor_
#define _DominantColor_

#include "PseudoMPEG7.h"
#include <algorithm>

namespace picsom {

class DominantColor : public PseudoMPEG7 {

 public:

  /** Constructor
      \param img initialise to this image
      \param opt list of options to initialise to
  */
  DominantColor(const string& img = "", const list<string>& opt = (list<string>)0) {
    Initialize(img, "", NULL, opt);
  }

  /** Constructor
      \param img initialise to this image
      \param seg initialise with this segmentation
      \param opt list of options to initialise to
  */
  DominantColor(const string& img, const string& seg,
	      const list<string>& opt = (list<string>)0) {
    Initialize(img, seg, NULL, opt);
  }

  /// This constructor doesn't add an entry in the methods list.
  DominantColor(bool) : PseudoMPEG7(false) {}

  // ~DominantColor();

  virtual Feature *Create(const string& s) const {
    return (new DominantColor())->SetModel(s);
  }

  // copied from PixelBased

  virtual string Name()          const { return "dominantcolor"; }

  virtual string LongName()      const { return "Dominant Color"; }

  virtual string ShortText()     const {
    return "CIE Luv coordinates of two dominant color clusters*"; }

  // NB According to MPEG-7 standard, ought to use CIE Lab space
  // This erraneous behaviour was decided to be kept unchanged
  // to avoid a change in feature vector semantics

  virtual Feature *Initialize(const string& img, const string& seg,
		      segmentfile *s, const list<string>& opt,
		      bool allocate_data=true);

  virtual string Version() const;

  virtual featureVector getRandomFeatureVector() const{
    return vector<float>(6);
  }

  virtual int printMethodOptions(ostream&) const;

  virtual bool ProcessOptionsAndRemove(list<string>&);

protected:

  virtual featureVector CalculateMask(char *mask);

  vector<featureVector >
  GLA(vector<Feature::featureVector> &data,
      int initBins, int finalBins);

  vector<featureVector >
  GLAApproximate(vector<Feature::featureVector> &data,
		 int initBins, int finalBins,int samplecount);

  void update_centers(vector<featureVector> &data, vector<int> &labels,
		      vector<featureVector> &centers, int number_of_means);

  int update_labels(vector<featureVector> &data, vector<int> &labels,
		    vector<featureVector> &centers, int number_of_means);

  featureVector
  determinePerturbation(vector<featureVector> &data,
			vector<int> &labels,int bin);

  float totalDistortion(vector<featureVector> &data,
				      vector<int> &labels,
				      vector<featureVector> &bins);

  int findMaxDistortion(vector<featureVector> &data,
			vector<int> &labels,
			vector<featureVector> &bins);

};

}
#endif

// Local Variables:
// mode: font-lock
// End:


/**
 * @file system_helper.h
 * @author Rastislav Szabo <raszabo@cisco.com>, Lukas Macko <lmacko@cisco.com>,
 *         Milan Lenco <milan.lenco@pantheon.tech>
 * @brief API of helper functions for interaction with the underlying system
 *        for testing purposes.
 *
 * @copyright
 * Copyright 2016 Cisco Systems, Inc.
 *
 * 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.
 */
#ifndef SYSTEM_HELPER_H
#define SYSTEM_HELPER_H

#include <sys/types.h>
#include <stdbool.h>

/**
 * @brief A custom implementation of ::popen that hopefully doesn't
 * suffer from this glibc bug: https://bugzilla.redhat.com/show_bug.cgi?id=1275384.
 * It also enables to communicate with the process through stdin, stdout, stderr.
 */
pid_t sr_popen(const char *command, int *stdin_p, int *stdout_p, int *stderr_p);

/**
 * @brief Print current backtrace to stderr.
 */
void print_backtrace();

/**
 * @brief Assert that the given pointer is non-NULL.
 * In case of failed assertion, print current backtrace to stderr.
 */
void assert_non_null_bt(void *arg);

/**
 * @brief Assert that the given pointer is NULL.
 * In case of failed assertion, print current backtrace to stderr.
 */
void assert_null_bt(void *arg);

/**
 * @brief Assert that the given argument is true.
 * In case of failed assertion, print current backtrace to stderr.
 */
void assert_true_bt(bool arg);

/**
 * @brief Assert that the given argument is false.
 * In case of failed assertion, print current backtrace to stderr.
 */
void assert_false_bt(bool arg);

/**
 * @brief Assert that the two given strings are equal.
 * In case of failed assertion, print current backtrace to stderr.
 */
void assert_string_equal_bt(const char *a, const char *b);

/**
 * @brief Assert that the two given integers are equal.
 * In case of failed assertion, print current backtrace to stderr.
 */
void assert_int_equal_bt(int a, int b);

/**
 * @brief Assert that the two given integers are not equal.
 * In case of failed assertion, print current backtrace to stderr.
 */
void assert_int_not_equal_bt(int a, int b);

/**
 * @brief Reads an entire line from a file, storing the address of the buffer
 * containing the text into *line_p. The buffer is null-terminated and includes
 * the newline character, if one was found.
 * Same like ::getline but uses file descriptor. Furthermore, ::getline was standardized
 * still quite recently and may not exist on many systems.
 */
size_t readline(int fd, char **line_p, size_t *len_p);

/**
 * @brief Tests file (non)existence.
 */
void test_file_exists(const char *path, bool exists);

/**
 * @brief Tests file owner.
 */
void test_file_owner(const char *path, const char *owner);

/*
 * @brief Tests file permissions.
 */
void test_file_permissions(const char *path, mode_t permissions);

/**
 * @brief Tests file content against the given string / regular expression.
 * Prepend the string with exclamation mark to test that the file
 * content does NOT match the supplied string/pattern.
 */
void test_file_content(const char *path, const char *exp_content, bool regex);

/**
 * @brief Compares contents of two files using strcmp().
 */
int compare_files(const char *path1, const char *path2);

/**
 * @brief Executes shell command, tests return value and compares output
 * against the given string / regular expression.
 */
void exec_shell_command(const char *cmd, const char *exp_out, bool regex, int exp_ret);

#endif /* SYSTEM_HELPER_H */


I had a publication almost ready to go, worked great and uploaded on the cloud. I then updated the tools, builder on mac and viewer on iPad with all latest updates (including the Jan 26 update and Jan 17 Folio tools etc) and all MSOs and buttons I had started 'misbehaving'. I re-uploaded everything on cloud again and I get these errors:
- Some buttons became 'untappable' (they work fine on the desktop viewer)
- I have pop up MSO box with text which is triggered by a button - text wont show on iPad but it shows on desktop viewer correctly. If I outline it, it shows on iPad too
- With previous viewer, the video would come up in front of any object when played, including MSOs. Now it seems that you have to put the video in front and cover all your 'play' buttons etc.
Can you tell me if these were planned changes on the workflow or just a mistake on the iPad viewer and planning to be fixed?
Tony, I see this is your first post.
PLEASE read the other threads posted recently. In short, there is a (IMO) very serious bug in the Content Viewer on the iPad.
If you haven't used any new features in the new tools you can roll back to version 17.
FYI I wanted to add couple of other issues in relation to MSOs.
1. I'm creating a simple MSO that is triggered by a button, and it only has two states, one is blank and the other is with a 'popup' box. If the box has a text box that uses 2 coulms or tables the MSO doesnt work. If I make two separate linked-flowing text boxes it works just fine. It seems that there are issues with how the 'textbox' is formatted.
2. Always when i download (update) an app on the viewer on iPad and tap to view it the viewer quits and have to re-launch it again


There exists an island called Arpa’s land, some beautiful girls live there, as ugly ones do.

Mehrdad wants to become minister of Arpa’s land. Arpa has prepared an exam. Exam has only one question, given n, print the last digit of 1378n.

Mehrdad has become quite confused and wants you to help him. Please help, although it's a naive cheat.


1. Diagonal matrices
A matrix A is a diagonal matrix if it is a square matrix with Aij=0 whenever i≠j.
- Prove or disprove: If A and B are diagonal matrices of the same size, so is AB.
Let p(A)=Πi Aii. Prove or disprove: If A and B are diagonal matrices as above, then p(AB) = p(A)p(B).
We need to show that (AB)ij=0 for i≠j (we don't care what happens when i=j). Let i≠j, and compute (AB)ij = ∑k AikBkj = AiiBij + AijBjj = 0, where the first simplification uses the fact that Aik=0 unless i=k (and similarly for Bkj), and the second uses the assumption that i≠j.
Now we care what happens to (AB)ii. Compute (AB)ii = ∑k AikBki = AiiBii. So p(AB) = Πi (AB)ii = ∏i (AiiBii) = (∏i Aii)(Πi Bii) = p(A)p(B).
2. Matrix square roots
- Show that there exists a matrix A such that A≠0 but A²=0.
- Show that if A²=0, there exists a matrix B such that B²=I+A. Hint: What is (I+A)²?
Here is a simple example of a nonzero matrix whose square is 0:
For the second part, the hint suggests looking at (I+A)² = I² + IA + AI + A² = I + 2A (since IA=AI=A and it is given that A²=0). So I+A is almost right, but there is that annoying 2 there. We can get rid of the 2 by setting B instead to I+½A, which gives B² = (I+½A)² = I+A+¼A² = I+A.
3. Dimension reduction
Let A be an n×m random matrix obtained by setting each entry Aij independently to ±1 with equal probability.
Let x be an arbitrary vector of dimension m.
Compute E[||Ax||²], as a function of ||x||, n, and m, where ||x|| = (x⋅x)1/2 is the usual Euclidean length.
Mostly this is just expanding definitions.
The second-to-last step follows because E[AijAik] = 0 when Aij and Aik are independent (i.e., when j≠k) and E[AijAij] = E[(±1)²) = 1.
4. Non-invertible matrices
Let A be a square matrix.
Prove that if Ax=0 for some column vector x≠0, then A-1 does not exist.
Prove that if the columns of A are not linearly independent, then A-1 does not exist.
Prove that if the rows of A are not linearly independent, then A-1 does not exit.
Suppose A-1 exists and that Ax=0 for some nonzero x. Then x = (A-1A)x = A-1(Ax) = A-10 = 0, a contradiction.
Let A⋅i represent the i-th column of A. If the columns of a are not linearly independent, there exist coefficients xi, not all zero, such that ∑ xiA⋅i = 0. But then Ax = ∑ xiA⋅i = 0, where x is the (nonzero) vector of these coefficients. It follows from the previous case that A is not invertible.
Observe that if A has an inverse, then so does its transpose A', since if A-1 exists we have (A-1)'A' = (AA-1)' = I and A'(A-1)' = (A-1A)' = I. If the rows of A are not linearly independent, then neither are the columns of A'; it follows that A' has no inverse, and thus neither does A.


Ports using Python via USES=python are now flavored. All the py3-* ports
have been removed and folded into their py-* master ports.
People using Poudriere 3.2+ and binary packages do not have to do anything.
For other people, to build the Python 3.6 version of, for example,
databases/py-gdbm, you need to run:
# make FLAVOR=py36 install
Number of commits found: 77
Commit History - (may be incomplete: see SVNWeb link above for full details)
graphics/py-pillow: Update to 7.0.0
* Repo-Copy the Pillow 6.2.2 release to graphics/py-pillow6 to retain
backwards compatibility for Python 2 consumers as the Pillow 7.0.0 release
dropped the support for Python 2.
* Apply conditional statements to use either Pillow 7.x or Pillow 6.x for
consumers that can be built for Python 2 or newer.
* Exceptions are ports that can be built only for either Python 2 or
Python 3. For the first case, consumers are just assigned to the
* Also remove Pillow from BUILD_DEPENDS of math/py-PyWavelets as it is not
listed in setup.py as a build dependency  and relax the version
(Only the first 15 lines of the commit message are shown above )


Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Entirely delete a widget which was added but not previously saved? #49
Right now, if you remove a widget it will get moved to the Inactive Widgets “sidebar”. This also goes for widgets that you add but don't ever publish, like if you add a widget to a sidebar and then immediately remove it. This will probably result in the Inactive Widgets sidebar getting filled up with a lot of fragmented widgets which the user would not expect to be saved in the trash, since they were never properly saved to begin with.