Hello, I'm using SFML Input system for my own application. Here is my code:
size_t windowHnd = %MY_WINDOW_HANDLER%;
sf::Window MyWindow(windowHnd);
const sf::Input& MyInput = MyWindow.GetInput();
cannot convert ‘sf::Window’ to ‘size_t’ in assignment
In official documentation I found sf::Window constructor signature:
WindowHandle Handle…
Hi guys!
I have some abstract class called IClass (has pure virtual function). There are some classes which inherit IClass: CFirst, CSecond.
I want to add objects of classes which inherit into boost::ptr_vector:
class IClass { virtual void someFunc() = 0; };
class CFirst : public IClass { };
class CSecond : public IClass { };
…
Hello, I've defined some signal:
typedef boost::signals2::signal<void (int temp)> SomeSig;
typedef SomeSig::slot_type SomeSigType;
I have some class:
class SomeClass
{
SomeClass()
{
SomeSig.connect(&SomeClass::doMethod);
}
void doMethod(const SomeSig &slot);
};
And got a lot of errors:
…
Hi guys, I have to load some url with cyrillic symbols. My script should work with this:
http://wincode.org/%D0%BF%D1%80%D0%BE%D0%B3%D1%80%D0%B0%D0%BC%D0%BC%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5/
If I'll use this in browser it would replaced into normal symbols, but urllib code fails with 404 error. How to…
Hi guys, my NetBeans has ugly fonts in interface. I'm going to make antialiasing for it. In internet I saw that there is should be
-J-Dswing.aatext=true -J-Dawt.useSystemAAFontSettings=on
in netbeans_default_options. This file should be located in /etc/netbeans.conf. But there isn't this file. I have NetBeans…
Hello, I'm loading web-page using urllib. Ther eis russian symbols, but page encoding is 'utf-8'
1
pageData = unicode(requestHandler.read()).decode('utf-8')
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 262: ordinal not in range(128)
2
pageData = requestHandler.read()
soupHandler =…
Hello, I have html-file. I have to replace all text between this: [%anytext%]. As I understand, it's very easy to do with BeautifulSoup for parsing hmtl. But what is regular expression and how to remove&write back text data?
Hello guys, I'm working with protobuf and Linux. Where is it's compiler protoc. I've downloaded package from main site, compiled and installed it successfully but I can't find protoc to build my own format file. Where is it?
Hi guys. I'm choosing what to use: Eclipse or NetBeans. NetBeans has better vim plugin - jVi, but, as I see, it doesn't work with my own ~/.vimrc file. But in eclipse and VimPlugin for it everything is perfect. So are there any ways to use my vimrc settings for NetBeans with jVi?
Hello, I'm using class.upload.php to upload pictures onto the server. Here is my form:
<form action="<?="http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];?>" method="post" enctype="multipart/form-data">
<table style="width: 100%; padding-top: 20px;">
<tr>
…
Hi guys, I have to get linux distro name from python script. There is dist method in platform module:
import platform
platform.dist()
But it returns
>>> platform.dist()
('', '', '')
Under my Arch Linux. Why? How can I get the name.
p.s. I have to check whether the distro is…
Hi, are there any ways to set firefox's proxy settings? I found here information about FoxyProxy but when Selenium works, plugins are unactivated in window.
Hello, I'm going to use boost INFO parser
There is examples of file structure but not of using. Could you help me with reading key/value from boost info file?
Hello, I chose this way to get linux distro name:
ls /etc/*release
And now I have to parse it for name:
/etc/<name>-release
def checkDistro():
p = Popen('ls /etc/*release' , shell = True, stdout = PIPE)
distroRelease = p.stdout.read()
distroName = re.search(…
Hello guys, I have such text:
<Neednt@email.com> If you do so, please include this problem report.
<Anotherneednt@email.com> You can delete your
own
text from the attached returned message.
The mail system
<Some@Mail.net>:…
Hello, I'm using boost::function for making references to the functions. Can I make a list of references?
For example:
boost::function<bool (Entity &handle)> behaviorRef;
And I need in a list of such pointers. For example:
std::vector<behaviorRef>…
Hello, I globally use singleton pattern in my project. To make it easier - boost::singleton.
Current project uses Ogre3d library for rendering. Here is some class:
class GraphicSystem : public singleton<GraphicSystem>
{
private:
Ogre::RenderWindow…
Hello, how can I insert my own class objects into ptr_map from boost. The objects are templated so I can't use some static typename in the map. So I did:
ptr_map<string, any> someMap;
My class inherits the boost::noncopyable.
…
Hello guys, I have datetime-row in mysql database. I have to check time between now and that date using php. If the range is bigger then 1 month - do somtething.
I tried something like this:
$dateFromMysql = strtotime($rowData);…
Hello, I need in analyzing system output sound runtime. OS: Linux. The first thing I need is get different frequency values. Programming language: c++.
Hi guys, I have a project. I need in shared library of it to use in extensions. I don't want to make copy of this project but with shared-library settings. Are there any way to build it using *.o-files from building project? As I…