Jump to content

carlosmoreeira

New Members
  • Posts

    7
  • Joined

  • Last visited

Everything posted by carlosmoreeira

  1. Hello, Would anyone know a PDF library that is capable of Replacing values in a PDF document? I have a bunch of PDF's with multiple fields, {field1, field2, field3} and need to some how populate the fields. I wanted to find a way I could have a PDF for example say [Field1] and it be replaced by the words I pass it. I've done some research and just cant find something close to what I am looking for. I've landed on Zend_PDF, but for each field for every PDF I have to manually place the fields on the PDF. So if a field is 100px from left and 100px from right I have to say that explicitly in the code. Other PDF libraries are similar as well. I have taken a look at : ZEND_PDF, MPDF, TCPDF Any help is greatly appreciated.
  2. Hello, I have been using cakePHP now for a couple projects now. My next projects involves creating a web service and the entire front-end be built in angularjs. Now, I understand how 'Form' Authentication works, and have done some research and people tell me if I have an SSL to use Basic Auth, for a web service, which is what I am using. But I am having a problem hooking both up nicely. Now with angular, I have a call for a page and send over the username and password. If the credentials are correct, the server returns back the correct data. The problem is if the credentials are wrong, I get the normal 'Basic Auth' pop up, asking me for my username and password. My question is, instead of the server trying to re access the same page, is there a way to return json data back? Example : I have an angular call going to 'cakerest/projects.json' -> Credentials are ok -> Data is returned, and with javascript I console.log it and see it. 2nd time I send the incorrect user and password, and the server responds back with a popup asking for credentials. How can I get rid of that popup and just return "{Error : 'Credential problem'}; I can post code if that would help as well. Thank you
  3. I never even thought of how storing this data goes against normalization, not even sure what I was thinking then. I guess that is why all WordPress databases I have ever worked with give so many problems. But then back to the other issue on hand, exactly how I should create my tables. I still dont have a solid data model for this problem. I use sliders as an example, but it can be a variety of other things as well. But this is the situation I am trying to figure out. Again I will use sliders as an example. The home page slider has 3 things that can be edited per each slide (img, text, box_legnth), there can be 'X' many slides. Another slider on another page has 4 editable things. (img, text, hovertext, fadetext), it can also have 'X' many slides. Since each slider does not have the same 'Attributes', I can't seem to figure out how to make these tables. I know I can easily solve the problem with 1 table per every slide (module), but that doesn't make me to happy. I believe there is a more clean and concise way of storing all this data and still follow the rules of normalization. In my query all I want to be able to do is say "Get me everything for this 'Module'". Again any help is greatly appreciated.
  4. This is more of a database architect question. I am building a CMS for website development. I am ready to use it for the first time on one of my clients. Now, my issue is is how to set up some or one of my table(s) for some areas that my client wants to be able to change in the admin section. In their website on the front page, I put together this nice block slider. Its 6 blocks with text, a background image and nice effects. At first it was always going to be static, which was no issue at all, but later they came to me and asked if they could be able to change words in the boxes themselves in the admin section.. Of course this can be easily done by creating a table that is associated with this home page block thing and each row in the table will correspond to one of the blocks on the home page. But I believe there might be an easier way to store this type of data without having to create another table for every feature the client wants to edit, for example they also want to be able to edit a slider on another page. The WordPress database then came into my mind and how they store most of their data as JSON. So I was then thinking of creating a table named 'modules' for examples with three columns (id, title, data). Then inside the data column store the editable fields as a JSON string object. For example a row could like like : 1, "Front Page Box Slider", {"slider-home" : [ {"data" : "value", "img_1", "value1"}, {"data" : "value", "img_2", "value2"} ]} I've been doing a bit of research on this and people have just been saying, never do this if you do want your data to be searched through, which I don't. Can anyone tell me why or why not I should do this, or maybe a better solution to my problem? Thank you
  5. If I only had a quarter for the amount of times I've said that to myself.
  6. I had a feeling someone would say that, as I am trying to push it back myself lol. I just wanted to see what were the best options. I don't want them to pay someone overseas and and have absolutely no security in it at all. I have told them its a huge risk, so the contract will protect me if anything happens.
  7. Hello I am trying to create a password storing application, but cannot figure out the best way to store account passwords. The application wont store just user passwords to login, but passwords for other accounts. For example Client wants to be able to store all their Facebook and twitter passwords on the site, then log in when they want to find it. I was going to make it so the admin needed repeat their password they used to login to the application to retrieve another password, all of this is no problem, its just encrypting the passwords and being able to "un-encrypt" it later so they can see it. Any help would be appreciated, the person doesn't really care if its secure, they just want me to store the strings in the Database to be retrieved later, but I want to make it secure. Thank you
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.