• Breaking News

    Sunday, December 1, 2019

    How to type š•Œš•Ÿš•šš•”š• š••š•– in real-time? Ask Programming

    How to type �������������� in real-time? Ask Programming


    How to type �������������� in real-time?

    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,

    • Is there an application that, once opened, can convert the basic characters in the alphabet into š“¬š“¾š“»š“¼š“²š“暝“®, š“Æš“Ŗš“·š“¬š”‚ š“½š“®š”š“½, without the use of online generators? Perhaps can convert it in real-time?
    • Is there a software, or "keyboard", that allows you to type in a different Unicode font?

    ..。・ļ¾Ÿ・✧・ļ¾Ÿ・。.

    Conclusion: Yes. I'm lazy, I even researched a script to make Kaomoji shortcuts. (^į“—^)ļ¾‰

    Advice from any and all would be greatly appreciated!

    \\ćƒ¾(^惮^)Łˆ //

    submitted by /u/legofries
    [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.

    submitted by /u/Redanator_
    [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.

    submitted by /u/abrandis
    [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.

    submitted by /u/willDoxForFood
    [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

    submitted by /u/fluid-Friction
    [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

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

    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

    Posted: 01 Dec 2019 04:14 PM PST

    <?php //Don't run this unless we're handling a form submission if (isset($_POST['myName']) && empty($_POST['honeypot'])) { $myName = $_POST['myName']; $myEmail = $_POST['myEmail']; $myQuestion = $_POST['myQuestion']; date_default_timezone_set('Etc/UTC'); require '../PHPMailer/PHPMailerAutoload.php'; //Create a new PHPMailer instance $mail = new PHPMailer; //Tell PHPMailer to use SMTP - requires a local mail server //Faster and safer than using mail() $mail->SMTPDebug = 2; $mail->isSMTP(); $mail->Host = 'mail.myname.website.com'; $mail->Port = 587; //Set this to true if SMTP host requires authentication to send email $mail->SMTPAuth = true; //Provide username and password $mail->Username = 'phpmailer@myname.website.com'; $mail->Password = 'AGoodPassword'; //Use a fixed address in your own domain as the from address //**DO NOT** use the submitter's address here as it will be forgery //and will cause your messages to fail SPF checks $mail->setFrom('phpmailer@myname.website.com', 'My Name'); //Send the message to yourself, or whoever should receive contact for submissions $mail->addAddress('firstname.lastname@email.edu', 'My Name'); //Put the submitter's address in a reply-to header //This will fail if the address provided is invalid, //in which case we should ignore the whole request $mail->addReplyTo($myEmail, $myName); $mail->Subject = 'PHT || Questions or Comments'; //Keep it simple - don't use HTML $mail->isHTML(true); //Build a simple message body $mail->Body = <<<EOT Email: $myEmail<br> Name: $myName<br> Message: $myQuestion EOT; //Send the message, check for errors if (!$mail->send()) { //The reason for failing to send will be in $mail->ErrorInfo //but you shouldn't display errors to users - process the error, log it on your server. echo "Mailer error" . $mail->ErrorInfo; } else { include 'sent.html.php'; } } else { include 'contact.html.php'; } ?> 

    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):

    PHP Parse error: syntax error, unexpected end of file in /home2/myname/public_html/'filepath'/'filepath'/'filepath/index.php on line 67

    I ran my code through a PHP code checker here: https://phpcodechecker.com/

    It gave me the same error:

    PHP Syntax Check: Parse error: syntax error, unexpected end of file in your code on line 67

    ?>

    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?

    submitted by /u/twislebutt
    [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ƧƵes

    include "LCD.h"

    include "teclado.h" // keypad library

    include <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() {

    set_bit(DDRB,LED); //setando a porta do LED para 1 DDRC = 0xFF; //LCD esta no PORTC DDRD = 0x0F; //definiƧƵes das entradas e saƭdas para o teclado PORTD= 0xFF; //habilita os pull-ups do PORTD e coloca colunas em 1 inic_LCD_4bits(); // inicia LCD modo 4bits escreve_LCD_Flash(mensagem1); cmd_LCD(0xC7,0); //desloca cursor para a 2a linha do LCD while(1) { int n=0; nr = ler_teclado(); //scan keypad if(nr!=0xFF && cursor < 0xC4) { password_keypad[n]=nr; cmd_LCD(cursor,0); //escreve_LCD("*"); _delay_ms(200); cursor++; n++; cmd_LCD(nr,1); _delay_ms(200); } if (cursor == 0xC4) { if (strcmp(password,password_keypad)==0) { cmd_LCD(0x01,0); escreve_LCD("Password correct"); _delay_ms(1000); } else { set_bit(DDRB,LED); _delay_ms(600); clr_bit(DDRB,LED); cmd_LCD(0x01,0); escreve_LCD("Password incorrect"); _delay_ms(1000); } } } 

    }

    submitted by /u/thormeNt
    [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:

    • First class functions
    • Incremental compilation (think Lisp REPL, or a JS console)
    • Multi-paradigm
    • Meta-programming (relatively easy to extend the language if needed)

    Programming experience: 2 years of working professionally as a mostly web-developer

    Thanks

    submitted by /u/andeee23
    [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

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

    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?

    Posted: 01 Dec 2019 01:07 PM PST

    HTML File

    <!DOCTYPE html> <html lang="en"> <head> 

    <title> Financial Calculator </title> <link href="main.css" rel="stylesheet" type="text/css"> <script src="main.js"></script> </head>

    <body> 

    <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>

    <!--Type of loan row--> <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>

    <!--Loan amount row--> <tr> 

    <th>Loan Amount:</th> <td><input type="text" placeholder="40000" id="loanamount"></td> </tr>

    <!--Interest Rate row--> <tr> 

    <th>Interest Rate IN decimal (e.g., 8.5% = 8.5):</th> <td><input type="text" placeholder="7.5" id="interest"></td> </tr>

    <!--Loan length row--> <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>

    <!--Full time student? row--> <tr> 

    <th>Full time student:</th> <td><input type="checkbox" id="student"> (get 1% rate discount)</td> </tr> </table>

    <!--BUTTONS--> <h4> 

    <!--This button is to calculate loan--> <button onclick="showVal()">Calculate Monthly Payment</button>

     <!--This button is to reset all fields--> <button type="reset">Reload</button></h4> <!--These rows will display the total after pressing "Calculate Montly Payment" button--> <!--This first one will display montly payments--> <h4 class="amount"> Monthly Payment: $ <input type="text" placeholder="0.00" id="monthlypay"> 

    </h4>

     <!--This second one will display total month--> <h4 class="amount"> Total Payment: $ <input type="text" placeholder="0.00" id="totalpay"> 

    </h4> </form> </body>

    </html> 

    CSS file (This is set up exactly how I want it) -- nothing wrong here

    form, tr, th, td, h2, h4, table { border: 0; padding: 0; margin: 0; } form { border: 2px solid black; width: 50em; padding: 0; border-collapse: collapse; } table { width: 100%; margin: 1px auto; border-collapse: collapse; } th, td { text-align: left; border-bottom: 1px solid gray; border-right: 1px solid gray; } h2 { font-family: 'Times New Roman', Times, serif; font-size: medium; border-bottom: 1px solid gray; border-collapse: collapse; } h4 { border-bottom: 1px solid gray; } h4.amount { text-align: right; color: red; } 

    JavaScript File

    function monthly(I, N, S) { //I: interest //N: number of monthly payment //S: Loan amount return (S * I / 12 * Math.pow(I / 12 + 1, N)) / (Math.pow(I / 12 + 1, N) - 1); } function showVal() { var loanamount = document.getElementById("loanamount").value; loanamount = parseFloat(loanamount); var interest = document.getElementById("interest").value; interest = parseFloat(interest); var termlength = document.getElementById("length").value; termlength = parseFloat(termlength); var percent = interest / 100; percent = parseFloat(percent); var result = monthly(interest, termlength, loanamount); document.getElementsById("monthlypay").value = result / termlength; document.getElementById("totalpay").value = result; } 

    Also another question i'm not too sure about, in the parameters for the JavaScript file, do I use single or double quotes?

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

    "this." targets the owner of a function in Javascript, but is there a way to target the owner of the owner?

    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?

    submitted by /u/UncertainOutcome
    [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?

    submitted by /u/canadiancreed
    [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.

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

    [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: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:

    1. website with main menu and tabs 1.1 Tab1 1.1.1 Table filled with data from database 1.1.2. Input form that takes user input and sends it to database and updates table 1.1.3. Something else 1.2 Tab2 1.3 Tab3 

    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.

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

    No comments:

    Post a Comment