How to type in real-time? Ask Programming |
- How to type in real-time?
- I’m new and need help with understanding servers
- What's the most overrated technology today, that's you've used but we're like , that's it?
- Custom table properties MS Access?
- Create a Firefox Extension that uses Chrome API
- Priority Queue / 0-1 Knapsack / c++
- Could use some help understanding why my PHP code is getting an 'unexpected end of file ' error in the code checker, and why the code works on Localhost but not on my webserver
- Help comparing two strings in C
- What makes a programming language powerful in your opinion?
- Kalman Filtering for unsupervised learning?
- I am unsure on why my functions are not working to output the values into my textboxes... did I link my javascript file wrong or am I calling it incorrectly?
- "this." targets the owner of a function in Javascript, but is there a way to target the owner of the owner?
- Choosing a GUI framework for a potential side project
- What makes VMs better than interpreters?
- [HTML CSS JS] Which is better resource-wise for "tab-like" behaviour? Load page within page, reload whole page, hide/show all elements within wrapper tag, or remove/add all elements within wrapper tag?
Posted: 01 Dec 2019 06:46 AM PST To make things short, is there any way I can type ššššš šš šššš£ššš„šš£š¤ like ćåä¹äøä¹ in real time, without any copy-paste-transfer or conversion needed? I got a hold of LingoJam's online text generators, and they're incredible on no-image, text message meme potential! ..。・ļ¾・✧・ļ¾・。. Note that I'm not looking for bold or italic text, but actual, different Unicode characters that can be used in messaging systems like Facebook or YouTube. ..。・ļ¾・✧・ļ¾・。. Listing ideas from the top of my head,
..。・ļ¾・✧・ļ¾・。. Conclusion: Yes. I'm lazy, I even researched a script to make Kaomoji shortcuts. (^į“^)ļ¾ Advice from any and all would be greatly appreciated! \\ć¾(^ć®^)Ł // [link] [comments] |
I’m new and need help with understanding servers Posted: 01 Dec 2019 09:33 PM PST So me and a friend want to make a real time strategy game with casual, practice, and ranked modes. However I would need servers to do this and don't really understand how that works and what I would need for it. If someone could explain how I could get servers for my game that would be very much appreciated. [link] [comments] |
What's the most overrated technology today, that's you've used but we're like , that's it? Posted: 01 Dec 2019 09:52 AM PST So many new languages and technologies, curious to hear what tech folks tried and found lacking or maybe not worth the effort due to complexity or requirements needed. [link] [comments] |
Custom table properties MS Access? Posted: 01 Dec 2019 06:35 PM PST Newbie question here. I am trying to make a vb.net program which talks to a database. The database has being created by another program. When I open Access and choose Database Documenter, at the top in the 'Properties' section is a whole bunch of custom outputs. I'm not talking font sizes or anything, but items such as if the table should be displayed as a child/parent or what user created the table and what department they work in. The information is displayed at the top in the 'Properties section of the MSAccess database documenter. Does anyone know how I can access this information in vb.net? I've tried schema searches but can't get info. [link] [comments] |
Create a Firefox Extension that uses Chrome API Posted: 01 Dec 2019 04:47 PM PST I was wondering if it is possible to create a firefox extension that uses the Chrome API. My project idea is to create a firefox extension that can be used to cast to a chromecast. From looking at the Google Cast developers guide, it looks like what I need to do is create a sender application that uses the cast and chrome APIs. Please correct me if I'm wrong. https://developers.google.com/cast/docs/developers Any advice is appreciated. Thanks [link] [comments] |
Priority Queue / 0-1 Knapsack / c++ Posted: 01 Dec 2019 04:43 PM PST Hi guys, I am currently working on the project that require insert element to priority queue based on the decreasing order of the bound of node. I have been looking for a method to implement priority queue STL and manually but my code still doesn't run properly. I just need to know how to declare or initiate the priority queue, and insert the element into the queue so that it will follow the order This is what my code looks like struct node { int level; int profit; int weight; float bound; }; float bound(node n, int size, int w[], int p[], int W) { int j,k; int totweight; float result; if(n.weight >= W) { return 0; } else { result = n.profit; j = n.level + 1; totweight = n.weight; while(j <= size && totweight + w[j] <= W) { totweight = totweight + w[j]; result = result + p[j]; j++; } } k = j; if(k <= size) { result = result + (W - totweight)*p[k]/w[k]; } return result; } void knapsack_BranchAndBound(int n, int p[], int w[], int W) { priority_queue<node, vector<node>, SortBound> PQ; node u,v; //Initialize v to the root v.level = -1; v.profit = 0; v.weight = 0; int maxProfit = 0; v.bound = bound(v, n, w, p, W); PQ.push(v); //insert root to PQ while(!PQ.empty()) { v = PQ.top(); PQ.pop(); //remove the unexpanded node with best bound (1st node of the PQ) if(v.bound > maxProfit) //see if node is still promissing { u.level = v.level + 1; u.weight = v.weight + w[u.level]; //Lines 179 - 180 is to set u to the child u.profit = v.profit + p[u.level]; //that includes the next item u.bound = bound(u, n, w, p, W); if(u.weight <= W && u.profit > maxProfit) { maxProfit = u.profit; } if(u.bound > maxProfit) { PQ.push(u); } u.weight = v.weight; //set u to the child that includes next item u.profit = v.profit; u.level = v.level + 1; u.bound = bound(u, n, w, p, W); if(u.bound > maxProfit) { PQ.push(u); //add u to PQ if it is promissing } } } } There is "bound" in the node's element, bound is the priority element, and I would like to create the priority queue so that when I push the new element in, the node will follow the order of non increasing "bound". Thank you so much for your help [link] [comments] |
Posted: 01 Dec 2019 04:14 PM PST I've changed the emails and password but the rest of the code is exactly the same. For some backstory, I've been trying to figure out the problem with this code off and on for the last week. The short of it is it runs fine on Localhost, which is using Windows, but on my Webserver I'm immediately met with an HTTP Error 500. I checked the error logs and the only thing popping up is (Don't know if it was necessary but I edited some of the file names for this post):
I ran my code through a PHP code checker here: https://phpcodechecker.com/ It gave me the same error:
I can't figure out why ?> would be an unexpected end of file. I thought maybe there was a syntax error earlier in the code, but after combing it several times everything seems to check out to my knowledge. Furthermore, I can't figure out why this code could run on Localhost but not my server. I've found a number posts on Stack Overflow where people are having the same problem but none of them have been solved. Any ideas? [link] [comments] |
Help comparing two strings in C Posted: 01 Dec 2019 03:28 PM PST Hi guys, first I want to say that im from Brazil so I will try my best to articulate my problem. I have a project that when I type the correct password in a keypad it shows in a LCD that the password is correct or not. In the exemple below, the correct password is 1223, but when I type 1223 it always goes to "else" which is "Wrong password". Any idea in what I'm doing wrong? include "def_principais.h" //inclusĆ£o do arquivo com as principais definiƧƵesinclude "LCD.h"include "teclado.h" // keypad libraryinclude <avr/io.h>include <string.h>define LED PORTB0//definiĆ§Ć£o para acessar a memĆ³ria flash como ponteiro PROGMEM const char mensagem1[] = "Digite matricula:\0";//mensagem armazenada na memĆ³ria flash char password[5] = "1223"; volatile char password_keypad[5]; unsigned char cursor = 0xC0; unsigned char nr; int main() { } [link] [comments] |
What makes a programming language powerful in your opinion? Posted: 01 Dec 2019 11:24 AM PST Hi guys, I am working on a report for university right now and I would appreciate it if you took 5 mins out of your time to answer a question. I would like to know what features or design principles of a language you consider powerful or elegant. If you could also write down your programming experience it would be great. I'll start off by writing my own answer:
Programming experience: 2 years of working professionally as a mostly web-developer Thanks [link] [comments] |
Kalman Filtering for unsupervised learning? Posted: 01 Dec 2019 01:15 PM PST I'm doing a project where we are given AIS data for some harbor and want to cluster the ships based on the AIS data without knowing k clusters and unknown vessel ID's (however we are given 1 data set for training with the ID's). There's a lot of noise with the data and I'm trying to use a kalman filter to reduce it to make clustering more precise. I don't have any experience with Kalman filters, but the more I'm learning about it the more it seems unusable in my case. I've read a few papers related to what I'm doing where it was its use was mentioned, but it wasn't the focus, so it didn't really go over how they used it. My question is: Is it usable for unsupervised learning? I don't know much about it, but I don't understand how it would be able to reduce the noise and generate more data when we don't even know if 2 different data points are from the same ship. Here is a plot of the data I'm trying to use it on https://imgur.com/a/WZzIMvD [link] [comments] |
Posted: 01 Dec 2019 01:07 PM PST HTML File <title> Financial Calculator </title> <link href="main.css" rel="stylesheet" type="text/css"> <script src="main.js"></script> </head> <form class="fincalc"> <table> <!--This row is a header for the form--> <tr> <h2>Enter the amount of the mortgage, change the yearly interests rate in percentage(e.g., 8.5% = 8.5) if you are quoted a different rate, and select Length of loan in number of years. Click the "calculate" button to view monthly payment. Click the "Reset" button to clear the form. For personal and business loans there will be a $1000.00 and $500.00 origination fees that will be included in montly payments. There is no origination fee for education loans.</h2> </tr> <th rowspan="3">Type of Loan:</th> <td><input type="radio" name="type" value="personal" checked> Personal ($1000.00 origination fee)</td> </tr> <tr> <td><input type="radio" name="type" value="business"> Business ($500.00 origination fee)</td> </tr> <tr> <td><input type="radio" name="type" value="education"> Education</td> </tr> <th>Loan Amount:</th> <td><input type="text" placeholder="40000" id="loanamount"></td> </tr> <th>Interest Rate IN decimal (e.g., 8.5% = 8.5):</th> <td><input type="text" placeholder="7.5" id="interest"></td> </tr> <th>Length of loan in years:</th> <td><select id="length"> <option value="5" selected>5</option> <option value="10">10</option> <option value="15">15</option> <option value="20">20</option> <option value="25">25</option> <option value="30">30</option> </select></td> </tr> <th>Full time student:</th> <td><input type="checkbox" id="student"> (get 1% rate discount)</td> </tr> </table> <!--This button is to calculate loan--> <button onclick="showVal()">Calculate Monthly Payment</button> </h4> </h4> </form> </body> CSS file (This is set up exactly how I want it) -- nothing wrong here JavaScript File Also another question i'm not too sure about, in the parameters for the JavaScript file, do I use single or double quotes? [link] [comments] |
Posted: 01 Dec 2019 12:42 PM PST Say I have an array containing objects, and each object contains a function as well as other information. If I wanted the function to be able to delete the object containing it from the array, how would I do this? [link] [comments] |
Choosing a GUI framework for a potential side project Posted: 01 Dec 2019 11:38 AM PST Hello all I'm thinking of doing a side project for a card game that I"d like to make that i could play as a desktop application. However, my knowledge of desktop app GUI frameworks is pretty dated to say the least (think the last one i worked with was Swing). Was wondering if anyone here could suggest one that I could use that would fit with languages that I know (Java, Python, or Go) EDIT: I did look up JavaFX first as it seems to be the successor to Swing (maybe?), but couldn't find any examples that didn't look like desktop apps from 2003. Am I looking in the wrong spot? [link] [comments] |
What makes VMs better than interpreters? Posted: 01 Dec 2019 09:33 AM PST Say Java. Java compiles into an intermediate language, which is then run by the VM. Now take Python. Python code gets interpreted by another program, which, unless I'm getting something wrong here, is basically the same process the VM runs the intermediate language. So what is the benefit of using a VM rather than a scripting language and an interpreter? My guess is because programs are encrypted. But there are already bytecode to source converters, so this isn't the case. [link] [comments] |
Posted: 01 Dec 2019 06:08 AM PST Hello! I got advice that having all my possible versions of all my dynamic tabs (like sheets in excel) would best be handled with show and hide. I asked whether hidden elements consume resources, as it is quite possible that any one of my up to 10 tabs might have up to 4 innwer windows/segments, which will all behave as separate mini-websites with inputs and reports from databases and stuff like that. That would mean that I would cummulatively have, I dunno, 200 elements hidden at any given time. Here is the initial problem: Each tab is like a new page, but not really, and it loads all the stuff that is in it. Everything is packed nicely in their own third of the window space, and there is no scrolling. My problem is how it would be best to approach this. What is the correct way to do this? It could be maybe toggling separate web pages, where each contains 3 different web pages within itself. It could be all one web page, and we just load and reload what we need. I imagine removing and adding stuff would make tab transition slower. But on the other hand, I recon hiding would use up RAM, but switching would be lightning fast. If we have all in separate documents, then I dunno what would happen. Loading would be lower for sure In short, I have no idea, and I need you to give me some input. [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