http://www.gamersgate.com/DD-FF7/final-fantasy-vii
FF7 now for a humble price of 6.50 Euro. The re-release doesn't bring much new to the table, but hey, it's still FF7.
http://www.gamersgate.com/DD-FF7/final-fantasy-vii
FF7 now for a humble price of 6.50 Euro. The re-release doesn't bring much new to the table, but hey, it's still FF7.
@rhywden said in Distributing pupils onto lectures:
I mean, sure, there's always brute force but given the number of possible combinations...
Metaheuristics, then? You're probably not going to find a perfect solution, but the problem seems to yield itself fine to some sort of randomized optimization.
that sets its env up properly from something sane (like a config file)
Then what's the point of having env-based config when you need to parse a config file anyway? This just doesn't make sense to me. I see zero advantages of that approach, especially when you're running in containers and each app needs to worry about its own environment anyway.
What game is CTOS?
Umm, if you follow the chain of replies, you'll eventually get to Zecc's post about Watch Dogs. I know this forum is shit, but it's not that hard.
Well, that's what I found on Ask Ubuntu. Which was my first Google hit.
Of course, I could scour further and probably find the setting somewhere on the fifth page of Google results... but by John Q. Public's logic, you've already lost.
So, it seems like we got a new feature:
Well, can we view the pending posts?
What did I expect.
I see that C# 6 now finally supports exception filtering
.NET 4.5 also has a free, compile-time [CallerMemberName] attribute that's nice to leverage. Sadly, we're stuck on VS2010 and .NET 4.
"consider why you want logs"
Yeah, that's kind of a big question. And not very easy to answer. Do you want a debugging aid at the cost of performance and/or maintainability? Does "I don't have to ask the testing drones for repro (we kinda do our testing directly with the business), all I need to do is browse the trace" outweigh "half of my codebase is logger management"?
I guess our products actually have a "logging feature", I suppose it's a bit like Windows Event Log or something?
Obviously, in production, you don't go beyond what would go into the Event Log (which is "things the application does in very broad strokes" and "errors and problems", plus maybe request traces if you want to catch bad guys). Debugging is a bit different - a detailed stacktrace plus values causing the error help immensely with post-mortems when there's no good repro.
I'd agree, but then he quoted John Ringo as an argument and OH JOHN RINGO NO
I think the menu is a step back from the Windows 7 menu.
It's Microsoft doing splits.
They have this cool Modern tech that they tried to push, they have people with pitchforks demanding the Start menu back, and now they're stuck supporting both in a very awkward way.
Evil idea: Dwarf Fortress slash fic, in the style of Dwarf Fortress descriptions.
It's like the SCP Foundation, only with slightly more sex and dwarves.
@Magus said in Video game spotlight thread:
It causes frustration, but at the same time it makes a successful run more satisfying.
I don't know whether it does. Passing a difficult challenge is satisfying. Running back and forth through areas you've already mastered to have a shot at the one you didn't is just tedious.If you want to make the game more satisfying, make the individual challenges harder instead of denying the player the chance to learn to beat them.
@Magus said in Video game spotlight thread:
Either way though, playing through the game as Beck is by far the worst way to do it.
If Roll, I mean Roll, I mean Call's level is any indication of how other characters work, then no thanks. I really hated that level because it showed a lot of promise for about 15 seconds, and then you realized the stealth/timing section is actually beatable without any skill in stealth and timing.
Metal Gear Rising: Revengeance OST - The Stains Of Time Extended – 04:30
— Crimson
You're a cyborg ninja slicing through building-sized mecha to electro-metal soundtrack. If that's not cool, nothing is.
More seriously, MGR is another entry in the Metal Gear Solid franchise - this time with less stealth and much, much more action. Instead of sneaking behind enemies' backs, you tackle them head-on in a swordfight, running circles around them, deflecting bullets with your sword, and ultimately slicing them in half to rip their spine (ahem, "electrolyte fluid pack") out and crush it in your hand. It's immensely satisfying - the action is fluid, the combat mechanics are great once you master them, and it's just a lot of fun to play.
The overall gameplay is somewhat similar to other beat-em-ups like DmC - you have your light attack and heavy attack, you can chain them in combos, that sort of thing. Aside from attacking, the game revolves heavily around parrying your foes' attacks - when you see the enemy blink red, you can block the attack and if your timing is perfect, stagger them to go medieval on their asses. Another addition is what the game calls Blade Mode - pull the left trigger (yeah, you kinda need a controller for this game) and the time slows down, letting you manually line up your sword to slice through enemies' weak points. Finish an enemy off with a clean cut, and you can rip the aforementioned spine out to regenerate your health.
The plot... well, it's Metal Gear. The general idea is that in the not too distant future, wars have all but stopped, but a bunch of villains is out to instigate some conflicts for fun and profit. There's not an awful lot that can be said without spoilers, but overall the story strikes a nice balance between serious and cheesy - the villains are gloriously over the top and Raiden, the protagonist, has more angst pent-up than all members of My Chemical Romance combined, but it deals with some pretty heavy themes like the necessity of war for the economy, or whether it's justifiable to fight for the greater good.
Of course, no game is without its flaws, and MGR's is mostly that it doesn't do a very good job of communicating what you can do and how to do it. Sure, you go through a short training sequence that explains the concepts of parrying and Blade Mode, but there's plenty of things that the game does not say where it should.
For instance, the parrying is explained as "moving your stick towards the enemy and pressing X" - so I did, for two long missions, getting my face pummeled every time. What isn't explained is that you have to center the stick, then flick it from the centered position - if you try running towards the enemy and trying to parry, it'll just register a light attack and you'll get immediately countered. In a game where you're constantly running, that really bears explaining. What's worse is that you can just go through a huge part of the game without realizing it - one boss fight is made pretty difficult, but still manageable - until a boss in the middle of the game mops the floor with your face if you haven't mastered parrying to that point.
There's more of it - sometimes enemies will flash yellow or orange, and you can parry orange attacks, while you can't parry yellow ones. There's a "dodge" move that you can buy for upgrade points, but unlike a dodge in any other game where you jump out of the way, here it's a slight sidestep and attack. And I still don't know why I can sometimes get out of being pinned (which prompts you to waggle your stick) with no issues at all, and sometimes no amount of waving my thumb saves me from being pounded.
Other than that - and occasional camera issues, most annoying in the one or two odd stealth stages - it's a really good game, with a great soundtrack, satisfying gameplay and some really engaging boss fights. It often pops up on Steam for $5, and at that price it's a steal.
@RaceProUK said in Is my bits enough to do gamez?:
so I figure they're a bit like RAM
More like processor cores. Bigger is better since pretty much all GPU operations are massively parallel already, but there are more bottlenecks to look at (memory access is a huge one, multiple cores sharing an ALU is another, obviously clock speed is important...)
@Adynathos said in nominate games for THE STEAM AWARDS:
Some games melt your face.
If that is the case, you are doing it wrong.
Best Use Of A Farm Animal
Bugger me, I played that game. Must've been on one of those shareware CDs with faux-newspapers that I used to buy by the dozens.
@Rhywden said in GrandMA2 and fixtures being bonkers:
having a bit of experience with GrandMA
Anyway, I know shit about the setup, but if you're getting responses from the lights despite them not working, I'd probably assume it's not an issue with whatever data go over the wire, but with the lights themselves. Are the four lights in question connected to something common that nothing else is?
Here, I think it might be. Not with regard to any specific community, but because the first impression you make is that you were brought up by up to a pair of retards.
Wacky names seem to be a black thing in the US, but here it's mostly associated with all-grown-up valley girls who got insane over their little special snowflake. You know, the kind of parent that blames everyone for their kid's problem except for the kid.
So yeah, if I were to hire such kid straight out of school, I'd be wary, because there are good chances they'll turn out to be a spoiled brat.
@Cursorkeys said in So, I need a new e-cig mod...:
I always manage to get sticky fingers when refilling
Melo 2 is good in that nothing has to be unscrewed to be refilled - you just twist a ring at the top, pour liquid into a hole and twist it back to closed position.
By the way:
@Cursorkeys said in So, I need a new e-cig mod...:
If you like clearomisers
Isn't there pretty much no choice in that matter anyway? Those fiber-filled cartridges are thankfully long gone for the most part, and pretty much everything I see these days are either basic clearomizers, or "atomizers" (which AFAIK only differ by having an option to get an RBA base and roll your own coils, although I personally just buy pre-made ones).
@Yamikuronue said in Mocking a repository:
The hardest part of unit testing is sometimes figuring out you're testing.
Yeah... I think I wasn't clear. I'm not testing the repository. That's got its own test suite, and in fact this test:
describe('Query', () => {
it('should call getAll()', () => {
sinon.stub(repository, 'getAll').returns(predefinedList);
repository.Query(x => x.Foo.Bar == Baz.Quux);
repository.getAll.should.have.been.called;
});
is what I think we shouldn't be doing - enforcing the implementation via unit tests. The repository should ideally be free to do whatever it wants internally as long as Query()
produces correct results.
The problem is more like this. I have a service:
public class Service
{
private IRepository<Model> repository; //DI'd via constructor
public IEnumerable<Model> GetData()
{
return repository.Query(x => x.Foo.Bar == Baz.Quux); //and some other things
}
}
I want to unit test this service. Approach one:
[Test]
public void Test1()
{
var result = new List<Model>(...).AsQueryable();
var mockRepository = new Mock<IRepository<Model>>();
mockRepository.Setup(x => x.Query(It.IsAny<Expression<Func<Model, bool>>>)).Returns(result); //just return result whenever Query is called
var data = (new Service(mockRepository)).GetData(); //and verify
}
2:
[Test]
public void Test2()
{
var result = new List<Model>(...).AsQueryable();
var mockRepository = new Mock<IRepository<Model>>();
mockRepository.Setup(x => x.Query(y => y.Foo.Bar == Baz.Quux)).Returns(result); //return result when given the condition from Service's implementation (does that even work?)
var data = (new Service(mockRepository)).GetData(); //and verify
}
3:
[Test]
public void Test1()
{
var result = new List<Model>(...).AsQueryable();
var mockRepository = new Mock<IRepository<Model>>();
mockRepository.Setup(x => x.Query(It.IsAny<Expression<Func<Model, bool>>>)).Returns(x => result.Where(x)); //return result and call Where() on it manually
var data = (new Service(mockRepository)).GetData(); //and verify
}
4
[Test]
public void Test1()
{
var result = new List<Model>(...).AsQueryable();
var mockRepository = new Mock<Repository<Model>>() { CallBase = true }; //call Repository's real functions - now we need to mock the implementation instead of the interface
mockRepository.Setup(x => x.GetAll()).Returns(result); //GetAll returns the whole list every time, and it's up to Repository's implementation details to make sure that list actually gets used
var data = (new Service(mockRepository)).GetData(); //and verify
}
And the hyphen ain't silent... wait.
@boomzilla said in Dr. Blakeyrat's Mean Bean History Table Machine:
@blakeyrat said in Dr. Blakeyrat's Mean Bean History Table Machine:
Fun quirk of creating tables using select into: if the original table has an autonumber, the new table will as well. But for a history table, obviously I don't want an autonumber because it'll prevent me from adding history, how to fix?
Can you do some kind of casting trick to misdirect the DB?
select to_number(to_char( id ) )
(or whatever)? Arithmetic?id * 1.0
?
But then you'd have to know which columns are identity (or rather, numeric) and which aren't.
@Cursorkeys said in So, I need a new e-cig mod...:
Unlike the leaky Aspire disaster I had briefly.
YMMV I guess. I've never had a leaky or otherwise malfunctioning Aspire - they just have a propensity to break when dropped, so I've gone through like five or six of them already. Kanger's Subtank, on the other hand, was leaking a quarter of the tank overnight.
Their Subox Mini mod is quite okay, though. I keep an ELeaf Melo 2 tank on it, and it works just fine, the heating elements are also quite standard from what I know (the same ones work with both).
Mind that Subox can't go below 0,5 ohm, though, so no insane 0,1ohm/50W clouds of smoke for you.
she was suspended for being accused
Hey @PJH, I've heard @boomzilla is making bombs out there! Now that I've accused him, I expect him to be suspended, like, forever. Kthxbai.
This isn't a court of law, genius.
So we can hurl accusations at anyone with no backing at all, because this isn't a court of law, duh!?
Look, you've got nothing against this kid that you've shown so far, and the best argument you have is that "well, his clock was stupid!".
Other than that, according to you he knew the whole thing would make the worldwide news, attracting attention of all the scientists, politicians, and worst of all the Internets who will want to find anything to undermine his case, and didn't even bother to buy a DIY clock kit so as to make his story believable?
The kid's just kinda dumb, that's all. And hell, even if he's a troll, he still has plenty of reasonable doubt, and everybody involved in the case got trolled hook, line and sinker.
Repeated steps 0 through 0 again, still have this bogus IP config.
what you did there.
Also more on topic, I found Windows' automatic troubleshooter to resolve most of the "Windows thinks it's connected, but it's really not" issues. Granted, that might be because one of the troubleshooting steps is resetting the adapter, but...
Ah, that's the problem. Thanks, shamelessly stolen.
So, my roommate has "computer problems" - and since I'm the "computer guy", I've been delegated to fix those. Oh well, might win me a week off cleaning the kitchen, so why not.
The setup is, well, museal. A hunk of loud metal running one of those "Windows XP Pirate Edition" systems, with some old Intel, 1GB of RAM, and most importantly an nForce network controller.
The problem... rather bizarre. Whenever you try uploading something, the connection just keels over and dies until the next restart. The outgoing packets are being sent, and you can browse the Web, download files, etc... but add even a small attachment to an email? Bam, no connection. Try to upload a photo to imgur or something? Dead. Run SpeedTest? The download test runs at full speed, but the upload doesn't even start.
I tried getting the connection through my router, but when the connection goes down it also loses connectivity to the router and any attached devices, and my PC works fine, so the problem is likely somewhere around the network card. I tried updating the drivers - didn't help at all. I can disable the Local Area Connection via Control Panel, but I can't enable it back once it's down - it claims to fail to obtain an IP address, but since that's the first point on the list it probably just refuses to work. The cabling doesn't look too much out of place, and the diode at the back shines as it should.
Any insights? All I can find is contradictory cargo-culting over the driver settings with little to no explanation as to what, or why, should actually work.
Oh I hope you're fucking kidding me.
@pjh said in Any good tabbed browsers on Android?:
[Chrome] Uh - you know you can swipe the address bar to move to previous/next 'tab'?
That's actually kind of nifty, though I wouldn't think of it in a million years.
I still like tabs more, though.
@cursorkeys said in Any good tabbed browsers on Android?:
Edit: maybe it's device resolution dependent or something along those lines?
I'd guess screen size. Opera calls the Chrome brainworm mode "phone mode" and the reasonable mode "tablet mode", except it lets you switch between them. Too bad it stopped working right with some update.
@jaloopa said in Any good tabbed browsers on Android?:
@maciejasjmj said in Any good tabbed browsers on Android?:
It's one tap more to switch tabs
As long as you don't have to swipe across the tab bar to find the tab you want
It's usually the one just before the current one. 90% of the time I open a new tab is when I'm reading something, see a link or a phrase I want to Google, quickly skim it in a new tab, then get back to what I was reading.
Sometimes even just looking at the page title is enough. Something that tabs show better as well.
@pie_flavor said in Any good tabbed browsers on Android?:
@maciejasjmj What's wrong with Chrome's system? Or are you referring to it having each tab treated as a separate app window? Because that's been gone for a while.
It's one tap more to switch tabs, and two more taps to close the current tab and get back to the previous one. Also it breaks my workflow and that will not do.
@cursorkeys said in Any good tabbed browsers on Android?:
@maciejasjmj said in Any good tabbed browsers on Android?:
And by "tabbed" I mean with a proper tab bar, not this separate tab screen nonsense that Chrome moved to and all the other browsers seemingly followed.
I used Dolphin for a long time, but they removed the tabs at some point. Then I migrated to Opera Mini, but not only does it now shove full screen ads in my face, it also has problems bringing up the address bar - it seems like it's almost impossible to make it appear unless you scroll all the way up to the top of the page (losing your place in it), and there seems to be no way to lock it.
So, any alternatives?
I use Dolphin browser and the tab bar is very definitely still there at the top.
E_NOREPRO
And by "tabbed" I mean with a proper tab bar, not this separate tab screen nonsense that Chrome moved to and all the other browsers seemingly followed.
I used Dolphin for a long time, but they removed the tabs at some point. Then I migrated to Opera Mini, but not only does it now shove full screen ads in my face, it also has problems bringing up the address bar - it seems like it's almost impossible to make it appear unless you scroll all the way up to the top of the page (losing your place in it), and there seems to be no way to lock it.
So, any alternatives?
Red Bull
Okay...
Jägermeister.
Eww. No, no, no, this thing is nasty.
I tried the idiocy that was Red Bull + vodka once (yes, I know, idiot).
One of my New Year's Eves involved a drink called a Getafix' Cooking Pot - after the Asterix (no, not the PBX software) character. Recipe involves 1,5 litre of beer, a 0,7 of vodka, a bottle of champagne, a litre bottle of a cheap energy drink, and raspberry syrup (replaceable with raspberry jabol) mixed together into a pot and poured with a ladle.
It's an evil, evil drink. But awesome.
hedgehogs are believed to be a hard-working, no-nonsense animal[citation needed]
Citation needed indeed.
@sloosecannon said in How long does a smartphone last?:
You can probably get a Nexus to last 4-5 years.
As long as it's not 6p, which was a wonderful phone that barely worked. Performant, sleek and with a nice design, but overheating to hell, with a battery that wouldn't last a day, and eventually I had to put it on life support because the large CPU cluster got fucked (yeah, that famed bootloop issue that Google got sued over - turns out it's fixable, but requires disabling the primary cores). Now it has just enough processing power to quietly beg for a merciful death.
@RaceProUK said in A few questions about Azure VMs:
There's Windows Server, but the newer versions are Datacenter, and the non-Datacenter versions are old.
What's wrong with Datacenter? It seems like the same thing, just licensed differently and with a few virtualization bells and whistles.
Did you write that? What a mess.
Well that's what happens when the business requirements halfway into the project ruin your whole architecture.
I know it's a mess, and I'm probably going to refactor this thing a little, but the choice is either to copy and paste the same code 15 times for each of the widget types, because they use 15 different entities in 15 different tables and there's no way to tell C# they have anything in common - or to try to DRY where it's possible, which necessarily involves relaxing the type system a bit with reflection.
So if you have any ideas, I'll be happy to hear them. I'm not particularly proud of that code, other than for the fact that it does the job. .
@Maciejasjmj said:So if you have any ideas, I'll be happy to hear them/** * Some comments would be nice */ ```</blockquote>
throw new NotImplementedException("Well duh, I'll get to them once I'm done");
It makes set-based operations in otherwise-procedural code actually look and behave like set-based operations.
And that's the key word here. Functional elements work as elements, but making your whole application fully functional top to bottom will easily become a nightmare.
OK, how would you implement using in C# with extension methods, assuming it didn't already exist?
One WTFy solution, stat!
using System;
using System.Linq;
using System.Linq.Expressions;
using System.Collections.Generic;
public class UsingProvider
{
private readonly List<IDisposable> _resources = new List<IDisposable>();
public UsingProvider Using<T>(Func<T> construction, out T result) where T : IDisposable
{
var resource = construction();
_resources.Add(resource);
result = resource;
return this;
}
public void Run(Action action)
{
try
{
action();
}
finally
{
foreach (var res in _resources) res.Dispose();
_resources.Clear();
}
}
}
public class TestType : IDisposable
{
private int x;
public TestType(int x) { this.x = x; }
public void DoStuff(int i, bool throwEx = false) { if (!throwEx) Console.WriteLine("DoStuff #" + x + " : " + i); else throw new Exception("Oops!"); }
public void Dispose() { Console.WriteLine("Disposing #" + x); }
}
public class Program
{
public static void Main()
{
TestType t1, t2;
(new UsingProvider())
.Using(() => new TestType(42), out t1)
.Using(() => new TestType(666), out t2)
.Run(() =>
{
t2.DoStuff(-5);
t1.DoStuff(7, true);
});
}
}
It was almost exactly 9 months after her Dad's birthday.
Hm, I'm a December kid, my mother's birthday is in April, and I think I was supposed to be born the next year...
*does the math*
Filed under: oh my God, they must have had sex!
So, there are my codez:
<?php
include_once '../../../../include/adodb/adodb.inc.php';
class loggingConnection {
private $innerConnection;
function loggingConnection()
{
$this->innerConnection = ADONewConnection('mysqlt');
$this->innerConnection->PConnect('localhost', 'redacted', 'redacted', 'redacted');
}
function __call($method, $args)
{
echo "Called DB method : ".$method."\r\n";
echo "Arguments: \r\n";
@print_r($args);
echo "\r\n";
$result = call_user_func_array(array($this->innerConnection, $method), $args);
echo "SQL: \r\n";
@print_r($result->sql);
echo "\r\n";
echo "Results: \r\n";
@print_r($result->fields);
echo "\r\n";
return $result;
}
}
global $conn;
$conn = new loggingConnection();
echo "BeginTrans() returns" . $conn->BeginTrans() . "\r\n";
$conn->Execute("INSERT INTO some_table (some_column, other_column) VALUES (?, ?)", array('1', '2'));
$conn->Execute("SELECT * FROM some_table");
echo "RollbackTrans() returns" . $conn->RollbackTrans() . "\r\n";
$conn->Execute("SELECT * FROM some_table");
?>
Basically, it's a script to test what's ultimately another class, dumping all ADODB activity. Don't know how much is relevant - you can probably replace $conn
with a regular ADODB object.
The issue is, after running $conn->RollbackTrans()
the transaction does not rollback as intended, despite RollbackTrans()
returning true. I've changed the table from InnoDB to MyISAM, I've tried mysqli
, mysqlt
and mysql
drivers, I've tried Begin/Fail/CompleteTrans()
path - to no avail, the record I've inserted is still there after I run the last SELECT
, and it's there when browsing the table with PHPMyAdmin. I'll delete it there, run the code again, and it still doesn't work as intended.
I'm out of ideas at this point - got some?
Filed under: and no, I'm not doing this PHP shit for fun
Discourse: not letting you call for help since 2012.
Imagine how many characters named "FUCKER" that would spur.
@gleemonk said in Tablet for making phone calls:
I know nothing about tablets except that they use the same technology as smartphones. Using them as cell phones seems to be impossible however. Maybe it's one of those things that is so standard that it's not even mentioned in the sales brochure?
Oddly enough, it doesn't seem to really work on all tablets. There are some that support making phone calls out of the box, like ASUS Fonepad 7 (as an example - don't really recommend it, it's a 1280x800 with really crappy viewing angles and far from stellar performance), but for most tablets it looks like VoIP is the only option.
Personally I'd just buy one of those 6" phones - they seem more than good enough for most tasks you'd use a tablet for, except maybe watching movies (and even that isn't impossible, just somewhat less pleasant than on a 10" tablet).