Why is there no "remainder" in multiplication – math.stackexchange.com
With division, you can have a remainder (such as $5/2=2$ remainder $1$).
Now my six year old son has asked me "Why is there no remainder with
multiplication"? The obvious answer is "because it ...
Monday, 30 September 2013
How much has "True North" shifted in the last few years and would this affect aeronautics=?iso-8859-1?Q?=3F_=96_skeptics.stackexchange.com?=
How much has "True North" shifted in the last few years and would this
affect aeronautics? – skeptics.stackexchange.com
I was talking to a contractor at a major U.S. airport, a Project Manager
who told that they were moving the runways due to the shifting of 'True
North'. I have heard that the poles have shifted even …
affect aeronautics? – skeptics.stackexchange.com
I was talking to a contractor at a major U.S. airport, a Project Manager
who told that they were moving the runways due to the shifting of 'True
North'. I have heard that the poles have shifted even …
Training/skills to become a good QA engineer
Training/skills to become a good QA engineer
I've done a search for similar questions before but it seems they only
mention a few books or talk about soft skills, they seem to like training
resources for becoming a tester and there is little to no mention of
training resources for test automation.
So for background I'm a CS grad who doesn't seem to have a great ability
to develop, at least not yet. I went into finance and worked for two years
in support/development and got on very well, unfortunately my application
got quite popular and therefore the team was heavily regulated, this meant
I went to strictly support and low level so I wasn't happy with the lack
of complexity.
As a result I decided to try a different industry and have went back to
technology and got a job as a QA engineer. I am fully aware I cannot rely
solely on my employer to provide the skills necessary to become a good QA
Engineer.
Therefore I wish to firstly cement soft skills as a good QA tester which I
believe I already have. i.e. an eye for detail, enjoy a good puzzle. What
technical skills do people feel are required to be a good 'manual' tester?
Lastly the main reason I took this jump was to get into automated testing
as I believe it will allow a jump in complexity and perhaps a side move to
development when I'm good enough. Where do I start in becoming good at
automated testing?
The standard advice for a dev is to start developing personal projects?
What about a tester? Is it the same so then you can test your project
thoroughly? I've often seen it said you should be testing OTHER peoples
code mainly. So how can I get this exposure?
Just for additional info, I've been researching a bit myself and have come
across a few products like selenium to play with and reading the google
testing blog. On top of this I've started two udacity classes, one for
software testing and one for debugging. Any further suggestions? Any
decent books to help me feel a little less lost in my current situation?
Thanks for any advice you can provide
I've done a search for similar questions before but it seems they only
mention a few books or talk about soft skills, they seem to like training
resources for becoming a tester and there is little to no mention of
training resources for test automation.
So for background I'm a CS grad who doesn't seem to have a great ability
to develop, at least not yet. I went into finance and worked for two years
in support/development and got on very well, unfortunately my application
got quite popular and therefore the team was heavily regulated, this meant
I went to strictly support and low level so I wasn't happy with the lack
of complexity.
As a result I decided to try a different industry and have went back to
technology and got a job as a QA engineer. I am fully aware I cannot rely
solely on my employer to provide the skills necessary to become a good QA
Engineer.
Therefore I wish to firstly cement soft skills as a good QA tester which I
believe I already have. i.e. an eye for detail, enjoy a good puzzle. What
technical skills do people feel are required to be a good 'manual' tester?
Lastly the main reason I took this jump was to get into automated testing
as I believe it will allow a jump in complexity and perhaps a side move to
development when I'm good enough. Where do I start in becoming good at
automated testing?
The standard advice for a dev is to start developing personal projects?
What about a tester? Is it the same so then you can test your project
thoroughly? I've often seen it said you should be testing OTHER peoples
code mainly. So how can I get this exposure?
Just for additional info, I've been researching a bit myself and have come
across a few products like selenium to play with and reading the google
testing blog. On top of this I've started two udacity classes, one for
software testing and one for debugging. Any further suggestions? Any
decent books to help me feel a little less lost in my current situation?
Thanks for any advice you can provide
Clean IOS xcode target in command line
Clean IOS xcode target in command line
I am building/running an IOS app from command line with following commands:
xcodebuild -sdk "${TARGET_SDK}" -xcconfig "${CONFIG_FILE_PATH}"
-configuration Release
/usr/bin/xcrun -sdk "${TARGET_SDK}" PackageApplication -v
"${PROJECT_BUILD_DIR}/${APPLICATION_NAME}.app" -o
"${OUTPUT_DIR}/${APPLICATION_NAME}.ipa"
Is there any command to clean the targets. or these commands take care of
cleaning themselves.
I am building/running an IOS app from command line with following commands:
xcodebuild -sdk "${TARGET_SDK}" -xcconfig "${CONFIG_FILE_PATH}"
-configuration Release
/usr/bin/xcrun -sdk "${TARGET_SDK}" PackageApplication -v
"${PROJECT_BUILD_DIR}/${APPLICATION_NAME}.app" -o
"${OUTPUT_DIR}/${APPLICATION_NAME}.ipa"
Is there any command to clean the targets. or these commands take care of
cleaning themselves.
Sunday, 29 September 2013
Using Lisp's CFFI defcstruct with OpenCV's cvSize and CvSize struct?
Using Lisp's CFFI defcstruct with OpenCV's cvSize and CvSize struct?
I have half successfully wrapped the OpenCV cvSize function
CV_INLINE CvSize cvSize( int width, int height )
and I would like to acces the slots of the defctruct cv-size but could use
help here are my steps:
i created a cl-opencv-glue.c file and adding this
CvSize cvSize_glue(int width, int height)
{
return cvSize(width, height);
}
then created cl-opencv-glue.h file and adding this:
/* CvSize cvSize(int width, int height) */
CvSize cvSize_glue(int width, int height);
then builded a
/usr/local/lib/libcl-opencv-glue.so
which builds successfully
then created a wrapper for the glue function like this:
;; CvSize cvSize(int width, int height)
(cffi:defcfun ("cvSize_glue" size) (:pointer (:struct cv-size))
"Constructs CvSize structure."
(width :int)
(height :int))
then i can run this program successfully:
(defun init-image-header-example (&optional (width 640)
(height 480))
"Initializes an image header that was previously allocated."
(let* ((img-size (size width height))
(image (create-image img-size +ipl-depth-8u+ 3))
(image-re-init (init-image-header image img-size
+ipl-depth-8u+ 3
+ipl-origin-tl+ 4))
(window-name "INIT-IMAGE-HEADER Example"))
(named-window window-name +window-normal+)
(move-window window-name 702 285)
(create-data image-re-init)
(show-image window-name image-re-init)
(loop while (not (= (wait-key 0) 27)))
(release-image image-re-init)
(destroy-window window-name)))
the
(img-size (size width height))
line successfully creates a size structure for the:
(create-image img-size +ipl-depth-8u+ 3)
which is wrapped like this
;; IplImage* cvCreateImage(CvSize size, int depth, int channels)
(cffi:defcfun ("cvCreateImage" create-image) (:pointer (:struct ipl-image))
(size (:pointer (:struct cv-size)))
(depth :int)
(channels :int))
now for testing i create a size struct at the repl(w/ output):
CL-OPENCV> (defparameter size (size 1280 1024))
SIZE
CL-OPENCV> size
#.(SB-SYS:INT-SAP #X40000000500)
CL-OPENCV>
now id like to access slots of the size pointer so i can get size.width
and size.height so i can create a size-width and size-height function in
lisp
so i attempt to get at the slots by running at the repl(w/ output)
CL-OPENCV> (cffi:with-foreign-object (size '(:struct cv-size))
;; Initialize the slots
;; Return a list with the coordinates
(cffi:with-foreign-slots ((width height) size (:struct cv-size))
(list width height)))
Output > (754484 0)
and get this
(754484 0)
my defcstruct created by swig is
(cffi:defcstruct cv-size
(width :int)
(height :int))
and the defined Opencv struct is this(along with the CV_INLINE for
reference):
here is how they are defined in
/home/w/Downloads/opencv-2.4.6.1/modules/core/include/opencv2/core/types_c.h:
typedef struct CvSize
{
int width;
int height;
}
CvSize;
CV_INLINE CvSize cvSize( int width, int height )
{
CvSize s;
s.width = width;
s.height = height;
return s;
}
so i change my glue.c to(and rebuild .so)
CvSize cvSize_glue(int width, int height)
{
cvSize(width, height);
}
i re-open emacs and run the (init-image-header-example) function above and
it runs so i rerun the above repl test(shown below w/ output)
(cffi:with-foreign-object (size '(:struct cv-size))
;; Initialize the slots
;; Return a list with the coordinates
(cffi:with-foreign-slots ((width height) size (:struct cv-size))
(list width height)))
Output > (338509 0)
compared to above test of
(754484 0)
it is similar but different the 754484 changes evertime regardless of
whether return is there or not I tried every variation of the defcstruct
cv-size parameter i/e replacing the cv-size in
(cffi:defcstruct cv-size
(width :int)
(height :int))
with all the below:
:struct cv-size, (:struct cv-size), (:pointer (:struct cv-size)), :struct
cv-size
and get errors for all....(didnt include errors for sake of length of
post(but will if neccesary)) i then try the below to access the slots
(shown /w output)
CL-OPENCV> (defparameter size (size 1280 1024))
SIZE
CL-OPENCV> size
#.(SB-SYS:INT-SAP #X40000000500)
CL-OPENCV> (cffi:with-foreign-slots ((width height)
size (:struct cv-size))
(format t "width = ~a~%height = ~a~%"
width height ))
but get a
[Condition of type SB-SYS:MEMORY-FAULT-ERROR]
after last entry
Any help on this would be much appreciated...
I have half successfully wrapped the OpenCV cvSize function
CV_INLINE CvSize cvSize( int width, int height )
and I would like to acces the slots of the defctruct cv-size but could use
help here are my steps:
i created a cl-opencv-glue.c file and adding this
CvSize cvSize_glue(int width, int height)
{
return cvSize(width, height);
}
then created cl-opencv-glue.h file and adding this:
/* CvSize cvSize(int width, int height) */
CvSize cvSize_glue(int width, int height);
then builded a
/usr/local/lib/libcl-opencv-glue.so
which builds successfully
then created a wrapper for the glue function like this:
;; CvSize cvSize(int width, int height)
(cffi:defcfun ("cvSize_glue" size) (:pointer (:struct cv-size))
"Constructs CvSize structure."
(width :int)
(height :int))
then i can run this program successfully:
(defun init-image-header-example (&optional (width 640)
(height 480))
"Initializes an image header that was previously allocated."
(let* ((img-size (size width height))
(image (create-image img-size +ipl-depth-8u+ 3))
(image-re-init (init-image-header image img-size
+ipl-depth-8u+ 3
+ipl-origin-tl+ 4))
(window-name "INIT-IMAGE-HEADER Example"))
(named-window window-name +window-normal+)
(move-window window-name 702 285)
(create-data image-re-init)
(show-image window-name image-re-init)
(loop while (not (= (wait-key 0) 27)))
(release-image image-re-init)
(destroy-window window-name)))
the
(img-size (size width height))
line successfully creates a size structure for the:
(create-image img-size +ipl-depth-8u+ 3)
which is wrapped like this
;; IplImage* cvCreateImage(CvSize size, int depth, int channels)
(cffi:defcfun ("cvCreateImage" create-image) (:pointer (:struct ipl-image))
(size (:pointer (:struct cv-size)))
(depth :int)
(channels :int))
now for testing i create a size struct at the repl(w/ output):
CL-OPENCV> (defparameter size (size 1280 1024))
SIZE
CL-OPENCV> size
#.(SB-SYS:INT-SAP #X40000000500)
CL-OPENCV>
now id like to access slots of the size pointer so i can get size.width
and size.height so i can create a size-width and size-height function in
lisp
so i attempt to get at the slots by running at the repl(w/ output)
CL-OPENCV> (cffi:with-foreign-object (size '(:struct cv-size))
;; Initialize the slots
;; Return a list with the coordinates
(cffi:with-foreign-slots ((width height) size (:struct cv-size))
(list width height)))
Output > (754484 0)
and get this
(754484 0)
my defcstruct created by swig is
(cffi:defcstruct cv-size
(width :int)
(height :int))
and the defined Opencv struct is this(along with the CV_INLINE for
reference):
here is how they are defined in
/home/w/Downloads/opencv-2.4.6.1/modules/core/include/opencv2/core/types_c.h:
typedef struct CvSize
{
int width;
int height;
}
CvSize;
CV_INLINE CvSize cvSize( int width, int height )
{
CvSize s;
s.width = width;
s.height = height;
return s;
}
so i change my glue.c to(and rebuild .so)
CvSize cvSize_glue(int width, int height)
{
cvSize(width, height);
}
i re-open emacs and run the (init-image-header-example) function above and
it runs so i rerun the above repl test(shown below w/ output)
(cffi:with-foreign-object (size '(:struct cv-size))
;; Initialize the slots
;; Return a list with the coordinates
(cffi:with-foreign-slots ((width height) size (:struct cv-size))
(list width height)))
Output > (338509 0)
compared to above test of
(754484 0)
it is similar but different the 754484 changes evertime regardless of
whether return is there or not I tried every variation of the defcstruct
cv-size parameter i/e replacing the cv-size in
(cffi:defcstruct cv-size
(width :int)
(height :int))
with all the below:
:struct cv-size, (:struct cv-size), (:pointer (:struct cv-size)), :struct
cv-size
and get errors for all....(didnt include errors for sake of length of
post(but will if neccesary)) i then try the below to access the slots
(shown /w output)
CL-OPENCV> (defparameter size (size 1280 1024))
SIZE
CL-OPENCV> size
#.(SB-SYS:INT-SAP #X40000000500)
CL-OPENCV> (cffi:with-foreign-slots ((width height)
size (:struct cv-size))
(format t "width = ~a~%height = ~a~%"
width height ))
but get a
[Condition of type SB-SYS:MEMORY-FAULT-ERROR]
after last entry
Any help on this would be much appreciated...
PHP File request from url directory
PHP File request from url directory
This is probably a very easy question. Anyway how do you use variables
from a url without requests. For example:
www.mysite.com/get.php/id/123
Then the page retrieves id 123 from a database.
How is this done? Thanks in advance!
This is probably a very easy question. Anyway how do you use variables
from a url without requests. For example:
www.mysite.com/get.php/id/123
Then the page retrieves id 123 from a database.
How is this done? Thanks in advance!
Generate multipart/mixed HTTP request
Generate multipart/mixed HTTP request
I would like to POST a multipart/mixed request, where one part is of type
application/json and the other of type video/mp4 (Content-Type: video/mp4;
charset=binary). How can I easily build such POST request in python?
I would like to POST a multipart/mixed request, where one part is of type
application/json and the other of type video/mp4 (Content-Type: video/mp4;
charset=binary). How can I easily build such POST request in python?
Subscribe to:
Posts (Atom)