Posts

What is the difference between "Flush Magento Cache" and "Flush Cache Storage" in magento's cache management? -

Image
what difference between "flush magento cache" , "flush cache storage" in magento's cache management? sometimes cache location (like "/tmp/") or service (like memcache) shared other applications. "flush magento cache" removes entries magento reliably tracks it's own. "flush cache storage" clears might affect other applications if they're using it. normally location "var/cache/" in magento's folder not shared after all. safe use either button. (rarely) entries not tagged or magento loses track of them , second button has effect on them. tend use second button when i'm having difficulty tracking down cause of problem.

mysql - Django query executed in view returns old data -

i have view queries model populate form: class addserverform(forms.form): …snip… # compile , present choices hardware config hwchoices = hardwareconfig.objects.\ values_list('name','description').order_by('name') hwchoices = [('', '----- select 1 -----')] +\ [ (x,'{0} - {1}'.format(x,y)) x,y in hwchoices ] hwconfig = forms.choicefield(label='hardware config', choices=hwchoices) …snip… def addservers(request, template="manager/add_servers.html", template_success="manager/add_servers_success.html"): if request.method == 'post': # …snip… - process form else: # page called via - use default form addform = addserverform() return render_to_response(template, dict(addform=addform), context_instance=requestcontext(request)) additions hardwareconfig model done using admin interface. changes show in admin interface ...

c# - Silverlight Concurrent Data Sources for a Grid's Control -

i have following data model: camp -> campevent <- event. camp has campid , name associated it. event has eventid, name, start/end (dates). campevent has (campid,eventid)pk, campid fk, eventid fk. the tables used create domain model , domain service consumed client side on silverlight. i able display event's table in silverlight using grid. the grid has 2 template columns - 1 display checkbox, , display name of event. so problem somehow need check checkboxes when control goes in edit mode. i've noticed grid doesn't have ondatabound event, or doesn't have way of setting state of each checkbox checked other through binding. well, apparently in silverlight don't have luxury of messing around contents of gridviewrow. can, however, achieve changing underlying data source. in above scenario have control used creating instance of camp , associating 1 or many events. in sense control can either create or update "camp" object , re...

networking - Is the packets loss caused by LAN or WAN? Its very confusing any idea? -

i have isp provider (telenet). provides via dhcp public ip there dsl modem. modem have rj45 cable connected 24 port switch. now in our local network: - switch port 1, have 1 voip phone - switch port 2, have voip phone each has default gateway 78.21.232.1 , subnet mask 255.255.240.0. different public ip such 78.21.235.x or 78.21.232.x series. question/confusion: when send packets our local network our local public ip's, traffic going isp default gateway? or straight inside our switch network? but saw many times gets packet loss in voip phone diagnostics. making me confused now. you've got several places more information packets go. first routing tables : $ ip route 192.168.122.0/24 dev virbr0 proto kernel scope link src 192.168.122.1 192.168.0.0/24 dev eth0 proto kernel scope link src 192.168.0.121 metric 1 169.254.0.0/16 dev eth0 scope link metric 1000 default via 192.168.0.1 dev eth0 proto static this shows interfaces ( virbr0 , eth0 ) us...

android - LinearLayout Line up -

i have edittext , want imagebutton left of it. want edittext's width fill_parent except leave room imagebutton. right edittext isn't leaving room. have them nested in linearlayout. <?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > <linearlayout android:layout_height="wrap_content" android:id="@+id/linearlayout1" android:layout_width="fill_parent" android:orientation="horizontal" > <edittext android:id="@+id/edittext1" android:layout_marginleft="10dp" android:layout_height="wrap_content" android:layout_marginright="10dp" ...

c - address to string constant -

i addres of string assembler c, , need content of address. how it? google gives c++ examples reinterpret_cast, not working in c (i suppose). appreciate if note needed libs too, tenx #include <stdio.h> #include <stdlib.h> unsigned long const1(void); int main() { printf("const: %d\n", const1()); return 0; } if you've got address , know it's null terminated string, need treat string. printf("%s", (char*)alleged_string_address);

Basic C++ question from a novice programmer -

i novice c++ programmer , trying work on school lab. below, have pasted shell of program working on. in main, instantiating object car1 belongs class velocity . when try use instantiation function mpsconverter , error indicating expression must have class type. have done similar examples in class , format worked fine. ideas? if not appropriate forum simple questions this, please point me in right direction more appropriate one. thanks, al // p1_2.cpp : defines entry point console application. // #include "stdafx.h" #include <iostream> #include "conio.h" using namespace std; class velocity { private: int mpsinput; // input value: meters per second (mps) int kmphinput; // input value: km per hour int mphoutput; // output value: comverted value of km per hour miles per hour (mph) public: int kmphoutput; // output value: converted value of mps km per hour velocity(); ...