• Breaking News

    Sunday, August 30, 2020

    Help for job after long pause ? Ask Programming

    Help for job after long pause ? Ask Programming


    Help for job after long pause ?

    Posted: 30 Aug 2020 02:21 PM PDT

    Hi, I really need help in this. I am a housewife living in Canada. I am planning to resume job after a long hiatus ( 8 years ). I did my MCA and worked at least 8 years ago in India as .Net developer, then I came to Canada. Now I want to start job and I know technology has changed a lot and pretty much with kids don't want to do coding much ( little bit is OK ), So to be in pace I am planning to do a certificate course or diploma from a college here. I feel that cyber security has a bright future and if I learn tools then I can accomplice the job with less coding ( I am not sure about this ). Can some one suggest me what course and from which college should I do course ? Is cyber security career is good ? If not then can someone suggest ?

    I will really appreciate...

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

    Can you make good games with Javascript?

    Posted: 30 Aug 2020 11:03 AM PDT

    A few months ago, when quarantine started I started getting into programming. I started off with python and started learning html and javascript on the side. I'm decent with these languages now but what I really want to do is game development and I want to learn c++. Is it worth it? can you make good games using javascript?

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

    Library suggestions for c# desktop engineering app

    Posted: 30 Aug 2020 09:39 PM PDT

    I may looking for suggestions for two libraries that will work with my c# based .net core app. For either of these two open source is best, but if it is an awesome library, I don't mind paying.

    The first is a numerical optimization library that has a lot of different algorithms in it. Linear, nonlinear, nonlinear constrained etc. I'm looking at ALGLIB for this now, but not settled.

    The second would help with easier plotting and be simple like Matlab. I like that Matlab plots have lots of built in data tools as well as zoom options and they resize seamlessly. I've tinkered with extending an existing library to do this, but don't want to recreate the wheel.

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

    Comparing two strings lexicographically

    Posted: 30 Aug 2020 08:41 PM PDT

    Why does the following yield a positive number? I thought shorter strings would always be less than longer strings?

    System.out.println("zz".compareTo("aaa"));

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

    How to configure IntelliJ Idea to Reference a Pre-Built Artifact Rather than build a new one?

    Posted: 30 Aug 2020 08:37 PM PDT

    I am configuring a local jboss server to run an application. I have had this working for years with Eclipse where I first run commands to build the ear file to a location from a terminal and then have Eclipse point to it when running.

    I am just now trying to get this setup in IntelliJ and have hit a roadblock when setting up the run config. When choosing an artifact, there is no selection (as far as I am seeing) that already assumes you've built elsewhere. I'm guessing it's because either I suck at google or because it's best practice to just put the work on IntelliJ to build the app right before running, but I was wondering if the title is possible? Now that Ive typed this out, maybe I should just put my efforts into building with IntelliJ and deploying from there... any thoughts appreciated!

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

    Made a card game (text console app). How do I move on with starting to make a UI and getting into creating some kind of online multiplayer for it? (C#)

    Posted: 30 Aug 2020 10:37 AM PDT

    As the topic says, I have made a card game (a game that me and my friends play IRL). Text based in the console. I was just bored the other night and starting 'hacking' out some code and it turned out pretty nice :-)

    It's fully functional, but of course, just local play in the console, which is not the funniest game ever.

    Is unity or something the next step to create a UI for it? What about some network functionality? I'm at a loss on where to go from here.

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

    What are some beginner projects i can develop using Python?

    Posted: 30 Aug 2020 08:20 PM PDT

    I've been learning Python for about a month now and wanna start working on some simple projects. Any suggestions?

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

    Best languages for fighting game with rpg elements?

    Posted: 30 Aug 2020 06:05 PM PDT

    It would have multiple interactive sections like stats, equips and more.

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

    I try to learn C on learn c.org, I am confused about Multidimensional arrays. Can someone explain why the solution is like that

    Posted: 30 Aug 2020 01:46 PM PDT

    https://www.learn-c.org/en/Multidimensional_Arrays

    here is the page that i stuck, and if you scroll down and click the solution, there is a solution.

    Can someone tell me why the solution is like that?

    where does 2 and 5 come from in the code int grades[2][5];

    for (i = 0; i < 2; i++) {

     average = 0; for (j = 0; j < 5; j++) { 

    average += grades[i][j];

     } average /= 5.0; 

    Can someone explain the above code. The link doesn't tell me how does the code work.

    1.What are i and j in general and what are i and j in this case. and what does for do ?

    1. what is i++ and j++

    2. what does average += grades[i][j] mean?

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

    What's the difference between Command Promote and Windows PoweShell?

    Posted: 30 Aug 2020 08:43 AM PDT

    And what's a cross platform powershell?

    Please do forgive me if my questions seem stupid. I think I would look back at this thread and find my questions to be stupid as well once I start my programming degree program.

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

    Hey guys, i need some guidance with the price of my app. I don’t know how much to charge my clients. I’m a freelancer.

    Posted: 30 Aug 2020 04:22 PM PDT

    I'm currently developing a desktop app with a database that will print receipts (reports).
    I'm using WPF .Net framework C# with sql localdb database, I'm applying a SOLID Principles and 3 Tier Architecture, also Reports. It's a simple CRUD database nothing too complicated. But I'm confused as to how much to charge my client, based on what and how much?
    Thanks in advance!

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

    How do I turn my python program into a clickable desktop icon for mac/linux?

    Posted: 30 Aug 2020 03:31 PM PDT

    I am a comp. sci. undergrad student looking to take on a project to learn and teach myself more programming. I am looking to learn a bit more of python and I would like to start with the question of how to turn a simple python program into a runnable, 'click-able' desktop icon for a mac/linux system?

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

    Linker error C++ unresolved external symbol

    Posted: 30 Aug 2020 02:50 PM PDT

    Hello can anyone help me out with fixing this error? I am a beginner programmer and absolutely clueless with this one even through reading this.

    https://docs.microsoft.com/en-us/cpp/error-messages/tool-errors/linker-tools-error-lnk2019?view=vs-2019

    I've read the code over again and I see nothing wrong? Compiler options are also set to C/C++ for all files in case it was being excluded.

    Following the code from the book and it just wont compile.-

    Its not much code maybe there is a mistake? Or something with the compiler.

    https://github.com/bjornwelboren/Employee

    Appreciate the help!

    The error:

    https://pastebin.com/TJxcH9LX `

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

    Trying to create a mobile app and not sure where to start

    Posted: 30 Aug 2020 06:32 AM PDT

    A bit of background: I am a software developer who works with very traditional infrastructures and environments with C++. I haven't got any experience with mobile development or cloud computing so I am lost as to where to start with this.

    I've researched some AWS components and have a rough idea of what I need:

    • A Lambda to regularly retrieve data from some API and perform some calculations
    • SNS topic to which the Lambda can publish
    • A mobile app which can subscribe to the topic and receive updates, displaying them as and when

    I have a good idea of how I'll actually be doing the calculations I need in the Lambda, and I think I understand how components can publish and subscribe to SNS topics.

    However, the bit that I am really stuck with is what platform I should be using to develop the actual app. I had a look at NativeScript because it looked like a good cross-platform tool, but I am unsure if I can use this to subscribe to SNS topics.

    I am also not sure if NativeScript is even the right thing to be using. I am getting confused by all the different names I'm seeing, Angular, Node, React, Ionic, etc.

    If anyone could confirm that NativeScript is a good way to be going or if there is a better solution I would be really appreciative.

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

    Need help picking a direction in learning programming (cyber security or web design, etc...)

    Posted: 30 Aug 2020 11:24 AM PDT

    Hey, I have a few questions if you guys don't mind.

    I need help picking a direction to start in programming. I was wondering which industry do you think will be most in-demand in the future, cyber security or web design, etc... Can I learn and get a certificate and possible find a job with either of these, or any other direction you think is wise? I have a knack for computers and I remember some C++ from years ago when I tried it out, and I'm eager to learn if I know it'll pay out. I just need help figuring out what to pursue for future employment. Should I just start learning a programming language or...what do you think?

    Thanks for reading, I hope this is the right place to ask this.

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

    Licensing / Activation Solution?

    Posted: 30 Aug 2020 06:45 AM PDT

    Can anyone recommend a software licensing and activation solution?

    In a perfect world, a web front end that allows users to purchase subscriptions, and a Python API to validate them, would be ideal. Open to rolling my own in PHP for the web portion, and Python for the app portion, but would love some mile-high guidance if I go that route.

    If I pay for a service, minimum requirements are:
    - be able to validate license in Python (preferably using built-in Python libraries)
    - need to lock by system/machine
    - offline and online activations
    - time locks
    - would love something that has a purchasing/sales platform too
    - not stupid expensive

    Any thoughts?

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

    [Python3, function nesting fun] Hey guys, I feel there's a much better way to write this. I thoroughly enjoyed completing this code challenge, as you can probably tell

    Posted: 30 Aug 2020 01:25 AM PDT

    Theres alot of spaghetti array access and such. I feel theres a better way i could have handled my returns?

    anyways... the challenge was to write functions

    def zero(): def one(): def two(): def plus(): def multiply ... 

    and to write them in such a way that these are valid statements:

    >>>one( plus( one( )))==2 True >>>two( minus( one( )))==1 True ... 

    and so on...i had a bit of fun with my implementation and wanted some other eyes on it. no one else will care but you guys.

    import operator as op digits=['zero','one','two','three','four','five','six','seven','eight','nine','ten','eleven', 'twelve', 'thirteen', 'fourteen', 'fifteen'] def number(n,*args): def x(*args): if len(args)>0: if callable(args[0][0]): print(n, end=' ') if callable(n): if callable(*args[0][1]): ret= args[0][0](n,*args[0][1]()) ret= args[0][0](n(),*args[0][1]) else: ret = ret= args[0][0](n,*args[0][1]) if len(args[0][1])>1: for f,g in enumerate([*args[0][1]]): if f == len(args[0][1])-1: print('and', end=' ') else: print(*args[0][1], end=' ') print("is ",ret) return ret else: return n return x for i,digit in enumerate(digits): globals()[digit] = number(i) operations={"plus":op.add, "minus":op.sub, "times":op.mul, "divided_by":op.floordiv, "to_the_power_of":op.pow, "modulo": op.mod, } def operation(func,o,*args): def y(*args): def z(*args): ret = args[0] print(o,end=' ') for x in args[1:]: ret = func(ret,x) return ret return z, args return y for o,func in operations.items(): globals()[o]=operation(func,o) def contain(): def c(a,b): return op.contains(b,a) return c def func_if(*args): def f(condition, functionTrue , functionFalse,TrueArgs=None,FalseArgs=None): if condition: if TrueArgs: return functionTrue(*TrueArgs) return functionTrue if FalseArgs: return functionFalse(FalseArgs) return functionFalse return f def func_function(*args): def func_gen(*args): for name,func, ar in args: funcs[name]={'func':func,'args':ar} globals()[name]=func return funcs return func_gen logical = { "less_than": op.lt, "greater_than": op.gt, "equal_to":op.eq, "AND": op.and_, "IS": op.is_, "NOT": op.not_, "OR":op.or_, "IN": contain(), "IF":func_if(), "FUNCTIONS":func_function(), } def logic(func,o,*args): def y(*args): def z(*args): ret = args[0] print(o,end=' ') if o == "FUNCTIONS": ret = func(*args) else: for x in args[1:]: ret = func(ret,x) print('-> ',ret,end=' ') return ret return z,args return y for o,func in logical.items(): globals()[o]=logic(func,o) 

    three( modulo( two( to_the_power_of( four( ))))) # prints: # 2 to_the_power_of 4 is 16 # 3 modulo 16 is 3 # returns: # 3 three( plus( two(),four(),six())) # prints: # 3 plus 2 , 4 , and 6 , is 15 # returns: # 15 IS( three( IN( [one(),two(),four()]))) # prints: # 3 -> [1, 2, 4] is False # returns: (IS( IN( )), 3,[1, 2, 4]) # False 

    and here's where the real fun begins

    the_fibinocci_map={one():one(),two():one()} def fibinocci_of(n): if number(n)( less_than( one( ))): the_fibinocci_map[n]=number(zero()) return the_fibinocci_map[n] if number(n)( IN( the_fibinocci_map.keys())) : return the_fibinocci_map[n] n=number(n) the_fibinocci_map[n()]=number( fibinocci_of( n( minus( two()))))(plus( fibinocci_of( n( minus( one()))))) return the_fibinocci_map[n()] question,answer = IS( fibinocci_of( seven()), thirteen())#? print(question(*answer)) # prints: # 7 less_than -> 1 is False # 7 IN -> dict_keys([1, 2]) is False # 7 minus 2 is 5 # 5 less_than -> 1 is False # 5 IN -> dict_keys([1, 2]) is False # 5 minus 2 is 3 # 3 less_than -> 1 is False # 3 IN -> dict_keys([1, 2]) is False # 3 minus 2 is 1 # 1 less_than -> 1 is False # 1 IN -> dict_keys([1, 2]) is True # 3 minus 1 is 2 # 2 less_than -> 1 is False # 2 IN -> dict_keys([1, 2]) is True # 1 plus 1 is 2 # 5 minus 1 is 4 # 4 less_than -> 1 is False # 4 IN -> dict_keys([1, 2, 3]) is False # 4 minus 2 is 2 # 2 less_than -> 1 is False # 2 IN -> dict_keys([1, 2, 3]) is True # 4 minus 1 is 3 # 3 less_than -> 1 is False # 3 IN -> dict_keys([1, 2, 3]) is True # 1 plus 2 is 3 # 2 plus 3 is 5 # 7 minus 1 is 6 # 6 less_than -> 1 is False # 6 IN -> dict_keys([1, 2, 3, 4, 5]) is False # 6 minus 2 is 4 # 4 less_than -> 1 is False # 4 IN -> dict_keys([1, 2, 3, 4, 5]) is True # 6 minus 1 is 5 # 5 less_than -> 1 is False # 5 IN -> dict_keys([1, 2, 3, 4, 5]) is True # 3 plus 5 is 8 # 5 plus 8 is 13 # IS -> 13 , 13 is True # output: # (IS(),(13, 13)) result of IS() is (function, args) # True this is the evaluation # question,answer = IS( eight( IN( the_fibinocci_map.keys())))#? print(question(*answer)) # # outputs: # 8 IN -> dict_keys([1, 2, 3, 4, 5, 8, 13]) is True # returns: # (IS( IN( )),(8, [1, 2, 3, 4, 5, 8, 13])) # True # question,answer = IS( seven( IN( the_fibinocci_map.keys())))#? print(question(*answer)) # # outputs: # 7 IN -> dict_keys([1, 2, 3, 4, 5, 8, 13]) is False # returns: # # (IS( IN( )),(7, [1, 2, 3, 4, 5, 8, 13])) # False 

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

    How does my phone know if a wifi AP has a login page?

    Posted: 30 Aug 2020 04:07 AM PDT

    Sometimes when I connect my phone to a public wifi (like a mall, or railway station) Chrome is automatically opened and it redirects me to a custom webpage where I have to tick some boxes to consent to whataver before I can connect to the internet.

    I'm programming an ESP32 to act as a wifi AP and web server, and I want all connections to be redirected to a custom page, like the ones I mentioned above.

    How are those public APs doing this?

    EDIT: I forgot to mention that when I connect my phone to the esp32,it gets a web request on port 80. I assume my phone is looking for a configuration page so it can show the "Manage router" button in the wifi setting.

    Maybe this auto redirect is some meta that's sent back after this initial webrequest?

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

    How to implement socketio in my react app: Is there a way to add it into my context api?

    Posted: 30 Aug 2020 10:02 AM PDT

    Okay hello, so I have a web app I'm making in react. The welcome page has the user pick a room and enter a username and that data is stored in my context API.

    I'm trying to implement socketio but the tutorials/stack exchange pages I've found either use querystring or create an entirely new context for the socket.

    So I guess I am wondering is what would be the best way to use socketio with my application. It seems as though I should be able to add it either onto the component above and onSubmit it would send the username and room? But how would I get the data so it can be sent...? haha. Or I could use it in my context but again, I'm not really sure what that would look like...

    the component where i'm trying to add socket io

    https://github.com/spiritewolf/helppppp/blob/master/src/components/GetUserInfo.js

    my context api

    https://github.com/spiritewolf/helppppp/blob/master/src/components/GlobalState.js

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

    How do you "fit" an image to a

    Posted: 30 Aug 2020 07:00 AM PDT

    Image - this is the image I want as my background image.

    This is what I did:

    background-image: url(picture);

    background-size: cover;

    in the end, this is how it looks - Link

    The Problem:

    As you can see, while the image is in the "center", the whole image is not showing (the bottom rivers etc).

    So what I'm asking is - how can I make it be in the "center" while also using 100% of the image to fit the div? Do I have to make the image smaller or something?

    The image doesn't "fit" fully to the container, because the image is too big. What I want is for the image to be 100% in the div, so you can see the image fully, not just like 80% of it

    So what is the solution?

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

    Auto-Select Radio Button By Default And Execute 'onchange' Function

    Posted: 29 Aug 2020 11:53 PM PDT

    I've achieved the first part of the question using php or js. I use php to echo checked attribute. The problem here is that the radio inputs have other inputs that become visible upon selection with onchange event. However, if any of the radio gets selected/checked by default, the conditional inputs aren't displayed until I change the radio selections. Hence the question, how do I get it checked by default and still have the respective conditional inputs displayed.

    <input name="mode" id="single" onchange="conditionalDisplay(this.value)" type="radio" value="single" <?php if($mode == single){echo 'checked';}> <input name="mode" id="multi" onchange="conditionalDisplay(this.value)" type="radio" value="multi" <?php if($mode == multi){echo 'checked';}>

    When single is selected, other inputs become visible. Same goes for multi. If the condition specified in the php code is true, then one of them gets selected/checked by default but the accompanying hidden inputs from the onchange function are not displayed until the selection is changed.

    N:B - The value of $mode is retrieved from a database.

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

    What langage and libraries to use for my project?

    Posted: 30 Aug 2020 05:37 AM PDT

    Hello,

    I want to create a program for creating mindmaps, mainly to learn. However I don't know what langage would work best and more precisely what GUI libraries to use. I think I'm OK regarding the logic of the program however. Thank you in advance for your help. :)

    I know Python and some c++ and some Web langages but can adapt to a new programming language if needed.

    1) I would like it to run on PC but if it can run on android too that is a plus 2) Basically the app would just be to add nodes and link them together. Something like Dia or Draw.io 3) I don't want to appear like I have not done any research, but I found a lot and nothing, which confused me.

    Feel free to ask for more details if I'm missing something. Thank you. Any pointer to do more research is appreciated.

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

    Not sure if this is the right place to ask, but I have no idea where to start on a school project.

    Posted: 30 Aug 2020 05:31 AM PDT

    I'm trying to write a simple(?) Android app in Kotlin (or Java, but Kotlin seems to be easier and more recommended) for a project, but looking through the Android Studio docs has just made me more confused. This question may be better suited to Stack Overflow, but they seem really hostile to beginners so I'd rather not. For reference, I only really have experience in Python.

    The app needs to: * Let the user add subjects to a list, then pick a subject and add topics to a sub list

    • Under each topic the user should be able to add study questions and answers for themselves, which will be shown to them again when they want to revise

    • When the user revises the questions they should be shown one by one, then after all questions have been shown the answers show up and the user selects a face (happy, middle, sad) showing how they did

    • Each face corresponds to a length of time before a push notification is sent telling them to revise the topic again (e.g. happy = 7 days, sad = 3 days)

    I'm not asking for someone to make the app for me, I just have no idea where to start. Any advice would be greatly appreciated.

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

    No comments:

    Post a Comment