Quantcast
Channel: User Marco A. - Stack Overflow
Browsing all 45 articles
Browse latest View live

Comment by Marco A. on How can I assign an array to a fixed matrix index?

@markzzz you're assigning the same row multiple times. Either assign to the elements of the matrix directly (as in here) or dynamically allocate the rows (e.g. with new[]) for the matrix before...

View Article



Comment by Marco A. on Increasing root space in AWS instance

This might help you

View Article

Comment by Marco A. on How can I write a script to create EC2 instance

I'll just add this as a comment: for any complex stack you can also use cloudformation templates

View Article

Comment by Marco A. on More concise way to declare high dimensional vector

@zetta yes it is possible, keep in mind that you might invalidate iterators if you resize the vectors

View Article

Comment by Marco A. on What is Destination and Target in Route table (AWS VPC)?

Routes and access privileges are two different things. I would use network-level ACLs to control access to the VPC.

View Article


Comment by Marco A. on Is there any way to catch AWS lambda timed out error...

Might be of help: context.get_remaining_time_in_millis() (and node/others equivalents) will give you the remaining execution time

View Article

Comment by Marco A. on Opening a File from a FileInfo

Besides there could be multiple paths and the user could only have access to some of them: github.com/golang/go/issues/32300#issuecomment-496984069

View Article

Comment by Marco A. on How to configure AWS S3 SDK for Node.JS to be used...

@adam-beck Mark is right: when set to true it forces http://{host}/{bucket}/{key} paths. This might be a lifesaver when e.g. configuring SSL for random subdomains.

View Article


Comment by Marco A. on Adding SQS Permissions with conditions using AWS CLI...

Correct since the attribute you're setting is, in fact, the queue's Policy (awscli.amazonaws.com/v2/documentation/api/latest/reference/‌​sqs/…)

View Article


Comment by Marco A. on Why is an int variable valued `0xffffffff >> 1` !=...

int and unsigned int. I agree: try to print the values to inspect this better.

View Article

Comment by Marco A. on Adding Boost to CMake project?

To see which libraries are not header only see this post. has a broken link. No idea where it used to point. Maybe stackoverflow.com/q/13604090/1938163 ?

View Article

Comment by Marco A. on C-style conditional compilation in golang

An example of what @JohnLeidegren was talking about can be found here

View Article

Comment by Marco A. on mismatched types 'std::chrono::_V2::steady_clock' and...

It would be good to mark this as your own answer.

View Article


Comment by Marco A. on Qt - how to detect line count increase after word...

It is never too late to help someone, thank you for replying!

View Article

Comment by Marco A. on how to get number of method in class?

Sounds like you need an interface and proper versioning

View Article


Doxygen issue: chapter are all 0

I have some doxygen groups defined in a fake .h file@defgroup MainGroup@brief ...@defgroup SubGroup1@brief ...@ingroup MainGroup@defgroup SubGroup1@brief ...@ingroup MainGroupnow the problem is that...

View Article

Answer by Marco A. for Lightweight doxygen html output

With doxygen you can export your data in html format, tex format, XML (which you can later parse as you want), RTF, Man pages or Docbook.The html output supports a custom header, footer and stylesheet...

View Article


CUDA - can't compile .cu files because of "gcc: error trying to exec...

I'm trying to compile a simple .cu file with CUDA 5 and gcc 4.7.3 on Ubuntu 13.0 but I'm gettinggcc: error trying to exec 'cc1plus': execvp: No such file or directoryHow can I fix this?

View Article

Difference between typedef and C++11 type alias [duplicate]

I'm reading template aliases here: http://en.cppreference.com/w/cpp/language/type_aliasAnd I'm wondering, even if it's written on the very first line of the page I linked, what's the difference between...

View Article

Change Eclipse toolbar icon dynamically

I've got a toolbar item with its own icon, defined in the plugin.xml file...

View Article
Browsing all 45 articles
Browse latest View live




Latest Images