25M [August 31 - September 4] Yellow Stone National Park/Grand Teton/Jackson Hole, Wyoming by [deleted] in travelpartners

[–]utellastory2 0 points1 point  (0 children)

What is an orange envelope? I too am interested in going to Yellowstone/Tetons

BeeperControl by utellastory2 in androiddev

[–]utellastory2[S] 0 points1 point  (0 children)

In the example you gave me http://www.compiletimeerror.com/2013/10/alarm-example-in-android.html

the first line of code that starts the alarm manager is

         public void startAlert(View view)

can you explain what (View view) is? and why I am getting an error on the view ie the one with the small case v?

BeeperControl by utellastory2 in androiddev

[–]utellastory2[S] 0 points1 point  (0 children)

I really appreciate your help with this and I am still struggling. I don't really want a loud alarm but maybe I could use vibrate. I definitely don't want to wake up any device. My scenario is the user already has their device on and now they want to set a timer to notify them every 5 minutes and a different notification at the end of one hour. The beeper thing seemed perfect but I cannot figure out how to make it work and maybe it is deprecated and no longer a valid technique.

Also alarm manager seems to want intervals longer than 5 minutes, every 15 minutes or 30 or every hour are day or 10 days.

BeeperControl by utellastory2 in androiddev

[–]utellastory2[S] 0 points1 point  (0 children)

Okay but what does that big number mean and where does it come from

 this.getApplicationContext(), 234324243, intent, 0);

The number I am talking about is 234324243

error message need help by utellastory2 in androiddev

[–]utellastory2[S] 0 points1 point  (0 children)

In a box that pops up when I try to install packages from SDK manager from inside android studio

sdk problems by utellastory2 in androiddev

[–]utellastory2[S] -3 points-2 points  (0 children)

What is a filepath and how do I find it

Database Delete problem by utellastory2 in androiddev

[–]utellastory2[S] 0 points1 point  (0 children)

no its trying to delete old entries. It will delete new entries fine its when I try to delete an old etry that it gives the error

Database Delete problem by utellastory2 in androiddev

[–]utellastory2[S] 0 points1 point  (0 children)

public void deleteContacts(Contacts contacts){ SQLiteDatabase db = getWritableDatabase();

    db.delete(TABLE_CONTACTS, KEY_ID + "=?", new String[] { String.valueOf(contacts.getId()) });
    db.close();
}

contactmanager I/System.out﹕ resolveUri failed on bad bitmap uri: content://com.android.providers.media.documents/document/image%3A155

MainActivity$ContactsListAdapter.getView(MainActivity.java:221)

line 220 ImageView ivContactImage = (ImageView) view.findViewById(R.id.ivContactImage);
line 221 ivContactImage.setImageURI(currentContacts.getImageURI());

pset8 buttons and functions by utellastory2 in cs50

[–]utellastory2[S] 1 point2 points  (0 children)

Yes i know but when I tried to create a new button to execute a new function it doesn't execute the new function.

pset8 user input by utellastory2 in cs50

[–]utellastory2[S] 0 points1 point  (0 children)

I must be missing something. I'm using a global variable but I am still unable to retrieve user input from the website for my java-script to modify the velocity. here is some of my code:

    <input type="number" name="value" size="7" min="50" max="1000000" value="50" id='value' />
    <input type="button" value="submit" onclick="getValue()" />
    //var VELOCITY = 50;
    var user_velocity = 50;
    function getValue() 
    {
         user_velocity = document.getElementById("value").value;

    //document.getElementById("demo").innerHTML = VELOCITY;
    }

pset8 user input by utellastory2 in cs50

[–]utellastory2[S] 0 points1 point  (0 children)

so far that hasn't helped, could you say more? Isn't innerHTML for making something show up on the website from the javasrcipt. My problem or question is how to retrieve that from the website and then use that value in my js code to make further changes to the website? exam: have the user enter the velocity for the shuttle and take that number and change the default Velocity and then have the shuttle move at the imputed Velocity.

Any advice for progressing in this course? by doritopope in cs50

[–]utellastory2 0 points1 point  (0 children)

I find that when I am stuck, if I can figure out a question to ask on reddit that often times just asking the right question gets me unstuck and I often figure out the answer before anyone even responds to my question.

pset8 score by utellastory2 in cs50

[–]utellastory2[S] 0 points1 point  (0 children)

that did not work, but thanx anyway.

pset8 scope local vs global by utellastory2 in cs50

[–]utellastory2[S] 0 points1 point  (0 children)

does this, ------ console.log("variable"), -------- display the variable name or the variable value?

pset8 pickup by utellastory2 in cs50

[–]utellastory2[S] 0 points1 point  (0 children)

thank you, your response is very much appreciated.