w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Unable to access Samba folder from Windows (Using Raspberry Pi XMBC as a Samba Server)
That may depend on the directory and file rights. If the us who runs smb have no access rights, you can't read or write files. You can find out file permissions with ls -la you will also see owner and owner group. You can try to set read and write permissions for all (chmod 777 directory -R). If this was the problem, then you should give read and write permissions only to the user that runs smb. Set permissions for all back to 0 (770) because of security reasons. Here you find a tutorial on set up samba for Rasapberry Pi.

Categories : Windows

Root is not accesible in j2me exception
It seems that path that you are providing is not a valid root. To check For a list of all the valid root values in a device, call the listRoots() method of FileSystemRegistry. other reason may be for some reason FileSystemRegistry can not access that path(disk error or read protected).

Categories : Java

input accesible from image overlay
Is it possible to have the image area on the right (.arrowDiv) so that i can click on the input text field underneath it? Sure definitely. Try setting the top property and the left property instead of right .arrowDiv{ position:absolute; left:0; top:39px; width:80px; height:38px; display:block; z-index:2; background: url("arrow.png") no-repeat scroll -335px 0 #F2F2F2; } Check Fiddle CSS Setting the div size to that of the icon .input-container { position:relative; border:#999 1px solid; height: 38px; width: 80px; } .arrowDiv{ position:absolute; left:60px; top:10px; width:16px; height:16px; display:block; z-index:2; background: url(http://i577.photobucket.com/albums/ss218/charles2690/11.png) no-r

Categories : Javascript

How Should I Debug Samba with GDB
Download samba source code from http://www.samba.org and compile it (without source code, it will be impossible to do symbolic debugging). Stop or kill any other samba instances. Start samba under gdb: gdb <path/to/compiled/smbd> Specify smbd parameters: set args -i -M single Parameters -i -M single force smbd to start as single process, do not daemonize and print all messages and errors to stdout/stderr. Now, you can set breakpoints and trace your source code as you normally would with any other program. Note: instead of using gdb, you might find more convenient to use gdb-tui (gdb text user interface), or use other debuggers like ddd.

Categories : Debugging

global variable from Project1.cpp accesible in Unit1.cpp
Use extern keyword in Unit1.cpp to refer the declaration from Project1.cpp. For example, if in Project1.cpp you have // Global variable int myGlobalVar; then in Unit1.cpp you should have extern int myGlobalVar; However, this practice is questionable and should be avoided. Important programming principles like modularization and decoupling can be denied by the usage of the global variables.

Categories : C++

How to I trick Java RMI/JMX to be accesible from outside localhost without hardcoding the IP?
As it is impossible to make RMI to bind to 0.0.0.0 the solution is to detect the IP and use it. I used the solution below on both Linux and OS X: IP=$(ifconfig | sed -En 's/127.0.0.1//;s/.*inet (addr:)?(([0-9]*.){3}[0-9]*).*/2/p') # if we have several IPs found, we pick the first one for IP in $IP: do break done CATALINA_OPTS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8081 -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=${IP} " Obviously that's the insecure way to configure it, but you are free to tune it to fit your needs.

Categories : Java

custom error pages not to be accesible directly
(1) Enable mod_rewrite and .htaccess through httpd.conf and then put this code in your .htaccess under DOCUMENT_ROOT directory: Options +FollowSymLinks -MultiViews # Turn mod_rewrite on RewriteEngine On RewriteBase / ErrorDocument 400 /error.php?e=400 ErrorDocument 401 /error.php?e=401 ErrorDocument 403 /error.php?e=403 ErrorDocument 404 /error.php?e=404 ErrorDocument 500 /error.php?e=500 ErrorDocument 503 /error.php?e=503 # block direct access to /error.php RewriteCond %{THE_REQUEST} ^[A-Z]{3,}s/+error.php[s?] [NC] RewriteRule ^ - [F] (2) Inside /error.php access original URI using: $_SERVER["REQUEST_URI"];

Categories : PHP

Display first letter only for glyph fonts (accesible way)
I don't think there is a truly accessible way of using icon fonts currently. I know it's a bit span-tastic but this what my approach to this would be. Firstly wrap the text in a span so we can hide it. And add another span for the icon <div class="ico"> <span aria-hidden="true" class="linkedin"></span> <span class="hide">linkedin</span> </div> Notice I've added aria-hidden="true" to my icon span. This is to prevent the letter (used to render the icon) from being read out by the screen reader. Now you can safely hide the text so it is accessible by screen readers and apply your icon using the before selector. .linkedin:before { font-family: 'JustVector'; content: 'l'; } .hide{ position: absolute; top: -9999px; left: -

Categories : CSS

Automount samba folder on Mac
I followed https://discussions.apple.com/thread/3221944?start=15&tstart=0 The key is setting the mount point in your home directory is by following three steps. Add this line to the end of /etc/auto_master: /- auto_smb Created /etc/auto_smb with the following line: /Users/user/mount -fstype=smbfs,soft smb://domain;user:password@server/folder Run automount: automount -vc The troubleshooting points are: If you encounter "Too many users" you need to review your SMB path for syntax errors. Also be careful of incorrect username / passwords, or passwords with special symbols. e.g. @ would need to be replaced with %40.

Categories : Osx

Making SSIS package accesible to other user on the system
You will need a windows account with permission to execute the package and access everything the package needs to touch (file share permission, FTP permissions, run exec files, database permissions, folder permissions etc..). You also want to make sure that login is a member of the ssis operator and user roles in msdb.

Categories : SQL

samba shares seen in windows, but cannot connect
Add the following to your [global] section: guest account = nfsnobody map to guest = bad user And your public share could look something like: [Backups-Rhonda] path = /raid1/rhonda writable = yes guest ok = yes public = yes force user = root force group = root create mask = 666 directory mask = 666 security mask = 666 force create mode = 666 Make sure to restart the samba service.

Categories : Misc

authenticate against with Active Directory via samba
I recommend you this article http://technet.microsoft.com/en-us/magazine/2008.12.linux.aspx from Microsoft. The configure file seems OK.

Categories : Misc

qt transfer a file from local to a samba shared
You can not do that QFile just spports local files but you can mount it to a posix folder and access to that folder. You can find a guide about how to mount a samba shared folder here

Categories : C++

Android - Mount a Samba share in code
Probably smbfs/cifs are currently not supported by your kernel. As Delyan said, ensure your kernel can mount these filesystem : $ cat /proc/filesystems nodev sysfs nodev rootfs nodev bdev nodev proc nodev cgroup nodev tmpfs nodev debugfs nodev sockfs nodev usbfs .... If they are not listed, you should try to do a modprobing (sometimes the module you want just have to be activated), get root access then : # modprobe <modulename(without.ko)> e.g. : # modprobe cifs If it doesn't work you will have to change or recompile your kernel (including appropriate modules).

Categories : Android

iOS file sharing with SAMBA / CIFS protocol
If I understood you correctly you want to connect with your app files via WiFi . Basically you need to open a local server within your app. CocoaHTTPServer may be help you with this issue.

Categories : Iphone

Apache/php cannot access remote cifs/samba share
have you tried //ip/foleder/ /mnt/name cifs username=user,password=passwd,nounix,noserverino,defaults,users,auto,gid=33,uid=33 0 0 change gid and uid to the apache user u can find it out like this: cat /etc/passwd | grep www-data

Categories : Apache

I'm trying to connect from windows to Samba Shared folder on linux using php
i found solution for connection using this code $sharename = '\\LinuxIPAddressShared_folder'; $username = 'username'; $password = 'password'; $letter = 'Z:'; if (!is_dir($letter . "/TMP")) { $WshNetwork = new COM("WScript.Network"); $WshNetwork->MapNetworkDrive($letter, $sharename, FALSE, $username, $password); } and is working perfect

Categories : PHP

Why would my samba connection fail after an upgrade to windows 2012?
Windows Server 2012 includes latest version of SMB protocol 3.0 and it full of really interesting updates and improvements (details and some relevant discussion here). As with any serious improvements there is a compromise in terms of legacy clients support. Probably there is no support for SMB 3.0 on your Samba client side or some backward compatibility should be enabled on Server 2012 side.

Categories : Java

Thymeleaf object created from extednd broadleaf processor is made null when using th:each and is accesible only ouside th:each
It appears as if you are not properly closing the conditionals on your ternary functions. Add a } after the null and before the ? on each line. Here is an example ternary from the docs for reference 'User is of type ' + (${user.isAdmin()} ? 'Administrator' : (${user.type} ?: 'Unknown'))

Categories : Spring

Making a user in Samba - Debian 6 32bit - No commands working?
Solution: Setup Apt-get upgrade sudo apt-get install samba smbfs sudo mkdir –m 0777 /pathofdrive Editing the samba config sudo vi /etc/samba/smb.conf Copy this: # Global parameters [global] workgroup = HOME netbios name = SAMBA server string = Samba Server %v map to guest = Bad User log file = /var/log/samba/log.%m max log size = 50 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 preferred master = No local master = No dns proxy = No security = User # Share [Data] path = /disk2/data valid users = joel read only = No create mask = 0777 directory mask = 0777 Adding a user: # useradd -c "Joel Nahrgang" joel # smbpasswd -a joel New SMB password: secret Reenter SMB password: secret Added user joel Restarting Samba:

Categories : Linux

How to access a shared location in solaris from windows machine using samba with java?
"Connection refused" means that host is not listening on that port. You need to ensure the samba service is running on that host. I would check you can mount the file system as a drive letter first.

Categories : Java

Convert a local resource link (file:///) to an accesible link (http://) in portlet
Just put them outside /WEB-INF to make them publicly accessible. E.g. WebContent |-- META-INF |-- WEB-INF | |-- files | | `-- ... | `-- web.xml |-- images | |-- foo.png | |-- bar.png | `-- baz.png : This way you can access them like <p:graphicImage value="/images/foo.png" /> <p:graphicImage value="/images/bar.png" /> <p:graphicImage value="/images/baz.png" /> Just generate exactly those paths "/images/foo.png", "/images/bar.png", "/images/baz.png", etc instead of local disk file system paths. This makes indeed no sense as the endusers visiting your website doesn't necessarily have those files at exactly the same locations of their own disk file system. Unrelated to the concrete problem, using ExternalContext#getRealPath() for this

Categories : JSF

element below transparent background element accesible in IE
Instead of transparent you can use opacity:0; this will still have the div as a block element. Also you may want to set the z-index to 99999 to force it over top of every other element on the page.

Categories : CSS

Java Resultset Not Showing Unicode (Chinese) Characters, But Showing as Question Marks
add the connection must be like connection = riverManager.getConnection("jdbc:sqlserver://190.128.4.195;databaseName=unicodedemo;user=ab;password=ab@Admin;useUnicode=true;characterEncoding=UTF-8");

Categories : Java

Spring Roo listing page not showing Foreign key but showing full dependent row
Given... // Spring Roo 1.2.4.BUILD-SNAPSHOT [rev 7c12381] log opened at 2013-06-15 17:13:26 project --topLevelPackage org.foo.bar --projectName baz jpa setup --provider HIBERNATE --database HYPERSONIC_PERSISTENT entity jpa --class ~.db.Customer field string name entity jpa --class ~.db.Sale field string --fieldName description field number --type java.math.BigDecimal --fieldName amount field reference --fieldName customer --type ~.db.Customer --cardinality MANY_TO_ONE focus --class ~.db.Customer field set --fieldName sales --type ~.db.Sale --cardinality ONE_TO_MANY web mvc setup web mvc all --package ~.web quit When you show the list of Customers (one side) it shows just the customer data. For the sales (many) side, it shows the Customer column, with the field value of all fields c

Categories : Spring

Product image is not showing up in poduct page where as showing list
Firstly, you must confirm whether the media.phtml is loaded. You may insert some dummy characters in the media.phtml to see whether it will show in the frontend. Thus, if the characters show, congratulations, you are just close to find the problem. In this situation, most problems are caused by image attributes not loading to the model object. Simply just reload the object with the following snippets: $_product = Mage::getModel('catalog/product')->load($_product->getId()); Otherwise, you may confirm the following things: Is the media.phtml is overload by the other theme? Compare with the default catalog.xml with your current one, to find out the media.phtml is correctly loaded, including path, block type, name, as, etc. Check the permission settings for the xml and template fi

Categories : Image

Only column header is showing up on report viewer. No data is showing up
public void GenerateBranchwiseReport() { string ManagerNames=""; conn.Open(); SqlCommand BranchReportcmd = new SqlCommand("select [am/bsi name] from masterlookup where [asc type]='BRANCH' group by [am/bsi name]", conn); SqlDataReader BranchReportread = BranchReportcmd.ExecuteReader(); while (BranchReportread.Read()) { if (ManagerNames.length==0) ManagerNames="'"+BranchReportread.GetValue(0).ToString()+"'"; else ManagerNames =ManagerNames + ",'" + BranchReportread.GetValue(0).ToString()+ "'"; } conn.Close(); //So now, You have Multiple Managers in ManagerNames string You can send it to SQL, which must used in Where clause with IN (@Managers) in you Stored Procedure. conn.Open(); SqlCommand GetReportDatacmd = new S

Categories : C#

Graphical Layout showing in Eclipse But Not showing when emulator runs
Did you launch it in the android manifest file. You have to launch there. Thanks Here is an example.. <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter>

Categories : Android

IE8 Password field showing entered value instead of showing asterisks
I'm guessing here because I don't want to go through all your code but I imagine you are replacing a <input type="text" /> with <input type="password" /> when the user has focus on the input. I don't think that is the best cross browser solution. If you want to support older browsers you will need to use a javascript solution as the HTML5 placeholder value won't work on all browsers. A good solution is using the <label> tag positioned under the input instead of faking it. For a good example see: http://blog.stannard.net.au/2011/01/07/creating-a-form-with-labels-inside-text-fields-using-jquery/ The advantages of this solution includes cross browser compatibility, accessibility and semantic markup.

Categories : PHP

Custom icon fontface not showing on my website but showing for others?
OK, I believe your problem lies here: EDIT: Hopefully more clear instructions. Your .cbp-ig-icon class is probably not correctly being inherited by your additional classes that define the content. There might be something going on with the double :before. As a test, directly define the content under .cbp-ig-icon:before (font-family, etc), directly to your .cbp-ig-icon-show:before, and see if that works. .cbp-ig-icon:before { font-family: 'anyoldicon'; ... } .cbp-ig-icon-shoe:before { /** This is a totally separate class **/ content: "e000"; }

Categories : Javascript

Why are my entities not showing up on devserver even though they are showing up on the dashboard?
Your query for getting user is wrong: This: u = db.GqlQuery("SELECT username FROM Users WHERE username='self.username'") should change to something like this: u = db.GqlQuery("SELECT username FROM Users WHERE username = :1", self.username) Take a look at the docs

Categories : Python

Rendering PDF in browser - the PDF is showing up when running under "localhost", but NOT showing up when replacing "localhost" with my machine name
Good afternoon, try adding the following to your PdfGenerator function: HttpContext.Response.AddHeader("X-Frame-Options", "SAMEORIGIN"); Are you rendering the PDF in an IFRAME?

Categories : C#

Highcharts showing in some pages, not showing in root pages
You can try to change permission of that file. Right Click that file and Change Permission as Read/view/Write. I had same problem in CPanel. I done this one. Then it's working fine. Just Try it.

Categories : PHP

Simply showing a component Only if another component is showing - Ext JS
AbstractComponent.isHidden() and AbstractComponent.isVisible() are functions, not properties. Add parentheses to your if statement. http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.AbstractComponent-method-isHidden

Categories : Function

why isn't my div showing up?
Check this out; same jsfiddle, 5th iteration. The HTML string used in the .append() was not properly nested. There was a missing closing </div>tag. Also, feared there was some quote unbalancing going on. I decided to use the jQuery alternative to build the HTML. I assumed you wanted to nest .tagged_box in .tagged. If this assumption is wrong, you should change _tagged.append(_tagged_box); $('div.i_connection').append(_tagged); ...to... $('div.i_connection').append(_tagged_box); $('div.i_connection').append(_tagged); ...in whichever order you wish. p.s: you may want to look for another class name for the inner .i_connection because the jQuery seector matches the parent span and the inner div. Cheers.

Categories : Jquery

ul bg not showing behind all li
Removing height: 36px; from #topmenu ul gets the result you are looking for. If you meant to set the height of the first ul you should use the child selector > like this #topmenu > ul.

Categories : CSS

Twitter API Only Showing Two
So it appears the problem with your code is that your PHP code changes the HTML output meaning some elements are removed. Because of this, the 3 lines of JavaScript at the end of the JavaScript file used to call the component, are expecting these DOM elements to be there all the time. You need to also make these conditional. For example if you had jQuery on your site you could use: if ($('#tweets').length > 1 ) { twitterFetcher.fetch('347356802423345152', 'tweets', 1, true); } Same for the other two of course. This way the JavaScript is only executed if the DOM element exists, so an error is not thrown for trying to access something that does not exist yet!

Categories : Javascript

Showing Map in a Fragment
Put only LinearLayout at where you want to put map in your xml and push map programatically as below: private SupportMapFragment mapFragment; mapFragment = new SupportMapFragment(); addFragment(lnrMap.getId(), mapFragment); //lnrMap is your LinearLayout from xml. googleMap = mapFragment.getExtendedMap(); AddFragment Method(),Put this method in your DetailFragment class: public void addFragment(int layoutId, Fragment fragment) { FragmentManager fm = getChildFragmentManager(); FragmentTransaction ft = fm.beginTransaction(); ft.replace(layoutId, fragment); ft.commit(); }

Categories : Android

jQuery Showing NaN value
NaN is displayed only when the first <option> is selected, as it has no data-price attribute. Either give it one or add a special case for that option.

Categories : Jquery

MiniProfiler not showing up on asp.net MVC
In your web.config, add this: <system.webServer> ... <handlers> <add name="MiniProfiler" path="mini-profiler-resources/*" verb="*" type="System.Web.Routing.UrlRoutingModule" resourceType="Unspecified" preCondition="integratedMode" /> ... </handlers> ... If you want some sweet MVC Action profiling (unrelated to your problem), add this line to Application_Start in Global.asax.cs: GlobalFilters.Filters.Add(new StackExchange.Profiling.MVCHelpers.ProfilingActionFilter());

Categories : C#



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