I have a static library project in Eclipse that was compiled into a .a file. So now how would I use the functions and constants in that library? Would I just put in into my includes:
#include "mylib.a"
If someone knew the link of one of my page or simply they made an assumption like http://ww.yourweb.com/index.php, this is a general assumption and if you put this link on DAP or other donwload manager, it will download file, with source code inside.
I want to stop other from stealing my code on this manner, is there a way for this?
I am interesting to do some transformation, like change one color to another, count all used colors, and resize image. I DO NOT want to use any exist library, I would like write myslelf all code.
Summing up: How could I open BMP file and change it?
I wonder if this possible with Zend_Db, but I am looking for something like SQL query logging similar to how Hibernate does it, where it shows you what SQL it generates in the log file.
Hello, I would like to ask if it's possible to use PHP in removing a password from a password-protected PDF file in which I already know the password? I've seen this page which provides many options but using bash script. :( I was required to use PHP as much as possible. Any suggestions appreciated!
Hi,
what I want to do is PHP to look at the url and just grab the name of the file, without me needing to enter a path or anything (which would be dynamic anyway). E.G.
http://google.com/info/hello.php, I want to get the 'hello' bit.
Help?
Thanks.
Hi;
I want to know that, if is it possible to see the different parts of a file at the same time in Zend Studio 7? Maybe in different windows or something like that. I know this can be succeeded with simpler editors like editPlus
tHanks
I have an UIPopovercontroller in with an content that generate from an viewcontroller.
popOverController = [[UIPopoverController alloc]initWithPopUp:emLightPopUp];
popOverController.delegate = self;
// Get device position.
CGRect position = {parentButton.frame.origin,emLightPopUp.popUpView.frame.size};
CGSize popUpViewFrameSize = emLightPopUp.popUpView.frame.size;
Link screenshot: http://i.stack.imgur.com/AxqoG.png
The issue is that when I change the position of select devices (touched button) upwards, the displayed popup will be resized like the screenshot.
I already try to set content size inside the subclass of uipopover but it still doesn't work:
self.popoverContentSize = emLightPopUp.popUpView.frame.size;
EDIT:
I solved this problems by calculate the position that display the popup and scroll the scrollview inside into an upper position. Check out this code:
-(void)moveDeviceOutMiddleScreen:(id)deviceButton
{
UIButton* button = (UIButton*)deviceButton;
CGFloat yPositionRange = button.frame.origin.y - self.floorZoomScrollView.contentOffset.y;
int middle_top_y = 70;
int middle_bottom_y = 166;
if (yPositionRange > middle_top_y && yPositionRange < middle_bottom_y) {
CGRect newRect = CGRectMake(self.floorZoomScrollView.contentOffset.x,
self.floorZoomScrollView.contentOffset.y +yPositionRange*0.6,
self.floorZoomScrollView.frame.size.width, self.floorZoomScrollView.frame.size.height);
[self.floorZoomScrollView scrollRectToVisible:newRect animated:NO];
}
}
Thanks for your responses.
I've been checking around online and there are limited resources for creating a .cur file and next to nothing that works on a Mac. If anyone has suggestions on how to do this I'd love some help. Thanks!
http://stackoverflow.com/questions/840213/how-do-i-load-a-mov-file-into-flash-9
I checked this post out and it looks like the normal way for adding a flv, but it tried it on some sample .movs from apple and doesnt seem to work.
Do movs have to be encoded specially for playback in flash?
Background:
Let assume that I have two header files a.h and b.h.
a.h contains:
#define VAR 1
b.h contains:
#define VAR 2
Note: The name of both of the macro is same.
Let say I have some file myFile.c which includes both of the header files i.e. a.h and b.h.
When I try to access VAR, I get a redefinition error of VAR.
In order to resolve this problem, I inserted #ifndef VAR statement in both a.h and b.h files to prevent this error.
a.h file becomes
#ifndef VAR
#define VAR 1
#endif
b.h file becomes
#ifndef VAR
#define VAR 2
#endif
Note: The header file can contain multiple macros, not just one macro.
Problem:
Let's assume that a.h and b.h files are obtained from third party library. These files don't contain #ifndef VAR statement.
I am not allowed to change their header files.
Can I resolve macro 'VAR' redefinition error in myFile.c or myFile.cpp file which uses VAR macro?
I know I #undef VAR can be used to undefine a macro VAR. How can I selectively include VAR later in my program? i.e. on line 10 of myFile.c code I should be able to refer to VAR definition from a.h file, on line 15 of my code I should be able to refer to VAR from b.h file and on line 18 again I should be able to refer to VAR from a.h file.
In short, am I able to do macro polymorphism ?
Given a name of header file, it should refer to macro definition present in that file.
I thought of using namespace trick to resolve an issue. Define first header file in namespace first and second header file in namespace second.
I tried defining two namespaces. First namespace contains #include a.h and second namespace contains b.h. However, namespace trick does not work with macro. When I tried to access firstns::VAR, compiler reports an error message.
Can you please suggest some way?
I have a text file containing a number of records. Each record is stored on a single line that is 100 characters long.
Let's say I want to directly access the nth record. I could do it using a for loop, reading in n lines until I get to the record.
But how could I access it directly?
Hi;
What would be an ideomatic way in Clojure to get a lazy sequence over a file containing float values serialized from Java? (I've toyed with a with-open approach based on line-reading examples but cannot seem to connect the dots to process the stream as floats.)
Thanks.
I have an assignment in which I need to declare a pipe in a header file. I really have no idea how to do this. It might be a really stupid question and I might be missing something obvious. If you could point me in the right direction I would greatly appreciate it.
Thanks for your time.
I want to create a rule at the end of an .htaccess file that catches everything that failed to match up until then.
How can I do that?
P.S. I've already tried everything :) Actually, I haven't, but it sure seems like it!
i have this encryption algorithm written in C++ , but the values that has to be encrypted are being taken input and stored in a file by a python program . Thus how can i call this c++ program from python?
Actually I have such a code:
NSString *path = [[NSBundle mainBundle] pathForResource: @"connect" ofType: @"xml"];
NSError *error = nil;
NSString *data = [NSString stringWithContentsOfFile: path
encoding: NSUTF8StringEncoding
error: &error];
NSString *message = [NSString stringWithFormat:data, KEY, COUNTRY_ID];
which reads the connect.xml from resources. But on the formating the string (message) APP quits without displaying any errors. How can I read file.xml from resources to NSString with format?
`public void SeparateData()
{
//read file
StreamReader sr = new StreamReader("myTextFile.txt");
//string to hold line
string myline;
myline = sr.ReadLine();
while ((myline = sr.ReadLine()) != null)
{
string[] lines = Regex.Split(myline, " ");
foreach (string s in lines)
{
using (StreamWriter sw = new StreamWriter("myTextFile.txt"))
sw.WriteLine(lines);
}
}
} `
I've got two branches that are fully merged together.
However, after the merge is done, I realise that one file has been messed up by the merge (someone else did an auto-format, gah), and it would just be easier to change to the new version in the other branch, and then re-insert my one line change after bringing it over into my branch.
So what's the easiest way in git to do this?
hi
i have test file that contain
1,2,3
2,3,4
5,6,7
i need to insert in the first line this: A,B,C
it will be like this:
A,B,C
1,2,3
2,3,4
5,6,7
how i can do it ?
thank's in advance
I must have skipped a page or two by accident during my PDF Tutorials on Python commands and arguments, because I somehow cannot find a way to take user input and shove it into a file. Don't tell me to try and find solutions online, because I did. None made sense to me.
Should I be separating my js for each page assuming there is no overlap and putting references on each page instead of having one master file? what is typical practice? thanks