• Breaking News

    Thursday, July 9, 2020

    I am trying to get into programming but don’t know where to start. What was one of the first things you programmed that was pretty simple to do? Ask Programming

    I am trying to get into programming but don’t know where to start. What was one of the first things you programmed that was pretty simple to do? Ask Programming


    I am trying to get into programming but don’t know where to start. What was one of the first things you programmed that was pretty simple to do?

    Posted: 09 Jul 2020 01:39 PM PDT

    I was looking through posts on here to see what people started with. I saw someone say they started watching tutorials for a language and then program a chat bot in that language, or something like that. To me that still sounds a little complicated and was wondering if there was something easier to do.

    EDIT: Thanks to all that have responded already, I will take your advice and see how far I can get until I inevitably come back because I am confused. Have a nice day!

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

    Retrieving Lost Admin Password for Web Site

    Posted: 09 Jul 2020 08:52 PM PDT

    Hi All,

    Just would like opinions on how to retrieve the admin password of an internal website I've inherited at work.

    It's an old disused system we'd like to revive but the admin password is no longer available.

    Quick details

    I have root and physical access to the box

    I have mySQL access to the user table

    I do know the usernames based on the usertable

    Website is done in Apache Tomcat/JS/JSP, does not seem to have an index.html

    Passwords seem to be encrypted... I just don't know what is being used to encrypt it. Uses a bunch of lowercase and uppercase alphanumeric... so I'm guessing I can find it in a method or function somewhere.

    I have access to the source code and make modifications, but it's done in tomcat/JSP/JS and I only have basic HTML/PHP knowledge. All looks very foreign.

    What I'd like to do - look for HOW the site is hashing the passwords, create a user in the mySQL table and include the hashed password, and use that to login.

    OR -- where can I find the login portion for this website? Running through all the JS/P files does not show me any SQL I can understand wrt to the user table.

    Any suggestions?

    Thank you!

    EDIT: Made a quick guess, it's MD5.

    Seems to be working :] Big relief.

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

    Creating Greater Than / Less Than Website for Elementary Students

    Posted: 09 Jul 2020 04:14 PM PDT

    Disclaimer: I am brand new to this. Admittedly jumped in way over my head but I've learned a little bit and wanted to try something rather than just keep watching videos. Excuse the sloppy/ugly/poorly written code.

    I wanted to make website that randomly generates numbers 0-10 and displays "is greater than" "is less than" or "is equal to" in the middle for my 2nd graders to practice on. I got the text to display and randomly generate upon refreshing, but I can't seem to get the button click to actually evaluate the numbers based on what is presented. As in, if it displays "5 is greater than 6" I want the button click to evaluate it and display "no" or something but it it displays "5 is less than 6" I want the button click to evaluate and display "good job".

    Right now it's not doing that. "is greater than" etc. are strings and thus not holding value equivalence of >, <, =. How do I make that happen?

    Here is a link to see my hideous code.

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

    Good QML and JavaScript ES6+ examples or OSS projects that follow best practices?

    Posted: 09 Jul 2020 07:23 PM PDT

    I'd like to understand how the projects are structured, I failed when trying to find examples on the docs, I can only find C++.

    And how are third-party JS packages handled, can you use a few from npm? I won't be using Qt Creator.

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

    Need help replacing values from one list with corresponding values from another list - Python3

    Posted: 09 Jul 2020 07:21 PM PDT

    Hi all, I'm working on a project that compares average household income to average SAT scores by county in order to create a regression model. I've encountered a number of problems with one of them concerning the conversion of SAT scores from the old grading scale (Pre 2016) to the new grading scale. I'm fairly new to programming so I'm not sure what the best way to go about this would be. I'd be super grateful for any assistance. Thanks!

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

    Where can I deploy a REST Api Back End and Front End without paying?

    Posted: 09 Jul 2020 03:26 AM PDT

    As the title states I am looking for places where I can deploy a REST api and a front-end project. It's just some side projects I wanna deploy for fun. I also wouldn't mind having them on separate services but I am not sure which to go with. Any ideas?

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

    how to remove spaces for JUint testing

    Posted: 09 Jul 2020 07:09 PM PDT

    Hello everyone i just learned about unit testing and i have to test and verify the addition of three numbers. I have 2 tests I have to pass, one with spaces and one without. Here is the first test

    @Test public void testEvaluate() { Calculator calculator = new Calculator(); int sum = calculator.evaluate("1+2+3"); assertEquals(6, sum); } 

    This when tested this works fine but for the second test I have been given spaces to work with after .evaluate()

    @Test public void testEvaluate2() { Calculator calculator = new Calculator(); int sum = calculator.evaluate("3 + 4+ 5"); assertEquals(12, sum); } 

    I have been given the hint to use the trim() method from the String class but I have tried placing it all over the line and no where seems to work. So my question is, how can I use .trim() to get rid of the spaces so that "3 + 4 + 5" is read in as "3+4+5"? Thank you for any help. I am brand new to JUnit testing and am a little stuck on this issue

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

    How difficult to make cross section area finder?

    Posted: 09 Jul 2020 10:53 PM PDT

    Hi,

    I'm think of making a program in python that is able to

    1. import a 3D object (from maybe Blender or AutoCAD?)
    2. let the user choose two end-points
    3. have a movable slider that is able to pan through the object, showing the cross section in the y axis between the 2 end-points
    4. the area of the cross section is returned while the slider is being moved- like in real time

    How difficult would this actually be, and how time consuming would it be? And I also want to be able to detect the cross sectional area of hollowish type objects as well; for example, the middle of a car where the seats and the surrounding metal are accounted for, but not the thin air

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

    Can someone help me parse an XML data type in T-SQL?

    Posted: 09 Jul 2020 02:33 PM PDT

    I've never done this, but I honestly thought it would take maybe an hour, two at most. I've been working on it all day and banging my head against the wall. I've been able to run it without errors, but I'm not getting any data. I've tried a ton of methods, but I'll try to generalize as much as I can.

    So, I have an XML document that I simplified into the following form, which I believe takes into account any complexities that exist in the original document.

    <?xml version="1.0" encoding="utf-8"?> <Root RootAttribute1="0000" RootAttribute2="111"> <Person PersonAttb1="0000" PersonAttb2="111"> <LastName>LastName1</LastName> <FirstName>FirstName1</FirstName> <Address> <StreetAddress>123 Main</StreetAddress> <City>City1</City> </Address> <AnotherNode AnotherNodeAttb1="00" AnotherNodeAttb2="11"> <ANID>11111</ANID> <LastName>LastName1</LastName> <FirstName>FirstName1</FirstName> <IsDuplicateClient>false</IsDuplicateClient> </AnotherNode> </Person> <Person PersonAttb1="0001" PersonAttb2="112"> <LastName>LastName2</LastName> <FirstName>FirstName2</FirstName> <Address> <StreetAddress>124 Main</StreetAddress> <City>City1</City> </Address> <AnotherNode AnotherNodeAttb1="00" AnotherNodeAttb2="11"> <ANID>11112</ANID> <LastName>LastName1</LastName> <FirstName>FirstName1</FirstName> <IsDuplicateClient>false</IsDuplicateClient> </AnotherNode> </Person> </Root> 

    I have it importing with this code.

    DECLARE @XmlFile; SELECT @XmlFile= ( SELECT * FROM OPENROWSET( BULK 'FilePath/FileName.xml', SINGLE_BLOB ) bulkData ); select @XmlFile 

    I believe this is coming in correctly, as the select gives me one bulk column and row and looks similar to when I directly hard code XML into an XML file type variable in T-SQL. So far, so good, I think. I googled and tried this a million different ways, but they boil down to just a couple generalities.

    I tried this:

    select XmlData.col.value('.', 'varchar(max)') as A from @XmlFile.nodes('Root/Person') XmlData(col); 

    and

    SELECT XmlData.col.query('Person').value('.', 'varchar(max)') FROM @XmlFile.nodes('Root/Person') XmlData(col) 

    and several variations thereof, trying different combinations for argument for nodes(), as well as using some CROSS APPLY to drill down into nested nodes. No luck.

    I also tried getting it all at once, in this manner.

    select myxml.person.query('LastName').value('.', 'varchar(max)') as 'last name', myxml.person.query('FirstName').value('.', 'varchar(max)') as 'first name' from ( select cast(myxml as xml) from openrowset( bulk 'FilePath/FileName.xml', single_blob ) as t(myxml) ) as t(myxml) cross apply myxml.nodes('/root/person') as myxml(person) 

    Nothing seems to be working. Please let me know if there's anything else I can give you. Thanks, in advance, if anyone can help.

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

    Does Putty allow for pip install?

    Posted: 09 Jul 2020 08:53 PM PDT

    sorry if this is a dumb question. Ik using the windows installation command is not right but is there a way to install on putty?

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

    I want to create a video chat application

    Posted: 09 Jul 2020 08:27 PM PDT

    I plan to create a video chat application with billing based on duration of call. How can i implement this without going via any third-party saas service and relying entirely on aws stack. What is aws kinesis used for?

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

    Best way to get an Audio file to play through A phonecall

    Posted: 09 Jul 2020 06:05 PM PDT

    I'm not too experienced with programming so need pointed in the right direction of a semi-obscure question. I'm writing a program that will automatically call a given phone number through a third party phone app. What would be the best way to go about getting it to play an audio file to the receiver of the call?

    Im not expecting a full answer as much as any pointers into the right direction to help me along with finishing the project any help is appreciated

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

    Trouble commenting on Instagram posts using Instapy.

    Posted: 09 Jul 2020 05:40 PM PDT

    Hey y'all! I'm trying to run this Instapy script, but for some reason, it refuses to comment on the posts it finds.

    from time import sleep

    from selenium import webdriver

    from instapy import InstaPy

    def test_login_page(browser):

    home_page = HomePage(browser)

    login_page = home_page.go_to_login_page()

    login_page.login("username", "password")

    errors = browser.find_elements_by_css_selector('#error_message')

    assert len(errors) == 0

    session = InstaPy(username="username", password="password")

    session.login()

    session.like_by_tags(["austinresturants"])

    session.set_do_comment(True, percentage=100)

    session.set_comments(["Looking for some good Austin BBQ? Check us out!"])

    session.end()

    It likes the post (like I asked), but when it comes to commenting, it only produced this:

    INFO [2020-07-09 17:52:57] [username] --> Not commented

    For those curious, I'm using firefox as the browser and it's being run on a Jupiter notebook.

    Thanks, in advance, if anyone can help!

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

    Make SOAP Requests from Wordpress Widget

    Posted: 09 Jul 2020 04:59 PM PDT

    Hey there.

    I'm working for someone who needs to get data from API's onto their WordPress site, but the API's use the SOAP protocol. Does anyone know if it's possible to make SOAP requests from a WordPress site like it is with JSON data and the REST protocol?

    The other option I was thinking of is building something in C# that will hit the API's and then send the data in JSON format to a WordPress widget.

    I know very little about WordPress and am coming from a Angular/vanilla JS background when it comes to working in the front end.

    Thanks!

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

    Are projects which aren't original resume-worthy?

    Posted: 09 Jul 2020 04:50 PM PDT

    Everyone says to do projects and stuff and that it's ok if it isn't original, do it for the learning, etc. And people say to put projects on GitHub to show experience, etc. However, it doesn't really feel like it is resume-worthy when it's something that's been done before OR seems too simple, like an encryption/decrypting message project. How do I determine what projects I can put on a resume and which are too simple/not original enough?

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

    Question regarding my degree im going for.

    Posted: 09 Jul 2020 04:03 PM PDT

    So i'm currently going to college. i'm 19 years old i'm going to my local tech school and am doing their computer programming associate degree. the programming languages that are part of the curriculum is C# and java there is also a web dev class along with all the fundamentals and the other ones. whenever i finish the degree what jobs would hire? i've looked online and most places want bachelors degrees. i will most likely end up pursuing a bachelors after. i have a crash course python book that i have been going through lately. any advice?

    i took all the coding classes in high school and always did great. we only did HTML and CSS and it was always basic things to me at least.

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

    Setting up cordova plugin to run SQL commands

    Posted: 09 Jul 2020 12:13 PM PDT

    Ok, so I have been tasked with updating my companies app to make SQL calls.
    The original person who made the website no longer works with us and there is no documentation for this app and between all its pages it's easily over 100,000 lines. The good thing is the app uses cordova and can already make SQL calls. I want to make an sql call on a new page that does not have cordova module in it yet.
    I have a basic understanding of HTML and am good with JS but have never used cordova and their documentation isn't very clear on how to set it up. What are the steps I need to do to have the cordova plugin's to run the following SQL call?

    Thanks, Brandon

    test for skycaps $scope.skycapTest = function() { alert("hello") var skycapState=-1; var trythis = executeSQL ( "SELECT id FROM [FSS_SUITE].[dbo].[tbDatFlightInfo], where id =116", skycapState =1,skycapState =0); alert(skycapState) alert(trythis) } 
    submitted by /u/Hoboayoyo
    [link] [comments]

    Creating PDFs from template with imported data and figures

    Posted: 09 Jul 2020 11:08 AM PDT

    Hello all.

    I need to create some short PDF documents. All of the documents have the same layout and mostly the same text but differ in some values and figures.

    I hope to make a script that could take:

    1) A template that describes the layout,

    2) A datafile with the values (xml? JSON? Maybe even excel),

    3) A folder with the figures (.png),

    and create the final document.

    My question is, what would be a good combination of a language and a datafile format that could solve this problem.

    I was thinking xml for the datafile but I have basically no experience with it and idk if it is the right choice.

    I primarily know LaTeX, Python and MATLAB. I hoped to use Latex but parsing data seems needlessly cumbersome (unless I am missing something).

    Any help much appreciated!

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

    It's the middle of the night, I am high and was wondering why the makers of git didn't add a progress indicator for git add.

    Posted: 09 Jul 2020 10:36 AM PDT

    GOD IT TAKES LONGG!!!

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

    Industrial Equipment Fault

    Posted: 09 Jul 2020 10:18 AM PDT

    Hello Guys and Gals. Can anyone explain in layman's terms what might be going on here? I'm having intermittent faults on a piece of industrial equipment. It has motors and servos and all that good stuff. Looking for a clue as to where I might start searching for the problem. Unfortunately, I don't speak your language and I'm very very lost. Parker CTC HMI that uses Interact software I guess?

    https://imgur.com/VIS504r

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

    Should I create an API for this ?

    Posted: 09 Jul 2020 09:24 AM PDT

    So I have to create an interface between an eclipse server which use Papyrus, Moka and some other things to simulate, and a web interface, like a website. The eclipse server gives me traces of the simulation, and I can send it data to feed and start the simulation.

    So I though of creating an API that is linked to this server, and my clients can send requests and data which the API will process and feed to the server.

    My question here is : is an api the right choice ? Is it even called an api when you don't use a database behind ? And is there a better way to let my clients access simulations via an interface ?

    Thank you ! Also I'm sorry if this is hard to understand, I understand english correctly but when I have to write in english my brain shuts off..

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

    Is there any programming language that will make me better at programming in general?

    Posted: 09 Jul 2020 09:23 AM PDT

    So, I've been programming in HTML, CSS, and Javascript for about 5-6 months now.

    The main reason I learned Javascript though, was because people would say It didn't matter what language I would learn, they would all help me be better at programming as a beginner.

    But, lately I've been interested in programming with Raspberry Pi and electronics in general, so naturally I looked it up, and I'd have to learn C or Python , but I don't want to have to learn Python or C, I've made so much progress with Javascript, that I feel switching to something else would just stall my progress, would learning these languages stall my progress or make me better, I was mainly going to do C or Python as side project while I learn front end JS as my main choice.

    And Is there any language that would make me better at programming in general, I do like javascript, but I definitely would like to mess with something else for fun, that's why I'm thinking C since I've heard It was a general purpose language.

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

    Online programming tutor

    Posted: 09 Jul 2020 08:56 AM PDT

    I have many years of experience in programming in Python, C, C++, C#, and x86 assembly language. I also have experience teaching computer programming at different knowledge levels from beginners to more advanced. I teach core concepts and provide homework assistance. If interested, I can also teach specialized topics such as GUI programming, game development, basic operating system development etc. Contact me at codingplusplus43@gmail.com if you have any questions.

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

    The stupidest thing you may read ever.

    Posted: 09 Jul 2020 02:44 PM PDT

    So. This is going to be a stupid story.

    1: Try to system reformat windows 8 laptop, says it can't but doesn't give an error and when I try to troubleshoot it fuck all happens.

    2: I was playing around until I found something that said "erase everything off harddrive and all partitions", so I did that. After 4 minutes, it was still at 0%, so I just fucking exited/cancelled it.

    3: Now when I reboot my laptop it says "looking for media [FAIL]" in the corner then goes into another screen that anything I press just keeps saying no boot device found please restart your shitty laptop.

    4: I hold f2 and get to the bios or whatever setting and the harddrive is still the number 1 in the boot slot, followed by an empty USB, then 2 other things that aren't empty, so it seems like it still exists in the BIOS.

    5: I am higher than a wombat eating peyote and have no idea what I was doing, what I have done, but I follow direction well.

    It's a windows 8 laptop, AMD processer, quad core junker from like 8 years ago rofl.

    It was running fine literally until I did this shit, I am an idiot.

    Did I just rek the harddrive?

    Yes, I posted this on techsupport too, I am hoping I didn't just rek my laptop, not gonna lie I'm pretty pissed but also pretty stupid, so its like, compounded.

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

    Which framework to chose

    Posted: 09 Jul 2020 08:44 AM PDT

    Hi,

    I need help which framework to use for a project. I have advanced but dated knowledge in HTML/CSS/PHP/JavaScript/C++ and Java from about 5-10 years ago. I know want to learn a bit more about app development, especially for mobile. As a learning project I decided to build a budgeting app for myself which should be able to:

    - pull transaction data from an web api (on user request and ideally automatically twice a day)

    - cross platform (i.e. android, iPad, desktop or web)

    - categorize transactions and create reports

    - offline support optional

    Available options are a bit overwhelming. I had a closer look at flutter, but I am not sure which framework to chose here. Any recommendations/tips? Thanks.

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

    No comments:

    Post a Comment