• Breaking News

    Wednesday, August 14, 2019

    Looking for beginner programmers/web-developers in NYC!!! Ask Programming

    Looking for beginner programmers/web-developers in NYC!!! Ask Programming


    Looking for beginner programmers/web-developers in NYC!!!

    Posted: 14 Aug 2019 01:22 PM PDT

    I'm 4 months into a self-taught journey of front-end web development, but I can feel my learning start to slow down. I really would like other beginners to meet up with weekly and go through coding topics together (programming techniques, HTML/CSS/JavaScript, building an app, reading development-related books, taking an online course, etc.) I've been looking into attending a bootcamp for the sole purpose of meeting people who are in the same position as me, but I can't really fathom investing 13k into Friendship right now. I also have a full-time job.

    I've already joined Women Who Code and Tech Ladies and literally every code or tech-related meetup, but they rarely schedule events - at least not enough for my liking.

    Let me know if you're interested!

    (Also major plus if you live in Brooklyn.)

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

    database == global state, therefore global state is a valid design principle?

    Posted: 14 Aug 2019 05:10 PM PDT

    Global state is generally considered a bad design practice. There is a fair share of hate for "global variables" and "singleton patterns" because they can be manipulated by a number of sources and hard to predict the state of.

    But that got me thinking--couldn't a database be considered a global state? They are manipulated by a number of sources and often not even on the same computer as the program that controls the data--clearly out of the control of a single program or class.

    Therefore, design principles and practices that are focused around maintaining a database/global state are valid and should not be considered "bad". Right?

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

    When to use React vs JS object constructor functions

    Posted: 14 Aug 2019 06:43 AM PDT

    What is the benefit to building a javascript web app using React over building the same app using javascript object constructors instead of React components?

    I am just learning React and trying to understand its advantage. Is this a matter of preference?

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

    Is there a system or best practice for organizing a CSS stylesheet? So far I've only been styling single pages but now I'm building multi page sites.

    Posted: 14 Aug 2019 04:41 PM PDT

    I'm hoping there's a system that ties in both the stylesheet and how to name classes in html but if any one point me in the right direction, I'd appreciate it. Thanks

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

    How do you batch build in visual studios Mac?

    Posted: 14 Aug 2019 05:09 PM PDT

    I have been looking for the past 30 minutes and the only options for build are build all, build, rebuild, and clean all. Where is the batch build?

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

    Is there a SaaS that makes it easy/simplifies writing custom scripts for lay people?

    Posted: 14 Aug 2019 01:16 PM PDT

    For example performing Google searches from a Google Sheet. IFTT doesn't work for what I'm looking for.

    Thanks for any help, appreciate it!

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

    Which language/program should I use to easily achieve a portable, one-file program, that can hold all the assets, display pictures with transparrency, and do calculations based on an external file?

    Posted: 14 Aug 2019 12:59 PM PDT

    Hello!

    Looking for:
    Advice which program or method to use to achieve the goal

    Goal:
    1- have a portable, one-icon program that generates an achievement-type screen, based on data from a table, and with each position supporting multiple different icons/pictures based on the quality of data calculated.

    Requirements:
    - one file, portable
    - easy input of data directly into code, or easy pulling of data from a separate file
    - supports layering of pictures to achieve different quality results
    - generates a custom combination of pictures (which support transparrency, obviously), for each of the calculated values, which are calculated based on data from a table.

    Example:
    1. you got all the data for august and input it into the table in file 2 or into the code directly
    2. The program automatically generates different-quality "achievement" icons for each of the previous months, based on the old data, and also generates the new one for august based on the new data you supplemented on top of the old one.
    3. Months not yet filled out are left with a "neutral" "icon"
    4. Quarter and yearly averages are calculated and shown on separate, larger icons.


    I used python once, but I remember having a hard time generating the one-icon thingie. A really hard time, and I only needed to join a simple background for the program. html makes you put all your assets in a separate folder. If Excel supported conditional formatting with custom pictures, I would have used that.

    Please give advice!

    Tnx!

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

    Python Q: What happens to objects outside of the function they were initialized in? Also, what does "del" do on a low level?

    Posted: 14 Aug 2019 04:30 PM PDT

    Do they stick around in RAM purgatory or does Python have a garbage collector kind of functionality like in Java? What does "del" do? Does it simply erase reference to a memory location or what? All information relating to this subject would be greatly appreciated.

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

    Desperate need of help! Data being sent between arduino and java on PC.

    Posted: 14 Aug 2019 04:12 PM PDT

    I am making a device to convert IM to braille, and this particular portion is bothering me. I'm trying to send a string from the arduino over to the java program to sort through some files, but I can't get it working! I am using bluecove to enable communication over bluetooth. I set the rates correctly to 9600 baud. The code for the respective areas is:

    Bluetooth:

    String getFirstMessage()

    {

    incomingMessage = "";

    Serial.println("Getting message with 0 |0 0.txt");

    delay(250);

    mySerial.write("0 |0 0.txt");

    delay(250);

    while(mySerial.available())

    {

    character = mySerial.read();

    incomingMessage.concat(character);

    }

    return(incomingMessage);

    }

    Java:

    while(is.available() <1);

    {

    Thread.sleep(200);

    }

    boolean testing = false;

    System.out.println("Received");

    while( (i = is.read()) != -1)

    {

    if(testing == false)

    {

    System.out.println("In the loop");

    testing = true;

    }

    i = is.read(inputData);

    }

    It always hangs on the last line there, i=is.read(inputData); . inputData is a Byte array, and "is" is defined as

    InputStream is = streamConnection.openInputStream();

    I am at my wits end with why this would fail to work. Any help would be tremendously appreciated! To clarify, what I want to get from the arduino code is the string of the "0 |0 0.txt" as those three contained strings are parameters for other functions. Those are parsed later

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

    Code doesn't work (C++)

    Posted: 14 Aug 2019 12:14 PM PDT

    So the code linked below (C++) is supposed to basically generate distinct random numbers from 1 to 9 until all 9 numbers are generated, and then write them in the order in which they were generated (a sudoku line). Problem is, it doesn't write anything. It's stuck in a loop or something. Also, if I uncomment the "//cout<<x;", it ALWAYS writes "6" (even though I thought rand() was supposed to randomly generate), and THEN it doesn't do anything (again maybe stuck in a loop).

    https://imgur.com/FNPzSda

    P.S.: I'm trying to make a Sudoku. That doesn't matter, but I don't want to know if I'm doing it right or not, I'll find that out by myself, so please don't give me advice concerning this matter.

    EDIT: I'm retarded, figured it out.

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

    [PHP] exec() problem

    Posted: 14 Aug 2019 11:08 AM PDT

    I'm trying to use to run a shell script but it will not perform what I want it to which is to restart a service.

    php code:

    <?php echo exec("/opt/lampp/htdocs/teamspeak/restart.sh"); ?> 

    restart.sh script:

    #!/bin/sh service teamspeak restart 2>&1 

    The resulting output on the php file is:

    See system logs and 'systemctl status teamspeak.service' for details. 

    This fails to restart the server I've been googling for two days and cannot seem to find a way to fix it I was wondering if anybody here could help.

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

    is this .batch file safe?

    Posted: 14 Aug 2019 08:56 AM PDT

    my friend send me this .batch file

    i found it it basically transfer files to another and this line of code i only understand
    "copy "C:\Users\kentpachi\Desktop\folder\Exp" "C:\Program Files (x86)\Dead\Data\Managed"

    and this is the whole code

    @echo off

    :: BatchGotAdmin

    :-------------------------------------

    REM --> Check for permissions

    IF "%PROCESSOR_ARCHITECTURE%" EQU "amd64" (

    >nul 2>&1 "%SYSTEMROOT%\SysWOW64\cacls.exe" "%SYSTEMROOT%\SysWOW64\config\system"

    ) ELSE (

    >nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"

    )

    REM --> If error flag set, we do not have admin.

    if '%errorlevel%' NEQ '0' (

    echo Requesting administrative privileges...

    goto UACPrompt

    ) else ( goto gotAdmin )

    :UACPrompt

    echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"

    set params= %*

    echo UAC.ShellExecute "cmd.exe", "/c ""%~s0"" %params:"=""%", "", "runas", 1 >> "%temp%\getadmin.vbs"

    "%temp%\getadmin.vbs"

    del "%temp%\getadmin.vbs"

    exit /B

    :gotAdmin

    pushd "%CD%"

    CD /D "%~dp0"

    :--------------------------------------

    copy "C:\Users\kentpachi\Desktop\folder\Exp" "C:\Program Files (x86)\Dead\Data\Managed"

    is this code safe?

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

    Which compiler should I get?

    Posted: 14 Aug 2019 12:42 PM PDT

    I'm programming in C++ in Visual Studio. I hear there are some better compilers out there than the one VS is providing. Which one should I get? Also, how do I set it up?

    Thanks!

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

    What are the different ways I can use to make responsive text / font-size?

    Posted: 13 Aug 2019 10:25 PM PDT

    I am attempting to build a website and I have built some in the past, but this time I am really trying hard to create an emphasis on the website being able to run at all screen sizes. I am running into an issue where when the screen gets smaller, the text stays the same.

    In the navbar I combatted this issue by changing text size by doing something like this...

    @media only screen and (max-width: 640px) {
    .navbarBrandText {
    font-size: 21px;
    }
    .wsuLogoNav {
    width: 70px !important;
    height: 70px !important;
    }

    }

    Is this the only way to currently do this? I would feel some framework or something out there would be able to sense if the text is overflowing and change accordingly, just want to make sure I am using the best practices and coding the right way. Any help would be appreciated

    Link to website

    https://cooperlappenbusch.github.io/Washington-State-University-Design-Project/#

    Ignore the huge arrows! I don't know why they're doing that but they are, that's an issue for another day

    TL;DR text too big when going to smaller screen, whats an easy way to fix this problem besides media queries ?

    Thanks for any help in advance! I'll be in the comments

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

    Companies that offer on-site/on-demand courses for developers?

    Posted: 14 Aug 2019 05:24 AM PDT

    Our company is looking to upgrade it's back-end developers' knowledge by allowing them to take courses. So we are looking for companies that offer such courses. More specifically, we are interested in on-site, company-tailored courses (preferably in the EU as we're a EU based company).

    Because we use a pretty customized .NET stack, we assume the best choice here is to hire an expert from an external company, and compile a tailored learning experience together with the consultant.

    What are your thoughts and/or criticisms on this approach and/or can you recommend any (EU) companies that offer these services?

    Or anyone have any similar experiences with companies that offer(ed) these classes to their employees? (was it a good or bad experience?)

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

    For loop

    Posted: 14 Aug 2019 01:18 AM PDT

    how do you change the value that a for loop goes up by?

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

    No comments:

    Post a Comment