let's say I have 2 classes like this:
public class Foo
{
[Required]
public string Name {get;set;}
}
public class Bar
{
// put here [Required] at run-time
public string Name {get;set;}
}
var foo = new Foo();
var bar = new Bar();
//copy the required from foo to bar
is it possible to copy the attributes from foo to bar at run-time ?
I have the following folder structure:
FolderA
--Folder1
--Folder2
--Folder3
...
--Folder99
Folders 1 through 99 have files in them.
All I want to do is to copy ALL THE FILES into ONE FOLDER, basically do a FolderA copy, and wipe out Folders 1-99 keeping all the files.
I'd like to do it with Robocopy from cmd.exe if possible (Windows Server 2008)
I want to copy all the tables, fields, and data from my local server mysql to my hosting sites mysql. Is there a way to copy all the data? (It's only 26kb, very small)
How can I copy a table from an SQL Server CE 3.5 database to another (also CE database) in Visual Studio 2008, using the design tools?
Note: When right clicking on a table there is a "copy" command, but I couldn't find any "paste" command so far...
I have an iPad and a desktop running Ubuntu 12.04 with lots of movie files of various formats (avi, mp4, m4v, etc).
Is it possible to transfer those files from within linux directly to the iPad (without using iTunes to sync) over USB and then play those movies on the iPad without reformatting/resizing all of them?
I've used iTunes in a Windows XP virtualbox instance with other iOS mobile devices before but I would prefer a pure linux approach if possible.
(I'm creating this question so that I can share the solution I found because I failed to find a simple, satisfactory answer elsewhere).
Hi forum,
i have this file myfirst.txt located on a cluster of computers down the hall, i.e.:
myname@login1:~> ls
myfirst.txt
which i want to download to the home directory:
scp [email protected]:myfirst.txt .
to which i get:
myfirst.txt 100% 1828 1.8KB/s 00:00
now where (on my home computer) is this myfirst.txt file ? i can't find it. It's not visible when i click 'show hidden files' either.
Tia,
Firstofall, I am sorry if my question is to broad.
I am developing a tile based game and switched from those gl.Begin calls to using VBOs.
This is kind of working allready, I managed to render a hexagonal polygon with a simple shader applied.
What I am not sure is, how to implement the "whole" tile concept.
Concrete the questions are:
Is it better to create 1 VBO for a single tile and render it n-Times in
every different position, or render one huge VBO that represents the whole "world"
Depending on the answer above, what is the best way to draw a "linegrid".
Overlay with the same vbo using the respecting polygon.mode , or is there a way
to let the shader to this?
How would frustum-culling or mousepicking work then, do i need to keep the
VBO-data in memory?
I cannot even figure out who made it - even the IMDB page is mostly blank, and Wikipedia does not seem to have any information about it. For such a useful film in CompSci, it strikes me as odd that the only meaningful Internet presence I can find are horrible quality copies or excerpts on YouTube.
[Note: SO claims this question was migrated to here, but the URL they provide gives a 404, and I can't find it by searching Programmers.SE, so I'm re-asking...]
The HDD I have my Ubuntu installed is about to fail. I would rather not lose 3 years worth of data, customisation and apps. I am looking for a way to move the complete system (SWAP included, because I'm not sure if I can relink the system to a new SWAP partition) to another HDD. But not the complete HDD< only the partition containing Ubuntu, to a partition on a different HDD. Basically I'd like to do what I've been able to do with Norton Ghost for my Windows install. I thought about using Clonezilla but I think I would have issues with GRUB (Especially trying to boot from a different UUID than what is in the conf file). do you know of any way this could be done?
PS, my home directory is encrypted but that's not really an issue, because I can work around that.
EDIT: changed the explanation to make it clearer
Is it possible to have identical campaigns except for one thing, and whenever changes are made to one campaign, the same changes are automatically made to others?
I want to have identical campaigns running for different time zones, but for the campaigns only to run between particular hours of the day in each time zone.
If I have a campaign for each time zone, when I make changes to one campaign, such as adding ad groups, or adding keywords, or changing bid amounts, etc, I want those changes to occur to the other campaigns also.
Is this possible?
Thanks,
For many people this part of web site development is non-technical and just simple. Writing might just come naturally to you but then again it might not. Writing is a skill that takes a lot of practice and trial and error to perfect, but ultimately anyone can do it well if they put enough into it.
Help please!
My backup method of choice is to clone my "working" drive to another identical drive. I have 2 windows drives and I clone my working one to the other one once per month. No problem - each will boot if I select it.
Now with the lack of future support for XP, I am getting familiar with Ubuntu 14.04 LTS. I have it on one drive and I have a second identical drive that I want to be able to clone it to once/month. Not as necessary to do this with Ubuntu as with windows, I know, but I'm anal.
So I have followed #47209 MestreLion's procedure with just the two Ubuntu drives "on line". I.e., boot my "working" drive with Live CD, use Gparted to be sure I know what's what, open terminal and enter and execute the dd command, Go to bed till the clone is done, shut down the computer, disconnect the input/source drive, boot up using BIOS to select the remaining output drive.
The drive starts fine but all is not OK. It puts up a screen that says I'm on a Guest Session and asks for a password. Well, for one thing I have my Ubuntu set up to start without a password being entered. I have one, of course, I put it in but it isn't accepted. I can't get by this Guest Session screen.
I am fine, of course. I can disconnect this drive, hook up my "main" ubuntu drive and all the rest, and go on with my business. But I don't have the desired "emergency backup" drive working where I could jump on and use it immediately if I needed it.
Can someone give me some guidance here??
What (else) do I need to do. Love Ubuntu but learning.
Thanks, Wes.
I am on Ubuntu 12.04 running gnome shell 3. Everything worked fine until I updated just a few hours ago using the update package.
First my default shortcuts stopped working, fixed it by creating custom ones.
Now while on the desktop I can't right-click, move files to it or see the files that were there previously. However, in terminal I can navigate fine to Desktop and my files are there, except not visually on the desktop. Permissions are all set correctly.
Please help. Thank you.
I started with linux a year ago. Few weeks ago it was my idea to install the efi stubloader.
I used an LiveCd to freshly install ubuntu 12.10, and studied the articles of www.rodsbooks.com inside out.
The problem I am facing is that few files need to be copied from sda2 (Ext) to sda1 (fat32). Silly, that should not be difficullt, but I can not find a way to do it...(in a way I understand it)?
Anyboddy?
If you have installed a EFI stubloader with reFind or efibootmgr,...please help me.
I'm traveling for a week and will be borrowing my roommate's laptop. We both have Macs running Snow Leopard. How can I copy my entire user account (files, settings, etc.) over to his computer?
Is it as simple as creating a new user account and copying over my home folder? Do I have to do more?
(not a commercial CD). I did some recordings of a band years ago and ran into one of the band members who asked me if I could make copies. I assumed that this would be easy. I know that I can rip the CD into iTunes and then burn a new CD, but I have two optical drives available, is there a way to simply copy the CD from one drive to the other in one step?
I have a working installation of SQL Server Reporting Services (2008) in which I've setup a DEV directory and successfully upload a number of report templates. I have now created a TEST directory. How can I copy the report templates from DEV to TEST?
Title says it all. I'm on Mac with the latest iTunes and it doesn't recognize my iPod anymore although it mounts to the desktop. I tried all and everything but it doesn't work (the iPod works on other Macs though, it itself is fine).
How can I copy my music to the iPod without going through iTunes? Are there any tools like on Windows for this?
Thanks!
First, I'm not into HTML and PHP programming.
A friend's Joomla site was hacked by some sort of html injection, and now every php and html file has an iframe which is linked to some sort of malware page. And now I want to copy the infected files from the server to my machine and "clean" them. Is this dumb and dangerous?
I got a free promotional copy of Windows Vista at a Microsoft Event a while back. I'd like to upgrade to Windows 7 - how can I find out if this is possible (from a licensing/legal point of view)? Has anyone with the same sort of promotional version managed to upgrade successfully?
Is there a way to give OS X the usual X-windows behavior where selecting text in any application automatically copies it to the clipboard, and the middle mouse button automatically pastes it? ?-C, ?-V is a little annoying.
On Mac OS X I keep data on a local server mirrored with the same data on a remote server with a scheduled backup task done with Carbon Copy Cloner.
After the backup is done a bash script is run as specified in the scheduled task options of CCC.
Is the script run as root?
Or differently and more generally: as my script writes to a log file, what command should I put on my script to see on the log if the script is running as root or something else?
We have an ESXi host we use for testing, which results in a ton of VMs being created and copied on a regular basis. We don't have the storage capacity to use thick provisioned VMs on this server, and have been maintaining the copies using VMWare Converter. But using the converter is an incredibly slow operation which copies the entire contents of the VM over the network several times before actually finishing the copy.
Is there a way to simply clone the VM but maintain the thin-provisioning?