w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
MAC OSX LION: gcc on mac not compiling wget
Honestly, even though it appears that gcc exists; but does it point to a valid install? It still sounds like it is not installed properly and with an upgrade to Mountain Lion, all your open source tools have been scrubbed away and pushed to Xcode and must be manually installed if necessary.

Categories : C++

Two versions of PHP - Mountain Lion
Your Apache is including libphp5.so of the wrong/the other installation. Option 1: See if you can find a libphp5.so file for your other PHP installation and point the Apache config to it (just put the whole path in the LoadModule line and restart Apache). If you cannot find such a file, the Apache module wasn't compiled for that PHP version. Compiling that may be a bit complicated, so in that case: Option 2: Figure out which PHP you're executing on the command line using which php and then just use the other one using the full path, e.g. instead of $ php ... use $ /usr/bin/php .... Note that you may still have different PHP configuration files for Apache and the CLI.

Categories : PHP

Mac OSX Lion/X11/CImg Library
The header file Xlib.h is in /opt/X11/include, so add that path to the Header Search Paths in Xcode: You'll probably need to add libraries from /opt/X11/lib as well...

Categories : Xcode

TideSDK Notifications in OSX Lion 10.7.5
Harry, I'm not too familiar with CoffeeScript, but the following code works for me in 10.7.5 and 10.8.4 - it seems similar to what you have: function showNotify(title, message) { var notification = Ti.Notification.createNotification({ 'title': title || 'No Title', 'message': message || 'No Message', 'timeout': 10 }); notification.show(); } showNotify("The Title", "The Message"); Hope it helps.

Categories : Misc

SublimeClang OSX Mountain Lion C++11
It may be too late, but I found how to do it. This matter is because clang uses headers for gcc-4.2, which is quite old and doesn't support C++11. To complete C++11 code, you have to get newer gcc and copy the include path it uses. If you have homebrew, open terminal and type brew tap homebrew/versions brew install gcc48 You can install gcc-4.8 and new libstdc++ with these two lines. Now, create some c++ file and try to use g++-4.8 with -v option. g++-4.8 -v example.cpp -v option tell gcc to show detailed log. In the output, there should be some lines like this. #include <...> search starts here: /usr/local/Cellar/gcc48/4.8.1/gcc/lib/gcc/x86_64-apple-darwin12.4.1/4.8.1/../../../../include/c++/4.8.1 /usr/local/Cellar/gcc48/4.8.1/gcc/lib/gcc/x86_64-apple-darwin12.4.1/4.8.1/

Categories : C++

R - OSX Mountain Lion and CPU Limit
Tried ulimit... Appears I do not have access, even via sudo. I get the same output from ulimit -a -H before and after giving ulimit -t 12000 # sets cputime limit to 12000 seconds from 600 seconds SOLVED via Debian Virtual Machine. If someone has a Mountain Lionic solution, please let us know.

Categories : R

Will it be possible to upload to App Store from Lion?
Your Lion will be just fine as stated here: https://developer.apple.com/support/ios/ios-dev-center.html "To develop with the iOS SDK and Xcode, you must have an Intel-based Mac running Mac OS X Snow Leopard or later and you must be registered as an Apple Developer." Update July 2015 https://developer.apple.com/support/enrollment/ You must have an Intel-based Mac running OS X Yosemite (v10.10) or later.

Categories : IOS

Installing JDK on OSX Lion for Scala
Scala is a popular enough of a language for there to be plenty of information on how to get started from scratch. For example, googling for "scala installation" gave me (amongst other stuff) http://www.tutorialspoint.com/scala/scala_environment_setup.htm —they talk about JVM versions, how to install Scala, etc; i.e. all you need. If that page won't do, I'm sure you'll find many more.

Categories : Scala

Regular Expression in dreamweaver
Do you need to extract/capture certain pieces of info or just find the whole string? My usual method for generalizing regexp is to start with the literal text and just replace elements with general placeholders... <a onclick="NavigateChat();" style="cursor:pointer;"><img src="[^"]+" width="d+" height="d+" border="d+" alt="[^"]+"/></a> This expression uses the character set [^"] which stands for "not a quote mark". If you just use .* as a wildcard, your regexp will fail if there is more than one tag present in your document. Regexps are "greedy" and would try to select ALL the text from the first tag through to the end of the last link. Without a data sample, I can't test this for sure, but it should be close.

Categories : Regex

nth-child not rendering in Dreamweaver
The Dreamweaver design view sucks, it usually never gives an accurate representation of how things look in a real browser. As an alternative and a helpful answer to your issues you can try the live view from dreamweaver that was implemented after CS5. Here is a video explaining how to set it up. http://tv.adobe.com/watch/creating-time/dreamweavers-live-view-helps-you-save-time/ As a final note, try not to use the design view and tey to get more into the code... once you get used to it you can read the code and visualize almost exactly (usually always better than design view) how things look. So please do not trust design view in dreamweaver for development.

Categories : HTML

Facebook comments in dreamweaver
You need to scrape your page to refresh Facebook's internal cache. To scrap you can send a web request to the Facebook Object Debugger and pass your URL, or you can do like this: curl "http://developers.facebook.com/tools/debug/og/object?q=$url" Also: When does Facebook scrape my page? Facebook needs to scrape your page to know how to display it around the site. Facebook scrapes your page every 24 hours to ensure the properties are up to date. The page is also scraped when an admin for the Open Graph page clicks the Like button and when the URL is entered into the Facebook URL Debugger. Facebook observes cache headers on your URLs - it will look at "Expires" and "Cache-Control" in order of preference. However, even if you specify a longer time, Facebook will scra

Categories : HTML

Can't Uninstall Java 7 JDK on Mac OS X (Mountain Lion 10.8.4)
If you can't find the Java Home, open up terminal and enter: env look for or SOMETHING LIKE THIS Mine might not be the same as yours JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.7/Home This is where your Java is installed If you want to see it in Finder then open up Finder and press Command + Shift + G and enter in the path to java home. to uninstall simply remove the java version from : /System/Library/Java/JavaVirtualMachines with cd /System/Library/Java/JavaVirtualMachines rm -r some.version.java.jdk Note: Sometimes Java is install in /System/Library but sometimes it's installed on /Library, so that's why you couldn't find Java in /Library which the Oracle document suggested.

Categories : Osx

How do I create a .conf file in Mac osx Lion?
Open TextEdit's Preferences, and switch to the Open and Save section. Under the When Saving a File panel, uncheck the Add '.txt' extension to plain text files option.

Categories : Osx

How can I install pybrain on Mac OS X Mountain Lion?
Try using the Python package manager pip with the correct permissions: pip install pybrain or clone the repo and build the package git clone git://github.com/pybrain/pybrain.git python setup.py install

Categories : Python

Installing jpype in Mountain Lion
This is on a system running OSX 10.8.5. I modified the setup.py for JPype-0.5.4.2 and added an element to the end of the self.includeDirs list which is created in the function setupInclusion. This function is declared at line 61 for this particular version of JPype. def setupInclusion(self): self.includeDirs = [ self.javaHome+"/include", self.javaHome+"/include/"+self.jdkInclude, "src/native/common/include", "src/native/python/include", #I added this line below. The folder contains a jni.h "/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers/" ] Finally I ran pip install ~/Path/To/JPype-folder/ and the installation was successful.

Categories : Java

Which Python architecture provided on Mac (Lion)?
Use platform.architecture(): >>> import platform >>> platform.architecture() ('64bit', '') Run on my Mac OS X 10.8.4. Note that your Python executable may be a universal binary, in which case you could get the wrong architecture quoted: Note: On Mac OS X (and perhaps other platforms), executable files may be universal files containing multiple architectures. You can also test sys.maxsize: >>> sys.maxsize > 2**32 True The above would return False if you were running a 32-bit platform.

Categories : Python

RabbitMQ not working on OS X Mountain Lion
I've managed to fix this issue by completely removing brew from my system and reinstalling it again. I've used the following instructions (adapted from the official brew documentation) to completely remove brew from my system: cd `brew --prefix` rm -rf Cellar brew prune rm -r Library/Homebrew rm -rf .git rm -rf ~/Library/Caches/Homebrew I simply reinstalled RabbitMQ afterwards: brew install rabbitmq .. and everything worked like a charm!

Categories : Osx

Where are the files generated with Xcode 4.5 in Lion?
This has nothing to do with Lion. Xcode puts generated files in: ~/Library/Developer/Xcode/DerivedData where ~ is your home directory. Keep in mind that the ~/Library directory is hidden by default in Lion (and later).

Categories : Xcode

Mono Program Crashes on OSX Lion
This might be a problem of where you built it: try building it in Lion instead to see if that makes a difference. I've seen problems before when trying to execute a program on an older OS than where it was built.

Categories : C#

Mac OS X Lion - mysql: command not found
In the past I've had problems installing the mysql2 gem, so I wrote a little shell script to make my life easier: #!/bin/sh -x env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config Try updating that with the path to your mysql_config: /usr/local/Cellar/mysql/5.5.28/bin/mysql_config and change mysql to mysql2.

Categories : Mysql

Installing Cloudera Hue on mac os x mountain lion
You need to delete desktop/core/ext-py/Twisted and retry. Also Hue 2.5 release (which contains this fix) is around the corner (this Monday/Tuesday).

Categories : Osx

Does anybody know how to sniff in promiscuous mode on OS X Lion?
I recall having to setup a script on terminal to "tweak the permissions" of some files / drivers That's probably referring to the permissions on the /dev/bpf* devices. That's not something necessary to sniff in promiscuous mode, it's something necessary to sniff at all unless you're running as root. Recent versions of Wireshark, going back at least to Wireshark 1.8.0, install a script to do that automatically. Open up a Terminal window and do ls -l /dev/bpf*; it should report the /dev/bpf* devices, e.g. /dev/bpf0, /dev/bpf1, etc. as having permissions rw-rw---- and as being owned by root and group access_bpf. In addition, the id command should report you as being a member of group access_bpf. If that's all the case, Wireshark should show an en0 device and possibly an en1 device.

Categories : Osx

Mac Lion: Issue with opencv and python 2.7.5
This is how I configured it in the end for the official python 2.7.5 from http://www.python.org First we need to install opencv via brew: brew tap homebrew/science brew install opencv now add /usr/local/Cellar/opencv/2.4.5/lib/python2.7/site-packages to your PYTHONPATH . I did it by editing bash_profile: open ~/.bash_profile add this line in TextEditor: export PYTHONPATH=/usr/local/Cellar/opencv/2.4.5/lib/python2.7/site-packages:$PYTHONPATH #Check the version in your directory Save the file and do: source ~/.bash_profile Now everything should be ready.

Categories : Python

Tesseract and dylib on OSX Mountain Lion
Done by cleaning my installation of both the softwares and re-installing them through brew. Mind that if there is some linking problem, you have to execute brew link --overwrite tesseract to solve them.

Categories : Misc

How to transfer jsfiddle code to dreamweaver?
The default value of the second dropdown in jsFiddle is "onLoad". This means any javascript you write in the script panel will be executed in an onLoad event handler. Since you're using jQuery, you can reproduce this behavior by using a $(document).ready block*: $(document).ready(function () { // your code from the jsFiddle javascript panel }); *onLoad and document ready are not the same thing, but either will work for you.

Categories : Jquery

Dreamweaver Syntax Highlight (Php, Html)
Check for balanced parentheses, braces, or square brackets Open the document in Code view. Place the insertion point in the code you want to check. Select Edit > Balance Braces. All of the code between the enclosing parentheses, braces, or square brackets is selected. Choosing Edit > Balance Braces again selects all of the code inside the parentheses, braces, or square brackets that enclose the new selection. http://help.adobe.com/en_US/dreamweaver/cs/using/WSc78c5058ca073340dcda9110b1f693f21-7ba2a.html

Categories : PHP

PHP session is not working though there is no error at all in Dreamweaver
You are doing nothing when the query return more than one result elseif ($count > 1){ echo "here"; } try the above code and check whether it makes any change

Categories : PHP

dreamweaver regex replace css rule
Search for ([a-zA-Z0-9])([#.]) and replace by $1 $2. Don't forget to check "Use regular expression" in the search box. Explanation: ( : start matching group 1 [a-zA-Z0-9] : match letters lower and uppercase and digits ) : end matching group 1 ( : start matching group 2 [#.] : match either # or . ) : end matching group 2

Categories : Regex

how to decrypt Dreamweaver site passwords?
The Dreamweaver just gives you the option to export the site manager data. Site=>Manage Sites=>select the site=>export this will save on your computer a readable xml file with extension .ste Just open it in word-pad or any other application to read the xml and search for the needed server password and get the value of the attribute pw in the tag server Then use this javascript function to decrypte the password from this value function decodeDreamWaverPass(hash){ var pass = ''; for (var i=0 ; i<hash.length ; i+=2){ pass+=String.fromCharCode(parseInt(hash[i]+''+hash[i+1],16)-(i/2)); } return pass; } Hope that it will be helpful for you...

Categories : Javascript

dreamweaver automatically creating a new folder
So I posted a similar question on Adobe's forums and they responded with this and yes it does fix the issue. Dreamweaver creates a temporary page. It's created specifically for previewing. You "should" be able to turn it off in the preferences... Edit > Preferences >select Preview In Browser > uncheck the "Preview using temporary file" checkbox EDIT: OOps, forgot the Preview In Browser selection.

Categories : PHP

Developing a User Authentication in DreamWeaver CS6
i was look for the same answer, and found this tutorial at adobe website, it helped.

Categories : Authentication

HTML Dreamweaver Left Margin
The body of the page includes a browser default margin, so you should reset that value once you start editing your CSS, if you don't want to bump in later issues like this. Copy the following to the top of you CSS file/tags: html, body{ margin: 0; padding: 0; } With that you can then remove the unnecessary updates on the margins that you've inserted to correct this problem.

Categories : CSS

Invalid markup with all my div classes when using php in dreamweaver
It is because in cssmenu.php you must be having <html> or <head> or <body> tags those may be already present in your current file with the <div> tag having include statement.

Categories : PHP

Phonegap HTML/Dreamweaver CC Splashscreen
I would do it with a Phonegap plugin the splash described Here From the plugin install directory, you have to copy manually the Java files to Android source files, because the plugin install not always makes a copy. I hope it helps!

Categories : Android

No MIDI sound using CoreMIDI, Ruby, Mac OS X Lion
OK, finally found it. Found this: https://www.ruby-toolbox.com/categories/music_midi and https://github.com/arirusso/unimidi Thanks to folks over at reddit.com/r/ruby http://www.reddit.com/r/ruby/comments/1hwwk5/need_help_finding_a_software_that_takes_in_midi/ Love Reddit. Note: For some reason stackoverflow does not support URL address with double underscore. The first url is actually "music__midi

Categories : Ruby

Certificate Signing Request in Mountain Lion OS
You should see the "Certificate Assistant" section if you click on the "Keychain Access" menu. It looks like this:

Categories : Osx

Running elastic search Mountain Lion Mac OSX
Found the solution here: http://www.concept47.com/austin_web_developer_blog/errors/elasticsearch-error-failed-to-connect-to-master/ Basically: 1) Find elasticsearch.yml 2) Uncomment or add in : discovery.zen.ping.multicast.enabled: false

Categories : Linux

Not seeing OSX desktop notifications with test app closed (Lion)
PushyMac app code was written during OSX 10.7 and the only notification type available was Badge. If you are running OSX 10.8, then add the alert notification type as well, as shown below. [NSApp registerForRemoteNotificationTypes:(NSRemoteNotificationTypeBadge | NSRemoteNotificationTypeAlert)] However, after doing this, I am not able to launch the app by clicking on the alert in notification area. If you find an answer for that, please do reply.

Categories : Objective C

How to install ZendFramework and clt from svn on Mac OS X Lion with the xampp running?
If you are starting a new project, I recommend using Zend Framework 2 not 1. Here are 2 useful links from the ZF2 quick start guide that will help: ZF2 skeleton applicatoin ZF2 tool Try that & let us know how you get on...

Categories : PHP

Setting PHP path in Mac OS X Mountain Lion Server
Came across this discussion under apple support. Apple recommends not to upgrade inbuilt PHP, Since its used by other applications running inside server. PHP upgrade will be done along with Apple updates after apple test next version of PHP. They do provide steps to update after recommending not to ,And to upgrade sudo mv /usr/bin/php /usr/bin/php.orig sudo ln -s /usr/local/php5/bin/php /usr/bin/php and update apache conf file with LoadModule php5_module /usr/local/php5/libphp5.so

Categories : PHP



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.