Member Avatar

I'm not sure how crazy this sounds, but bear with me. I have a long list of links that are people's names. Inside each link is a set of information, where an email address is located after other information. I need to make (or just find in general) something that will *open each link* and *find the email and copy it*. This sounds kinda ludacris to me, but I'm not as well informed on web scraping as you guys. The ultimate goal is to get the emails into the corresponding cell in excel (Mac, 2016). I have no idea how …

Member Avatar
+0 forum 2 15
Member Avatar

Everytime I link a `webview` into my OS X project, it always brings up `Use of undeclared type 'WebView'`. How am I supposed to fix this? I've tried linking the WebKit framework and things like that, but they never worked.

Member Avatar
+0 forum 2 11
Member Avatar

I'm making a program that takes the last letter and second to last letter of a name and displays a formatted version in front of the name. I'm passing an array to hold all the names and it seems to work properly, but it displays null before each output. Why is this happening? Don't mind the slop Class: public class EmployeeNames { public static String[] convertName(String[] lastNames){ String lastLetter; String secondToLast; String[] putTogether = new String[10]; for(int i = 0; i < putTogether.length; i++){ lastLetter = (lastNames[i].substring(lastNames[i].length() - 1)).toUpperCase(); secondToLast = (lastNames[i].substring(lastNames[i].length() - 2, lastNames[i].length() - 1)).toUpperCase(); putTogether[i] += lastLetter …

Member Avatar
+0 forum 1 6
Member Avatar

I need to fill an image created using a ton of QuadCurves, but they don't fill it all the way using the traditional fill method. Any suggestions? public class MonstercatComponent extends JComponent{ public void paintComponent(Graphics g){ Graphics2D g2 = (Graphics2D) g; drawGrid(g2); g2.setStroke(new BasicStroke(5)); QuadCurve2D earLeft1 = new QuadCurve2D.Double(145, 155, 137.5, 49, 150, 49); g2.draw(earLeft1); QuadCurve2D earLeft2 = new QuadCurve2D.Double(150, 49, 156.25, 49, 200, 100); g2.draw(earLeft2); QuadCurve2D betweenEars = new QuadCurve2D.Double(200, 100, 237.5, 88, 262.5, 87.5); g2.draw(betweenEars); QuadCurve2D earRight1 = new QuadCurve2D.Double(262.5, 87.5, 287.5, 25, 300, 25); g2.draw(earRight1); QuadCurve2D earRight2 = new QuadCurve2D.Double(300, 25, 312.5, 25, 337.5, 137.5); g2.draw(earRight2); CubicCurve2D …

Member Avatar
+0 forum 2 11
Member Avatar

I have to draw an image using Graphics and Graphics2D. The image is Monstercat How would you guys suggest I do the parts that have several curves to them? Do I use multiple QuadCurve2D or is there a way to do it in one method? ![monstercat_logo_vector_by_lmw_ybc-d63hlvv.png](/attachments/large/4/d4b5cb7925e7eff4a402233b59be737f.png "align-center") On a side note, do you guys have any recommendations on a program I could use to find the points where the curves are and such? I'm on a mac at the moment, but at school I'm on windows. Oddly, paint has a grid that has (so far, not well though) been working …

Member Avatar
+0 forum 2 17
Member Avatar

I expected there to be one, especially on a site as popular as this one.

Member Avatar
+0 forum 2 20
Member Avatar

I'm getting a two year old computer (from a trusted seller) and was looking to upgrade the hardware. I went to a mediocre computer store and asked to see some of the parts I was looking for and the guy asked me some questions. When I told him the computer was 2 years old, he told me I'd also have to replace the motherboard. Is this true? And for future refernece: how long should I keep and use a computer for before replacing the motherboard and other hardware? INFO: I'm planning on using this computer for primarily gaming and using …

Member Avatar
+0 forum 3 14
Member Avatar

I keep running this code and it works until I press the button, `findShapeCalc()`, and then I get EXC_BAD_INSTRUCTION in the main.swift at the line `NSApplicationMain(C_ARGC, C_ARGV)`. Why does this keep happening? Code in question: import Cocoa class ViewController: NSViewController { @IBOutlet var dropDown : NSPopUpButton @IBOutlet var length : NSTextField @IBOutlet var label : NSTextField @IBOutlet var width : NSTextField @IBAction func findShapeCalc(sender : AnyObject) { dropDown.title.toInt() if dropDown.itemAtIndex(0){ circle(); }else if dropDown.itemAtIndex(1){ rect(); } } func circle(){ var radius = (length.stringValue as NSString).floatValue var circumfrence = 2.0 * 3.14 * radius label.stringValue = "Circumfrence is \(circumfrence)" } func …

+0 forum 0 10
Member Avatar

So, I was doing some doing some research for a program I'm working on and I stumbled upon the information that clang++ is a better alternative to g++ on Mac. I've been trying to use it because I can define that I want to use C++11, yet, the file output is a.out. Is there any way I can fix this or am I stuck with renaming it?

Member Avatar
+0 forum 3 12
Member Avatar

I made a footer for a site I'm working on but I can't make it stick to the bottom of the page on any screen. any ideas how to do that? Thanks.

Member Avatar
+0 forum 3 20
Member Avatar

Whenever I create a prompt, I see this at the top: "The page at [the URL] says:". Am I able to change this or do I, as I was told to use for something else, have to use jQuery dialogs?

Member Avatar
+0 forum 3 18
Member Avatar

This may seem pretty basic, but a classmate of mine is learning Javascript and they keep asking me the same thing: Can I change the two buttons on Alert and Confirm methods so that they don't say "cancel" and "okay"? I guess the same would go with Prompt. Is there a way? I keep telling him no and I checked other sources but I want to be sure. Thank you in advance.

Member Avatar
+0 forum 3 26
Member Avatar

So, I see pointers defined in many different ways but I never quite understood what the difference was. Could someone explain it to me? Examples: `int * a; int* a; int *a` That second one may or may not be actual C++ but I've seen it done in all those ways.

Member Avatar
+0 forum 3 24
Member Avatar

I was wondering how to access the /private/var/mobile/library folder(s) on my iMac. This is (obviously) for my iPhone. I'm currently using an iPhone 5 on iOS 7. I've been trying to use iExplorer but if I can't I'll try it on my laptop, too. Thank you in advance. P.S: I was also wondering what would happen if I deleted the Messages backup from the iCloud section on iExplorer?

Member Avatar
+0 forum 3 22
Member Avatar

I've been reading a lot of books on neuroscience and things of that nature and I was wondering if I could integrate a medical dictionary into my Kindle just like the regular dictionary it already has. I know this sounds like an odd question but I have been looking for an answer to this question for a long time and XDA was zero help so I figured the best place would be daniweb.com. Thank you in advance.

Member Avatar
+0 forum 3 10
Member Avatar

How can I get the value of an input field in Javascript? For example, someone types somehing into an input field and I want them to press a button to in turn, store the data in a JS variable. I believe there is such a thing as .value, but it doesn't work. Nothing, so far, has. Please help.

Member Avatar
+0 forum 2 16
Member Avatar

I need to compare two numbers in a cocoa application, but it doesn't allow me to use the regular signs (>=, <=, <, >) nor will it let me use isGreaterThanOrEqualTo:[] (Which, I undestand only takes an object, but I thought I would try it). So can someone please tell me how you accomplish this? Thank you in advance.

Member Avatar
+0 forum 4 32
Member Avatar

I have been playing around with C++ for awhile now and was wondering: what's the differnce between the [instance].[function] and [instance]->[function]? Does the dot notation just run the value and the arrow notation store value inside the instance?

Member Avatar
+0 forum 5 37
Member Avatar

Are you able to have multi-character switch statement cases? So if this is my code: #include <iostream> using namespace std; int main(){ char choice; cout << "Enter a word >" << endl; cin >> choice; switch (choice) { case 'ball': cout << "You entered ball" << endl; break; case 'bike': cout << "You entered bike" << endl; break; } } Am I able to run it? If so, will it work? *I actually am trying to run this code, but I can't. It will run, but then if I type in bike, it won't display "You entered bike". Is something …

Member Avatar
+1 forum 7 53
Member Avatar

I have always had this question, but I couldn't quite find anything that answered it. I was hoping someone could shed some light on the question... Thank you in advance.

Member Avatar
+0 forum 8 71
Member Avatar

What is the Windows equivalent of Cocoa from Objective-C? I'm thinking C++, but is there anything that includes an easier way to create a UI? (If there is an IDE that features a UI builder for C++, please mention) ((Sorry if you don't think I should've posted this here. Since it's software related, I figured 'Microsoft Windows' wouldn't be the best place to post it.))

Member Avatar
+0 forum 5 41
Member Avatar

Can someone please explain what the <atomic> library does? Or what it's for?

Member Avatar
+0 forum 6 62
Member Avatar

I want to set a text field to look through a switch statement to find the corresponding case. Can I just do that like this? switch(textField){ case 'someCase': // do something break; default: // do something else break; } Considering I already created an outlet for it in the @interface file and have connected a button to this as an action (in the @implementation file).

Member Avatar
+0 forum 2 12
Member Avatar

Everytime I press the button, it's supposed to change the label, but it doesn't. It also doesn't see that I have made any connections. Please help. Thank you in advance. AppController.m: #import "AppController.h" @implementation AppController -(IBAction)sayHello:(id)sender{ [label setStringValue:@"Hello World!"]; } @end AppController.h: #import <Foundation/Foundation.h> @interface AppController : NSObject{ IBOutlet NSTextField *label; } -(IBAction)sayHello:(id)sender; @end The window: [Click Here](http://www.imgur.com/scVkGO6)

Member Avatar
+0 forum 2 20
Member Avatar

I need to switch it off but I'm having trouble finding how. If any of you have Xcode 5, please be a dear and help me out. Thank you!

Member Avatar
+0 forum 1 9
Member Avatar

The HTML: <!DOCTYPE HTML> <head> <link rel="stylesheet" type="text/css" href="/Users/Alireza/Desktop/Index.css" /> <script src="http://www.ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js"></script> <script type="text/javascript" src="/Users/Alireza/Desktop/Index.js"></script> </head> <body> <div></div> </body> The CSS: div{ height: 100px; width: 100px; background-color: red; border: 4px dashed #00FF00; } The jQuery: $(document).ready(function(){ $('div').click(function(){ $('div').effect('explode'); }) }) Please help me. I really don't know why it isn't working. Go ahead and try the code if it helps you. Thank you, in advance.

Member Avatar
+0 forum 5 30
Member Avatar

Me and my friend are aspiring Indie Game devs. and we're hoping to get some help. As the developer of the duo (him being artwork and music), I need to create a physics engine for the game. I am sure there are some out there, but I think building one will be best for me. If anyone could direct me towards a tutorial, book and/or any learning utility for this project, it will be most appreciated. Though it isn't my first choice, suggestions for 2D/8-Bit physics engines would be great (links, please?). Again, thank you in advance for helping.

Member Avatar
+0 forum 6 64
Member Avatar

I have been making an Adventure Game and when I try to test it, it always comes up with Hello! Welcome to the adventure game! What is your name? Parsia Parsia? Well hello there! Let us begin... You are at a trail with two paths. Left or right? left Traceback (most recent call last): File "/Users/mhedayat/Desktop/Dropbox/AdventureGame.py", line 8, in <module> if partone == left: NameError: name 'left' is not defined Here is the code: print "Hello! Welcome to the adventure game!" name = raw_input("What is your name? ") print name + "? Well hello there!" print "Let us begin..." partone …

Member Avatar
+0 forum 6 16
Member Avatar

Is it possible to have a piece of C++ code display a picture and how? I want to display something for my Uncle's employees at a conference were holding with them and I don't know how to display pictures, if there is a way.

Member Avatar
+0 forum 7 19
Member Avatar

Can you please help me and tell me what I am doing wrong? I have been looking at the program for two hours and need help. I keep getting this error: 'triangle' was not declared in this scope. Also, that is the only error, so I don't have anymore. Thank you. #include <iostream> using namespace std; int main() { typedef unsigned short USHORT; int shape; cout << "What shape do you want: "; cin >> shape; USHORT shape1 = triangle, square, rectangle, circle; if (shape = triangle) { int triangle; cout << "What is the height: "; cin >> triangle; …

Member Avatar
+0 forum 13 22

The End.