text:
Q: child nodes in treeview control automatically checked when parent node checked I'm using TreeView control. Binding values from database with check box.
Nearly three children are there for parent node like
Parent1
  child1
    child2
      child3
Parent2
   child1
     child2
        child3

I can able to bind data which is from 3 tables all are working well. I want a facility when a parent node checks all its corresponding child automatically get checked.If I click on parent 1 ,child 123 get checked. If I check child1, child2 and child3 get checked. If I check child 2  all child 3 items get checked. How to do that?
Thanks in Advance
Amrutha

A: The javascript function below can be used to check all child nodes if the parent is checked and check parent node if at least one child node is checked otherwise it is unchecked:
 function OnTreeClick(evt) {
     var src = window.event != window.undefined ? window.event.srcElement : evt.target;
     var isChkBoxClick = (src.tagName.toLowerCase() == "input" && src.type == "checkbox");
     var t = GetParentByTagName("table", src);
     if (isChkBoxClick) {
         var parentTable = GetParentByTagName("table", src);
         var nxtSibling = parentTable.nextSibling;
         if (nxtSibling && nxtSibling.nodeType == 1) {
             if (nxtSibling.tagName.toLowerCase() == "div") {
                 CheckUncheckChildren(parentTable.nextSibling, src.checked);
             }
         }
         CheckUncheckParents(src, src.checked);
     }
 }

 function CheckUncheckChildren(childContainer, check) {
     var childChkBoxes = childContainer.getElementsByTagName("input");
     var childChkBoxCount = childChkBoxes.length;
     for (var i = 0; i < childChkBoxCount; i++) {
         childChkBoxes[i].checked = check;
     }
 }

 function CheckUncheckParents(srcChild, check) {
     var parentDiv = GetParentByTagName("div", srcChild);
     var parentNodeTable = parentDiv.previousSibling;

     if (parentNodeTable) {
         var checkUncheckSwitch;
         var isAllSiblingsChecked = AreAllSiblingsChecked(srcChild);
         if (isAllSiblingsChecked) {
             checkUncheckSwitch = true;
         }
         else {
             checkUncheckSwitch = false;
         }
         var inpElemsInParentTable = parentNodeTable.getElementsByTagName("input");
         if (inpElemsInParentTable.length > 0) {
             var parentNodeChkBox = inpElemsInParentTable[0];
             parentNodeChkBox.checked = checkUncheckSwitch;

             CheckUncheckParents(parentNodeChkBox, checkUncheckSwitch);
         }
     }
 }

 function AreAllSiblingsChecked(chkBox) {
     var parentDiv = GetParentByTagName("div", chkBox);
     var childCount = parentDiv.childNodes.length;
     var k = 0;
     for (var i = 0; i < childCount; i++) {
         if (parentDiv.childNodes[i].nodeType == 1) {
             if (parentDiv.childNodes[i].tagName.toLowerCase() == "table") {
                 var prevChkBox = parentDiv.childNodes[i].getElementsByTagName("input")[0];
                 //if any of sibling nodes are not checked, return false
                 if (prevChkBox.checked) {
                     //add each selected node one value
                     k = k + 1;
                 }
             }
         }
     }

     //Finally check any one of child node is select if selected yes then return ture parent node check

     if (k > 0) {
         return true;
     }
     else {
         return false;
     }
 }
 function GetParentByTagName(parentTagName, childElementObj) {
     var parent = childElementObj.parentNode;
     while (parent.tagName.toLowerCase() != parentTagName.toLowerCase()) {
         parent = parent.parentNode;
     }
     return parent;
 }

I used this javascript to solve my problem.

A: A simple recursive function could do that.
private bool checkTreeNodes(TreeNodeCollection nodes, bool parentChecked)
{
    var isChecked = parentChecked;
    foreach (TreeNode node in nodes)
    {
        if (node.Checked || parentChecked)
        {
            checkTreeNodes(node.Nodes, true);
            node.Checked = true;
            isChecked = true;
        }
        else
        {
            node.Checked = checkTreeNodes(node.Nodes, false);
            isChecked = isChecked || node.Checked;
        }
    }
    return isChecked;
}

use it like:
checkTreeNodes(myTree.Nodes, false);


text:
Q: Why do I get cannot be cast to net.sf.jasperreports.engine.JRDataSource when I try to pass my report connection? My report jrxml file looks like
<band height="256" splitType="Stretch">
            <componentElement>
                <reportElement x="0" y="0" width="555" height="50" uuid="eb5b00f3-c370-4c7f-bb10-b7589ff293ff"/>
                <jr:list xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd" printOrder="Vertical">
                    <datasetRun subDataset="listDataset" uuid="364ec058-5b7e-43e0-9272-92907dfba7f3">
                        <datasetParameter name="REPORT_DATE">
                            <datasetParameterExpression><![CDATA[$P{REPORT_DATE}]]></datasetParameterExpression>
                        </datasetParameter>
                        <dataSourceExpression><![CDATA[$P{REPORT_CONNECTION}]]></dataSourceExpression>
                    </datasetRun>
                    <jr:listContents height="50" width="555">
                        <staticText>
                            <reportElement x="1" y="2" width="100" height="20" uuid="cd4ed06d-2c04-4342-8cc2-ff7077621eb6"/>
                            <text><![CDATA[LABEL_VALUE]]></text>
                        </staticText>
                        <textField>
                            <reportElement x="101" y="2" width="129" height="20" uuid="d307fa41-0962-4b17-812d-774262e55e9e"/>
                            <textFieldExpression><![CDATA[$F{LABEL_VALUE}]]></textFieldExpression>
                        </textField>
                        <staticText>
                            <reportElement x="230" y="2" width="140" height="20" uuid="20989891-eb66-45ee-8fbb-b7c53a65f0fe"/>
                            <text><![CDATA[ATTRIBUTE_VALUE]]></text>
                        </staticText>
                        <textField>
                            <reportElement x="370" y="2" width="184" height="20" uuid="fa972e53-dc8a-402e-96ad-9428b402ccd8"/>
                            <textFieldExpression><![CDATA[$F{ATTRIBUTE_VALUE}]]></textFieldExpression>
                        </textField>
                    </jr:listContents>
                </jr:list>
            </componentElement>
</band>

But here I am getting a ClassCastException,

java.lang.ClassCastException:
  org.jboss.jca.adapters.jdbc.jdk6.WrappedConnectionJDK6 cannot be cast
  to net.sf.jasperreports.engine.JRDataSource

I am not able to figure it out, why?

A: From JasperReports api  JRDatasetRun

A dataset run declaration supplies the values for the dataset parameters as well as the data source through which the dataset will iterate. Optionally, a java.sql.Connection can be passed to the dataset instead of a JRDataSource instance, when there is a SQL query associated with the dataset. This query is executed by the engine using the JDBC connection and the java.sql.ResultSet object obtained is iterated through.

Conclusion when you run a dataset datasetRun you can either:

*

*Pass a JRDatasource using the dataSourceExpression tag

*Pass a JDBC connection using the connectionExpression tag

*Not pass anything.
So what are you doing wrong?
You are passing a JDBC connection in the dataSourceExpression tag not in the connectionExpression tag, JasperReports expect it to be a JRDatasource and tries to cast it as such.
If you like to pass the report connection your should use connectionExpression as below.
<datasetRun subDataset="listDataset" uuid="364ec058-5b7e-43e0-9272-92907dfba7f3">
    <datasetParameter name="REPORT_DATE">
       <datasetParameterExpression><![CDATA[$P{REPORT_DATE}]]></datasetParameterExpression>
    </datasetParameter>
    <connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
</datasetRun>

redpajama_set_name: RedPajamaStackExchange


text:
Q: sum of static properties not correct I have this small class looking like this:
private static int field1 = - 1;
private static int field2 = field1 + 1;

public static void Sum()
{
    field1 = 10;
    Debug.WriteLine(field2);
}

A call to Sum() writes '0'. Why?

A: This has happened because you are not updating prop2. You are only initialising it at the start.

A: Those aren't properties - they're fields. field2 is only related to field1 at initialization time - after that, they're completely independent fields. It's not like the field1 + 1 expression is re-evaluated every time field2 is read or every time field1 is written.
If you want field2 to just depend on the value of field1, you should make it a property:
// Note: I wouldn't actually call this Field2, of course...
private static int Field2 { get { return field1 + 1; } }

A: private static int prop1 = - 1;
private static int prop2 = prop1 + 1;

public static string Sum()
{
    prop1 = 10;
    Debug.WriteLine(prop2);
}

This code never return 1,
Static property prop2 is initilized by zero.
You are not doing any operation in Sum() function. So it will just return inilized value which is zero "0"

A: you can't control the order of static variable initialization. If you actually want this, you have to it in a static constructor :
static class XYZ{

    private static int field1;
    private static int field2;

    static XYZ {
        field1 = - 1;
        field2 = field1 + 1;
    }

    public static string Sum()
    {
        prop1 = 10;
        Debug.WriteLine(field2);
    }

}

As Jon mentioned, I was wrong about my assumption.


text:
Q: What is the signature of a PayPal webhook in node.js? I fail to wrap my head around PayPal webhooks. They offer samples to create, delete, list webhooks. For instance, when
var create_webhook_json = {
    "url": "https://www.yeowza.com/paypal_webhook",
    "event_types": [
        {
            "name": "PAYMENT.AUTHORIZATION.CREATED"
        },
        {
            "name": "PAYMENT.AUTHORIZATION.VOIDED"
        }
    ]
};

then I expect https://www.yeowza.com/paypal_webhookto be a webhook.
My question about that sample webhook:

*

*does it receive events from PayPal when its registered events occur? (obviously yes)

*does PayPal issue requests of type POST?

*how can the webhook inspect such an event?

*what does PayPal expect as an response?

Finally is "webhooks" limited to PayPal or is it a general node.js concept?

A: Darkrum was right when he said that the answer can be found in the docs.
1,2,4: "When an event occurs, PayPal issues an HTTP POST notification message to your app at the webhook listener URL that you defined in your webhook. ... When your app receives the notification message, it must respond with an HTTP 200-level status code. If your app responds with any other status code, PayPal tries to resend the notification message 25 times over the course of three days."
As for 3 you may want to check the example.

A: PayPal REST APIs use webhooks for event notifications. Webhooks are push API calls that let your app know an event has happened.
For creating webhooks login to the paypal developer account and go to 'My App and Credentials' menu. In that page you can see your apps which has already added and click on the app and go to details page to add the webhook for your app. To create webhook you have to give url which starts with https:// to get event notifications from paypal. you can select which event type you want to receive notifications.
you can find complete guide to implement webhooks with node js in following link.
https://techpituwa.wordpress.com/2022/08/24/paypal-webhook-notifications-with-nodejs/


text:
Q: Cocoa pod installation error: " The target overrides the SWIFT_VERSION build setting " I'm trying to install Cocoalumberjack as a pod and am getting this error:

The ProjectName [Release] target overrides the SWIFT_VERSION build
  setting defined in `Pods/Target Support
  Files/Pods-ProjectName/Pods-ProjectName.release.xcconfig'. This can
  lead to problems with the CocoaPods installation

The pod xcconfig file contains this:
SWIFT_VERSION = 3.0

But my project is already using swift 3. so I don't understand why there's this mismatch.

xcrun swift -version
Apple Swift version 3.0 (swiftlang-800.0.46.2
  clang-800.0.38)

However I cannot see a SWIFT_VERSION in particular anywhere in Xcode's build settings, nor if I type in swift as the search term in the Xcode's build settings can I see anything anywhere that even looks like a swift version number
Additionally the pod installation goes on to say:"Use the $(inherited) flag" to solve the problem.
However my Xcode build settings other linker flags already has this $(inherited) flag, so why is that not solving the problem?
(Xcode 8)

A: It is a bit non-intuitive but what you have to do is:
1) Search for "SWIFT_VERSION" in your project settings
2) you will see an entry saying "Use Legacy Swift Language Version"

*

*If you had already selected any value it will be shown in BOLD

3) Select the entry (not the value) and press "DELETE", the boldness should disappear.
4) Repeat the same steps but now for your target (the one with the app icon)
5) Close XCode
6) Run "pod install" again
7) Open your project, and CLEAN IT (Shift + Command + K)
Now it should be working correctly.
NOTE:
Specifically for "Cocoalumberjack" make sure your pod is installing the 3.0+ version, if its not run a "sudo pod update" as versions previous to this won't work with Swift 3.
EDIT:
I'm pretty sure the cocoapods handling of this is a bit buggy at the moment, as I've experienced sometimes it works and others it doesnt. However, keep in mind you can set the "SWIFT_VERSION" flag directly on a per framework basis:
1) Select the Pods project (within your project).
2) Select the target that you want to set and look for the "SWIFT_VERSION" flag specifically for that target.
3) Clean and rebuild.

A: You need to remove any overridden "Use Legacy Swift Language Version" build setting from your targets.

A: That is not exactly helpful as there is no way to remove it.
You either inherit the value, or you assign a value, and there is no way to get back to $(inherited) value after an assignment due to the way the UI is built on xcode (on some options you have a "custom" value where you can add this, but not on all kinds of values).
So it's kind of a dead end with no real solutions.


text:
Q: Associations confusion Scenario:
Example:
A seller decides to sell a BMW. Before selling a particular model of the BMW (say a 7-series 760 Li) a CarSketch needs to be created by the seller. This CarSketch belongs to the BMW, in here we get specifications about the BMW. This CarSketch also has a quick summary of the physical information of the BMW ( length, etc ) represented as a Presentation.
Thus, If I want to sell a BMW. a model 540 and a model 760.
# car_sketch_for_model_540 = CarSketch obj
# presentation_for_model_540 = Presentation obj

# car_sketch_for_model_760 = CarSketch obj
# presentation_for_model_760 = Presentation obj

the seller approves and starts selling the BMW car, model 540 and 760. That is, the buyers sees a list of Presentations only.
Since the car can have many buyers, a buyer will only choose (buy) one model (presentation).
The CarSketch model is used by the seller for internal stuff. When browsing the site, the buyer can see the available models to buy because rails looks at the presentations through the CarSketch model.
For each buyer interested in a particular model (Presentation), a Buyer record is added pointing to a presentation.
I have a problem trying to figure out how to set up these associations on Rails. Basically I have 4 models. Let's call these Car, CarSketch, Presentation, and Buyer.

*

*Car can have many CarSketch's

*CarSketch contains a foreign key for one Presentation. There could be 2 rows under CarSketch referencing one Presentation, too.

*There can be any number of Presentation records.

*Buyer contains a foreign key for one Presentation. There could be 2 rows under Buyer referencing one Presentation, too.

*CarSketch and Buyer have foreign keys to reference Car.

Car->CarSketch->Presentation
Car->Buyer->Presentation

How do I express (associations) Presentation with CarSketch and Buyer?!?
Is this correct?
class CarSketch < ActiveRecord::Base
    belongs_to :presentation
end

class Buyer < ActiveRecord::Base
    belongs_to :presentation
end

#what to do here?
class Presentation < ActiveRecord::Base
    has_many :car_sketches
    has_many :buyers
end

I don't care about the records created at Presentation, really.
I want to be able to have:
#assume presentation is a Presentation record...

CarSketch.presentation = defined
Buyer.presentation = some other presentation

also, CarSketch and Buyer could point to the same Presentation record.

Help is appreciated!
Personally, even though the current one works. It just doesn't make sense when I read it... CarSketch and Buyer are join tables... created by me since I need to hold more attributes for them...
It doesn't make sense that a CarSketch belongs to a Presentation because any number of CarSketch can have one presentation and a presentation doesn't have many CarSketch See what I'm saying?
Or is it normal to get confused like these when defining your own join tables as models and these referencing other models?
I'm not interested in using Presentation directly to retrieve CarSketch or Buyer.
UPDATE
Heavily edited to replace A B C D with the corresponding names.
OP, please check.
UPDATE*

# A = Car
# B = CarSketch
# C = Presentation

# D = Buyer

# 1) a Car can have many car_sketches.
# 2) a CarSketch has one Presentation.
# 3) a Car can also have many buyers.
# 4) a Buyer has one Presentation.

# Car.car_sketches[0].Presentation = some presentation...
# Car.buyers[0].Presentation = some presentation...

# CarSketch and Buyer can reference the same Presentation record. Different presentation records, too. What would you define under the Presentation model? T

A: Not an answer, but you can expand on this and see if it is a correct understanding. (Much easier to understand a story :) Maybe you take this and weave the store in your question and then I delete this "answer".
There's a bunch of Cars and a bunch of Buyers.
Then there is a Maserati.
Sally the Sketcher creates a CarSketch for the Maserati.
    Q: So, Maserati can every only have one sketch.
Now Matt the Manager creates a PowerPoint Presentation containing that sketch.
    Q: So, a presentation can only be for one sketch.
Now, Matt shows Richie Rich the PowerPoint presentation. Richie likes (and is linked to that presentation)
    Q: Now there could be many more buyers linked to that presentation (they all have been shown the presentation)


text:
Q: How to speed up this "closest records" mySQL query I'm trying to see if I can speed up this query with an index (or other tweaks). Basically, I want to find the 6 closest records based on Latitude and Longitude in the glinks_Links table.
SELECT
    ID, Ville, Title, Telephone, ExpiryDate,
    Address, Postal_Code, Latitude, Longitude, priceSort, priceSortBNB, priceSortGITE, has_image,

    ( 6371 * acos( cos( radians('42.934817491341060000000000000000') ) * cos( radians( Latitude ) ) * cos( radians( Longitude ) - radians('2.222607135772705000000000000000') ) + sin( radians('42.934817491341060000000000000000') ) * sin( radians( Latitude ) ) ) ) AS distance
    FROM glinks_Links link
        WHERE
            link.ExpiryDate < 2147483647
            AND isValidated = "Yes"
            AND OffersLinkID IS NULL
            AND (
            ((Latitude BETWEEN (42.934817491341060000000000000000 - 35/69.0) AND (42.934817491341060000000000000000 + 35/69.0)) )
            AND
            (Longitude BETWEEN (2.222607135772705000000000000000 - 35/42.5) AND (2.222607135772705000000000000000 + 35/42.5))
            )
        HAVING
            distance < 25
        ORDER BY distance
        LIMIT 6

The table structure (remove all the extra stuff thats not in the query, for simplicity), is:
CREATE TABLE `glinks_Links` (
  `ID` int(10) UNSIGNED NOT NULL,
  `Title` varchar(100) NOT NULL DEFAULT '',
  `isValidated` enum('No','Yes') NOT NULL DEFAULT 'Yes',
  `ExpiryDate` int(11) NOT NULL DEFAULT '2147483647',
  `Address` varchar(100) DEFAULT NULL,
  `Postal_Code` varchar(30) DEFAULT NULL,
  `Ville` varchar(50) DEFAULT NULL,
  `Latitude` decimal(34,30) DEFAULT NULL,
  `Longitude` decimal(34,30) DEFAULT NULL,
  `OffersLinkID` int(11) DEFAULT NULL,
  `priceSortBNB` int(11) DEFAULT NULL,
  `priceSortGITE` int(11) DEFAULT NULL,
  `priceSort` int(11) DEFAULT NULL,
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

It only takes 0.03 seconds to run, but I have to do it 50k or so time, so it all adds up. Any suggestions are much appreciated :)
UPDATE: I should probably mention I already have some indexes on the table:
ALTER TABLE `glinks_Links`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `expiryndx` (`ExpiryDate`),
  ADD KEY `valexpndx` (`isValidated`,`ExpiryDate`),
  ADD KEY `Latitude` (`Latitude`,`Longitude`);


text:
Q: Element not taking string values I have a html page containing two textboxes with id name and mobile.
I've created a list and inserted the values into it.But its not taking the name value, its only taking the mobile textbox value. The other part is shown as undefined.
This is the code.
var li = document.createElement("li");
li.textContent = name.value +" , "+mobile.value;
list.appendChild(li);

What is the error ?

A: "name" is a poor name for a field since if you do not qualify is like document.getElementsByName("name")[0] it could be window.name -
If the field has id="name" then use document.getElementById("name") instead since most browsers do not copy the ID attribute to the window scope
Thus
var li = document.createElement("li");
li.textContent = document.getElementById("name").value +" , "+
  document.getElementById("mobile").value;
list.appendChild(li);

I also personally prefer li.innerHTML since it works in all browsers
Lastly remember that IDs must be unique


text:
Q: Django: m doesn't look like a module path I can vistit the /admin url
but went I login admin or call my login api. I got this error message
error:
ImportError at /admin/login/
m doesn't look like a module path
Request Method: POST
Request URL:    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Django Version: 1.8.17
Exception Type: ImportError
Exception Value:
m doesn't look like a module path
Exception Location: /root/.virtualenvs/areyoutired/lib/python3.4/site-packages/django/utils/module_loading.py in import_string, line 21
Python Executable:  /usr/local/bin/uwsgi
Python Version: 3.4.3
Python Path:
['.',
 '',
 '/root/.virtualenvs/areyoutired/lib/python3.4',
 '/root/.virtualenvs/areyoutired/lib/python3.4/plat-x86_64-linux-gnu',
 '/root/.virtualenvs/areyoutired/lib/python3.4/lib-dynload',
 '/usr/lib/python3.4',
 '/usr/lib/python3.4/plat-x86_64-linux-gnu',
 '/root/.virtualenvs/areyoutired/lib/python3.4/site-packages']

A: You haven't given enough details to know for certain, however I am going to guess that this is a problem with your AUTHENTICATION_BACKENDS setting. See Django AUTHENTICATION_BACKENDS import error for a similar problem.

A: the problem is
my settings
AUTHENTICATION_BACKENDS = (
    'member.backends.EmailPasswordBackend'
)

does not have "," behind 'member.backends.EmailPasswordBackend'
so i got "m doesn't look like a module path"
that's so shame on me

A: put mysite.DemoRouter.DemoRouter if Demorouter is the class which is in folder mysite

A: If you have given any backend such as EMAIL_BACKEND, AUTHENTICATION_BACKENDS etc to an empty string like EMAIL_BACKEND = "" will throw this error.
Just change it to EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
 or the right backend of your choice.
Here you need to provide right AUTHENTICATION_BACKENDS.

A: should be described with a comma.
AUTHENTICATION_BACKENDS = (
('django.contrib.auth.backends.ModelBackend'),)
I had the same error due to a comma miss


text:
Q: Netbeans GUI Builder I have a rather large application. I have used the Netbeans GUI builder for most of the GUI work. Now that the project is starting to get large, I was wondering if this was advisable. Is it best to create the GUI's by hand so that I can have greater control over them? Is it advisable to stay away from the GUI builder or stick with it. Could you share some of your experience?
Thanks
EDIT:
See this is why I asked this question. It seems like different people all have their opions. Mine personally is that it works nice for small projects, but when things start to get complex, the GUI editor can be a hassle to use.

A: Absolutely, doing it by hand it preferred.  The GUI Builder is handy for prototypes and quick throwaway code.  Anything that is going to be maintained, customized or complex will be much less of a headache long-term if you do it by hand.

A: I like the Swing GUI builder and I do use it in a large project.
Really simple dialogs I just code "by hand".
When changing/creating more complex ones I prefer the GUI builder because I can immediately see how the form/dialog will look like.
Once you get the hang of the GUI builder I don't feel I have less control over it than when coding by hand.

A: GUI builder would make your development faster.

A: Stay miles away from the GUI Builder. You can have a poll with all developers who have worked with Netbeans GUI builder extensively, they will all share horror stories. Is this swing application?
Netbeans tried their hand on Visual JSF, just google it to see how it went?
Note: If its a swing application (or other desktop application), then please take my answer with a pinch of salt. I have not used netbeans GUI developer for that. But my general opinion is Netbeans tries to do a lot of things and does off of them badly.

A: Absolutely Netbeans GUI builder. Saves time and allows quick changes and control. Perfect for small or huge projects and group development. Unit testing and debugging is included. You can extend the GUI using your own beans. Everything is completely transparent. You can drop it and use an editor anytime you like, i bet you never will.

A: The Netbeans GUI Builder is one of the few GUI building tools that do their job right in my opinion. However, what is especially good about Netbeans is that it doesn't use any kind of intermediate library or custom XML format to store the generated GUI. It's plain Java code that gets generated. And this code looks sensible too, especially if you name your components sensibly, not just jLabel1 kind of stuff. This means that you can use the GUI Builder, then switch to maintaining the code manually later if you really want to.
Note that I never tried to perform anything like that, so there may be some problems I am unaware of. But then again I was always happy with the GUI Builder so I didn't really need to switch.

A: My very recent experience is with a large project that uses Netbeans GUI Builder-generated forms for panels.
Pros:

*

*it is fast

*it adds a layer of abstraction to GUI specific details

Cons:

*

*it fastens developer's hands when it comes to fixing details in the generated code. Example from my very recent experience

*UI controls are difficult to refactor

*UI controls are impossible to extend and override

I would say it is not a good idea to use it in a large project, especially if reuse and extension of UI controls is expected(which almost always becomes the case for big projects).

A: I had the same problem with large Netbeans projects. In the GUI-Designer if I want to add an action I sometimes get the option "Set Action..." (on creation of a new GUI this is not available, just after opening Netbeans again). If you use this Netbeans creates in initComponents()
javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance().getContext().getActionMap(GUIClass.class, this);

All code after this will not be executed or just partly executed (I didn't examine it exactly). Use actionPerformed instead.
This works at the moment but Netbeans has to update this.

A: Our application has over 600 GUI-designed forms and we very rarely have any issues at all. If we do encounter problems, we usually just use SVN to discard the current changes and try again.


text:
Q: Unexpected results with LAST_VALUE, CURRENT ROW, and NULLs I have the following data:
CREATE TABLE #Transfers (
    AddedOn DATETIME2 NOT NULL,
    EmpID INT NOT NULL,
    NewDeptID INT NULL
)

INSERT INTO #Transfers
VALUES
    ('2013-12-17 17:18:54.3499987', 19, 36),
    ('2013-12-18 13:02:34.1168087', 19, NULL),
    ('2014-01-28 11:41:55.8755928', 22, 100),
    ('2014-02-05 10:36:36.3645703', 22, NULL),
    ('2014-02-16 00:00:00.0000000', 22, 37),
    ('2014-02-17 00:00:00.0000000', 22, NULL)

For each row, I am trying to get the most recent non-null NewDeptID (until that row):
SELECT *,
    LAST_VALUE(NewDeptID) OVER (
        PARTITION BY EmpID
        ORDER BY IIF(NewDeptID IS NULL,0,1), AddedOn
        ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW
    ) AS CurrentDeptID
FROM #Transfers
ORDER BY EmpID, AddedOn

If I understand correctly, null values should be excluded because they are the first values in the window -- IIF(NewDeptID IS NULL,0,1).
I would expect the following:
AddedOn                        EmpID  NewDeptID  CurrentDeptID
2013-12-17 17:18:54.3499987    19     36         36
2013-12-18 13:02:34.1168087    19     NULL       36
2014-01-28 11:41:55.8755928    22     100        100
2014-02-05 10:36:36.3645703    22     NULL       100
2014-02-16 00:00:00.0000000    22     37         37
2014-02-17 00:00:00.0000000    22     NULL       37

Instead, the ORDER BY clause within the LAST_VALUE is ignored, and NULL is returned when the current row contains NULL:
AddedOn                        EmpID  NewDeptID  CurrentDeptID
2013-12-17 17:18:54.3499987    19     36         36
2013-12-18 13:02:34.1168087    19     NULL       NULL --
2014-01-28 11:41:55.8755928    22     100        100
2014-02-05 10:36:36.3645703    22     NULL       NULL --
2014-02-16 00:00:00.0000000    22     37         37
2014-02-17 00:00:00.0000000    22     NULL       NULL --

I am getting the same results in SQL Server 2012 and 2014.
Is this a bug in SQL Server, or am I missing something in the window function syntax?

Note: If I expand the window to include the entire partition, the NULLs are ignored:
SELECT *,
    LAST_VALUE(NewDeptID) OVER (
        PARTITION BY EmpID
        ORDER BY IIF(NewDeptID IS NULL,0,1), AddedOn
        ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING
    ) AS CurrentDeptID
FROM #Transfers
ORDER BY EmpID, AddedOn

Results:
AddedOn                        EmpID  NewDeptID  CurrentDeptID
2013-12-17 17:18:54.3499987    19     36         36
2013-12-18 13:02:34.1168087    19     NULL       36
2014-01-28 11:41:55.8755928    22     100        37
2014-02-05 10:36:36.3645703    22     NULL       37
2014-02-16 00:00:00.0000000    22     37         37
2014-02-17 00:00:00.0000000    22     NULL       37

A: No, you have not understood well, how window functions work. The ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW is applied after the ORDER BY IIF..., so first the rows are ordered (first the ones having NULL, then all the rest) and then the ROWS ... restriction is applied. So, this is never going to work for your problem.
In detail, the OVER clause creates these "windows", according to the PARTITION and ORDER BY.
So, for example for the row with AddedOn = '2014-02-17 00:00:00.0000000', the ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW are the row above and itself (the two rows marked with <------):
AddedOn                        EmpID  IIF()  NewDeptID

-- partition EmpID = 19
2013-12-18 13:02:34.1168087    19     0       NULL
2013-12-17 17:18:54.3499987    19     1        36

-- partition EmpID = 22
2014-02-05 10:36:36.3645703    22     0       NULL  <---
2014-02-17 00:00:00.0000000    22     0       NULL  <---  this is the LAST_VALUE
2014-01-28 11:41:55.8755928    22     1       100
2014-02-16 00:00:00.0000000    22     1        37

So, the CurrentDeptID column gets these values:
AddedOn                        EmpID  IIF()  NewDeptID CurrentDeptID

-- partition EmpID = 19
2013-12-18 13:02:34.1168087    19     0       NULL     NULL
2013-12-17 17:18:54.3499987    19     1        36       36

-- partition EmpID = 22
2014-02-05 10:36:36.3645703    22     0       NULL     NULL
2014-02-17 00:00:00.0000000    22     0       NULL     NULL
2014-01-28 11:41:55.8755928    22     1       100      100
2014-02-16 00:00:00.0000000    22     1        37       37

which are then re-ordered for the final result, according to the external ORDER BY

To work around the problem, you could use a correlated subquery:
SELECT *,
    ( SELECT TOP (1) NewDeptID
      FROM #Transfers AS ti
      WHERE ti.EmpID = t.EmpID
        AND ti.NewDeptID IS NOT NULL
        AND ti.AddedOn <= t.AddedOn
      ORDER BY AddedOn DESC
    ) AS CurrentDeptID
FROM #Transfers AS t
ORDER BY EmpID, AddedOn ;

Test at SQL-Fiddle

What you are trying to do would actually make sense if nulls could be ignored by the LAST_VALUE() function. This can be done with IGNORE NULLS but unfortuantely this feature has not been yet implemented in SQL-Server. You can see how it would work, in Oracle (fiddle-2):
SELECT AddedOn, EmpID, NewDeptID,
    LAST_VALUE(NewDeptID)
      IGNORE NULLS                                -- check this
      OVER (
        PARTITION BY EmpID
        ORDER BY AddedOn
        ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW
    ) AS CurrentDeptID
FROM Transfers
ORDER BY EmpID, AddedOn ;

Another way, with window functions, that works in SQL-Server, is by counting the not-null NewDeptID before the current row first. You can test at fiddle-3:
WITH cte AS
  ( SELECT AddedOn, EmpID, NewDeptID,
      COUNT(NewDeptID) OVER (
          PARTITION BY EmpID
          ORDER BY AddedOn
          ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW
        ) AS cnt
    FROM Transfers
  )
SELECT AddedOn, EmpID, NewDeptID,
    MIN(NewDeptID) OVER (PARTITION BY EmpID, cnt) AS CurrentDeptID
FROM cte
ORDER BY EmpID, AddedOn ;


text:
Q: WxWidgets || Taking a variable from another class I've created simple complex calculator, now I need the Obliczenia class to support mathematical operations using methods.
How i can take variable from Zad2Frame to class Obliczenia?
class Obliczenia{
    void dodaj(){
        Zespolona przycisk1_1;
    Zespolona przycisk1_2;
    int wynik1;
    int wynik2;
    char* znak;
    wxString wynik;

    if(TextCtrl1->GetValue().ToDouble(&przycisk1_1.rzeczywista) && TextCtrl2->GetValue().ToDouble(&przycisk1_1.urojona)
            && TextCtrl3->GetValue().ToDouble(&przycisk1_2.rzeczywista) && TextCtrl4->GetValue().ToDouble(&przycisk1_2.urojona))
    {
        wynik1 = (przycisk1_1.rzeczywista + przycisk1_2.rzeczywista);
        wynik2 = (przycisk1_1.urojona + przycisk1_2.urojona);
        if(wynik2>=0)
        {
            znak="+";
        }
        wynik << wynik1<<znak<<wynik2<<"i";
        TextCtrl5->SetValue(wynik);
    }
    };
};
void Zad2Frame::OnButton1Click(wxCommandEvent& event)
{
    dodaj();
}

A: You need an accessor function for example:
int Zad2Frame::GetMyVariableValue()
{
    return myVariable;
}

or
void Zad2Frame::SetMyVariableValue(int newValue)
{
   myVariable = newValue;
}

These functions must follow public: where they are declared. Alternatively you could precede myVariable with public:. But directly exposing a variable prevents changing the behavior later. For instance in the future you may want:
void Zad2Frame::SetMyVariableValue(int newValue)
{
    myVariable = newValue;
    isMyVariableValid = true;
}


text:
Q: Moving inner div over its parents and neighbours(overflow and z index dosent help) Hello guys im really new to JS and CSS, and im just testing skills in gamedevelopment...
[removed link]
if you try pressing "W" key several times you ll see that the blue div when he leaves zone of a parent div he goes under the neighbour div... how to solve this?
please help

A: First, the answer:
Remove the z-index of the parent boxes (the red ones)
now the inner workings:
The problem with setting a z-index to siblings and their children, is that each time you set a z-index to a parent, all of it's children's z-indexes will now be relative to the parent's.
i.e. if one sibling's child has a higher z-index than another sibling's child, while both parents have their own z-index, those children will not be in the same hierarchy.
try removing the z-indexes of the red boxes, and only having the z-index on the children.
given that this is the result you seek.

A: change overflow :visible to overflow: hidden; for board_cell css rule

A: put the z-index of the red squares 0 and of the blue squares 1
http://www.w3schools.com/cssref/pr_pos_z-index.asp


text:
Q: A question about the real line and the Dirichlet function. Though the graph of the Dirichlet function is non-drawable, I think if we have to draw it in some informal way then it will be two complete lines (instead of isolated points).
Here's my reasoning: there cannot be any gaps on each of the two lines, because if there are such gaps, let the $x$-coordinates of the ends of the gap be $a$ and $b$, then the existence of the gap shows that there's no rational (or irrational) number in the interval $(a, b)$, which is absurd. Hence there are no gaps, and thus the lines should be complete.
But if the graph consists of exactly two lines, then it seems that the function is multi-valued. I know that all my discussion so far is concerned with informal concepts that deny an explicit definition. But my question is am I correct (in some sense) and how do I understand this "dilemma"?

A: What this boils down to is that you (and, given certain metaphysical assumptions, the universe) can't tell by looking at a line if there  is a single point removed. It follows that you can't tell if a finite number of points have been removed, as so by taking limits you can't tell if countably many points have been removed. But just because you can't tell the difference between two lines doesn't mean they are the same. The graph of the dirchlet function is not two horizontal lines, and the function is not multivalued.
Your faulty logic lies in the assumption that something necessarily is what is looks like the second paragraph is about something that looks like a line. The third paragraph is about something that is a line.


text:
Q: SED command for completing SQL query file I've got a SQL query file to be filled with a variable (domainname) and two date values (start and end date).
The idea is to bash script the SED command to create SQL query files per month and domain.
Is it smart to search and replace the SQL query file with SED?
When I try so, I need to escape the characters from the date value.
The part of the SQL file looks as follows:
date < ''
AND
date >= ''
AND
to_domain = ''

The input of an example:

to_domain = testing.com date = 2017-04-01 date = 2017-04-02

Any ideas to do this smart?
I'm sorry but I don't have enough experience in SED.
I've Google'd my ass of with this one, but no luck so far.
Thanks in advance!

A: You can use environment variables in a template query file and generate the new file with envsubst to substitute env vars.
Given the following query-template.txt :
date < '$start_date'
AND
date >= '$end_date'
AND
to_domain = '$to_domain'

You can generate generate query.txt with envsubst and previously define your variables :
export start_date=2017-04-01
export end_date=2017-04-02
export to_domain=testing.com
envsubst < query-template.txt > query.txt

Or put all the variables export in a file vars.sh and source it before performing the substitution :
source vars.sh
envsubst < query-template.txt > query.txt


text:
Q: multi level dictionaries python I want to make a multi-level dictionary, which is the count of times the token has appeared with a Pos tag.
example:
cat/nt
cat = token. nt = pos tag

I have gotten up to here but I'm stuck.
import re

dicts = {}

wds = re.compile('(\w*|\w+\.\w*)([/])(\w+)')

with open('train.txt', 'r') as td:

for lines in td:

m =  wds.finditer(lines)

for mms in m:

dicts[mms.group(1)] = mms.group(3)

content of train.txt file
Pierre/NNP Vinken/NNP ,/, 61/CD years/NNS old/JJ ,/, will/MD join/VB

A: Try something like this in your inner for loop:
for mms in m:
    token = mms.group(1)
    pos = mms.group(3)
    if token in dicts:
        if pos in dicts[token]:
            dicts[token][pos] += 1
        else:
            dicts[token][pos] = 1
    else:
        dicts[token] = {pos: 1}

This checks if we've seen the token at all before, and given that we have, checks if we've seen it as this part of speech before.  If we've seen this combination before, increment its count.  If we've seen the token, but not this POS, default it to a count of 1.  If we've never even seen the token before, add an entry for it with a sub-dict containing this POS at a count of 1.
You could get the same effect with a default dict, but I thought seeing how it worked behind the scenes would be clearer.
EDIT:
To print the resulting dict, try
for token in dicts.keys():
    for pos in dicts[token].keys():
        print "%s %s: %s" % (token, pos, dicts[token][pos])


text:
Q: Intel HD Graphics 530 blinking monitor So I used to have a GTX 1070 but it had issue and it's being repaired atm, in the meantime I'm trying to use my onboard graphics but my monitor keeps blinking, it just goes black for like 2-3 seconds and then goes on and it happens ALOT. I tried several driver reinstalls of several versions, but didn't work.
build:
i7 6700K
MSI Z170A-G43 PLUS
16GB RAM
BenQ XL2430T 24inch
Windows 10 64-Bit
any help appreciated


text:
Q: MySql - How to insert and on duplicate key update without explicitly specifying all non key columns I have a table which was created as a select * from a view (and then added a PK).
I want to periodically update the table with all the data from the view.
I thought the best option is to do this using: INSERT INTO table_a SELECT * FROM view_a ON DUPLICATE KEY UPDATE VALUES(non_key_col_1), VALUES(non_key_col_1), .... ;
Since there are quite a lot of columns, and they might change in the future (then I can re-create the table, but I wish I won't have to edit the periodic insert, I was wondering if there is a way to avoid the explicit specification of all columns?

A: There no such syntax in mysql unfortunately. You'll have to update all the columns one by one.

A: You can go with a trigger on insert operation, that is if the primary key exists update the row otherwise insert it. But definitely it is going to impact the performance in case of large data

A: One thing i can think of is get the column names from INFORMATION_SCHEMA.COLUMNS and use those to dynamically compose your query in your app.
SELECT * FROM information_schema.columns WHERE table_name = 'view_a';

Now you have  the columns no matter if the view changes.
Do the same for the table and you have the column differences.
Use those differences to run ALTER TABLE statements or drop it and recreate it all together.
Of course this is probably even more laborious then dropping and recreating the table manually.


text:
Q: How to set focus on textbox in other ContentPlaceHolder? - MVC2 Greetings,
I've been scanning the internet on how to do this, but so far no luck. There are numerous solutions posted, especially on this website (thank you for that), but none seem to work for me. This will most probably be because I am only learning asp.net since 4 months now, and lack the necessary knowledge.
What I would like to do is set focus on the username input textbox when the page is loaded. I've seen many solutions, such as "defaultfocus", body onload, etc, etc. Anyone can give me a simple way to accomplish this?
Our project is a MVC 2 Web application. We have a master site, which collects all the contentplaceholders. Here is the link to the logon.aspx

    <asp:ContentPlaceHolder ID="LoginContent" runat="server" />

The LogOn.aspx is practically the same as the auto-generated one. And here is the textbox I would like to set focus on:

    <%: Html.TextBoxFor(m => m.UserName)%>
    <%: Html.ValidationMessageFor(m => m.UserName) %>

How can I trigger the onload event, be it in the master page, or the LogOn page, so that the focus is generated on that particular textbox?
Thanks in advance, and apologies for having to rely on your knowledge.
Sincerely,
Nicolas

A: You will need to use javascript for this. If you are using jquery you could include the following script:
$(function() {
    $('#UserName').focus();
});

Another possibility is to do this in the body tag:


text:
Q: BindingSource.Filter doesn't work with '!=' I have a binding source and it has a column called Description and I want to exclude all rows that have their description set to 'x'.
I have tried:
bindingSource.Filter = "Description != ' + x;

That doesn't work. Does anyone know how to do a is not comparison for the binding source's filter? I couldn't find any help on MSDN.

A: Try <> instead of !=.
See this for more help:

http://msdn.microsoft.com/en-us/library/system.data.datacolumn.expression.aspx

A: Try this:
bindingSource.Filter = String.Format("Description != '{0}'", x);

One other thing to try is using <> instead of != if the above does still not work.


text:
Q: override a CSS class if two other classes are present I want to override a CSS class if two other CSS classes are present for a particular element.
Eg:

I want to override class3 in this case.
I my current implementation is something like below.
.class1.class2 { .class3 {padding-left: 1px}  }

But this approach does not seem to work!

A: Just go
.class1.class2.class3 {
  /* these definitions are more specific and don't need !important; */
}

Remember this requires you to put class3 on the element as well:
<element class="class1 class2 class3"></element>

If the only reason you wanted to add class3 is to specify styles that should be applied when both classes class1 class2 are present, you don't even need class3, just go
.class1.class2 {
  /* these definitions are more specific than those for .class1 or .class2
  and don't need !important;
  These rules apply to any element that has both class1 and class2 */
}

A: Try this:

 This is a paragraph.

 This is a paragraph.

 This is a paragraph.

Result:

A: You can't embed a selector inside another like you have done, however you can specify what should be used when both classes are present. e.g.
HTML

A

B

C

CSS
.class1 {border:1px solid red}
.class2 {border:1px solid green}
.class1.class2 {border:1px solid blue}

https://jsfiddle.net/5zjznd8t/

A: Since you are showing us an image tag, I assume that class3 isn't nested inside this tag. An image-Tag shouldn't have nested elements.
With you definition class3 would be an element inside another.
For example:

some text</span

For your case it is necessary to define the class inside the same level.
.class1.class2 {
    &.class3 {
        padding-left: 1px
    }
}

The amper defines the class3 at the same level.
Since this definition is more specified than .class1.class2 it should override those styles.


text:
Q: Homomorphism of two groups show that $f:G \ \times  H \rightarrow G$ Given by $f((x,y))=x$ is a surjective homomorphism.
I'm not really sure on how to tackle this homework problem.
So I tried with letting H = $f((c,d))=b$
Then $f((x,y),(c,d))=xb=f((x,y)),f((c,d))$ Hence it is a homomorphism?
To show it is onto I have to show that for every cartesian product of G and H there exists an element in G?

A: In fact, $f((a,b)(c,d))=f((ac,bd))=ac=f((a,b))f((c,d))$, so that it is a homomorphism. To prove it is surjective, only show that every element of $G$ can be represented as the result of this function. Suppose $x\in G$. Therefore, $x=f((x,y)).$ It is also good to note that this is not a isomorphism, once $f^{-1}$ is not well-defined.


text:
Q: Get data between datapoints from matplotlib figure From a data set, I create a linear graph using Matplotlib. On the x-axis the time is displayed and on the y-axis a corresponding value (available solar power). In the dataset there is one y-value per hour. That means at 8, 9, ... I now want to read y-values per minute from the graph, i.e. at 8:01, 08:02,... That means I want to read data points from the graph that are not present in the data set.
In the following code I create the graph and read the y-values. But now I want to read in the minute by minute matching y-values. How is this possible with Matplotlib?
def calculate_available_solar_power_per_minute(df_available_solar_power):
    plt.rcParams["figure.figsize"] = [7.50, 3.50]
    plt.rcParams["figure.autolayout"] = True
    x = df_available_solar_power['time']
    y = df_available_solar_power['available_solar_power']
    fig, axes = plt.subplots()
    axes.plot(x, y, c='red', lw=2)
    plt.show()

    # get y data
    line = axes.lines[0]
    yd = line.get_ydata()
    print(yd)


text:
Q: Does urxvt support the OSC52 escape sequence? The OSC52 escape sequence tells the terminal to put arbitrary text in the system clipboard. I want to use this fact to be able to copy to the local clipboard from a remote Vim session through ssh, as explained here. However, I am getting conflicting information on whether the terminal I use, urxvt (also called rxvt-unicode) supports this escape sequence.
I have found a perl script that may or may not implement this functionality, called clipboard-osc, and I have added it to my urxvt configuration file ~/.Xdefaults with the line URxvt.perl-ext-common: clipboard-osc. I haven't been able to make it work, and the information on this perl script (and on escape sequences in urxvt in general) is very scarce.
So, does urxvt support the OSC52 escape sequence for clipboard integration? And if so, how can I use it and what are the possible pitfalls to avoid?

A: I figured out a solution to my problem. I will post it here for future reference.
urxvt does not support the OSC52 escape sequence by default, which is a pity. However, urxvt is highly extensible through perl scripts, so there are perl scripts out there that add suppport for OSC52. An example is this small script by GitHub user parantapa. With this, you can add support for OSC52 in two simple steps:

*

*Copy the script to ~/.urxvt/ext/52-osc

*Source it in urxvt by adding the following line to your ~/.Xdefaults configuration file: URxvt.perl-ext-common: 52-osc

For completeness and future-proofness, here is the full script.
#! perl

=head1 NAME
52-osc - Implement OSC 32 ; Interact with X11 clipboard
=head1 SYNOPSIS
   urxvt -pe 52-osc
=head1 DESCRIPTION
This extension implements OSC 52 for interacting with system clipboard
Copied from GitHub user parantapa, who also reports most code came from:
http://ailin.tucana.uberspace.de/static/nei/*/Code/urxvt/
=cut

use MIME::Base64;
use Encode;

sub on_osc_seq {
    my ($term, $op, $args) = @_;
    return () unless $op eq 52;

    my ($clip, $data) = split ';', $args, 2;
    if ($data eq '?') {
        my $data_free = $term->selection();
        Encode::_utf8_off($data_free); # XXX
        $term->tt_write("\e]52;$clip;".encode_base64($data_free, '')."\a");
    }
    else {
        my $data_decoded = decode_base64($data);
        Encode::_utf8_on($data_decoded); # XXX
        $term->selection($data_decoded, $clip =~ /c/);
        $term->selection_grab(urxvt::CurrentTime, $clip =~ /c/);
    }

    ()
}


text:
Q: FFMPEG Unable to Decode Quicktime QDMC Stream (No decoder for stream) We are using FFMPEG to convert iPhone video to MP4.  This requires an AAC decoder which is not included in any binary distributions of FFMPEG (due to licensing issues).  The solution is to download the FFMPEG source and compile it yourself.  I've done this, apparently incorrectly, as I cannot decode the audio stream.  I am getting this error:
/usr/ffmpeg_builds/ffmpeg -y -i /home/domain/public_html/wp-content/uploads/celebs/main/step-2.mov -threads 12 -vcodec libx264 -acodec libfdk_aac -b:v 1000k -refs 6 -coder 1 -sc_threshold 40 -flags +loop -me_range 16 -subq 7 -i_qfactor 0.71 -qcomp 0.6 -qdiff 4 -trellis 1 -b:a 128k -pass 1 -passlogfile /tmp/ffmpeg-passes57a054ee917c4ahl3t/pass-57a054ee91965 /home/domain/public_html/wp-content/uploads/celebs/main/testing-5.mp4
ffmpeg version N-81827-g81bab10 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-17)
  configuration: --prefix=/root/ffmpeg_build --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --pkg-config-flags=--static --enable-gpl --enable-nonfree --enable-libfdk-aac --enable-libfreetype --enable-libx264
  libavutil      55. 32.100 / 55. 32.100
  libavcodec     57. 60.100 / 57. 60.100
  libavformat    57. 51.102 / 57. 51.102
  libavdevice    57.  0.102 / 57.  0.102
  libavfilter     6. 63.100 /  6. 63.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  2.100 /  2.  2.100
  libpostproc    54.  0.100 / 54.  0.100
Guessed Channel Layout for Input Stream #0.1 : mono
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/domain/public_html/wp-content/uploads/celebs/main/step-2.mov':
  Metadata:
    creation_time   : 1998-11-04T16:40:13.000000Z
  Duration: 00:01:00.83, start: 0.000000, bitrate: 110 kb/s
    Stream #0:0(eng): Video: svq1 (SVQ1 / 0x31515653), yuv410p, 160x120, 90 kb/s, 7.51 fps, 7.50 tbr, 600 tbn, 600 tbc (default)
    Metadata:
      creation_time   : 1998-11-04T16:40:13.000000Z
      handler_name    : Apple Alias Data Handler
      encoder         : Sorenson Video
    Stream #0:1(eng): Audio: qdmc (QDMC / 0x434D4451), 44100 Hz, mono (default)
    Metadata:
      creation_time   : 1998-11-04T16:40:13.000000Z
      handler_name    : Apple Alias Data Handler
No decoder for stream #0:1, filtering impossible
Error opening filters!

I suspect that I failed to compile and include the correct codec library when I built FFMPEG.  The problem is I don't know which library I should have built/included.  I haven't found anything that says to decode QDMC audio in FFMPEG you need the XXXXX library.
Here's the complete list of decoders that my build supports:
/usr/ffmpeg_builds/ffmpeg -decoders
ffmpeg version N-81827-g81bab10 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-17)
  configuration: --prefix=/root/ffmpeg_build --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --pkg-config-flags=--static --enable-gpl --enable-nonfree --enable-libfdk-aac --enable-libfreetype --enable-libx264
  libavutil      55. 32.100 / 55. 32.100
  libavcodec     57. 60.100 / 57. 60.100
  libavformat    57. 51.102 / 57. 51.102
  libavdevice    57.  0.102 / 57.  0.102
  libavfilter     6. 63.100 /  6. 63.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  2.100 /  2.  2.100
  libpostproc    54.  0.100 / 54.  0.100
Decoders:
 V..... = Video
 A..... = Audio
 S..... = Subtitle
 .F.... = Frame-level multithreading
 ..S... = Slice-level multithreading
 ...X.. = Codec is experimental
 ....B. = Supports draw_horiz_band
 .....D = Supports direct rendering method 1
 ------
 V....D 012v                 Uncompressed 4:2:2 10-bit
 V....D 4xm                  4X Movie
 V....D 8bps                 QuickTime 8BPS video
 V....D aasc                 Autodesk RLE
 VF...D aic                  Apple Intermediate Codec
 V....D alias_pix            Alias/Wavefront PIX image
 V....D amv                  AMV Video
 V....D anm                  Deluxe Paint Animation
 V....D ansi                 ASCII/ANSI art
 VF...D apng                 APNG (Animated Portable Network Graphics) image
 V....D asv1                 ASUS V1
 V....D asv2                 ASUS V2
 V....D aura                 Auravision AURA
 V....D aura2                Auravision Aura 2
 V....D avrn                 Avid AVI Codec
 V....D avrp                 Avid 1:1 10-bit RGB Packer
 V....D avs                  AVS (Audio Video Standard) video
 V....D avui                 Avid Meridien Uncompressed
 V....D ayuv                 Uncompressed packed MS 4:4:4:4
 V....D bethsoftvid          Bethesda VID video
 V....D bfi                  Brute Force & Ignorance
 V....D binkvideo            Bink video
 V....D bintext              Binary text
 V....D bmp                  BMP (Windows and OS/2 bitmap)
 V....D bmv_video            Discworld II BMV video
 V....D brender_pix          BRender PIX image
 V....D c93                  Interplay C93
 V....D cavs                 Chinese AVS (Audio Video Standard) (AVS1-P2, JiZhun profile)
 V....D cdgraphics           CD Graphics video
 V....D cdxl                 Commodore CDXL video
 VF...D cfhd                 Cineform HD
 V....D cinepak              Cinepak
 V....D cljr                 Cirrus Logic AccuPak
 V....D cllc                 Canopus Lossless Codec
 V....D eacmv                Electronic Arts CMV video (codec cmv)
 V....D cpia                 CPiA video format
 V....D camstudio            CamStudio (codec cscd)
 V....D cyuv                 Creative YUV (CYUV)
 V.S..D dds                  DirectDraw Surface image decoder
 V....D dfa                  Chronomaster DFA
 V.S..D dirac                BBC Dirac VC-2
 VFS..D dnxhd                VC3/DNxHD
 V....D dpx                  DPX (Digital Picture Exchange) image
 V....D dsicinvideo          Delphine Software International CIN video
 V.S..D dvvideo              DV (Digital Video)
 V....D dxa                  Feeble Files/ScummVM DXA
 V....D dxtory               Dxtory
 VFS..D dxv                  Resolume DXV
 V....D escape124            Escape 124
 V....D escape130            Escape 130
 VFS..D exr                  OpenEXR image
 VFS..D ffv1                 FFmpeg video codec #1
 VF..BD ffvhuff              Huffyuv FFmpeg variant
 V.S..D fic                  Mirillis FIC
 V....D flashsv              Flash Screen Video v1
 V....D flashsv2             Flash Screen Video v2
 V....D flic                 Autodesk Animator Flic video
 V...BD flv                  FLV / Sorenson Spark / Sorenson H.263 (Flash Video) (codec flv1)
 VF...D fraps                Fraps
 V....D frwu                 Forward Uncompressed
 V....D g2m                  Go2Meeting
 V....D gif                  GIF (Graphics Interchange Format)
 V....D h261                 H.261
 V...BD h263                 H.263 / H.263-1996, H.263+ / H.263-1998 / H.263 version 2
 V...BD h263i                Intel H.263
 V...BD h263p                H.263 / H.263-1996, H.263+ / H.263-1998 / H.263 version 2
 VFS..D h264                 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
 VFS..D hap                  Vidvox Hap decoder
 VFS..D hevc                 HEVC (High Efficiency Video Coding)
 V....D hnm4video            HNM 4 video
 V....D hq_hqa               Canopus HQ/HQA
 V.S..D hqx                  Canopus HQX
 VF..BD huffyuv              Huffyuv / HuffYUV
 V....D idcinvideo           id Quake II CIN video (codec idcin)
 V....D idf                  iCEDraw text
 V....D iff                  IFF ACBM/ANIM/DEEP/ILBM/PBM/RGB8/RGBN (codec iff_ilbm)
 V....D indeo2               Intel Indeo 2
 V....D indeo3               Intel Indeo 3
 V....D indeo4               Intel Indeo Video Interactive 4
 V....D indeo5               Intel Indeo Video Interactive 5
 V....D interplayvideo       Interplay MVE video
 VFS..D jpeg2000             JPEG 2000
 V....D jpegls               JPEG-LS
 V....D jv                   Bitmap Brothers JV video
 V....D kgv1                 Kega Game Video
 V....D kmvc                 Karl Morton's video codec
 VF...D lagarith             Lagarith lossless
 V....D loco                 LOCO
 V....D m101                 Matrox Uncompressed SD
 V....D eamad                Electronic Arts Madcow Video (codec mad)
 VFS..D magicyuv             MagicYUV video
 VF...D mdec                 Sony PlayStation MDEC (Motion DECoder)
 VF...D mimic                Mimic
 V....D mjpeg                MJPEG (Motion JPEG)
 V....D mjpegb               Apple MJPEG-B
 V....D mmvideo              American Laser Games MM Video
 V....D motionpixels         Motion Pixels video
 V.S.BD mpeg1video           MPEG-1 video
 V.S.BD mpeg2video           MPEG-2 video
 V.S.BD mpegvideo            MPEG-1 video (codec mpeg2video)
 VF..BD mpeg4                MPEG-4 part 2
 V....D msa1                 MS ATC Screen
 V...BD msmpeg4v1            MPEG-4 part 2 Microsoft variant version 1
 V...BD msmpeg4v2            MPEG-4 part 2 Microsoft variant version 2
 V...BD msmpeg4              MPEG-4 part 2 Microsoft variant version 3 (codec msmpeg4v3)
 V....D msrle                Microsoft RLE
 V....D mss1                 MS Screen 1
 V....D mss2                 MS Windows Media Video V9 Screen
 V....D msvideo1             Microsoft Video 1
 V....D mszh                 LCL (LossLess Codec Library) MSZH
 V....D mts2                 MS Expression Encoder Screen
 V....D mvc1                 Silicon Graphics Motion Video Compressor 1
 V....D mvc2                 Silicon Graphics Motion Video Compressor 2
 V....D mxpeg                Mobotix MxPEG video
 V....D nuv                  NuppelVideo/RTJPEG
 V....D paf_video            Amazing Studio Packed Animation File Video
 V....D pam                  PAM (Portable AnyMap) image
 V....D pbm                  PBM (Portable BitMap) image
 V....D pcx                  PC Paintbrush PCX image
 V....D pgm                  PGM (Portable GrayMap) image
 V....D pgmyuv               PGMYUV (Portable GrayMap YUV) image
 V....D pictor               Pictor/PC Paint
 VF...D png                  PNG (Portable Network Graphics) image
 V....D ppm                  PPM (Portable PixelMap) image
 V.S..D prores               ProRes
 V.S..D prores_lgpl          Apple ProRes (iCodec Pro) (codec prores)
 V....D ptx                  V.Flash PTX image
 V....D qdraw                Apple QuickDraw
 V....D qpeg                 Q-team QPEG
 V....D qtrle                QuickTime Animation (RLE) video
 V....D r10k                 AJA Kona 10-bit RGB Codec
 V....D r210                 Uncompressed RGB 10-bit
 V..... rawvideo             raw video
 V....D rl2                  RL2 video
 V....D roqvideo             id RoQ video (codec roq)
 V....D rpza                 QuickTime video (RPZA)
 V....D rscc                 innoHeim/Rsupport Screen Capture Codec
 V....D rv10                 RealVideo 1.0
 V....D rv20                 RealVideo 2.0
 VF...D rv30                 RealVideo 3.0
 VF...D rv40                 RealVideo 4.0
 V....D sanm                 LucasArts SANM/Smush video
 V....D screenpresso         Screenpresso
 V....D sgi                  SGI image
 V....D sgirle               Silicon Graphics RLE 8-bit video
 VF...D sheervideo           BitJazz SheerVideo
 V....D smackvid             Smacker video (codec smackvideo)
 V....D smc                  QuickTime Graphics (SMC)
 V..... smvjpeg              SMV JPEG
 V....D snow                 Snow
 V....D sp5x                 Sunplus JPEG (SP5X)
 V....D sunrast              Sun Rasterfile image
 V....D svq1                 Sorenson Vector Quantizer 1 / Sorenson Video 1 / SVQ1
 V...BD svq3                 Sorenson Vector Quantizer 3 / Sorenson Video 3 / SVQ3
 V....D targa                Truevision Targa image
 V....D targa_y216           Pinnacle TARGA CineWave YUV16
 V....D tdsc                 TDSC
 V....D eatgq                Electronic Arts TGQ video (codec tgq)
 V....D eatgv                Electronic Arts TGV video (codec tgv)
 VF..BD theora               Theora
 V....D thp                  Nintendo Gamecube THP video
 V....D tiertexseqvideo      Tiertex Limited SEQ video
 VF...D tiff                 TIFF image
 V....D tmv                  8088flex TMV
 V....D eatqi                Electronic Arts TQI Video (codec tqi)
 V....D truemotion1          Duck TrueMotion 1.0
 V....D truemotion2          Duck TrueMotion 2.0
 V....D truemotion2rt        Duck TrueMotion 2.0 Real Time
 V....D camtasia             TechSmith Screen Capture Codec (codec tscc)
 V....D tscc2                TechSmith Screen Codec 2
 V....D txd                  Renderware TXD (TeXture Dictionary) image
 V....D ultimotion           IBM UltiMotion (codec ulti)
 VF...D utvideo              Ut Video
 V....D v210                 Uncompressed 4:2:2 10-bit
 V....D v210x                Uncompressed 4:2:2 10-bit
 V....D v308                 Uncompressed packed 4:4:4
 V....D v408                 Uncompressed packed QT 4:4:4:4
 V....D v410                 Uncompressed 4:4:4 10-bit
 V....D vb                   Beam Software VB
 VF...D vble                 VBLE Lossless Codec
 V....D vc1                  SMPTE VC-1
 V....D vc1image             Windows Media Video 9 Image v2
 V....D vcr1                 ATI VCR1
 V....D xl                   Miro VideoXL (codec vixl)
 V....D vmdvideo             Sierra VMD video
 V....D vmnc                 VMware Screen Codec / VMware Video
 VF..BD vp3                  On2 VP3
 V....D vp5                  On2 VP5
 V....D vp6                  On2 VP6
 V.S..D vp6a                 On2 VP6 (Flash version, with alpha channel)
 V....D vp6f                 On2 VP6 (Flash version)
 V....D vp7                  On2 VP7
 VFS..D vp8                  On2 VP8
 VF...D vp9                  Google VP9
 VF...D webp                 WebP image
 V...BD wmv1                 Windows Media Video 7
 V...BD wmv2                 Windows Media Video 8
 V....D wmv3                 Windows Media Video 9
 V....D wmv3image            Windows Media Video 9 Image
 V....D wnv1                 Winnov WNV1
 V....D vqavideo             Westwood Studios VQA (Vector Quantized Animation) video (codec ws_vqa)
 V....D xan_wc3              Wing Commander III / Xan
 V....D xan_wc4              Wing Commander IV / Xxan
 V....D xbin                 eXtended BINary text
 V....D xbm                  XBM (X BitMap) image
 V..... xface                X-face image
 V....D xwd                  XWD (X Window Dump) image
 V....D y41p                 Uncompressed YUV 4:1:1 12-bit
 V....D ylc                  YUY2 Lossless Codec
 V..... yop                  Psygnosis YOP Video
 V....D yuv4                 Uncompressed packed 4:2:0
 V....D zerocodec            ZeroCodec Lossless Video
 V....D zlib                 LCL (LossLess Codec Library) ZLIB
 V....D zmbv                 Zip Motion Blocks Video
 A....D 8svx_exp             8SVX exponential
 A....D 8svx_fib             8SVX fibonacci
 A....D aac                  AAC (Advanced Audio Coding)
 A....D aac_fixed            AAC (Advanced Audio Coding) (codec aac)
 A....D libfdk_aac           Fraunhofer FDK AAC (codec aac)
 A....D aac_latm             AAC LATM (Advanced Audio Coding LATM syntax)
 A....D ac3                  ATSC A/52A (AC-3)
 A....D ac3_fixed            ATSC A/52A (AC-3) (codec ac3)
 A....D adpcm_4xm            ADPCM 4X Movie
 A....D adpcm_adx            SEGA CRI ADX ADPCM
 A....D adpcm_afc            ADPCM Nintendo Gamecube AFC
 A....D adpcm_aica           ADPCM Yamaha AICA
 A....D adpcm_ct             ADPCM Creative Technology
 A....D adpcm_dtk            ADPCM Nintendo Gamecube DTK
 A....D adpcm_ea             ADPCM Electronic Arts
 A....D adpcm_ea_maxis_xa    ADPCM Electronic Arts Maxis CDROM XA
 A....D adpcm_ea_r1          ADPCM Electronic Arts R1
 A....D adpcm_ea_r2          ADPCM Electronic Arts R2
 A....D adpcm_ea_r3          ADPCM Electronic Arts R3
 A....D adpcm_ea_xas         ADPCM Electronic Arts XAS
 A....D g722                 G.722 ADPCM (codec adpcm_g722)
 A....D g726                 G.726 ADPCM (codec adpcm_g726)
 A....D g726le               G.726 ADPCM little-endian (codec adpcm_g726le)
 A....D adpcm_ima_amv        ADPCM IMA AMV
 A....D adpcm_ima_apc        ADPCM IMA CRYO APC
 A....D adpcm_ima_dat4       ADPCM IMA Eurocom DAT4
 A....D adpcm_ima_dk3        ADPCM IMA Duck DK3
 A....D adpcm_ima_dk4        ADPCM IMA Duck DK4
 A....D adpcm_ima_ea_eacs    ADPCM IMA Electronic Arts EACS
 A....D adpcm_ima_ea_sead    ADPCM IMA Electronic Arts SEAD
 A....D adpcm_ima_iss        ADPCM IMA Funcom ISS
 A....D adpcm_ima_oki        ADPCM IMA Dialogic OKI
 A....D adpcm_ima_qt         ADPCM IMA QuickTime
 A....D adpcm_ima_rad        ADPCM IMA Radical
 A....D adpcm_ima_smjpeg     ADPCM IMA Loki SDL MJPEG
 A....D adpcm_ima_wav        ADPCM IMA WAV
 A....D adpcm_ima_ws         ADPCM IMA Westwood
 A....D adpcm_ms             ADPCM Microsoft
 A....D adpcm_mtaf           ADPCM MTAF
 A....D adpcm_psx            ADPCM Playstation
 A....D adpcm_sbpro_2        ADPCM Sound Blaster Pro 2-bit
 A....D adpcm_sbpro_3        ADPCM Sound Blaster Pro 2.6-bit
 A....D adpcm_sbpro_4        ADPCM Sound Blaster Pro 4-bit
 A....D adpcm_swf            ADPCM Shockwave Flash
 A....D adpcm_thp            ADPCM Nintendo THP
 A....D adpcm_thp_le         ADPCM Nintendo THP (little-endian)
 A....D adpcm_vima           LucasArts VIMA audio
 A....D adpcm_xa             ADPCM CDROM XA
 A....D adpcm_yamaha         ADPCM Yamaha
 AF...D alac                 ALAC (Apple Lossless Audio Codec)
 A....D amrnb                AMR-NB (Adaptive Multi-Rate NarrowBand) (codec amr_nb)
 A....D amrwb                AMR-WB (Adaptive Multi-Rate WideBand) (codec amr_wb)
 A....D ape                  Monkey's Audio
 A....D atrac1               ATRAC1 (Adaptive TRansform Acoustic Coding)
 A....D atrac3               ATRAC3 (Adaptive TRansform Acoustic Coding 3)
 A....D atrac3plus           ATRAC3+ (Adaptive TRansform Acoustic Coding 3+) (codec atrac3p)
 A....D on2avc               On2 Audio for Video Codec (codec avc)
 A....D binkaudio_dct        Bink Audio (DCT)
 A....D binkaudio_rdft       Bink Audio (RDFT)
 A....D bmv_audio            Discworld II BMV audio
 A....D comfortnoise         RFC 3389 comfort noise generator
 A....D cook                 Cook / Cooker / Gecko (RealAudio G2)
 A..... dsd_lsbf             DSD (Direct Stream Digital), least significant bit first
 A..... dsd_lsbf_planar      DSD (Direct Stream Digital), least significant bit first, planar
 A..... dsd_msbf             DSD (Direct Stream Digital), most significant bit first
 A..... dsd_msbf_planar      DSD (Direct Stream Digital), most significant bit first, planar
 A....D dsicinaudio          Delphine Software International CIN audio
 A....D dss_sp               Digital Speech Standard - Standard Play mode (DSS SP)
 A....D dst                  DST (Digital Stream Transfer)
 A....D dca                  DCA (DTS Coherent Acoustics) (codec dts)
 A....D dvaudio              Ulead DV Audio
 A....D eac3                 ATSC A/52B (AC-3, E-AC-3)
 A....D evrc                 EVRC (Enhanced Variable Rate Codec)
 AF...D flac                 FLAC (Free Lossless Audio Codec)
 A....D g723_1               G.723.1
 A....D g729                 G.729
 A....D gsm                  GSM
 A....D gsm_ms               GSM Microsoft variant
 A....D iac                  IAC (Indeo Audio Coder)
 A....D imc                  IMC (Intel Music Coder)
 A....D interplay_dpcm       DPCM Interplay
 A....D interplayacm         Interplay ACM
 A....D mace3                MACE (Macintosh Audio Compression/Expansion) 3:1
 A....D mace6                MACE (Macintosh Audio Compression/Expansion) 6:1
 A....D metasound            Voxware MetaSound
 A....D mlp                  MLP (Meridian Lossless Packing)
 A....D mp1                  MP1 (MPEG audio layer 1)
 A....D mp1float             MP1 (MPEG audio layer 1) (codec mp1)
 A....D mp2                  MP2 (MPEG audio layer 2)
 A....D mp2float             MP2 (MPEG audio layer 2) (codec mp2)
 A....D mp3                  MP3 (MPEG audio layer 3)
 A....D mp3float             MP3 (MPEG audio layer 3) (codec mp3)
 A....D mp3adu               ADU (Application Data Unit) MP3 (MPEG audio layer 3)
 A....D mp3adufloat          ADU (Application Data Unit) MP3 (MPEG audio layer 3) (codec mp3adu)
 A....D mp3on4               MP3onMP4
 A....D mp3on4float          MP3onMP4 (codec mp3on4)
 A....D als                  MPEG-4 Audio Lossless Coding (ALS) (codec mp4als)
 A....D mpc7                 Musepack SV7 (codec musepack7)
 A....D mpc8                 Musepack SV8 (codec musepack8)
 A....D nellymoser           Nellymoser Asao
 A....D opus                 Opus
 A....D paf_audio            Amazing Studio Packed Animation File Audio
 A....D pcm_alaw             PCM A-law / G.711 A-law
 A....D pcm_bluray           PCM signed 16|20|24-bit big-endian for Blu-ray media
 A....D pcm_dvd              PCM signed 16|20|24-bit big-endian for DVD media
 A....D pcm_f32be            PCM 32-bit floating point big-endian
 A....D pcm_f32le            PCM 32-bit floating point little-endian
 A....D pcm_f64be            PCM 64-bit floating point big-endian
 A....D pcm_f64le            PCM 64-bit floating point little-endian
 A....D pcm_lxf              PCM signed 20-bit little-endian planar
 A....D pcm_mulaw            PCM mu-law / G.711 mu-law
 A....D pcm_s16be            PCM signed 16-bit big-endian
 A....D pcm_s16be_planar     PCM signed 16-bit big-endian planar
 A....D pcm_s16le            PCM signed 16-bit little-endian
 A....D pcm_s16le_planar     PCM signed 16-bit little-endian planar
 A....D pcm_s24be            PCM signed 24-bit big-endian
 A....D pcm_s24daud          PCM D-Cinema audio signed 24-bit
 A....D pcm_s24le            PCM signed 24-bit little-endian
 A....D pcm_s24le_planar     PCM signed 24-bit little-endian planar
 A....D pcm_s32be            PCM signed 32-bit big-endian
 A....D pcm_s32le            PCM signed 32-bit little-endian
 A....D pcm_s32le_planar     PCM signed 32-bit little-endian planar
 A....D pcm_s64be            PCM signed 64-bit big-endian
 A....D pcm_s64le            PCM signed 64-bit little-endian
 A....D pcm_s8               PCM signed 8-bit
 A....D pcm_s8_planar        PCM signed 8-bit planar
 A....D pcm_u16be            PCM unsigned 16-bit big-endian
 A....D pcm_u16le            PCM unsigned 16-bit little-endian
 A....D pcm_u24be            PCM unsigned 24-bit big-endian
 A....D pcm_u24le            PCM unsigned 24-bit little-endian
 A....D pcm_u32be            PCM unsigned 32-bit big-endian
 A....D pcm_u32le            PCM unsigned 32-bit little-endian
 A....D pcm_u8               PCM unsigned 8-bit
 A....D pcm_zork             PCM Zork
 A....D qcelp                QCELP / PureVoice
 A....D qdm2                 QDesign Music Codec 2
 A....D real_144             RealAudio 1.0 (14.4K) (codec ra_144)
 A....D real_288             RealAudio 2.0 (28.8K) (codec ra_288)
 A....D ralf                 RealAudio Lossless
 A....D roq_dpcm             DPCM id RoQ
 A....D s302m                SMPTE 302M
 A....D sdx2_dpcm            DPCM Squareroot-Delta-Exact
 A....D shorten              Shorten
 A....D sipr                 RealAudio SIPR / ACELP.NET
 A....D smackaud             Smacker audio (codec smackaudio)
 A....D sol_dpcm             DPCM Sol
 A..X.D sonic                Sonic
 AF...D tak                  TAK (Tom's lossless Audio Kompressor)
 A....D truehd               TrueHD
 A....D truespeech           DSP Group TrueSpeech
 AF...D tta                  TTA (True Audio)
 A....D twinvq               VQF TwinVQ
 A....D vmdaudio             Sierra VMD audio
 A....D vorbis               Vorbis
 A....D wavesynth            Wave synthesis pseudo-codec
 AF...D wavpack              WavPack
 A....D ws_snd1              Westwood Audio (SND1) (codec westwood_snd1)
 A....D wmalossless          Windows Media Audio Lossless
 A....D wmapro               Windows Media Audio 9 Professional
 A....D wmav1                Windows Media Audio 1
 A....D wmav2                Windows Media Audio 2
 A....D wmavoice             Windows Media Audio Voice
 A....D xan_dpcm             DPCM Xan
 A....D xma1                 Xbox Media Audio 1
 A....D xma2                 Xbox Media Audio 2
 S..... ssa                  ASS (Advanced SubStation Alpha) subtitle (codec ass)
 S..... ass                  ASS (Advanced SubStation Alpha) subtitle
 S..... dvbsub               DVB subtitles (codec dvb_subtitle)
 S..... dvdsub               DVD subtitles (codec dvd_subtitle)
 S..... cc_dec               Closed Caption (EIA-608 / CEA-708) Decoder (codec eia_608)
 S..... pgssub               HDMV Presentation Graphic Stream subtitles (codec hdmv_pgs_subtitle)
 S..... jacosub              JACOsub subtitle
 S..... microdvd             MicroDVD subtitle
 S..... mov_text             3GPP Timed Text subtitle
 S..... mpl2                 MPL2 subtitle
 S..... pjs                  PJS subtitle
 S..... realtext             RealText subtitle
 S..... sami                 SAMI subtitle
 S..... stl                  Spruce subtitle format
 S..... srt                  SubRip subtitle (codec subrip)
 S..... subrip               SubRip subtitle
 S..... subviewer            SubViewer subtitle
 S..... subviewer1           SubViewer1 subtitle
 S..... text                 Raw text subtitle
 S..... vplayer              VPlayer subtitle
 S..... webvtt               WebVTT subtitle
 S..... xsub                 XSUB

Any idea what I did wrong when building FFMPEG?
Here's a link to the video file that caused the problem: step-2.mov

A: FFmpeg version 3.3 and above
QDMC is supported by both AudioToolbox (Apple OSes only) and FFmpeg's native QDMC decoder.
To use FFmpeg's native QDMC decoder, use decoder strings qdmc (or qdm2 for version 2) (e.g., -c:a qdmc).
To use the AudioToolbox QDMC decoder, use decoder strings qdmc_at (or qdm2_at for version 2) (e.g., -c:a qdmc_at).
Go give Mulvya a +1 for pointing out the new QDMC decoder that Paul B Mahol added to FFmpeg.

FFmpeg version 3.2.x and below
FFmpeg supports decoding QDMC, but only through the third party framework named AudioToolbox. AudioToolbox is created by Apple and is only available on Apple operating systems (iOS, macOS, and tvOS).
This means that you can't decode QDMC using FFmpeg, since you're using CentOS.

A: A native QDMC decoder was added to FFmpeg on 7th Jan 2017. With that, you should be able to decode on any platform.


text:
Q: UILabel text issue i have an issue with the label text.
the label text not dislay all the text thats he get.
i put a NSlog and i were able to see all the text, but the label for some reasom cant.
my code:
-(void)viewDidLoad
{

    [super viewDidLoad];

    [_scroller setScrollEnabled:YES];
    [_scroller setContentSize:CGSizeMake(250, 420)];

    self.description = [_description stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];

    if ([self.description isEqualToString:@""]) {
        self.description = @"ללא תקציר";
    }
    [self positionLabel:self.lblTitle withText:self.stitle withY:10];
    [self positionLabel:self.lblPubDate withText:self.pubDate withY:CGRectGetMaxY(self.lblTitle.frame)+10 ];
    [self positionLabel:self.lblDescription withText:self.description withY:CGRectGetMaxY(self.lblPubDate.frame)+25 ];

-(void)positionLabel:(UILabel*)lbl withText:(NSString*)text withY:(CGFloat)Y
{
    lbl.textAlignment = UITextAlignmentRight;
    lbl.text = text;
    lbl.numberOfLines = 0;
    lbl.lineBreakMode = UILineBreakModeWordWrap;
    CGSize size = [self calculateSize:lbl];
    [lbl setFrame:CGRectMake(10 , Y , (size.width>300)?size.width:300 , size.height)];
    [_scroller addSubview:lbl];

}

-(CGSize)calculateSize:(UILabel*)lbl
{
    CGSize size = [lbl.text sizeWithFont:lbl.font
                       constrainedToSize:CGSizeMake(280, MAXFLOAT)
                           lineBreakMode:UILineBreakModeWordWrap];
    return size;
}

EDIT
here is the NSlog text:

and the UILabel text:

the marked text at the NSLog is missing the UILabel..
sorry for the language.
what could cause the problem? i gooing crazy, i tried everything!!
Thanks in advance!

A: There are only a few reasons why a label won't display all the text

*

*frame size, it looks like you cover that especaily since you can see
some of the text

*The font/size/wording is too big and in turn doesn't have enough space to show the text.

In your case I suggest looking at the font or font size.

A: What text are you seeing and what are clipped (title, pub date, description)?
Also you should to set content size of scroller after all labels are placed:
CGFloat contentWidth = max X of labels frames;
CGFloat contentHeight = CGRectGetMaxY(self.lblDescription.frame);
[_scroller setContentSize:CGSizeMake(contentWidth, contentHeight)];


text:
Q: Looping a macro for copy & pasting then printing I need to create a loop for this macro:
Sub Site_No()
'   Site_No Macro
'   Keyboard Shortcut: Ctrl+Shift+J

    Range("D2").Select
    Selection.Copy
    Sheets("Spray Sheet").Select
    Range("F5:J6").Select
    ActiveSheet.Paste
    ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
        IgnorePrintAreas:=False
End Sub

Ideally I'd like to loop it through from D2 - D79.
If someone could show me where to place the loop i'd be very grateful
Ollie

A: I will not provide you the code, but will give you some hints to achieve your goal.
Sub Site_No()
'
' Start your loop here from D1 to D79. I suggest to use Cells(Row, Column) notation.
   Range("D2").Select 'There is no need to select the cell
   Selection.Copy 'Instead of Copy, you can use .Value
   Sheets("Spray Sheet").Select 'There is no need to select the Sheet
   Range("F5:J6").Select 'There is no need to select the cell
   ActiveSheet.Paste 'You don't need to paste the value.
 'End loop here if you need to print only once.

ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
    IgnorePrintAreas:=False
End Sub

You can see this question for an example to "copy/paste" cell content using .Value.

Copy/Paste Loop through worksheets to consolidate

A: Something like this should be enough:
Public Sub TestMe()
    Dim lngRow      As Long
    For lngRow = 2 To 79
        ActiveSheet.Cells(lngRow, "D") = Worksheets("Spray Sheet").Cells(lngRow, "F")
    Next lngRow
End Sub

Using select and activate is something that you should try to avoid as much as possible - How to avoid using Select in Excel VBA (said by the guy who used ActiveSheet in his code).


text:
Q: Can I uninstall Ubuntu Software-Centre from 18.04? I have just updated from 16.04LTS to 18.04LTS & now have 2 software options: The clunky old Ubuntu Software-Centre & Ubuntu Software. Is it recommended and/or safe (wise?) to purge the software-centre & only use Ubuntu Software?

A: You can simulate software-center removal to see what will be impacted:
sudo apt -s remove software-center

I don't have it installed so cannot show you what removal would look like.
A simulated install looks like this though:
$ sudo apt -s install software-center
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  apt-xapian-index gir1.2-gmenu-3.0 libxapian-1.3-5 oneconf oneconf-common python-apt
  python-aptdaemon python-aptdaemon.gtk3widgets python-attr python-blinker python-bs4
  python-cffi-backend python-chardet python-cryptography python-cups python-dbus python-debian
  python-debtagshw python-defer python-dirspec python-enum34 python-gi-cairo python-html5lib
  python-httplib2 python-idna python-ipaddress python-jwt python-lxml python-oauthlib python-oneconf
  python-openssl python-pam python-piston-mini-client python-pkg-resources python-pyasn1
  python-pyasn1-modules python-serial python-service-identity python-six python-twisted-bin
  python-twisted-core python-twisted-web python-ubuntu-sso-client python-xapian python-xdg
  python-zope.interface python3-oneconf python3-piston-mini-client python3-xapian1.3
  software-center-aptdaemon-plugins ubuntu-sso-client
Suggested packages:
  xapian-tools python-apt-dbg python-apt-doc python-blinker-doc python-cryptography-doc
  python-cryptography-vectors python-dbus-doc python-dbus-dbg python-enum34-doc python-genshi
  python-crypto python-lxml-dbg python-lxml-doc python-openssl-doc python-openssl-dbg python-pam-dbg
  python-setuptools python-wxgtk3.0 | python-wxgtk python-twisted-bin-dbg python-tk python-glade2
  python-qt3 python-wxgtk3.0 xapian-doc ubuntu-sso-client-gui
The following NEW packages will be installed:
  apt-xapian-index gir1.2-gmenu-3.0 libxapian-1.3-5 oneconf oneconf-common python-apt
  python-aptdaemon python-aptdaemon.gtk3widgets python-attr python-blinker python-bs4
  python-cffi-backend python-chardet python-cryptography python-cups python-dbus python-debian
  python-debtagshw python-defer python-dirspec python-enum34 python-gi-cairo python-html5lib
  python-httplib2 python-idna python-ipaddress python-jwt python-lxml python-oauthlib python-oneconf
  python-openssl python-pam python-piston-mini-client python-pkg-resources python-pyasn1
  python-pyasn1-modules python-serial python-service-identity python-six python-twisted-bin
  python-twisted-core python-twisted-web python-ubuntu-sso-client python-xapian python-xdg
  python-zope.interface python3-oneconf python3-piston-mini-client python3-xapian1.3 software-center
  software-center-aptdaemon-plugins ubuntu-sso-client
0 upgraded, 52 newly installed, 0 to remove and 0 not upgraded.
Inst python-dbus (1.2.0-3 Ubuntu:16.04/xenial [amd64])
Inst python-dirspec (13.10-1ubuntu1 Ubuntu:16.04/xenial [all])
Inst python-httplib2 (0.9.1+dfsg-1 Ubuntu:16.04/xenial [all])
Inst python-blinker (1.3.dfsg2-1build1 Ubuntu:16.04/xenial [all])
Inst python-cffi-backend (1.5.2-1ubuntu1 Ubuntu:16.04/xenial [amd64])
Inst python-enum34 (1.1.2-1 Ubuntu:16.04/xenial [all])
Inst python-idna (2.0-3 Ubuntu:16.04/xenial [all])
Inst python-ipaddress (1.0.16-1 Ubuntu:16.04/xenial [all])
Inst python-pkg-resources (20.7.0-1 Ubuntu:16.04/xenial [all])
Inst python-pyasn1 (0.1.9-1 Ubuntu:16.04/xenial [all])
Inst python-six (1.10.0-3 Ubuntu:16.04/xenial [all])
Inst python-cryptography (1.2.3-1ubuntu0.1 Ubuntu:16.04/xenial-updates, Ubuntu:16.04/xenial-security [amd64])
Inst python-jwt (1.3.0-1ubuntu0.1 Ubuntu:16.04/xenial-updates, Ubuntu:16.04/xenial-security [all])
Inst python-oauthlib (1.0.3-1 Ubuntu:16.04/xenial [all])
Inst python-openssl (0.15.1-2build1 Ubuntu:16.04/xenial [all])
Inst python-twisted-bin (16.0.0-1ubuntu0.2 Ubuntu:16.04/xenial-updates, Ubuntu:16.04/xenial-security [amd64])
Inst python-zope.interface (4.1.3-1build1 Ubuntu:16.04/xenial [amd64])
Inst python-attr (15.2.0-1 Ubuntu:16.04/xenial [all])
Inst python-pyasn1-modules (0.0.7-0.1 Ubuntu:16.04/xenial [all])
Inst python-service-identity (16.0.0-2 Ubuntu:16.04/xenial [all])
Inst python-twisted-core (16.0.0-1ubuntu0.2 Ubuntu:16.04/xenial-updates, Ubuntu:16.04/xenial-security [all])
Inst python-twisted-web (16.0.0-1ubuntu0.2 Ubuntu:16.04/xenial-updates, Ubuntu:16.04/xenial-security [all])
Inst python-ubuntu-sso-client (13.10-0ubuntu11 Ubuntu:16.04/xenial [all])
Inst ubuntu-sso-client (13.10-0ubuntu11 Ubuntu:16.04/xenial [all])
Inst libxapian-1.3-5 (1.3.4-0ubuntu6 Ubuntu:16.04/xenial [amd64])
Inst python3-xapian1.3 (1.3.4-0ubuntu1 Ubuntu:16.04/xenial [amd64])
Inst apt-xapian-index (0.47ubuntu8.4 Ubuntu:16.04/xenial-updates [all])
Inst gir1.2-gmenu-3.0 (3.13.3-6ubuntu3.1 Ubuntu:16.04/xenial-updates [amd64])
Inst python-apt (1.1.0~beta1ubuntu0.16.04.2 Ubuntu:16.04/xenial-updates [amd64])
Inst python-bs4 (4.4.1-1 Ubuntu:16.04/xenial [all])
Inst python-chardet (2.3.0-2 Ubuntu:16.04/xenial [all])
Inst python-cups (1.9.73-0ubuntu2 Ubuntu:16.04/xenial [amd64])
Inst python-debian (0.1.27ubuntu2 Ubuntu:16.04/xenial [all])
Inst python-debtagshw (2.0.1ubuntu6 Ubuntu:16.04/xenial [all])
Inst python-gi-cairo (3.20.0-0ubuntu1 Ubuntu:16.04/xenial [amd64])
Inst python-html5lib (0.999-4 Ubuntu:16.04/xenial [all])
Inst python-lxml (3.5.0-1build1 Ubuntu:16.04/xenial [amd64])
Inst python-pam (0.4.2-13.2ubuntu2 Ubuntu:16.04/xenial [amd64])
Inst python-serial (3.0.1-1 Ubuntu:16.04/xenial [all])
Inst python-xapian (1.2.22-2build1 Ubuntu:16.04/xenial [amd64])
Inst python-xdg (0.25-4 Ubuntu:16.04/xenial [all])
Inst python-piston-mini-client (0.7.5-0ubuntu2 Ubuntu:16.04/xenial [all])
Inst software-center-aptdaemon-plugins (0.1.6build1 Ubuntu:16.04/xenial [all])
Inst python-defer (1.0.6-2build1 Ubuntu:16.04/xenial [all])
Inst python-aptdaemon (1.1.1+bzr982-0ubuntu14 Ubuntu:16.04/xenial [all])
Inst python-aptdaemon.gtk3widgets (1.1.1+bzr982-0ubuntu14 Ubuntu:16.04/xenial [all])
Inst oneconf-common (0.3.9 Ubuntu:16.04/xenial [all])
Inst python3-piston-mini-client (0.7.5-0ubuntu2 Ubuntu:16.04/xenial [all])
Inst python3-oneconf (0.3.9 Ubuntu:16.04/xenial [all])
Inst oneconf (0.3.9 Ubuntu:16.04/xenial [all])
Inst python-oneconf (0.3.9 Ubuntu:16.04/xenial [all])
Inst software-center (16.01+16.04.20160420 Ubuntu:16.04/xenial [all])
Conf python-dbus (1.2.0-3 Ubuntu:16.04/xenial [amd64])
Conf python-dirspec (13.10-1ubuntu1 Ubuntu:16.04/xenial [all])
Conf python-httplib2 (0.9.1+dfsg-1 Ubuntu:16.04/xenial [all])
Conf python-blinker (1.3.dfsg2-1build1 Ubuntu:16.04/xenial [all])
Conf python-cffi-backend (1.5.2-1ubuntu1 Ubuntu:16.04/xenial [amd64])
Conf python-enum34 (1.1.2-1 Ubuntu:16.04/xenial [all])
Conf python-idna (2.0-3 Ubuntu:16.04/xenial [all])
Conf python-ipaddress (1.0.16-1 Ubuntu:16.04/xenial [all])
Conf python-pkg-resources (20.7.0-1 Ubuntu:16.04/xenial [all])
Conf python-pyasn1 (0.1.9-1 Ubuntu:16.04/xenial [all])
Conf python-six (1.10.0-3 Ubuntu:16.04/xenial [all])
Conf python-cryptography (1.2.3-1ubuntu0.1 Ubuntu:16.04/xenial-updates, Ubuntu:16.04/xenial-security [amd64])
Conf python-jwt (1.3.0-1ubuntu0.1 Ubuntu:16.04/xenial-updates, Ubuntu:16.04/xenial-security [all])
Conf python-oauthlib (1.0.3-1 Ubuntu:16.04/xenial [all])
Conf python-openssl (0.15.1-2build1 Ubuntu:16.04/xenial [all])
Conf python-twisted-bin (16.0.0-1ubuntu0.2 Ubuntu:16.04/xenial-updates, Ubuntu:16.04/xenial-security [amd64])
Conf python-zope.interface (4.1.3-1build1 Ubuntu:16.04/xenial [amd64])
Conf python-attr (15.2.0-1 Ubuntu:16.04/xenial [all])
Conf python-pyasn1-modules (0.0.7-0.1 Ubuntu:16.04/xenial [all])
Conf python-service-identity (16.0.0-2 Ubuntu:16.04/xenial [all])
Conf python-twisted-core (16.0.0-1ubuntu0.2 Ubuntu:16.04/xenial-updates, Ubuntu:16.04/xenial-security [all])
Conf python-twisted-web (16.0.0-1ubuntu0.2 Ubuntu:16.04/xenial-updates, Ubuntu:16.04/xenial-security [all])
Conf python-ubuntu-sso-client (13.10-0ubuntu11 Ubuntu:16.04/xenial [all])
Conf ubuntu-sso-client (13.10-0ubuntu11 Ubuntu:16.04/xenial [all])
Conf libxapian-1.3-5 (1.3.4-0ubuntu6 Ubuntu:16.04/xenial [amd64])
Conf python3-xapian1.3 (1.3.4-0ubuntu1 Ubuntu:16.04/xenial [amd64])
Conf apt-xapian-index (0.47ubuntu8.4 Ubuntu:16.04/xenial-updates [all])
Conf gir1.2-gmenu-3.0 (3.13.3-6ubuntu3.1 Ubuntu:16.04/xenial-updates [amd64])
Conf python-apt (1.1.0~beta1ubuntu0.16.04.2 Ubuntu:16.04/xenial-updates [amd64])
Conf python-bs4 (4.4.1-1 Ubuntu:16.04/xenial [all])
Conf python-chardet (2.3.0-2 Ubuntu:16.04/xenial [all])
Conf python-cups (1.9.73-0ubuntu2 Ubuntu:16.04/xenial [amd64])
Conf python-debian (0.1.27ubuntu2 Ubuntu:16.04/xenial [all])
Conf python-debtagshw (2.0.1ubuntu6 Ubuntu:16.04/xenial [all])
Conf python-gi-cairo (3.20.0-0ubuntu1 Ubuntu:16.04/xenial [amd64])
Conf python-html5lib (0.999-4 Ubuntu:16.04/xenial [all])
Conf python-lxml (3.5.0-1build1 Ubuntu:16.04/xenial [amd64])
Conf python-pam (0.4.2-13.2ubuntu2 Ubuntu:16.04/xenial [amd64])
Conf python-serial (3.0.1-1 Ubuntu:16.04/xenial [all])
Conf python-xapian (1.2.22-2build1 Ubuntu:16.04/xenial [amd64])
Conf python-xdg (0.25-4 Ubuntu:16.04/xenial [all])
Conf python-piston-mini-client (0.7.5-0ubuntu2 Ubuntu:16.04/xenial [all])
Conf software-center-aptdaemon-plugins (0.1.6build1 Ubuntu:16.04/xenial [all])
Conf python-defer (1.0.6-2build1 Ubuntu:16.04/xenial [all])
Conf python-aptdaemon (1.1.1+bzr982-0ubuntu14 Ubuntu:16.04/xenial [all])
Conf python-aptdaemon.gtk3widgets (1.1.1+bzr982-0ubuntu14 Ubuntu:16.04/xenial [all])
Conf oneconf-common (0.3.9 Ubuntu:16.04/xenial [all])
Conf python3-piston-mini-client (0.7.5-0ubuntu2 Ubuntu:16.04/xenial [all])
Conf python3-oneconf (0.3.9 Ubuntu:16.04/xenial [all])
Conf oneconf (0.3.9 Ubuntu:16.04/xenial [all])
Conf python-oneconf (0.3.9 Ubuntu:16.04/xenial [all])
Conf software-center (16.01+16.04.20160420 Ubuntu:16.04/xenial [all])

As you can see it has a great number of dependencies. By comparison ubuntu-software has none that would be removed:
$ sudo apt -s remove ubuntu-software
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  ubuntu-software
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Remv ubuntu-software [3.20.5-0ubuntu0.16.04.11]


text:
Q: jQuery UI resizable changes height when resizing width I have a very simple DIV element that I'm trying to resize and drag horizontally. It works fine but the height of the DIV element is also changed by jQuery UI. I don't understand why.
Anyone an idea?
JS code:

$('.task')
    .draggable({
        axis: 'x'
    })
    .resizable({
        containment: 'parent',
        handles: 'e, w'
    });

HTML code:

CSS code:

li {
  height: 20px;
  line-height: 20px;
  list-style: none;
}

.task {
  height: 16px;
  margin-top: 2px;
  position: relative;
}

.task span {
  display: block;
  height: 16px;
  position: absolute;
  z-index: 10;
}

.task .handle-move {
  bottom: 0;
  cursor: move;
  left: 10px;
  right: 10px;
  top: 0;
  z-index:1;
}

.task .ui-resizable-handle {
  background-color: pink;
  cursor: e-resize;
  height: 16px;
  position: absolute;
  width: 10px;
}

.task .ui-resizable-w {
  left: 0;
}

.task .ui-resizable-e {
  right: 0;
}

.status-green {
  background-color: green;
}

A: From my experience, resizable-function fails trying to manage the "box-sizing" css-property. Try using
box-sizing: border-box;

or make an inner container for the padding.


text:
Q: What package does this symbol come from? What package does this symbol come from? I've tried Detexify without success.

A: \documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{calligra}
\begin{document}

\textcalligra{E}

\end{document}

See http://www.tug.dk/FontCatalogue/calligraphicalfonts.html
Although possible, the font is not suitable for math scripts. This is the test code for math:
\documentclass{article}
\usepackage[T1]{fontenc}
\DeclareFontFamily{T1}{mcalligra}{}
\DeclareFontShape{T1}{mcalligra}{m}{n}{<-> s * callig15}{}
\DeclareSymbolFont{calligra}{T1}{mcalligra}{m}{n}
\DeclareSymbolFontAlphabet{\mathscr}{calligra}
\begin{document}

$x \in \mathscr{E}$

\end{document}

A: the font in question is definitively (a modified) "english script".  here is an image showing a sample that includes the E.
the design of "english script" was originally from linotype.  the source of the font from which the OP posted the example was bitstream's "English157BT-Regular"; it was modified by unslanting it along with some minor editing.  (most "wedding scripts" are much too severely sloped to be suitable for math use.  "english script" is one of the more upright scripts, but even it is sub-optimal in its original form.)
i obtained this information from the person responsible for the font system at informs, the publisher of the operations research journal in which the symbol was found.