• Breaking News

    Wednesday, June 27, 2018

    Looking to write a simple script, dont know what language to look at. Ask Programming

    Looking to write a simple script, dont know what language to look at. Ask Programming


    Looking to write a simple script, dont know what language to look at.

    Posted: 27 Jun 2018 07:01 PM PDT

    Hello, I have a PDF (I can turn it into a word doc) that has a bunch of information on it. There are about 15 pieces of information per entry (roughly 60-80 entries)

    I would like to write a script that will extract and organize the 15 pieces of information per entry.

    I have VERY little coding experience. But im up for a challenge. I was looking at PHP, Python and Perl but am not able to figure out what to use.
    Below is what the information i will be trying to get looks like. and the formatting i need it in. Will a layman with a drive to write a script be able to code this?

    EntryInfo1: EntryInfo1: EntryInfo2: Entryinfo3: Entryinfo4: Info1: Info2: Info3: Info4: Info5: Info6: Info7: Info8: 
    submitted by /u/PyroToniks
    [link] [comments]

    Getting error "Attempt to subscript 'variable' with I is out of range" for for loop

    Posted: 27 Jun 2018 10:24 PM PDT

    So I'm super new to programming, but I'm trying to learn IDL for research opportunity I got. I'm attempting to write this procedure, but I keep getting an error among executing my program.

    The error says that "Attempt to subscript WAKEPARTICLES with I is out of range."

    wakeParticles is one of my variables in the program.

    So basically to explain the screenshot. I set wakeParticles = particleCount / totalArea (I'm using arbitrary test numbers right now so 200 / 7 which would equal 28.57 for the value of wakeParticles).

    I then ran a for loop within an if statement with the wakeParticles variable to determine if there were a particle number greater than zero in the area. However it is giving me an error upon running this loop.

    Here is a photo of that segment of the code (the error is in green): https://imgur.com/a/JetFOw3

    (by the way, the value of the variable singlePeriod is 7. If anyone could help me out I would appreciate it so much!)

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

    Microsoft Visual Studio Question

    Posted: 27 Jun 2018 07:56 PM PDT

    Hello,

    I have a program that currently, when a button is pressed, the text in the text box associated with said button is copied to the clipboard. I was wondering if anyone knew how to/if it was possible, to make it so the button copies from four different text boxes.

    Example: Text box 1: Hi, Text box 2: This, Text box 3: is, Text box 4: test.

    When pressed, and then pasted it would paste as:

    Hi
    This
    is
    test.

    Currently the script I have to copy one text box is as follows.

    private void Button25_Click(object sender, EventArgs e)

    {

    Clipboard.SetText(this.TextBox1.Text);

    }

    I've been experimenting and trying things for a little while now and have hit a dead end, was wondering if anyone would be able to help out?

    All help is appreciated, thank you!

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

    Which API should I use to transcribe audio *.m4a to text

    Posted: 27 Jun 2018 07:13 PM PDT

    I'm working as an internship and this is my task for a small magazine that they have no technology knowledge of computer science.

    I need to find a good API for transcribing and how to do it. Or is there a free way to do it ?

    Thanks all and have a great day!

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

    How do big APIs collect information?

    Posted: 27 Jun 2018 10:09 AM PDT

    i.e. the api at themoviedb.org. or the pokemon api have metadata on hundreds or thousands of titles. what automation is used to generate the api data?

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

    Failed a basic OOP pre-interview test. Can someone tell me what I'm doing wrong?

    Posted: 27 Jun 2018 02:45 PM PDT

    Hey guys, so I recently graduated computer science and I've been trying to land a job and I failed a lot of tests but this one really made me feel like I don't really know anything 😢 so if you could tell me what I did wrong I would appreciate it a LOT!

     

    The assignment: link

    My solution (just pick 1):

    1) online repository (you can't run it though)

    2) google drive rar file of the visual studio project. you can just extract to desktop and run it

     

    Just know that I translated the assignment from another language, so some parts may sound a little autistic (tonally) but I made sure everything is 100% correct so no worries there. The assignment's max alloted time to complete was 3 hours and I did it from home (emailed it in).

    Anyway thanks in advance and any criticism of my code or suggestions are welcome.

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

    Transfer handwritten notes to excel spreadsheet

    Posted: 27 Jun 2018 10:53 AM PDT

    Hello Everyone! I had a question regarding the resources needed to transfer handwritten notes (Like this Link1) to an excel template (Like this Link2). I'd like to automate the process but based on some research I've done, I think I need an OCR software. A lot of research I've done suggests they are often hit or miss and probably can't do cursive writing. Is there anything I'm missing or any alternate means anyone knows to go about doing this?

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

    Clarification requested: regarding definitions for host, server and client.

    Posted: 27 Jun 2018 05:50 PM PDT

    I've read that:

    Host = any device that has itself established the connection to the network.

    Then, Server = any device that accepts a connection from another device (client).

    1) Are these definitions correct/complete?

    2) If so, does this mean that servers are always necessarily accepting connections from devices which are hosts?

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

    Having trouble with Two-Sum problem

    Posted: 27 Jun 2018 04:02 PM PDT

    Hi there,

    I'm trying to do this problem where I have an array of numbers and want to see if there exists two indices (can't be duplicate) where the numbers add up to a given target.

    I'm trying to do this in Python and I have the following code:

    d = {} count = 0 for n in nums: d[n] = count count += 1 for key, value in d.items(): complement = target - key if complement in d and d.get(complement) != value: return [value, d.get(complement)] 

    This fails for a case like [5,5] and target 10. My output should be [0, 1] but I'll get Null. Looking at my code I think I understand why, the dictionary search finds a match, but d.get(complement) ends up being the same as value as there is a duplicate, then that result gets thrown away and I get Null. I think dictionaries are unsorted by their nature, so with a dictionary like:

    {5: 0, 5: 1}

    How can I get my function to ignore the "5:0" and look at the "5:1" instead?

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

    c++ check if char/string number is within range

    Posted: 27 Jun 2018 02:36 PM PDT

    how do i check if a char/string number e.g. "3" or '3' is a number by checking if the variable (the char/string) is within a range "0-9"? rather than checking if it is in "0123456789".

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

    Is there a hosted map site that will fetch dynamic overlay data to display?

    Posted: 27 Jun 2018 11:55 AM PDT

    I am trying to do a low effort solution to display an overlay on a map for some friends.

    E.g. in an ideal world I could:
    Share a link to maps.google.com/MySpecialData.
    On load it would fetch a data file from a URL I provided giving LatLongs and a display label and show pins at those points

    I could go into hosting a site with Google maps API but would rather not mess with setting up billing etc

    Any leads would be appreciated :) thank you

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

    Order Forms - Program / Solution Alternatives to Adobe Live Cycle for iOS / Mobile

    Posted: 27 Jun 2018 11:26 AM PDT

    Hello All,

    My company currently uses Adobe Live Cycle Designer to create XML table based order forms for customers that we e-mail out to them to use as a .pdf template. Within that form, we store the items they can order, and they pick items from a dropdown menu. Recently, we've discovered that there's an issue with Apple Products (specifically iOS devices) in which the forms we're sending aren't opening.

    Do you all know if there is another tool, or option, to create .pdf based order forms (that wouldn't require web hosting), which would have the same functionality? Dream state is that those order forms could be filled in on any device.

    Any help/advice you all could provide would be greatly appreciated.

    Thanks

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

    I'd like to write a search algorithm that matches misspells, partly by matching common permutations of strings of 3 characters and using their frequency of use for a compression table. Is there a word for this procedure?

    Posted: 27 Jun 2018 11:07 AM PDT

    For example, tables exist with the frequencies of pairs of words that appear in the English language, and the 256 most popular word pairs can be mapped to bits, forming a compressed quasi intermediate language that can be used for very quick but inexact lookups. I'd like to do something similar, but with a 3D matrix for word triplets, that also has permutations, so ask, ksa, and ska would all be assigned a single compressed value. It wouldn't matter if this trip returned non-exactly matching results, rather the algorithm would be successful if it returned the right results even if a word is badly misspelled. Is there a word for what I'm trying to do that I should google, or do I have to generate the compression tables myself? This would be a low tech homebrew google suggest without using their API, which can become expensive, or unethically copying their suggest strings.

    Are there any resources that would have information on the probability that someone trying to type a letter accidentally hits an adjacent letter? Thanks for any tips or resources on writing very fast but very fuzzy search algorithms.

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

    SpringBoot, Dialogflow, AWS question

    Posted: 27 Jun 2018 10:25 AM PDT

    Can someone tell me if I can go about something in a better way:

    I am to launch a spring boot application that contains an API which has a JSON file inside to AWS that I want to communicate with dialog flow via the Google Home. I was curious if AWS was the best route to go cause I am having a hard time connecting the API to Dialogflow via Springboot.

    I hope I explained this correctly hopefully someone can share their insight.

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

    SemiColon Help I guess?

    Posted: 27 Jun 2018 10:12 AM PDT

    Unity keeps telling me I have semicolons missing, but I beg to differ. What am i missing?

    function TimerStart()

    {

     var random Int = Random.Range(1,7); 

    if (randomInt == 1) {

    GetComponent.<Renderer>()material.mainTexture = texture1;

    }

    if (randomInt == 2) {

    GetComponent.<Renderer>()material.mainTexture = texture2;

    }

    if (randomInt == 3) {

    GetComponent.<Renderer>()material.mainTexture = texture3;

    }

    if (randomInt == 4) {

    GetComponent.<Renderer>()material.mainTexture = texture4;

    }

    if (randomInt == 5) {

    GetComponent.<Renderer>()material.mainTexture = texture5;

    }

    if (randomInt == 6) {

    GetComponent.<Renderer>()material.mainTexture = texture6;

    }

    if (randomInt == 7) {

    GetComponent.<Renderer>()material.mainTexture = texture7;

    }

    }

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

    ASP.NET Custom validator needs to work as a compare

    Posted: 27 Jun 2018 10:06 AM PDT

    Hey everyone, for a project I'm working on I need to get a custom validator up and running as a compare validator. For some reason the error message however refuses to show up.

    This is the code I have so far

     protected void MyMethodOnServerSide (object source, ServerValidateEventArgs args) { if (txt_Tekst2.Text == txt_Tekst3.Text) { args.IsValid = true; } else { CustomValidator1.ErrorMessage = "Twee en drie zijn niet gelijk!"; args.IsValid = false; } 

    (It's dutch hope that's okay)

    Markup :

    <asp:CustomValidator ID="CustomValidator1" runat="server" ControlToValidate="txt_Tekst2" ValidateEmptyText="True" ErrorMessage="Tweede en derde zijn niet gelijk!" OnServerValidate="MyMethodOnServerSide" Display="Dynamic" ></asp:CustomValidator> 

    New to custom validators but I don't really see why this can't work.. anyone any idea's?

    submitted by /u/Sharing-Noodles
    [link] [comments]

    .net application does not process intermediate certificate authorities

    Posted: 27 Jun 2018 10:00 AM PDT

    Hey folks, I'm a firewall guy but could use some guidance.

    We have a .net application that makes a TLS connection to a third party. After a heap of logs reviews and packet captures I found that the application could make the connection after manually loading the intermediate certificate into the local machines cert store.

    The 3rd party is providing a complete and accurate certificate chain as the RFC requires. If we use a browser on the server the site displays just fine which makes this issue exclusive to .net I believe.

    Is there something in the way you call TLS/SSL enabled endpoints in .net that tells it to trust the intermediate cert provided by the server?

    Loading and maintaining these IA certs on all these machines is cumbersome. And once an IA cert changes we'll end up with an outage. So I'm trying to see if there's a more graceful way of doing this.

    Thanks!

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

    VB or C# directory search, list, and move files?

    Posted: 27 Jun 2018 08:45 AM PDT

    I need to setup a windows form but the requirements that I want to have are not expressed very well in the research that I have done. This is what I want the form to do: https://i.imgur.com/axjHyM5.jpg 1. Search for a CNC program file name I.e 123456. The search will be looking in a static folder on the users c: drive for example c:\masterfiles 2. for every cnc program name there will always be a document with the g-code (txt) and a pdf for a setup sheet. I would like the program file to be put in one listbox and the pdf to be put in another. 3. for the program lost box I would like it where the file is selected then a button pressed to copy the file from its origin to a different folder (c:\cncprogram) 4. for the setup sheet file I just need to have the option to open and view it. 5. when the next file is searched I need it to clear the old search criteria, empty the c:\cnc program folder and close the pdf that may be opened. 6.

    My expertise is in g-code with cnc machining but I have a little experience with vb and c# but am having problems finding the proper info to incorporate all these features. Seriously, any help will be very much appreciated!

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

    I want to build an application that is essentially just a database that I make query views from.

    Posted: 27 Jun 2018 08:21 AM PDT

    I know the basics of building a database with SQL but have never tried to make a web app to host and grab information from one. What language and frameworks should I familiarize myself with to start building this? Is this a .NET thing?

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

    ImportXML in Google Sheets: Is it possible to import real time data?

    Posted: 27 Jun 2018 07:43 AM PDT

    I apologize if this isn't the right place for this question (there's a GoogleSheets sub, but it's fairly inactive).

    I was wondering if it's possible to import real-time data in Sheets using the ImportXML function, that will update automatically or with the refresh button.

    I've successfully imported the data I'm looking for, but it still seems to be on a time delay once it's within my spreadsheet.

    Thanks very kindly in advance for any and all help & suggestions!

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

    Looking for reading on decentralized programming

    Posted: 27 Jun 2018 12:50 AM PDT

    I'm looking for resources on decentralized software both in the context of computation, networking, and data storage. I expect very different resources for all three but I would appreciate any feedback from the community.

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

    Pixijs or createjs for drawing elements on canvas with interactive elements?

    Posted: 27 Jun 2018 03:30 AM PDT

    This is not a "game project", its more simpler, the main purpose is to show a tooltip when an element on canvas is clicked. (Other frameworks suggestions for this purspose will be appreciated)

    submitted by /u/Don-g9
    [link] [comments]

    Executing PHP in Xojo

    Posted: 27 Jun 2018 02:54 AM PDT

    I am trying to get a Xojo program that has Slack Integration to execute my authorisation PHP file that would let Slack know it is your account to use for when messages are sent through this Xojo program. I can send messages as a bot for now but my authorise PHP file wont execute at all. I am also using Chilkat Xojo plugin too.

    Xojo Code:

    https://pastebin.com/qM1NNH5j

    PHP Code:

    https://pastebin.com/A8naEnn0

    Edit 1: I got the PHP file to run, I have the session log carrying the parameters through but I dont know how to run the header here:

    header("Location: https://slack.com/oauth/authorize?scope=identity.basic&client_id=348038584628.376644836310", true, 301);

    I would like to run this as full url, not just local

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

    What are methods? And when should I use them?

    Posted: 27 Jun 2018 02:53 AM PDT

    Hey guys, my question is basically what the title says :) I've been using matlab a lot recently and recently come across examples using them, but looking online I've not really found any documentation that describes exactly what the point of them is... so yer. Can someone ELI5 ? Thanks in advance :)

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

    What is the best implementation for User and User type in database ?

    Posted: 27 Jun 2018 02:39 AM PDT

    I have to create a system where I will have an Owner and a Passenger. I have to assign roles and redirect them to different panel based on what type of user they are. I have come up with the below structure but I am not sure if this is the correct way to do it.

    Users Table

    id | fname | lname | address | bla(n) | user_type(fk) 

    User Roles Table

    id | role_name | added_by [fk (references admin table, backend and stuff )] | bla(n) 

    Where bla(n) refers to my other columns. I was wondering if this is the right way to do it. If not can anyone suggest me a better/right way. Also please do keep in mind that hard coding the type is not an option for future scaling or something like that, I want as much flexibility as I can so that it will not hinder if any user is added in future. Any help / criticism will be appriciated. Thank you!

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

    No comments:

    Post a Comment