Programming
Member Avatar

Hello people. I'm looking for FP examples that are very simple (very few lines, one-liners are even better) and that totally look like sorcery to a traditional imperative programmer. Can …

Topic by G_S

I took APL in my second year of Comp Sci and loved it. I used it on almost all my numerical analysis courses after that (I still play with it …

Programming
Member Avatar

I'm trying to implement Callable for Strassen's algorithm to multiply two matrices. I'm new to this, and i'm having a few issues and I can't figure it out for the …

Topic by subhaac

If you look at the call()

else
    strassenMatrixMultiplication(A,B);
return C;

Nothing is being done with the result of strassenMatrixMultiplication(A,B).

All your P# = future#.get()'s are 0.

A few general remarks: …

Programming
Member Avatar

I'm trying to implement Callable for Strassen's algorithm to multiply two matrices. I'm new to this, and i'm having a few issues and I can't figure it out for the …

Web Development
Member Avatar

I was informed the if-statement is incorrect. I can't find the syntax error ?

var curDoc = app.activeDocument;
var selall = app.executeMenuCommand("selectall");
var fillrmv = curDoc.pathItems[0].filled = false;
if (app.activeDocument.pathItems[0].filled …
Topic by Siberian

I don't know why it does that. You can try checking the content of pathItems and see if it actually contains anything, but I don't know if you can do …

Software Development
Member Avatar

Hi i have other problems in other class the questions is
**
The Person class
Create a class called "Person" that includes three pieces of information as instance variables: a …

Topic by Sameer_8

this.age = (this.age * increment) + this.age;

So if I am 40 and the increment is 5 I would be (40 * 5) + 40... talk about time flying. Why …

Software Development
Member Avatar

Hi i have other problems in other class the questions is
**
The Person class
Create a class called "Person" that includes three pieces of information as instance variables: a …

Web Development
Member Avatar

I was informed the if-statement is incorrect. I can't find the syntax error ?

var curDoc = app.activeDocument;
var selall = app.executeMenuCommand("selectall");
var fillrmv = curDoc.pathItems[0].filled = false;
if (app.activeDocument.pathItems[0].filled …
Topic by Siberian

What is the content of fillrmv[i] ? Maybe it doesn't have a property filled.

Is this scripting for Adobe Illustrator btw? Because I have no idea where you get things …

Programming
Member Avatar

Hello people. I'm looking for FP examples that are very simple (very few lines, one-liners are even better) and that totally look like sorcery to a traditional imperative programmer. Can …

Topic by G_S

>They also say that once you learn how to think the C way you'll be able to program in every other single language because they are mostly the same.

That …

Programming
Member Avatar

Hello people. I'm looking for FP examples that are very simple (very few lines, one-liners are even better) and that totally look like sorcery to a traditional imperative programmer. Can …

Topic by G_S

I have to agree that the basics do help when you learn a new language. My first was Fortran which at the time there was no C language but there …

Programming
Member Avatar

Hello people. I'm looking for FP examples that are very simple (very few lines, one-liners are even better) and that totally look like sorcery to a traditional imperative programmer. Can …

Topic by G_S

Not a functional language, but Prolog is pretty cool.

hanoi(1,FROM,TO,_) :- write('disk from '),
                      write(FROM),
                      write(' to '),
                      write(TO),
                      nl.
hanoi(N,FROM,TO,X) :- N > 1,
                      NMIN1 is N - 1, …
Programming
Member Avatar

Hello people. I'm looking for FP examples that are very simple (very few lines, one-liners are even better) and that totally look like sorcery to a traditional imperative programmer. Can …

Web Development
Member Avatar

I was informed the if-statement is incorrect. I can't find the syntax error ?

var curDoc = app.activeDocument;
var selall = app.executeMenuCommand("selectall");
var fillrmv = curDoc.pathItems[0].filled = false;
if (app.activeDocument.pathItems[0].filled …
Topic by Siberian

Change var fillrmv = curDoc.pathItems[0]; to var fillrmv = curDoc.pathItems; because you want it to be all the items and not just the first one. And change for (i=0;i>fillrmv.length;i++) {

Web Development
Member Avatar

I was informed the if-statement is incorrect. I can't find the syntax error ?

var curDoc = app.activeDocument;
var selall = app.executeMenuCommand("selectall");
var fillrmv = curDoc.pathItems[0].filled = false;
if (app.activeDocument.pathItems[0].filled …
Topic by Siberian

I don't think you need fillrmv at all. Unless you want to store the .length in there or something.

Web Development
Member Avatar
    function email($reqNo){
        //Database Configurations
        $host = "some.url";
        $username = "someuser";
        $pass = "xxxxxx";
        $db = "mydatabase_db";

        //Customer Configurations
        $cName = null;
        $cEmail = null;

        $DBConnect = @mysqli_connect($host, $username, $pass, $db) …
Topic by gahhon

Yes, but, from that page:

> All it takes is the right configuration (to send mail using a local or a remote server)

So make sure that you include those …

php
Web Development
Member Avatar
    function email($reqNo){
        //Database Configurations
        $host = "some.url";
        $username = "someuser";
        $pass = "xxxxxx";
        $db = "mydatabase_db";

        //Customer Configurations
        $cName = null;
        $cEmail = null;

        $DBConnect = @mysqli_connect($host, $username, $pass, $db) …
Topic by gahhon

Well even the official PHP mail page makes references to the PEAR package and encourages its use. Down in the comments there are some people who tinker with the php.ini …

php
Web Development
Member Avatar

I was informed the if-statement is incorrect. I can't find the syntax error ?

var curDoc = app.activeDocument;
var selall = app.executeMenuCommand("selectall");
var fillrmv = curDoc.pathItems[0].filled = false;
if (app.activeDocument.pathItems[0].filled …
Topic by Siberian

> Correct me but isn't that what the code is doing ?

It's not.

if (app.activeDocument.pathItems[0].filled.length == true) {

This is saying, if the length of the "array" of the …

Web Development
Member Avatar
    function email($reqNo){
        //Database Configurations
        $host = "some.url";
        $username = "someuser";
        $pass = "xxxxxx";
        $db = "mydatabase_db";

        //Customer Configurations
        $cName = null;
        $cEmail = null;

        $DBConnect = @mysqli_connect($host, $username, $pass, $db) …
Topic by gahhon

Are you sure you are allowed to send mail from your server? Localhost can't on its own and most hosts block it. Maybe look into [using an smtp server with …

php
Web Development
Member Avatar

I was informed the if-statement is incorrect. I can't find the syntax error ?

var curDoc = app.activeDocument;
var selall = app.executeMenuCommand("selectall");
var fillrmv = curDoc.pathItems[0].filled = false;
if (app.activeDocument.pathItems[0].filled …
Topic by Siberian

Not so much what you're doing wrong is explained in the videos but why it doesn't blow up when you do that. Because in most languages it will blow up …

Web Development
Member Avatar

I was informed the if-statement is incorrect. I can't find the syntax error ?

var curDoc = app.activeDocument;
var selall = app.executeMenuCommand("selectall");
var fillrmv = curDoc.pathItems[0].filled = false;
if (app.activeDocument.pathItems[0].filled …
Topic by Siberian

> if (app.activeDocument.pathItems[0].filled = true) {

A single = is used to assign a value, a double == or triple === is used to check a value. So basically in …

Web Development
Member Avatar

I was informed the if-statement is incorrect. I can't find the syntax error ?

var curDoc = app.activeDocument;
var selall = app.executeMenuCommand("selectall");
var fillrmv = curDoc.pathItems[0].filled = false;
if (app.activeDocument.pathItems[0].filled …
Web Development
Member Avatar
    function email($reqNo){
        //Database Configurations
        $host = "some.url";
        $username = "someuser";
        $pass = "xxxxxx";
        $db = "mydatabase_db";

        //Customer Configurations
        $cName = null;
        $cEmail = null;

        $DBConnect = @mysqli_connect($host, $username, $pass, $db) …
Topic by gahhon

> I don't any edit button on the post?

If you could edit it would still be a risk. Google will have indexed the page by now so people can …

php
Web Development
Member Avatar
    function email($reqNo){
        //Database Configurations
        $host = "some.url";
        $username = "someuser";
        $pass = "xxxxxx";
        $db = "mydatabase_db";

        //Customer Configurations
        $cName = null;
        $cEmail = null;

        $DBConnect = @mysqli_connect($host, $username, $pass, $db) …
Topic by gahhon

You can't send e-mail from localhost without an smtp server running and a lot of (free) hosts have it disabled by default. The free ones usually require a tiny payment …

php
Web Development
Member Avatar
    function email($reqNo){
        //Database Configurations
        $host = "some.url";
        $username = "someuser";
        $pass = "xxxxxx";
        $db = "mydatabase_db";

        //Customer Configurations
        $cName = null;
        $cEmail = null;

        $DBConnect = @mysqli_connect($host, $username, $pass, $db) …
php
Software Development
Member Avatar

hi everyone I need your help in extracting arabic text from image using vb.net. I only found program for extracting english language text but not found for arabic.
I used …

Topic by batoolhussain

Tesseract 3.0+ should have Arabic support. It's in C but there are wrappers for other languages, including two for .NET.

If that proves too hard there is also a JavaScript

Software Development
Member Avatar

hi everyone I need your help in extracting arabic text from image using vb.net. I only found program for extracting english language text but not found for arabic.
I used …

Hardware and Software
Member Avatar

Have an online app "keepCalling.com" that allows one to make calls to land lines over the internet. Has worked for years but now I find that new devices after java …

Topic by Jerome_5

Same for Android

But since it's a paid service, perhaps drop a message in their support box as well? They should be willing to help their customers I'd reckon.

Hardware and Software
Member Avatar

Have an online app "keepCalling.com" that allows one to make calls to land lines over the internet. Has worked for years but now I find that new devices after java …

Programming
Member Avatar

Hello!. I am trying to sign an xml with a key (.pfx) and when I sent it to who should receive it I get in response "Incorrect reference digest value". …

Topic by Chiquito

> I followed your suggestion and tried to send just the xml (without envelop). Bad luck.

No no, my point was that you might be signing the envelope and only …

Programming
Member Avatar

Hello!. I am trying to sign an xml with a key (.pfx) and when I sent it to who should receive it I get in response "Incorrect reference digest value". …

Topic by Chiquito

You are computing signedXml.ComputeSignature(); on line 26 and on line 30. Is that intentional?

I take it you mean these tutorials on verifying and signing. I only see it being …

Programming
Member Avatar

Hello!. I am trying to sign an xml with a key (.pfx) and when I sent it to who should receive it I get in response "Incorrect reference digest value". …