We are actually releasing a version to the test system as a common release in GitFlow. We create a release branch, clean things up and merge it into master and development.

The thing is that if I have to do a late Hotfix (for whatever reason) for the live system, I can't use the common process to just create a branch from master because the master is one release version ahead.

Is this really a common practice? I mean such late hotfixes are of course seldom but ... If no, how should we handle it? Would it be a good idea to create a second master branch for test system releases?

Anybody has worked on ANTLR? if Yes, then is it possible to use powerbuilder code on ANTLR? Also can this be done by integrating ANTLR with eclipse? Basically my source code is in powerbuilder but I want to generate tree views & expressions in ANTLR

When Cortana asks if I want to track a flight as a trip, she gives the option to "Give me flight updates only" as an alternative to choosing yes. However, as far as I can tell, the way she saves trips to her notebook is identical regardless of the option I choose (in that I still get a trip planner in interests even after opting for flight updates only). How is this feature supposed to work?

i just had an update yesterday for my windows phone (windows 10 mobile). Now my whatsapp and telegram apps receives new message if only i open the apps. It doesnt shows any notification at all. Only the push emails works. Can you help me with it? I already set it so that those apps can run in background. Thanks.

We recently decided to update a couple of our apps this summer to switch them from http to https in order to follow the new Apple guidelines which go into affect January 2017.

The only thing transferred to and from the app is product information, no user info or anything even remotely sensitive. But we want to comply early so that we don't have to worry about it later.

The question:

Apple seems to be forcing us to deal with US Export Compliance law which requires us to get an approval for an Exporter Registration Number (ERN), and a SNAP-R which requires a Company Identification Number (CIN). I think, I am no lawyer.

Now this question was somewhat answered here but that was more than 3 years ago, and if I understand what is happening, everyone who makes an http connection with their app and has it available outside the US is going through this.

If that's the case then I would would have expected a very clear explanation on what switching to https will require for most iOS app developers.

However I have not found much on this and I am confused on what the exact requirements are (if any).

Any counsel is appreciated.

I have a drawing app. Inside my VC there are five imageViews with five colors in them. I want to be able to click on the imageView and change the stroke color. It can be easily done if I repeat myself in the viewcontroller by adding gesture Recognizers to each UIImageView and have their individual "selector" function. Such as

func redTapped() {}
func blueTapped() {}

However, I want to be able to make the code more clear by creating a custom class (ColorImageView.Swift) for these ImageViews so that when I assign the class to these buttons, they automatically gets the tap gesture and my VC automatically receives the information about which one is tapped. At the moment, I can get a "imagePressed" printed out for each image that gets assigned to my class. However, I have no way of distinguishing which one were pressed. Below are my code for ColorImageView.Swift

import Foundation

class ColorImageView: UIImageView {

private func initialize() {
    let touchGesture = UITapGestureRecognizer(target: self, action: #selector(ColorImageView.imagePressed(_:)))
    touchGesture.numberOfTapsRequired = 1
    self.userInteractionEnabled = true
    self.addGestureRecognizer(touchGesture)
}

override init(frame: CGRect) {
    super.init(frame: frame)
    initialize()
}

required init?(coder aDecoder: NSCoder) {
    super.init(coder: aDecoder)
    initialize()
}

func imagePressed(gestureRecognizer: UITapGestureRecognizer) {
    print("image pressed \(gestureRecognizer)")
}
}

My imageView names are red.png, green.png, blue.png...etc

Thanks

I'm updating my app to Swift 3.0 syntax (I know it's still in beta but I want to be prepared as soon as it released).

Until the previous Beta of Xcode (Beta 5) I was able to compare two Date objects using the operands <, > and ==. But in the latest beta (Beta 6) this isn't working any more. Here are some screenshots:

enter image description here enter image description here

As you can see in both screenshots, these are two Date objects. But I get the following error: enter image description here

What am I doing wrong? The functions are still declared in the Date class:

static func >(Date, Date)

Returns true if the left hand Date is later in time than the right hand Date.

Is this just a Beta bug or am I doing something wrong?

I want to have a scroll/swipe multiple images in android I thought using ViewPager but I think this is not the best way to go for because I would scroll/swipe big number of images that could be over 1000 Images, thus ViewPager is not the right way to go for!

I will also have 4 layers in the same activity

<[          ]> layer1 // scroll/swipe left and right
<[          ]> layer2
<[          ]> layer3
<[          ]> layer4

I tried to use ImageSwitcher, it works fine but it doens't have scroll effect, the image should moves with the finger of the user. So I think the purpose here is more about scrolling than swiping!

I'm trying to run an android emulator inside a vagrant machine but i keep getting this error :

==> default: emulator: ERROR: x86 emulation currently requires hardware acceleration!
==> default: Please ensure KVM is properly installed and usable.
==> default: CPU acceleration status: KVM is not installed on this machine (/dev/kvm is missing).

Before starting the emulator i am installing KVM :

==> default: qemu-kvm is already the newest version 

But I have this error:

==> default: INFO: Your CPU does not support KVM extensions
==> default: KVM acceleration can NOT be used 

The Vagrant configuration is this :

Vagrant.configure("2") do |config|
   config.vm.box = "ubuntu/trusty64"
   config.vm.synced_folder '.', '/vagrant'
   config.vm.network :private_network, ip: "192.168.2.222"
   config.ssh.forward_agent = true
   config.vm.provision :shell, :path => "Vagrantinit"
   config.vm.provider "virtualbox" do |v|
    v.memory = 4096
    v.cpus = 1
    v.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/vagrant", "1"]
    v.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root", "1"]
   end
 end

Does anybody have an idea how to fix this ?

Thanks !

I use Firebase Cloud Messaging to deliver notifications to my Android client apps, each notification should be sent to a single device according to its registration token.

Each time I send a notification via https://fcm.googleapis.com/fcm/send, I receive a JSON response like this one:

{
  "multicast_id": 108,
  "success": 1,
  "failure": 0,
  "canonical_ids": 0,
  "results": [
    { "message_id": "1:08" }
  ]
}

I find success and failure redundant - don't they mean the same thing? Should I check both of them to be sure everything is fine? Is it always true that success != failure?

I have an image that I want to register touch such that it only activates whenever user lifts their finger off the screen after touching(provided its stil in the same region)..not immediately it's clicked. I am trying to use TouchUp like the documentation says but to no avail

large_jackpot.addListener(new InputListener() {

        public boolean touchDown(InputEvent event, float x, float y, int pointer, int button) {
            Gdx.app.log("Example", "touch started at (" + x + ", " + y + ")");

            return true;
        }

        public void touchUp(InputEvent event, float x, float y, int pointer, int button) {
            Gdx.app.log("Example", "touch done at (" + x + ", " + y + ")");

            app.setScreen(app.loadingScreen);
        }

    });

Lets say I have a Widget class. I also have TextWidget, ComboWidget, ChoiceWidget classes that inherited from Widget class.

I create this widgets based on the situation. After creating the widget, I just show some data on widget and get one from the user. After that the widget gets destroyed. My current code is something like this: (The code is totally arbitrary)

Widget createWidget(DataType type, Data data) {
    Widget widget;
    if (type == DataType.Text) {
        widget = new TextWidget();
        widget.setText(data.toStrig());
    } else if (type == DataType.Choice) {
        widget = new ChoiceWidget();
        widget.setChoices(data.toChoices())
    } else if (type == DataType.MultiText)
        widget = new ComboWidget();
        widget.setItems(data.toItems())
    }
    return widget;
}

After creating, I get some data from user using that widget. Then I just destroy it.

void widgetReturnPressedEvent(Widget widget) {
    UserData data;
    if (widget.type() == TextWidget)
        data.setText(((TextWidget)widget).getText())
    // ...
    // You get the idea.
}

I'm using this at different parts of my program. So doing if-else every time is not a good way to handle this situation. So what should I do here? Can something like this works, or is there a good pattern for this situation?

class DataWidget {
    Widget widget;
    Widget createWidget(DataType type) {
        Widget w;
        //...
        this.widget = w;
    }

    void setData(Data data) {
        if (this.widget == TextWidget)
            this.widget.setText(data.toString());
        //...
    }

    Data getData() {
        Data data;
        // set data
        return data;
    }

    Widget widget() {
        return this.widget;
    }
}

I am trying to devise a versioning system for a product that we are building. We have three environments: DEV, TEST and PROD.

One system is that eg. if we have a (small) change in DEV, we increment the version to 5.1.2 from 5.1.1, have this version number propagate to TEST and PROD as well. Then for the next (small) change in say TEST, it would be 5.1.3 and the same propagated to DEV and PROD as well.

Is this a good idea? I do not find it to be so. But haven't been able to think of or find anything better.

Is there a general guidance about this? Any suggestions? Or am I doing this completely wrong?

Thank you.

Is it possible to create a Javascript file that act as "click counter"?

What I want to do is that I put that Javascript file in my domain

mydomain.com/js/clickcounter.js

And anyone can include it to start counting clicks..

Example for THEIRdomain.com/index.html

 <script src="mydomain.com/js/clickcounter.js"></script> 

And a possible script:

function myDomain_TrackClicks(){
    xhttp.open("POST", "mydomain.com/trackClicks.php", true);
    xhttp.send( "pagevisited=" + encodeURIComponent( window.location.href));
}

if(window.attachEvent) {
    window.attachEvent('onload', myDomain_TrackClicks);
} else {
    if(window.onload) {
        var curronload = window.onload;
        var newonload = function(evt) {
            curronload(evt);
            myDomain_TrackClicks(evt);
        };
        window.onload = newonload;
    } else {
        window.onload = myDomain_TrackClicks;
    }
}

Or is that limited by some origin policy? Origin policy really confuses me.

I have started working on a chatbot project which takes input as a text or an image, and performs several operations on it to send back some response.

In the process, I developed some classes/methods for NLP and Computer Vision.

As codebase is growing a bit, I am not very sure if

  1. I should split text processing, image processing into separate web services (better maintainability) and have them communicate to central chatbot app via RESTful APIs, or

  2. just convert the text/image processing part of code into a package and load/call the functions as required (faster I guess?).

I am doing the latter at the moment. My application uses docker-compose, with redis, postgresql as services, communicating to central python application.

Are there other (faster/better) options than running a web service on a different port?

I'll probably have to do a speed test eventually, but any gotchas I should keep in mind while using either of the options?

I've a webview which receives urls from another view controller. and my urls are like this:

example.com/abc.html

example.com/xyz.html

What i wanna do is login just once and when i wanna jump another urls from my drawer view controller. not having login progress again.

ı think the answer is using nsurlsession with my uiWebView. I've check some examples on the internet like this: https://forums.developer.apple.com/message/55794#55794

But didn't make any sense. How can i achieve this?

Basically this is how i use my web view:

    NSString *urlString = @"http://example.com/abc";
    NSURL *url = [NSURL URLWithString:urlString];
    NSURLRequest *urlRequest = [NSURLRequest requestWithURL:url];
    [_browserView loadRequest:urlRequest];

<?xml version="1.0" encoding="Windows-1252"?>
<!DOCTYPE POWERMART SYSTEM "powrmart.dtd">
<POWERMART CREATION_DATE="08/04/2016 16:22:33" REPOSITORY_VERSION="182.91">
<REPOSITORY NAME="Repo" VERSION="182" CODEPAGE="MS1252" DATABASETYPE="Oracle">

    <SOURCE BUSINESSNAME ="" DATABASETYPE ="Flat File" DBDNAME ="FlatFile" DESCRIPTION ="" NAME ="Stock_W1_txt" OBJECTVERSION ="1" OWNERNAME ="" VERSIONNUMBER ="1">
        <FLATFILE CODEPAGE ="MS1252" CONSECDELIMITERSASONE ="NO" DELIMITED ="YES" DELIMITERS ="," ESCAPE_CHARACTER ="" KEEPESCAPECHAR ="NO" LINESEQUENTIAL ="NO" MULTIDELIMITERSASAND ="NO" NULLCHARTYPE ="ASCII" NULL_CHARACTER ="*" PADBYTES ="1" QUOTE_CHARACTER ="DOUBLE" REPEATABLE ="NO" ROWDELIMITER ="0" SHIFTSENSITIVEDATA ="NO" SKIPROWS ="1" STRIPTRAILINGBLANKS ="NO"/>
        <TABLEATTRIBUTE NAME ="Base Table Name" VALUE =""/>
        <TABLEATTRIBUTE NAME ="Search Specification" VALUE =""/>
        <TABLEATTRIBUTE NAME ="Sort Specification" VALUE =""/>
        <TABLEATTRIBUTE NAME ="Datetime Format" VALUE ="A  19 mm/dd/yyyy hh24:mi:ss"/>
        <TABLEATTRIBUTE NAME ="Thousand Separator" VALUE ="None"/>
        <TABLEATTRIBUTE NAME ="Decimal Separator" VALUE ="."/>
        <TABLEATTRIBUTE NAME ="Add Currently Processed Flat File Name Port" VALUE ="NO"/>
        <SOURCEFIELD BUSINESSNAME ="" DATATYPE ="string" DESCRIPTION ="" FIELDNUMBER ="1" FIELDPROPERTY ="0" FIELDTYPE ="ELEMITEM" HIDDEN ="NO" KEYTYPE ="NOT A KEY" LENGTH ="3" LEVEL ="0" NAME ="Stock_ID" NULLABLE ="NULL" OCCURS ="0" OFFSET ="0" PHYSICALLENGTH ="3" PHYSICALOFFSET ="0" PICTURETEXT ="" PRECISION ="3" SCALE ="0" USAGE_FLAGS =""/>
        <SOURCEFIELD BUSINESSNAME ="" DATATYPE ="number" DESCRIPTION ="" FIELDNUMBER ="2" FIELDPROPERTY ="0" FIELDTYPE ="ELEMITEM" HIDDEN ="NO" KEYTYPE ="NOT A KEY" LENGTH ="4" LEVEL ="0" NAME ="Quantity" NULLABLE ="NULL" OCCURS ="0" OFFSET ="3" PHYSICALLENGTH ="4" PHYSICALOFFSET ="3" PICTURETEXT ="" PRECISION ="4" SCALE ="0" USAGE_FLAGS =""/>
        <METADATAEXTENSION COMPONENTVERSION ="1000000" DATATYPE ="STRING" DESCRIPTION ="" DOMAINNAME ="User Defined Metadata Domain" ISCLIENTEDITABLE ="YES" ISCLIENTVISIBLE ="YES" ISREUSABLE ="YES" ISSHAREREAD ="NO" ISSHAREWRITE ="NO" MAXLENGTH ="256" NAME ="Extension" VALUE ="" VENDORNAME ="INFORMATICA"/>
    </SOURCE>
    <TARGET BUSINESSNAME ="" CONSTRAINT ="" DATABASETYPE ="Flat File" DESCRIPTION ="" NAME ="Trolley_T4" OBJECTVERSION ="1" TABLEOPTIONS ="" VERSIONNUMBER ="1">
        <FLATFILE CODEPAGE ="MS1252" CONSECDELIMITERSASONE ="NO" DELIMITED ="YES" DELIMITERS ="~" ESCAPE_CHARACTER ="" KEEPESCAPECHAR ="NO" LINESEQUENTIAL ="NO" MULTIDELIMITERSASAND ="NO" NULLCHARTYPE ="ASCII" NULL_CHARACTER ="*" PADBYTES ="1" QUOTE_CHARACTER ="NONE" REPEATABLE ="NO" ROWDELIMITER ="0" SKIPROWS ="0" STRIPTRAILINGBLANKS ="NO"/>
        <TARGETFIELD BUSINESSNAME ="" DATATYPE ="string" DESCRIPTION ="" FIELDNUMBER ="1" KEYTYPE ="NOT A KEY" NAME ="Stock_ID" NULLABLE ="NULL" PICTURETEXT ="" PRECISION ="10" SCALE ="0"/>
        <TARGETFIELD BUSINESSNAME ="" DATATYPE ="number" DESCRIPTION ="" FIELDNUMBER ="2" KEYTYPE ="NOT A KEY" NAME ="Quantity" NULLABLE ="NULL" PICTURETEXT ="" PRECISION ="10" SCALE ="0"/>
        <TABLEATTRIBUTE NAME ="Datetime Format" VALUE ="A  19 mm/dd/yyyy hh24:mi:ss"/>
        <TABLEATTRIBUTE NAME ="Thousand Separator" VALUE ="None"/>
        <TABLEATTRIBUTE NAME ="Decimal Separator" VALUE ="."/>
        <TABLEATTRIBUTE NAME ="Line Endings" VALUE ="System default"/>
        <METADATAEXTENSION DATATYPE ="STRING" DESCRIPTION ="" DOMAINNAME ="User Defined Metadata Domain" ISCLIENTEDITABLE ="YES" ISCLIENTVISIBLE ="YES" ISREUSABLE ="YES" ISSHAREREAD ="NO" ISSHAREWRITE ="NO" MAXLENGTH ="256" NAME ="Extension" VALUE ="" VENDORNAME ="INFORMATICA"/>
    </TARGET>
    <MAPPING DESCRIPTION ="" ISVALID ="YES" NAME ="m_stock_trolley" OBJECTVERSION ="1" VERSIONNUMBER ="1">
        <TRANSFORMATION DESCRIPTION ="" NAME ="exp_trans" OBJECTVERSION ="1" REUSABLE ="NO" TYPE ="Expression" VERSIONNUMBER ="1">
            <TRANSFORMFIELD DATATYPE ="string" DEFAULTVALUE ="" DESCRIPTION ="" EXPRESSION ="Stock_ID" EXPRESSIONTYPE ="GENERAL" NAME ="Stock_ID" PICTURETEXT ="" PORTTYPE ="INPUT/OUTPUT" PRECISION ="3" SCALE ="0"/>
            <TRANSFORMFIELD DATATYPE ="decimal" DEFAULTVALUE ="" DESCRIPTION ="" EXPRESSION ="Quantity" EXPRESSIONTYPE ="GENERAL" NAME ="Quantity" PICTURETEXT ="" PORTTYPE ="INPUT/OUTPUT" PRECISION ="4" SCALE ="0"/>
            <TRANSFORMFIELD DATATYPE ="bigint" DEFAULTVALUE ="" DESCRIPTION ="" EXPRESSION ="NEXTVAL" EXPRESSIONTYPE ="GENERAL" NAME ="NEXTVAL" PICTURETEXT ="" PORTTYPE ="INPUT/OUTPUT" PRECISION ="19" SCALE ="0"/>
            <TABLEATTRIBUTE NAME ="Tracing Level" VALUE ="Normal"/>
            <METADATAEXTENSION DATATYPE ="STRING" DESCRIPTION ="" DOMAINNAME ="User Defined Metadata Domain" ISCLIENTEDITABLE ="YES" ISCLIENTVISIBLE ="YES" ISREUSABLE ="YES" ISSHAREREAD ="NO" ISSHAREWRITE ="NO" MAXLENGTH ="256" NAME ="Extension" VALUE ="" VENDORNAME ="INFORMATICA"/>
        </TRANSFORMATION>
    </MAPPING>
</FOLDER>
</REPOSITORY>
</POWERMART>

Please help me to parse this xml with array in C#, As I already parsed using XML document, but I have not used any array but I need to use array, kindly help me out

I would like to know the best approach or suggestions to map hundreds of columns to one column with informatica. I have tried with a union which produces the correct results but there are hundreds more columns to transpose to the single column and my system is now freezing up.

I need to specify that target file to be written to a specified folder in another server beside on the same box as Informatica.

I looked in the session property and do not see an entry to specify the account name and password?

The account name has the permission to the folder in the other server.

Any help is appreciated

Thanks

I am pretty sure to access internet in android need to add the following lines in AndroidManifest.xml file.

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

But i would like to know that meaning of each line. would appreciate some brief about this.Thanks.!