• Breaking News

    Saturday, October 5, 2019

    Looking to get a MacBook Pro, but I need help deciding on upgrades. I’m a beginning CS college student. Ask Programming

    Looking to get a MacBook Pro, but I need help deciding on upgrades. I’m a beginning CS college student. Ask Programming


    Looking to get a MacBook Pro, but I need help deciding on upgrades. I’m a beginning CS college student.

    Posted: 05 Oct 2019 05:36 PM PDT

    I'm looking to get a 13 inch MacBook Pro. I'm a sophomore in computer science. I'm looking at getting a 13inch MacBook Pro with a 1.4GHz Quad-Core Processor with Turbo Boost up to 3.9GHz with 256GB Storage. I'm considering these three upgrades: getting 512GB of storage, upgrading to 16GB of memory, or upgrading to 1.7GHz quad‑core 8th‑generation Intel Core i7 processor, Turbo Boost up to 4.5GHz.

    My budget is to keep it under 2000$ before tax, so I can only afford two of the upgrades. Which do you think is best? Thanks!

    edit: I probably will upgrade the storage to 512GB, but I need help deciding between the other two potential upgrades. I feel that 256GB is not enough.

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

    I Have 0 Experience

    Posted: 05 Oct 2019 01:02 PM PDT

    Please excuse me if this is a ridiculous question or if I am in the wrong place, I'm a law student so I have no idea about anything related to programming, coding, etc.

    My friend and I recently created a website and had paid a coder to help us with doing things such as adding badges to our product and helping us in general. When I search our website name on google, the title of the search result and the wording on the bottom of that text is filled with random letters and symbols.

    I feel like this is making us look unprofessional and wanted to know how I can change that. If it is a super complicated process should I just contact the guy we paid before ?

    Thank you !

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

    weird question but what other hobbies do you guys have besides programming

    Posted: 05 Oct 2019 06:50 PM PDT

    it seems like my only hobbies are just programming and playing games online lol

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

    what language can I code my CMS with?

    Posted: 05 Oct 2019 05:00 PM PDT

    very simple cms. just need panel to write posts.

    im using wordpress now but whenever i look in source code, i cry

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

    What is a way I could bridge Python with NodeJS in real time for reading analog sensor data?

    Posted: 05 Oct 2019 07:35 PM PDT

    So... I am reading analog sensors with this ADC MCP3008 and the Python code I used(Adafruit) works... but I'm trying to use it with a websocket and I had problems with websocket(module). I decided to use Python 3.5 but the Adafruit MCP3008 library is having import problems when using Python 3.5(where as it works fine in Python 2.7)

    So I then decided I'll just use Node as I keep seeing it... I tried these two libraries: mcp-spi-adc and rpio... having problems... mcp-spi-adc is having an issue with the spi device(enabled) and then rpio is actually working(dumping spi) but they're all 0. I imagine it's a wiring issue(pins layout different from Adafruit than RPIO spi). Adafruit's has a software-based spi and hardware spi(I think difference was I didn't have to actually enable SPI in Raspberry Pi to get it to work).

    So yeah... my thought now is I could just write the websocket part with Node but also get the real time values from Python/Adafruit MCP3008 library... but I'm wondering how you would bridge those two where it's real time/passing data stream vs. like writing to file or... I don't know.

    I'm going to keep trying because this sounds like a bad idea

    edit: maybe sys.stdout is something, this is really crappy but I have existing stuff using the Python wiring that's currently in place/working so I don't want to disturb that... and I would be fine with a new thread running as I have some already running and they don't use much resources at all.

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

    Is there a way to create a custom map of one type of location based on google maps?

    Posted: 05 Oct 2019 05:02 AM PDT

    Such as a script that would get the locations of all the locations in the world, put them on a new map and show it. And ten you can filter it to show all mcdonald's in europe, or churches in poland, or tim hortons in canada

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

    Going to get downvoted into hell for this, but why does it seem like the vast majority of college CS is a complete waste of time?

    Posted: 05 Oct 2019 05:46 PM PDT

    In my humble opinion, you learn so much infinitely more hands on, particularly through teaching yourself with videos, forums (Reddit, Stack Overflow, etc), websites/documentation, and your own creativity.

    College CS constantly delves into deep theory, heavy mathematics, or other crap that has the same level of engagement as hammering out license plates.

    Why hasn't education evolved into a program that's actually useful?

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

    What is the best way to use input boxes in tables in order to submit a form using Java? (picture inside)

    Posted: 05 Oct 2019 01:16 PM PDT

    Right now I am just using tables and having input boxes inside each which I know is a terrible design since I need unique IDs for each input box.

    How can I get the data from the input boxes without having to use unique IDs since I would also like the user to be able to add / remove rows from the table. This is a example of my table

    https://imgur.com/Bhboqzy.jpg

    I have also attached a sample of my code. I believe that the way I coded it will not allow the user to add / remove rows since the ID has to be generated each time.

    I would really appreciate some advice guys. Thanks for reading.

    <tbody id="tbodyMonday"> <tr> <th scope="row">1</th> <td><input class="workoutInputs" name="mondayExercise1" type="text"/></td> <td><input class="workoutInputs" name="mondaySets1" type="text"/></td> <td><input class="workoutInputs" name="mondayReps1" type="text"/></td> <td><input class="workoutInputs" name="mondayRest1" type="text"/></td> </tr> <tr> <th scope="row">2</th> <td><input class="workoutInputs" name="mondayExercise2" type="text"/></td> <td><input class="workoutInputs" name="mondaySets2" type="text"/></td> <td><input class="workoutInputs" name="mondayReps2" type="text"/></td> <td><input class="workoutInputs" name="mondayRest2" type="text"/></td> </tr> </tbody> 
    submitted by /u/AnxietyOlympics
    [link] [comments]

    Getting Int from Entry textbox

    Posted: 05 Oct 2019 12:30 PM PDT

    I'm using tkinter and python and I'm trying to make a row be inserted repeatedly according to the value from the textbox Incomingvariable as shown in the code below

    from tkinter import *

    root=Tk()
    c = conn.cursor

    Incomingv = IntVar()
    Incomingvariable = Entry(root,textvariable= Incomingv)

    for x in range (Incomingvariable):
    c.execute("INSERT INTO store2 VALUES(ex1,ex2,ex3
    {'ex1':example,'ex2':example2,'ex3':example3})

    It always produces this error

    TypeError: int() argument must be a string, a bytes-like object or a number, not

    'Entry'

    Can you please help me take int value out of that textbox called Incomingvariable to assign it to the range in the for loop.
    Thanks a lot :)

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

    I have a Mac Book Pro from mid 2014. Is it ideal to switch to Mojave?

    Posted: 05 Oct 2019 04:13 PM PDT

    [ PHP ][ JavaScript ] Is there any easy way to get direct video link from a Twitter URL?

    Posted: 05 Oct 2019 10:28 AM PDT

    I am looking for an easy way to get direct video link from a Twitter URL. I have tried several libraries in last four days but all seems to be not working.

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

    wouldn't it be easy for YouTube to get around AdBlock?

    Posted: 05 Oct 2019 09:19 AM PDT

    As far as I know, YouTube's client-side JS makes a request to an ad server when it wants to load an ad. Ad-blocking plugins seem to stop this request from occurring, and/or tell YouTube's video server that the ad was completed and it's time to resume streaming the video. Instead, couldn't YouTube's servers just insert the ads into the actual video file before serving it to the client? Or couldn't they serve their ads and videos from endpoints which are indistinguishable from client-side, so that the ad-blocker doesn't know what to block? Or refuse to stream more of the video until the time duration of the ad has passed?

    My best guess is that it's not a technical problem, but a business decision: They allow use of ad-blockers because they prefer to keep market share over making the most ad revenue.

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

    What's the best way to format multivariable serial data for export to a spreadsheet?

    Posted: 05 Oct 2019 06:22 AM PDT

    So right now I have serial data coming out like this:

    time: x_1 position: y_1 rate: z_1

    time: x_2 position: y_2 rate: z_2

    and so on. I'd like to be able to copy and paste the data from the serial monitor into a spreadsheet like excel, but the way it's currently formatted will put the whole line into a single cell, which puts all the data into a single column.

    I could have it print time, position, and rate into separate lines, but then it would still paste into a single column.

    Is there a way I can format the data for easy transfer into three different columns?

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

    Sublime Text 3 - x86 Build Help

    Posted: 05 Oct 2019 02:18 AM PDT

    Hello,

    I was just wondering how I can make a new build so that I can run my x86 assembly code through sublime? I basically have 'c' files and a make file that uses gcc to build the object files and makes a runnable file but I'm unsure how to make a build for Sublime Text 3 so that I can actually run my code.

    For example, I have a main.c file then another subprogram.s file and I need to be able to link and run that .s file through main.c but it will not build the assembly.

    If anyone could help with this, that would be great.

    Thank you!

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

    [C#] Help needed In sending Keys to a process that I have started from Windows App Form

    Posted: 05 Oct 2019 12:47 AM PDT

    So I am creating an application that starts another app called PS4 Macro. I start the Process like this :

    Process myProcess = new Process(); myProcess.StartInfo.UseShellExecute = true; myProcess.StartInfo.FileName = finalString; myProcess.StartInfo.CreateNoWindow = true; myProcess.StartInfo.Verb = "runas"; myProcess.StartInfo.Arguments = "--AutoInject --EmulateController"; myProcess.Start(); String Pid = "" + myProcess.Id; 

    Now I used Spy++ to get the title and class name of the Application.This was shown inside Spy++

    Window Caption = [DEBUG] PS4 Macro - v0.5.2 (BETA) Class Name = WindowsForms10.Window.8.app.0.31c915c_r6_ad1 

    Then I use the following process.

    IntPtr AppHandle = FindWindow(null, "[DEBUG] PS4 Macro - v0.5.2 (BETA)"); if (AppHandle == IntPtr.Zero) { MessageBox.Show("Something's wrong I can feel it"); return; } SetForegroundWindow(AppHandle); SendKeys.SendWait("^(o)"); 

    With the methods being defined,

     [DllImport("USER32.DLL", CharSet = CharSet.Unicode)] public static extern IntPtr FindWindow(string lpClassName, string lpWindowName); [DllImport("USER32.DLL")] public static extern bool SetForegroundWindow(IntPtr hWnd); 

    There is no error, But when I run it, my Process i.e. PS4 Macro does not recieve "ctrl+o". If I try it with notepad, and substitute title with "Untitled - Notepad", it works perfectly. What Am I doing wrong?

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

    My Professor will not let our UI's answer whether our answers on comprehensions are correct. Why are professors like this???

    Posted: 05 Oct 2019 08:13 AM PDT

    Full question was too long. See here: My Professor will not let our UI's answer whether our answers on comprehensions are correct. LET ME REPEAT: OUR PROFESSOR WILL NOT LET US KNOW IF WE ARE DOING SOMETHING WRONG UNTIL IT IMPACTS OUR GRADE, EVEN IF WE SPEND 5 HOURS IN OFFICE HOURS TRYING TO UNDERSTAND THE MATERIAL. WHY ARE CS PROFESSORS LIKE THIS?

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

    No comments:

    Post a Comment