• Breaking News

    Tuesday, January 2, 2018

    Java: Sending Value from one JFrame to another JFrame Ask Programming

    Java: Sending Value from one JFrame to another JFrame Ask Programming


    Java: Sending Value from one JFrame to another JFrame

    Posted: 02 Jan 2018 04:45 PM PST

    I'm using Netbeans.

    So I have this JFrame. When the user inputs a value (in this case, assume they type in something like "Management") and then clicks "save and close" button, the value should be "saved" and the JFrame closes.

    In JFrame2, when it is opened (it doesn't need to open when the last JFrame closes, btw), the ComboBox should have the value "Management" from the last JFrame added to it.

    Do you know how I can write the code for this? If so, your help would be appreciated.

    submitted by /u/Hamlock1998
    [link] [comments]

    I'm not a good problem solver?

    Posted: 02 Jan 2018 02:28 PM PST

    I'm a sophomore studying computer science, and at my school the real coding doesn't begin until you're a sophomore (I did some MATLAB my freshman year but I don't really count it much). After my first semester of programming, I managed to get some pretty good grades. I'm a little worried about my ability to program going into the future, however.

    Here's my dilemma. Suppose I was in a class that was tasked to make an AI that could play Connect 4. A lot of my friends would be able to just sit down for a few hours, carefully think through any problems they had, and then finish the project. I cannot do this. I usually sit down and work for about 30 minutes before I reach some roadblock that I just cannot get past. If I had no assistance from TA's or professors, that would literally be it, I could sit in a room for 40 years and never be able to figure out why something isn't working. Luckily, I do have TA's and I usually just go to office hours and work through it, relatively quickly too (and if I ever encounter a similar problem in the future I'm usually able to handle it if I went to office hours for it before). I am always able to figure it out with some help, I always turn in my projects on time, and I always performed well on the exams; I ended up getting an A in the class.

    What bothers me is my inability to sit down by myself and power through these problems. I feel like this should be something I should be able to do. One day I am going to work for a company and I cannot expect to sit down with another programmer or a superior and get tons of help, I'll just have to be able to do what is assigned to me. Should I be worried? Are there steps that I should take to figure this out or keep going on as normal since my grades are fine?

    submitted by /u/psyjinks
    [link] [comments]

    PHP or Other? Need sign in, payment, database. Multiplatform

    Posted: 02 Jan 2018 06:11 PM PST

    Moving onto my newest project in years, looking for advice.

    Making a web App, and hopefully wrapping it in Android Java, and making it somewhat salvageable for iOS(or I'll write iOS).

    Needs users to sign in, attach credit/bank account, and submit this info to my database.

    I've previously written stuff in php, but that was because my current server is running LAMP and Wordpress.

    Any suggestions my best way going forward? Is my current infrastructure worth sticking with PHP? I'm versatile.

    submitted by /u/FrugalLikeArtDegrees
    [link] [comments]

    How to read an email and perform an action

    Posted: 02 Jan 2018 06:01 PM PST

    so i want to write a program that reads my inbox and when an email with the correct subject and body is detected it runs a program on my pc. im guessing the best way to do this is with outlook on my pc and VB? if that is the case how can it be done? not asking for code just an idea of how to do it as i have a bit of vb experience

    submitted by /u/Elexios
    [link] [comments]

    An example of when to use public Variable?

    Posted: 02 Jan 2018 11:34 AM PST

    I understand the use for default and private but I don't get why you would need access to other package classes which protected and public give access to?

    submitted by /u/mod_cute
    [link] [comments]

    Is there a program or code that can find my lost saved posts and comments on Reddit?

    Posted: 02 Jan 2018 06:46 PM PST

    I didn't realize that Reddit peaked at 1000 saved posts/comments per user. I would love to recover the ones that rolled over the counter, but they don't come back, even after unsaving the ones I already have. Is there some way to recover them?

    submitted by /u/nickrulercreator
    [link] [comments]

    Stack-Based Bytecode : Function calls.

    Posted: 02 Jan 2018 02:23 PM PST

    Hello

    I'm wondering how to emit the code for functions in a stack based bytecode ?

    I want to support pass by value (default), pass by reference (with &),and const args in both case, in my language.

    But the const has no impact on the bytecode I think, because I'm checking for that at compile time with a TypeCheck visitor.

    This is my current idea : https://pastebin.com/wNCqwsef

    The difference for pass-by-ref and pass-by-value is at line loadref, if the function passes by value, i'll just push the value with a "iload" "fload" etc..depending on the type of the variable.

    My VM would work like this : on the storeloc operation, if the local is a reference to a variable, follow (dereference) the reference and store at that position.

    Is this "correct" ? Or is there a more traditional way to do this to avoid having too high level functions ? (like storeloc)

    Thanks

    submitted by /u/Kywim
    [link] [comments]

    Which of these laptops is the best for programming?

    Posted: 02 Jan 2018 05:18 PM PST

    I will be using it mostly for web and game development and programming. It needs to run Visual Studio, VirtualBox/VMware, Adobe CC (Photoshop, Premiere, etc)) but also CSGO and Civ 6 and would like it it ran at least on medium at a good speed (is 60FPS much?)

    I made a list of the three laptops that I'm considering(which includes all of their specs)

    submitted by /u/Hydra295
    [link] [comments]

    I would like to create a tectonic plate simulator, but I have some questions.

    Posted: 02 Jan 2018 09:05 AM PST

    So I have a little bit of programming experience with Python, but other than creating really basic text output applications I don't really know a lot.

    So what I'd like to do is create a fairly realistic plate tectonic simulation software that will create planets in a realistic way. I have identified most of the variables that I'll need like variables for crust density, motion, actions, etc. What would be the best language to do this in and also have a visual output? Am I envisioning something way harder than I think it is?

    Some examples of similar applications would be expirilous and tectonics.js, they just both have their own issues that make them not quite right for me.

    submitted by /u/shadixdarkkon
    [link] [comments]

    Creating an interactive map of westros

    Posted: 02 Jan 2018 08:56 AM PST

    Hi,

    I'm looking to make something very similair to this: https://quartermaester.info/

    Has anyone used google maps api with custom tiles? I got a bit lost on their site...

    Also, is there maybe a different way to do this? using a different program \ library?

    thanks

    submitted by /u/Ryan_Bingham
    [link] [comments]

    APIs for mobile new user registation that accepts phone numbers instead of email?

    Posted: 02 Jan 2018 04:21 PM PST

    I know firebase does it, but they have very low free limit (10k users). And of course since my app will be the next UberFaceGoogle I need something that can handle more without making me broke.

    Ideally I imagine taking in new users then sending them a confirmation or some such.

    submitted by /u/shabadooze
    [link] [comments]

    How to count which word and how many times thât word has occured in a txt file in c++?

    Posted: 02 Jan 2018 03:47 PM PST

    For better understanding: I have a txt file with a bunch of words. I need to find a word which is repeated the most, write that word and how many times it has been repeated

    submitted by /u/Weirdick_98
    [link] [comments]

    Creating Dockerfile - help

    Posted: 02 Jan 2018 03:34 PM PST

    I'm new to docker and right now I'm trying to create a docker file for an web crawler that I've already built (Scrapy). However, I don't understand how to build the Dockerfile for it.

    This is my current Dockerfile:

     FROM alpine:latest RUN apk -U add \ gcc \ libffi-dev \ libxml2-dev \ libxslt-dev \ musl-dev \ openssl-dev \ python-dev \ py-imaging \ py-pip \ curl ca-certificates \ && update-ca-certificates \ && rm -rf /var/cache/apk/* \ && pip install --upgrade pip \ && pip install Scrapy \ && pip install dateparser \ && pip install fake-useragent \ && pip install psutil \ && pip install PyMySQL \ && pip install redis \ && pip install scrapy-crawlera \ && pip install scrapy-fake-useragent \ && pip install simplejson WORKDIR /runtime/app 

    I get a number of errors, which I'm not looking to troubleshoot. I'm just trying to understand how am I supposed to be building these container environments?

    Also why do some dependencies become their own image? For instance when I build test_container that uses python, a python image is created along with the test_container image.

    submitted by /u/FlandersFlannigan
    [link] [comments]

    Advice for creating a specific website? (similar caliber websites linked and additional details in post)

    Posted: 02 Jan 2018 03:25 PM PST

    I would like to hire programmers to create a website similar to this one or this one.

    I am aware that creating a website will always cost more and take longer than expected.

    The website I envision would be a bit more simple than the linked ones, would not require too many moving parts, and its main function would be to display information. I imagine it would have less than 20 different pages (possibly less then 10). The website would need to be available in 2 (maybe 3) different languages.

    Speed is of moderate importance. Ideally the site would be completed in <4 months, but I'm not sure how realistic that is.

    I believe I do have the funds necessary for this project.

    I was considering going through students since that might save some money, but I would think that this option is too slow. I'm leaning towards finding quotes from professional software consulting firms. Do you guys think this is a reasonable option? About how much do you think this project will cost? About how long do you expect this project will take?

    Any advice is appreciated.

    submitted by /u/poursomemarmiteonme
    [link] [comments]

    Which OpenGL loading library do you use?

    Posted: 02 Jan 2018 03:13 PM PST

    Would like help coding something that involves dice and probability

    Posted: 02 Jan 2018 12:30 PM PST

    Hey,

    Basically, I want to code simulations of a game that is similar to texas hold'em poker that involves dice instead of cards using Python.

    There are 2 players and the first player rolls 5 dice to create his hand. e.g. a roll of 2 3 4 4 5 = pair of 4s, 1 2 3 4 5 = straight, 2 3 3 3 4 = trip 3s etc. The second player would then roll 5 dice and see if they can beat what the first player got.

    I want to measure the amount of times player 1 wins/loses/ties over a large sample. I was thinking of creating hierarchy of possible hands and then assign a variable relative to the strength of the hand. e.g. trip 3s I could assign a 8, trip 4s would be a 9 etc. and then compare the numbers. Is there a better way of doing this? I'm relatively new to programming in general so please let me know if this project is perhaps too difficult for a beginner to accomplish. Thank you!

    submitted by /u/hmandude
    [link] [comments]

    LsaLookupNames2 function

    Posted: 02 Jan 2018 11:21 AM PST

    I'm attempting to find out if the LsaLookupNames2 function goes through all 10 steps to translate isolated names, or if it returns the entry prior to completing all steps if identified.

    The 10 steps are located near the bottom of the function article - https://msdn.microsoft.com/en-us/library/windows/desktop/ms721798(v=vs.85).aspx.

    submitted by /u/trevorishere
    [link] [comments]

    Suggestion a free, reliable Zip Code API?

    Posted: 02 Jan 2018 10:44 AM PST

    Hello - I've been looking around for exactly what the title says; I need a reliable, (preferably) free, API that is up-to-date and offers all US Zip Codes - state, county & city would be bonus. JSON preferred, but not necessary.

    I've looked at the USPS, it's mostly around package tracking and shipping, and is not what I need. There seem to be a few services out there, but I don't know who's legit and who's not.

    So if you have one that you use and like, please reply or suggest.

    TIA

    submitted by /u/dicky_seamus_614
    [link] [comments]

    Creating Drag-To-Select Dates for When2Meet clone

    Posted: 02 Jan 2018 09:45 AM PST

    Hi all,

    I am trying to create a better when2meet with google calendar integration. I am currently trying to recreate the drag-to-select date feature. Here is a pic of the UI so far -https://i.stack.imgur.com/Tx18P.png. I am currently taking user input in a previous date selection page and then using the user input to render this page in the backend using ejs. My code seems messy, and I was wondering if anyone has suggestions to improve it. I thought about using a framework like React, but I don't think it would be very helpful here. Here is my ejs code btw -https://github.com/saumeeld/When2.0Meet/blob/master/views/setTimes.ejs. Your help is greatly appreciated!

    submitted by /u/quaker19
    [link] [comments]

    Anyone here with CUDA internship experience? What did they expect for you to know?

    Posted: 02 Jan 2018 05:35 AM PST

    Why does hardware rendering refer to GPU and software rendering to CPU?

    Posted: 02 Jan 2018 03:00 AM PST

    Is this variable name acceptable: "isSomethingExist"

    Posted: 02 Jan 2018 02:08 AM PST

    Comparing variables to database entries.

    Posted: 01 Jan 2018 10:35 PM PST

    Hi,

    I'm making a program and part of it consist of a log in. The log in details are stored in a DB when accounts are created. I was wondering how I could check to see whether the users input matches and if the DB entries in sqlite3.

    Thank you.

    submitted by /u/ProgrammerOhs
    [link] [comments]

    No comments:

    Post a Comment