• Breaking News

    Thursday, January 4, 2018

    How do I maintain Focus as a Full Stack? Ask Programming

    How do I maintain Focus as a Full Stack? Ask Programming


    How do I maintain Focus as a Full Stack?

    Posted: 04 Jan 2018 07:02 PM PST

    I'm working on a side project/app which is taking forever to build. I originally estimated to build it in 2 weeks (6 hours a day) but it's been 3 months now.

    I noticed that the primary reason for me not being able to finish is getting bored and losing focus. I started with backend and finish 30% of it and got bored. Then I started frontend and finished another 30% of it and got bored.

    How do you guys normally work on full stack stuff? Do you finish 1 side of the application before touching another or do you go by stories? Would using Trello be good idea?

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

    Udemy course that you believe is a must-have

    Posted: 04 Jan 2018 05:58 PM PST

    With the sale going on with a lot of courses going for 89% what courses do you think that they offer is a must-have? Could be a must-have for everyone, for people interested in your field of work, or for something on the side.

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

    What is the best coding language to code a game in?

    Posted: 04 Jan 2018 09:29 PM PST

    Trying to make a reddit bot but im missing an important part... not sure what

    Posted: 04 Jan 2018 08:48 PM PST

    The bot as is it currently can be found here: https://pastebin.com/XZQ58xgz

    I'm trying to get the bot to reply to the keywords in the config = [] but no dice

    Notice: I'm trying to update the bot I made 2 years ago into newer and better code. For reference the old code can be found here: https://pastebin.com/Y19PnM8w

    and the code above worked perfectly back then.

    What am I missing?

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

    Final Decision: React-Native vs PHP custom framework vs larvel framework

    Posted: 04 Jan 2018 04:27 PM PST

    I currently have a PHP Mysql sever that accepts data for a php and Android app.

    I am starting a new app for the first time in years and I'm not sure if I want to use my previous infrastructure or start new with React-Native.

    Requirements:

    iOS, Android, Web

    Sign in, payments, database communication

    This seems routine, but I've never had to do passwords/sign in before. I need to grind the hours.

    However-

    I do have experience with PHP, its one of the 8+ languages I've had to use. I have not had to use Javascript. PHP was also my last language I've written in and have an infastructure for.

    Any suggestions? I'm open to anything. Goal is to get a beautiful app across 3 platforms.

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

    Need help regarding InputStreamReader in Java

    Posted: 04 Jan 2018 07:55 PM PST

    public static void main(string[] args ) throw exception { InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8); BufferedReader in = new BufferedReader(reader); String line; while ((line = in.readline()) != null){ System.out.println(line) } }

    the idea is that I am given a set of text and I have to use standard output to give back the answer.

    My question here is where do I write my function?

    How do I take the "line of text" as an input. My input for my function is supposed to be an integer so how can I access it.

    Lastly, with this being void, how do I standard output my result for testing?

    Please help!

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

    Azure functions connecting flow to sharepoint with mfa

    Posted: 04 Jan 2018 06:40 PM PST

    I am trying to use this tutorial: https://medium.com/plumsail/how-to-call-sharepoint-from-microsoft-flow-with-a-help-of-an-azure-function-a5740794341 to set up custom MS Flow triggers using Azure Functions to do stuff with sharepoint docs. So, I followed the tut exactly and only changed my credentials so far.

    I get the following error telling me that the account is not authorized and I must first browse to the site and enable automatic login

    2018-01-03T21:11:01.889 Exception while executing function: Functions.CreateFolder. Microsoft.Azure.WebJobs.Script: One or more errors occurred. Microsoft.SharePoint.Client.Runtime: Cannot contact web site 'https://mysite.sharepoint.com/' or the web site does not support SharePoint Online credentials. The response status code is 'Unauthorized'. The response headers are 'X-SharePointHealthScore=0, X-MSDAVEXT_Error=917656; Access+denied.+Before+opening+files+in+this+location%2c+you+must+first+browse+to+the+web+site+and+select+the+option+to+login+automatically., SPRequestGuid=9c003d9e-9090-5000-1519-82d69fd4d838, request-id=9c003d9e-9090-5000-1519-82d69fd4d838, MS-CV=nj0AnJCQAFAVGYLWn9TYOA.0, Strict-Transport-Security=max-age=31536000, X-FRAME-OPTIONS=SAMEORIGIN, SPRequestDuration=29, SPIisLatency=0, MicrosoftSharePointTeamServices=16.0.0.7206, X-Content-Type-Options=nosniff, X-MS-InvokeApp=1; RequireReadOnly, Content-Length=0, Content-Type=text/plain; charset=utf-8, Date=Wed, 03 Jan 2018 21:11:01 GMT, P3P=CP="ALL IND DSP COR ADM CONo CUR CUSo IVAo IVDo PSA PSD TAI TELo OUR SAMo CNT COM INT NAV ONL PHY PRE PUR UNI", Server=Microsoft-IIS/8.5, X-Powered-By=ASP.NET'. 

    Not really sure exactly what they mean there, but regardless my login requires mfa. Has anyone tried to do this before, is there something special I need to do when using mfa? Following is the few lines where client connection is made.

    string userName = System.Environment.GetEnvironmentVariable("SharePointUser", EnvironmentVariableTarget.Process); string password = System.Environment.GetEnvironmentVariable("SharePointPassword", EnvironmentVariableTarget.Process); var authenticationManager = new PnPAuthenticationManager(); var clientContext = authenticationManager.GetSharePointOnlineAuthenticatedContextTenant(sharePointSiteUrl, userName, password); var pnpClientContext = PnPClientContext.ConvertFrom(clientContext); 

    Any help greatly appreciated.

    edit: I've set up app registration in AD and tried using that password as an access token but that didnt work. Also tried giving the app registration extra permissions in AD -> App Registrations -> picked my app -> Required Permissions.

    Basically, looking for anyone who may have set up a flow with sharepoint and mfa .. or auth management with mfa in general. PLS HELP! Thanks.

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

    Parsing an HTML Ordered List with JavaScript

    Posted: 04 Jan 2018 01:53 PM PST

    Hi there,

    I've got a site that has an ordered list in the source similar to this: https://pastebin.com/6xxbQtYe .

    What I'm trying to do is create a GreaseMonkey script that adds a button to the webpage, and when it is clicked, a parsed version of the ordered list gets downloaded as a txt file. I've got the button and txt file download working fine, but I'm having some issues with the actual parsing. My goal is to take the above input and get something that looks like this: https://pastebin.com/vZ3p8b8p .

    What would be the best way to accomplish this? I was thinking using JS so it's compatible with the GreaseMonkey script. Any help would be greatly appreciated.

    Thanks!

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

    Fragments that Can be swiped in all 4 directions(Android Studio)

    Posted: 04 Jan 2018 03:19 PM PST

    So basically I want to create an app that when I swipe left it shows a fragment and so as up down and right. Here is the code I have so far.

    @Override public Fragment getItem(int position) { switch (position){ case 0: return ChatFragment.create(); case 1: return EmptyFragment.create(); case 2: return StoryFragment.create(); } return null; }

    @Override public int getCount() { return 3; } }

    I have two more fragments already set up that I want to put on top and below the EmptyFragment. I'm just not sure what code to use or where to put it.

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

    [java] trying to achieve Externalization, but can't plz help

    Posted: 04 Jan 2018 12:21 PM PST

    Note: plz copy this code into your favourite editor, as I have lots of comments : and it looks cumbersome.

    file Car.java.

     import java.io.IOException; import java.io.Externalizable; // NOTE: Externalizable extends Serializable import java.io.ObjectInputStream; import java.io.ObjectOutputStream; public class Car implements Externalizable { String name; // String has already implemented Serializable --> so we can directly use it to write and read int year; static int age; // in Externalization we can save the values of the static values too public Car(){ System.out.println("MANDATORY - - DEFAULT constructor"); } public Car(String name, int year){ this.name = name; this.year = year; age = 10; // initializing in the constructor, well i could have initialized it in the Class level only } // overridding the two methods, in Externalizable interface, NOTE: Serializable was a MARKER interface // @Override // prperties of our object that we need to save public void writeExternal (ObjectOutputStream oos) throws IOException { // not throwing so --> need try-catch block try{ oos.writeObject(name); // as name is object of class String _> which already have implemented the Serializable oos.writeInt(year); oos.writeInt(age); // writing the static data-member }catch(IOException e){ // only IOException System.out.println(e); e.printStackTrace(); } } // @Override //--> thrown, so no try-catch public void readExternal (ObjectInputStream ois) throws IOException, ClassNotFoundException{ String name = (String) ois.readObject(); // returns the istance of "Object" class need to type cast it int year = ois.readInt(); int age = ois.readInt(); } public String toString(){ System.out.println("- - - current object : " + this + " - - - "); System.out.println(" name : " + this.name); System.out.println(" year : " + this.year); System.out.println(" age : " + this.age); System.out.println("\n\n"); } } 

    file AddCarRecord.java.

     import java.io.FileOutputStream; import java.io.FileInputStream; import java.io.ObjectOutputStream; import java.io.IOException; import java.io.Externalizable; public class AddCarRecord { public static void main(String[] args) throws IOException{ // create car Object Car audi = new Car("audi", 2020); Car jaguar = new Car("jaguar", 2022); Car ferrari = new Car("ferrari", 2024); // Serialize these car's -> into a file FileOutputStream fout = new FileOutputStream("Maintain_CarRecords.txt"); ObjectOutputStream oos = new ObjectOutputStream(fout); oos.writeObject(audi); oos.writeObject(jaguar); oos.writeObject(ferrari); } } 

    file ReadCarRecords.java.

     import java.io.FileOuputStream; import java.io.FileInputStream; import java.io.IOException; public class AddCarRecord{ // . ClassNotFoundException -> from readObject() method public static void main(String[] args) throws IOException, ClassNotFoundException{ // de-Serialize these car's -> into a file FileInputStream fin = new FileInputStream("Maintain_CarRecords.txt"); ObjecInputStream ois = new ObjecInputStream(fin); Car newAudi = (Car) oos.readObject(audi); Car newJaguar = (Car) oos.readObject(jaguar); Car newFerrari = (Car) oos.readObject(ferrari); // as we have overrided the toString method in the Car class SO, System.out.println(newAudi); System.out.println(newJaguar); System.out.println(newFerrari); } } 

    execution.

    javac AddCarRecord.java java AddCarRecord ./Car.java:6: error: Car is not abstract and does not override abstract method readExternal(ObjectInput) in Externalizable public class Car implements Externalizable { ^ 1 error 
    submitted by /u/prashantkr314
    [link] [comments]

    New Year's resolution to learn a new language: Rust, ReasonML, or Scala?

    Posted: 04 Jan 2018 08:09 AM PST

    ( For clarity, I'm an experience dev, computer science degree, been a developer full time for 6 years out of college and two years while in college )

    I see a lot of discussion in here about developing GUIs in Rust. Writing native GUIs with Rust sounds awesome to me, and I'm drawn to it for the obvious benefits.

    One of the things I want to do in 2018 is learn a new programming language. Last year I learned groovy, which is terrible, and Elixir, which is great and I highly recommend it.

    I'm currently tore between three languages: Rust, Reasonml, and Scala

    They have the following requirements:

    • EXCELLENT type system
    • Functional
    • Productive
    • Portable

    My goal is to write GUI applications that help me design my board games.

    • Scala

    Scala has a nice type system, runs on the JVM so we get all of that sweet sweet Java interop, is functional with a mutable escape hatch, and is a "boring" language that is used extensively.

    Additionally, the story for writing GUI applications for Java isn't as slick as web technologies.

    Listen, I'm a millennial. We don't believe in anything. I don't mind opening up a web browser to interact with a graphical user interface, so languages with a better web technologies story is more attractive to me.

    Scala is not much of a departure from my previous languages, so I fear I wouldn't learn much.

    I already have Elixir for writing restful APIs and GoLang/Hugo for static sites, so Scala over-laps with these use cases making it less productive.

    • Reasonml

    Reasonml is a newer language from Facebook that compiles to the OCaml syntax tree, and then uses the OCaml compiler to produce the machine code.

    Currently, Reason's only target is Javascript, but the community has already written a bunch of back-ends to have reason output to other formats.

    There is a Facebook-developed React library called ReactReason, so targeting web technologies is Reasons JAM. A lot of Messenger.com has already been re-written using reason.

    Reason has a language server implementation that hooks up to my Emacs config quite nicely, so I'm efficient in my development environment.

    Reason uses OCaml's type system, which has 25 years of development and is extremely effective.

    Reason has a compiler. After working with dynamic languages for so long, I have learned to love my compiler.

    Reason is designed for productive Javascript interop, so I have access to the gigantic nodejs ecosystem.

    The humans who are d

    Reason ticks a LOT of my boxes, but it has some warts:

    • Not a perfect story for async programming.
    • Does not have a swagger-codegen back-end for stubbing out types based on my API docs.
    • Special little snowflake language with a small community
    • Really only good for front-end development
    • Is the type system and other language primitives THAT MUCH BETTER than Typescript + ImmutableJS?

    • Rust

    Rust is the language I WANT to learn and use, but I am hesitant for a number of reasons.

    I want to learn rust because:

    • Aside from a teeny bit of C / C++ usage in college, I've not written in a low level language that requires me to think about garbage collection and I think it would be a useful exercise.
    • It's extremely fast.
    • It has some excellent concepts, like the borrow checker, that will expose me to new ways of programming.
    • Will be nice to have a low-level language in my tool belt.
    • Quickly growing community, a good opportunity to contribute FOSS.

    I'm hesitant because:

    • I'm concerned it doesn't fit my use case of writing GUIs.
    • I want it to be a PRODUCTIVE langauge, and MAKE STUFF, not writing glue to get the stuff I want to work.
    submitted by /u/p3ll1n0r3
    [link] [comments]

    [java-IO] [CharArrayWriter] no output coming in Demo_2.txt

    Posted: 04 Jan 2018 11:49 AM PST

    plz open it in your editor : so you will see it in better formatted and syntax highlighted way, plz help its weird

     import java.io.CharArrayWriter; import java.io.IOException; import java.io.FileWriter; import java.io.PrintWriter; import java.io.File; public class CharArrayWriter_Demo{ public static void main(String[] args) throws IOException{ // creating a general that i can throw on multiple devices CharArrayWriter cw = new CharArrayWriter(); String data = "this data is first send(written) to the stream buffer of CharArrayWriter\nand then to " + "any I/O device that we want this buffer to write, after writing to \none of the device the buffer does not" +" get empty, and so we can write to other devices as well"; // we can write to the buffer character by character OR the whole string at once char[] charEquivalent = data.toCharArray(); for(int i=0; i<charEquivalent.length ; i++){ cw.write(charEquivalent[i]); } System.out.println("written to the stream buffer character by character\n "); /// writing the datat of this buffer Stream to the file FileWriter fw = new FileWriter("CharArrayWriter_Demo_1.txt"); cw.writeTo(fw); // - - - - - - - - - object representation- - - - - - - - - System.out.println(cw.toString()); System.out.println("\n- - - - -- - - - - - - - - - --\n"); System.out.println(cw); //- - - - - - - - - - - - - - System.out.println("\n\nwritten to the stream buffer as whole string at once\n"); String moreData = "+++++change the data for Demo_2+++++"; // cw.flush(); ->does nothing in case of CharArrayWriter or any Writer i guess cw.reset(); cw.write(moreData); // if not flushed or > reset < then it will added to the Buffer Stream only cw.writeTo(new FileWriter("Demo_2.txt")); // using anonymous object for the FileWriter // and File _> so new i don't need to close this Stream // - - - - - - - - - object representation- - - - - - - - - System.out.println(cw.toString()); System.out.println("\n- - - - -- - - - - - - - - - --\n"); System.out.println(cw); cw.close(); fw.close(); } } 
    submitted by /u/prashantkr314
    [link] [comments]

    Which program would be best suited for some data mapping.

    Posted: 04 Jan 2018 08:01 AM PST

    Hi, I've been given a project where i have a series of data schemas:

    1) I will need to firstly generate a huge amount of test data based upon the schema constraints 2) I will then need to transform some of the data as best i can so that it will fit a target schema 3) I will then want to run tests against the mapped datasets to ensure that if i were to run it for real X amount of fields would be ingested correctly and X amount still need work/business decisions

    I'm looking for something free/open source that i could use for this POC. I'm not too familiar with a lot of ETL programs but am after something thats relatively user friendly.

    Still trying to ascertain what datatypes the source and target will be. However it should just be standard alphanumeric / date type data and nothing crazy (geospatial)

    Any help is much appreciated.

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

    Using UWP CalendarDatePicker results in Windows.Foundation.IReference`1 <Windows.Foundation.DateTime>

    Posted: 04 Jan 2018 11:07 AM PST

    This may be stupid, as I am just learning UWP and figured I'd try making a tool that uses CalendarDatePicker, however I cannot get it to display the date entered in the box.

    XAML

    <TextBlock x:Name="dateOutput"/> <CalendarDatePicker x:Name="OrderDate" DateChanged="ChangeOrderDate"/>

    C++

    void OrderService::MainPage::ChangeOrderDate(Windows::UI::Xaml::Controls::CalendarDatePicker^ sender, Windows::UI::Xaml::Controls::CalendarDatePickerDateChangedEventArgs^ args) {

    dateOutput->Text = OrderDate->Date->Value.ToString();

    }

    When I run this code, I can select a date but what displays is the following:

    Windows.Foundation.IReference`1 <Windows.Foundation.DateTime>

    Any help would be appreciated.

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

    What should/could I use to make this?

    Posted: 04 Jan 2018 05:07 AM PST

    Solution provided in comments. Thanks for your help, r/AskProgramming!
    Apologies if this is in the wrong place. If so, please let me know where I should go for help with this, thx.

    I'm trying to find all possible combinations of 4 items, by groups of 3, where there are never 3 of the same, and some never pair together.

    Why: My daughter has a rare disease and requires a very unique type of food via a blended diet. I need to be able to schedule her blends for family and nurses to prepare each day. Occasionally there is a change and I want to be able to come to a simple web app or spreadsheet (or something) and change one of the 4 items, or add a 5th item, and get a list of possible combinations that I can then use to schedule on my calendar.

    So I have items A, B, C, D, and I want all possible combinations of 3 of these, but there should never be two B's together, and I'd like to add E or change the combination amount to 4 and have a new list generated.

    I'm looking for advice on what language to use to create something like this. Or maybe this could be easily created in Google Sheets. I'm open to whatever. I'm not asking anyone here to jump in and make this for me, and this is not a job posting. Again, sorry if I'm in the wrong place, please point me in the right direction if I am. Thanks in advance. All help is appreciated!

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

    Advice on Languages/steps

    Posted: 04 Jan 2018 10:40 AM PST

    Hello, I'm currently learning html/css, and have some basic knowledge about wordpress and was looking to get into web developing. Im wondering what i should learn and what i should do to land a job i can do from home.

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

    Apparently these d's (d​d​d​d​d​d​d​) need to be erased twice (copy-paste and try). Here's a 10x one: d​​​​​​​​​

    Posted: 04 Jan 2018 10:16 AM PST

    I know, this isn't exactly programming, but I'm not sure where else to ask.

    These have 2 each: d​d​d​d​d​d​d​

    Also, I found out that you can make even larger ones by pasting "in between" the characters: 1. Paste. 2. Press left arrow key to move the cursor (not visibly). 3. Paste. 4. Copy the new one to clipboard for testing

    These have 10: d​​​​​​​​​d​​​​​​​​​d​​​​​​​​​d​​​​​​​​​d​​​​​​​​​d​​​​​​​​​

    This has 1146 d's: ​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​d​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​

    I can't make it to display different characters overlapping, but if I paste, go for example 5 steps backwards and write a h, then the h takes 5 more deletes to be deleted: ​​​​​​​​​​​​​​​​​​​​​​​​​d​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​h​​​​​

    If I then copy the h, it will be a 6x: h​​​​​

    What the hell? I found this on a torrent folder name. For some reason lamedrop didn't want to convert a file. Apparently it won't convert files or files in folders with japanese characters but even after deleting them it didn't work. I narrowed it down to that one d. How does that kind of multi character even technically work? A glitch in the matrix?

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

    Is there a corollary to YAGNI, when a more correct design is eschewed in anticipation of a change (which will never actually occur)?

    Posted: 04 Jan 2018 06:26 AM PST

    Maybe I'm the only one that's experienced this, but I doubt it.

    ME: We've got some essential duplication between modules A and B, and the story is to introduce module C; we should extract some common functionality first from A and B and then have C take advantage of that.

    OTHER GUY: Nah, once ProjectedFeatureX is written, we'll be scrapping all those modules anyways. Just copy/paste/rename module A again.

    (Ten thousand years pass, and NewFeatureX keeps being delayed. Meanwhile, the pain of copy/pasted code only grows)

    Is there a pithy phrase to caution against this thinking, in the same way as YAGNI cautions against over-enginnering? The best I've come up with is NIMY (Never in a Million Years).

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

    im trying to open programs automatically when something is open and close when ien it closes

    Posted: 04 Jan 2018 07:54 AM PST

    just like the title says I'm trying to for example close a program while a game is open but once the game is closed the program opens right back up automatically, any softwares capable of doing that? any idea?

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

    How would I go about creating this application? (Webforms/PDF/docx)

    Posted: 04 Jan 2018 06:54 AM PST

    Hey!
    I am trying to simplify some tasks, I got a form here that several people need to fill out, now if I could make this into some kind of web app (hosted locally and only reachable from specific VLAN) it would make everything easier.
    I was thinking about using Nodejs/express as a backend and react/angular for front end, the user fills out 4 textboxes and ticks some tickboxes and press send, the backend recieves the information and creates a pdf/docx file that's allready filled out with the information and is ready to be worked with.
    From my brief googling I couldn't find a library that did what I wanted (atleast with Node).
    A feature I would like to implement further is saving the information in a DB (Mongo most likely) for a user to re-create the file or see any changes

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

    Anyone knows Phonegap? Got a small issue

    Posted: 04 Jan 2018 04:34 AM PST

    Hello folks!

    I am making a phonegap app. Displaying my webapp like this. <iframe id="thing" src="https://www.liverpool.no/" frameborder="0" style="overflow:hidden;" height="1000vh" width="100%"></iframe>

    The site is mobile friendly, so it might work out great.

    Further on i want to add a navigation bar at the bottom.

    I tried to add them as ordinary html Lists items, but when i link those, they send me out of the phonegap "loop" or site. So they disapear.

    Any idea if this can be done in a easy way easy?

    my setup is basiclly:

    <body> <div id=togglepane> <iframe></iframe> <script> var isVisible = 0; // if element initially hidden, zero (0) else one (1) $('#toggle').on('click', function() { console.log("isVisible:" + isVisible ); if (isVisible) { $('#togglePane').addClass('hide'); isVisible = 0; } else { $('#togglePane').removeClass('hide'); isVisible = 1; } } </script> <ul><li></li></ul> 

    Anyone know anything about this? Or where i can ask for help? :)

    Edit: Made my butons like this:

    <li style="width: 23%; display:inline-block; text-align:center; padding: 16px 16px; height: 20px; border-radius: 5px; background-color: #2E2E2E; background-image: -webkit-gradient(linear, left top, left bottom, from(#2E2E2E), to(#000000));"> <a href="https://www.sjomannskirken.no/her-finner-du-kirkene/" style="text-decoration:none; color:#fff;">Billetter</a> </li> 
    submitted by /u/CaptainHemp
    [link] [comments]

    CodeForces 4C - time limit exceeded.

    Posted: 04 Jan 2018 03:21 AM PST

    I have used Dictionary, Hashtable and Hashset for solving this problem!

    I couldn't fix the issue of time limit when it is trying to input 100,000 inputs. I have searched thoroughly and found that Hash and Dictionary are fastest. Not sure what is the problem exactly.

    The below one uses Dictionary. Taking input first into array and then trying todo the check in the below. solution!

    I have other solutions where I have done checks in the same loop when I read the input string. solution!

    Can somebody help me in catching the issue?

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

    Want to build a "Skin Gambling Site" to see how they are put together etc.

    Posted: 04 Jan 2018 10:01 AM PST

    Need someone who can build me a site, and show me how they work exactly. Just really interested and trying to make a little money on the side. Message me.

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

    In general how does the process of rendering a GUI differ from a game? Isn't a GUI just 2D graphics?

    Posted: 04 Jan 2018 12:02 AM PST

    From what I think I understand, the generation of UI in a windowed application is generally handled by the window manager. Correct me if I'm wrong. Does, at some point, the rendering of desktop UI boil down to the same process to the CPU/GPU as the animated graphics you see in games, or are both types of graphics fundamentally processed differently through and through? Sorry for the load of questions.

    edit: my title is poorly worded. I meant desktop GUI applications vs animated graphics for... lack of a better word. Not sure what the proper terminology would be. Edited the text to hopefully be more clear.

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

    No comments:

    Post a Comment