Cocoalumberjack DDLogInfo() doesn`t show File, Linenumber and function name - cocoalumberjack

I'm using CocoaLumberjack in an iPhone project, to log some information.
I've followed the Getting started guide, and everything works fine, but there is one thing that bugs me: I could not able to log the file name, line number, function name. Is there a way to do that....
Can some one help me posting sample code snippet!

Related

Adobe Reader on iPad executing one line of javascript code

Please help, I am stuck on this weird issue.
I've some script which works perfectly on Adobe Reader (both windows & mac).
However, for some reason on iPad (in Adobe reader app), it executes only first line of code and then no response. I am sure it's not code issue, 'cos I've tried different codes and even same code like alert.
So, basically If I put following in document open script, it will alert only once.
app.alert("Image Hidden Start - 1");
app.alert("Image Hidden Start -> 2");
Also, tried putting the same code in button on PDF and same behaviour.
Please help if somebody has any idea on how to solve this issue or if I need to do this differently.
All I need to do is make document read only if an expiry date is passed and alert the user.

tweepy first program: doesn't recognize API call

I am trying to write my first "helloworld" program to post on Twitter.
The program works fine with print("helloworld").
It also works with import tweepy.
But as soon as I try to assign my IDs, I get errors that it doesn't recognize the API calls. (see attached screenshot)
Maybe its obvious, but I am a beginner Python programmer, and I'm basically copying what I saw in a YouTube video.
code+terminal screenshot
You should be able to fix this issue by replacing the import with
from tweepy.auth import OAuthHandler
and then replace your auth= line with
auth = OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET)
Now as to why this is occuring - it could be dependant on what's being imported. If you have another tweepy.py file for example, it could be getting picked up as the file to import from, which of course, is likely wrong. Using the from import resolves this. You can find out which file was being used by adding (still using the code from the version in the image you posted)
print(tweepy.__file__)
This'll give you an idea whether the correct file was being imported or not.
Hope that helps.
I accidentally typed “python helloworld.py” instead of “python3”and it magically worked! So now I just run it that way.

Can't access objective-c method from swift. Bridge setup, and obj-c class instantiates

This is my first IOS application and all has gone well up to this point. My code is in Swift and I need to use the Gold Raccoon FTP library, which is in Obj-C, in my application: https://github.com/albertodebortoli/GoldRaccoon
I imported the Gold Raccoon files and created the bridge header. The main class you work with is the GRRequestsManager, which I can successfully instantiate in a running app. I cannot however access the addRequestForUploadFileAtLocalPath method in that class.
I initially just had the GRRequestsManager.h import statement in the bridge file. Since that inherits GRRequestsManagerProtocol.h that has the actual method I'm trying to use defined in it (addRequestForUploadFileAtLocalPath), I decided to add that to my bridge header file and lo and behold all of a sudden auto suggest popped up for the method and I could put it in my code with no errors. A few minutes later I got an error message again and it won't work now no matter what. I've tried closing and reopening Xcode and cleaning/rebuilding to no avail.
Below is a combined image (can only post 1 image due to my points) showing first the bridging-header and second (separated by the red line) the error in the code where I'm trying to call the method. You can see it recognized the class just fine.
Well I went ahead and added an include to every single header file in the Gold Raccoon library to my bridging header and now the method is recognized and my code compiles! I'm still not too sure why I needed to do that but it did the trick. If anyone cares to explain the why I would love to understand it.

First attempt at file download does not work. Need to click link twice and it works

I am having a really weird situation and would appreciate any help that can be provided.
My setup is pretty simple. I have an ember app that communicates with a Rails backend. I hit a certain route and a spreadsheet report is generated and placed in the public folder of the rails app. So far so good.
The rails backend then sends a response with the path to the file to the front-end that I place in a href that people can click on to download the file. This is where the weirdness happens. The first time that the link to download is clicked, I get a 404. What's weird is that if I click the link again or copy and paste the url into the address bar, the download works. No matter how I attempt to download the file, the first attempt always fails and all subsequent attempts succeed. I even set it up so that on one click I try to download the file twice and the first attempt fails and the second one works. This is definitely not ideal though.
edit: Also ... This only happens in production. In development, the download works perfectly fine.
I have no idea what the issue is and would appreciate any help in this.
Thanks

.chm file opening at a given index page from Matlab

I am trying to open a specific page within a .chm file from a Matlab GUI with the web function. Following the instructions and comments found here I have got the url of the desired page (mk:#MSITStore:D:\POv9\Ayuda\ayuda.chm::/html/ayuda1.html). However, when I write the command I need at the prompt
web('mk:#MSITStore:D:\POv9\Ayuda\ayuda.chm::/html/ayuda1.html','-browser')
it does not work (nothing happens neither an error message). I also have tried the following:
web('D:\POv9\Ayuda\ayuda.chm::/html/ayuda1.html','-browser')
web('ayuda.chm::/html/ayuda1.html','-browser')
without success.
I would like to know what I am doing wrong.
If you're on windows this works:
!hh mk:#MSITStore:D:\POv9\Ayuda\ayuda.chm::/html/ayuda1.html
This opens the help file in the Microsoft Help Viewer at the specified page.

Resources