0

@hericles, thanks for the input, but I disagree in some points...

Humans are incapable of functioning in sufficiently large groups with leadership/authority in place.

You meant "without leardership", right? Because government is leadership/authority.
But even then, if people are not capable of deciding how to live, how are those same people capable of appointing someone to take the decisions for them?

I believe in leadership, but not in defined rules. Not in the military state. I believe in leadership of morals, of knowlodge and of passion. You follow those you believe in, not those that the majority tought was the least worse available option.

It takes organised effort to a variety of good things like food distribution, infratructure, health care, etc. Sure, governments can be (and are) corrupt, or more exactly, are full of corrupt people.

Organized effort doesn't need to be centralized in a instituition. The food available on the market wasn't grown, processed, transported and arranged by plans of the government. People and companies make stuff.

I agree that a government with smart and good hearted people could be great also, but I think this is more than an utopia than anything else. Bad people know that the best position for they to act as they wish is in positions of power, so they'll always fight hard to get there, they'll lie, kill, extort and etc to reach they goal.
So, the existence of a institucionalized power is in it self passive of manipulation. If there's ...

Votes + Comments
If anarchy (as a system of government) worked, we would have more of them and I don’t see any utopia because people are bad.
0

Hey fellas,

Do you think it's possible to live in a organized society that doesn't have a government? And why?

I can't remeber when I lost faith in our current system, it's been a while for sure. Year after year is getting more clearer to me that we need radical changes in the way we live. We need to evolve in manners to evolve in consciousness.

The government that should, theoretically, protect and provide for the population are often caught protecting and providing for large coorporations while restricting the power and liberties of the people.
I don't believe that any politician could bring real change to our lifes(for the better), most of them say they would but what they really do is get richer and richer. The really rare and spare people that try to change it are marginalized by the mainstream media, and because of the poor education(made poorly by choice of those who wants to perpetuate power) most of the people sits by and watches.

Don't get me wrong, I didn't lost faith in humanity, only in the system. I think government it's the biggest weapon of all times, and only a few have the right to use it, and most of the time they use it against the population.

Until now, with knowlodge I found on my humble research, I'm inclined to believe that only a anarchist society could break our chains and set us free for real. But anarchism is a strong word, many will associete ...

Votes + Comments
People are not inherrently good. People are bad. That is why parents have to train you how to behave and police have to be ready to arrest you.
0

But you're not checking for any text, you're just checking the checkbox value that will always be the same.

I'd go with something like this:

var checkedCount = 0,
    errMessage = undefined;

for (var i = 0; i < chks.length; i++) 
{         
    var chk = chks[i],
        // gets the checkbox value
        chkValue = chk.value, 
        // gets the text input related to that checkbox
        txt = document.getElementsByName('quantity_' + chkValue)[0],
        // gets the text input value
        txtValue = txt.value;

    if ( chk.checked === true || chk.checked === "checked" ) {
        checkedCount = checkedCount + 1;
        // Check if there's value on the text and if the text is not only blank spaces
        if (typeof txtValue !== 'string' || txtValue.toString().replace(/ /gi, "").length === 0 ) 
        { 
            errMessage = "You must fill all selected inputs";
            break;
        } 
    }
}

if ( checkedCount === 0 ) errMessage = "You must select at least one input";

if ( errMessage === undefined ) {
    return true;
}
alert(errMessage);
return false;

Obs.: Not tested.

And I think you shouldn't have re-open this thread. Since is another problem, in another language, you should have started a new thread.

0

What do you mean? Are you going to change the navigation menu after the page is loaded?

Or do you just want to know what page was loaded to do something on the contents?

Or do you want to have an tree-like structure that dinamically changes the navigation upon user interaction?

To hide a link to a page is simple, let's hide every link to test.php with jQuery:

$(function() {
    $('a[href="teste.php"]').hide();
});
1

Checkboxes values are only submited if they're checked, and text values are always submited even if blank.
So if you check only 5 boxes, the length of $_POST['checkbox1'] will be 5 but the length of $_POST['quantity'] will still be 10.

I suggest you to name each input text with the correspoding prodcode used on the checkbox, like name='quantity_".$row['prodcode']."' and then for each checked input you get it's text using $_POST["quantity_".$check[$i]].

0

The only way I'd say it's by doing it!

What do you mean only basic stuff? All methods, params and possible results are listed there.

And what else do you want? You asked only about the login. There's a page for each method available. There's a section for each SDK.

Even if you search google how to do something, many answers will lead you to some page on developers.facebook.com

Basically anything you want to do you can find starting here: https://developers.facebook.com/docs/

1

It's a silly thing... you're reaching for the form with document.getElementById('myForm'), but your form doesn't have id="myForm".

Just add the id to your form or use document.forms['myForm'] to get it by it's name.

Example:

    function onSelectedOption(sel) {
    var frm = document.forms["myForm"];
        if ((sel.selectedIndex) == 3) {
            frm.action = "a.php";
        }
        else
        {
            frm.action = "b.php"; 
        }
        // I don't think you want to submit the form eah time the combobox is changed, or do you?
        // If you do, just remove the comments.
        //frm.submit();
    }
Votes + Comments
thanks for your answer. its solved now..
0

No where in your code exists an INSERT...

But let's say you want to insert $tolak..

$no1=$_POST[asal6];
$no2=$_POST[tuntutan6];
$tolak6=$_POST[baki6];
$tolak6=($no1-$no2);

$sql = "INSERT INTO table_name(col1, col2, col3) VALUES($no1, $no2, $tolak6);";

// Assuming that you're using MySQL:
$result = mysql_query($sql) OR die("Error: " . mysql_error());
0

Oh boy, it would be much easier with you could post the SQL to create the tables already.
It's much easier to analyse an entity relationship on a diagram viewer than on a doc.

I won't take a look at this now, but I suggest you to create the tables on SQL Server and post back an image of the Relationshipg Diagram and the SQL to reproduce it. I think this would get you more answers.

0

On a similar approach of @rpoffitt, you could built it with NodeJS and just make an wrapper for each plataform. This way you can code almost all of it in JavaScript/HTML/CSS and with little effort you can have an app for each plataform.

Basically your app would be an site inside an closed browser.

Brackets and Atom editors are made this way.

It's a great way to make open source projects because JavaScript is only getting more famous and basically any Web Developer can tweak/improve the app.

0

@DavidB, unfortunally that's not true for every country. You can't buy a new pc under R$ 1.000,00 in Brazil, and if you want anything with 4gb or more of ram then it's going up to at least R$ 1.500,00. And so you can compare, that's 2 times the minimum wage here.

An 1TB HDD costs about R$ 400,00 here, so buying new pcs for testing software is not an option for the majority.

But again, the thread is not about how to test distros, I was asking option about distro and packages =)

Thanks for the reply ntl ^^

0

I started up using connection pool to see if it resolve the problem, otherwise i think i'll have to connect and close it after each query.
Another way would be to use events instead of callbacks, so it could reconnect when disconnected.

On similar note, i was thinking about creating one node domain for each server engine (mysql, pg, mssql..).
I don't know if I just split into multiple domains or if already split the extension in parts, because only with those 3 engines the extension is about 2.2mb, and i want to add at least Oracle as well. So as I user, i'd like to setup only what i need.

What do you guys think?

0

Thanks a lot for the beautiful words bob!

But let me ask, are you getting much 'Max connection attempts reachead'?

I can't figure this out, normally happens when I let it connected for too long without doing nothing or on the next command after an error occours, but not always.
And it seens it's from node, not the databases.
But no error is logged on the domain side... i need to learn more about node i guess.

1

Choose your IDE (Eclipse, Android Studio or even Visual Studio now a days), install the stuff, install the sample apps and start playing!

Almost every release of an API version has an attached API Samples with dozens of apps each one demonstrating one or more features.

If you got and Android device you can just plugin and start debugging, or if you don't, set up and virtual device to do it =)

I think hands on are the best way to go! And the link @stultuske recommend is the best one, android documentaion is neat!

Ps.: I used Eclipse for somewhile but a couple a months ago I migrated to Android Studio, and i'm liking it.

0

The connection string depends on the driver you're using. Which probably is NET Connector, so it should probably be:

Server=192.168.8.101;Port=3306;Database=moneycs;Uid=root;
Pwd=mysql;

If you are using any other driver to connect to mysql check out the connection strings here: https://www.connectionstrings.com/mysql/

To connect from the server it self use localhost. If you're using mysql workbench the port should already be filled with the defautl 3306, just change it if you're setup is diferently.

And a free tip: you shouldn't be using root to connect from the application. You should create an user account for the moneycs database with the required permissions.

0

Now a days it's rare to find those posts that fulfill the urge of learning and helping at the same time.
Because I'll tell you, the posts I most enjoy contributing to are those that I need to search at least a bit to make sure I do help instead of confusing more.

But for me to go out of my way and learn/check something new to help somebody i need to feel that they're putting at least the same amount of effort that i'm, and that's sooo rare these days.

Most of my posts recently are indeed mine, asking for linux tips or showing up some stuff i made.

But please tell me, what's that MIA you guys talk about? I've tried seaching it but only come up with some pretty singer =x

0

@Freshly, thanks, i'll definaltly try Arch someday, but for now Debian is being great for me to get the hang of the linux world =)

I did the move! It's been two weeks and I'm loving it! Nothing to complain comparing to windows and loooots to congratulate!

Easy dual monitor with multiple desktops, dual audio, full smoth dark screen(had to tweak a little but i'd never would have gotten this kind of beuty with windows - even skype respect QT Settings!!).

I'm using Debian 8 with Gnome 3 (installed xfce also, but didn't use much yet) and till now there was nothing that i wanted and didn't found!

And Oh boy, how I love the terminal! I had such a hard time on windows creating custom commands and named shortcuts(for running with <Super>+R), and now i can just nano /usr/bin/mylove and write something up!

Oh, and grep, i need to learn it so badly! It's awesome!

Just to get more confortable, binded super+E to nautilus and super+R to the run dialog and I feel at home!

I just can't say about the .NET development and gaming yet, because did neither of those yet. I left my work notebook intact to continue the clients projects until it's all smooth on here.

And now I realised that i need to learn c and c++ if i wanna help or tweak some sources.
I know veeeeery little about both, basically cause i've skipped college, so, any suggetions on how I should get started? ...

Attachments [Untitled].jpg 104.07 KB