I am creating a folder and i want to display the icon of the folder of all those app that are placed in folder.I have created gridview for displaying apps placed in folder but not getting how to display folder icon containing that apps

This question follows up from my previous question. Having established that the switch to NotificationCompat.Builder was probably worthwhile I set about doing the following

Please note: I am working with Phonegap CLI here. The Phonegap application I am writing consists of one plugin that I am creating at the same time and the actual WebView side code in the project itself.

I modified my plugin.xml file

<lib-file src="src/android/libs/android-support-v4.jar"/>

To my plugin/src/android/libs folder I added android-support-v4 which I found here.

To test if Phonegap was going to like the newcomer I first issued a phonegap clean and then proceeded to rebuild the project after removing and then putting back the plugin. This threw up the error message

Execution failed for task ':transformClassesWithDexForDebug'.

com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/usr/lib/jvm/java-8-openjdk-amd64/bin/java'' finished with non-zero exit value 137

What does this mean? Am I using the right version of the android-support-v4 library? If not, where can I find the right version?

I hope that someone here will be able to point me in the right direction. I am using Phonegap CLI 6.3.3 with Java 7 and Node 4.5.

I have a requirement where the column name invc_amt_type whihc ahas data as mail serive count, mail service amount,other count, other amount and so on. i also have a amount coulmn coming form source invc_amt whihc has amounts in it. now i need to put a logic in expression as(some thing like compare) check if the invc_amt_type has value as'COUNT' then load the invc_amt in column A , if invc_amt_type has 'AMOUNT' then load the invc_amt in column A. i tried using insrt and look for word 'COUNT' and load the inv_amt in column A (instr(INVC_AMT_TYPE,'COUNT')>0) but iam little confused how to use for 'AMOUNT'.

I have just a simple question. Is it possible to install .pkg files in background? I would like to install python but in the background.

Is it possible to do this with applescript or schell commands?

Thx

Lets say I have a function that takes an argument, does some action based on the value of that argument and returns false if there is no action for that value. (pseudo-code):

bool executeSomeAction(someValue) {
    switch (someValue) {
    case shouldDoAction1:
        action1();
        break;

    case shouldDoAction2:
        action2();
        break;

    default:
        return false;
    }
    return true;
}

Is it bad practise to write it like this:

bool executeSomeAction(someValue) {
    switch (someValue) {
    case shouldDoAction1:
        action1();
        return true;

    case shouldDoAction2:
        action2();
        return true;

    default:
        return false;
    }
}

Edit: I don't see how this is a duplicate of the linked question, I'm asking about the best practise of writing a function with a single switch statement, I'm not at all asking about using a single or multiple return statements.

Should I use an easy readable code like this

if (var.isServicePGM() || var.isStandardPGM())
{
    //Much code

    if (var.isServicePGM())
    {
        //Some code
    }
    else if (var.isStandardPGM())
    {
        //Some code
    }
}

or should i use an faster code like this

if (var.isServicePGM() || var.isStandardPGM())
{
    //Much code

    if (var.isServicePGM())
    {
        //Some code
    }
    else
    {
        //Some code
    }
}

We are trying to send an snmptrap from a RHEL7.1 machine to a zabbix server to send a notification via sms if something goes wrong with themachine, prevuiously it was running on solaris10 the command was :

/usr/sfw/bin/snmptrap -v1 -c foo #ip 1.3.6.1.4.1.42 localhost 6 9 0 #oid s '#msg'

and now we couldn't find the equivelant command in RHEL7.1,

Thanks in Advance.

Often I see the implementation of the builder pattern (in Java) to be like this:

public class Foo {
    private Foo(FooBuilder builder) {
        // get alle the parameters from the builder and apply them to this instance
    }

    public static class FooBuilder {
        // ...
        public Foo build() {
            return new Foo(this); // <- this part is what irritates me
        }
    }
}

Examples also here:

Why do people introduce the strong (mutual) dependency between builder and type to build?

EDIT: I mean, I know that by its nature the builder is tied to the class I want to build an instance from (FooBuilder -> Foo). What I questioning is: why is there the necessity for the other way around (Foo -> FooBuilder)

On the contrary I see (less often) implementations that create a new instace of Foo when the builder is created and set the fields on the instance of Foo when the appropriate builder-methods are called. I like this approach better, because it still has a fluent API and does not tie the class to its builder. Is there any downside of this other approach?

You could setup special mouse events using Javascript that fires when the pointer is enter or hovering over a specific HTML element (i.e: object.addEventListener("mouseover", theScript); ). But how does it work?

Is it like a classic collison detection? When the mouse pointer X and Y coordinates is inside the boundaries of the element it reports to all listeners of the event.

This is maybe something that is browser specific but I guess there is similiar approaches between the browsers(?).

I'm learning iOS\macOS development and not sure what to think about cocoapods. Is it a good practice to use them to link 3rd party libraries in real world projects? Or can I just link libraries manually? Are most iOS\macOS developers using cocoapods?

Cocoapods dependency manager looks a bit convoluted to me as it changes the structure of the project. I'm used to Bower and NuGet so this idea when dependency manager is forcing its own project format is foreign to me. Or is it a normal practice for macOS? How are developers managing dependencies in real commercial projects?

I am not sure if this is a right question to be posted here.

I am beginning to read CLR via C# by Jeffery Richter. Though its an awesome book for anyone wanting to know about the CLR, I am not sure if the topics covered there would be still relevant in the .Net Core world.

Can any fellow .Net programmers advise me if it would be a wise investment of time to read the book considering the future would be more focused around .Net Core and its CLR?

Rust needs external linkers (e.g. GCC) to generate final output. Why doesn't it provide a bundled one? Are there any languages that does the similar?

This question is hard to google, so I have to ask it here :)

What principial types of programming does exist? For machine or hadware programming.

  • FPGA
    • Verilog
    • VHDL
  • PLC
    • LAD
    • STL
    • SCL
  • C/C++ for embedded

Is there something else?

Client want one application where he can video call to other guy with web to web or app to web or app to app and also he want chatting functionality with file sharing like whatsapp.

Now my question is that in which technology i will gain this all type functionality under one roof, and also he want's cross platform application and web which work in android app,ios app and also work in browser like safari,chrome and firefox.

and also he want all track record of chatting in server.

can you please tell me which type server i needed and which software i needed for it. and in which technology i can gain it. please provide me some tutorials or refrence link or demo site where i found this stuffs.

Note : client want something like skype app which work in web and also in mobile only diffence in skype and client requirement is only mobile phone calling is not here. remaining all funcationality he want like skype.

Try to fetch images from photolibrary in between the two dates and getting images successfully.

And also getting info of the image by using below code.

  PHContentEditingInputRequestOptions *options = [[PHContentEditingInputRequestOptions alloc] init];
        options.networkAccessAllowed = YES; //download asset metadata from iCloud if needed

        [asset requestContentEditingInputWithOptions:options completionHandler:^(PHContentEditingInput *contentEditingInput, NSDictionary *info) {
            CIImage *fullImage = [CIImage imageWithContentsOfURL:contentEditingInput.fullSizeImageURL];

            //NSLog(@"fullImage=%@", fullImage.properties.description);


        }];

But image info giving me in string format.

I tried to convert it into NSDictionary formate(for lat and long) but getting null output.

How can get lat and long of image ?

if there is an another way to get info please help me

Thank you in advance

I want my code to share a screenshot when a button named share is clicked.

The button function looks like this:

Swift 3

    func shareBtnAction(_ sender: AnyObject) {

// first I take a screenshot of the drawing    
        UIGraphicsBeginImageContext(drawingAreaView.bounds.size)
        drawingAreaView.image?.draw(in: CGRect(x: 0, y: 0, width: drawingAreaView.frame.size.width, height: drawingAreaView.frame.size.height))

// defining the variable for activityItems  
        let image = UIGraphicsGetImageFromCurrentImageContext()
        UIGraphicsEndImageContext()

// Initialize and present UIActivityViewController         
        let activity = UIActivityViewController(activityItems: [image], applicationActivities: nil)
        present(activity, animated: true, completion: nil)
    }

The result, however looks like this:

enter image description here

My code works when I replace the image with a text string

    func shareBtnAction(_ sender: AnyObject) {

// defining the variable for activityItems  
        let text = "This is a test"

// Initialize and present UIActivityViewController         
        let activity = UIActivityViewController(activityItems: [text], applicationActivities: nil)
        present(activity, animated: true, completion: nil)
    }

So I guess my code does not recognize the image to be a UIImage. I just cannot figure out why.

Client want one application where he can video call to other guy with web to web or app to web or app to app and also he want chatting functionality with file sharing like whatsapp.

Now my question is that in which technology i will gain this all type functionality under one roof, and also he want's cross platform application and web which work in android app,ios app and also work in browser like safari,chrome and firefox.

and also he want all track record of chatting in server.

can you please tell me which type server i needed and which software i needed for it. and in which technology i can gain it. please provide me some tutorials or refrence link or demo site where i found this stuffs.

Note : client want something like skype app which work in web and also in mobile only diffence in skype and client requirement is only mobile phone calling is not here. remaining all funcationality he want like skype.

I am looking for website with custom Android views. I Found one time ago but I don't find anymore. Any suggestion? Thanks a lot

Let me know is there any API available for apple imessage? also check the docs ... http://www.theverge.com/2016/6/13/11924880/apple-wwdc-2016-open-api-siri-imessage-maps

The API explanations are here: https://developer.apple.com/imessage/

I'm using Firebase Storage to store images in FB, I'm saving download URL in Realtime DB and to retrieve some photos from the storage, I'm using this code:

   let storage = FIRStorage.storage()
    imageRefInDB.observeEventType(.Value, withBlock: { (snapshot) in
        // Get download URL from snapshot
        let downloadURL = snapshot.value as! String
        // Create a storage reference from the URL
         let storageRef = storage.referenceForURL(downloadURL)
        storageRef.dataWithMaxSize(1 * 1024 * 1024) { (data, error) -> Void in
            if (error != nil) {
                print(error.debugDescription)
            } else {
                let downloadedImage = UIImage(data: data!)
            }
        }
    })

My problem is I wanna use some of my photo that are inside another Firebase project. For example, the download URLs will be: https://firebasestorage.googleapis.com/v0/b/PROJECT1.appspot.com/o/someMedia&token

When in my current project, the bucket is different like : https://firebasestorage.googleapis.com/v0/b/PROJECT2.appspot.com/o/someMedia&Token

When I try to using the PROJECT1 files in my current PROJECT2, I'm getting the following error:

reason: 'Provided bucket: PROJECT1.appspot.com does not match bucket specified in FIRApp configuration: PROJECT2.appspot.com

Is there a way to enable downloading theses files from other projects like a setting in Firebase without retrieving them with regular URL downloads? Thanks for your help!

I have data saved to a Firebase Database with complex relationships indexed as outlined here similar to the example below.

  {
    "groups": {
      "alpha": {
        "name": "Alpha Group",
        "members": {
          "mchen": true,
          "hmadi": true
        }
      },
      ...
    },
     "users": {
      "mchen": {
        "name": "Mary Chen",
        // index Mary's groups in her profile
        "groups": {
           // the value here doesn't matter, just that the key exists
           "alpha": true
        },
      },
      ...
    },
     "animals": {
      "dog": {
        "users": {
           // the value here doesn't matter, just that the key exists
           "mchen": true
        },
      },
      ...
    },
  } 

For my project, what I need to do is I need to get a list of group members for all users who like dogs. This means means getting one reference, then another, then another. If I want to get the group members of people who like dogs, I'd Fetch

  1. animals>dog>mchen
  2. user>mchen>groups>alpha
  3. groups>alpha ... members(final result)

Given that this is all done asynchronously, how would I conduct these data retrievals with conditions of completion, chaining one to the next? I've already tried nesting completion handlers, and this doesn't seem to work.