Main Area and Open Discussion > Living Room
Programming/Coder humor
rgdot:
^
expecting to see this one closed with WONTFIX
--- End quote ---
;D
TaoPhoenix:
Just the whole series is epic!
"@Boehner has the wrong user permissions. Can you revise and rerun the code?"
wraith808:
"Who thought it was a good idea to assign DebtCeiling as a global variable? Can we deprecate?" ;D
mouser:
Great stuff. :up:
Renegade:
There are some real gems in there. ;D Here are some of the more neutralish ones:
Spoiler
Guys, we're 44 levels deep into inheritance. How did you not think this was going to be a problem?
--- End quote ---
I'm starting to see this error.
malloc(): failed to allocate more money
--- End quote ---
Lets blame QA. Oh wait, that's EVERYONE in the country!
--- End quote ---
Whoever wrote this Easter Egg is laughing their ass off right now.
--- End quote ---
* nationalDebt keeps blowing the stack, we should probably just lower the number
* I'm not sure, but I think the blame function just creates pointers that end up in a loop
* Only the GUI is crashing, everything is still running in the background. It just makes the user think the program has "shut down."
* The uninformedCitizens variable should be removed and combined with informedCitizens
* I think this if statement needs to be checking for a value around 0.60 instead of 0.90 if (pissedOffPeople == 0.90){ fixYourGovernment() ;}I went back into some history and the createCandidatesfunction dynamically generated candidates until 1996. Someone hardcoded only two candidates named republicans and democrats after that point.
--- End quote ---
I think I found a solution:
rm -rf ~/United_States/Federal_Government/Legislative_Branch/Congress
--- End quote ---
Refactoring the Military class library should free up ample resources to let app run correctly.
--- End quote ---
Scrapping the following methods fixes the bug:
function NSABudgetForSnooping() {
return infinite;
}
function operationAfghan() {
}
function operationIraq() {
}
as suggested by @Snowden
--- End quote ---
Particularly fun!
--- Code: Text ---/etc/init.d/nsa/surveillance stop; rm /etc/init.d/nsa/surveillance; rm -rf /home/nsa/prismrm -f /home/whitehouse/aca/individual_mandateecho 'No citizen may be forced to purchase any product or service against his or her will.' >> /etc/constitution/proposed_amendments# have to clear the slate before starting constitutional_convention...userdel -r houseuserdel -r senate/etc/init.d/lobbying stop; rm /etc/init.d/lobbying; userdel -r lobbyistsadduser houseadduser senate/etc/init.d/house_election start/etc/init.d/senate_election startecho "Peer reviewed academic/scientific research" > /etc/policy/decision_basischown american_citizens:american_citizens force_recall.rbchmod 700 force_recall.rbwall citizens may now use force_recall.rb# now that the slate is clean we can run:/etc/init.d/constitutional_convention start
Contents of force_recall.rb:
--- Code: Ruby ---#!/usr/bin/env ruby house = Congress.new(:house, members: 439) # 6 non-votingsenate = Congress.new(:senate, members: 100) [house, senate].each do |assholes| (assholes.members.select( { |prick| prick.is_a_tool? || prick.paid_off? } )).each do |corrupt_politician| corrupt_politician.actions.each { |act_of_aggression| act_of_aggression.freeze; act_of_aggression.legal_basis.mark_for_review } corrupt_politician.campaign_financers.where("contributed > 1000.00").map! { |f| f.flag_for_fbi_investigation } corrupt_politician.imprison endend
And finally:
--- Code: Text ---/etc/init.d/federal_government restart
--- End quote ---
Having consulted with a few people I am recommending someone try this--
--- Code: Text ---cd /rm -rf /congressgit init congressgit pull constitution master/congress/setup --newInstall --noParties --strictConstitutionView
--- End quote ---
CHUCK NORRIS! ;D
Suggested fix:
congress.each().apply(chuckNorris)
federalreserve.closeQuietly()
--- End quote ---
Adding this output filter to /bin/congressd might smooth resource requirements:
--- Code: Text ---for bill in *do split -p "--line item--" $bill $bill rm $billdone
--- End quote ---
@Xinbi I think the problem is actually with the Politician class
--- Code: C# ---namespace US.Government{ public class Politician : Chamber { public override VoteResult VoteOn(Bill bill) { if( ! bill.BenefitsCountry(USA)) { if(bill.BenefitsPoliticanReElection() && bill.BenefitsPolitician()) { return VoteResult.Against; } else { Politician.Spin(); return VoteResult.For; } } else { if(bill.BenefitsPoliticanReElection() && bill.BenefitsPolitician()) { return VoteResult.For; } else { Politician.Spin(); return VoteResult.Against; } } } }}According to the documentation for the Democracy library, the Politician class always checks this method first.
You could try using a different library, but it seems most other libraries have other issues the Democracy library doesn't
You might try starting an open source project to create a replacement library, but if you try to run it using a USA based operating system the anti-virus software (I believe they use NSA?) automatically sees it as malicious and kills any associated processes.
--- End quote ---
$killall government
$
everything works just fine
--- End quote ---
This one is really good! :D
The real problem is that shortly after the system was installed on the main server new developers started contributing features that were never requested. They failed to realize that the system architects designed it as a hierarchical peer-to-peer network. Each node is fully capable of running independent of the network or in smaller subnets (and, in fact, run more efficiently when it does) but the design included supervisor nodes at various levels for performance and security reasons. The supervisor nodes were designed with 3 responsibilities:
Monitor the status of the network
Provide services for resolving conflicts between leaf nodes
Protect the network from outside attack.
Now, because of feature creep, the central node is bloated and buggy. Luckily the system architects foresaw this problem and provided a back door into the central node's core framework to add and remove features without the current maintainters' or the system admin's consent.
To prevent abuse they required two thirds of the second tier supervisor nodes to send a control packet to the central node. Then the maintainers of those second tier nodes can submit pull requests. Those pull requests have to be reviewed and approved by the maintainers of three fourths of all the second tier nodes before they can be merged into the core framework of the central node.
This approach has been attempted multiple times but communication problems prevented enough nodes from connecting before a timeout occurred. One attempt that came the closest was only 5 nodes short of the threshold. Had it succeeded the plan was to implement QoS and load balancing to prevent processes on the central node from consuming more resources than were available (something all second tier nodes already have in place). Seeing the attempts in the system log the maintainers at the time added a similar feature as an auxiliary process but it didn't take long before the the @SCOTUS board rejected it claiming it was incompatible with the core framework.
I think this is probably the only way to fix the central node. The majority of the current maintainers care only about their own pet projects and each new sysadmin has taken to writing scripts that circumvent established systems when it suits his needs.
P.S. Can someone tell me why the users requested an inexperienced junior developer to be the sysadmin? I mean the previous one wasn't very competent but this one doesn't work well with others, even if they're members of his own user group.
--- End quote ---
Another really good one:
I say Fork it! And just refactor the whole thing.
Clearly we have an unstoppable race condition that keeps hitting some upper limit every time US.resetDebtCeiling() is called.
Best as I can tell, the original design of the whole State Machine was not designed to scale to this point.
There also seems to be some corruption in the persistence layer. Looks like the issue has always just been patched by adding more cache.
Anyway, I think we should try this fix:
--- Code: Text ---DROP FEDERATED TABLE us_government;DROP TABLE congress;DROP TABLE senate;DROP TABLE republican_party;DROP TABLE democratic_party;TRUNCATE TABLE all_politicians;DELETE FROM TABLE laws WHERE serves_the_people = false; CREATE TABLE new_functional_government;INSERT HIGH_PRIORITY INTO TABLE new_functional_government SET leadership='to really give a shit about the citizens of country';
If you check earlier posts, you will see one of the original developers (git handle: ThomasJefferson) said that it is good to shut the whole system down and completely refactor all code and expunge corrupt data every 20 years. Clearly that has not happened.
--- End quote ---
I suggest trying the following commands.
--- Code: Text ---sudo rm -Rf /TheUSCongresssudo rm -Rf /ThePresidentsudo rm -Rf /TheVicePresidentsudo elect new governmentsudo reboot
If that does not work, perhaps the following command will work.
--- Code: Text ---sudo fdisk /dev/TheUSGovernment
If that does not work, perhaps it is time to try the Thomas Jefferson "tree of liberty" solution.
--- End quote ---
A response to the above proposed solution:
Ok, so I got through reboot, it asked me for my keys.
I don't have any now. So I pressed the enter key, and it is persistently asking for my keys.
I can't work my way to fdisking this POS, I won't be able to refresh anything either I assume... Unless I'm sadly mistaken? Can I skip fdisking and start refreshing?
--- End quote ---
[/size]
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version