does one createan admin front-end from scratch for every application?
are there any tools for aiding this process?
some tutorials?
share your thoughts and experiences!
I want tocreate a Xml file that looks something like this:
<Root xmlns:ns1="name1" xmlns:ns2="name2">
<ns1:element1 />
<ns1:element2 />
<ns2:element3 />
</Root>
How can I accomplish this using XAttribute, XElement, XNamespace, and XDocument where the namespaces are dynamically added.
I would like tocreate a excel Add in which creates some additional toolbars and Menu buttons.
But I want this addin to load only when a specific workbook is opened. I dont want to load the Addin if anyother workbook is open.
I would like to know what are the possible ways to solve this problem and what is the best approach to implement this Add in (XLA or VSTO or COM Addin)
Using PHP: How can I createan image to display an email address (to help reduce spam)?
Meaning, if I want to display "[email protected]" on my web page, since crawlers can easily find that text - I want to display the email address as an image that says "[email protected]".
How do I do that? I want the font to be:
color: #20c
font: 11px normal tahoma
If I create salt by using something like this:
public class User
{
private const int Hash_Salt_Length = 8;
private byte[] saltBytes = new byte[Hash_Salt_Length];
public User()
{
RNGCryptoServiceProvider rng = new RNGCryptoServiceProvider();
rng.GetNonZeroBytes(saltBytes);
}
....
}
The saltBytes bytes array will be different for each session (restart the application). How can I check password to allow user login our application?
I am trying to find a CSS tutorial that would enable me tocreate a 4x3 grid of features like on this site http://www.ewedding.com/features.php
If anybody can suggest one it would be great! All the tutorials that I have found seem to style the entire page rather that a particular part of the page.
Thanks in advance
Decbrad
I need to read the serial port as an input for a web based applicaton.
I know that the browser can't do it, but if I build an DLL and send it to my client, can I access this DLL and read de serial port with an java script or i will need something like ActiveX?
Hi Friends,
i want to do this exercise: i have one app like "helloworld.app".
when user "longpress" of any key say "A".in short i want tocreate "shortcut key"
for my app how can i set listener for it.
please share if anyone come with it.
How to deal with factories and attr_accessible?
My example:
# model
class SomeModel
attr_accessible :name, full_name, other_name
end
#spec
require 'spec_helper'
describe "test" do
it do
create(:some_model, name: "test name", user: User.first) #factory
end
end
#error
ruby(17122,0x12a055000) malloc: *** error for object 0x8: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
I think the error is because user_id is not in attr_accesible atributes
I'm using ImageMagick tocreate a tiny JPG thumbnail image of an already-uploaded PDF. The code works fine. It's a WordPress widget, though this isn't necessarily WordPress specific.
I'm unfamiliar with ImageMagick, so I was hoping somebody could tell me if this looks terrible or isn't following some best practices of some sort, or if I'm risking crashing the server.
My questions, specifically, are:
Is that image cached, or does the server have to re-generate the image every time somebody views the page? If it isn't cached, what's the best way to make sure the server doesn't have to regenerate the thumbnail?
I tried tocreate a separate folder (/thumbs) for ImageMagick to put all the images in, instead of cluttering up the WP upload folders with images of PDFs. It kept throwing a permission error, despite 777 permissions on the folder in my testing environment. Why? Do the source/destination directories have to be the same?
Am I doing anything incorrectly/inefficiently here that needs to be improved?
The whole widget is on Pastebin: http://pastebin.com/WnSTEDm7
Relevant code:
<?php
if ( $url ) {
$pdf = $url;
$info = pathinfo($pdf);
$filename = basename($pdf,'.'.$info['extension']);
$uploads = wp_upload_dir();
$file_path = str_replace( $uploads['baseurl'], $uploads['basedir'], $url );
$dest_path = str_replace( '.pdf', '.jpg', $file_path );
$dest_url = str_replace( '.pdf', '.jpg', $pdf );
exec("convert \"{$file_path}[0]\" -colorspace RGB -geometry 60 $dest_path"); ?>
<div class="entry">
<div class="widgetImg">
<p><a href="<?php echo $url; ?>" title="<?php echo $filename; ?>"><?php echo "<img src='".$dest_url."' alt='".$filename."' class='blueBorder' />"; ?></a></p>
</div>
<div class="widgetText">
<?php echo wpautop( $desc ); ?>
<p><a class="downloadLink" href="<?php echo $url; ?>" title="<?php echo $filename; ?>">Download</a></p>
</div>
</div>
<?php }
?>
As you can see, the widget grabs whatever PDF is attached to the current page being viewed, creates an image of the first page of the PDF, stores it, then links to it in HTML.
Thanks for any and all help!
How can one create menus in the command line program? I've tried stuff like:
cin input;
switch (input) {
case (1):
// do stuff
case (2):
// ...
}
but then I've had the problem of sub-menus, and going back to the same menu, etc. The first program I wrote (apart from exercises) that tried to use the switch idea for the menus had goto statements because the alternative was heaps of (at the time) complicated loops.
Hi everybody,
In an application we are developpment, we are accessing Active Directory users and groups using the .Net DirectoryEntry and DirectorySearcher classes. Managing the test groups and users during development is getting tedious.
I am wondering if there was an easy way to setup a simple local AD in which we could easily create / delete users and assign them or remove them from groups as we want with the DirectoryEntry / DirectorySearcher classes?
Thanks.
I created a database via javascript using Google Gears on Android 1.5 and I'd like toaccess directy the sqlite file to look inside it whitout using Gears. I found several "File Browser" but they only browse the SD card. Is there a way to fetch it from the phone file system?
I have an HTC Dream running Androis 1.5.
Thank you!
I'm trying to extend an entity tocreate a computed observable that requires a navigation property:
app.domain.indicador = function () {
this.ValorMetaActual = ko.computed({
read: function () {
console.log(this.ValoresMeta); //navigation property: undefined
return 0;
},
deferEvaluation: true
}, this);
};
The problem is that when the observable is created, the navigation property does not yet exist.
What could I do to fix this?
Hi, mostly i am working on android 1.6 platform.I made an application on 1.5 platform but i could not access button through like R.id.button1 like platform 1.6.Is there any idea?
Thank you
hi,
i'm a bit lost here as to why my RAKE task will not create the desired XML file, however it works fine when i have the method 'build_xml' in the .RB file.
require 'rubygems'
require 'nokogiri'
require 'open-uri'
namespace :xml do
desc "xml build test"
task :xml_build => :environment do
build_xml
end
end
def build_xml
#build xml docoument
builder = Nokogiri::XML::Builder.new do |xml|
xml.root {
xml.location {
xml.value "test"
}
}
end
File.open("test.xml", 'w') {|f| f.write(builder.to_xml) }
end
By default index of every javascript array starts from 0. I want tocreatean array whose index starts from 1.
I know, must be very trivial...thnx for ur help
I want tocreate a near 100% load on a Linux machine. It's quad core system and I want all cores going full speed. Ideally, the CPU load would last a designated amount of time and then stop. I'm hoping there's some trick in bash. I'm thinking some sort of infinite loop.
I'm looking for a way tocreate a vCards from Outlook Contacts. Ive seen plenty of examples of howto do the reverse, but that's not what i want. I believe it will involve either the OpenSharedItem method or the OpenSharedFolder method but I havent seen any examples of howto implement this. Does anyone know of where I might find a sample or two? My end goal is to output all my Contacts as vCards to a folder.
What's the simplest way tocreate and write to a file in Java?
I know this is a very basic question, but the web is full of different answers for different versions of Java and it would be nice to have an answer here on StackOverflow.
Hi all,
I would like tocreate something similar as Gmail's contact manager.
I'm not very experienced with Javascript, I understand the basic concepts of AJAX and know my way around jQuery. But that is as far as it goes.
Book/blog recommendations are greatly appreciated.
Thanks!