libraries interview questions
Top libraries frequently asked interview questions
Some sub-folders from my iTunes music folder have been deleted from my hard drive, but are still present into my iTunes library (with a "!" sign next to it, showing me that there is a problem with that song).
I have a lot of those unplayable songs on my library... Is there a way to rid of all those songs ?
Source: (StackOverflow)
Has anyone found a way to index the files stored on a Networked Attached Storage on Windows 7 so that the files can be available in Windows Search and Libraries? I am referring to the cheap and available NAS like the Western Digital My Book series that use an embedded linux server.
Similar question: http://windows7forums.com/windows-7-networking/6700-indexing-nas-drive-libraries.html
EDIT
Windows help proposes to make the files stored on the NAS available offline. This is obviously not a good solution if the NAS has more data than what the client can store.
If the folder is on a network device that is not part of your homegroup, it
can be included as long as the content
of the folder is indexed. If the
folder is already indexed on the
device where it is stored, you should
be able to include it directly in the
library.
If the network folder is not indexed,
an easy way to index it is to make the
folder available offline. This will
create offline versions of the files
in the folder, and add these files to
the index on your computer. Once you
make a folder available offline, you
can include it in a library.
When you make a network folder
available offline, copies of all the
files in that folder will be stored on
your computer's hard disk. Take this
into consideration if the network
folder contains a large number of
files.
Source: (StackOverflow)
In my "Documents" library on Windows 7, one file is not showing up in Windows Explorer.
When I look in C:\Users\%USERNAME%\Documents\blah\blah
all 24 files appear. But when I look in Libraries > Documents > blah > blah
only 23 show up.
I made a copy of the file and the copy appears.
Refresh doesn't help.
The "Arrange by" setting defaults to "Name". When I change it to "Folder" the extra file appears, but changing it back to "Name" the file disappears again.
How can I make the file appear in all views? Why would it disappear?
EDIT: I deleted the Windows Search Index and things seem to be working again. I say it's a bug in the Search Service.
Source: (StackOverflow)
Suppose a set of custom-built gcc/glibc/binutils
are in $prefix
(e.g. /home/user/path
)
I want:
gcc
to look for libraries in $prefix/lib64
instead of /lib64
gcc
to look for headers in $prefix/include
instead of /include
- to use
$prefix/lib64/ld-linux-x86-64.so.2
as the (hard-coded) loader path instead of /lib64/ld-linux-x86-64.so.2
- the dynamic loader to look for shared libraries in
$prefix/lib64
instead of /lib64
How should I configure the builds? Do I need to modify gcc
's specs file or do anything else?
Source: (StackOverflow)
I am one of these OCD nut jobs that likes to have all their game icons perfect in their "Games" folder in Windows 7.
However when I installed Far Cry 2 it made a "Default application" icon in the games folder and I cannot remove or delete it.
The game launches from it, so is there a way to at least give it an icon of some sort?

Source: (StackOverflow)
I'm using Windows 7 to do this. I have quite an extensive library of music and now I have quite a lot of duplicate tracks but in different albums. Obviously I don't really want duplicate files but I'd still them to appear in all of the albums they should. The biggest example I have is that I have multiple UK Top 40s now and some songs are in the charts for weeks, so I have multiple versions of that song which I don't want - but I do want to be able to see the track in each week still. (On my iPhone...)
Is there any way to do this in iTunes? I don't mind a bit of tedious work if it means I can eliminate duplicate tracks!
Source: (StackOverflow)
I have to admit that I feel completely lost each time I have to fulfill the dependencies of some C or C++ code. Currently, I'm on Ubuntu 9.10 (Karmic Koala), but I remember the same feeling of forlornness from Windows.
I really think that I do understand C, C++, static and dynamic libraries, header files and linking, as well as the packet manager "aptitude", but when it comes to the practical part, I have absolutely no idea what to do. Even if I manage it somehow, I don't really know how I got there and learn nothing from it.
For example, today I wanted to use code which states that "It uses glib2, curl and openssl". In the end, I figured out that curl
and openssl
were already installed, but I needed to install libcurl3-dev
via my packet manager, which will also required (and installed) libcurl4-openssl-dev
so that I didn't have to worry about OpenSSL. But I had to choose these packet names from 67 similar-sounding alternatives. And glib
, on the other hand, had to be downloaded and built manually since there was no matching packet at all.
It took my several hours to find this out, and it's not the first time. So my question really is:
When I have a vague description of the dependencies:
- How do I find out which of those are already installed?
- How do I figure out which of those can be fulfilled by installing packages?
- How do I know the exact names of those packages?
- If a package has to be built from source, how do I ensure that I don't get lost in the endless dependencies of this source, and the dependencies of those dependencies...?
- I think I also need to link the libraries with my object files. If a single packet comes with several static library files, how do I know (without trial and error) which one to link?
Source: (StackOverflow)
The Linux ldd command can show the dynamic libraries used by an executable. It's a bash script.
But it seems to be fragile, and does not work on some binaries. Is there an alternative tool?
In my specific example, I can use:
% file datab2txt
datab2txt: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, for GNU/Linux 2.4.0, not stripped
but ldd fails with:
% ldd -v datab2txt
not a dynamic executable
Source: (StackOverflow)
Is there a way in Windows 7 to create a shortcut to:
Libraries\Music\some_file.mp3
instead of:
D:\Users\Myself\My Music\some_file.mp3
This way when I move my special libraries, or reinstall using different hd partitioning on a new system, I don't have to bother changing the shortcuts?
Source: (StackOverflow)
I installed a binary and its dependencies to a non-standard location. When I run the binary, I need to specify the library locations of all its dependencies. I know one way of doing this is to do:
export LD_LIBRARY_PATH="/path/to/shared/libraries:/path/to/more/shared/libraries"
...but this seems hackish, in that I'll need to put this in every user's .bashrc who intends to run the program. Without installing the libs to a system directory, is there a better way of ensuring that the binary is always able to link to the correct libs?
Source: (StackOverflow)
I was listening to some older mp3s today and I released that some of my songs have pops and cracks in them. I assume this means that the file has some bad blocks.
Is there software/script/etc that I can run on my entire library and find the music with these artifacts?
Thanks!
Source: (StackOverflow)
Is there any "easy" way of synchronizing my iPhoto library between, say, my iMac and my MacBook ?
My basic strategy is "modify only on the iMac, make a blind copy to the MacBook" but it's not really satisfying.
Using rsync is not really an option, since it won't synchronize the library definitions.
Source: (StackOverflow)
Here's my problem. I have just compiled a linux build of tests
in my VirtualBox VM. When I run it, I get:
bash: ./tests: No such file or directory
I did some research, and found it could permissions, missing libraries or different architecture. So I checked those:
ls -al tests
:
-rwxr-xr-x 1 me me 9948598 2011-02-21 01:54 tests
file tests
tests: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, not stripped
uname -a
Linux DevBox 2.6.35-25-generic #44-Ubuntu SMP Fri Jan 21 17:40:44 UTC 2011 x86_64 GNU/Linux
ldd tests
:
linux-vdso.so.1 => (0x00007fff7db90000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00007f10ef14c000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f10eee46000)
libz.so.1 => /lib/libz.so.1 (0x00007f10eec2d000)
libm.so.6 => /lib/libm.so.6 (0x00007f10ee9aa000)
libc.so.6 => /lib/libc.so.6 (0x00007f10ee627000)
/lib/ld64.so.1 => /lib64/ld-linux-x86-64.so.2 (0x00007f10ef384000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007f10ee410000)
What's the problem here?
Source: (StackOverflow)
I just tried running a program installed through a .deb package and get this error:
error while loading shared libraries: libreadline.so.5: cannot open shared object file: No such file or directory
Does anyone know which library or package libreadline is a part of? If so, how do I install and make sure it is version 5?
Thanks!
Source: (StackOverflow)
If I am at a Windows 7 command prompt is there any way that I can navigate to one of my libraries?
e.g. something like
cd libraries:\code
Source: (StackOverflow)