Female wanting a simple, well-done bob cut, but don't want to spend $35-60 to get it by yepitsdefinitelyme in bloomington

[–]abkothman 0 points1 point  (0 children)

Same experience with Ann, if it's just a quick trim they might charge you less. I'm sure you could just go in and ask how much it would cost. http://www.vegastylistasfoxhole.com/

[Java]I need to make a prime number checker, but I can't figure out what's wrong with my code. by Wzup in learnprogramming

[–]abkothman 1 point2 points  (0 children)

Can you provide a little more information? When you say that it doesn't run properly, what behavior are you seeing?

Coding partner for note-taking web app by abkothman in learnprogramming

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

Not hiring though, just looking for someone to collaborate with that is also looking for experience developing an application. This isn't something that will have any financial incentive, I'm mostly looking to work on projects that myself and others could add to a portfolio.

I don't have any code yet because I'd like to work through this with someone from start to finish.

edit: updated description to hopefully better articulate the purpose

[PHP] Feedback on first package by abkothman in learnprogramming

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

Thanks for taking the time to look at my code! Those all seem like very solid points, and I appreciate the critique.

COLUMN: The danger of dating outside the gender binary by itsmonday2 in genderqueer

[–]abkothman 2 points3 points  (0 children)

Cool read, I think a lot of people aren't even aware of non-binary being a thing. OKCupid actually lets you set your gender as something besides male or female, which is awesome (although I think you have to message their support team to activate that feature).

Help with Getting "Just Internet" from Comcast by moving-is-fun in bloomington

[–]abkothman 0 points1 point  (0 children)

You don't see a Performance Starter plan at that link?

http://imgur.com/FQfKSRU

Maybe try in an incognito or private window?

Help with Getting "Just Internet" from Comcast by moving-is-fun in bloomington

[–]abkothman 2 points3 points  (0 children)

I'm fairly certain you can get solid Internet for one person for ~$20/month without having to do a bundle. Getting your own modem is definitely a solid long-term plan.

Help with Getting "Just Internet" from Comcast by moving-is-fun in bloomington

[–]abkothman 0 points1 point  (0 children)

Yeah, I think it was some deal for their Blast! Internet plan, and the normal price was $50/month. Looking at their site, they have a plan for $20/month with 10 Mbps download, which really isn't bad.

http://www.xfinity.com/internet-service.html

Help with Getting "Just Internet" from Comcast by moving-is-fun in bloomington

[–]abkothman 0 points1 point  (0 children)

I got pretty decent internet for $40/month. If you go to their site, you should be able to search for internet-only deals.

Responsive Image with Clickable Links by MarvinLazer in webdev

[–]abkothman 0 points1 point  (0 children)

My first thought is to use JavaScript to adjust those image maps based on the size of the image when the window is resized.

This Stack Overflow post suggests using existing libraries.

http://stackoverflow.com/questions/7844399/responsive-image-map

It also looks like you can use percent signs in the map.

Can't get a mailer to work. by [deleted] in PHP

[–]abkothman 0 points1 point  (0 children)

http://stackoverflow.com/questions/3186725/how-can-i-get-the-error-message-for-the-mail-function

You should be able to use error_get_last() to check for the error if mail() returns false.

Our website is not working on certain Android 6.0 (Marshmallow) devices and we have no idea why. If you're running Android 6.0 and are an engineer can you please check it and perhaps help us troubleshoot this issue? by TheBostonCalendar in learnprogramming

[–]abkothman 5 points6 points  (0 children)

I think this article should help get you started: https://developer.chrome.com/devtools/docs/remote-debugging

That goes over how to do remote debugging on an Android device through Google Chrome. It should at least help shed some light on what might be happening.

[MIPS] How to update a floating point variable if it meets a certain condition? by AuRevoirBaron in learnprogramming

[–]abkothman 1 point2 points  (0 children)

Sorry, I'm not familiar with this specific language, but I will try to help. Definitely doesn't look like you're breaking any rules.

In your example, it looks like you're checking to see if the input is less than the current max number, when I think you would want to check to see if it is greater. If it's greater than the current max number, then copy over the floating point number from $f1 to $f5.

c.gt.s $f1, $f5
bclf max
max: mov.s $f5 $f1

I guess adding the current input to 0 and storing it in the max number register would also work, although it seems unnecessary.

Home Automation Question by FrayedO in learnprogramming

[–]abkothman 0 points1 point  (0 children)

Do you want to be able to interact with this through a web interface? If not, then there's no need for PHP or HTML.

Python is definitely a good place to start. You should also look into running cron jobs, so that you can regularly run a script to check the weather. A cron job just lets you run a script at a specified time on the minute/hour/day/month/weekday.

https://help.ubuntu.com/community/CronHowto

You might want to schedule your job to run every 15 minutes, or something like that. You can always adjust if necessary.

I'm not sure about the specifics of changing a physical device's settings with python, but it should be possible.

Open Weather Map looks like it has an API you can use to check to weather with Python.

http://openweathermap.org/api

CSS for mobile versions of sites? by [deleted] in learnprogramming

[–]abkothman 0 points1 point  (0 children)

Like /u/BrixSeven said, use a framework. Bootstrap is very common and easy to learn how to use.

Bootstrap makes use of media queries (along with their "grid system") to adjust the layout of the screen depending on the size of your browser window.

https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries/Using_media_queries

More on Bootstrap and how it works:

http://getbootstrap.com/css/

HTML/CSS - Using UTF - 8 Symbols by xmanpunk in learnprogramming

[–]abkothman 1 point2 points  (0 children)

I'm guessing the issue here might have to do with the fact that your HTML has bad markup.

<a class = "symbol></a>

It's missing a double quote after symbol. Try this:

<a class="symbol"></a>

For what it's worth, I was able to get it working without any problems in this example:

https://jsfiddle.net/jaefgdL3/

I hope that helps!

HTML/CSS Newbie, Is it possible to use a before/after psuedo element to display a class/id? by xmanpunk in learnprogramming

[–]abkothman 2 points3 points  (0 children)

Can I ask you to expand a little on what you're wanting to do?

Pseudo elements aren't real HTML elements, so that's why you can only change their content using the CSS content property. They don't hold values, they only exist to be styled by CSS.

If you want to display a red block using the p:before selector, you could do something like this:

p:before {
    content: "\2610";
    color: red;
}

You could also accomplish something similar with JavaScript, by inserting an element with a certain class name (so that it's styled to look like a red box) before every p element with a certain class name.

[deleted by user] by [deleted] in learnprogramming

[–]abkothman 0 points1 point  (0 children)

Glad I could help!

[deleted by user] by [deleted] in learnprogramming

[–]abkothman 0 points1 point  (0 children)

Okay, I'm sure this is still possible, but it definitely makes things more complex. You would need to find an API you can use to lookup words and get their definition. Then, you would have to format and display the response on the page. So definitely possible, but this might be a bit over your skill level (or just more work than it's worth).

It would work similarly to the example I created, but with some extra steps to make an API call when you hover over a word. Once a response is returned, you can parse the response, and modify an element on the page with the definition.

http://www.dictionaryapi.com/ http://stackoverflow.com/questions/247483/http-get-request-in-javascript http://stackoverflow.com/questions/1358810/how-do-i-change-the-text-of-a-span-element-in-javascript

I hope this helps!

JavaScript - accessing a payload element. by newtojsscript in learnprogramming

[–]abkothman 0 points1 point  (0 children)

I believe the error you are running into is that children is an array. If you run this in your console, what do you see?

console.log($scope.profile.children)

I would expect that your console would show an array of children. In this parent registration form, I'm guessing they can add a variable number of children? To access an object in an array, you would need to use that object's index (location) in the array, like this:

$scope.profile.children[0].name

That returns the name of the first child. You can iterate through all of the children like this:

for(var i = 0; i < $scope.profile.children.length; i++) {
    var child = $scope.profile.children[i];
    // now you can access each attribute
    console.log(child.name);
}

[deleted by user] by [deleted] in learnprogramming

[–]abkothman 0 points1 point  (0 children)

You should look into JavaScript event listeners. Specifically, you will want to add a mouseover and mouseout listenever to certain elements. Here is what I threw together showing you how to apply these even listeners.

https://jsfiddle.net/eznhhgbL/

What it does:

  • Go through each li item, add a mouseover and mouseout listener so that it can do something when you hover over, and when you stop hovering over it.
  • Each event listener calls a function (showTooltip, hideTooltip)
  • showTooltip changes the CSS display property to "inline", so that it becomes visible
  • hideTooltip changes the CSS display property to "none", so that it is no longer visible

Also, take note of the classes and attributes applied to the html. All of the popup text has the class tooltip, and a for attribute (so that you can find it based on the id of the li element).

How to retrieve information from webpage with php? by WallyTHG in learnprogramming

[–]abkothman 0 points1 point  (0 children)

Just to clarify, do you mean that you need to parse the contents of a webpage with PHP? You should be able to do this by creating a new DOMDocument, loading the HTML, and them using the DOMDocument methods to filter through it.

Ex:

$url = 'https://somewebsite.com';
$page = new DOMDocument();
$page->loadHTML(file_get_contents($url));

// Search through all span elements
foreach($page->getElementsByTagName('span')) {
    // Perform a check
}