• Breaking News

    Thursday, February 8, 2018

    Can someone explain the Angular/Ionic/Cordova relationship in an ELI5 manner? Ask Programming

    Can someone explain the Angular/Ionic/Cordova relationship in an ELI5 manner? Ask Programming


    Can someone explain the Angular/Ionic/Cordova relationship in an ELI5 manner?

    Posted: 08 Feb 2018 08:26 PM PST

    Where do you draw the line between planning ahead and over engineering?

    Posted: 08 Feb 2018 05:02 PM PST

    Tournament Bracket Program

    Posted: 08 Feb 2018 05:40 PM PST

    Hey! I am planning on doing a tournament bracket program for the upcoming World Cup. However, I am having a hard time deciding which language to use, or basically where to get started. Any ideas?

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

    C# program that calculates diameter, surface area and volume. Having trouble getting the math right.

    Posted: 08 Feb 2018 09:40 PM PST

    double label2; double label3; double label4; double userInput = 1;

     label2 = 2; label3 = 4 * Math.PI * Math.Pow(userInput, 2); label4 = 4 * Math.PI * Math.Pow(userInput, 3) / 3; userInput = double.Parse(textBox1.Text); label2 = userInput * label2; textBox2.Text = label2.ToString("f"); label3 = userInput * label3; textBox3.Text = label3.ToString("f"); label4 = userInput * label4; textBox4.Text = label4.ToString("f"); 

    this is my code but the answers that return in my GUI application are 10 for the diameter, 62.83 for the surface area and 20.94 for the volume when it should return 10, 314.16, 523.60. This is my first programming class and I'm still learning the ropes

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

    God Help Me This Evil Bugged Code Has Been Killing Me.

    Posted: 08 Feb 2018 08:51 PM PST

    <path id="project-classpath"> <fileset dir="${basedir}/lib" includes="**/*.jar" /> </path>

    <target name="checkstyle"> <!-- CheckStyle --> <taskdef resource="checkstyle.properties" classpath="C:\Users\PhilThePhaggot\Desktop\Workspace2\Cs376bDemoApp\lib \checkstyle-6.12.1-all.jar" /> <checkstyle config="DsrJavaFormattingProfile.xml" classpath="C:\Users\PhilThePhaggot\Desktop\Workspace2\Cs376bDemoApp\lib \checkstyle-6.12.1-all.jar" /> <fileset dir="${src}" includes="**/*.java" /> </target> 

    GivesBuildfile: C:\Users\Sa\Desktop\Workspace2\Cs376bDemoApp\build.xml checkstyle: [taskdef] Could not load definitions from resource checkstyle.properties. It could not be found.

    BUILD FAILED C:\Users\Sa\Desktop\Workspace2\Cs376bDemoApp\build.xml:86: Problem: failed to create task or type checkstyle Cause: The name is undefined. Action: Check the spelling.

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

    Which to learn next?

    Posted: 08 Feb 2018 08:43 PM PST

    I'm currently working through learning html & css. As this should tell you I'd like to work on web design. I was looking at delving more into html5 after this but a lot of the references I've been seeing keep having JS in the example code.

    Should I learn Javascript before html5? I'm not entirely sure which languages do what for web design. things I feel I'll need to know are coding membership sites (which I believe is PHP oriented?) e-commerce sites and so on.

    Basically, what languages do I need to learn, and what should I work on next?

    also is node.js something I'm going to need to know?

    Sorry for all the questions and the terribly oriented text.

    edit: I know it's not a very black and white question, however I've seen countless sources say javascript and/or PHP to be next as (apparently) html,css, and php are the basic necessary tools to make a nice web page.

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

    Create an Interrupt Handler for a micro-controller that's lacking one in C

    Posted: 08 Feb 2018 07:55 PM PST

    I am taking part in a project at my university, and one of the tasks delegated to me is to, basically, create an interrupt handler, because the board we got, for some reason, lacks one.

    My professor said to do something like an array of structs, where you can check for flags while traversing the array, and if its 1, set it to 0 for that interrupt, process what's needed, then continue traversing.

    In response to his plan, I was looking up how to run a function from a struct, but everything I see says its impractical/impossible. If that's the case, how can I check for a flag, then run code based on which value in the array has a flag set? In that case, wouldn't it be easier to just have an array of ints, and if, say, Array[0] = 1, set Array[0]=0, then execute function0, and if Array[1]=1, set Array[1]=0, then execute function1, etc.., calling the functions to be executed in the while/for loop with if statements.

    Any help understanding what I need to be looking for/researching and doing would be greatly appreciated! We're using Kinetis to code everything.

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

    I am making battleship in java and spring and I ran into an annoying and troublesome bug stemming from sql relations, particularly my use of manyToOne. Help!!

    Posted: 08 Feb 2018 03:17 PM PST

    I am building Battleship in Java and I've been stuck on this bug for a while and even my TA was unsure about what exactly is wrong.

    I get an error that states there was a problem creating a bean called entityManagerFactory. My TA and I deducted that it's stemming from how I set up my Postgresql relationships, specifically the ManyToOne - OneToMany relationships I have in my project.

    Here is my stack trace of errors:

     org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1628) ~[spring-beans-4.3.14.RELEASE.jar:4.3.14.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555) ~[spring-beans-4.3.14.RELEASE.jar:4.3.14.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) ~[spring-beans-4.3.14.RELEASE.jar:4.3.14.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.3.14.RELEASE.jar:4.3.14.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.3.14.RELEASE.jar:4.3.14.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.3.14.RELEASE.jar:4.3.14.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.3.14.RELEASE.jar:4.3.14.RELEASE] at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1080) ~[spring-context-4.3.14.RELEASE.jar:4.3.14.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:857) ~[spring-context-4.3.14.RELEASE.jar:4.3.14.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543) ~[spring-context-4.3.14.RELEASE.jar:4.3.14.RELEASE] at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122) ~[spring-boot-1.5.10.RELEASE.jar:1.5.10.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693) [spring-boot-1.5.10.RELEASE.jar:1.5.10.RELEASE] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360) [spring-boot-1.5.10.RELEASE.jar:1.5.10.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) [spring-boot-1.5.10.RELEASE.jar:1.5.10.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1118) [spring-boot-1.5.10.RELEASE.jar:1.5.10.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1107) [spring-boot-1.5.10.RELEASE.jar:1.5.10.RELEASE] at com.alexanderglaze.battleship.BattleshipApplication.main(BattleshipApplication.java:10) [classes/:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_161] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_161] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_161] at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_161] at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) [spring-boot-devtools-1.5.10.RELEASE.jar:1.5.10.RELEASE] Caused by: javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.persistenceException(EntityManagerFactoryBuilderImpl.java:954) ~[hibernate-entitymanager-5.0.12.Final.jar:5.0.12.Final] at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:882) ~[hibernate-entitymanager-5.0.12.Final.jar:5.0.12.Final] at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:60) ~[spring-orm-4.3.14.RELEASE.jar:4.3.14.RELEASE] at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:360) ~[spring-orm-4.3.14.RELEASE.jar:4.3.14.RELEASE] at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:382) ~[spring-orm-4.3.14.RELEASE.jar:4.3.14.RELEASE] at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:371) ~[spring-orm-4.3.14.RELEASE.jar:4.3.14.RELEASE] at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:336) ~[spring-orm-4.3.14.RELEASE.jar:4.3.14.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1687) ~[spring-beans-4.3.14.RELEASE.jar:4.3.14.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1624) ~[spring-beans-4.3.14.RELEASE.jar:4.3.14.RELEASE] ... 21 common frames omitted Caused by: org.hibernate.MappingException: Could not determine type for: com.-.battleship.model.Game, at table: board, for columns: [org.hibernate.mapping.Column(game)] at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:431) ~[hibernate-core-5.0.12.Final.jar:5.0.12.Final] at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:398) ~[hibernate-core-5.0.12.Final.jar:5.0.12.Final] at org.hibernate.mapping.Property.isValid(Property.java:225) ~[hibernate-core-5.0.12.Final.jar:5.0.12.Final] at org.hibernate.mapping.PersistentClass.validate(PersistentClass.java:595) ~[hibernate-core-5.0.12.Final.jar:5.0.12.Final] at org.hibernate.mapping.RootClass.validate(RootClass.java:265) ~[hibernate-core-5.0.12.Final.jar:5.0.12.Final] at org.hibernate.boot.internal.MetadataImpl.validate(MetadataImpl.java:329) ~[hibernate-core-5.0.12.Final.jar:5.0.12.Final] at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:443) ~[hibernate-core-5.0.12.Final.jar:5.0.12.Final] at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:879) ~[hibernate-entitymanager-5.0.12.Final.jar:5.0.12.Final] 

    The stack trace is yelling about the relationship between board and game but it previously yelled about the relationship between ship and board so Ill include all four of my models in case my problem is a recurring one.

    GAME:

     package com.-.battleship.model; import com.fasterxml.jackson.annotation.JsonManagedReference; import javax.persistence.*; import java.util.List; @Entity public class Game { @Id @GeneratedValue private Integer id; private boolean isOver; private boolean setupComplete; private Player turn; private String status; private List<Player> players; private List<Board> boards; public Game(Integer id, List<Player> players, List<Board> playerBoards) { this.id = id; this.players = players; this.boards = playerBoards; } public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } @OneToMany(fetch = FetchType.LAZY, mappedBy = "game", cascade = CascadeType.ALL) @JsonManagedReference public List<Player> getPlayers() { return players; } public void setPlayers(List<Player> players) { this.players = players; } public boolean isOver() { return isOver; } public void setActive(boolean over) { isOver = over; } public void setOver(boolean over) { isOver = over; } public boolean isSetupComplete() { return setupComplete; } public void setSetupComplete(boolean setupComplete) { this.setupComplete = setupComplete; } public Player getTurn() { return turn; } public void setTurn(Player turn) { this.turn = turn; } public String getStatus() { return status; } public void setStatus(String status) { this.status = status; } @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL, targetEntity = Board.class) @JoinTable(name="GAME_BOARD", joinColumns = {@JoinColumn(name = "GAME_ID")}, inverseJoinColumns = {@JoinColumn(name = "BOARD_ID")}) public List<Board> getBoards() { return boards; } public void setBoards(List<Board> boards) { this.boards = boards; } } 

    BOARD:

    package com.-.battleship.model; import com.fasterxml.jackson.annotation.JsonManagedReference; import javax.persistence.*; import java.util.List; @Entity public class Board { @Id @GeneratedValue private Integer id; private boolean showAllSpaces; private Ship ship; private List<Ship> shipsOnBoard; private Game game; private Player playerOwner; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } @ManyToOne @JoinColumn(name= "player_id") public Player getPlayerOwner() { return playerOwner; } public void setPlayerOwner(Player player) { this.playerOwner = player; } public boolean isShowAllSpaces() { return showAllSpaces; } public void setShowAllSpaces(boolean showAllSpaces) { this.showAllSpaces = showAllSpaces; } public List<Ship> getShipsOnBoard() { return shipsOnBoard; } public void setShipsOnBoard(List<Ship> shipsOnBoard) { this.shipsOnBoard = shipsOnBoard; } @ManyToOne public Game getGame() { return game; } public void setGame(Game game) { this.game = game; } @OneToMany(fetch = FetchType.EAGER, cascade = CascadeType.ALL, targetEntity = Ship.class) @JoinTable(name="BOARD_SHIP",joinColumns = {@JoinColumn(name = "BOARD_ID")}, inverseJoinColumns = {@JoinColumn(name = "SHIP_ID")}) public Ship getShip() { return ship; } public void setShip(Ship ship) { this.ship = ship; } } 

    SHIP:

    package com.-.battleship.model; import com.fasterxml.jackson.annotation.JsonManagedReference; import javax.persistence.*; import java.util.HashMap; import java.util.List; import java.util.Map; @Entity public class Ship { @Id @GeneratedValue private Integer id; private Integer size; private Board board; private Player player; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } enum ShipType { Patrol, Cruiser, Submarine, Battleship, Carrier } private ShipType s; @ManyToOne(cascade = CascadeType.ALL) @JoinColumn(name = "BOARD_ID") public Board getBoard() { return board; } public void setBoard(Board board) { this.board = board; } @ManyToOne @JoinColumn(name= "player_id") public Player getPlayer() { return player; } public void setPlayer(Player player) { this.player = player; } public Integer getSize() { return size; } public void setSize(Integer size) { this.size = size; } public Ship(Integer size, String shipType) { if(shipType.equals("Patrol")) { this.s = ShipType.Patrol; } else if (shipType.equals("Cruiser")) { this.s = ShipType.Cruiser; } else if (shipType.equals("Submarine")) { this.s = ShipType.Submarine; } else if (shipType.equals("Battleship")) { this.s = ShipType.Battleship; } else if (shipType.equals("Carrier")) { this.s = ShipType.Carrier; } this.size = size; } } 

    PLAYER:

     package com.-.battleship.model; import com.fasterxml.jackson.annotation.JsonManagedReference; import javax.persistence.*; import java.util.ArrayList; import java.util.List; @Entity public class Player { @Id @GeneratedValue private Integer id; private List<Ship> ships; private List<Board> boards; private Board moves; private Board opponentsMoves; private Game game; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public Board getMoves() { return moves; } public void setMoves(Board moves) { this.moves = moves; } public Board getOpponentsMoves() { return opponentsMoves; } public void setOpponentsMoves(Board opponentsMoves) { this.opponentsMoves = opponentsMoves; } public Player(Integer id, List<Ship> ships, Board moves, Board opponentsMoves) { this.id = id; this.ships = ships; this.moves = moves; this.opponentsMoves = opponentsMoves; } @ManyToOne @JoinColumn(name= "game_id") public Game getGame() { return game; } public void setGame(Game game) { this.game = game; } @OneToMany(fetch = FetchType.LAZY, mappedBy = "player", cascade = CascadeType.ALL) @JsonManagedReference public List<Board> getBoards() { return boards; } public void setBoards(List<Board> boards) { this.boards = boards; } @OneToMany(fetch = FetchType.LAZY, mappedBy = "player", cascade = CascadeType.ALL) @JsonManagedReference public List<Ship> getShips() { return ships; } public void setShips(List<Ship> ships) { this.ships = ships; } } 

    Any help would be greatly appreciated. Please let me know if you need more information from me to help me find a solution to this annoying bug >:(

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

    Which library would you like to see ported on language X ?

    Posted: 08 Feb 2018 08:11 AM PST

    As a practice exercise for every language, porting a library is a great way to have a better grasp of a language while filling a gap for its developers needs.

    It gives your learning project a real meaning and therefore helps with your motivation to learn.

    I'm trying to build a list of libraries having this potential.

    Which library made you think "I wish it was ported on language X" ?

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

    Which statically-compiled-to-binary languages best support functional programming?

    Posted: 08 Feb 2018 02:34 PM PST

    Mostly what the header says. I'm trying to find a good language that can compile directly to binary and directly interface with c libraries, but also supports the functional style as much as possible. It's hard to find a good breakdown on this aspect of different languages but so far it looks like maybe Rust and Nim are contenders. I know that both are lacking in many functional features, and this is a very subjective question, but I'd appreciate any thoughts on the matter.

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

    How is an xor instruction used?

    Posted: 08 Feb 2018 12:15 PM PST

    I'm converting some RISC-V assembly code to C, and for the most part I understand how to do it. However, there is one instruction that's confusing me:

    xori t3, t3, 0x55

    Now, I understand that xori does a bitwise xor between the t3 register and the immediate value 0x55. 0x55 equals 01010101 in binary, so it performs an xor between the value in t3 and 8 bits of alternating 0s and 1s. I know that C has bitwise operations so I'm pretty sure I could just use C's xor, but I was wondering why one would want to do this. I know some assembly code can seem kind of counter-intuitive to somebody used to programming in high-level languages (like using slli to multiply by powers of 2), so I was wondering exactly what purpose this xori instruction may have. Thanks.

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

    [Java] I'm creating 8 piles of cards, shuffling 6-7 cards in each pile. How would I go about doing this?

    Posted: 08 Feb 2018 01:50 PM PST

    I'm a beginner in Java, and I'm having a hard time wrapping my head around this.

    I thought about having 8 piles (each a stack) in my main program, but I was told this isn't efficient. In addition, I have to create 8 more empty stacks, which will later hold cards.

    But creating 16 stacks doesn't seem very efficient. How else could I go about this?

    Note: they also said that list of lists aren't efficient, either. I think I'm tired or overthinking this, but I'm very confused.

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

    What’s next

    Posted: 08 Feb 2018 03:39 PM PST

    I'm in my mandatory CS class for my degree and so far really enjoy what we're doing. The class is all in C++. I would like to keep going with it but have no clue where to go after this course and don't intend on changing majors. I've used code academy but find I learn better from using my textbook and lots of trial and error. Any idea or suggestions are welcomed.

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

    What's up with CSS/CSS-like styles in React Native?

    Posted: 08 Feb 2018 02:46 PM PST

    I've not used React or React Native before, but have just joined an existing React Native project. I've confused myself while trying to figure it out:

    1. React Native is not like Cordova/Ionic in the sense that it compiles the written JavaScript to native UI elements instead of a wrapped up website. That's why you can't use <div> or the like when writing components - you need to use <View> and <TouchableOpacity>, etc..

    2. You can apply CSS styles to them. This is where I get confused.

    Now I'm purely speculating here, but I guess that they're more like "CSS-like" styles. Because many people are familiar with CSS, React/React Native maybe decided to use a similar language that it will convert to native code down the line?

    But in the project I'm working on, I even found flexbox styles. Does React Native really handle converting flexbox styles to native UI code? Is it trying to provide conversion support for an entire CSS standard? That seems crazy (in its ambition), but is that in fact the reality? If not, what's going on?

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

    i need help in solving this problem. (PLanguage PHP)

    Posted: 08 Feb 2018 08:20 AM PST

    i have 2 users (user , admin) each one have its respective page to go.

    but the problem is when i try to go back to my main page and try to click again the link to my login page im not being redirected to whos been logged in.

    it goes like this: if i login as an admin or user and try to access the the link of my login page. i need to redirected to my respective page.

    below is my function code.

    <?php
    include('connection/dbconnect.php');

    $error = ''; session_start();

    if (isset($_SESSION["username"])) { header("Location:Userpage.php") }

    if(isset($_POST["login"]))
    {
    if(empty($_POST["username"]) && empty($_POST["password"]))
    {
    echo '<script>alert("Both Fields are required")</script>';
    }
    else
    {
    $user = mysqli_real_escape_string($con, $_POST["username"]);
    $pass = mysqli_real_escape_string($con, $_POST["password"]);
    $pass = sha1($pass);

     $query = "SELECT * FROM tbluserreg WHERE fldusername = '$user' AND fldpassword = '$pass'"; $result = mysqli_query($con,$query); $count = mysqli_num_rows($result); if ($count > 0) { $loginutype = mysqli_fetch_assoc($result); if($loginutype['usertype'] == 'admin') { $_SESSION['username'] = $user; header("Location: Adminpage.php"); } else { $_SESSION['username'] = $user; header("Location:Userpage.php"); } } else { echo '<script>alert("Wrong Username / Password")</script>'; } } 

    }
    ?>

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

    Simplest way how to git?

    Posted: 08 Feb 2018 10:11 AM PST

    So far everyone one in our team worked on his own little project and committed and pushed to master. Those were just some little pet projects.

    Now, we have a small team of three people, working on the same Visual Studio project, sometimes editing the same file. We use Gitlab as our repo.

    I don't know what is best practice to handle differences and merges. VS itself doesn't have any working Gitlab support, so we have the local git and then upstream it with external tools (original git/tortoise).

    So far everything is in heavy development, so we don't have branches or forks, everyone is working on the same (master) product. But sometimes we have to edit the same files and I have no idea how to handle differences and merges. A sync could revert the changes from somebody else.

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

    Weird Issue with React

    Posted: 08 Feb 2018 12:59 PM PST

    I am getting an issue with this code:

    import React, { Component } from 'react'; // Declare your Component here class Navbar extends Component { render() { return ( <div> <nav className="navbar navbar-inverse navbar-fixed-top"> <div className="container-fluid"> <div className="navbar-header"> <a className="navbar-brand" href="/">BTI425 - Project Portal</a> </div> </div> </nav> <div> ); } } 

    and have no idea why. I am new to JSX and this code was given to me and seems to work under the docs. Does not under JSFiddle with JSX enabled.

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

    Looking to talk to developers about design

    Posted: 08 Feb 2018 06:38 AM PST

    Program to be the first to enroll in a course on University.

    Posted: 08 Feb 2018 10:51 AM PST

    Hey guys, gonna make it short. In austria you have to enroll in courses if you want to get into them online and there are most of the time too many people. Is there a program which could do this for you with server time? So you are 100% the first in the list. Thanks for your answers.

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

    I need a suggestion as to what programming language or tool I should use to do this task!

    Posted: 08 Feb 2018 10:41 AM PST

    Suppose you have 100 files, you need to create 5 folders and store 20 files in each of those folders after which you enter each folder and rename the files to 1,2,3...20

    Any suggestions as to what I could use to do this? It needs to be able to move files, create folders and subfolders, rename the files and to iterate in and out of the subfolders basically.

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

    Trying to automate .CSV processing, don't know where to start.

    Posted: 08 Feb 2018 06:43 AM PST

    I'm a java developer tasked with looking at some of the manual processes the regular business employees are doing to see if we can automate them, catch here is while I know it is possible, I have no idea what language or tech to do it in.

    An example is they need to take massive csv files, too big for excel, and extract different data and compare it to other similar files. I don't know if VB for apps, out current way of automating this stuff would work and I also don't like the idea of further investing in Excel. They don't have Python installed either and it doesn't seem practical for them to upload to our java server or if they can even use a runnable .jar, or command shell script.

    Any ideas on a language that can process files in a way simple to the end user without a complicated install?

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

    Reading Food Items from Receipt

    Posted: 08 Feb 2018 09:47 AM PST

    Hi, I am making an app in which the user takes a picture of the receipt and the app automatically reminds you to get a specific food when you're at the store (Using Geolocation).My question is that how can we convert the purchase receipt to text with food items. For example, how do you convert something like "27-Produce Banana 4011" to just bananas.

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

    how can write code that states every 5 of something, rate increases by .035?

    Posted: 08 Feb 2018 01:14 PM PST

    (python pls)

    is it a for loop?

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

    Cross platform in PyQT5: pros and cons.

    Posted: 08 Feb 2018 07:05 AM PST

    I have a couple of apps I'd like to write that I want to have as platform agnostic as possible, given the user base. I'm figuring to use Python on QT since it seems to have a fair bit of portability.

    The first app is pretty much just a forms based app for Linux admin, with some ssh calls to network or vpn hosts. This one really only needs to work on Linux, but I might add some OpenGL visualization to practice for the next one. This is mostly for my own purposes but I'll OSS it if there's any community interest.

    The second will get into OpenGL (ES?) visualization, with some serial interfaces either USB or bluetooth for data aquistion and automation output. This one could potentially be on Android and iOS tablets, though I'd prefer to see it on Linux, but IMO linux tablets are pretty sad from a user standpoint right now. In my perfect world, I'd just sell people pre-installed Linux units with the program imbedded.

    If anyone has any better solutions than PyQT (or OpenGL) or pitfalls to watch out for when coding to mazimize portability and ease future maintenance, I'd love to hear it before I get too deep into it.

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

    Php code

    Posted: 08 Feb 2018 06:55 AM PST

    Hi what php code should i use when I want this to happen on my system For example, The user will just enter the word "Yanny" but the word that will come out in the database is "Hi I'm Yanny"

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

    No comments:

    Post a Comment