Mine only has 2GB, strictly spoken it's not a problem, but because PS4/XB1 developers work so bad with RAM (as there it's 8 GB shared over CPU and GPU), you're better off with 4 GB nowadays even for Full HD
Before that generation of consoles > 2 GB was only interesting for 4K
I'm currently running a 840M which suits my needs. It plays PlanetSide2 on not too awful settings (that game is basically a CPU hog anyway) and most other games I play are less heavy.
I mean, Creeper World 3 runs on pretty much anything.
Civ 5 isn't that heavy either.
I'll probably rig up some time in the future, but at the moment there's no need.
I had a problem that I posted on StackOverflow about that I could not connect to windows phone 7 from a 64-bit application. I got one response that said I should try to create a WCF Service over named pipe transport. Now, I have something that is working but since I am new to C#, WCF and COM, I w...
I am learning yet another language.... Go. My Java experience is counting for less, and less. I show people how to do things in Java, but they say: "Go is better", but their arguments are weak.
Now I have to learn Go just to have a stronger counter-argument.
> This would be a dirty little undocumented trick that made me need to take a shower, were it not for the fact that C++/CLI depends on it working... (okay, I still feel a little dirty.)
@skiwi Go has some strong technical merits.... it is a language with a somewhat clear "mandate". I just don't know if those merits are enough to outweigh the maturity, tool-chains, library support, and developer availability that is there with Java.... that's beside the fact that Java can do almost everything Go can do anyway.
The best feature of Go, as far as I am concerned, is that it compiles down to a statically linked native binary.
Here's a console application that's designed to hit up pages of XML and transcribe the data into a database. This is a subset of the actual application - in the real one there are a large number of equivalents to "PopulatePeople", each of which goes to a different URL and throws the data into a different table. What I'm primarily interested in here is whether the…
So my this class is one in which is used to find rectangles in images that have already been pre-processed. For example the images are to be deskewed, greyscale etc. Following feedback off of various people I have been told to try and conform it to c# coding standards. I have tried to do my best ...
I decided to step out of my comfort zone (Java) and try out Python. I wrote a very simple reverser.py and want it to be reviewed.
"""
This python script basically takes a string and reverses it.
This python script can be used as a command line script as well as a separate
module.
"""
import sys...
When you post a question, be patient. We will notice it (especially Python, we have a couple of people in that department), but don't go all crazy if it takes a day.
This is going to be a short answer, but did you know Python has such a feature in-build?
text = "I'm a stringy!"
print(text[::-1])
Above would replace your reverse method and is the most Pythonic way to solve this.
I decided to step out of my comfort zone (Java) and try out Python. I wrote a very simple reverser.py and want it to be reviewed.
"""
This python script basically takes a string and reverses it.
This python script can be used as a command line script as well as a separate
module.
"""
import sys...
I was working on a timer code in pure javascript and would like to know any pointers to improve:
Features
Start/ Stop/ Reset on click of a button.
Set limit to clock.
Update class name for warning and error based on threshold timer.
JSFiddle
Code
function timer() {
var time = {
...
This is my current code:
for(int i = 1; i < 13; i + 4)
{
do something
}
for (int i = 2; i <13; i + 4)
{
do something
}
And so on for each value of i.
I would like my for loop to do the following without having to write out each individual value:
for(int i = 1; i < 13; i++)
{
if(i i...
I was writing up a question and I found there is no encoding. Upon further investigation, there are 486 questions at the time of this writing with the term "encoding" within them, and I'm sure more than one of them would be applicable to the tag.
Should we create the tag, and if so, who should g...
I suspect that the 486 questions is an indication that it is a bit too broad. There's questions in there with Huffman encoding, URL encoding, Base 64 encoding... how much does those things have in common really? — Simon Forsberg ♦yesterday
For my fellow Computer Science and Media students at my university, I build a link collection which soon a lot of people used. It basically served as a central place for all the links we needed to get access to lecture and exercise scripts, etc.
To step it up a bit, I decided to throw some JavaS...
I want to ask if you can review the code for a simple contact form and the PHP code which sends me an email once a visitor fills the form and is validated through Recaptcha
On my index.php file here are the form and php code
HTML:
<form id="contactform" action="index.php#contact" method="post"...
I think you can do something like that:
<cfquery>
select
*
from
work_timeline
where
1 = 1
<cfif structKeyExists(form,"category_time") AND form.category_time neq "XX">
AND
category_time = <cfqueryparam value="#form.category_time#" />
</cfif>
<cfif structKeyExists(form,"dat...
There is something very wrong with our ticketing system......
We have a web viewer that pulls all the information on a page and allows to interact with it... but it's not displaying any messages (i.e. individual people's comments/responses), so I thought it was a web issue... so I pulled them from the SQL database they are stored in... and there is literally no messages data
Oh, found a "fix". If you add a test message, let it sit for a couple of minutes, then refresh it, eventually the messages show up, both on the web app and in the SQL database. WTF
Are there any memory leaks in this linklist implementation.Also is the implementation correct?Can the time complexity be optimized?
#include <iostream>
#include <cstdlib>
#include <cstdio>
using namespace std;
struct node
{
int n;
node* point;
};
node* first=NULL;
void search(int n);
void ins...
@chillworld and openssl had a heartbleed vulnerability, doesn't necessarily mean it's a good idea to have those features
in order to securely store html you essentially have to ensure that script tags or link tags don't exist in that html segment which is not actually that easy at all
@DanPantry I was thinking on something else. The ckeditor (also included in ZK) has an output as html. So if I create a datahandler for that component, I should be able to insert markdown and get markdown back (but of course I must transform markdown to html and back in the datahandler)
I had to solve this challenge, and I solved using the code bellow. How would you improve this?
The knight is the piece in the game of chess that, in one turn, can
move two squares horizontally and one square or two squares vertically
and one square horizontally.
An infinite chessboar...
I think we are moving away from storing XML in databases little by little. It's primarily used by the BizTalk interface server which we are actively deprecating
I'm currently processing xml messages with C#. It is working But I'm not confident that my code is fast enough. There are 3 possible messages I can receive. When I receive one the message an event is triggered and I can access the object outside of this thread and do the necessary processing. The...
I wrote a python script that converts English to Entean language from an anime called "The Devil is a part timer". I am sloppy at coding and know that the script can be made better.
In the anime, the language in Ente Isla is called Entean, which is basically most of the consonants in the English...
I'm trying to create a simple server/client program that uses public key encryption
Here's what I have when signing and verifying signatures at the server end:
/*************** ...SERVER SIDE ... ***************/
public SignedObject signSig() throws Exception{
// Get a nonce (X) for ch...
I've reached a point in an application where I need to initialize some coordinates to an array and I wound up using nested for-in loops to accomplish the task.
Is there is a better way to accomplish this?
class Coord {
let xVal : Int
let yVal : Int
init(x: Int, y: Int) {
...
I made two player objects (p1 and p2):
public class tttmodimproved{
static int turn=0;
public static void main(String[] args){
System.out.println("Let's play TicTacToe");
char isWin=' ';
Board b= new Board();
Player p1=new Player('X');
Player p2= n...
Sorry SO is not the right place for code review, we are here to help you get stuff working... but since its already working, for us you are ok : )... Your code is not that terrible... the first issue I would look into is try,catch,finally... so that you are sure that you close everyting before you return home... — Petter Friberg19 secs ago
This question looks like it might be a pretty good fit for Code Review.SE, provided that (a) you want every aspect of your code reviewed, not just some, (b) your code is already working, and (c) you're asking for a review of concrete, real code, not abstract design (whether or not it's expressed as code). If you agree with all of those, please read about what's on topic, and, if your question fits that, delete it here and repost it on CR. — Phrancis27 secs ago
I'm trying to test an elevator simulator program that runs in the console and requires user interaction. At the moment, my tests look like this:
gem 'minitest', '>= 5.0.0'
require 'minitest/spec'
require 'minitest/autorun'
require_relative 'elevator'
class SingleFloorElevator < Elevator
@@mov...
I am looking thru some test scripts and I am not convinced that the following test is doing a file size comparison after the test.jpg is ran thru a optimization script. I am a newbie to test scripting but when run the test snippit below thru Travis, the test passes. But when I check the size of ...