text:
Q: Separation of retrieving data and business objects between DAL and BLL Layers I did some research before posting this question. Among other questions or post, one of those is provided below. I could not get a clear mind how to determine..
Business Objects within a Data Access Layer
I have a Repository and the Business Layers call the repository to retrieve the data. For example, say I have the following classes for BLL and DAL:
class BllCustomer
{
    public int CustomerId {get; set;}
    public String Name {get; set;}
    public BllAddress Address {get; set;}
}

class BllAddress
{
     public int AddressId {get; set;}
     public String Street {get; set;}
     public String City {get; set;}
     public String ZipCode {get; set; }
}

class DalCustomer
{
    public int CustomerId {get; set;}
    public String Name {get; set;}
    public int AddressID {get; set;}
}

class DalAddress
{
     public int AddressId {get; set;}
     public String Street {get; set;}
     public String City {get; set;}
     public String ZipCode {get; set; }
}

If the BLL wants to retrieve a Customer object, it would call GetCustomerById(customerId) in DAL.
The following are my concerns I could not get a clear mind:

*

*I cannot see how to determine what object the GetCustomerById in DAL should return? Should it return BllCustomer or DalCustomer?

*Where should be the retrieving (and/or converting to Business object) of the address associated with the customer?
If the DAL returns Dal objects then, the logic to retrieve and fill in the Address can only be in the BLL. If the DAL returns BLL objects, then the logic to retrieve and fill in the Address can be either in the BLL or DAL. Currently the DAL is returning the Business Objects and the logic to fill it in is in the DAL.
From what I read, I guess there is no right or wrong. From the link included above, there are people saying one way and the others are saying the other way. But how do I determine which would works best for my case?
Any help would be appreciated.

A:
I cannot see how to determine what object the GetCustomerById in DAL
  should return? Should it return BllCustomer or DalCustomer?

It should return a DalCustomer object, returning a BllCustomer object will break the single-responsibility principle. You can view the DalCustomer object as the interface or contract consumed by the business layer (or consumer). In effect if it returned a BllCustomer the DAL would have to cater for every business layer object that calls it or could potentially call it.

Where should be the retrieving (and/or converting to Business object)
  of the address associated with the customer?

The conversion should be done in a view model or manager. You need to have a intermediary to call your service or data access component. If you feel the need you can have a conversion in your BllCustomer object. But then when you swap your DAL from MSSQL to Oracle for example your returned object (or interface) must remain the same.
Preferably your business layer should also be independent of your Data Layer. The Business Layer is responsible for your business rules. It is here you will add your validations using a validation framework to enforce your business rules.

A: Your repository should return the BLL or domain object. chances are you don't need a DAL object at all.
public class Customer
{
    public string Name {get; private set;}
    public Customer(string name)
    {
        this.Name = name;
    }
}

public class Repository
{
    public Customer GetCustomer(string id)
    {
        //get data from db
        return new Customer(datarow["name"]);
    }
}

A: Typically, the DAL has no knowledge of the BLL. Think of it this way, a different application with a different BLL could use the same DAL. A Payables application/module and a Receivables app for the same company would share data (clients, charges, payments, etc.). Trying to have one DLL have knowledge of more than one BLL would be very difficult and unnecessary. This would also allow you to change your data storage with no impact on the BLL (as long as you don't break the interfaces).
You now can pass a DAL object to the BLL or you could create a third set of objects: Entity. These would contain just the values to be passed around together. The DAL would reference the entity and interact with your storage/database and the BLL would handle all the logic and reference the DAL.
class EntCustomer
{
    public int CustomerId {get; set;}
    public String Name {get; set;}
    public BllAddress Address {get; set;}
}
class BllCustomer
{
   //reference EntCustomer, DalCustomer and handle business rules/logic
}

class DalCustomer
{
   //reference EntCustomer and interact with data storage
}

A: Your database, along with its entities, should be solely the concern of your data access layer. Your business layer declares requirements via interfaces, and your service layers (Data Access being one of them) will implement. What moves across the layers of your application are Business Objects and only business objects. Every layer will declare its own entities for its own convenience. That will be of no concern to any other layer.
Application Layer may have ViewModels for its own use. DataAccessLayer migh use Entity FrameWork entities and contexts. These as well should be internal to the layer, and not visible to other layers.
Your Service Layers depends on (adds reference to), your business layers, and never the other way around. Your application layers will put things together, plugging in services into your business layer.
In your example, I would go something like this. (this is a very simplistic example just to demonstrate the correct order of dependencies).
namespace BusinessLayer
{
    public enum RecordStatus
    {
        InActive,
        Active,
        Suspended
    }
    public class BllCustomer
    {
        public int CustomerId { get; set; }
        public string Name { get; set; }
        public BllAddress Address { get; set; }
        public RecordStatus Status { get; set; }
    }

    public class BllAddress
    {
        public int AddressId { get; set; }
        public string Street { get; set; }
        public string City { get; set; }
        public string ZipCode { get; set; }
    }
    /// <summary>
    /// Your business layer declares requirements.
    /// </summary>
   public interface CustomerServices
    {
        BllCustomer GetById(int customerId);
    }
}
namespace DataAccessLayer
{
    //I am a simple wrapper. Will translate when necessary from Dataacess datatypes to BusinessLogic datatypes.
    //I am very useful when enums are involved.
   internal class DalCustomer
    {
        public BusinessLayer.BllCustomer Customer { get; init; }
        public int CustomerId { get => Customer.CustomerId; set => Customer.CustomerId = value; }
        public string Name { get => Customer.Name; set => Customer.Name = value; }

        /// <summary>
        /// Translate Sql column's A/I/S string to Enum type declared by our Business Layer.
        /// </summary>
        public string RecordStatus
        {
            get
            {
                switch (Customer.Status)
                {
                    case BusinessLayer.RecordStatus.Active:
                        return "A";
                    case BusinessLayer.RecordStatus.InActive:
                        return "I";
                    case BusinessLayer.RecordStatus.Suspended:
                        return "S";
                    default:
                        return null;
                }
            }
            set
            {
                if (Equals(value, "A"))
                    Customer.Status = BusinessLayer.RecordStatus.Active;
                else if (Equals(value, "S"))
                    Customer.Status = BusinessLayer.RecordStatus.Suspended;
                else
                    Customer.Status = BusinessLayer.RecordStatus.InActive;
            }
        }

    }
   public class CustomerRepository : BusinessLayer.CustomerServices
    {
        private string _connectionString = "from constructor...";
        public BusinessLayer.BllCustomer GetById(int customerId)
        {
            using (var cn = new SqlConnection(_connectionString))
                using(var cm = new SqlCommand(
                    "SELECT c.CustomerId,c.Name,c.Status,a.AddressId,a.Street,a.City,a.ZipCode" +
                    " FROM CUSTOMER c" +
                    " INNER JOIN Address a On c.AddressId = a.AddressId" +
                    " WHERE c.CustomerId = @Id",cn))
            {
                cn.Open();
                cm.Parameters.AddWithValue("@Id", customerId);
                using (var reader = cm.ExecuteReader())
                    if (reader.Read())
                    {
                        var address = new BusinessLayer.BllAddress();
                        //fill address fields ....
                        //....

                        //create BO and wrap it with Data Access entity.
                        var bo = new BusinessLayer.BllCustomer() { Address = address } ;
                        var entity = new DalCustomer() { Customer = bo };
                        //fill entity, will auto fill bo...
                        ///

                        //return Business Object.
                        return bo;
                    }
            }
            return null;
        }
    }
}
namespace ApplicationLayer
{
    public class CustomerViewModel
    {
        public BusinessLayer.CustomerServices CustomerServices { get; } = new DataAccessLayer.CustomerRepository();

        public BusinessLayer.BllCustomer Customer { get; set; }

    }
}

A: Function before nomenclature
There is a bit of name interpretation going on here. I suspect you may have gotten things twisted around and are actually missing an additional DTO class.
You have your classes a name, and are now asking us where you should use these classes, based on the name you arbitrarily gave them. That's doing things the wrong way around.

*

*First you need to know where you're looking (which interaction between which components).

*Then you decide to create a DTO to facilitate data transfer between them.

*Then you name your class after the data it contains.

It makes no sense to name a class and decide its content without knowing where it is going to be used.

DTOs are inbetween layers
Every layer deals with two kinds of objects: the ones they expose, and the ones they consume from their own dependency. Using a common naming scheme:
 DATABASE
    |
    |  Entity
    V
   DAL
    |
    |  Data object
    V
   BLL
    |
    |  Domain/business object
    V
   WEB
    |
    |  (View)Model or response object
    V
WEB REQUEST

So, the DAL consumes entities (from the database) and exposes data objects (to its consumer, in this case the BLL).
In turn, the BLL consumes the data objects (from the DAL) and returns business objects (to its consumer, in this case the WEB project)
I infer that you are using the "DAL" classes as your actual entities. If you weren't using them as entities, I don't think you would've posted the question as the "DAL" classes would then obviously have no use except to act as the returned type from your DAL repositories - which would preclude the need for your question. Correct me if I'm wrong.
But if DalCustomer is your entity, then what is BllCustomer? There are two options here:

*

*Either it's the data object, i.e. what you intend to return to the BLL, which means that the name isn't good. The object's name shouldn't account for a specific consumer, since any given layer may have several consumers.

*Or it's the business object, i.e. what you intend to return from the BLL to the WEB project (from my example). In this case, you are actually missing a data object type which is returned from the DAL to the BLL.

Returning entities
From a comment you posted:

In my case, DalCustomer is mirror of the tables in DB. [..] I'm thinking to change DAL to return DalObjects to the BLL.

You're asking whether your DAL should return your entity classes.
The short answer is no. Returning your entities would mean that you fail to encapsulate your layer with its own dto objects, which effectively negates a large portion of the layer's purpose.
From the same comment:

BLL will handle conversion to Business Objs,retrieve and fill in nested obj

Just like how the BLL converts the data it consumes (from other project) into its own object (= the business object); the DAL should be doing the same thing. It should take the database entities and it should convert it into its own object (= the data object).
This whole "convert it into your own DTO class" effectively applies to each and every layer. It is not advised to skip it in a layer. Not that it can't be done, but the consequences are usually heavier than the cost of implementation, so it's better to just do it right the first time.

Dependency inversion
There is one caveat here: when you use dependency inversion, then your DAL does actually return a business object.
I can't delve into dependency inversion fully here (the internet is your friend to learn about that), but the short explanation is that with inverted dependencies, the DAL would consume the business layer, instead of the other way around, and therefore be able to use the business object as a return type.
I infer that your situation is not making use of inverted dependencies, but it seemed relevant to mention in case you read or find other examples where a business object is returned by a DAL.

Naming things based on their layer?
I strongly suggest you move away from naming things after the layer they're from, as I suspect it contributed to getting your wires crossed. Instead, name the class for what it is. It doesn't matter that e.g. the data object and the business object have the same class name, since they're in a different namespace anyway.
namespace MyProject.Data
{
    public class Customer
    {
        // ...
    }
}

namespace MyProject.Business
{
    public class Customer
    {
        // ...
    }
}

Namespaces exists specifically so we don't need to ensure that all our class names are globally unique, as that often becomes a challenge in coming up with either synonyms or superfluous pre/suffixes to keep the names unique.
There are some cases where this means you have to explicitly distinguish between two similarly named classes that are both used in the same file. You can either use their explicit namespaces (which is sufficient if there are only a handful of reference. Or, if it becomes too annoying to do so, you can still opt to locally give them a more distinct name there.
using DataCustomer = MyProject.Data.Customer;
using BusinessCustomer = MyProject.Business.Customer;

public class CustomerMapper
{
    public DataCustomer ToDataObject(BusinessCustomer c)
    {
        // ...
    }

    public BusinessCustomer ToDataObject(DataCustomer c)
    {
        // ...
    }
}

It's better to only use this unique name in files where it matters, instead of prefixing it into the actual class name and then have to deal with the ugly name everywhere.

A: DAL should be independent from BL and BL dependent on DAL. Your UI should only Access data via BL. Its good practice if you return DataTable or DataRow from DAL and then Convert DataTable/DataRow into BL object(s). When your UI needs to access the data it can access from BL. So UI will independent from column name and Database type(SQL Server, Oracle..). This way your UI will totally independent from DAL. Personally I prefer class name like "CustomerBL", Don't use the BL word in the begging of class name.
Below see Sample Code.
//Customer Class
class BllCustomer
{
    public int CustomerId { get; set; }
    public String Name { get; set; }
    public BllAddress Address { get; set; }

    public static BllCustomer GetByCustomerId(int id)
    {
        DataRow dr = DalCustomer.GetByCustomerId(id);
        if (dr == null)
            return null;
        BllCustomer oCust = new BllCustomer();
        oCust.CustomerId = int.Parse(dr["CustomerId"].ToString());
        //Do for other class members and load values

        return oCust;
    }
}

class DalCustomer
{

    public static DataRow GetByCustomerId(int id)
    {
        //Get Data row from Database and return Datarow
        DataRow CustomerRow = GETFROMDATABASE("SELECT * from CUSTOMER");
        return CustomerRow;
    }
}


text:
Q: Pandas read_csv HTTPError: not Found I'm getting an HTTPError: not Found error when using pandas read_csv.
Typing the link into a browser I can access the CSV, when using read_csv it returns HTTP Error, so I know the file and url exists.
Previously, this code was working, but after changing python versions, it stopped. I have a feeling it is something to do with creating the URL / URL request, but cannot determine.
Pandas ver 1.2.5,
Python ver 3.9.12
import pandas as pd

url= r'http://fc3eqrp01:8000/data/SimulationOutputFilesNewModel_ShortTerm/s2outs.csv'
df = pd.read_csv(url)

Traceback (most recent call last):

  File E:\PythontoSQL\Save S2Outs\Save_S2Outs.py:13 in <module>
    df = pd.read_csv(url)

  File ~\AppData\Roaming\Python\Python39\site-packages\pandas\io\parsers.py:610 in read_csv
    return _read(filepath_or_buffer, kwds)

  File ~\AppData\Roaming\Python\Python39\site-packages\pandas\io\parsers.py:462 in _read
    parser = TextFileReader(filepath_or_buffer, **kwds)

  File ~\AppData\Roaming\Python\Python39\site-packages\pandas\io\parsers.py:819 in __init__
    self._engine = self._make_engine(self.engine)

  File ~\AppData\Roaming\Python\Python39\site-packages\pandas\io\parsers.py:1050 in _make_engine
    return mapping[engine](self.f, **self.options)  # type: ignore[call-arg]

  File ~\AppData\Roaming\Python\Python39\site-packages\pandas\io\parsers.py:1867 in __init__
    self._open_handles(src, kwds)

  File ~\AppData\Roaming\Python\Python39\site-packages\pandas\io\parsers.py:1362 in _open_handles
    self.handles = get_handle(

  File ~\AppData\Roaming\Python\Python39\site-packages\pandas\io\common.py:558 in get_handle
    ioargs = _get_filepath_or_buffer(

  File ~\AppData\Roaming\Python\Python39\site-packages\pandas\io\common.py:289 in _get_filepath_or_buffer
    req = urlopen(filepath_or_buffer)

  File ~\AppData\Roaming\Python\Python39\site-packages\pandas\io\common.py:195 in urlopen
    return urllib.request.urlopen(*args, **kwargs)

  File C:\ProgramData\Anaconda3\Lib\urllib\request.py:214 in urlopen
    return opener.open(url, data, timeout)

  File C:\ProgramData\Anaconda3\Lib\urllib\request.py:523 in open
    response = meth(req, response)

  File C:\ProgramData\Anaconda3\Lib\urllib\request.py:632 in http_response
    response = self.parent.error(

  File C:\ProgramData\Anaconda3\Lib\urllib\request.py:561 in error
    return self._call_chain(*args)

  File C:\ProgramData\Anaconda3\Lib\urllib\request.py:494 in _call_chain
    result = func(*args)

  File C:\ProgramData\Anaconda3\Lib\urllib\request.py:641 in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)

HTTPError: Not Found

A: You can try the file:// prefix instead of http or try read_htmlsource. If the csv is located on a server that you need access to, perhaps you need to send in request headers. I'll also add that you could try this approach:
https://stackoverflow.com/a/61110214/8564439.

redpajama_set_name: RedPajamaStackExchange


text:
Q: How to jump to a particular column in SQL Developer table view? Suppose I have a table with 300 columns. I open a table in SQL developer and apply a filter(through UI widget) on one of the first columns. Now, I need to check the value of a particular column for the filtered row(I know the name of the column). At the moment I have to search for the column by scrolling right, but it's tedious. Is there a better approach? I know about CTRL+F but it's only for values in columns, not columns itself as far as I know.

A: No way today.
You can hide the 290 columns you rarely look at however.
Right click on the column header, select Columns, and then remove the ones getting in your way.

I don't need to see these columns 99% of the time...


text:
Q: React Component Giving me unpredictable results So I am a novice in React.js an am making my first component. What this component does is it calculates a future date based on the selected date and the number of days to be added.
The User chooses a date from the first date selector and then enters the number of days to be added to the selected date. Then the second date selector automatically shows the final date.
So as you change the first date or the number of days the final date selector should reflect that.
I tried a lot but I am getting very unpredictable results and it looks very difficult for me to debug
import React, { Component } from 'react';

class DateCalc extends Component {

DateCalcHandler (event) {
    console.log("DateCalc: "+this.state.numberOfDays);
    let selectedDate = new Date(this.refs.date.value);
    console.log("Current Date: "+selectedDate);
    let futureDate = new Date(selectedDate.setDate(selectedDate.getDate()+this.state.numberOfDays));
    futureDate = futureDate.getFullYear() + '-' +
                (("0" + (futureDate.getMonth() + 1)).slice(-2)) + '-' +
                ("0" + futureDate.getDate()).slice(-2);

    console.log(futureDate);
    this.setState({newDate: futureDate});
};

NumberOfDaysChangeHandler (event) {
    console.log("NumberChange: "+this.refs.numberOfDays.value);
    this.setState({numberOfDays: this.refs.numberOfDays.value});
}

constructor(){
    super();
    this.DateCalcHandler = this.DateCalcHandler.bind(this);
    this.NumberOfDaysChangeHandler = this.NumberOfDaysChangeHandler.bind(this);
    let dt = new Date();

    let today = dt.getFullYear() + '-' +
                (("0" + (dt.getMonth() + 1)).slice(-2)) + '-' +
                ("0" + dt.getDate()).slice(-2);

    this.state = {
        date: today,
        newDate: '',
        numberOfDays: 0
    };
}

render(){
    return(
        <div>
            <input type="date" ref="date" name="date" onChange ={this.DateCalcHandler }/>
            <input type="number"
                ref="numberOfDays" name="numberOfDays"
                value = { this.state.numberOfDays }
                onChange = { this.NumberOfDaysChangeHandler }
                placeholder="Enter Number Of Days..."/>
            <input type="date" ref="newDate" name="newDate" value = { this.state.newDate }/>
        </div>
    )

}

}
export default DateCalc;
If I have written any code which is not a best practice feel free to correct me.

A: In your NumberOfDaysChangeHandler you should also be changing numberOfDays value and setting your state. I'm suggesting to move your calculation to another method and trigger it when number of days and date is changing.


text:
Q: DependencyProperty - How to set a step change in value? I created a DependencyProperty  for UserControl that should be in the range of -2 .. 2
When rotating the mouse scroll wheel in the properties window.
The property value changes by one. And I want to value changed by 0.1
How do I set a step change in DependencyProperty?
I work with properties in XAML editor.
 public double Value
        {
            get { return (double)GetValue(BarValueProperty); }
            set { SetValue(BarValueProperty, value); }
        }

        public static readonly DependencyProperty BarValueProperty =
        DependencyProperty.Register("Value", typeof(double), typeof(MeterBar), new FrameworkPropertyMetadata(0.0, FrameworkPropertyMetadataOptions.AffectsRender));

A: When adding the FrameworkPropertyMetadata options into the definition of a DependencyProperty, there is an option to provide a CoerceValueCallback handler. You can change the incomming values in this handler. For complete details, please see the Dependency Property Callbacks and Validation page on MSDN. From the linked page:
public static readonly DependencyProperty CurrentReadingProperty =
    DependencyProperty.Register(
    "CurrentReading",
    typeof(double),
    typeof(Gauge),
    new FrameworkPropertyMetadata(
        Double.NaN,
        FrameworkPropertyMetadataOptions.AffectsMeasure,
        new PropertyChangedCallback(OnCurrentReadingChanged),
        new CoerceValueCallback(CoerceCurrentReading)
    ),
    new ValidateValueCallback(IsValidReading)
);
public double CurrentReading
{
  get { return (double)GetValue(CurrentReadingProperty); }
  set { SetValue(CurrentReadingProperty, value); }
}

...

private static object CoerceCurrentReading(DependencyObject d, object value)
{
    // Do whatever calculation to update your value you need to here
    Gauge g = (Gauge)d;
    double current = (double)value;
    if (current
            <g.MinReading) current = g.MinReading;
    if (current >g.MaxReading) current = g.MaxReading;
    return current;
}


text:
Q: How to deal tasks that are probably not user stories but still need to get done? We have a number of tasks that need to be completed, but are probably not real user stories, or if they are, they are very developer-centric user stories which will never be visible to the end-users. The problem is that because they do not get estimated as a part of a sprint and very little gets done on them. Eventually, it becomes enough of a problem that someone takes time out of a sprint to deal with them, but that affects progress on "official" sprint work, which makes some people a wee bit unhappy.
I've been pushing for making these tasks into official user stories, but no one else seems to like this. How else could I request official recognition for these tasks, so I can allocate full days on them without feeling like I'm affecting the rest of the sprint?
Some examples of the tasks, just to give you an idea:

*

*Write small, custom maven plugins to simplify specific (and widely used, within the organization) build configurations.

*Refactor old project(s) to build with Maven and newer tool set.

*Refactor redundant (across multiple projects) code into independent libraries - could potentially be used by many projects.

A:
I've been pushing for making these tasks into official user stories, but no one else seems to like this.

An important question to ask / answer here is - do these tasks need to be user stories, or do they just need to be in the backlog, given the same consideration as user stories? I'm not a fan of writing a task as a story just for consistency, as (imo) the purpose of a user story is focus on  delivering value to the customer by developing to a customers action. At the end, the customer can test against the user story.
Conversely, a developer task often doesn't need a user action to be tested (e.g. refactoring a large class files into multiple, smaller class files), and it doesn't need to be in a user story to be understood by developers. IMO, keeping user stories and developer tasks independent allows you to track how much time your spending on delivering direct customer value.
But that's probably beside the point, and I'd ask if the real issue is getting management to sign off on project maintenance / improvement tasks? If so, you may need to change your focus slightly.

How else could I request official recognition for these tasks, so I can allocate full days on them without feeling like I'm affecting the rest of the sprint?

The key here is to justify their need. Having a centralized, accepted build process is a very standard Agile practice with very obvious benefits. It will improve productivity and developer engagement, and reduce integration costs.
Conversely,

Refactor redundant (across multiple projects) code into independent libraries - could potentially be used by many projects.

requires some justification as to its value (buzzword there was potentially). If there's real use - e.g. there's duplication between projects - show it. Show the commits that were made. Show the stories they were tied to, and how having to write a routine multiply, maintain it multiply, etc - leads directly to increased time to production.
Refactoring is an important part of professionally handling code. If I can't regularly spend (small amounts of) time refactoring, then the code is on a downward spiral, and I'm looking for another job. Simply put, when you can't expect to refactor code, you're forced to spend excessive amounts of time with up-front architecture considerations (you break the YAGNI rule). If I trust we can re-visit modules in the future to improve them, I can focus on the delivering the simplest working solution possible and getting immediate user feedback.
Developer "stories" matter, and deserve a place in the work-flow. Whether or not to formulate them as a User story is subjective, but don't let that be the focus of the discussion. Get them into the workflow, then worry about how to label them.

A: Thanks for an informative question - for someone like me who has never formally used Scrum as a method for software development.  I am part of a product company - and we went from traditional waterfall to Iterative to what can best be described as Kanban - altho' Kanban by itself is not a software development method.
I am not trying to "sell" Kanban to you - having been around for over 25 years in the software industry, I am very familiar with the challenges involved in changing processes in a software organization!  But I thought I'd share ideas from Kanban which you might have the flexibility to try in your team.
Kanban's key points are to visualize your existing process, limit work-in-progress (limit WIP), establish Pull and improve gradually (evolutionary change rather than revolutionary). Since you are already practicing some of these, the rest might be easy to adopt.
We have - and had - a very similar situation to yours - lot of regular feature development and defect fixing work as part of the regular product enhancements, that needed to go out in a release; interspersed with code refactoring and other Engineering driven tasks - and our challenge was visualizing it for everyone in the company so the CEO and Sales and Marketing knew exactly how much work Engineering was handling, and allow them to weigh in on the priorities of all the work.
When we moved from an iterative process to Kanban, within a couple of iterations, our board looked as shown in the pictures shown below -
Our Dev process was mapped in the Dev lane of the Kanban board -

Our overall Kanban board looked like this, with the last lane being reserved for Engineering driven and other 'hygiene' work -

As you can see, we not only had a Dev lane and a Global/ Engineering items lane, but also some customer interrupts and a planning lane. Each lane also specified how much total work could exist in each lane - the WIP limit for that lane.  Developers would take up (pull) work in the Global task lane whenever they had any spare capacity. Once they pulled it, they would typically finish it before taking on a new user story.
This allowed us to map and visualize our situation exactly as it was - whether we liked it or not, a high-priority customer interrupt did delay or shift work on other items.  Instead of trying to map them as user stories, we mapped each type of work as is - and pushed work out to Staging and Production as it became ready.  The normal process we used was to include some of the engineering stories/ tasks ever 3rd release or thereabouts.
The beauty of this system was that it helped us study the volume of work in each category (Kanban calls it "class of service") and reorganize our board, our process, and the team as we went along. Within one year of adopting Kanban, we made a production release almost every month - which made our Sales and CEO - and our customers very happy of course! And of course, doing this meant that we automatically had 'official sanction' from the CEO and Product Management - recognition that this work was important (but not necessarily urgent) - and needed to be done whenever there was spare capacity available to do it.  Of course, there were times, when with the help of Prod Mgt, some of this work got specifically prioritized due to its urgency.
So, if possible in your environment, I'd suggest that you have a frank discussion within the team - and with any stakeholders that need to be involved - and work out a method that helps you map your current work and process - and helps you arrive at agreement to prioritize some of this work on a regular basis - and package them in the first possible sprint/ release that you can. In the process, you might find yourself doing somethings that are not necessarily "true to Scrum" - but might help you evolve to a better process that allows the team to work much more smoothly than it perhaps might be doing today.
Apologies for a long response, but I hope it helps. And again, this might not be a direct response to your question - but I hope some of these concepts might be useful for your situation.

A: The way I've solved this issue in the past is to just have fun with it.  Make them user stories.  Who's to say what user is actually defined as in that sense?

As an old-timer project, I want to build with Maven, so that I can be built in a single step and better manage my dependencies.

I think this is the best way to solve them.  A huge benefit is that this way it still makes you ask, why?
Why do you need to refactor those old projects?
The why is important for the POs / PMs to actually justify these tasks, and in my opinion, gives your team a valuable insight into these tasks.
YMMV, but I like this approach, and it has worked for my past teams.


text:
Q: How can I convert a non-numeric variable column into two numeric variable columns? Using R, I need help converting a non-numeric column into two numeric ones. I want to split the non-numeric data in column x, with the value before the dash going into one column (Start) and the value after the dash going into another column (End). Then, I want to create a new numeric column containing the difference between the Start and End columns with 1 added to the difference. (The Diff column contains a year count, so from 2011 to 2018 will be eight years.)
I encountered unexpected problems when I tried to do it. First, the x variable displayed as a factor. Second, the data in the Start and End columns were not numeric and when I tried to make them numeric so the Diff calculation could occur, I got a coercion error. Third, I could not get strsplit to work.
I checked stackoverflow solutions for comparable problems, but was unable to find one that presented a solution that worked for me.
The input data is just a very small sample of what is in the actual file
I would prefer a solution that uses dplyr, but am open to other ones.
Input
dput(df)
structure(list(x = c(NA, "1950-1960", "1975-1986", "2011-2018"
)), class = "data.frame", row.names = c(NA, -4L))

Output
x          Start  End   Diff
1950-1960  1950   1960  11
1975-1986  1975   1986  12
2011-2018  2011   2018   8

A: df$Start = as.numeric(unlist(lapply(strsplit(df$x, "-"), `[`, 1)))
df$End   = as.numeric(unlist(lapply(strsplit(df$x, "-"), `[`, 2)))
df$Diff  = df$End - df$Start + 1
df
          x Start  End Diff
1      <NA>    NA   NA   NA
2 1950-1960  1950 1960   11
3 1975-1986  1975 1986   12
4 2011-2018  2011 2018    8

A: G5W's is great for base R, here's a "tidyverse" version:
library(dplyr)
library(tidyr) # separate
df %>%
  filter(!is.na(x)) %>%
  tidyr::separate(x, into = c("Start", "End"), sep = "-", remove = FALSE, convert = TRUE) %>%
  mutate(Diff = End - Start + 1L)
#           x Start  End Diff
# 1 1950-1960  1950 1960   11
# 2 1975-1986  1975 1986   12
# 3 2011-2018  2011 2018    8

A: A quick but inflexible solutions is to grab the years by position using substr():
df$Start <- as.numeric(substr(df$x, 1, 4))
df$End <- as.numeric(substr(df$x, 6, 10))
df$Diff <- df$End - df$Start + 1

df[!is.na(df$Diff), ]
          x Start  End Diff
2 1950-1960  1950 1960   11
3 1975-1986  1975 1986   12
4 2011-2018  2011 2018    8

A: Yet another baseR solution:
df1[, c("Start", "End")] <- do.call(rbind, strsplit(df1$x, "-"))
df1 <- transform(type.convert(df1), Diff = End - Start + 1)

Result
df1
#          x Start  End Diff
#1      <NA>    NA   NA   NA
#2 1950-1960  1950 1960   11
#3 1975-1986  1975 1986   12
#4 2011-2018  2011 2018    8

data
df1 <- structure(list(x = c(NA, "1950-1960", "1975-1986", "2011-2018"
)), class = "data.frame", row.names = c(NA, -4L))

A: base R, easy to read
#your data
x <- c("1950-1960", "1975-1986", "2011-2018")
df <- as.data.frame(x)

#code
df_list <- unlist(apply(df, MARGIN = 1, strsplit, "-"))
new_data <- matrix(df_list, ncol = 2,byrow = T)

#output
output <- cbind(df,new_data)

Output:
          x    1    2
1 1950-1960 1950 1960
2 1975-1986 1975 1986
3 2011-2018 2011 2018


text:
Q: use gitlab.com to deploy to private server I have not been able to figure out if I can use gitlab.com (the website, not a private run version) and their community runners to deploy and run a node.js app to a private server.
What I need to achieve should be pretty simple:
login to server
clone/fetch master
npm install
npm start
This is my first time setting up any CI myself so would love some help


text:
Q: Does Opendaylight Carbon support High Availiability deployment of databroker? I would like to know that if deploy two ODL platform in High Availability mode which shares same DataBroker is possible or not?
If it is, which path should I follow? Thanks.

A: Yes, this is possible in Carbon. The clustering setup is fully documented here; the short version is:

*

*install OpenDaylight on all nodes you want to run in the cluster

*on each node in turn, run
bin/configure_cluster.sh 2 192.168.0.1 192.168.0.2 192.168.0.3

with the node number instead of 2 (so 1 on the first node, 2 on the second node, etc.), and all the nodes' IP addresses instead of 192.168.0.1 192.168.0.2 192.168.0.3;

*start Karaf on each node, and run
feature:install odl-mdsal-clustering

on each one in turn.


text:
Q: validate credentials across multiple collections in mongodb using java A REST API application uses mongodb as the backend database and I have been trying to implement authentication while not familiar with mongodb. The request url uses the client name as identifier so with the credentials (username & password), we can verify the credentials in the db. The client collection and credential collection are linked by the clientID. How can I find the credentials by first finding the ID using the name and then finding the credentials to compare OR I guess just looking at it now, I could query the auth collection directly with the name.
eg. http://localhost:8080/CustomerABC/health/patient/medications
First tried finding the best way to query within Mongo Compass
{
 "from": "client_auth",
 "localField": "clientId",
 "foreignField": "clientId",
 "as": "batch_info",
}

To match records across the 2 collections. But how do I construct the full queries using java:
MongoCollection results =
            mongoTemplate.getDb().getCollection("client_list");
            Bson filter = Filters.eq("name", custName);
            Bson projection =
            Projections.fields(Projections.include("id","clientId"));
            FindIterable<Document> fi =
            results.find(filter).projection(projection).limit(1);
            MongoCursor<Document> cursor = fi.iterator();

            try {
                while(cursor.hasNext()) {
                         ...

The collections:
 client_auth
_id   639a0b0cd5d84dcd5929e40a
 id   163
 client_name "CustomerABC"
 username    "ABCuser"
 passwor     "HQB0iuSjS1"

 clients

 _id 62a25d22be46a7397948cdea
  id      3
  name    "CustomerABC"
  active  1


text:
Q: Android: No Class Def Exception from Dependency Module My application module is using a library module in the same project for various classes. There are no error shown in Android Studio, and when I build, I don't have any errors. But when it tries to access one of my classes from the library, it throws a NoClassDef exception. Does anyone know what I am doing wrong? Logcat output is below.
Manifest for Service (I'm using a custom SDK):
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="com.linear.deviceservice"
    android:versionCode="1"
    android:versionName="1.0"
    android:sharedUserId="android.uid.system" >

    <uses-sdk
        android:minSdkVersion="19"
        android:targetSdkVersion="19"
        tools:ignore="OldTargetApi" />
    <uses-permission android:name="android.permission.SERIAL_PORT"/>

    <application
        android:allowBackup="true">
        <service
            android:name="LinearService"
            android:exported="true"
            android:permission="com.project.permission.DEVICE_SERVICE">
            <intent-filter>
                <action android:name="com.project.deviceservice.BIND"/>
            </intent-filter>
        </service>
    </application>

</manifest>

In my main application:
List<PeripheralDevice> devices =
    mConfigurationManager.getConfiguration().getPeripheralDevices();
/* Send the update message with list of appropriate uris to each service. */
ArrayList<Uri> uris;
/* For each service, get the list of uris for that service. */
for (String scheme : mServices.keySet()) {
    uris = new ArrayList<Uri>();
    for (PeripheralDevice device : devices) {
        if (scheme.equals(device.getUri().getScheme())) {
            uris.add(device.getUri());
        }
    }
    /* Send the update message here. */
    updateDevices(mServices.get(scheme), uris);
}

In my Service:
protected List<IDevice> mDevices = new ArrayList<IDevice>();
...
{
    mDevices = msg.getData().getParcelableArrayList(Messages.DEVICES_KEY);
}

Logcat
12-11 12:24:45.717 2391-2406/com.linear.service E/Parcel: Class not found when unmarshalling: com.project.deviceservice.Device
                                                      java.lang.ClassNotFoundException: com.project.deviceservice.Device
                                                          at java.lang.Class.classForName(Native Method)
                                                          at java.lang.Class.forName(Class.java:251)
                                                          at java.lang.Class.forName(Class.java:216)
                                                          at android.os.Parcel.readParcelableCreator(Parcel.java:2133)
                                                          at android.os.Parcel.readParcelable(Parcel.java:2097)
                                                          at android.os.Parcel.readValue(Parcel.java:2013)
                                                          at android.os.Parcel.readListInternal(Parcel.java:2343)
                                                          at android.os.Parcel.readArrayList(Parcel.java:1703)
                                                          at android.os.Parcel.readValue(Parcel.java:2034)
                                                          at android.os.Parcel.readArrayMapInternal(Parcel.java:2314)
                                                          at android.os.Bundle.unparcel(Bundle.java:249)
                                                          at android.os.Bundle.getParcelableArrayList(Bundle.java:1250)
                                                          at com.project.deviceservice.DeviceService$1.handleMessage(DeviceService.java:50)
                                                          at android.os.Handler.dispatchMessage(Handler.java:98)
                                                          at android.os.Looper.loop(Looper.java:136)
                                                          at android.os.HandlerThread.run(HandlerThread.java:61)
                                                       Caused by: java.lang.NoClassDefFoundError: com/project/deviceservice/Device
                                                          at java.lang.Class.classForName(Native Method)
                                                          at java.lang.Class.forName(Class.java:251)
                                                          at java.lang.Class.forName(Class.java:216)
                                                          at android.os.Parcel.readParcelableCreator(Parcel.java:2133)
                                                          at android.os.Parcel.readParcelable(Parcel.java:2097)
                                                          at android.os.Parcel.readValue(Parcel.java:2013)
                                                          at android.os.Parcel.readListInternal(Parcel.java:2343)
                                                          at android.os.Parcel.readArrayList(Parcel.java:1703)
                                                          at android.os.Parcel.readValue(Parcel.java:2034)
                                                          at android.os.Parcel.readArrayMapInternal(Parcel.java:2314)
                                                          at android.os.Bundle.unparcel(Bundle.java:249)
                                                          at android.os.Bundle.getParcelableArrayList(Bundle.java:1250)
                                                          at com.project.deviceservice.DeviceService$1.handleMessage(DeviceService.java:50)
                                                          at android.os.Handler.dispatchMessage(Handler.java:98)
                                                          at android.os.Looper.loop(Looper.java:136)
                                                          at android.os.HandlerThread.run(HandlerThread.java:61)
                                                       Caused by: java.lang.ClassNotFoundException: Didn't find class "com.project.deviceservice.Device" on path: DexPathList[[directory "."],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
                                                          at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
                                                          at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
                                                          at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
                                                          at java.lang.Class.classForName(Native Method)
                                                          at java.lang.Class.forName(Class.java:251)
                                                          at java.lang.Class.forName(Class.java:216)
                                                          at android.os.Parcel.readParcelableCreator(Parcel.java:2133)
                                                          at android.os.Parcel.readParcelable(Parcel.java:2097)
                                                          at android.os.Parcel.readValue(Parcel.java:2013)
                                                          at android.os.Parcel.readListInternal(Parcel.java:2343)
                                                          at android.os.Parcel.readArrayList(Parcel.java:1703)
                                                          at android.os.Parcel.readValue(Parcel.java:2034)
                                                          at android.os.Parcel.readArrayMapInternal(Parcel.java:2314)
                                                          at android.os.Bundle.unparcel(Bundle.java:249)
                                                          at android.os.Bundle.getParcelableArrayList(Bundle.java:1250)
                                                          at com.project.deviceservice.DeviceService$1.handleMessage(DeviceService.java:50)
                                                          at android.os.Handler.dispatchMessage(Handler.java:98)
                                                          at android.os.Looper.loop(Looper.java:136)
                                                          at android.os.HandlerThread.run(HandlerThread.java:61)
12-11 12:24:45.727 2391-2406/com.linear.service W/dalvikvm: threadid=11: thread exiting with uncaught exception (group=0x41c21ba8)
12-11 12:24:45.727 2391-2406/com.linear.service E/AndroidRuntime: FATAL EXCEPTION: LinearService Messenger
                                                              Process: com.linear.service, PID: 2391
                                                              android.os.BadParcelableException: ClassNotFoundException when unmarshalling: com.project.deviceservice.Device
                                                                  at android.os.Parcel.readParcelableCreator(Parcel.java:2147)
                                                                  at android.os.Parcel.readParcelable(Parcel.java:2097)
                                                                  at android.os.Parcel.readValue(Parcel.java:2013)
                                                                  at android.os.Parcel.readListInternal(Parcel.java:2343)
                                                                  at android.os.Parcel.readArrayList(Parcel.java:1703)
                                                                  at android.os.Parcel.readValue(Parcel.java:2034)
                                                                  at android.os.Parcel.readArrayMapInternal(Parcel.java:2314)
                                                                  at android.os.Bundle.unparcel(Bundle.java:249)
                                                                  at android.os.Bundle.getParcelableArrayList(Bundle.java:1250)
                                                                  at com.project.deviceservice.DeviceService$1.handleMessage(DeviceService.java:50)
                                                                  at android.os.Handler.dispatchMessage(Handler.java:98)
                                                                  at android.os.Looper.loop(Looper.java:136)
                                                                  at android.os.HandlerThread.run(HandlerThread.java:61)

A: Issue was solved by adding:
Bundle data = msg.getData();
data.setClassLoader(IDevice.class.getClassLoader());


text:
Q: Anchor tags not functioning in IE I'm currently doing some cross-browser testing for my portfolio. Upon checking Internet Explorer, I discovered that all of my anchor tags do not function as links when clicked. I feel they are being treated by IE as plain text, with no cursor change upon hovering over (despite being anchor tags with an href attr in the dev tools). All of the links work fine in other browsers (i.e. Chrome, Firefox, Safari), this just seems to be an issue with Internet Explorer.
Note: I'm not using any external libraries. Just some basic CSS and Javascript that I wrote.
An example:

I have about 6 tags similar to this, all in the same situation. Any input is greatly appreciated!
Edit: Here is a link directly to the site: thomasspencer.ca
The links in question are:
1) The 'learn more' text on the landing image
2) All of the photos in the "My Work" and "Personal Projects" sections.
3) The "View Github repository" text under each personal project.
4) The "Let's Talk" link and social media links at the bottom of the page

A: I have found a few mentions that anchor tags without text in them sometimes doesn't work with IE. The solution usually mentioned was just adding a non-breaking space ( ).
EDIT: Think I've cracked it
Your body has been assigned a z-index of -2. This puts it behind the index of the html. If you remove the z-index changes from you body you'll find it works.


text:
Q: C++: Estrutura de dados / Fila Fiz um algorítimo de estrutura de dados. Coloquei todo meu conhecimento nele. Não estou conseguindo achar o erro. Deixo o enunciado do exercício abaixo:

Faça um programa que crie duas filas F1 e F2, de tamanho 10, cada.
  Leia 20 números inteiros e, se o número lido for par, insira-o na fila
  F1 e, se for ímpar, na fila F2. Na sequência, caso o número lido seja
  múltiplo de 3, retirar um elemento da fila F1, armazenando-o em uma
  variável auxiliar e, depois, escreva-o no vídeo e insira-o na fila F2.
  Caso o número lido seja múltiplo de 5, retirar um elemento da fila F2,
  armazenando-o em uma variável auxiliar e, depois, escreva-o no vídeo e
  insira-o na fila F1. Um número pode ser tanto múltiplo de 3 quanto de
  5 e, neste caso, apresente uma mensagem no vídeo e não faça nada nas
  filas, passando para a leitura do próximo número. Pare de ler quando
  já tiverem sido lidos os 20 números ou quando ocorrer overflow ou
  underflow em alguma fila.

int main()
{
    int f=-1, r=-1, f1[10], f2[10], cont=0, val=0, aux=0, tam=9;

do{
    cout << "Informe um valor: " << endl;
        cin >> val;
    cout << " " << endl;

    if(val%2==0){
            if(r==tam){
                cout << "OVERFLOW!" << endl << endl;
                    return 0;
            }else{
                f1[++r]=val;
            }
    }else{
        if(r==tam){
            cout << "OVERFLOW!" << endl << endl;
                return 0;
        }else{
                f2[++r]=val;
        }
    }

    if(val%3==0){
            if(r==f){
                cout << "UNDERFLOW!" << endl << endl;
                    return 0;
            }else{
            aux=f1[f+1];
            f++;
            if(f==r){
                f=r=-1;
            cout << "Valor retirado: " << aux << endl << endl;
            f2[++r]=aux;
            }
            }
    }

    if(val%5==0){
            if(r==f){
                cout << "UNDERFLOW!" << endl << endl;
                    return 0;
            }else{
            aux=f2[f+1];
            f++;
            if(f==r){
                f=r=-1;
            cout << "Valor retirado: " << aux << endl << endl;
            f1[++r]=aux;
            }
            }
    }

    if(val%3==0 && val%5==0){
        cout << "Numero mulitplo de 3 e 5!" << endl << endl;
    }

cont++;
}while(cont < 20);
return 0;
}

A: Para começar, se é um exercício de estruturas de dados então é esperado que se crie um tipo estrutura de fila. Por exemplo,
// Tipo estrutura de fila
struct Queue {
    int iStt ;        // Índice de início
    int iEnd ;        // Índice de fim
    int elems[10] ;   // Elementos na fila
} ;

é suficiente para estruturar. Com isso, você pode definir localmente as variáveis filas Fila F1; e Fila F2; para representar as duas filas. Em C++, pode também criar métodos para a estrutura, possibilitando fácil inicialização, armazenamento, acesso, retirada, etc. Se não for permitido, ao menos deve ter o direito de criar funções que inicializam, acessam e alteram as filas.
Pelo que vi no seu código, o índice usado para indicar posição da fila F1 é usado para indicar o da fila F2 também, o que está errado. Cada fila tem que ter seu índice de início e também seu índice de fim. Só de criar um tipo estrutura de fila, esse problema já é resolvido.
Também recomendo usar nomenclaturas mais intuitivas (por exemplo, é bom índices usarem a letra "i", contadores usarem a letra "c", números temporários usarem "t", coisas assim) e indentação adequada (manter o nível do escopo), ambas medidas visando legibilidade. Muitos professores cobram fortemente esse tipo de coisa.
Alguma dúvida?


text:
Q: How to make Redisson Semaphore auto release I am using RSemaphore to maintain a particular count. Please take a look below:-
RSemaphore sem = redisson.getSemaphore("custid=10");
sem.trySetPermits(10);
  try {
     sem.acquire();
  } catch (InterruptedException e) {
     e.printStackTrace();
  }

  System.out.println(Thread.currentThread().getName() + ": Acquired permit");

  try {
     Thread.sleep(60000);
  } catch (InterruptedException e) {
     // TODO Auto-generated catch block
     e.printStackTrace();
  }

  System.out.println(Thread.currentThread().getName() + ": Releasing permit");
  sem.release();

I am releasing the Semaphore at the end, but sometimes it's possible that my code execution will stop, get terminated or I stop the server because of a particular reason. Then the acquire Semaphore will never get released.
To handle this scenario I want the Semaphore which will release itself automatically after a particular time.

A: You should use PermitExpirableSemaphore as below:
RPermitExpirableSemaphore semaphore =redisson.getPermitExpirableSemaphore("mySemaphore");

// acquire permit with lease time = 2 seconds
String permitId = semaphore.acquire(2, TimeUnit.SECONDS);
// ... Do something
semaphore.release(permitId);

The semaphore will be released automatically after 2 seconds by default.


text:
Q: how to join two (or more) columns recorded in separate files? I have this two files (file1.txt and file2.txt) my wanted output is output12.txt:
file1.txt
1c 2c
1c 2c

file2.txt
1c 2c
1c 2c

output12.txt
1c 2c
1c 2c
1c 2c
1c 2c

how i can do this ? sed pipe cut ?

A: If you want to just append the content of file2.txt after the content of file1.txt and the result is another file (named output12.txt), then you can try the following:
cat file1.txt file2.txt > output12.txt


text:
Q: If $S\subseteq\Bbb R^n$ is rectifiable then its projection $S'$ in $\Bbb R^{n-1}\times\{t\}$ is rectifiable too.
Definition
Let $A$ be a subset of $\Bbb R^n$. We say $A$ has measure zero in $\Bbb R^n$ if for every $\epsilon>0$ there is a covering $Q_1,Q_2,...$ of $A$ by countably many rectangles such that
$$
\sum_{i=1}^\infty v(Q_i)<\epsilon
$$
If this inequality holds, we often say that the total volume of the rectangles $Q_1,Q_2,...$ is less than $\epsilon$.
Theorem
If $S$ is a subset of $\Bbb R^n$ that has measure zero then for any $\epsilon,\delta>0$ it can be covered by countably many closed cubes, each of width less than $\delta$, having total volume less than $\epsilon$.
Proof. See page  152 of Analysis on Manifolds by James Munkres.
Definition
Let $S$ be a bounded set in $\Bbb R^n$. If the constant function $1$ is integrable over $S$, se say that $S$ is rectifiable, and we define $(n-\text{dimensional})$ volume of $S$ by the equaction
$$
v(S):=\int_S 1
$$
Note that this definition agrees with the definition of volume when $S$ is a rectangle.
Theorem
A subset $S$ of $\Bbb R^n$ is rectifiable if and only if $S$ is bounded and $\partial S$ has measure zero.
Proof. See page $112$ of Analysis on Manifolds by James Munkres.

Now studing the proof of change of variables theorem in the text "Analysis on Manifols" by James Munkres it seems that here it is used implicitly the following statement.
Statement
If $S$ is a rectifiable subset of $\Bbb R^{n-1}$ then the projection on $S':=S\cap(\Bbb R^{n-1}\times\{t\})$ on $\Bbb R^{n-1}$ is rectifiable too in $\Bbb R^{n-1}$.
So first of all we observe that $S'$ is rectifiable since $\Bbb R^{n-1}\times\{t\}$ is closed and so $\partial S'\subseteq\Bbb R^{n-1}\times\{t\}$ so that if the last set has measure zero (see here) then $\partial S'$ has measure zero. Then the restriction $\phi$ to $\Bbb R^{n-1}\times\{t\}$ of the projection map $\pi_{\Bbb R^{n-1}}$ of $\Bbb R^{n-1}\times\{t\}$ is a homeomorphism so that $\phi[\partial S']=\partial\big(\phi[S']\big)$ thus to prove the statement we have to prove that $\phi[\partial S']$ has measure zero but unfortunately I don't be able to do this. Indeed  to prove this last thing I imaged that if $S$ is a subset of $\Bbb R^n$ that has measure zero then $S':=\pi_{_{\Bbb R^m}}[S]$ has zero measure in $\Bbb R^m$ for any $m<n$ but unfortunately this seems uncorrect because for example $\Bbb R^{n-1}\times\{t\}$ has measure zero but $\pi_{\Bbb R^{n-1}}\big[\Bbb R^{n-1}\times\{t\}\big]=\Bbb R^{n-1}$ has not measure zero.
To follow for sake of completeness I show the passage of the proof that I don't understand.

So if $S_t$ is rectifiable then by previous lemma $F$ is here integrable and by the additivity property of integrale the last equality holds. So how prove that $S_t$ is rectifiable? So could someone help me, please?


text:
Q: jmeter - How add 2 different product from csv I have problem with my test. I'm doing test for online shop. I want add few different products to basket   In csv file I have products
product 1
product 2
product 3
..........  100
I'm adding  product 1 and then I want add product 2 from next line csv file but Jmeter take as next product 1 one more time .
How add next product from csv file ?
That's my setup
enter image description here

A: Your CSV data should be comma delimited.
This data you can load into the CSV data set config comma seperated

And you can post same data in your respective HTTP request

Hope this helps you :)


text:
Q: Does a Stateless Functional Component equal to a Component which just has a render method? Like the question above:
Stateless Functional Component:
const Comments = props => {
    return (

    );
}

Component which just has a render method:
class Comments extends Component {
    render() {
        return (

        );
    }
}

What's the essence of the two different way? Are they the same and all stateless?

A: Basically, here's the short breakdown:

*

*You will have to use ES6 classes (class MyClass extends Component {}) or (React.createClass()) if:

*

*you need access to the lifecycle methods of your component  (most frequently used ones are componentWillMount, componentDidMount, componentWillUnmount and componentWillReceiveProps. Basically it means you depend on the library to call some functions for you for each instance of your component, depending on what happens in your app.

*your component has direct access to your store and thus holds state (also frequently referred to as smart components or containers). Some people would argue that tying the component the store doesn't necessarily mean it's a 'smart' component. Maybe it just works with props and doesn't really have an internal state of it's own.

*If your component simply takes in props and renders them on the page, then you are dealing with a stateless component (also frequently referred to as dumb components or presentational components). Since the component does nothing on it's own other than showing what it's supposed to show and everything is handed to it using props one can use a pure function to represent it. This can be as simple as your example:
const Comments = props => {
    return (

    );
}

They obviously do not have to be as simple and can be more complex: hold children, consume only part of the props and pass on some of them to the children, pass on props of it's own etc.
If you want truly pure functional components it is advisable that you read up on ES6 Features and get a good handle on those.
Here's a great article (probably one of the best on the topic that has been shared around a lot) from Dan Abramov that can hopefully clear up any confusion.
If your component does nothing more than have a render function and show some content (i.e it is stateless), it is advisable that you use a functional component. Everywhere possible. They are more light-weight and carry less of a footprint that heavier classes do. You can find, which I believe to be, the best article on how to write optimal ES6 React components right here - It's by Grgur Grisogono, one of the top figures on the scene.


text:
Q: what is the default password of Splunk enterprises I have configured splunk from AWS marketplace, I am unable to login using default password.
user name: admin
password: changeme
also i tried below password
SPLUNK-{i-00014d5f17644a8e0}

A: The "changeme" password hasn't been used since Splunk 7.1.
According to the AMI's usage instructions, the password is the text "SPLUNK-" followed by your instance's ID.  Since instance IDs do not contain braces, you might try SPLUNK-i-00014d5f17644a8e0.


text:
Q: Easypermission, the permission native dialog is coming by itself, I didn't execute any function The easypermission is implemented in my app. The behaviour of showing the permission native dialog is on click. In Android 11 and greater the flow is working as it's implemented.
But in Android 10 or less, when the user comes to home screen after the splash screen. The permission dialog automatically occurs. I have searched all the code but no where can find the source of any EasyPermissions.requestPermissions.
How to fix this I can't get any source of the issue to fix.


text:
Q: Javascript - Can't freeze and seal things Why can't I seal and Freeze o.id, o.id.name, o.id.surname respectively?.
var o = Object.defineProperty({}, "id",
          {value: {name:{value:"Eduardo",writable:true,enumerable:true,configurable:true},
               surname:{value:"Valente", writable:true,enumerable:true,configurable:true}},
              writable:true,enumerable:true,configurable:true});
      Object.preventExtensions(o.id);
      console.assert(Object.isExtensible(o.id), "o.id is not extensible");
      Object.seal(o.id);
      console.assert(Object.isSealed(o.id), "o is not sealed");
      console.log(JSON.stringify(Object.getOwnPropertyDescriptor(o, "id")));
      Object.freeze(o.id.name);
      Object.freeze(o.id.surname);
      console.assert(Object.isFrozen(o.id.name), "o.id.name is not frozen");
      console.assert(Object.isFrozen(o.id.surname), "o.id.surname is not frozen");
      console.log(JSON.stringify(Object.getOwnPropertyDescriptor(o, "id")));

      function display(o)
      {
         o["id"]["name"] = "Felipe";
         o["id"]["surname"] = "Badia";
         console.log(o["id"]["name"]);
         console.log(o["id"]["surname"]);
      }

      display(o);

A: You're sealing the property-descriptor-like objects which are the initial values of the o.id and o.value properties.
That doesn't prevent you from re-assigning those properties to point to other values.
Frozen objects have nothing to do with the writability of any properties that may contain them.


text:
Q: indefinite articles before adjectives Is this sentence grammatically and lexically correct?
'For me, foreign language is the stem of a teaching and translating career'

A: In the midwest of the United States, we might replace "stem" with the word "bedrock" or "foundation."  But we might also change the whole thing around a bit and say something like...
I believe that the knowledge of a foreign language is an absolute necessity for a career in language teaching and translation.
However, this changes the entire sentence from a statement to an assertion.  Good luck!

A: The sentence doesn't clearly convey the idea you wish to express.  You should define foreign language--speaking or knowing one?  Also, "stem" is not what we would use.  Foundation has been suggested but I would choose "basis."
"For me, speaking a foreign language is the basis for a teaching and translating career."


text:
Q: Adding Tasks to Rally via Pyral I'm fairly new to Rally and have been testing it out. I've been looking at their python framework for working with their API. Unfortunately, within the documentation I cannot find a way to add tasks.
Has anyone ever worked with this before, or can anyone suggest an easy way to import tasks via the API? Currently I have a full spreadsheet with tasks that follows their csv template for importing data.

A: A Rally Task item must be associated with a WorkProduct (customarily an Artifact like HierarchicalRequirement (aka UserStory), Defect or TestCase). Using the pyral toolkit, once you have your Rally instance, get the object refs for the Workspace, Project and WorkProduct that the task is to be associated with, then populate a Python dict with those items along with the other required Task attributes and throw it at Rally.
Task creation recipe:
[insert your boilerplate code for dealing with command line args, Rally options, etc]
rally = Rally(server, username, password, workspace=workspace, project=project)
artifact_ident = args.pop()  # get the FormattedID of an artifact as the Task relation target
wksp = rally.getWorkspace()
proj = rally.getProject()

artifact = rally.get("UserStory", fetch="FormattedID",
                                  query='FormattedID = "%s"' % artifact_ident,
                                  instance=True)
# for a Task, the Workspace, Project, WorkProduct, Name, State and TaskIndex attributes
# are required. The Workspace, Project and WorkProduct attributes must be supplied as
# valid Rally object references.
info = { "Workspace"   : wksp.ref,
         "Project"     : proj.ref,
         "WorkProduct" : artifact.ref,
         "Name"        : "Scrape vanilla bean",
         "State"       : "Defined",
         "TaskIndex"   : 1,
         "Description" : "With a dull knife, strip material from the vanilla bean"
       }
task = rally.put('Task', info)
print "Created Task: %s  associated with UserStory %s" % (task.FormattedID, artifact.FormattedID)


text:
Q: Telerik HTML5 Viewer Access Denied I periodically receive an access denied error on a Telerik trdx report surfaced with the html5 viewer. I've given everyone permissions to the web site as well as the temp folder used by the cache.  I have a report that calls a stored proc that takes a date and userid as params.  Many people will hit the report with the same date likely at the same time.  The report also has a sql query sourcing a subreport but I don't think that matters for this discussion.  Most of the time the report works fine.  However some people, some times, will get the error below - the last 11 or so digits might change.  Sometimes if they pick another day for the report - the report works.  As far as I can tell, each report viewed for a particular day creates a folder for the cache...and that folder could be reused by other users for the same day.  It also looks like Telerik sets the permissions to the cache folder for this instance of the report to the user running the report.  So if User A selects 2/20/14 and User B select 2/20/14 at the same time, Telerik wants to use the same folder...and the first user is the only one with permissions.  I could be totally off but this is how it looks to me.  Any clarification on how to stabilize the reporting would be appreciated.
An error has occurred.
Access to the path '7.2.13.1016_135907-aa13' is denied

A: As an option please try to create different caches for different users using CacheFactory.CreateFileCache Method (String).
So it could be something like this:
 public class ReportController : ReportsControllerBase
{
    private readonly IUserService _userService;

    public ReportController(IUserService userService)
    {
        _userService = userService;
    }

    protected override IReportResolver CreateReportResolver()
    {
        return new CustomReportResolver();
    }

    protected override ICache CreateCache()
    {
        return Telerik.Reporting.Services.Engine.CacheFactory.CreateFileCache(String.Format("{0}\{1}", cachePath, windowsUserService.GetUser());
    }

}


text:
Q: Why does apt-cache rdepends --installed list uninstalled packages? I'm running apt-cache rdepends to determine which packages are essential on my machine.
For alex, I got the following:
$ apt-cache rdepends alex --installed
alex
Reverse Depends:
    alex:i386

The problem is that alex:i386 is actually not installed. Why would it show up? What am I doing or understanding wrong?

A: This is a bug in apt-cache.
apt-cache rdepends alex shows
alex
Reverse Depends:
  haskell-platform
    alex:i386
  haskell-platform
    alex:i386

alex:i386 isn't part of the reverse-dependency chain (there is no chain here, since --recurse wasn't used); it's shown because it's another solution for the dependency.
Adding --installed filters out the haskell-platform lines, but not the alex:i386 lines...
The next release of apt from the master branch will include a fix for this.


text:
Q: Is it good to perform scraping in server-side web framework(django)? let's consider, I need to provide clients(100+) a service through the website that scrape for a certain data from other sites. Is it good to perform the scraping things in server side or we can simply use client side (js)?
Does it minimize the resource consumption of server?
Expecting if i need to use django or just use js for this web development process?.

A: I recommend you use server-side as your clients may face numerous issues such as network, firewall, etc. Additionally, web scraping can be a time-consuming asynchronous task, so if you are already using the Django framework, I'll probably use Celery or Django-rq as queuing library to push long-running tasks in the queue and periodically check for status.


text:
Q: Sequelize has and belongs to many Is there a way to do a polymorphic self-association with a through table (e.g. Collection has and belongs to many Collections)?
Trying to adapt http://docs.sequelizejs.com/manual/tutorial/associations.html#n-m to this scenario:
// Inside collection.js associate
Collection.belongsToMany(Collection, {
    through: {
        model: models.CollectionItem,
        unique: false,
        scope: {
            collectible: 'collection'
        }
    },
    foreignKey: 'collectibleUid',
    constraints: false
});

Where collectionItem.js would look like
const CollectionItem = sequelize.define("CollectionItem", {
    uid: {
        type: DataTypes.BIGINT,
        primaryKey: true
    },
    collectionUid: {
        type: DataTypes.BIGINT,
        allowNull: false,
        unique: 'collection_item_collectible'
    },
    order: {
        type: DataTypes.INTEGER,
        allowNull: false,
        defaultValue: 0
    },
    collectibleUid: {
        type: DataTypes.BIGINT,
        allowNull: false,
        references: null, // Because the column is polymorphic, we cannot say that it REFERENCES a specific table
        unique: 'collection_item_collectible'
    },
    collectible: {
        type: DataTypes.STRING,
        allowNull: false,
        unique: 'collection_item_collectible'
    }
}, {
    classMethods: {
    }
});

It seems Sequelize wants me to name this differently through yet another join / through table, but that would essentially be creating a new table versus just getting a true hasAndBelongsToMany type relationship.

Error: 'as' must be defined for many-to-many self-associations

A: Try being explicit and add:
as: "CollectionItem"

as does not create a new join table, it just gives the relation a name


text:
Q: React Material UI randomize/remove MUI class names Is it possible to randomize names or remove Mui-classNames?

Like in the image above? (All CSS class names would be jssXXX) Thank you

A: classNames like jssXXX are a result of uglification and will be auto generated by Material UI when the project is built for production mode. e.g. when you run npm run build in case of an app created using create-react-app.
className should be created in following way for Material UI to process it:
import React from 'react';
import { createStyles, Theme, makeStyles } from "@material-ui/core";

const CustomMuiTheme = makeStyles((theme: Theme) => createStyles({
  label: {
    color: red,
  }
});
const theme = CustomMuiTheme();

export const CssClassDemo = () => {
  return (
    <label className={theme.label}>label text</label>
  );
}

Classes created by user only will be uglified. Classes such as MuiGrid-container which are provided by Material UI won't be minified as it gives developers an opportunity to customise these styles.


text:
Q: No module named 'basic_units' I'm trying to run the code below, but I keep getting the same error : "ModuleNotFoundError: No module named 'basic_units'".
import sympy as sym
import math
import numpy as np
import os
import matplotlib.pyplot as plt
from basic_units import radians

fig, ax = plt.subplots(subplot_kw={'projection': 'polar'})
ax.plot([np.pi, np.pi], [0, 10], xunits=radians)

plt.show()

I've seen that used in other code, but I just can't get it to work.
I was trying to make a polar plot with the angles in radians, and this seemed to be the only solution I could find, so I tried to run this test, but I encountered this error

A: basic_units is not a python package, you should have a look for official matplotlib document:

Radian ticks#
Plot with radians from the basic_units mockup example package.
This example shows how the unit class can determine the tick locating,
formatting and axis labeling.
This example requires basic_units.py
import matplotlib.pyplot as plt
import numpy as np

from basic_units import radians, degrees, cos

You could download above source code & put in your project.

A: Did you download basic_units.py file as numpy documentation mentions (https://matplotlib.org/stable/gallery/units/radian_demo.html)? If yes, you have to provide a valid path in the import statement. Now you're trying to import it as a module, but it should be a file. Like:
from .basic_units import radians

or
from my_code.src.basic_units import radians


text:
Q: Is it possible to (re)connect hgsubversion to a manually constructed repository? I am working with a repository whose root has moved around some in its history (started at trunk/, moved to subproject/trunk). Right now I can either use hgsubversion to work with all the history up to the point when it moved to subproject/trunk (see https://bitbucket.org/durin42/hgsubversion/issue/135/move-tracking), or I can use hg convert or rebase to splice together the histories into one cohesive repository.
After splicing and calling hg svn rebuildmeta, hgsubversion is all confused. New revisions in the svn repository are pulled into a branch called "../".
Basically, I'm wondering if it's possible to tell hgsubversion to use a certain svn revision as its reference point, only attempting to sync up the histories from that point forward?
Here is a small test illustrating the issue (sorry for the DOS commands)
C:\hgtest>svnadmin create svnrepo

C:\hgtest>svn co file:///C:/hgtest/svnrepo svncheckout
Checked out revision 0.

C:\hgtest>cd svncheckout

C:\hgtest\svncheckout>mkdir trunk/
The syntax of the command is incorrect.

C:\hgtest\svncheckout>svn mkdir trunk
A         trunk

C:\hgtest\svncheckout>cd trunk

C:\hgtest\svncheckout\trunk>echo "Test file version 1" > testfile.txt

C:\hgtest\svncheckout\trunk>cd ..

C:\hgtest\svncheckout>svn add trunk\testfile.txt
A         trunk\testfile.txt

C:\hgtest\svncheckout>svn ci -m "Original version in trunk configuration"
Adding         trunk
Adding         trunk\testfile.txt
Transmitting file data .
Committed revision 1.

C:\hgtest\svncheckout>svn mkdir subproject
A         subproject

C:\hgtest\svncheckout>svn mv trunk subproject
A         subproject\trunk
D         trunk
D         trunk\testfile.txt

C:\hgtest\svncheckout>svn ci -m "Moved trunk to subproject/trunk"
Adding         subproject
Adding         subproject\trunk
Deleting       trunk

Committed revision 2.

C:\hgtest\svncheckout>echo ". Adding some text to distinguish the subproject/trunk version of this file" >> subproject\trunk\testfile.txt

C:\hgtest\svncheckout>svn ci -m "Final version of testfile.txt"
Sending        subproject\trunk\testfile.txt
Transmitting file data .
Committed revision 3.

C:\hgtest\svncheckout>svn log subproject\trunk\testfile.txt
------------------------------------------------------------------------
r3 | kmahan | 2012-02-17 09:18:23 -0800 (Fri, 17 Feb 2012) | 1 line

Final version of testfile.txt
------------------------------------------------------------------------
r2 | kmahan | 2012-02-17 09:17:40 -0800 (Fri, 17 Feb 2012) | 1 line

Moved trunk to subproject/trunk
------------------------------------------------------------------------
r1 | kmahan | 2012-02-17 09:14:46 -0800 (Fri, 17 Feb 2012) | 1 line

Original version in trunk configuration
------------------------------------------------------------------------

C:\hgtest>hg clone svn://localhost:22222/subproject/trunk hgrepo
[r2] kmahan: Moved trunk to subproject/trunk
[r3] kmahan: Final version of testfile.txt
pulled 2 revisions
updating to branch default
1 files updated, 0 files merged, 0 files removed, 0 files unresolved

C:\hgtest>cd hgrepo

C:\hgtest\hgrepo>dir
 Volume in drive C is OSDisk
 Volume Serial Number is 74C7-4865

 Directory of C:\hgtest\hgrepo

02/17/2012  09:30 AM    <DIR>          .
02/17/2012  09:30 AM    <DIR>          ..
02/17/2012  09:30 AM    <DIR>          .hg
02/17/2012  09:30 AM               104 testfile.txt
               1 File(s)            104 bytes
               3 Dir(s)  1,705,932,423,168 bytes free

C:\hgtest\hgrepo>hg log --follow testfile.txt
changeset:   1:eae92a250a90
tag:         tip
user:        kmahan@b3f284a4-0405-ad4c-b974-dac5aa90a095
date:        Fri Feb 17 17:18:23 2012 +0000
summary:     Final version of testfile.txt

changeset:   0:10c6ad198001
user:        kmahan@b3f284a4-0405-ad4c-b974-dac5aa90a095
date:        Fri Feb 17 17:17:40 2012 +0000
summary:     Moved trunk to subproject/trunk

C:\hgtest>hg clone svn://localhost:22222/trunk -r 1 original-location
[r1] kmahan: Original version in trunk configuration
pulled 1 revisions
updating to branch default
1 files updated, 0 files merged, 0 files removed, 0 files unresolved

C:\hgtest>cd hgrepo

C:\hgtest\hgrepo>hg pull -f ..\original-location
pulling from ..\original-location
searching for changes
warning: repository is unrelated
requesting all changes
adding changesets
adding manifests
adding file changes
added 1 changesets with 0 changes to 1 files (+1 heads)
(run 'hg heads' to see heads, 'hg merge' to merge)

C:\hgtest\hgrepo>hg log
changeset:   2:f968692b6301
tag:         tip
parent:      -1:000000000000
user:        kmahan@b3f284a4-0405-ad4c-b974-dac5aa90a095
date:        Fri Feb 17 17:14:46 2012 +0000
summary:     Original version in trunk configuration

changeset:   1:eae92a250a90
user:        kmahan@b3f284a4-0405-ad4c-b974-dac5aa90a095
date:        Fri Feb 17 17:18:23 2012 +0000
summary:     Final version of testfile.txt

changeset:   0:10c6ad198001
user:        kmahan@b3f284a4-0405-ad4c-b974-dac5aa90a095
date:        Fri Feb 17 17:17:40 2012 +0000
summary:     Moved trunk to subproject/trunk

C:\hgtest\hgrepo>hg rebase -s 0 -d 2
saved backup bundle to C:\hgtest\hgrepo\.hg\strip-backup\10c6ad198001-backup.hg

C:\hgtest\hgrepo>hg log
changeset:   1:ee10af28394f
tag:         tip
user:        kmahan@b3f284a4-0405-ad4c-b974-dac5aa90a095
date:        Fri Feb 17 17:18:23 2012 +0000
summary:     Final version of testfile.txt

changeset:   0:f968692b6301
user:        kmahan@b3f284a4-0405-ad4c-b974-dac5aa90a095
date:        Fri Feb 17 17:14:46 2012 +0000
summary:     Original version in trunk configuration

C:\hgtest\hgrepo>hg svn rebuildmeta

C:\hgtest\hgrepo>hg pull
pulling from svn://localhost:22222/subproject/trunk
[r2] kmahan: Moved trunk to subproject/trunk
Marked branch ../ as closed.
[r3] kmahan: Final version of testfile.txt
no changes found

C:\hgtest\hgrepo>echo "Here's some more text" >> testfile.txt

C:\hgtest\hgrepo>hg ci -m "Test commit from mercurial side"

C:\hgtest\hgrepo>hg glog
o  changeset:   5:a0e38c8fcfaf
|  branch:      ../
|  tag:         tip
|  user:        kmahan@b3f284a4-0405-ad4c-b974-dac5aa90a095
|  date:        Fri Feb 17 17:43:38 2012 +0000
|  summary:     Added new text from the svn side
|
o  changeset:   4:39fe2d8d743c
|  branch:      ../
|  parent:      0:f968692b6301
|  user:        kmahan@b3f284a4-0405-ad4c-b974-dac5aa90a095
|  date:        Fri Feb 17 17:18:23 2012 +0000
|  summary:     Final version of testfile.txt
|
| o  changeset:   3:4a494fcf85f1
|/   branch:      ../
|    parent:      0:f968692b6301
|    user:        kmahan@b3f284a4-0405-ad4c-b974-dac5aa90a095
|    date:        Fri Feb 17 17:17:40 2012 +0000
|    summary:     Moved trunk to subproject/trunk
|
| @  changeset:   2:547ed469c516
| |  user:        Kyle Mahan <kmahan@redacted.com>
| |  date:        Fri Feb 17 09:33:07 2012 -0800
| |  summary:     Test commit from mercurial side
| |
| o  changeset:   1:ee10af28394f
|/   user:        kmahan@b3f284a4-0405-ad4c-b974-dac5aa90a095
|    date:        Fri Feb 17 17:18:23 2012 +0000
|    summary:     Final version of testfile.txt
|
o  changeset:   0:f968692b6301
   user:        kmahan@b3f284a4-0405-ad4c-b974-dac5aa90a095
   date:        Fri Feb 17 17:14:46 2012 +0000
   summary:     Original version in trunk configuration

A: Yes, but it'll be a manual process. You'll need to find the high water mark revision for each branch and record it in the metadata files (the names of which escape me at the moment). At that point, things should mostly work.
Note: this is a theory. I have high confidence that it should work based on my memory of the code, but I've never tested it.

A:
Basically, I'm wondering if it's possible to tell hgsubversion to use a certain svn revision as its reference point, only attempting to sync up the histories from that point forward?

If I understood you correctly, you wanted --startrev option for clone command. From hg help subversion

Sometimes, past repository history is of little or no interest, and
  all one wants is to start from today and work forward. Using
  "--startrev HEAD" causes the initial clone to only convert the latest
  revision; later pulls will convert all subsequent revisions. Please
  note that this only works for single-directory clones


text:
Q: JSF Component IDs ignored when dynamically generating Views I ran into a bit of a problem.
I generate Views dynamically by iterating a list of strings via the c:forEach tag
and then including them via the facelets include tag.
This works fine for building the layout but shows some strange behaviour.
I have a primefaces tabview containing 2 tabs.
For the first Tab (the one that gets initially displayed) the component id is set (eg. tabview:categoryTab) but that's not the case for e.g. the second tab, here I only get tabview: for the component id (but it actually should be tabview:usrTab)
Why does JSF override the id I set for the second Tab? Am I missing some crucial information from the spec?
I use JSF 2 with Primefaces 3.6 (snapshot build)
(And yes, I use the snapshot build on purpose and have tested this with stable PF releases as well but the same behaviour occurs)

edit
Code:
admin.xhtml
<ui:composition template="/templates/commonLayout.xhtml">
    <ui:define name="content">

            <h:outputText value="Verwaltung" />

                <c:forEach items="#{adminTabs}" var="tab">
                    <ui:include src="#{tab}" />
                </c:forEach>

    </ui:define>
</ui:composition>

catTab.xhtml
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:p="http://primefaces.org/ui"
    xmlns:ui="http://java.sun.com/jsf/facelets">

            ....

</ui:composition>

usrTab.xhtml
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:p="http://primefaces.org/ui"
    xmlns:ui="http://java.sun.com/jsf/facelets">

            ....

</ui:composition>

testTab.xhtml
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:p="http://primefaces.org/ui"
    xmlns:ui="http://java.sun.com/jsf/facelets">

            ....

</ui:composition>

ContentProvider.java
 public class ContentProvider {
    ....

    @Produces
    @Named("adminTabs")
    public List<String> getTabs(){
        List<String> components = new ArrayList<String>();
        components.add("/templates/tabs/catTab.xhtml");
        components.add("/templates/tabs/usrTab.xhtml");
        components.add("/templates/tabs/testTab.xhtml");
        return components;
    }

    ....

}

This gets generated:

Categories

TestTab

Benutzer und Rollen

So, to reiterate: Only the id for the first tab is retained, the ids for the other tabs are generated despite being set in the xhtml code...

A: I ran into something very similar with Richfaces 4 and JSF 2. I managed to hack around it by including an EL expression in the id attribute. For me
<h:form id="staticName">

was being rendered into
<form id="j_idblah>

but once I did
<h:form id="#{_objectInContext}">

it began rendering properly. Pretty hacky, but for now it'll work. Good luck!!

A: I ran into the same problem when including facelets with a c:forEach loop.
What worked for me was specifying the Ids as EL-Constants: id="#{'address_street'}"


text:
Q: Allow \listoffigures captions to break across pages I'm using the command \listoffigures to list all figure captions after the contents page. Many of my figure captions are quite long and as a result LaTeX is placing 2 captions on a page with a large gap in between them. I would like to prevent these gaps by allowing figure captions to be split across pages just like normal text would be - how can I do this? I am aware of the short caption option with \caption[short]{long} for long captions but this is not appropriate for my purposes.
Minimum example:
\documentclass{article}
\usepackage{blindtext}
\usepackage{capt-of}

\begin{document}

\listoffigures
\newpage
\centering

\section{Section 1}
\rule{0.5\linewidth}{0.5\linewidth}
\captionof{figure}{\blindtext}

\section{Section 2}
\rule{0.5\linewidth}{0.5\linewidth}
\captionof{figure}{\blindtext}

\section{Section 3}
\rule{0.5\linewidth}{0.5\linewidth}
\captionof{figure}{\blindtext}

\section{Section 4}
\rule{0.5\linewidth}{0.5\linewidth}
\captionof{figure}{\blindtext}

\end{document}

This creates an analogous problem to the one I have: in the list of figures, the third figure legend starts on a new page leaving a large space at the end of the second figure legend (bottom of page 1). How can I force the third figure legend to start on page 1 and finish on page 2 like normal text?

A: LaTeX sets \interlinepenalty to the maximum value, 10000 while setting each caption in the LOF, if you locally disable  \interlinepenalty by defining it to be a scratch register, so that the value set is ignored then  page breaking happens as usual.

\documentclass{article}
\usepackage{blindtext}
\usepackage{capt-of}

\begin{document}

{\countdef\interlinepenalty255
\listoffigures

}
\newpage
\centering

\section{Section 1}
\rule{0.5\linewidth}{0.5\linewidth}
\captionof{figure}{\blindtext}

\section{Section 2}
\rule{0.5\linewidth}{0.5\linewidth}
\captionof{figure}{\blindtext}

\section{Section 3}
\rule{0.5\linewidth}{0.5\linewidth}
\captionof{figure}{\blindtext}

\section{Section 4}
\rule{0.5\linewidth}{0.5\linewidth}
\captionof{figure}{\blindtext}

\end{document}


text:
Q: String manipulation, extract and remove image tags from a string I have a string which may contain one or more image tags ...
I have written a snippet to filter out the image tags from the string
like
        string test = "Hello there Image1 How are you ?Image2";
        int imgstartindex = test.IndexOf("");
        int imgendindex = test.IndexOf("");
        List<string> imagetags = new List<string>();

        while(imgstartindex!=-1 && imgendindex!=-1)
        {
            string imagetag = test.Substring(imgstartindex, (imgendindex + 6)-imgstartindex);
            imagetags.Add(imagetag);
             test= test.Replace(imagetag, "");
             imgstartindex = test.IndexOf("");
             imgendindex = test.IndexOf("");
        }

Output :
 test="Hello there How are you?"

imagetags:
 "Image1" [0]

 "Image2" [1]

Is there a better alternative?

A: You can use this regular expression, that does all for you:
(.*?)<\/img>

It matches an image tag, then a non-greedy match on anything, followed by an image end tag.
Use it like this:
string s = Regex.Replace(@"abcdefghi", @"(.*?)<\/img>", "$1");

(the first parameter is your input)


text:
Q: How to test if a result is statistically significant? I am trying to determine if a certain conversion on my site is statistically significant.  I remembered doing this type of stuff in school but I can't seem to remember how to do it now.
For 1st set: n = 7297 and conversion was 2.618%
For 2nd set: n = 6107 and conversion was 2.669%
Any tips on how to do this?

A: Percents are a proportion. The traditional way to test differences between proportions is the chi-square test. Based on the information you have given me (7106 and 191 [2.62%] in one half and 5944 and 163 [2.67%] in the other), the chi-square test results in a non-significant value of .88 (p value). Your proportions are 2.67 and 2.62, so it is no surprise that these are not statistically significant, despite your large sample.


text:
Q: jquery.ajax, success and done function is not returning anything I am a wordpress user and try to update the database using jquery.ajax. My code updates the database but the success function doesn't return anything to html div tag. Here are some portions of my code:
PHP Code:
$connect = mysqli_connect(HOST, USER, PASS, NAME);
if(mysqli_connect_errno()){
    $msg = "Connection With Database is not Successful. Error: ".mysqli_error();
    echo $msg;
    die();
}

$nam = $_POST['name'];
$eml = $_POST['email'];

$entry = "INSERT INTO `table` (name, email,) VALUES ('$nam', '$eml')";

if(!mysqli_query($connect, $entry)){
    $msg = "Error while submitting Your Data. Error: ".mysqli_error();
    echo $msg;
    die();
    }

$msg = "Your data submitted successfully";
echo $msg;

mysqli_close($connect);
?>

HTML Code:
<form method="POST" id="data_form">
  <input type="text" name="name" id="name" placeholder="Full Name" />

  <input type="email" name="email" id="email" placeholder="Email Address" required />

  <button type="submit" id="submit">Submit</button>
</form>

jQuery Code:
jQuery(document).ready(function (){
    $("#data_form").submit(function (e){
        e.preventDefault();
        var formdata = $("#data_form").serialize();
        $.ajax({
            type: "POST",
            url: "udata.php",
            data: formdata,
            cache: false,
            success: function(result){
                $("#output").html(result);
            }
        });
    });
});

I also used 'done' instead of 'success' but didn't work.
jQuery(document).ready(function (){
    $("#data_form").submit(function (e){
        e.preventDefault();
        var formdata = $("#data_form").serialize();
        $.ajax({
            type: "POST",
            url: "udata.php",
            data: formdata,
            cache: false
        }).done(function(result){
                $("#output").html(result);
        });
    });
});

Actually I am trying to print the $msg variable from the php file to the 'output' div tag.
Any help would be greatly appreciated.