How Does Tinder and Similar Apps Avoid Showing Duplicate Profiles? Ask Programming |
- How Does Tinder and Similar Apps Avoid Showing Duplicate Profiles?
- Change my view: An API token is the same as a password, but called differently.
- What is this?
- What exactly defines a API as restful?
- How to structure data & SQL Queries in Data Driven Apps
- console.log is coming up undefined for some reason
- A vendor is requiring a JSON format I can't find any reference to, is this a standard format or something custom?
- Hitting the glass cieling because of no degree.
- how yould i make a auto hotkey script to say alt+255 on the num pad?
- Processing similar images using ML?
- Where to get a commercial software license?
- What to use to create a database with a GUI?
- Can I ask some help planning my learning from those who are in the field?
- Help with making CPU temp monitor in Linux?
- Integrating Cloud API with On-premise API
- Very new to programming
- Maths books for CS/software engineering
- I'm trying to break into AI development but I don't know where to start. Any book recommendations for a self-taught programmer?
- Modifying the Rasbian OS
- How to properly write documentation on the structure of a project
- Website to Paste JSignature text to see the JPEG?
- compromised wordpress site payload identification
- How do you know if an interview take home is unreasonable and shouldn’t do it?
- I want to fetch real time data as it appears on this particular website to my platform/portal!
- When making a command-line application, should the help message list options alphabetically or by type?
How Does Tinder and Similar Apps Avoid Showing Duplicate Profiles? Posted: 02 Jul 2019 06:02 PM PDT I am working on a personal project that performs a similar function to that of apps like Tinder, Hot or Not, etc where the user is displayed a random profile. Currently my implementation involves randomly selecting profiles from my DB and returning a set of them. Then, after the user scrolls through the entirety of the set, my backend repeats the random selection and return of profiles. One issue that becomes immediately apparent is that with a low number of profiles, the user will definitely get shown duplicates. What's the best way to minimize this issue on a web app? If I was working on a mobile application, I'd consider keeping a local hash set of already viewed profiles. From there, continue returning random profiles and comparing those against the hash set, only showing unseen profiles until some threshold is met where it's impossible not to. This seems like it could strain the backend as finding unseen profiles gets harder and harder. Doesn't seem scalable. Minus the downsides, this seems like it could work on a web app on a per session basis, where you keep a hash of seen profiles for the entirety of the session and start over on next login. While I have you, if we disregard the duplicates issue altogether, it seems like my strategy of randomly plucking profiles from the DB is inefficient, taking x number of queries to get x random profiles. Is there a better or good enough strategy to get a randomish set of values from a relational DB with one query? Thanks! Edit: typos [link] [comments] |
Change my view: An API token is the same as a password, but called differently. Posted: 02 Jul 2019 07:37 AM PDT An API token works like a password for any user: It allows access to the API. It's usually harder to memorize, but passwords can be hard as well. It can be changed, but so can passwords. It's usually automatically generated, but you can do that with passwords as well. We just call it "token" because people would get scared if we called it "password" and it's in plain view. [link] [comments] |
Posted: 02 Jul 2019 04:25 PM PDT Hello I do not know about coding. I have only one question. This is one of the game guardian scripts in the form of txt. --Lua-Script-High print('Credits And Logs') function encodes(key,code) return (code:gsub('..', function (h) return string.char((tonumber(h,16)+256-13 - key + 999999*256)%256) end)) end local v_value=gg.prompt({'Enter password'},{[1]=0},{[1]='number'}) gg.toast(':)') pcall(encodes(v_value[1],'5B5B2255605966681C1B3F625D5A59143C5D68144757665D646814566D143C635F555B591B201B433F1B1DFEFE5D5A145B5B225D674A5D675D5660591C686669591D14685C5962FE5B5B226759684A5D675D5660591C5A556067591DFE596258FEFE2E2E47685566682E2EFE615962691431145B5B22575C635D57591C6FFE1B25D68877426314385955581B20FE1B26D688773A6962626D143F625D5A591B20FE1B27D688773D626A5D675D5660591B20FE1B28D68877394C3D481B7120625D60201B4757665D646814366D143C635F555B5914356258144B5D626859661B1DFEFE5D5A1461596269143131142514685C5962145B63686314433F2514596258FE5D5A1461596269143131142614685C5962145B63686314433F2614596258FE5D5A1461596269143131142714685C5962145B63686314433F2714596258FE5D5A1461596269143131142814685C5962145B63686314433F2814596258FE5D5A146159626914313114625D6014685C596214636722596C5D681C1D14596258FE5B636863146263675960595768FEFE2E2E433F252E2EFE5B5B225760595566465967696068671C1DFE5B5B226759684655625B59671C5B5B2246393B3D43425337433839533544441DFE5B5B2267595566575C4269615659661C2422242520145B5B22484D4439533A404335481DFE5B5B225B5968465967696068671C27241DFE5B5B2259585D683560601C212520145B5B22484D4439533A404335481DFE5B5B225760595566465967696068671C1DFE5B636863146263675960595768FEFE2E2E433F262E2EFE5B5B225760595566465967696068671C1DFE5B5B226759684655625B59671C5B5B2246393B3D43425337433839533544441DFE5B5B2267595566575C4269615659661C2D2420145B5B22484D4439533A404335481DFE5B5B225B5968465967696068671C28261DFE5B5B2259585D683560601C2420145B5B22484D4439533A404335481DFE5B5B225760595566465967696068671C1DFE5B636863146263675960595768FEFE2E2E433F272E2EFE5B5B225760595566465967696068671C1DFE5B5B226759684655625B59671C5B5B2246393B3D43425337433839533544441DFE5B5B2267595566575C4269615659661C2D2420145B5B22484D4439533A404335481DFE5B5B225B5968465967696068671C29261DFE5B5B2259585D683560601C2420145B5B22484D4439533A404335481DFE5B5B225760595566465967696068671C1DFE5B636863146263675960595768FEFE2E2E433F282E2EFE5B5B2255605966681C1BD68E95366D143C635F555B5914356258144B5D62685966D68E951B201B3639474815151B1DFE5B5B2268635567681C164757665D646814366D143C635F555B5914556258144B5D62685966161DFE64665D62681C1B485C55625F67145A63661469675D625B14616D146757665D64681B1DFE64665D62681C1B3D5A146D6369145C556A591455626D1466596569596768201467695B5B5967685D6362146366145A6369625814676361591456695B22144460595567591468596060146159506250621B1DFE64665D62681C1B4159676759625B59662E143C635F555B5914385568685956556D631B1DFE64665D62681C1B385D6757636658142E14E49385853C635F555B59E493858517242D252A1B1DFE64665D62681C1B385D6757636658142E144B156248271E461E172D2B2A2B1B1DFE636722596C5D681C1DFEFE2E2E62636759605957682E2EFE5B5B2268635567681C1B415962691B1DFE5B636863144768556668FE')) local data = encodes(v_value[1],'5B5B2255605966681C1B3F625D5A59143C5D68144757665D646814566D143C635F555B591B201B433F1B1DFEFE5D5A145B5B225D674A5D675D5660591C686669591D14685C5962FE5B5B226759684A5D675D5660591C5A556067591DFE596258FEFE2E2E47685566682E2EFE615962691431145B5B22575C635D57591C6FFE1B25D68877426314385955581B20FE1B26D688773A6962626D143F625D5A591B20FE1B27D688773D626A5D675D5660591B20FE1B28D68877394C3D481B7120625D60201B4757665D646814366D143C635F555B5914356258144B5D626859661B1DFEFE5D5A1461596269143131142514685C5962145B63686314433F2514596258FE5D5A1461596269143131142614685C5962145B63686314433F2614596258FE5D5A1461596269143131142714685C5962145B63686314433F2714596258FE5D5A1461596269143131142814685C5962145B63686314433F2814596258FE5D5A146159626914313114625D6014685C596214636722596C5D681C1D14596258FE5B636863146263675960595768FEFE2E2E433F252E2EFE5B5B225760595566465967696068671C1DFE5B5B226759684655625B59671C5B5B2246393B3D43425337433839533544441DFE5B5B2267595566575C4269615659661C2422242520145B5B22484D4439533A404335481DFE5B5B225B5968465967696068671C27241DFE5B5B2259585D683560601C212520145B5B22484D4439533A404335481DFE5B5B225760595566465967696068671C1DFE5B636863146263675960595768FEFE2E2E433F262E2EFE5B5B225760595566465967696068671C1DFE5B5B226759684655625B59671C5B5B2246393B3D43425337433839533544441DFE5B5B2267595566575C4269615659661C2D2420145B5B22484D4439533A404335481DFE5B5B225B5968465967696068671C28261DFE5B5B2259585D683560601C2420145B5B22484D4439533A404335481DFE5B5B225760595566465967696068671C1DFE5B636863146263675960595768FEFE2E2E433F272E2EFE5B5B225760595566465967696068671C1DFE5B5B226759684655625B59671C5B5B2246393B3D43425337433839533544441DFE5B5B2267595566575C4269615659661C2D2420145B5B22484D4439533A404335481DFE5B5B225B5968465967696068671C29261DFE5B5B2259585D683560601C2420145B5B22484D4439533A404335481DFE5B5B225760595566465967696068671C1DFE5B636863146263675960595768FEFE2E2E433F282E2EFE5B5B2255605966681C1BD68E95366D143C635F555B5914356258144B5D62685966D68E951B201B3639474815151B1DFE5B5B2268635567681C164757665D646814366D143C635F555B5914556258144B5D62685966161DFE64665D62681C1B485C55625F67145A63661469675D625B14616D146757665D64681B1DFE64665D62681C1B3D5A146D6369145C556A591455626D1466596569596768201467695B5B5967685D6362146366145A6369625814676361591456695B22144460595567591468596060146159506250621B1DFE64665D62681C1B4159676759625B59662E143C635F555B5914385568685956556D631B1DFE64665D62681C1B385D6757636658142E14E49385853C635F555B59E493858517242D252A1B1DFE64665D62681C1B385D6757636658142E144B156248271E461E172D2B2A2B1B1DFE636722596C5D681C1DFEFE2E2E62636759605957682E2EFE5B5B2268635567681C1B415962691B1DFE5B636863144768556668FE') local enc = load(data) pcall(enc) Is there a hash? What is this programming language? Please do not be ridiculous if the question was stupid. [link] [comments] |
What exactly defines a API as restful? Posted: 02 Jul 2019 09:23 PM PDT I've been trying to research this question all day but I have yet to explain what exactly allows an API to be described as restful. My original understanding was that the API was a set of CRUD methods that were utterly stateless. You GET an API and it returns a list of objects or something. You POST to create a new object, PUT to update, and DELETE to delete. Nothing the API users do change the outcome of GET other than using the C, U, and D of CRUD. But then I hear people talk about how an API is not truly restful. My team lead sent out an email today talking about this as we head into a new phase of development and being fairly new I'm left confused when he started mentioning about how many APIs aren't restful but rather resourceful. I'm lost and confused and the articles he shared to support his reasoning just sounded like rest APIs to me. Can anyone give me a basic explanation/example of what causes an API to not be restful? [link] [comments] |
How to structure data & SQL Queries in Data Driven Apps Posted: 02 Jul 2019 02:54 PM PDT Assume I have two tables in my database
My web app displays a time series graph for the ratio Ad Spend/Revenue. Should I create a third table that contains the transformed data (ad spend/revenue per day), or should I just let me SQL query that fetches data for the website do the arithmetic? [link] [comments] |
console.log is coming up undefined for some reason Posted: 02 Jul 2019 08:20 PM PDT Hello, I would like to know why one of these console.logs are coming up with the expected results, but the other is undefined, have a look
the first console.log(imageArray) works fine, but the one outside comes up as undefined, I have no idea what is happening here, please help. [link] [comments] |
Posted: 02 Jul 2019 07:04 PM PDT I'm hoping to use an existing serializer if one exists, but I can't find anything like this in order to know what it's called. Edit: adding an example of the JSON every other system in the platform uses, including a system from the same vendor Edit2: adding sample class [link] [comments] |
Hitting the glass cieling because of no degree. Posted: 02 Jul 2019 04:39 AM PDT How far can one go in software without a degree before they hit the cieling? What are the fields that you can realistically work up to? Graphics engine and game engineering, VR, AI, ML, DL, compiler designer, low level systems programmer, OS programming, database designer etc... Lets say the starting point is experience in fullstack web engineering. What in this area can limit you from working your way up to any of these more robust and conplex fields? [link] [comments] |
how yould i make a auto hotkey script to say alt+255 on the num pad? Posted: 02 Jul 2019 06:47 PM PDT |
Processing similar images using ML? Posted: 02 Jul 2019 05:51 PM PDT I've been wanting to dabble in ML for a while now, and one of the topics that's always interested me was finding contextually similar images using ML. I was wondering if there were any articles or tutorials about processing an unorganized set of image data (likes), and then finding contextually similar images (kind of like recommendations), based on my preferences in the unorganized set of data, without it being simplified to "You like dogs, this is a photo dog, so you must like it", I'm looking for something more to the effect of "You like this particular photo of a dog, this other photo has similar (lighting, fur color, stance, etc...), so you might like it". [link] [comments] |
Where to get a commercial software license? Posted: 02 Jul 2019 02:05 PM PDT Hi All, I know the MIT license and the GPL are great for "free" software projects. Is there a similar "free to use license" that is for commercially licensed projects? I'm about to start commercially licensing a side project and I'd like a license agreement that basically says I get X% of the revenue generated by said software, and that there is to be no modifying, de-compiling, reverse engineering or installing it on other systems without written approval. Is there a place where I can get such a written agreement? [link] [comments] |
What to use to create a database with a GUI? Posted: 02 Jul 2019 02:05 PM PDT My idea/goal is to create a editable list or database of the video games I own and don't own. I want it to have a graphical interface, not just a text list, and I would like to have a way of sorting by the different categories I make (Rating, Owned or not, finished, etc..). It doesn't have to be complex, I'm thinking just like an Excel table kind of looking, but I also want to be able to add games to the list and thus add a new "row" in the list. My original plan was to use Java, that way I can make an app for my Android phone, and also be able to access my database on my computer, but skimming a book I have about Java, I saw something about SQL and databases, so I just want to know what direction is the best for what I want to do. I don't really know much about programming in general, but I want to learn, and I figured I would learn by doing. The other thing about Java is I'm not sure how I would work having an Android app and synchronize to my app on my computer, and from what I understand I could somehow have an SQL server that I could reach from anywhere. Any guidance would be appreciated. [link] [comments] |
Can I ask some help planning my learning from those who are in the field? Posted: 02 Jul 2019 01:49 PM PDT I'm currently in school for Cognitive Science, and am interested in learning programming and working in the field. I currently know Java at I'd say an intermediate to advanced level, but that's about it. I've been spending the summer learning a little bit of things that I believe I need to learn, but am not sure about what order I should set precedence on. So far things like Spring and RESTful have come up, and I've sort of introduced the subjects to myself without going to far. I've also been looking at Kotlin, though thats sort of more out of interest. Also Git I've introduced myself to, but haven't gotten far. I'm looking at jobs and internships online and so many of them want full stack developers. I've learned HTML,CSS, some basic Javascript, PHP through an online series. But I dont feel like I particularly have an eye for front end work, which leads me to think I wouldn't be good at it. I guess I'm looking for insight on what sort of learning plan I should set up for myself, with the goal to be ready for an entry level job or internship within maybe the next year when I graduate. Thank you for any insight and advice! [link] [comments] |
Help with making CPU temp monitor in Linux? Posted: 02 Jul 2019 01:34 PM PDT I want to write a program in linux for monitoring CPU temperatures. I understand that there is software out there that can already do this, but I just want do this as a learning experience. I am CS major and I just finished my Junior year and I have taken Operating Systems, so I have some understanding of how Linux works and I also have experience in C. But I'm still not really sure where to even start. I was thinking I might have to write my own kernel modules possibly? Anyways, I was wondering if I could get some help here and possibly some advice on what I would need to do to accomplish this and any resources that I could utilize. Thanks! [link] [comments] |
Integrating Cloud API with On-premise API Posted: 02 Jul 2019 01:13 PM PDT Hello All, Currently I'm a professional software developer. I work on a relatively new team at my company (this is the first software development job for all members of the team) that is tasked with developing integrations between our cloud based API with other product APIs. We primarily try to stick with Python. My questions is, what is a good strategy for integrating with an on premise application? I'm struggling to find a good architecture and deployment process. What we generally do now is develop some sort of "connector" that basically has to get "deployed" on the client side...sometimes this is just a zip file with python scripts that either makes an attempt at calling the on-prem product's API periodically (and in turn sending data back to our API), or some that we ask the client to figure out how often to run it themselves, via cron or something. And then as far as deployment is concerned, we have to like tell them hey, you need a linux machine with Python3 and x dependencies installed, etc. One thing we're trying now is creating a download OVA that already has the dependencies which helps a little. Does anyone have any experience doing this kind of thing and have any opinions or strategies to share? Thanks for reading! tl;dr - Struggling to find good way to integrate cloud app with (various) on-premise apps, what do? [link] [comments] |
Posted: 02 Jul 2019 09:22 AM PDT I'm using a pre-written code for image reduction, and it works for all others in my group but when I try to run anything I get weird error messages. this generates the error message: Any help would be appreciated, because as far as i've figured, there should be no issue running this. UPDATE: I figured out my problem. I was given the wrong files to use as my bias and flat files. Just put the right files in the directory and it's working smoothly now. Thank you for the help! [link] [comments] |
Maths books for CS/software engineering Posted: 02 Jul 2019 09:12 AM PDT I've been offered a place on a software engineering grad scheme, but my degree is in biology (with a bit of bioinformatics) and I only did maths to A Level. Can anyone recommend some books that cover the fundamentals I should know for CS/software engineering? I've got "How to Think Like a Mathematician" which looks good. [link] [comments] |
Posted: 02 Jul 2019 12:09 PM PDT I'd prefer any of the C languages, Java, or Python but it's not a deal-breaker. I just want to understand it better. I've done some light reading on it and I see conceptual terms like game states but not really any single definition. I also come across algorithms like minimaxing/maximining and while I can grasp the views from 30,000 feet, it's difficult to visualize its implementation. I learn far better by doing and I'd like to try building out an AI. Ideally, I'd like to start small and simple. I have a card game (Uno) that I've programmed for just this purpose. I'd like to attempt to flesh out an AI and insert it into the game to see how it performs (and if it even works). Following that, I can learn more complex implementations but I'm not at that point, yet. I've never done game development before. It's not really a major area that I want to get into, but learning how an AI and, by extension machine learning (I know they aren't the same but I figure some concepts might translate), works will help me grow immensely as a developer. Does anyone have any recommended books or reading material? Is there anything that really helped break things down and demonstrated practical application? Any and all advice is welcome! [link] [comments] |
Posted: 02 Jul 2019 12:03 PM PDT I'm looking for someone who can modify the Raspbian OS. I need the part of the OS which acknowledges and/or enables the WIFI to be disabled. I'm not talking about turning off the WIFI, I'm talking about deleting the code which recognizes the WIFI hardware altogether. So no matter if the PI is turned on or restarted, no WIFI capability will be present. [link] [comments] |
How to properly write documentation on the structure of a project Posted: 02 Jul 2019 11:56 AM PDT So, I bootstrapped/worked for some months on the core of a mid-sized project. The project integrates several technologies, enough for me to write some abstractions to ease the development. The complexity of the system (and my tendency to over engineer, although I consciously try to avoid it) made enough abstractions, for it to be unclear the general flow of the program when looked without context. We are a small company ( 7 programmers ), and the product has been out long enough for pesky intricate bugs to come to light. In the attempt of my coworkers to fix things, or to add functionality, they had a rough time since I scarcely documented it, they weren't that happy, although they admittedly were entertained. I even admit it takes me a little while to to fit my mind on the context after some months of not looking at the code (although I believe this is also because the domain is a little complex). I'm happy with the structure of the project (but I admit in some parts it gets hard to follow, but that's just the nature of the problem), moreover the company can't afford restructuring the project. I'm writing some documentation on the modules/interfaces/etc. But there are some things hard to communicate. After mentoring with people it generally works out fine, I've also done this with other projects in the past, and person to person communication is very effective for them to understand the structure of what I had in mind ( ex. what I mean by SensorMonitor or what exactly is the DriverInterface functions responsability). Also mainly because as programmers we tend to skim read looking for answers instead of engaging. So I'm not that sure my documentation is going to be effective. I want the code to be useful, have a long life, and hopefully not annoying for the people that work in it. I'm trying to learn from good open source projects with good documentation to understand what they're doing right. I even believe that part of the success of a new tool/framework is how well documented it is (even more than usefulness) So I turn to you, reddit programmers, what do other companies do to document the structure of their projects? Thanks! [link] [comments] |
Website to Paste JSignature text to see the JPEG? Posted: 02 Jul 2019 11:42 AM PDT I have a task to convert this JSignature text into an image, so we can see what the customer signed. Does anyone know of a website i can paste this into, and see the output conversion to JPG? Example JSignature Code: 2QZ2254455565555544332200Y275455444333Z13232200Y277534323222211000014454232231223354232324Z42120Y34455756544220Z37943322Y268745555431_1AZ8442110000Y123446655556300Z123333232Y86576558510Z233445456564Y78865210Z336762Y463421Z3445345Y444497221000Z3343456400Y3333530Z10Y14567544_4J_n_9H00Z101122_s778ba887_7w53466a99abaa866330Z467aa9ba96543Y5689cb9a8553Z55666643110Y13545465433200Z166775434Y754554443101264955434646696774433Z24a555433220Y1489665655435302Z156233333100Y46_1UZa22323222111000Y2586677879754422Z1345656653320Y335456655543110Z15566555542100Y11320Z2333211Y3567341000Z2230234434433456100Y23334487511Z1334554669764420Y3468aaeccdc [link] [comments] |
compromised wordpress site payload identification Posted: 02 Jul 2019 07:46 AM PDT I was asked to "fix" a user's compromised WordPress site and I found these files were uploaded. I was just curious to see what the payload of this hack was actually doing. I tried to deobfuscate the code with some of the online tools, but I couldn't get very far. Is anyone able to identify what this is doing? File1: https://pastebin.com/Ue3EXcuN File2: https://pastebin.com/XdBAYAWh P.S: I have already wiped the server clean and re-installed. Thank you [link] [comments] |
How do you know if an interview take home is unreasonable and shouldn’t do it? Posted: 02 Jul 2019 11:20 AM PDT I've heard companies taking advantage of applicants and use the take home work for cheap labor. How do you know if an interview take home is unreasonable and shouldn't do it? [link] [comments] |
I want to fetch real time data as it appears on this particular website to my platform/portal! Posted: 02 Jul 2019 07:05 AM PDT Hello Guys, I want to fetch real time stock market data as it happens into my website/platform. For Example:- Any company posts its Quarter 4 Results, so I want to fetch that data into my platform realtime as it happens. I want each and every data of any particular company that is being posted on this website to my platform. As my team wants to create a Research based platform for fundamental analysis of the stocks. How would this happen? I am not a tech guy as such, but have heard about API calls. Would that be the case here? I want to build some a platform where I will put in some formulaes and I require data from this official website to be fetched every time. Does anyone know how to do it? Or a roadmap to go there? Any help/suggestion is highly appreciated. [link] [comments] |
Posted: 02 Jul 2019 01:52 AM PDT I'm currently building a port scanner (definitely still in alpha), and I'm tweaking the CLI's Should the message display options in pure alphabetical order, like this: ~~~ -h, --help show this help message and exit -a, --all show all ports in output -f FORMAT, --format FORMAT set output format (see readme) -p PORTS, --ports PORTS set ports to scan (default 1-1024) -q, --quiet show scan results only -t SECS, --timeout SECS set port timeout (default 1.0) -v, --version show version and exit -w WORKERS, --workers WORKERS set max workers (default cores * 5) ~~~ Or sorted into logical groups, like this: ~~~ -h, --help show this help message and exit -v, --version show version and exit -a, --all show all ports in output -q, --quiet show scan results only -f FORMAT, --format FORMAT set output format (see readme) -p PORTS, --ports PORTS set ports to scan (default 1-1024) -t SECS, --timeout SECS set port timeout (default 1.0) -w WORKERS, --workers WORKERS set max workers (default cores * 5) ~~~ Honestly, I can't decide, so you can you guys pick one for me? Thanks! [link] [comments] |
You are subscribed to email updates from AskProgramming. To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google, 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States |
No comments:
Post a Comment