• Breaking News

    Saturday, December 30, 2017

    How often does SQL injection actually happen? Ask Programming

    How often does SQL injection actually happen? Ask Programming


    How often does SQL injection actually happen?

    Posted: 30 Dec 2017 01:46 PM PST

    I read about SQL injection and the risks associated without using parameterized queries and such. My question is, just how often does SQL injection happen? With my little knowledge, I would assume it happens to people making a website or program with little experience. But, what I've theorized is that most of these types of web creators use a web hosting service. I feel like Wordpress, Wix, etc. all account for this and their inexperienced programming users. I'm sure more often than not a Wordpress user has no idea about SQL injection, they just know that Wordpress can handle their login functionality.

    Just how frequent is SQL injection?

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

    Question about Swatting and ways to hinder it

    Posted: 30 Dec 2017 08:42 PM PST

    So with the recent death due to Swatting, it has been all over the news and it got me thinking about possible ways to hinder it

    One idea to limit spoofing is for the 911 operator to be able to tell by the press of a button if the number they are seeing is actually in use.

    So my question to programming is is it possible to determine if a phone number is in use without calling the number, if so how?

    Not sure if this is the right place to ask this, if it is not do the mod's have a suggestion

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

    How to design an effective user interface in a timely manner?

    Posted: 30 Dec 2017 03:36 PM PST

    I'm working on a Java program for work, and while the back-end work is processing smoothly, the front-end design leaves a lot to be desired. In short, we're migrating a Windows 2000 application to Windows 10 using Java (management decision, too late to change it now) and our target users are not tech savvy at all.

    User interface design is something that no one on our team has any real experience with, so do you have any suggestions on how to tackle designing an effective user interface?

    We're trying to preserve the general flow of the predecessor to minimize training costs, but at the same time, trying to make things more intuitive. However, I'm beginning to worry that making it just like the old one might not be the best thing.

    tl;dr - How do you make a good GUI for an overhaul of a dated legacy system?

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

    Python GUI help.

    Posted: 30 Dec 2017 06:16 PM PST

    Hi, I am writing up a project and I ran into a problem. I can't post my code because Its a school project and the board apparently put your code through the internet to check for copying. I'll PM the code to anyone that thinks they can help.

    Basically I have 3 windows in Tkinter. They all open upon the click of a button from the previous window. The problem is they all have the same Window title. Even though I have done

    window.frame.title = ('Log in') window.frame.title = ('create account screen') window.frame.title = ('Confirmation')

    (Window and frame are my parameters, you could imagine it says Self.master) So my windows begin with

    def init (window,frame):

    Anyway all my windows have the title 'Log in'. This is pretty confusing, Again I can PM you the code.

    Thank you.

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

    Is there a excel based user interface?

    Posted: 30 Dec 2017 01:40 PM PST

    Hi All,

    I have written a forecasting system in excel(VBA) but it has the "excel stigma" which will stop it from being used more widely.

    In my own time I would like to convert this to an application. This I will also use as a project to learn another language.

    My question is, is there already a excel add-in like interface I can use to minimise the creation.

    The interface must cover the basics. entering formulas manually or with mouse assistance. Extent of formulas is +-*/ and sum Color cells Format cells Drop down list. Insert row Delete row. I won't to stop column creation/deletion.

    With the above I want to store it in a database for storage and retrieval.

    As this will have alot of data and users. Speed of interface is key to its success.

    This software only needs to be windows based. But I would like the language suggest to be future proof and have wide acceptance as one day I want to sell at decent size organisations.

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

    I started writing a cryptocurrency in Python from scratch. Any feedback?

    Posted: 30 Dec 2017 03:57 PM PST

    So over my Christmas holidays (I'm a student), I decided to look into the workings of Bitcoin, Litecoin etc. I found several helpful online tutorials and read through the Bitcoin spec and I've published my version (although incomplete) on Github. I would really appreciate feedback and if any one is interested in contributing, just let me know!

    https://github.com/chickencoder/coil

    Thanks, chickencoder

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

    Purely for fun and education, I wanna make a webpage that calculates Pokemon weaknesses. What would be better for text data storage: XML or JSON?

    Posted: 30 Dec 2017 03:31 PM PST

    For fun, I'm interested in making a webpage (HTML, CSS and JavaScript) that can calculate and run Pokemon weaknesses for any type combinations. I saw a page that can do this and thought to myself, "this would be fun to try to remake".

    For creating some files to store each type's weaknesses/resistances/immunities, in human-readable plaintext, what would be better (it'll be interpreted by JavaScript): XML or JSON? Never used either before. Which one is more popularly used nowadays and best to learn?

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

    Which careers are currently the best for the present and future in the Computer/IT industry? (self.cscareerquestions)

    Posted: 30 Dec 2017 11:11 AM PST

    Factoring in stress,salary, and future job availibility in the next 4-5 years, which careers would you pick?

    • Software QA Engineer
    • Python Developer
    • C++ Developer
    • Data Scientist
    • Ethical Hacker
    • Data Engineer
    • Devops Specialist
    • Full-Stack Web Developer
    • Ruby on Rails Developer
    submitted by /u/sideways-passer
    [link] [comments]

    What is a good workflow for Arduino/ESP8266 projects with version control?

    Posted: 30 Dec 2017 12:55 PM PST

    Bear with me guys, I'm very new and trying hard to learn! I'm just starting out with coding and microcontrollers because I want to build a specific project for my GF, but I'm trying to figure out what the best way to go about doing this in a way that I can make mistakes in my code and go back in time if I need to (in a sense).

    I've heard of a million and one IDEs that work great for Arduino dev, but honestly, there's so many things I don't know that it's hard to pick one. I don't want to pick one, realize it has some limitations later on, and have to migrate my project to a different platform. SO, I need your help!

    Here are the things I'm looking for, please recommend what you would use:

    • A single IDE that does everything, start to finish. This includes being able to write the code, compile, push it to the boards, and manage the GitHub repo.
    • I know I can use the GitHub desktop client that has a pretty simple GUI to let me manage my repo, but are there any IDEs that allow me to do everything within the program? I want to be able to branch my code as I work on new features, go back to previous versions if I break something, etc. Being able to fork or clone would be nice too since i find myself working from other people's code a lot.
    • Fairly lightweight IDE. It's nice to have things running smoothly. Not a necessity, but sure would be nice.
    • This one may be a reach, but it would be great if the IDE was able to manage libraries and boards the same way Arduino IDE does. It's not the most convenient thing to find and download ZIPs and find the proper place through explorer to place them in.

    I think that covers my bases. Some other questions I had about your personal preferences:

    1. How do you organize your projects on your local machine? Do you just let GitHub save everything to its default dir or do you save to Google Drive or some other cloud service? Is there any point in using a Cloud service since pushing to Git seems to do the same basic thing?
    2. How do you manage versions? For example, I'm working on a project that will allow my GF to control LEDs from her phone, and I know eventually I want to add functionality to let her LEDs react to music. Would you fork and create an entirely new project for this or just branch the master and add functionality? Would you even branch or just work on the master? Honestly, I don't really understand the pros/cons of branching vs forking vs just commiting to master. It seems like any method would allow me to go back to old code if I break it while adding new features.

    Sorry, I know this is asking a whole lot all at once, but I don't want to fiddle with my setup once I start because that seems to be the thing that derails most of the projects once I start them every time. I really appreciate your help, and happy new year!!

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

    "error: expected expression" initializing 2d array with nested for loops

    Posted: 30 Dec 2017 12:44 PM PST

    I am having trouble understanding why the following process to fill a 2d array with numbers [(dimension2 - 1), 0] is giving me an error. This is part of an online cs50 assignment called "fifteen" in case you have done this already. Not looking for a code rewrite, just a pointer to help me figure out what is going wrong. Any help is very much appreciated!

    Full error message:

    ~/workspace/pset3/fifteen/ $ make fifteen clang -ggdb3 -O0 -std=c11 -Wall -Werror -o fifteen fifteen.c -lcs50 -lm fifteen.c:163:9: error: expected expression for (int i = 0; i < d; i++) ^ 1 error generated. make: *** [fifteen] Error 1

    My code:

    void init(void) { // TODO //fill in the initial values of the board int board[d][d] = { for (int i = 0; i < d; i++) { for (int j = 0; j < d; j++) { board[i][j] = ( d*d - 1 - j ); } } board[d - 1][d - 1] = 0; if (d % 2 == 0) /* following swaps 2 and 1 if d is even */ { int temp = board[ d - 1 ][ d - 2 ]; board[ d - 1 ][ d - 2 ] = board[ d - 1 ][ d - 3 ]; board[ d - 1 ][ d - 3 ] = temp; } } ; } 
    submitted by /u/boolwinvoid
    [link] [comments]

    I am facing a error in 2D vector initialization through constructor.

    Posted: 30 Dec 2017 09:56 AM PST

     #include <iostream> #include <string> #include <vector> using namespace std; class data{ public: data(int k, int val):key(k),value(val){} private: int key; int value; friend class hashchain; }; class hashchain{ public: hashchain(int size); void add(int k, int val); bool exists(int k); int get(int k); void remove(int k); void display(); private: int size; vector< vector<data> > v; }; hashchain::hashchain(int size):size(size),v(size, vector<data>(10)){} //here in vector<data>(10) 

    The problem here is that It is showing some weird error but when I searched the internet I got a solution to exact same problem, here but the error is mentioning that I am intializing a data class which needs two arguments but instead I am initializing a vector with the first argument being the size of the vector.

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

    How does compression algorithms deals with the endianness(Big/Little Endian) of the system.

    Posted: 30 Dec 2017 05:10 AM PST

    Is it a major factor while designing a compression algo, and if yes how the developers deal with it.

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

    Need help with a Django 'Poke' app (similar to Facebook.)

    Posted: 30 Dec 2017 12:31 AM PST

    Please see this link to stack overflow. I could really use your help! Thanks

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

    No comments:

    Post a Comment